c.height?m>p?(d=m,e=n):(d=p,e=q):mb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.jc++;){if(a===b)return!0;try{if(a=g.xf(a)||a){var d=Se(a),e=d&&gf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Pia=function(a,b,c){if(!a||!b)return!1;b=js(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Cr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!iia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Se(c))&&b.defaultView&&b.defaultView.frameElement)&&Oia(b,a);var d=a===c;a=!d&&a&&Hf(a,function(e){return e===c});
return!(b||d||a)};
Qia=function(a,b,c,d){return Gs().C?!1:0>=is(a)||0>=a.getHeight()?!0:c&&d?cia(208,function(){return Pia(a,b,c)}):!1};
nt=function(a,b,c){g.I.call(this);this.position=Ria.clone();this.UI=this.SH();this.fP=-2;this.qca=Date.now();this.R_=-1;this.Dp=b;this.II=null;this.MC=!1;this.hJ=null;this.opacity=-1;this.requestSource=c;this.yca=!1;this.lP=function(){};
this.j0=function(){};
this.Nj=new mha;this.Nj.vt=a;this.Nj.j=a;this.Ws=!1;this.Xu={wP:null,vP:null};this.u_=!0;this.IF=null;this.yz=this.Q7=!1;Qr().K++;this.Oh=this.UN();this.M_=-1;this.Uf=null;this.hasCompleted=this.N7=!1;this.Hc=new nr;lha(this.Hc);Sia(this);1==this.requestSource?pr(this.Hc,"od",1):pr(this.Hc,"od",0)};
Sia=function(a){a=a.Nj.vt;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Tia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Oba()):!!a.getAttribute("data-"+Oba());b&&(Gs().B=!0)};
ot=function(a,b){b!=a.yz&&(a.yz=b,a=Gs(),b?a.K++:0c?0:a};
Wia=function(a,b,c){if(a.Uf){a.Uf.Yr();var d=a.Uf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.hJ=new g.Ae(h.left-f.left,h.top-f.top)}f=a.uK()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.sW(d);a.II=d;a.Qa(f,b,c,!1,h,e,d.Z)}};
Xia=function(a){if(a.MC&&a.IF){var b=1==qr(a.Hc,"od"),c=Gs().j,d=a.IF,e=a.Uf?a.Uf.getName():"ns",f=a.hJ,h=new g.He(is(c),c.getHeight());c=a.uK();a={gca:e,hJ:f,Yca:h,uK:c,Ce:a.Oh.Ce,Rca:b};if(b=d.B){b.Yr();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ae(h.left-f.left,h.top-f.top),l=new g.He(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={gca:b.getName(),hJ:h,Yca:l,uK:c,Rca:!1,Ce:e}}else c=null;c&&Iia(d,a,c)}};
Yia=function(a,b,c){b&&(a.lP=b);c&&(a.j0=c)};
g.pt=function(){};
g.qt=function(a){return{value:a,done:!1}};
Zia=function(){this.D=this.j=this.C=this.B=this.G=0};
$ia=function(a){var b={};var c=g.nb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
aja=function(){tq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
rt=function(a){return Es(a.volume)&&0Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ma;var d=c-a.ma,e=0;0<=d?(a.ra+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Ta+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Ua&&0=a.C/2:0=a.Fa:!1:!1};
oja=function(a){var b=Ds(a.Oh.Ce,2),c=a.Mg.C,d=a.Oh,e=Lt(a),f=Kt(e.D),h=Kt(e.K),l=Kt(d.volume),m=Ds(e.N,2),n=Ds(e.ra,2),p=Ds(d.Ce,2),q=Ds(e.Ba,2),r=Ds(e.Fa,2);d=Ds(d.rk,2);a=a.Ms().clone();a.round();e=jt(e,!1);return{Xca:b,JD:c,ZI:f,NI:h,tC:l,aJ:m,QI:n,Ce:p,cJ:q,RI:r,rk:d,position:a,dJ:e}};
qja=function(a,b){pja(a.j,b,function(){return{Xca:0,JD:void 0,ZI:-1,NI:-1,tC:-1,aJ:-1,QI:-1,Ce:-1,cJ:-1,RI:-1,rk:-1,position:void 0,dJ:[]}});
a.j[b]=oja(a)};
pja=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])};
Zt=function(a){a=void 0===a?wr:a;Ys.call(this,new Ks(a,2))};
$t=function(){var a=Pja();Ks.call(this,wr.top,a,"geo")};
Pja=function(){Qr();var a=Gs();return a.C||a.B?0:2};
Qja=function(){};
au=function(){this.done=!1;this.j={E4:0,MU:0,Jmb:0,KV:0,AO:-1,v5:0,u5:0,w5:0,dca:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Js(this)};
cu=function(){var a=bu;a.K||(a.K=!0,Rja(a,function(){return a.D.apply(a,g.oa(g.Ia.apply(0,arguments)))}),a.D())};
Sja=function(){Ar(Qja);var a=Ar(Ut);null!=a.j&&a.j.j?wia(a.j.j):Gs().update(wr)};
du=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Sja();var d=cs();Qr().G=d;if(null!=Ar(Ut).j)for(var e=0;eg.id(bka).length?null:Lr(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===cka[d[0]]||!cka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
eka=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?gt(b.j,a.j):gt(b.B,a.j);case "tos":return a.B?ft(b.j,a.j):ft(b.B,a.j)}return 0};
ju=function(a,b,c,d){Ct.call(this,b,d);this.N=a;this.Z=c};
ku=function(){};
lu=function(a){Ct.call(this,"fully_viewable_audible_half_duration_impression",a)};
mu=function(a){this.j=a};
nu=function(a,b){Ct.call(this,a,b)};
ou=function(a){Dt.call(this,"measurable_impression",a)};
pu=function(){mu.apply(this,arguments)};
qu=function(a,b,c){Gt.call(this,a,b,c)};
ru=function(a){a=void 0===a?wr:a;Ys.call(this,new Ks(a,2))};
tu=function(a,b,c){Gt.call(this,a,b,c)};
uu=function(a){a=void 0===a?wr:a;Ys.call(this,new Ks(a,2))};
vu=function(){Ks.call(this,wr,2,"mraid");this.Ka=0;this.ra=this.Ba=!1;this.N=null;this.B=hia(this.C);this.D.j=new hs(0,0,0,0);this.Na=!1};
wu=function(a,b,c){a.Qt("addEventListener",b,c)};
ika=function(a){Qr().D=!!a.Qt("isViewable");wu(a,"viewableChange",fka);"loading"===a.Qt("getState")?wu(a,"ready",gka):hka(a)};
hka=function(a){"string"===typeof a.B.In.AFMA_LIDAR?(a.Ba=!0,jka(a)):(a.B.compatibility=3,a.N="nc",a.pj("w"))};
jka=function(a){a.ra=!1;var b=1==qr(Qr().Hc,"rmmt"),c=!!a.Qt("isViewable");(b?!c:1)&&Nr().setTimeout(as(524,function(){a.ra||(kka(a),bs(540,Error()),a.N="mt",a.pj("w"))}),500);
lka(a);wu(a,a.B.In.AFMA_LIDAR,mka)};
lka=function(a){var b=1==qr(Qr().Hc,"sneio"),c=void 0!==a.B.In.AFMA_LIDAR_EXP_1,d=void 0!==a.B.In.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.In.AFMA_LIDAR_EXP_2=!0);c&&(a.B.In.AFMA_LIDAR_EXP_1=!b)};
kka=function(a){a.Qt("removeEventListener",a.B.In.AFMA_LIDAR,mka);a.Ba=!1};
nka=function(a,b){if("loading"===a.Qt("getState"))return new g.He(-1,-1);b=a.Qt(b);if(!b)return new g.He(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.He(-1,-1):new g.He(a,b)};
gka=function(){try{var a=Ar(vu);a.Qt("removeEventListener","ready",gka);hka(a)}catch(b){bs(541,b)}};
mka=function(a,b){try{var c=Ar(vu);c.ra=!0;var d=a?new hs(a.y,a.x+a.width,a.y+a.height,a.x):new hs(0,0,0,0);var e=cs(),f=Is();var h=new fia(e,f,c);h.j=d;h.volume=b;c.Rs(h)}catch(l){bs(542,l)}};
fka=function(a){var b=Qr(),c=Ar(vu);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.pj("w",!0))};
xu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.u7,a.firstquartile=this.p7,a.midpoint=this.r7,a.thirdquartile=this.v7,a.complete=this.m7,a.error=this.n7,a.pause=this.xQ,a.resume=this.WZ,a.skip=this.t7,a.viewable_impression=this.vp,a.mute=this.pB,a.unmute=this.pB,a.fullscreen=this.q7,a.exitfullscreen=this.o7,a.fully_viewable_audible_half_duration_impression=this.vp,a.measurable_impression=this.vp,a.abandon=this.xQ,a.engagedview=this.vp,a.impression=this.vp,a.creativeview=
this.vp,a.progress=this.pB,a.custom_metric_viewable=this.vp,a.bufferstart=this.xQ,a.bufferfinish=this.WZ,a.audio_measurable=this.vp,a.audio_audible=this.vp,a);a={};this.N=(a.overlay_resize=this.s7,a.abandon=this.oO,a.close=this.oO,a.collapse=this.oO,a.overlay_unmeasurable_impression=function(b){return Ot(b,"overlay_unmeasurable_impression",Is())},a.overlay_viewable_immediate_impression=function(b){return Ot(b,"overlay_viewable_immediate_impression",Is())},a.overlay_unviewable_impression=function(b){return Ot(b,
"overlay_unviewable_impression",Is())},a.overlay_viewable_end_of_session_impression=function(b){return Ot(b,"overlay_viewable_end_of_session_impression",Is())},a);
Qr().B=3;oka(this)};
yu=function(a,b,c,d){a=a.cF(null,d,!0,b);a.D=c;Ija([a]);return a};
pka=function(a,b,c){hha(b);var d=a.j;g.cc(b,function(e){var f=g.Jr(e.criteria,function(h){var l=dka(h);if(null==l)h=null;else if(h=new aka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Eaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Fs(f,function(h){return null==h})||mja(c,new ju(e.id,e.event,f,d))})};
qka=function(){var a=[],b=Qr();a.push(Ar($t));qr(b.Hc,"mvp_lv")&&a.push(Ar(vu));b=[new ru,new uu];b.push(new Vt(a));b.push(new Zt(wr));return b};
rka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=cs(),c=Qr(),d=Gs();ds=b;c.C=79463069;"o"!==a.B&&(Wja=wha(wr));if(Hha()){bu.j.MU=0;bu.j.AO=cs()-b;var e=qka(),f=Ar(Ut);f.B=e;Kja(f,function(){zu()})?bu.done||(Tja(),Ls(f.j.j,a),cu()):d.C?zu():cu()}else Au=!0}catch(h){throw St.reset(),h;
}}};
Cu=function(a){bu.B.cancel();Bu=a;bu.done=!0};
Du=function(a){if(a.B)return a.B;var b=Ar(Ut).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
Eu=function(a,b,c){if(null==a.j)return b.sB|=4,!1;a=ska(a.j,c,b);b.sB|=a;return 0==a};
zu=function(){var a=[new Zt(wr)],b=Ar(Ut);b.B=a;Kja(b,function(){Cu("i")})?bu.done||(Tja(),cu()):Cu("i")};
tka=function(a,b){if(!a.Jb){var c=Ot(a,"start",Is());c=a.yQ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="960";null!==fu&&(d.v=fu);xm(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Xja();xm(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+at($s(new Zs,d));Gia(b);a.Jb=!0}};
Fu=function(a,b,c){du(bu,[a],!Is());qja(a,c);4!=c&&pja(a.Ba,c,a.SH);return Ot(a,b,Is())};
oka=function(a){Vja(function(){var b=uka();null!=a.B&&(b.sdk=a.B);var c=Ar(Ut);null!=c.j&&(b.avms=c.j.getName());return b})};
vka=function(a,b,c,d){var e=Eja(St,c);null!==e&&e.Zi!==b&&(a.hH(e),e=null);e||(b=a.cF(c,cs(),!1,b),0==St.B.length&&(Qr().C=79463069),Jja([b]),e=b,e.D=Du(a),d&&(e.Xa=d));return e};
wka=function(a,b){var c=a[b];void 0!==c&&0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
gla=function(a){if(!a)return zv;var b=document.createElement("div").style;bla(a).forEach(function(c){var d=g.Xc&&c in dla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fc(d,"--")||fc(d,"var")||(c=ala(ela,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Zka(c),null!=c&&ala(fla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.le(b.cssText||"",ko)};
bla=function(a){g.bb(a)?a=g.Lb(a):(a=g.id(a),g.Ib(a,"cssText"));return a};
g.Bv=function(a){var b,c=b=0,d=!1;a=a.split(hla);for(var e=0;e=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Dv(a,c);var l=(Dv(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else fh;h++)fg.nb()};
g.Lv=function(a){this.j=a};
rla=function(){};
Mv=function(){};
Nv=function(a){this.j=a;this.B=null};
Ov=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Lf(Error("Storage mechanism: Storage unavailable"))};
Pv=function(){var a=null;try{a=g.Sa.localStorage||null}catch(b){}Nv.call(this,a)};
sla=function(){var a=null;try{a=g.Sa.sessionStorage||null}catch(b){}Nv.call(this,a)};
Rv=function(a,b){this.B=a;this.j=null;if(g.ef&&!g.Wc(9)){Qv||(Qv=new g.tv);this.j=Qv.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Qv.set(a,this.j));try{this.j.load(this.B)}catch(c){this.j=null}}};
Sv=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return tla[b]})};
Tv=function(a){try{a.j.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Uv=function(a,b){this.B=a;this.j=b+"::"};
g.Vv=function(a){var b=new Pv;return b.isAvailable()?a?new Uv(b,a):b:null};
Wv=function(a,b){this.j=a;this.B=b};
Xv=function(a){this.j=[];if(a)a:{if(a instanceof Xv){var b=a.pp();a=a.Wl();if(0>=this.j.length){for(var c=this.j,d=0;df?1:2048>f?2:65536>f?3:4}var l=new Zv.ox(e);for(b=c=0;cf?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
$v=function(a){for(var b=a.length;0<=--b;)a[b]=0};
aw=function(a,b,c,d,e){this.D_=a;this.e6=b;this.d6=c;this.R5=d;this.p8=e;this.iX=a&&a.length};
bw=function(a,b){this.MV=a;this.Wz=0;this.Zt=b};
cw=function(a,b){a.og[a.pending++]=b&255;a.og[a.pending++]=b>>>8&255};
dw=function(a,b,c){a.Xh>16-c?(a.mj|=b<>16-a.Xh,a.Xh+=c-16):(a.mj|=b<>>=1,c<<=1;while(0<--b);return c>>>1};
xla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=wla(d[e]++,e))};
yla=function(a){var b;for(b=0;286>b;b++)a.Qj[2*b]=0;for(b=0;30>b;b++)a.ev[2*b]=0;for(b=0;19>b;b++)a.Ri[2*b]=0;a.Qj[512]=1;a.gr=a.iB=0;a.jm=a.matches=0};
zla=function(a){8e?jw[e]:jw[256+(e>>>7)];ew(a,h,c);l=kw[h];0!==l&&(e-=lw[h],dw(a,e,l))}}while(da.Iq;){var m=a.zg[++a.Iq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.gr--;e&&(a.iB-=d[2*m+1])}b.Wz=l;for(h=a.Iq>>1;1<=h;h--)fw(a,c,h);m=f;do h=a.zg[1],a.zg[1]=a.zg[a.Iq--],fw(a,c,1),d=a.zg[1],a.zg[--a.pz]=h,a.zg[--a.pz]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.zg[1]=m++,fw(a,c,1);while(2<=
a.Iq);a.zg[--a.pz]=a.zg[1];h=b.MV;m=b.Wz;d=b.Zt.D_;e=b.Zt.iX;f=b.Zt.e6;var n=b.Zt.d6,p=b.Zt.p8,q,r=0;for(q=0;15>=q;q++)a.jq[q]=0;h[2*a.zg[a.pz]+1]=0;for(b=a.pz+1;573>b;b++){var t=a.zg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.jq[q]++;var v=0;t>=n&&(v=f[t-n]);var x=h[2*t];a.gr+=x*(q+v);e&&(a.iB+=x*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.jq[q];)q--;a.jq[q]--;a.jq[q+1]+=2;a.jq[p]--;r-=2}while(0m||(h[2*d+1]!==q&&(a.gr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}xla(c,l,a.jq)};
Dla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h=h?a.Ri[34]++:a.Ri[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Ela=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h=h?(ew(a,17,a.Ri),dw(a,h-3,3)):(ew(a,18,a.Ri),dw(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Fla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Qj[2*c])return 0;if(0!==a.Qj[18]||0!==a.Qj[20]||0!==a.Qj[26])return 1;for(c=32;256>c;c++)if(0!==a.Qj[2*c])return 1;return 0};
nw=function(a,b,c){a.og[a.GC+2*a.jm]=b>>>8&255;a.og[a.GC+2*a.jm+1]=b&255;a.og[a.WO+a.jm]=c&255;a.jm++;0===b?a.Qj[2*c]++:(a.matches++,b--,a.Qj[2*(gw[c]+256+1)]++,a.ev[2*(256>b?jw[b]:jw[256+(b>>>7)])]++);return a.jm===a.aE-1};
pw=function(a,b){a.msg=ow[b];return b};
qw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
rw=function(a){var b=a.state,c=b.pending;c>a.Le&&(c=a.Le);0!==c&&(Zv.wy(a.output,b.og,b.IE,c,a.eA),a.eA+=c,b.IE+=c,a.UR+=c,a.Le-=c,b.pending-=c,0===b.pending&&(b.IE=0))};
vw=function(a,b){var c=0<=a.Fk?a.Fk:-1,d=a.Eb-a.Fk,e=0;if(0>>3;var h=a.iB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)dw(a,b?1:0,3),Ala(a,c,d);else if(4===a.strategy||h===f)dw(a,2+(b?1:0),3),Cla(a,tw,uw);else{dw(a,4+(b?1:0),3);c=a.GI.Wz+1;d=a.gH.Wz+1;e+=1;dw(a,c-257,5);dw(a,d-1,5);dw(a,e-4,4);for(f=0;f>>8&255;a.og[a.pending++]=b&255};
Hla=function(a,b){var c=a.hY,d=a.Eb,e=a.Zk,f=a.xY,h=a.Eb>a.gj-262?a.Eb-(a.gj-262):0,l=a.window,m=a.vu,n=a.Lp,p=a.Eb+258,q=l[d+e-1],r=l[d+e];a.Zk>=a.IW&&(c>>=2);f>a.kc&&(f=a.kc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&de){a.Uz=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.kc?e:a.kc};
Aw=function(a){var b=a.gj,c;do{var d=a.G0-a.kc-a.Eb;if(a.Eb>=b+(b-262)){Zv.wy(a.window,a.window,b,b,0);a.Uz-=b;a.Eb-=b;a.Fk-=b;var e=c=a.jI;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Lp[--e],a.Lp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ue.lj)break;e=a.ue;c=a.window;f=a.Eb+a.kc;var h=e.lj;h>d&&(h=d);0===h?c=0:(e.lj-=h,Zv.wy(c,e.input,e.ow,h,f),1===e.state.wrap?e.Qd=yw(e.Qd,c,h,f):2===e.state.wrap&&(e.Qd=zw(e.Qd,c,h,f)),e.ow+=h,e.ex+=h,c=h);a.kc+=c;if(3<=a.kc+a.oh)for(d=a.Eb-a.oh,
a.De=a.window[d],a.De=(a.De<a.kc+a.oh););}while(262>a.kc&&0!==a.ue.lj)};
Bw=function(a,b){for(var c;;){if(262>a.kc){Aw(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.De=(a.De<a.Eb?a.Eb:2;return 4===b?(vw(a,!0),0===a.ue.Le?3:4):a.jm&&(vw(a,!1),0===a.ue.Le)?1:2};
Cw=function(a,b){for(var c,d;;){if(262>a.kc){Aw(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.De=(a.De<=a.Ye&&(1===a.strategy||3===a.Ye&&4096a.Eb?a.Eb:2;return 4===b?(vw(a,!0),0===a.ue.Le?3:4):a.jm&&(vw(a,!1),0===a.ue.Le)?1:2};
Ila=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.kc){Aw(a);if(258>=a.kc&&0===b)return 1;if(0===a.kc)break}a.Ye=0;if(3<=a.kc&&0a.kc&&(a.Ye=a.kc)}3<=a.Ye?(c=nw(a,1,a.Ye-3),a.kc-=a.Ye,a.Eb+=a.Ye,a.Ye=0):(c=nw(a,0,a.window[a.Eb]),a.kc--,a.Eb++);if(c&&(vw(a,!1),0===a.ue.Le))return 1}a.oh=0;return 4===
b?(vw(a,!0),0===a.ue.Le?3:4):a.jm&&(vw(a,!1),0===a.ue.Le)?1:2};
Jla=function(a,b){for(var c;;){if(0===a.kc&&(Aw(a),0===a.kc)){if(0===b)return 1;break}a.Ye=0;c=nw(a,0,a.window[a.Eb]);a.kc--;a.Eb++;if(c&&(vw(a,!1),0===a.ue.Le))return 1}a.oh=0;return 4===b?(vw(a,!0),0===a.ue.Le?3:4):a.jm&&(vw(a,!1),0===a.ue.Le)?1:2};
Dw=function(a,b,c,d,e){this.S6=a;this.o8=b;this.G8=c;this.n8=d;this.func=e};
Kla=function(){this.ue=null;this.status=0;this.og=null;this.wrap=this.pending=this.IE=this.tm=0;this.Ld=null;this.vn=0;this.method=8;this.Kz=-1;this.vu=this.nS=this.gj=0;this.window=null;this.G0=0;this.head=this.Lp=null;this.xY=this.IW=this.strategy=this.level=this.iP=this.hY=this.Zk=this.kc=this.Uz=this.Eb=this.gw=this.GZ=this.Ye=this.Fk=this.Gq=this.Fq=this.sO=this.jI=this.De=0;this.Qj=new Zv.aq(1146);this.ev=new Zv.aq(122);this.Ri=new Zv.aq(78);qw(this.Qj);qw(this.ev);qw(this.Ri);this.bV=this.gH=
this.GI=null;this.jq=new Zv.aq(16);this.zg=new Zv.aq(573);qw(this.zg);this.pz=this.Iq=0;this.depth=new Zv.aq(573);qw(this.depth);this.Xh=this.mj=this.oh=this.matches=this.iB=this.gr=this.GC=this.jm=this.aE=this.WO=0};
Lla=function(a,b){if(!a||!a.state||5b)return a?pw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.lj||666===c.status&&4!==b)return pw(a,0===a.Le?-5:-2);c.ue=a;var d=c.Kz;c.Kz=b;if(42===c.status)if(2===c.wrap)a.Qd=0,ww(c,31),ww(c,139),ww(c,8),c.Ld?(ww(c,(c.Ld.text?1:0)+(c.Ld.Ss?2:0)+(c.Ld.extra?4:0)+(c.Ld.name?8:0)+(c.Ld.comment?16:0)),ww(c,c.Ld.time&255),ww(c,c.Ld.time>>8&255),ww(c,c.Ld.time>>16&255),ww(c,c.Ld.time>>24&255),ww(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),ww(c,c.Ld.os&
255),c.Ld.extra&&c.Ld.extra.length&&(ww(c,c.Ld.extra.length&255),ww(c,c.Ld.extra.length>>8&255)),c.Ld.Ss&&(a.Qd=zw(a.Qd,c.og,c.pending,0)),c.vn=0,c.status=69):(ww(c,0),ww(c,0),ww(c,0),ww(c,0),ww(c,0),ww(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),ww(c,3),c.status=113);else{var e=8+(c.nS-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Eb&&(e|=32);c.status=113;xw(c,e+(31-e%31));0!==c.Eb&&(xw(c,a.Qd>>>16),xw(c,a.Qd&65535));a.Qd=1}if(69===c.status)if(c.Ld.extra){for(e=
c.pending;c.vn<(c.Ld.extra.length&65535)&&(c.pending!==c.tm||(c.Ld.Ss&&c.pending>e&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e)),rw(a),e=c.pending,c.pending!==c.tm));)ww(c,c.Ld.extra[c.vn]&255),c.vn++;c.Ld.Ss&&c.pending>e&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e));c.vn===c.Ld.extra.length&&(c.vn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Ld.name){e=c.pending;do{if(c.pending===c.tm&&(c.Ld.Ss&&c.pending>e&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e)),rw(a),e=c.pending,c.pending===c.tm)){var f=1;break}f=c.vne&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e));0===f&&(c.vn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Ld.comment){e=c.pending;do{if(c.pending===c.tm&&(c.Ld.Ss&&c.pending>e&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e)),rw(a),e=c.pending,c.pending===c.tm)){f=1;break}f=c.vne&&(a.Qd=zw(a.Qd,c.og,c.pending-e,e));0===f&&(c.status=103)}else c.status=
103;103===c.status&&(c.Ld.Ss?(c.pending+2>c.tm&&rw(a),c.pending+2<=c.tm&&(ww(c,a.Qd&255),ww(c,a.Qd>>8&255),a.Qd=0,c.status=113)):c.status=113);if(0!==c.pending){if(rw(a),0===a.Le)return c.Kz=-1,0}else if(0===a.lj&&(b<<1)-(4>=8,c.Xh-=8)):5!==b&&(dw(c,0,3),Ala(c,0,0),3===b&&(qw(c.head),0===c.kc&&(c.Eb=0,c.Fk=0,c.oh=0))),rw(a),0===a.Le))return c.Kz=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(ww(c,a.Qd&255),ww(c,a.Qd>>8&255),ww(c,a.Qd>>16&255),ww(c,a.Qd>>24&255),ww(c,a.ex&255),ww(c,a.ex>>8&255),ww(c,a.ex>>16&255),ww(c,a.ex>>24&255)):(xw(c,a.Qd>>>16),xw(c,a.Qd&65535));rw(a);0a.wu&&(a.wu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ue=new Mla;this.ue.Le=0;var b=this.ue;var c=a.level,d=a.method,e=a.wu,f=a.v8,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15f||9e||15c||9h||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Qd=2===c.wrap?0:1;c.Kz=0;if(!Nla){d=Array(16);for(f=h=0;28>f;f++)for(iw[f]=h,e=0;e<
1<f;f++)for(lw[f]=h,e=0;e<1<>=7;30>f;f++)for(lw[f]=h<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)tw[2*e+1]=8,e++,d[8]++;for(;255>=e;)tw[2*e+1]=9,e++,d[9]++;for(;279>=e;)tw[2*e+1]=7,e++,d[7]++;for(;287>=e;)tw[2*e+1]=8,e++,d[8]++;xla(tw,287,d);for(e=0;30>e;e++)uw[2*e+1]=5,uw[2*e]=wla(e,5);Ola=new aw(tw,hw,257,286,15);Pla=new aw(uw,kw,0,30,15);Qla=new aw([],Rla,0,19,7);Nla=!0}c.GI=new bw(c.Qj,Ola);
c.gH=new bw(c.ev,Pla);c.bV=new bw(c.Ri,Qla);c.mj=0;c.Xh=0;yla(c);c=0}else c=pw(b,-2);0===c&&(b=b.state,b.G0=2*b.gj,qw(b.head),b.iP=Ew[b.level].o8,b.IW=Ew[b.level].S6,b.xY=Ew[b.level].G8,b.hY=Ew[b.level].n8,b.Eb=0,b.Fk=0,b.kc=0,b.oh=0,b.Ye=b.Zk=2,b.gw=0,b.De=0);b=c}}else b=-2;if(0!==b)throw Error(ow[b]);a.header&&(b=this.ue)&&b.state&&2===b.state.wrap&&(b.state.Ld=a.header);if(a.HC){var n;"string"===typeof a.HC?n=vla(a.HC):"[object ArrayBuffer]"===Sla.call(a.HC)?n=new Uint8Array(a.HC):n=a.HC;a=this.ue;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.kc)b=-2;else{1===b&&(a.Qd=yw(a.Qd,f,h,0));n.wrap=0;h>=n.gj&&(0===b&&(qw(n.head),n.Eb=0,n.Fk=0,n.oh=0),c=new Zv.ox(n.gj),Zv.wy(c,f,h-n.gj,n.gj,0),f=c,h=n.gj);c=a.lj;d=a.ow;e=a.input;a.lj=h;a.ow=0;a.input=f;for(Aw(n);3<=n.kc;){f=n.Eb;h=n.kc-2;do n.De=(n.De<c[73]&&(1>c[28]?(((((((0,c[38])(c[13]),(0,c[31])(c[17],c[55]),c[26])(c[25],c[18]),(0,c[8])(c[21]),
c[31])(c[45],c[61]),c[999505+-244*Math.pow(8,4)])(c[47],c[60]),c[17])(c[47],c[29]),c[31])(c[30],c[Math.pow(7,5)-64-16739]),c[0])(c[16],c[73]):((((0,c[81])(c[77],c[70]),(((0,c[26])((0,c[75])(),c[82],c[77]),(0,c[0])(c[61],c[1]),c[48])(c[16]),c[26])((0,c[19])(),c[41],c[77]),c[3])(c[-115+Math.pow(2,4)+111],c[-336087+140*Math.pow(7,4)]),c[3])(c[16],c[14+Math.pow(2,5)+-25]),(0,c[74])(c[77]),(0,c[0])(c[61],c[43]))),(0,c[78])(c[-155*Math.pow(6,4)- -200884]),(0,c[26])((0,c[9])(),c[41],c[77])}catch(d){5!==
c[40]?(0,c[31])(c[65-Math.pow(1,2)%45],c[4]):(0,c[11])(c[12],c[5]),-9!=c[30]&&(-4!=c[-648-Math.pow(6,4)+2006]?(0,c[79-Math.pow(2,1)+-66])(c[77],c[28])-(0,c[3])(c[47],c[56]):(0,c[70])((0,c[1])(c[14],c[61]),c[24],(0,c[73])(),c[80],c[75]))}try{-1>c[Math.pow(2,5)+7-35]&&(((0,c[79])(c[2],c[38]),(0,c[29])(c[16],c[2]),c[79])(c[89-Math.pow(7,2)- -35],c[56]),c[79])(c[46400-Math.pow(8,new Date("1970-01-01T04:15:02.000+04:15")/1E3)+-46326],c[21]),(0,c[76])(),(0,c[24])((0,c[73])(),c[39],c[10])}catch(d){}try{3!=
c[19]&&(-8==c[16]||((0,c[25])((0,c[1])(c[75],c[30]),c[70],((0,c[9])(c[75],c[48])<(0,c[1])(c[10],c[23]),(0,c[1])(c[14],c[63]),c[192*Math.pow(5,3)-23971])(c[47],c[59]),(0,c[70])((0,c[33])(c[8],c[59]),c[64],c[77],c[10]),((0,c[25])(c[54]),c[8])(c[31],c[14-Math.pow(5,4)- -676])-(0,c[12])(c[60],c[new Date("1969-12-31T14:00:54.000-10:00")/1E3]),c[44],c[37],c[24]),0))&&(((0,c[28-Math.pow(8,2)+39])((0,c[63])(),c[18],c[54]),(0,c[49])((0,c[25])(c[38]),c[-195*Math.pow(4,4)- -49992],c[65],c[23]),(0,c[72])(c[77],
c[29]),c[81])(c[72],(0,c[3])((0,c[-211*Math.pow(2,5)- -6822])(),c[18],c[77]),(0,c[51])(c[38]),(0,c[72])(c[65],c[0]),c[54],c[21]),c[3])((0,c[52])(),c[18],c[54])<((0,c[25])(c[77]),(0,c[25])(c[24])),5!=c[31]&&(-4==c[69]||(((0,c[64])(c[73],c[56]),c[49])((0,c[3])((0,c[63])(),c[18],c[54]),c[8],c[Math.pow(4,3)- -272+-290],c[73]),""))&&((0,c[51])(c[77]),(0,c[12])(c[11],c[65]),c[72])(c[38],c[1]),2<=c[71]&&(-4!==c[20]?((0,c[49])(((0,c[12])(c[36],c[77]),c[64])(c[54],c[57]),c[3],(0,c[63])(),c[59],c[54]),(0,c[25])(c[73])):
(((0,c[72])(c[147+Math.pow(6,2)-106],c[74]),(0,c[64])(c[77],c[39]),c[64])(c[54],c[19404-Math.pow(1,4)-new Date("1969-12-31T23:23:04.000-06:00")/1E3]),c[72])(c[54],c[15])),0!=c[48]&&(0,c[12])(c[16],c[73])}catch(d){(0,c[49])((0,c[49])(((0,c[3])((0,c[52])(),c[18],c[73]),c[new Date("1969-12-31T16:01:12.000-08:00")/1E3])(c[73],c[68]),c[72],c[65],c[32]),c[new Date("1969-12-31T13:45:03.000-10:15")/1E3],(0,c[70])(),c[59],c[73])}}catch(d){return"enhanced_except_opoB3eX-_w8_"+a}return b.join("")};
g.Lw=function(a){this.name=a};
Mw=function(a){this.ea=N(a)};
Nw=function(a){this.ea=N(a)};
Ow=function(a){this.ea=N(a)};
Pw=function(a){this.ea=N(a)};
Qw=function(a){this.ea=N(a)};
Rw=function(a){this.ea=N(a)};
Sw=function(a){this.ea=N(a)};
Tw=function(a){this.ea=N(a)};
Uw=function(a){this.ea=N(a)};
Vw=function(a){this.ea=N(a)};
Ww=function(a){this.ea=N(a)};
Xw=function(a){this.ea=N(a)};
Yw=function(a){this.ea=N(a)};
Zw=function(a){this.ea=N(a)};
$w=function(a){this.ea=N(a)};
ax=function(a){this.ea=N(a)};
bx=function(a){this.ea=N(a)};
cx=function(a){this.ea=N(a)};
dx=function(a){this.ea=N(a)};
ex=function(a){this.ea=N(a)};
fx=function(a){this.ea=N(a)};
gx=function(a){this.ea=N(a)};
hx=function(a){this.ea=N(a)};
ix=function(a){this.ea=N(a)};
jx=function(a){this.ea=N(a)};
kx=function(a){this.ea=N(a)};
lx=function(a){this.ea=N(a)};
mx=function(a){this.ea=N(a)};
nx=function(a){this.ea=N(a)};
ox=function(a){this.ea=N(a)};
px=function(a){this.ea=N(a)};
qx=function(a){this.ea=N(a)};
rx=function(a){this.ea=N(a)};
sx=function(a){this.ea=N(a)};
tx=function(a){this.ea=N(a)};
ux=function(a){this.ea=N(a)};
vx=function(a){this.ea=N(a)};
wx=function(a){this.ea=N(a)};
xx=function(a){this.ea=N(a)};
yx=function(a){this.ea=N(a)};
zx=function(a){this.ea=N(a)};
Ax=function(a){this.ea=N(a)};
Bx=function(a){this.ea=N(a)};
Cx=function(a){this.ea=N(a)};
Dx=function(a){this.ea=N(a)};
Ex=function(a){this.ea=N(a)};
Yx=function(a){this.ea=N(a)};
Zx=function(a){this.ea=N(a)};
$x=function(a){this.ea=N(a)};
ay=function(a){this.ea=N(a)};
by=function(a){this.ea=N(a)};
cy=function(a){this.ea=N(a)};
dy=function(a){this.ea=N(a)};
ey=function(a){this.ea=N(a)};
fy=function(a){this.ea=N(a)};
gy=function(a){this.ea=N(a)};
hy=function(a){this.ea=N(a)};
iy=function(a){this.ea=N(a)};
jy=function(a){this.ea=N(a)};
ky=function(a){this.ea=N(a)};
ly=function(a){this.ea=N(a)};
my=function(a){this.ea=N(a)};
ny=function(a){this.ea=N(a)};
oy=function(a){this.ea=N(a)};
py=function(a){this.ea=N(a)};
qy=function(a){this.ea=N(a)};
ry=function(a){this.ea=N(a)};
sy=function(a){this.ea=N(a)};
ty=function(a){this.ea=N(a)};
uy=function(a){this.ea=N(a)};
vy=function(a){this.ea=N(a)};
wy=function(a){this.ea=N(a)};
yy=function(a){this.ea=N(a)};
zy=function(a){this.ea=N(a)};
Ay=function(a){this.ea=N(a)};
By=function(a){this.ea=N(a)};
Cy=function(a){this.ea=N(a)};
Dy=function(a){this.ea=N(a)};
Ey=function(a){this.ea=N(a)};
Fy=function(a){this.ea=N(a)};
Gy=function(a){this.ea=N(a)};
Hy=function(a){this.ea=N(a)};
cma=function(a,b){return Yj(a,1,b)};
Iy=function(a){this.ea=N(a)};
Jy=function(a){this.ea=N(a)};
Ky=function(a){this.ea=N(a)};
Ly=function(a){this.ea=N(a)};
My=function(a){this.ea=N(a)};
Ny=function(a){this.ea=N(a)};
Oy=function(a){this.ea=N(a)};
Py=function(a){this.ea=N(a)};
Qy=function(a){this.ea=N(a)};
Ry=function(a){this.ea=N(a)};
g.Sy=function(a){this.ea=N(a)};
Ty=function(a){this.ea=N(a)};
Uy=function(a){this.ea=N(a)};
Vy=function(a){this.ea=N(a)};
Wy=function(a){this.ea=N(a)};
Xy=function(a){this.ea=N(a)};
Yy=function(a){this.ea=N(a)};
Zy=function(a){this.ea=N(a)};
$y=function(a){this.ea=N(a)};
az=function(a){this.ea=N(a)};
bz=function(a){this.ea=N(a)};
cz=function(a){this.ea=N(a)};
dz=function(a){this.ea=N(a)};
ez=function(a){this.ea=N(a)};
fz=function(a){this.ea=N(a)};
gz=function(a){this.ea=N(a)};
hz=function(a){this.ea=N(a)};
iz=function(a){this.ea=N(a)};
jz=function(a){this.ea=N(a)};
kz=function(a){this.ea=N(a)};
lz=function(a){this.ea=N(a)};
mz=function(a){this.ea=N(a)};
nz=function(a){this.ea=N(a)};
oz=function(a){this.ea=N(a)};
pz=function(a){this.ea=N(a)};
qz=function(a){this.ea=N(a)};
rz=function(a){this.ea=N(a)};
sz=function(a){this.ea=N(a)};
tz=function(a){this.ea=N(a)};
uz=function(a){this.ea=N(a)};
vz=function(a){this.ea=N(a)};
wz=function(a){this.ea=N(a)};
xz=function(a){this.ea=N(a)};
yz=function(a){this.ea=N(a)};
zz=function(a){this.ea=N(a)};
Az=function(a){this.ea=N(a)};
Bz=function(a){this.ea=N(a)};
Cz=function(a){this.ea=N(a)};
Dz=function(a){this.ea=N(a)};
Ez=function(a){this.ea=N(a)};
Fz=function(a){this.ea=N(a)};
Gz=function(a){this.ea=N(a)};
Hz=function(a){this.ea=N(a)};
Iz=function(a){this.ea=N(a)};
Jz=function(a){this.ea=N(a)};
Kz=function(a){this.ea=N(a)};
Lz=function(a){this.ea=N(a)};
Mz=function(a){this.ea=N(a)};
Nz=function(a){this.ea=N(a)};
Oz=function(a){this.ea=N(a)};
Pz=function(a){this.ea=N(a)};
Qz=function(a){this.ea=N(a)};
Rz=function(a){this.ea=N(a)};
Sz=function(a){this.ea=N(a)};
Tz=function(a){this.ea=N(a)};
Uz=function(a){this.ea=N(a)};
Vz=function(a){this.ea=N(a)};
Wz=function(a){this.ea=N(a)};
Xz=function(a){this.ea=N(a)};
Yz=function(a){this.ea=N(a)};
Zz=function(a){this.ea=N(a)};
$z=function(a){this.ea=N(a)};
aA=function(a){this.ea=N(a)};
bA=function(a){this.ea=N(a)};
cA=function(a){this.ea=N(a)};
dA=function(a){this.ea=N(a)};
eA=function(a){this.ea=N(a)};
fA=function(a){this.ea=N(a)};
gA=function(a){this.ea=N(a)};
hA=function(a){this.ea=N(a)};
iA=function(a){this.ea=N(a)};
dma=function(a){this.ea=N(a)};
ema=function(a){this.ea=N(a)};
fma=function(a){this.ea=N(a)};
jA=function(a){this.ea=N(a)};
gma=function(a){this.ea=N(a)};
kA=function(a){this.ea=N(a)};
lA=function(a){this.ea=N(a)};
hma=function(a){this.ea=N(a)};
mA=function(a){this.ea=N(a)};
ima=function(a){this.ea=N(a)};
nA=function(a){this.ea=N(a)};
oA=function(a){this.ea=N(a)};
pA=function(a){this.ea=N(a)};
qA=function(a){this.ea=N(a)};
g.rA=function(a){this.ea=N(a)};
g.sA=function(a){this.ea=N(a)};
tA=function(a){this.ea=N(a)};
uA=function(a){this.ea=N(a)};
vA=function(a){this.ea=N(a)};
jma=function(a){this.ea=N(a)};
wA=function(a){this.ea=N(a)};
xA=function(a){this.ea=N(a)};
yA=function(a){this.ea=N(a)};
kma=function(a){this.ea=N(a)};
zA=function(a){this.ea=N(a)};
AA=function(a){this.ea=N(a)};
BA=function(a){this.ea=N(a)};
CA=function(a){this.ea=N(a)};
lma=function(a){this.ea=N(a)};
DA=function(a){this.ea=N(a)};
EA=function(a){this.ea=N(a)};
FA=function(a){this.ea=N(a)};
GA=function(a){this.ea=N(a)};
HA=function(a){this.ea=N(a)};
mma=function(a){this.ea=N(a)};
IA=function(a){this.ea=N(a)};
nma=function(a){this.ea=N(a)};
JA=function(a){this.ea=N(a)};
oma=function(a){this.ea=N(a)};
KA=function(a){this.ea=N(a)};
LA=function(a){this.ea=N(a)};
pma=function(a){this.ea=N(a)};
MA=function(a){this.ea=N(a)};
NA=function(a){this.ea=N(a)};
OA=function(a){this.ea=N(a)};
qma=function(a){this.ea=N(a)};
rma=function(a){this.ea=N(a)};
sma=function(a){this.ea=N(a)};
tma=function(a){this.ea=N(a)};
PA=function(a){this.ea=N(a)};
QA=function(a){this.ea=N(a)};
uma=function(a){this.ea=N(a)};
RA=function(a){this.ea=N(a)};
vma=function(a){this.ea=N(a)};
wma=function(a){this.ea=N(a)};
xma=function(a){this.ea=N(a)};
yma=function(a){this.ea=N(a)};
zma=function(a){this.ea=N(a)};
SA=function(a){this.ea=N(a)};
TA=function(a){this.ea=N(a)};
Ama=function(a){this.ea=N(a)};
Bma=function(a){this.ea=N(a)};
UA=function(a){this.ea=N(a)};
VA=function(a){this.ea=N(a)};
Cma=function(a){this.ea=N(a)};
WA=function(a){this.ea=N(a)};
Dma=function(a){this.ea=N(a)};
Ema=function(a){this.ea=N(a)};
XA=function(a){this.ea=N(a)};
Fma=function(a){this.ea=N(a)};
Gma=function(a){this.ea=N(a)};
Hma=function(a){this.ea=N(a)};
Ima=function(a){this.ea=N(a)};
YA=function(a){this.ea=N(a)};
ZA=function(a){this.ea=N(a)};
$A=function(a){this.ea=N(a)};
aB=function(a){this.ea=N(a)};
Jma=function(a){this.ea=N(a)};
Kma=function(a){this.ea=N(a)};
bB=function(a){this.ea=N(a)};
Lma=function(a){this.ea=N(a)};
Mma=function(a){this.ea=N(a)};
Nma=function(a){this.ea=N(a)};
Oma=function(a){this.ea=N(a)};
cB=function(a){this.ea=N(a)};
Pma=function(a){this.ea=N(a)};
Qma=function(a){this.ea=N(a)};
Rma=function(a){this.ea=N(a)};
Sma=function(a){this.ea=N(a)};
Tma=function(a){this.ea=N(a)};
Uma=function(a){this.ea=N(a)};
Vma=function(a){this.ea=N(a)};
Wma=function(a){this.ea=N(a)};
Xma=function(a){this.ea=N(a)};
Yma=function(a){this.ea=N(a)};
dB=function(a){this.ea=N(a)};
Zma=function(a){this.ea=N(a)};
eB=function(a){this.ea=N(a)};
fB=function(a){this.ea=N(a)};
$ma=function(a){this.ea=N(a)};
ana=function(a){this.ea=N(a)};
gB=function(a){this.ea=N(a)};
bna=function(a){this.ea=N(a)};
cna=function(a){this.ea=N(a)};
dna=function(a){this.ea=N(a)};
ena=function(a){this.ea=N(a)};
fna=function(a){this.ea=N(a)};
gna=function(a){this.ea=N(a)};
hna=function(a){this.ea=N(a)};
ina=function(a){this.ea=N(a)};
hB=function(a){this.ea=N(a)};
jna=function(a){this.ea=N(a)};
kna=function(a){this.ea=N(a)};
lna=function(a){this.ea=N(a)};
iB=function(a){this.ea=N(a)};
mna=function(a){this.ea=N(a)};
nna=function(a){this.ea=N(a)};
jB=function(a){this.ea=N(a)};
mB=function(a){this.ea=N(a)};
ona=function(a){this.ea=N(a)};
nB=function(a){this.ea=N(a)};
oB=function(a){this.ea=N(a)};
pna=function(a){this.ea=N(a)};
pB=function(a){this.ea=N(a)};
qna=function(a){this.ea=N(a)};
qB=function(a){this.ea=N(a)};
rna=function(a){this.ea=N(a)};
rB=function(a){this.ea=N(a)};
sB=function(a){this.ea=N(a)};
sna=function(a){this.ea=N(a)};
tna=function(a){this.ea=N(a)};
tB=function(a){this.ea=N(a)};
una=function(a){this.ea=N(a)};
vna=function(a){this.ea=N(a)};
uB=function(a){this.ea=N(a)};
wna=function(a){this.ea=N(a)};
xna=function(a){this.ea=N(a)};
yna=function(a){this.ea=N(a)};
zna=function(a){this.ea=N(a)};
Ana=function(a){this.ea=N(a)};
Bna=function(a){this.ea=N(a)};
Cna=function(a){this.ea=N(a)};
Dna=function(a){this.ea=N(a)};
Ena=function(a){this.ea=N(a)};
Fna=function(a){this.ea=N(a)};
vB=function(a){this.ea=N(a)};
Gna=function(a){this.ea=N(a)};
Hna=function(a){this.ea=N(a)};
wB=function(a){this.ea=N(a)};
Ina=function(a){this.ea=N(a)};
xB=function(a){this.ea=N(a)};
yB=function(a){this.ea=N(a)};
Jna=function(a){this.ea=N(a)};
Kna=function(a){this.ea=N(a)};
zB=function(a){this.ea=N(a)};
Lna=function(a){this.ea=N(a)};
Mna=function(a,b){Lj(a,ZA,1,b)};
AB=function(a){this.ea=N(a)};
Nna=function(a,b){return Lj(a,ZA,1,b)};
BB=function(a){this.ea=N(a)};
Ona=function(a,b){return Lj(a,ZA,2,b)};
CB=function(a){this.ea=N(a)};
DB=function(a){this.ea=N(a)};
EB=function(a){this.ea=N(a)};
FB=function(a){this.ea=N(a)};
Pna=function(a){this.ea=N(a)};
GB=function(a){this.ea=N(a)};
HB=function(a){var b=new GB;return O(b,1,a)};
IB=function(a,b){return O(a,2,b)};
JB=function(a){this.ea=N(a)};
Qna=function(a){this.ea=N(a)};
KB=function(a){this.ea=N(a)};
LB=function(a,b){Oj(a,68,GB,b)};
Rna=function(a){this.ea=N(a)};
Sna=function(a){this.ea=N(a)};
MB=function(a){this.ea=N(a)};
NB=function(a){this.ea=N(a)};
OB=function(a){this.ea=N(a)};
Tna=function(a){this.ea=N(a)};
PB=function(a){this.ea=N(a)};
Una=function(a){this.ea=N(a)};
Vna=function(a){this.ea=N(a)};
Wna=function(a){this.ea=N(a)};
QB=function(a){this.ea=N(a)};
Xna=function(a){this.ea=N(a)};
Yna=function(a){this.ea=N(a)};
Zna=function(a){this.ea=N(a)};
RB=function(a){this.ea=N(a)};
$na=function(a){this.ea=N(a)};
aoa=function(a){this.ea=N(a)};
SB=function(a){this.ea=N(a)};
TB=function(a){this.ea=N(a)};
boa=function(a){this.ea=N(a)};
UB=function(a){this.ea=N(a)};
coa=function(a){this.ea=N(a)};
doa=function(a){this.ea=N(a)};
VB=function(a){this.ea=N(a,497)};
eoa=function(a){this.ea=N(a)};
WB=function(a){this.ea=N(a)};
foa=function(a){this.ea=N(a)};
goa=function(){return g.Va("yt.ads.biscotti.lastId_")||""};
hoa=function(a){g.Ua("yt.ads.biscotti.lastId_",a)};
YB=function(){var a=arguments;1m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Foa(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.Sa;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,
p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0=m||403===pC(p.xhr))return bg(new xC("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.B.push(0);this.C=0;this.ra=g.eD(window,"mousemove",(0,g.jb)(this.W,this));this.Z=g.sC((0,g.jb)(this.ma,this),25)};
iD=function(a){g.I.call(this);this.N=[];this.qb=a||this};
jD=function(a,b,c,d){for(var e=0;e=f)vqa(a,m,t,h,v,b.join(),e),l=v;B.La(2);break;case 4:return B.return(Promise.reject(l))}})};
vqa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.OD&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&LD("QUOTA_EXCEEDED",{dbName:ND(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.OD&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),LD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),wqa(a,!1,d,f,b,h.tag),KD(e)):wqa(a,!0,d,
f,b,h.tag)};
wqa=function(a,b,c,d,e,f){LD("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
tqa=function(a){this.j=a};
g.cE=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
xqa=function(a,b){return g.dE(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.zqa=function(a,b){return"getAll"in IDBObjectStore.prototype?g.UD(a.j.getAll(b,void 0)):yqa(a,b)};
yqa=function(a,b){var c=[];return g.dE(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
Bqa=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.UD(a.j.getAllKeys(void 0,void 0)):Aqa(a)};
Aqa=function(a){var b=[];return g.Cqa(a,{query:void 0},function(c){b.push(c.VH());return c.continue()}).then(function(){return b})};
g.$D=function(a,b,c){return g.UD(a.j.put(b,c))};
g.dE=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return eE(a).then(function(d){return qqa(d,c)})};
g.Cqa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return VD(a).then(function(e){return qqa(e,c)})};
bE=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.OD;for(var f=b.j.objectStoreNames,h=[],l=0;l=B},x);
x.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
t.addEventListener("close",function(){LD("IDB_UNEXPECTEDLY_CLOSED",{dbName:ND(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Gqa=function(a,b,c){c=void 0===c?{}:c;return Fqa(a,b,c)};
gE=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.G(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,pqa(c),4);
if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw iqa(f,a,"",-1);})};
hE=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
Hqa=function(a,b){return new g.OD("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.iE=function(a,b){if(!b)throw g.RD("openWithToken",ND(a.name));return a.open()};
Jqa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,g.iE(Iqa,b),2);c=d.B;return d.return(g.ZD(c,["databases"],{Tb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.$D(f,a).then(function(){})})}))})};
jE=function(a,b){var c;return g.G(function(d){if(1==d.j)return a?g.z(d,g.iE(Iqa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
Kqa=function(a,b){var c,d;return g.G(function(e){return 1==e.j?(c=[],g.z(e,g.iE(Iqa,b),2)):3!=e.j?(d=e.B,g.z(e,g.ZD(d,["databases"],{Tb:!0,mode:"readonly"},function(f){c.length=0;return g.dE(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Lqa=function(a,b){return Kqa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
Nqa=function(){var a,b,c,d;return g.G(function(e){switch(e.j){case 1:a=$pa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(kE&&LC()&&!Xoa()||g.lE)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,Jqa(d,Mqa),4);case 4:return g.z(e,jE("yt-idb-test-do-not-use",Mqa),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
Pqa=function(){if(void 0!==Oqa)return Oqa;JD=!0;return Oqa=Nqa().then(function(a){JD=!1;var b;if(null!=(b=Zpa())&&b.j){var c;b={hasSucceededOnce:(null==(c=$pa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Zpa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
mE=function(){return g.Va("ytglobal.idbToken_")||void 0};
g.nE=function(){var a=mE();return a?Promise.resolve(a):Pqa().then(function(b){(b=b?Mqa:void 0)&&g.Ua("ytglobal.idbToken_",b);return b})};
Qqa=function(a){if(!g.xD())throw a=new g.OD("AUTH_INVALID",{dbName:a}),KD(a),a;var b=g.wD();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Rqa=function(a,b,c,d){var e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.nE(),2);case 2:h=p.B;if(!h)throw l=g.RD("openDbImpl",a,b),g.aC("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),KD(l),l;MD(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Qqa(a);g.Ba(p,3);return g.z(p,Jqa(m,h),5);case 5:return g.z(p,Gqa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,jE(m.actualName,
h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
Sqa=function(a,b,c){c=void 0===c?{}:c;return Rqa(a,b,!1,c)};
Tqa=function(a,b,c){c=void 0===c?{}:c;return Rqa(a,b,!0,c)};
Uqa=function(a,b){b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.nE(),2);if(3!=e.j){c=e.B;if(!c)return e.return();MD(a);d=Qqa(a);return g.z(e,gE(d.actualName,b),3)}return g.z(e,jE(d.actualName,c),0)})};
Vqa=function(a,b,c){a=a.map(function(d){return g.G(function(e){return 1==e.j?g.z(e,gE(d.actualName,b),2):g.z(e,jE(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Wqa=function(a){var b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.nE(),2);if(3!=e.j){c=e.B;if(!c)return e.return();MD(a);return g.z(e,Lqa(a,c),3)}d=e.B;return g.z(e,Vqa(d,b,c),0)})};
Xqa=function(a,b){b=void 0===b?{}:b;var c;return g.G(function(d){if(1==d.j)return g.z(d,g.nE(),2);if(3!=d.j){c=d.B;if(!c)return d.return();MD(a);return g.z(d,gE(a,b),3)}return g.z(d,jE(a,c),0)})};
oE=function(a,b){hE.call(this,a,b);this.options=b;MD(a)};
Yqa=function(a,b){var c;return function(){c||(c=new oE(a,b));return c}};
g.pE=function(a,b){return Yqa(a,b)};
qE=function(a){return g.iE(Zqa(),a)};
$qa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.WD)()},g.z(l,qE(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.aE(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
ara=function(a,b,c,d,e){var f,h,l;return g.G(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.WD)()},g.z(m,qE(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.aE(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
bra=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,qE(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.ZD(b,["coldConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.fE(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
cra=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,qE(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.ZD(b,["hotConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.fE(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
dra=function(){return g.G(function(a){return g.z(a,Wqa("ytGcfConfig"),0)})};
era=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Va("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.oa(a)),this.j=a):(this.j=[],g.Ua("yt.gcf.config.hotUpdateCallbacks",this.j))};
vE=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new era;this.Bd={Olb:function(){a.G=!0},
Vkb:function(){return a.j},
Smb:function(b){rE(a,b)},
wr:function(b){a.wr(b)},
Nmb:function(b){fra(a,b)},
s6:function(){return a.coldHashData},
A6:function(){return a.hotHashData},
mlb:function(){return a.B},
dlb:function(){return sE()},
glb:function(){return tE()},
flb:function(){return g.Va("yt.gcf.config.coldHashData")},
hlb:function(){return g.Va("yt.gcf.config.hotHashData")},
inb:function(){gra(a)},
Hmb:function(){a.wr(void 0);uE(a);delete vE.instance},
Pmb:function(b){a.C=b},
alb:function(){return a.C}}};
hra=function(){if(!vE.instance){var a=new vE;vE.instance=a}return vE.instance};
kra=function(a){var b;g.G(function(c){if(1==c.j)return g.aC("start_client_gcf")||g.aC("delete_gcf_config_db")?g.aC("start_client_gcf")?g.z(c,g.nE(),3):c.La(2):c.return();2!=c.j&&((b=c.B)&&g.xD()&&!g.aC("delete_gcf_config_db")?(a.G=!0,gra(a)):(ira(a),jra(a)));return g.aC("delete_gcf_config_db")?g.z(c,dra(),0):c.La(0)})};
wE=function(){var a;return null!=(a=tE())?a:g.ZB("RAW_HOT_CONFIG_GROUP")};
lra=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.B)return l.return(tE());if(!a.G)return b=g.RD("getHotConfig IDB not initialized"),fC(b),l.return(Promise.reject(b));c=mE();d=g.ZB("TIME_CREATED_MS");if(!c){e=g.RD("getHotConfig token error");fC(e);l.La(2);break}return g.z(l,cra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return rE(a,f.config),a.wr(f.hashData),l.return(tE());case 2:jra(a);if(!(c&&a.B&&a.hotHashData)){l.La(4);break}return g.z(l,$qa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(tE()):(h=new g.vD("Config not available in ytConfig"),fC(h),l.return(Promise.reject(h)))}})};
nra=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j)return l.return(sE());if(!a.G)return b=g.RD("getColdConfig IDB not initialized"),fC(b),l.return(Promise.reject(b));c=mE();d=g.ZB("TIME_CREATED_MS");if(!c){e=g.RD("getColdConfig");fC(e);l.La(2);break}return g.z(l,bra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return fra(a,f.config),mra(a,f.configData),uE(a,f.hashData),l.return(sE());case 2:ira(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.La(4);break}return g.z(l,ara(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(sE()):(h=new g.vD("Config not available in ytConfig"),fC(h),l.return(Promise.reject(h)))}})};
gra=function(a){if(!a.B||!a.j){if(!mE()){var b=g.RD("scheduleGetConfigs");fC(b)}a.D||(a.D=g.Ou.Qi(function(){return g.G(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,lra(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,nra(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}};
ora=function(a,b,c){var d,e,f;return g.G(function(h){switch(h.j){case 1:if(!g.aC("start_client_gcf")){h.La(0);break}c&&rE(a,c);a.wr(b);d=mE();if(!d){h.La(3);break}if(c){h.La(4);break}return g.z(h,cra(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,$qa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
pra=function(a,b,c){var d,e,f,h;return g.G(function(l){if(1==l.j){if(!g.aC("start_client_gcf"))return l.La(0);uE(a,b);return(d=mE())?c?l.La(4):g.z(l,bra(d),5):l.La(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.La(0);h=c.configData;return g.z(l,ara(c,b,h,d),0)})};
qra=function(){var a=hra(),b=(0,g.WD)()-a.C;if(!(0!==a.C&&bRra||h=Wra&&(JE++,g.aC("abandon_compression_after_N_slow_zips")?IE===g.bC("compression_disable_point")&&JE>Xra&&(GE=!1):GE=!1);Yra(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
Zra=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.WD)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Va("yt.logging.gzipForFetch",!1):!0;if(GE&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=Qra(h);if(null!=l&&(l>Rra||l=Wra)if(JE++,g.aC("abandon_compression_after_N_slow_zips")||g.aC("abandon_compression_after_N_slow_zips_lr")){b=JE/IE;var n=Xra/g.bC("compression_disable_point");0=n&&(GE=!1)}else GE=!1;Yra(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return fC(p),a}}else return a};
Qra=function(a){try{return(new Blob(a.split(""))).size}catch(b){return fC(b),null}};
Yra=function(a){g.aC("gel_compression_csi_killswitch")||!g.aC("log_gel_compression_latency")&&!g.aC("log_gel_compression_latency_lr")||Ira("gel_compression",a,{sampleRate:.1})};
LE=function(a){var b=this;this.KG=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.nz=function(){};
this.now=Date.now;this.JC=!1;this.Bd={Omb:function(p){b.Df=p},
jnb:function(){b.mB()},
e5:function(){b.DM()},
GD:function(p){return g.G(function(q){return g.z(q,b.GD(p),0)})},
cK:function(p,q){return b.cK(p,q)},
gK:function(){b.gK()}};
var c;this.L_=null!=(c=a.L_)?c:100;var d;this.ZZ=null!=(d=a.ZZ)?d:1;var e;this.SZ=null!=(e=a.SZ)?e:2592E6;var f;this.MZ=null!=(f=a.MZ)?f:12E4;var h;this.YZ=null!=(h=a.YZ)?h:5E3;var l;this.Df=null!=(l=a.Df)?l:void 0;this.pH=!!a.pH;var m;this.TG=null!=(m=a.TG)?m:.1;var n;this.NJ=null!=(n=a.NJ)?n:10;a.handleError&&(this.handleError=a.handleError);a.nz&&(this.nz=a.nz);a.JC&&(this.JC=a.JC);a.KG&&(this.KG=a.KG);this.kb=a.kb;this.Fn=a.Fn;this.qh=a.qh;this.eh=a.eh;this.sendFn=a.sendFn;this.qQ=a.qQ;this.EP=
a.EP;KE(this)&&(!this.kb||this.kb("networkless_logging"))&&$ra(this)};
$ra=function(a){KE(a)&&!a.JC&&(a.j=!0,a.pH&&Math.random()<=a.TG&&a.qh.k5(a.Df),a.gK(),a.eh.Mh()&&a.mB(),a.eh.Ra(a.qQ,a.mB.bind(a)),a.eh.Ra(a.EP,a.DM.bind(a)))};
csa=function(a,b){if(!KE(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.G(function(p){switch(p.j){case 1:h=asa(f);(l=bsa(f))&&a.kb&&a.kb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.NJ)){p.La(2);break}if(!a.eh.lK){p.La(3);break}return g.z(p,a.eh.lK(),3);case 3:if(a.eh.Mh()){p.La(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.La(6);break}return g.z(p,a.qh.ZQ(b.id,a.Df,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.NJ)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.La(8);break}return b.sendCount=a?!1:!0};
bsa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
dsa=function(){if(NE)return NE();var a={};NE=g.pE("LogsDatabaseV2",{Yq:(a.LogsRequestsStore={Tm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.XD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.cE(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&YD(b,"sapisid");c(9)&&YD(b,"SWHealthLog")},
version:9});return NE()};
OE=function(a){return g.iE(dsa(),a)};
fsa=function(a,b){var c,d,e,f;return g.G(function(h){if(1==h.j)return c={startTime:(0,g.WD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,OE(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.ZB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.aE(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.WD)();esa(c);return h.return(f)})};
gsa=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(1==n.j)return c={startTime:(0,g.WD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,OE(b),2);if(3!=n.j)return d=n.B,e=g.ZB("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.WD)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.ZD(d,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(p){return g.fE(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&
(m=q.getValue(),"NEW"===a&&(m.status="QUEUED",q.update(m)))})}),3);
c.ticks.tc=(0,g.WD)();esa(c);return n.return(m)})};
hsa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,OE(b),2);c=d.B;return d.return(g.ZD(c,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.$D(f,h).then(function(){return h})})}))})};
isa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.G(function(f){if(1==f.j)return g.z(f,OE(b),2);e=f.B;return f.return(g.ZD(e,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.$D(l,m).then(function(){return m})):g.TD.resolve(void 0)})}))})};
jsa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,OE(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
ksa=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,OE(a),2);b=d.B;c=(0,g.WD)()-2592E6;return g.z(d,g.ZD(b,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){return g.dE(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
lsa=function(){g.G(function(a){return g.z(a,Wqa("LogsDatabaseV2"),0)})};
esa=function(a){g.aC("nwl_csi_killswitch")||Ira("networkless_performance",a,{sampleRate:1})};
nsa=function(a){return g.iE(msa(),a)};
osa=function(a){var b,c;g.G(function(d){if(1==d.j)return g.z(d,nsa(a),2);b=d.B;c=(0,g.WD)()-2592E6;return g.z(d,g.ZD(b,["SWHealthLog"],{mode:"readwrite",Tb:!0},function(e){return g.dE(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
psa=function(a){var b;return g.G(function(c){if(1==c.j)return g.z(c,nsa(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.PE=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.JC()){if(a){a=g.ie(g.io(a));if(a===g.re.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.se?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.Dmb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.Cmb&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.Emb&&(a=a.replace(/(\t+)/g,'$1')),
l=g.ue(a));a=g.Je(g.Xm(g.te(l).toString()))}g.hc(a)||(l=nf("IFRAME",{src:'javascript:""',style:"display:none"}),Se(l).body.appendChild(l))}}else if(e)Eoa(a,b,"POST",e,d);else if(g.ZB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Eoa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Kka({url:a});if(m.C&&m.B||m.D){var n=Ol(g.Ql(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==Dm(a,"ri"));break b}}catch(q){}p=!1}p?qsa(a)?(b&&b(),l=!0):l=!1:l=!1;l||rsa(a,b)}};
qsa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
rsa=function(a,b){var c=new Image,d=""+ssa++;tsa[d]=c;c.onload=c.onerror=function(){b&&tsa[d]&&b();delete tsa[d]};
c.src=a};
usa=function(a){if("www.googleadservices.com"!==g.Rl(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
QE=function(){this.j=new Map;this.B=!1};
RE=function(){if(!QE.instance){var a=g.Va("yt.networkRequestMonitor.instance")||new QE;g.Ua("yt.networkRequestMonitor.instance",a);QE.instance=a}return QE.instance};
SE=function(){vsa||(vsa=new FD("yt.offline"));return vsa};
wsa=function(a){if(g.aC("offline_error_handling")){var b=SE().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);SE().set("errors",b,2592E3,!0)}};
TE=function(){g.Ld.call(this);var a=this;this.B=!1;this.j=Pka();this.j.Ra("networkstatus-online",function(){if(a.B&&g.aC("offline_error_handling")){var b=SE().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.vD(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.dC(d)}SE().set("errors",{},2592E3,!0)}}})};
xsa=function(){if(!TE.instance){var a=g.Va("yt.networkStatusManager.instance")||new TE;g.Ua("yt.networkStatusManager.instance",a);TE.instance=a}return TE.instance};
g.UE=function(a){a=void 0===a?{}:a;g.Ld.call(this);var b=this;this.j=this.D=0;this.B=xsa();var c=g.Va("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){ysa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ysa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
ysa=function(a,b){a.rateLimit?a.j?(g.Ou.Kj(a.D),a.D=g.Ou.Qi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.WD)())},a.rateLimit-((0,g.WD)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.WD)()):a.dispatchEvent(b)};
VE=function(){var a=LE.call;zsa||(zsa=new g.UE({amb:!0,ykb:!0}));a.call(LE,this,{qh:{k5:ksa,Ry:jsa,tW:gsa,k8:hsa,ZQ:isa,set:fsa},eh:zsa,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;fC(new g.vD(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.dC(b)},
nz:fC,sendFn:Asa,now:g.WD,H0:wsa,Fn:g.CD(),qQ:"publicytnetworkstatus-online",EP:"publicytnetworkstatus-offline",pH:!0,TG:.1,NJ:g.bC("potential_esf_error_limit",10),kb:g.aC,JC:!(g.xD()&&"www.youtube-nocookie.com"!==g.Rl(document.location.toString()))});this.C=new g.co;g.aC("networkless_immediately_drop_all_requests")&&lsa();Xqa("LogsDatabaseV2")};
WE=function(){var a=g.Va("yt.networklessRequestController.instance");a||(a=new VE,g.Ua("yt.networklessRequestController.instance",a),g.aC("networkless_logging")&&g.nE().then(function(b){a.Df=b;$ra(a);a.C.resolve();a.pH&&Math.random()<=a.TG&&a.Df&&osa(a.Df);g.aC("networkless_immediately_drop_sw_health_store")&&Bsa(a)}));
return a};
Bsa=function(a){var b;g.G(function(c){if(!a.Df)throw b=g.RD("clearSWHealthLogsDb"),b;return c.return(psa(a.Df).catch(function(d){a.handleError(d)}))})};
Asa=function(a,b,c,d){d=void 0===d?!1:d;b=g.aC("web_fp_via_jspb")?Object.assign({},b):b;g.aC("use_cfr_monitor")&&Csa(a,b);if(g.aC("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.WD)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.WD)())}c&&0===Object.keys(b).length?g.PE(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),HE(a,b.postBody,b,g.wC,
d)):HE(a,JSON.stringify(b.postParams),b,Koa,d):g.wC(a,b)};
Csa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){RE().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){RE().requestComplete(a,!0);d(e,f)}};
g.XE=function(a){this.config_=null;a?this.config_=a:rra()&&(this.config_=g.xE())};
g.YE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?WE().writeThenSend(n,f):WE().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));HE(n,r,f,g.wC,q)}else HE(n,JSON.stringify(f.postParams),f,Koa,q)}else g.aC("web_all_payloads_via_jspb")?g.wC(n,f):Koa(n,f)}catch(t){if("InvalidAccessError"==
t.name)fC(Error("An extension is blocking network request."));else throw t;}}
!g.ZB("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&fC(new g.vD("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.vD("innertube xhrclient not ready",b,c,d),g.dC(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.uX;h&&(c=h);var l=a.config_.vX||!1;h=Cra(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.EO&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=kC(""+c+b,l);g.Va("ytNetworklessLoggingInitializationOptions")&&
Dsa.isNwlInitialized?Pqa().then(function(p){e(p)}):e(!1)};
g.cF=function(a,b,c){var d=g.ZE();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){$E[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.aF[a]?h():g.rC(h,0)}catch(l){g.dC(l)}},c);
$E[e]=!0;bF[a]||(bF[a]=[]);bF[a].push(e);return e}return 0};
Esa=function(a){var b=g.cF("LOGGED_IN",function(c){a.apply(void 0,arguments);g.dF(b)})};
g.dF=function(a){var b=g.ZE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.cc(a,function(c){b.unsubscribeByKey(c);delete $E[c]}))};
g.eF=function(a,b){var c=g.ZE();return c?c.publish.apply(c,arguments):!1};
Gsa=function(a){var b=g.ZE();if(b)if(b.clear(a),a)Fsa(a);else for(var c in bF)Fsa(c)};
g.ZE=function(){return g.Sa.ytPubsubPubsubInstance};
Fsa=function(a){bF[a]&&(a=bF[a],g.cc(a,function(b){$E[b]&&delete $E[b]}),a.length=0)};
g.Ksa=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1f&&(c=a.substring(f,e),c=c.replace(Hsa,""),c=c.replace(Isa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Jsa(a,b,c)};
Jsa=function(a,b,c){c=void 0===c?null:c;var d=Lsa(a),e=document.getElementById(d),f=e&&qpa(e),h=e&&!f;f?b&&b():(b&&(f=g.cF(d,b),b=""+g.fb(b),Msa[b]=f),h||(e=Nsa(a,d,function(){if(!qpa(e)){var l=e;l&&(l.dataset?l.dataset[ppa()]="true":ega([new fo(Osa[0].toLowerCase(),Psa)],l,"data-loaded","true".toString()));g.eF(d);g.rC(g.kb(Gsa,d),0)}},c)))};
Nsa=function(a,b,c,d){d=void 0===d?null:d;var e=g.of("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.po(e,g.Jw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Lsa=function(a){var b=document.createElement("a");g.lo(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ne(a)};
gF=function(a){var b=g.Ia.apply(1,arguments);if(!fF(a)||b.some(function(d){return!fF(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())Qsa(a,c.value)};
Qsa=function(a,b){for(var c in b)if(fF(b[c])){if(c in a&&!fF(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Qsa(a[c],b[c])}else if(Rsa(b[c])){if(c in a&&!Rsa(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Ssa(a[c],b[c])}else a[c]=b[c];return a};
Ssa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,fF(c)?a.push(Qsa({},c)):Rsa(c)?a.push(Ssa([],c)):a.push(c);return a};
fF=function(a){return"object"===typeof a&&!Array.isArray(a)};
Rsa=function(a){return"object"===typeof a&&Array.isArray(a)};
hF=function(a){g.I.call(this);this.B=a};
iF=function(a){hF.call(this,!0);this.j=a};
Tsa=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.ma=null;var d=(0,g.jb)(a,b);this.j=new g.bv(function(){return d(c.ma)},300);
g.M(this,this.j);this.W=this.Z=Infinity};
Usa=function(a,b){if(!b)return!1;for(var c=0;c=d.length&&pta(b)===d[0])return d;for(var e=[],f=0;f=a?Eta||(Eta=Fta(function(){f();Eta=void 0},0)):10<=h-m&&(Gta(c,d.tier),l.D=h)};
xta=function(a,b){if("log_event"===a.endpoint){EF(a);var c=FF(a),d=new Map;d.set(c,[a.payload]);var e=uta(a.payload)||"";b&&(IF=new b);return new g.Zf(function(f,h){IF&&IF.isReady()?Hta(d,IF,f,h,{bypassNetworkless:!0},!0,HF(e)):f()})}};
Ata=function(a,b,c){if("log_event"===b.endpoint){EF(void 0,b);var d=FF(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(IF=new c);return new g.Zf(function(f){IF&&IF.isReady()?Ita(e,IF,f,{bypassNetworkless:!0},!0,HF(a)):f()})}};
FF=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new WB;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Gj(d,2,JF,Ai(c.playlistId));KF[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),LF[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Cta=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Zf(function(e,f){var h=Dta(c,d),l=h.C;h.C=!1;Jta(h.B);Jta(h.j);h.j=0;IF&&IF.isReady()?void 0===d&&g.aC("enable_web_tiered_gel")?Kta(e,f,a,b,c,300,l):Kta(e,f,a,b,c,d,l):(Gta(c,d),e())})};
Kta=function(a,b,c,d,e,f,h){var l=IF;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.aC("enable_web_tiered_gel")?CF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):CF().extractMatchingEntries(q),m.set(d,b),Ita(m,l,a,c,!1,h)):(m=g.aC("enable_web_tiered_gel")?CF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):CF().extractMatchingEntries(q),n.set(d,m),
Hta(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(GF));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.aC("enable_web_tiered_gel")?CF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):CF().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0=Pta&&c():c()},e);
d.B=e};
Hta=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.WD)()),m=a.size,n=Qta(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={yP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,kQ:void 0,PP:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.rd({context:g.yra(b.config_||g.xE())});if(!g.bb(q)&&!g.aC("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=LF[p])&&Rta(h.batchRequest,p,q);delete LF[p];h.dangerousLogToVisitorSession=
"visitorOnlyApprovedKey"===p;Sta(h.batchRequest,l,h.dangerousLogToVisitorSession);Tta(e);h.kQ=function(r){g.aC("start_client_gcf")&&g.Ou.Qi(function(){return g.G(function(t){return g.z(t,Uta(r),0)})});
m--;m||c()};
h.yP=0;h.PP=function(r){return function(){r.yP++;if(e.bypassNetworkless&&1===r.yP)try{g.YE(b,n,r.batchRequest,Vta({writeThenSend:!0},r.dangerousLogToVisitorSession,r.kQ,r.PP,f)),MF=!1}catch(t){g.dC(t),d()}m--;m||c()}}(h);
try{g.YE(b,n,h.batchRequest,Vta(e,h.dangerousLogToVisitorSession,h.kQ,h.PP,f)),MF=!1}catch(r){g.dC(r),d()}}};
Ita=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.WD)()),l={value:a.size},m=new Map([].concat(g.oa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new foa;var r=b.config_||g.xE(),t=new Yy,v=new g.Sy;O(v,1,r.DO);O(v,2,r.CO);S(v,16,r.tX);O(v,17,r.innertubeContextClientVersion);if(r.sI){var x=r.sI,B=new My;x.coldConfigData&&O(B,1,x.coldConfigData);x.appInstallData&&O(B,6,x.appInstallData);x.coldHashData&&O(B,3,x.coldHashData);x.hotHashData&&
B.wr(x.hotHashData);Lj(v,My,62,B)}(x=g.Sa.devicePixelRatio)&&1!=x&&Ak(v,65,x);x=joa();""!==x&&O(v,54,x);x=koa();if(0$ta&&(a=1);YB("BATCH_CLIENT_COUNTER",a);return a};
Rta=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
EF=function(a,b){if(!g.Va("yt.logging.transport.enableScrapingForTest")){var c=ioa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))aua=[],g.Ua("yt.logging.transport.enableScrapingForTest",!0),g.Ua("yt.logging.transport.scrapedPayloadsForTesting",aua),g.Ua("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ua("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.Ua("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Va("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Va("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Va("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e>3;switch(e&7){case 0:e=Wua(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Wua(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
Zua=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;dMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.vD(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.fG(a)}};
g.nH=function(a,b){this.state=a;this.iA=b};
pH=function(a,b){return g.oH(a.state,b)&&!g.oH(a.iA,b)?1:!g.oH(a.state,b)&&g.oH(a.iA,b)?-1:0};
g.qH=function(a,b){return 0e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.zH=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
AH=function(a,b,c,d,e,f){eH.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
Rwa=function(a,b,c,d){dH.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
BH=function(a,b){this.B=a;this.j=b};
CH=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.we(a,0,1)};
DH=function(a,b){g.GG.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.M(this,this.B);this.progressBar=this.Ha("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
EH=function(a,b,c,d,e,f){HG.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.W=f;this.D=this.Ha("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Ha("ytp-ad-player-overlay-instream-info");this.C=null;Swa(this)&&(a=nf("div"),g.jv(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new Rwa(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),c.Ja(a),c.init(wG("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.C=a);this.G=this.Ha("ytp-ad-player-overlay-skip-or-preview");this.Fa=this.Ha("ytp-ad-player-overlay-progress-bar");
this.ra=this.Ha("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.M(this,this.j);this.hide()};
Swa=function(a){a=a.api.U();return g.FH(a)&&a.B};
Twa=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Bm("/sharing_services",a);g.PE(d)};
g.GH=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
HH=function(a){this.j=new Kv(a)};
Uwa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return g.aC("copy_login_info_to_st_cookie")&&("WEB"===g.ZB("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.ZB("INNERTUBE_CLIENT_NAME"))&&a};
IH=function(a){if(g.ZB("LOGGED_IN",!0)&&Uwa()){var b=g.ZB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Rl(window.location.href);c&&b.push(c);c=g.Rl(a);g.Gb(b,c)||!c&&fc(a,"/")?(b=Sl(a),(b=Yea(b))?(b=Oua(b),b=(b=g.GC(b)||null)?iC(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;Uwa()?(d||(d=g.ZB("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Nua(a,b)}};
g.Vwa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.Bm(a,b);IH(a);c=g.io(a+c);d=d.location;c=jo(c);void 0!==c&&(d.href=c)};
g.Wwa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.ZB("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Nua(a,b);c||(IH(a),(window.ytspf||{}).enabled?spf.navigate(a):g.Vwa(a))};
g.JH=function(a,b,c,d){c&&Nua(a,c);c=g.io(a);var e=g.ie(c);a!=e&&fC(Error("Unsafe window.open URL: "+a));a=e;b=b||Ne(a).toString(36);try{var f;if("2"===(null==(f=iC(a))?void 0:f.ase)){a=usa(a);IH(a);g.aC("update_ytWindow_library_use_closure_window_library")?g.no(a,b,"attributionsrc"):window.open(a,b,"attributionsrc");return}}catch(l){g.dC(l)}if(d){a=usa(a);try{var h=encodeURIComponent(d);IH(a);g.aC("update_ytWindow_library_use_closure_window_library")?g.no(a,b,"attributionsrc="+h):window.open(a,b,
"attributionsrc="+h);return}catch(l){g.dC(l)}}IH(a);g.aC("update_ytWindow_library_use_closure_window_library")?g.no(c,b):window.open(a,b)};
Ywa=function(a){Xwa=a&&a.data};
$wa=function(a){Zwa=a&&a.data};
bxa=function(a){axa=a&&a.data};
dxa=function(){cxa=axa=Zwa=Xwa=null};
fxa=function(){var a=void 0===a?window.location.href:a;if(g.aC("kevlar_disable_theme_param"))return null;Ol(g.Ql(5,a));try{var b=g.jC(a).theme;return exa.get(b)||null}catch(c){}return null};
KH=function(){this.j={};if(this.B=Noa()){var a=g.GC("CONSISTENCY");a&&gxa(this,{encryptedTokenJarContents:a})}};
gxa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.B&&g.FC("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
LH=function(){var a=g.ZB("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.ZB("INNERTUBE_CLIENT_NAME")&&(this.localStorage=hxa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
hxa=function(a){return void 0===a.localStorage?new FD("yt-client-location"):a.localStorage};
g.MH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.ZB("INNERTUBE_CONTEXT");if(!d)return g.eG(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.rd(d);g.aC("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.ZB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=
window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.sD();var h="USER_INTERFACE_THEME_LIGHT";g.tD(0,165)?h="USER_INTERFACE_THEME_DARK":g.tD(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.aC("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(h="USER_INTERFACE_THEME_DARK");f=f?h:fxa()||h;e.userInterfaceTheme=f;if(!b){if(f=Vpa())e.connectionType=f;g.aC("web_log_effective_connection_type")&&(f=Xpa())&&(d.client.effectiveConnectionType=f)}var l;if(g.aC("web_log_memory_total_kbytes")&&(null==(l=g.Sa.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Sa.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.aC("web_gcf_hashes_innertube")&&(f=qra())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||
{},d.client.configInfo.coldConfigData=m,d.client.configInfo.coldHashData=l,d.client.configInfo.hotHashData=f);m=g.jC(g.Sa.location.href);!g.aC("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Sa.location.href},g.aC("kevlar_woffle")&&Kpa.instance&&(m=Kpa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),
e.mainAppWebInfo.webDisplayMode=Lpa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.aC("web_lr_app_quality_killswitch")&&(m=g.ZB("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.ZB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.aC("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;
break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=joa())?e.experimentsToken=n:delete e.experimentsToken;n=koa();KH.instance||(KH.instance=new KH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.hd(KH.instance.j)});!g.aC("web_prequest_context_killswitch")&&(n=g.ZB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.sD();n=g.tD(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=
!0);g.aC("warm_op_csn_cleanup")?c&&(b=g.WF())&&(d.clientScreenNonce=b):!b&&(b=g.WF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Va("yt.mdx.remote.remoteClient_"))d.remoteClient=a;LH.getInstance().setLocationOnInnerTubeContext(d);try{var p=oC(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),x=v.next().value,B=v.next().value;p=x;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||
a.push({key:p,value:""+q})}var E;if(g.aC("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(E=d.client)?void 0:E.clientName)){var F=g.ZB("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.eG(H)}return d};
kxa=function(a,b){if(!a)return!1;var c,d=null==(c=g.U(a,ixa))?void 0:c.signal;if(d&&b.Xw)return!!b.Xw[d];var e;if((c=null==(e=g.U(a,jxa))?void 0:e.request)&&b.UM)return!!b.UM[c];for(var f in a)if(b.PM[f])return!0;return!1};
lxa=function(a,b){var c,d=null==(c=g.U(a,ixa))?void 0:c.signal;if(d&&b.Xw&&(c=b.Xw[d]))return c();var e;if((c=null==(e=g.U(a,jxa))?void 0:e.request)&&b.UM&&(e=b.UM[c]))return e();for(var f in a)if(b.PM[f]&&(a=b.PM[f]))return a()};
NH=function(a){return function(){return new a}};
nxa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=mxa[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(mxa).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.OH=function(a){return"/youtubei/v1/"+nxa(a)};
PH=function(){};
QH=function(){};
RH=function(a){return g.Va("ytcsi."+(a||"")+"data_")||oxa(a)};
pxa=function(){var a=RH();a.info||(a.info={});return a.info};
SH=function(a){a=RH(a);a.metadata||(a.metadata={});return a.metadata};
TH=function(a){a=RH(a);a.tick||(a.tick={});return a.tick};
UH=function(a){a=RH(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
qxa=function(a){a=UH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
VH=function(a){var b=RH(a).nonce;b||(b=g.lF(16),RH(a).nonce=b);return b};
oxa=function(a){var b={tick:{},info:{}};g.Ua("ytcsi."+(a||"")+"data_",b);return b};
rxa=function(){var a=g.Va("ytcsi.debug");a||(a=[],g.Ua("ytcsi.debug",a),g.Ua("ytcsi.reference",{}));return a};
WH=function(a){a=a||"";var b=sxa();if(b[a])return b[a];var c=rxa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
txa=function(a){a=a||"";var b=sxa();b[a]&&delete b[a];var c=rxa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
sxa=function(){var a=g.Va("ytcsi.reference");if(a)return a;rxa();return g.Va("ytcsi.reference")};
XH=function(a){return uxa[a]||"LATENCY_ACTION_UNKNOWN"};
vxa=function(a,b){zE.call(this,1,arguments);this.lf=b};
YH=function(){this.j=0};
ZH=function(){YH.instance||(YH.instance=new YH);return YH.instance};
aI=function(a,b){$H[b]=$H[b]||{count:0};var c=$H[b];c.count++;c.time=(0,g.WD)();a.j||(a.j=g.AD(0,function(){var d=(0,g.WD)(),e;for(e in $H)$H[e]&&6E41E5*Math.random()&&(c=new g.vD("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.fG(c)),!0):!1};
wxa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
xxa=function(){var a;if(g.aC("csi_use_performance_navigation_timing")||g.aC("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==bI?void 0:null==(a=bI.getEntriesByType)?void 0:null==(b=a.call(bI,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=cI(e.requestStart),e.responseEnd=cI(e.responseEnd),e.redirectStart=cI(e.redirectStart),e.redirectEnd=cI(e.redirectEnd),e.domainLookupEnd=cI(e.domainLookupEnd),e.connectStart=cI(e.connectStart),
e.connectEnd=cI(e.connectEnd),e.responseStart=cI(e.responseStart),e.secureConnectionStart=cI(e.secureConnectionStart),e.domainLookupStart=cI(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=bI.timing}else a=bI.timing;return a};
cI=function(a){return Math.round(dI()+a)};
dI=function(){return(g.aC("csi_use_time_origin")||g.aC("csi_use_time_origin_tvhtml5"))&&bI.timeOrigin?Math.floor(bI.timeOrigin):bI.timing.navigationStart};
fI=function(a,b){eI("_start",a,b)};
rI=function(a,b,c){c=void 0===c?!1:c;if(!g.aC("web_csi_action_sampling_enabled")||!RH(b).actionDisabled)if(g.aC("web_csi_via_jspb")&&!c){c=new KB;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=dI()&&0c.duration?d:c},{duration:0}))&&0=c)c=!1;else{var d=VH(a);c=0!==ova(d)%c}c&&(RH(a).actionDisabled=!0);WH(a||"").info.actionType=a;b.cttAuthInfo&&(RH(a).cttAuthInfo=b.cttAuthInfo);YB(a+"TIMING_ACTION",a);g.eC(fI)(b.startTime,a);c={actionType:XH(a)};(d=g.WF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.vI(c,a);Nxa(!0,a)})()};
Uxa=function(a){g.eC(function(){Sxa(a);txa(a);tI(a)})()};
g.vI=function(a,b,c){g.eC(rI)(a,b,void 0===c?!1:c)};
xI=function(a,b,c){return g.eC(eI)(a,b,c)};
Vxa=function(a){g.eC(Lxa)("above_the_fold",a,void 0)};
uI=function(a,b){return g.eC(function(){var c=TH(b);return a in c})()};
Wxa=function(a,b){return g.eC(function(){if(uI(a,b))return!1;xI(a,void 0,b);return!0})()};
yI=function(a,b,c){g.eC(function(){if(!uI("_start",c)||uI(a,c))return!1;xI(a,b,c);return!0})()};
Xxa=function(){g.eC(function(){var a=VH();requestAnimationFrame(function(){setTimeout(function(){a===VH()&&xI("ftl",void 0,void 0)},0)})})()};
Sxa=function(a){uI("_start",a)&&xI("aa",void 0,a)};
zI=function(a,b,c,d){this.oN=a;this.eh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Xw||(a.Xw={});a.Xw=Object.assign({},Yxa,a.Xw)};
Zxa=function(a,b,c,d){if(void 0!==zI.instance){if(d=zI.instance,a=[a!==d.oN,b!==d.eh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.vD("InnerTubeTransportService is already initialized",a);
}else zI.instance=new zI(a,b,c,d)};
AI=function(a,b,c){var d=void 0===d?yE:d;var e=lxa(b,a.oN);if(!e)return bg(new g.vD("Error: No request builder found for command.",b));var f=e.G(b,c,d);return f?(IH(f.input),new g.Zf(function(h){var l,m,n;return g.G(function(p){if(1==p.j)return m="cors"===(null==(l=f.Pt)?void 0:l.mode)?"cors":void 0,a.j.H_?(n=$xa(a,f.config,m),p.La(2)):g.z(p,aya(a,f.config,m),3);2!=p.j&&(n=p.B);h(bya(a,f,n));g.Aa(p)})})):bg(new g.vD("Error: Failed to build request for command.",b))};
g.BI=function(a,b,c,d,e){e=void 0===e?{Lu:{identity:yE}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.MH(d,f));return new g.Zf(function(h){var l,m,n,p,q;return g.G(function(r){if(1==r.j)return l=Ooa(c),m=mC(l)?"same-origin":"cors",a.j.H_?(n=$xa(a,e,m),r.La(2)):g.z(r,aya(a,e,m),3);2!=r.j&&(n=r.B);var t=n;p=Poa(Ooa(c),t);q={input:p,Pt:Qoa(p),Bp:b,config:e};h(bya(a,q,n));g.Aa(r)})})};
dya=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(cya);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
bya=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,t,v,x,B,E,F,H,P,Q,R,ha,ua,qa,ma,xa,ea,aa,Ma,y;return g.G(function(Z){switch(Z.j){case 1:Z.La(2);break;case 3:if((d=Z.B)&&!d.isExpired())return Z.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.Bp)?0:f.context)){Z.La(4);break}h=b.Bp.context;Z.La(5);break;case 5:l=g.u([]),m=l.next();case 7:if(m.done){Z.La(4);break}n=m.value;return g.z(Z,n.Fmb(h),8);case 8:m=l.next();Z.La(7);break;case 4:if(null==(p=a.C)||!p.Xmb(b.input,b.Bp)){Z.La(11);
break}return g.z(Z,a.C.Zlb(b.input,b.Bp),12);case 12:return q=Z.B,g.aC("kevlar_process_local_innertube_responses_killswitch")||dya(a,q,b),Z.return(q);case 11:return(v=null==(t=b.config)?void 0:t.bj)&&a.B.has(v)&&g.aC("web_memoize_inflight_requests")?r=a.B.get(v):(x=JSON.stringify(b.Bp),F=null!=(E=null==(B=b.Pt)?void 0:B.headers)?E:{},b.Pt=Object.assign({},b.Pt,{headers:Object.assign({},F,c)}),H=Object.assign({},b.Pt),"POST"===b.Pt.method&&(H=Object.assign({},H,{body:x})),(null==(P=b.config)?0:P.pba)&&
xI(b.config.pba),Q=function(){return a.eh.fetch(b.input,H,b.config)},r=Q(),v&&a.B.set(v,r)),g.z(Z,r,13);
case 13:if((R=Z.B)&&"error"in R&&(null==(ha=R)?0:null==(ua=ha.error)?0:ua.details))for(qa=R.error.details,ma=g.u(qa),xa=ma.next();!xa.done;xa=ma.next())ea=xa.value,(aa=ea["@type"])&&-1=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
rya=function(){this.state=1;this.j=null};
tya=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Cc(2),g.Ksa(c,function(){if(window[h])sya(a,d,h,e);else{a.Cc(3);var l=Lsa(c),m=document.getElementById(l);m&&(Gsa(l),m.parentNode.removeChild(m));g.fG(new g.vD("Unable to load Botguard","from "+c))}},f)):b?(f=g.of("SCRIPT"),b instanceof ve?gga(f,b):f.textContent=b,f.nonce=oo(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?sya(a,d,h,e):(a.Cc(4),g.fG(new g.vD("Unable to load Botguard from JS")))):g.fG(new g.vD("Unable to load VM; no url or JS provided"))};
sya=function(a,b,c,d){a.Cc(5);try{var e=new eo({program:b,globalName:c,aba:g.aC("att_web_record_metrics")});e.Uba.then(function(){a.Cc(6);d&&d(b)});
a.uR(e)}catch(f){a.Cc(7),f instanceof Error&&g.fG(f)}};
uya=function(a,b){var c=g.LI;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.cG()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.cG()?c.B0({Wu:a}).then(d):d(null)})]):Promise.resolve(null)};
xya=function(){if(!g.aC("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.aC("disable_biscotti_fetch_entirely_for_all_web_clients")&&$oa()){var a=g.ZB("PLAYER_VARS",{});if("1"!=g.od(a,"privembed",!1)&&!fpa(a)){var b=function(){vya=!0;"google_ad_status"in window?YB("DCLKSTAT",1):YB("DCLKSTAT",2)};
try{g.Ksa("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}wya.push(g.Ou.Qi(function(){if(!(vya||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=Msa[c];d&&g.dF(d)}}catch(e){}vya=!0;YB("DCLKSTAT",3)}},5E3))}}};
yya=function(){var a=Number(g.ZB("DCLKSTAT",0));return isNaN(a)?0:a};
MI=function(){var a=g.Va("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
NI=function(){rya.apply(this,arguments)};
zya=function(){};
Aya=function(a,b,c){for(var d=!1,e=g.u(a.Ej.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.Ej.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Ya){c=d.layoutId;break a}c=void 0}c?b.mO(c):mH("No triggering layout ID available when attempting to mute.")}};
Bya=function(a,b){this.Yj=a;this.nm=b};
Cya=function(){};
Dya=function(){};
Fya=function(a){g.I.call(this);var b=this;this.Zc=a;this.j=new Map;OI(this,"commandExecutorCommand",function(c,d,e){Eya(b,c.commands,d,e)});
OI(this,"clickTrackingParams",function(){})};
Gya=function(a,b){OI(a,b.wq(),function(c,d,e){b.Os(c,d,e)})};
OI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.eG(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Eya=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.U(h,Hya)||g.U(h,Iya)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())PI(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())PI(a,e.value,c,d)};
PI=function(a,b,c,d){a.isDisposed();b.loggingUrls&&Jya(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.Zc.get().Sn("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.Zc.get().Sn("innertubeCommand",{confirmDialogEndpoint:f}):Kya.hasOwnProperty(e)||Jya(a,e,f,c,d)}};
Jya=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.eG(f)}else b=new g.vD("Unhandled field",b),g.fG(b)};
Lya=function(a,b,c){this.Pn=a;this.j=b;this.Oa=c};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
SI=function(a){this.value=a};
Mya=function(a){this.value=a};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
Nya=function(){QI.apply(this,arguments)};
Oya=function(a){this.value=a};
Pya=function(a){this.value=a};
Qya=function(a){this.value=a};
Rya=function(a){this.value=a};
Sya=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(a){this.value=a};
XI=function(a){this.value=a};
YI=function(a){this.value=a};
ZI=function(a){this.value=a};
$I=function(){QI.apply(this,arguments)};
aJ=function(a){this.value=a};
bJ=function(a){this.value=a};
cJ=function(a){this.value=a};
dJ=function(a){this.value=a};
eJ=function(a){this.value=a};
Tya=function(a){this.value=a};
fJ=function(a){this.value=a};
Uya=function(a){this.value=a};
Vya=function(a){this.value=a};
Wya=function(a){this.value=a};
Xya=function(a){this.value=a};
gJ=function(a){this.value=a};
hJ=function(a){this.value=a};
iJ=function(a){this.value=a};
jJ=function(a){this.value=a};
Yya=function(a){this.value=a};
kJ=function(a){this.value=a};
lJ=function(a){this.value=a};
mJ=function(a){this.value=a};
Zya=function(a){this.value=a};
nJ=function(a){this.value=a};
oJ=function(a){this.value=a};
pJ=function(a){this.value=a};
qJ=function(a){this.value=a};
rJ=function(a){this.value=a};
sJ=function(a){this.value=a};
tJ=function(a){this.value=a};
uJ=function(a){this.value=a};
vJ=function(a){this.value=a};
$ya=function(a){this.value=a};
wJ=function(a){this.value=a};
xJ=function(a){this.value=a};
yJ=function(a){this.value=a};
aza=function(a){this.value=a};
zJ=function(a){this.value=a};
AJ=function(a){this.value=a};
BJ=function(a){this.value=a};
CJ=function(){QI.apply(this,arguments)};
bza=function(a){this.value=a};
DJ=function(){QI.apply(this,arguments)};
EJ=function(){QI.apply(this,arguments)};
cza=function(){QI.apply(this,arguments)};
FJ=function(){QI.apply(this,arguments)};
dza=function(a){this.value=a};
GJ=function(a){this.value=a};
eza=function(a){this.value=a};
IJ=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!HJ(a.Ca,c.value))return!1;return!0};
JJ=function(){return""};
fza=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
KJ=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Ck=c;this.Ju=d;this.args=[];b&&this.args.push(b)};
LJ=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Ck=c;this.Ju=d;this.args=[];b&&this.args.push(b)};
MJ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
HJ=function(a,b){return a.j.has(b)};
NJ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
OJ=function(a){return Array.from(a.j.keys())};
PJ=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!HJ(a.Ca,c.value))return!1;return!0};
hza=function(a){var b;return(null==(b=gza.get(a))?void 0:b.Zw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
jza=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:iza.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=QJ(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(QJ(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(QJ(a.value))}return c};
kza=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:iza.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
QJ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
lza=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Jr(d||[],function(e){return jza(a,e)}),b.debugData=Object.assign({},c&&0=b?b:0;this.j=a=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
qL=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1};
EL=function(a,b){return 0<=DL(a,b)};
MBa=function(a,b){if(!a)return NaN;b=DL(a,b);return 0<=b?a.start(b):NaN};
FL=function(a,b){if(!a)return NaN;b=DL(a,b);return 0<=b?a.end(b):NaN};
GL=function(a){return a&&a.length?a.end(a.length-1):NaN};
HL=function(a,b){a=FL(a,b);return 0<=a?a-b:0};
IL=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return BL(d,e)};
JL=function(a,b,c,d){g.yG.call(this);var e=this;this.Nd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.WW={error:function(){!e.isDisposed()&&e.isActive&&e.oa("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.oa("updateend",e)}};
g.zG(this.Nd,this.WW);this.dG=this.isActive};
KL=function(a,b,c,d,e,f){g.yG.call(this);var h=this;this.dc=a;this.fh=b;this.id=c;this.containerType=d;this.tb=e;this.dh=f;this.ZO=this.WD=this.If=null;this.VG=!1;this.appendWindowStart=this.timestampOffset=0;this.zM=BL([],[]);this.zC=!1;this.VD=[];this.QA=NBa?[]:void 0;this.Ed=function(m){return h.oa(m.type,h)};
var l;if(null==(l=this.dc)?0:l.addEventListener)this.dc.addEventListener("updateend",this.Ed),this.dc.addEventListener("error",this.Ed)};
LL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
ML=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
NL=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Sa=b;this.isView=c;this.K=0;this.D=!1;this.G=!0;this.W=0;this.callback=null;this.Z=!1;this.Sa||(this.fh=this.mediaElement.Kb());this.events=new g.kL(this);g.M(this,this.events);this.C=new ML(this.Sa?window.URL.createObjectURL(this.Sa):this.fh.webkitMediaSourceURL,!0);a=this.Sa||this.fh;jD(this.events,a,["sourceopen","webkitsourceopen"],this.W$);jD(this.events,a,["sourceclose","webkitsourceclose"],this.V$);this.N={updateend:this.g3}};
OBa=function(){return!!(window.MediaSource||OL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
PBa=function(a,b){PL(a)?g.Xf(function(){b(a)}):a.callback=b};
RBa=function(a,b,c){if(QBa){var d;QL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.qa)?void 0:RL(d)},!1);g.zG(b,a.N,a);g.zG(c,a.N,a)}a.j=b;a.B=c;g.M(a,b);g.M(a,c)};
SBa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.tb;c=c.tb;var f,h=null==(f=a.Sa)?void 0:f.addSourceBuffer(e),l;f="fakesb"===d.split(";")[0]?void 0:null==(l=a.Sa)?void 0:l.addSourceBuffer(d);a.fh&&(a.fh.webkitSourceAddId("0",e),a.fh.webkitSourceAddId("1",d));l=new KL(h,a.fh,"0",EBa(e),c,!1);d=new KL(f,a.fh,"1",EBa(d),b,!0);RBa(a,l,d)};
SL=function(a){return!!a.j||!!a.B};
PL=function(a){try{return"open"===TL(a)}catch(b){return!1}};
TL=function(a){if(a.Sa)return a.Sa.readyState;switch(a.fh.webkitSourceState){case a.fh.SOURCE_OPEN:return"open";case a.fh.SOURCE_ENDED:return"ended";default:return"closed"}};
TBa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||OL&&window.ManagedMediaSource};
UBa=function(a){PL(a)&&(a.Sa?a.Sa.endOfStream():a.fh.webkitSourceEndOfStream(a.fh.EOS_NO_ERROR))};
VBa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Nd:a.j,f=a.B.isView()?a.B.Nd:a.B,h=new NL(a.mediaElement,a.Sa,!0);h.C=a.C;RBa(h,new JL(e,b,c,d),new JL(f,b,c,d));PL(a)||a.j.Rp(a.j.Qc());return h};
WBa=function(a){var b;null==(b=a.j)||b.Ey();var c;null==(c=a.B)||c.Ey();a.G=!1};
UL=function(){var a=this;this.PZ=this.bR=qaa;this.promise=new g.Zf(function(b,c){a.bR=b;a.PZ=c})};
VL=function(){g.I.call(this);this.pI=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Ld;this.qa=null;g.M(this,this.D)};
XBa=function(a){a=a.sD();return 1>a.length?NaN:a.end(a.length-1)};
YBa=function(a){!a.B&&OBa()&&(a.C?a.C.then(function(){return YBa(a)}):a.Ef()||(a.B=a.yq()))};
ZBa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
QL=function(a,b,c){var d;(null==(d=a.qa)?0:d.Rc())&&a.qa.va("rms",b,void 0===c?!1:c)};
$Ba=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10=a.B.length+1||0>c)mH("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.j=c;if(c===a.B.length){var e=a.Wa.get().hf(1).clientPlaybackNonce;oM(a.D,a.layout)}else e=a.B[c].sb().layoutId;a.Oc.get().finishSegmentByCpn(b.layoutId,e)}})};
uCa=function(a,b,c,d){nM(a,b,c,"skipped",function(){xCa(a,d)})};
nM=function(a,b,c,d,e){if(!a.K){var f=a.B[a.j];f?(f.sb().layoutId!==c.layoutId&&mH("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.sb().layoutId}),a.K=!0,f.qf(f.sb(),d),xza(a.C,b,c,d),a.K=!1,a.G=!1,a.Z?(a.Z(),zCa(a.Gc.get())):e()):mH("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
xCa=function(a,b){a.j===a.B.length-1?(a.j++,oM(a.D,a.layout),zCa(a.Gc.get())):ACa(a,b)};
ACa=function(a,b){if(-1===a.j&&(a.callback.Ac(a.slot,a.layout),0e&&h.WF(p,e-d);return p};
LCa=function(a,b){var c=NJ(b.Ca,"metadata_type_sodar_extension_data");if(c)try{Sza(0,c)}catch(d){mH("Unexpected error when loading Sodar",a,b,{error:d})}};
NCa=function(a,b,c,d,e,f){MCa(a,b,new g.nH(c,new g.XL),d,e,!1,f)};
MCa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;vBa(c)&&bL(e,0,null)&&(!QK(a,"impression")&&h&&h(),a.Uc("impression"));QK(a,"impression")&&(g.qH(c,4)&&!g.qH(c,2)&&a.Ah("pause"),0>pH(c,4)&&!(0>pH(c,2))&&a.Ah("resume"),g.qH(c,16)&&.5<=e&&a.Ah("seek"),f&&g.qH(c,2)&&OCa(a,c.state,b,d,e))};
OCa=function(a,b,c,d,e,f,h){if(QK(a,"impression")){var l=1>=Math.abs(d-e);PCa(a,b,l?d:e,c,d,f,h&&l);l&&a.Uc("complete")}};
PCa=function(a,b,c,d,e,f,h){PK(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.oH(b,16))||(null==b?0:g.oH(b,32))||(bL(c,.25*e,d)&&(f&&!QK(a,"first_quartile")&&f("first"),a.Uc("first_quartile")),bL(c,.5*e,d)&&(f&&!QK(a,"midpoint")&&f("second"),a.Uc("midpoint")),bL(c,.75*e,d)&&(f&&!QK(a,"third_quartile")&&f("third"),a.Uc("third_quartile")))};
QCa=function(a,b){QK(a,"impression")&&a.Ah(b?"fullscreen":"end_fullscreen")};
RCa=function(a){QK(a,"impression")&&a.Ah("clickthrough")};
SCa=function(a){a.Ah("active_view_measurable")};
TCa=function(a){QK(a,"impression")&&!QK(a,"seek")&&a.Ah("active_view_fully_viewable_audible_half_duration")};
UCa=function(a){QK(a,"impression")&&!QK(a,"seek")&&a.Ah("active_view_viewable")};
VCa=function(a){QK(a,"impression")&&!QK(a,"seek")&&a.Ah("audio_audible")};
WCa=function(a){QK(a,"impression")&&!QK(a,"seek")&&a.Ah("audio_measurable")};
XCa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Oc=d;this.ob=e;this.Ia=f;this.xe=h;this.yb=l;this.Re=m;this.Da=n;this.Oa=p;this.Wa=q;this.wI=!0;this.ud=this.Lc=null;this.adCpn=void 0};
YCa=function(a,b,c){var d;a.Oa.get().zi("ads_qua","cpn."+NJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().hf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
ZCa=function(a,b){var c,d;a.Oa.get().zi("ads_imp","cpn."+NJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Wa.get().hf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.U(null==(d=NJ(a.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,rM))};
$Ca=function(a){return{enterMs:NJ(a.Ca,"metadata_type_layout_enter_ms"),exitMs:NJ(a.Ca,"metadata_type_layout_exit_ms")}};
aDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){pM.call(this,a,b,c,d,e,h,l,m,n,q);this.xe=f;this.Re=p;this.yb=r;this.Da=t;this.ud=this.Lc=null};
bDa=function(a,b){var c;a.Oa.get().zi("ads_imp","acpn."+(null==(c=a.Wa.get().hf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
cDa=function(a,b,c){var d;a.Oa.get().zi("ads_qua","cpn."+NJ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().hf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
dDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,E,F,H){this.Wc=a;this.je=b;this.B=c;this.Wa=d;this.Oc=e;this.Ia=f;this.Oa=h;this.xe=l;this.Cf=m;this.yb=n;this.Re=p;this.Ud=q;this.qc=r;this.Gc=t;this.Zc=v;this.mf=x;this.Bb=B;this.uf=E;this.Da=F;this.j=H};
sM=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B){this.Wc=a;this.je=b;this.j=c;this.Oa=d;this.yb=e;this.Re=f;this.Ud=h;this.Wa=l;this.Ia=m;this.qc=n;this.Gc=p;this.Zc=q;this.mf=r;this.Bb=t;this.uf=v;this.Da=x;this.Oc=B};
eDa=function(a,b,c,d){xG.call(this,"survey-interstitial",a,b,c,d)};
tM=function(a,b,c,d,e){GK.call(this,c,a,b,d);this.Oa=e;a=NJ(b.Ca,"metadata_type_ad_placement_config");this.ob=new NK(b.Lb,e,a,b.layoutId)};
uM=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
gDa=function(a,b,c){c=void 0===c?fDa:c;c.widtha.width*a.height*.2)return{VK:3,ZF:501,errorMessage:"ad("+uM(c)+") to container("+uM(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{VK:3,ZF:501,errorMessage:"ad("+uM(c)+") covers container("+uM(a)+") center."}};
hDa=function(a,b){var c=NJ(a.Ca,"metadata_type_ad_placement_config");return new NK(a.Lb,b,c,a.layoutId)};
vM=function(a){return NJ(a.Ca,"metadata_type_invideo_overlay_ad_renderer")};
iDa=function(a,b,c,d){xG.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
wM=function(a,b,c,d,e,f,h,l,m,n,p,q){GK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ia=l;this.Bb=m;this.Da=n;this.K=p;this.G=q;this.ob=hDa(b,c)};
jDa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];OK().forEach(function(b){a.push(b)});
return{Hd:a,Qe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
xM=function(a,b,c,d,e,f,h,l,m,n,p,q,r){GK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.N=l;this.Ia=m;this.Bb=n;this.Da=p;this.K=q;this.G=r;this.ob=hDa(b,c)};
kDa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(OK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Hd:a,Qe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
yM=function(a){this.Ia=a;this.j=!1};
lDa=function(a,b,c){xG.call(this,"survey",a,{},b,c)};
mDa=function(a,b,c,d,e,f,h){GK.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Da=h};
nDa=function(a,b,c,d,e,f,h,l,m,n){this.pc=a;this.Ia=b;this.Oa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Bb=l;this.Da=m;this.j=n};
oDa=function(a,b,c,d,e,f,h,l,m,n){this.pc=a;this.Ia=b;this.Oa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Bb=l;this.Da=m;this.j=n};
zM=function(a,b,c,d,e,f,h,l,m){YK.call(this,a,b,c,d,e,f,h,m);this.Rm=l};
pDa=function(){var a=oBa();a.Hd.push("metadata_type_ad_info_ad_metadata");return a};
qDa=function(a,b,c,d,e,f){this.pc=a;this.Ia=b;this.Oa=c;this.B=d;this.Rm=e;this.j=f};
rDa=function(a,b,c,d,e,f,h){this.pc=a;this.Ia=b;this.Oa=c;this.B=d;this.Rm=e;this.j=f;this.Da=h};
AM=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
BM=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;av?new LJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new Ev(d,v),a=c instanceof LJ?c:new KM(JJ,b,c,!1,a.id)):a=new LJ("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new EM(JJ,b,!1,a.id):new LJ("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var x;b=null!=(x=a.layoutIdEnteredTrigger)&&x.triggeringLayoutId?new GM(JJ,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new LJ("Not able to create LayoutIdEnteredTrigger")}else b=new LJ("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a};
iEa=function(a,b,c,d,e,f,h,l){return null===b?new LJ("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[hEa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new MJ([new RI(d),new VI(e)]);n=rK(c.eb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Lb:new Map,
layoutExitNormalTriggers:[new NM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:q,jc:m(r),adLayoutLoggingData:p}})]};
jEa=function(a,b,c,d,e,f,h,l){return null===b?new LJ("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[hEa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new MJ([new SI(d),new VI(e)]);n=rK(c.eb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Lb:new Map,layoutExitNormalTriggers:[new NM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:q,jc:m(r),adLayoutLoggingData:p}})]};
nEa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,pN(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return kEa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={Ru:void 0},h=f.next()){l.Ru=h.value;h=g.u(l.Ru.hM);for(var m=h.next(),n={};!m.done;n={Sm:void 0},m=h.next())n.Sm=m.value,m=function(p,q){return function(r){return p.Sm.YM(r,q.Ru.instreamVideoAdRenderer.elementId,p.Sm.gM)}}(n,l),n.Sm.isContentVideoCompanion?b.push(lEa(c,d,e,l.Ru.instreamVideoAdRenderer.elementId,n.Sm.associatedCompositePlayerBytesLayoutId,n.Sm.adSlotLoggingData,m)):1=l?function(){return new LJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=aFa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=TEa(h);r=rK(e.eb.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},x=new IM(e.j,d),B=new PM(e.j,r),E=new WM(e.j,r),F=new zDa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Lb:new Map,layoutExitNormalTriggers:[x,F],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[E],Vc:[],Ya:"core",Ca:new MJ([new Vya(h),new VI(b),new AJ(l/1E3),new DJ(t)]),jc:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=ZEa(a,c,p.slotId,d,e,m,n);return m instanceof LJ?m:[p].concat(g.oa(m))}};
jFa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(x){x=cFa(x.slotId,c,b,e(x),d,f,h);m=x.kca;return x.E5};
else if(c.renderer.instreamVideoAdRenderer)n=function(x){var B=x.slotId;x=e(x);var E=h,F=c.config.adPlacementConfig,H=dFa(F),P=H.QV,Q=H.UV;H=c.renderer.instreamVideoAdRenderer;var R;if(null==H?0:null==(R=H.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ha=eFa(H,E);R=Math.min(P+1E3*ha.videoLengthSeconds,Q);E=new BM(0,[ha.videoLengthSeconds]);Q=ha.videoLengthSeconds;var ua=ha.playerVars,qa=ha.instreamAdPlayerOverlayRenderer,ma=
ha.adVideoId,xa=fFa(c),ea=ha.Lb;ha=ha.LU;var aa=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;B=rK(b.eb.get(),"LAYOUT_TYPE_MEDIA",B);var Ma={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Lb:ea,layoutExitNormalTriggers:[new uDa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new aJ(d),new nJ(Q),new oJ(ua),new rJ(P),new sJ(R),qa&&new bJ(qa),
new VI(F),new $I(ma),new WI(E),new wJ(xa),H&&new qJ(H),new kJ({current:null}),new uJ({}),new FJ(ha)].filter(gFa)),jc:x(Ma),adLayoutLoggingData:aa}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=hFa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof LJ)return v;l.push.apply(l,g.oa(v))}}catch(x){return new LJ(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:iFa(c)})}return l};
iFa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.U(b,$M))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
cFa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=dFa(l),n=m.QV,p=m.UV;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={F_:n,au:0,hca:q};m=m.map(function(v){return kFa(a,v,r,c,d,l,e,p,h)}).map(function(v,x){x=new BM(x,q);
return v(x)});
var t=m.map(function(v){return v.F5});
return{E5:lFa(c,a,n,t,l,fFa(b),d,p,f),kca:m.map(function(v){return v.jca})}};
kFa=function(a,b,c,d,e,f,h,l,m){var n=eFa(g.U(b,$M),m),p=c.F_,q=c.au,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.F_=r;c.au++;c.hca.push(n.videoLengthSeconds);var t,v,x=null==(t=g.U(b,$M))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(B){var E=n.playerVars;2<=B.B&&(E.slot_pos=B.j);E.autoplay="1";var F,H;E=n.videoLengthSeconds;var P=n.playerVars,Q=n.Lb,R=n.LU,ha=
n.instreamAdPlayerOverlayRenderer,ua=n.adVideoId,qa=null==(F=g.U(b,$M))?void 0:F.adLayoutLoggingData;F=null==(H=g.U(b,$M))?void 0:H.sodarExtensionData;H=rK(d.eb.get(),"LAYOUT_TYPE_MEDIA",a);var ma={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};B={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Lb:Q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Ca:new MJ([new aJ(h),new nJ(E),new oJ(P),new rJ(p),new sJ(r),
new tJ(q),new kJ({current:null}),ha&&new bJ(ha),new VI(f),new $I(ua),new WI(B),F&&new qJ(F),x&&new cza(x),new uJ({}),new FJ(R)].filter(gFa)),jc:e(ma),adLayoutLoggingData:qa};E=bFa(g.U(b,$M),f,h,B.layoutId,d);return{F5:B,jca:E}}};
eFa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=iC(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=c.video_id;
f||(f=(f=a.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var h;b=null!=(h=mFa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Lb:a.pings?MK(a.pings):new Map,LU:LK(a.pings)}};
fFa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
dFa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{QV:b,UV:a}};
oFa=function(a,b,c,d,e,f,h,l){var m=c.pings;return m?[nFa(a,f,e,function(n){var p=n.slotId;n=l(n);var q=c.adLayoutLoggingData;p=rK(b.eb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",p);var r={layoutId:p,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"};return{layoutId:p,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Lb:MK(m),layoutExitNormalTriggers:[new NM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new VI(d),
new FJ(LK(m)),new nJ(h/1E3)]),jc:n(r),adLayoutLoggingData:q}})]:new LJ("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
qFa=function(a,b,c,d,e,f,h,l){a=pFa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=rK(b.eb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Lb:q,layoutExitNormalTriggers:[new MM(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new $ya(e),new VI(c)]),jc:m(p)}});
return a instanceof LJ?a:[a]};
sFa=function(a,b,c,d,e,f,h){return[rFa(a,f,d,function(l){var m=l.slotId;l=h(l);m=rK(b.eb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Lb:new Map,layoutExitNormalTriggers:[new NM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new bJ(e),new VI(c)]),jc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
wFa=function(a,b,c,d,e,f,h,l){a=tFa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=rK(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=uFa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,vFa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=rK(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=uFa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,vFa(b,n,p))):q.imageOverlayAdContentRenderer?(q=rK(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=vFa(b,n,p),n.push(new CDa(b.j,q)),n=uFa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new KJ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new KJ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof LJ?a:[a]};
zFa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new LJ("Expected valid duration for AdActionInterstitialRenderer."):function(p){return xFa(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return yFa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=rK(b.eb.get(),"LAYOUT_TYPE_ENDCAP",
v);return VEa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new fJ(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
AFa=function(a,b,c,d){if(!c.playerVars)return new LJ("No playerVars available in AdIntroRenderer.");var e=iC(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=rK(a.eb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{rg:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Lb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"adapter",Ca:new MJ([new vJ({}),
new VI(b),new kJ({current:null}),new oJ(e)]),jc:f(l)},Pl:[new HM(a.j,h,["error"])],Mj:[],Jy:[],Iy:[]}}};
CFa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=SEa(e);if(!SDa(e,n))return new LJ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new LJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=WEa(a,b,e,f,c,d,h);return q instanceof LJ?q:function(r){return BFa(b,r.slotId,c,p,e,TEa(e),h(r),q,l,m)}};
EFa=function(a,b,c,d,e,f,h,l){function m(q){return yFa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=rK(b.eb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return VEa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Uya(e),f],e.adLayoutLoggingData)}
if(!XDa(e))return new LJ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=DFa(b,r,c,p,t,new Map,q,m,void 0,EN(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new hJ(r.BJ);q=new XI(l);return{rg:{layoutId:r.layoutId,layoutType:r.layoutType,Lb:r.Lb,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:r.Ya,Ca:new MJ([].concat(g.oa(r.Gy),[t,q])),jc:r.jc,adLayoutLoggingData:r.adLayoutLoggingData},Pl:[],Mj:r.layoutExitMuteTriggers,Jy:r.layoutExitUserInputSubmittedTriggers,Iy:r.Vc,Eg:r.Eg}}};
GFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){a=EK(a,"SLOT_TYPE_PLAYER_BYTES");d=rEa(b,h,d,e,a,n,p);if(d instanceof LJ)return d;var B;h=null==(B=NJ(d.Ca,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new LJ("Invalid adNotify layout");b=FFa(h,b,c,e,f,m,l,n,q,r,t,v,x);return b instanceof LJ?b:[d].concat(g.oa(b))};
FFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=HFa(b,c,d,f,h,l,m,n,p,q,r);IFa(f)?(d=JFa(b,a),a=EK(b.eb.get(),"SLOT_TYPE_IN_PLAYER"),f=rK(b.eb.get(),"LAYOUT_TYPE_SURVEY",a),l=KFa(b,d,l),b=[].concat(g.oa(l.slotExpirationTriggers),[new DM(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof LJ?a:{Iw:Object.assign({},
l,{slotExpirationTriggers:b,Ca:new MJ([new xJ(a.layout)]),adSlotLoggingData:e}),jg:a.jg}):e=vEa(b,a,l,e,c);return e instanceof LJ?e:[].concat(g.oa(e.jg),[e.Iw])};
OFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=HFa(a,b,c,e,f,h,m,n,p,q,r,t);IFa(e)?(e=LFa(a,c,h,l),e instanceof LJ?a=e:(l=EK(a.eb.get(),"SLOT_TYPE_IN_PLAYER"),m=rK(a.eb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.oa(e.slotExpirationTriggers),[new DM(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof LJ?
l:{Iw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:MFa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:NFa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ca:new MJ([new GJ(FN(c)),new xJ(l.layout)]),adSlotLoggingData:d},jg:l.jg})):a=wEa(a,c,h,l,d,m.yc,b);return a instanceof LJ?a:a.jg.concat(a.Iw)};
IFa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.U(b.value,bN))return!0;return!1};
HFa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(iM(p)&&jM(p))a:{var v=PFa(d,c,p);if(v instanceof LJ)t=v;else{for(var x=0,B=[],E=[],F=[],H=[],P=[],Q=[],R=new lJ({current:null}),ha=new ZI({current:null}),ua=!1,qa=[],ma=0,xa=[],ea=0;ea=m)return new LJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new lJ({current:null}),p=WEa(a,b,c,n,d,f,h);return RFa(a,d,f,m,e,function(q,r){var t=q.slotId,v=TEa(c);q=h(q);var x,B=null!=(x=EN(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
x:rK(b.eb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};x=p(B,r);var E=NJ(x.Ca,"metadata_type_fulfilled_layout");E||mH("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new VI(d),new BJ(m),new DJ(v),n];E&&v.push(new iJ(E.layoutType));return{t8:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Lb:new Map,layoutExitNormalTriggers:[new MM(b.j,B)],layoutExitSkipTriggers:[new PM(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new WM(b.j,r.layoutId)],Vc:[],Ya:"core",Ca:new MJ(v),jc:q(t)},D7:x}})};
TFa=function(a){if(!WDa(a))return!1;var b=g.U(a.adVideoStart,HN);return b?g.U(a.linearAd,$M)&&EDa(b)?!0:(mH("Invalid Sandwich with notify"),!1):!1};
UFa=function(a){if(null==a.linearAds)return!1;a=g.U(a.adStart,HN);return a?EDa(a)?!0:(mH("Invalid LASR with notify"),!1):!1};
VFa=function(a){if(!VDa(a))return!1;a=g.U(a.adStart,HN);return a?EDa(a)?!0:(mH("Invalid LASR with notify"),!1):!1};
IN=function(a,b,c,d,e,f,h,l){this.eb=a;this.Mb=b;this.Db=c;this.Da=d;this.Wb=e;this.j=f;this.Oj=h;this.loadPolicy=void 0===l?1:l};
aEa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(FDa);var p=c.filter(QDa),q=d.filter(FDa),r=new Map,t=DEa(b),v=c.some(function(ea){var aa;return"SLOT_TYPE_PLAYER_BYTES"===(null==ea?void 0:null==(aa=ea.adSlotMetadata)?void 0:aa.slotType)}),x=c.some(function(ea){var aa;
return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==ea?void 0:null==(aa=ea.adSlotMetadata)?void 0:aa.slotType)});
c=c.some(function(ea){var aa;return"SLOT_TYPE_IN_PLAYER"===(null==ea?void 0:null==(aa=ea.adSlotMetadata)?void 0:aa.slotType)});
if(v||x||c)c=GEa(p,b,l,e,t,a.Wb.get(),a.loadPolicy,r,a.Da.get(),a.eb.get(),c),c instanceof LJ?mH(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.oa(c));c=g.u(b);for(x=c.next();!x.done;x=c.next()){x=x.value;var B=WFa(a,r,x,e,f,h,v,l,t,m,p);B instanceof LJ?mH(B,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.oa(B))}XFa(a.Da.get())||(f=YFa(a,q,e,l,t,r),n.push.apply(n,g.oa(f)));if(null===a.j||h&&!l.CV){var E,
F,H;a=l.yc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(E=b[0].config)?void 0:null==(F=E.adPlacementConfig)?void 0:F.kind)&&(null==(H=b[0].renderer)?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var P,Q,R,ha;mH("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(P=b[0])?void 0:null==(Q=P.config)?void 0:null==(R=Q.adPlacementConfig)?void 0:R.kind,renderer:null==(ha=b[0])?void 0:ha.renderer})}return n}E=
d.filter(FDa);n.push.apply(n,g.oa(nEa(r,E,a.Mb.get(),a.j,e,v)));if(!n.length){var ua,qa,ma,xa;mH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(ua=b[0])?void 0:null==(qa=ua.config)?void 0:null==(ma=qa.adPlacementConfig)?void 0:ma.kind,renderer:null==(xa=b[0])?void 0:xa.renderer})}return n};
YFa=function(a,b,c,d,e,f){function h(r){return RJ(a.Wb.get(),r)}
var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&TFa(p)?(mH("Found AdNotify with SandwichedLinearAdRenderer"),q=g.U(p.adVideoStart,HN),p=g.U(p.linearAd,$M),pN(f,n,m.config.adPlacementConfig.kind),n=void 0,q=sEa(null==(n=q)?void 0:n.layout.layoutId,a.Mb.get(),a.Db.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get(),a.Wb.get()),q instanceof LJ?mH(q):l.push.apply(l,g.oa(q))):
q&&(!q.adLayoutMetadata&&UFa(q)||q.adLayoutMetadata&&VFa(q))&&(mH("Found AdNotify with LinearAdSequenceRenderer"),pN(f,n,m.config.adPlacementConfig.kind),n=void 0,p=FFa(null==(n=g.U(q.adStart,HN))?void 0:n.layout.layoutId,a.Mb.get(),a.Db.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,YM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),p instanceof LJ?mH(p):l.push.apply(l,g.oa(p)))}return l};
WFa=function(a,b,c,d,e,f,h,l,m,n,p){function q(E){return RJ(a.Wb.get(),E)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,x=c.adSlotLoggingData,B=l.CV&&"AD_PLACEMENT_KIND_START"===v;B=f&&!B;if(null!=r.adsEngagementPanelRenderer)return qN(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.adsEngagementPanelRenderer;E=RJ(a.Wb.get(),E);return JN(Q,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new Mya(ha),F,H,ha.impressionPings,E,r.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return iEa(a.Mb.get(),a.j,a.Db.get(),r.actionCompanionAdRenderer,t,x,d,q);qN(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.actionCompanionAdRenderer;E=RJ(a.Wb.get(),E);return JN(Q,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new RI(ha),F,H,ha.impressionPings,E,r.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return jEa(a.Mb.get(),a.j,a.Db.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,x,d,q);
qN(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.topBannerImageTextIconButtonedLayoutViewModel;E=RJ(a.Wb.get(),E);return ZFa(Q,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new SI(ha),F,H,E,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,P)})}else if(r.imageCompanionAdRenderer)qN(b,
c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.imageCompanionAdRenderer;
E=RJ(a.Wb.get(),E);return JN(Q,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Oya(ha),F,H,ha.impressionPings,E,r.imageCompanionAdRenderer.adLayoutLoggingData,P)});
else if(r.bannerImageLayoutViewModel)qN(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.bannerImageLayoutViewModel;E=RJ(a.Wb.get(),E);return ZFa(Q,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Pya(ha),F,H,E,r.bannerImageLayoutViewModel.adLayoutLoggingData,P)});
else if(r.shoppingCompanionCarouselRenderer)qN(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,H,P){var Q=a.Db.get(),R=E.slotId,ha=r.shoppingCompanionCarouselRenderer;E=RJ(a.Wb.get(),E);return JN(Q,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Qya(ha),F,H,ha.impressionPings,E,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)});
else if(r.adBreakServiceRenderer){if(!gEa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return fEa(a.Mb.get(),t,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return eEa(a.Mb.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Oj)return new LJ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.yc||mH("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.yc),clientPlaybackNonce:l.clientPlaybackNonce});$Fa(a.Oj,{adPlacementRenderer:c,contentCpn:d,qs:e})}else{if(r.clientForecastingAdRenderer)return qFa(a.Mb.get(),a.Db.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return wFa(a.Mb.get(),a.Db.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return sFa(a.Mb.get(),a.Db.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
r.instreamVideoAdRenderer)&&B)return jFa(a.Mb.get(),a.Db.get(),c,d,q,n,!a.Da.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!B){if(h)return[];pN(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!VDa(r.linearAdSequenceRenderer))return new LJ("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new LJ("Received invalid LinearAdSequenceRenderer.");if(g.U(r.linearAdSequenceRenderer.adStart,HN)){mH("Found AdNotify in LinearAdSequenceRenderer");
b=g.U(r.linearAdSequenceRenderer.adStart,HN);if(!DDa(b))return new LJ("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return GFa(a.eb.get(),a.Mb.get(),a.Db.get(),a.Wb.get(),t,x,b,YM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Da.get())}return OFa(a.Mb.get(),a.Db.get(),t,x,r.linearAdSequenceRenderer.linearAds,YM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:
void 0,d,e,l,q,m,a.loadPolicy,a.Da.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!B){if(h)return[];pN(b,r,v);return xEa(a.Mb.get(),a.Db.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Da.get(),a.Wb.get(),p)}if(r.instreamSurveyAdRenderer)return SFa(a.Mb.get(),a.Db.get(),r.instreamSurveyAdRenderer,t,x,d,q,GN(a.Da.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return WDa(r.sandwichedLinearAdRenderer)?g.U(r.sandwichedLinearAdRenderer.adVideoStart,
HN)?(mH("Found AdNotify in SandwichedLinearAdRenderer"),b=g.U(r.sandwichedLinearAdRenderer.adVideoStart,HN),DDa(b)?(c=g.U(r.sandwichedLinearAdRenderer.linearAd,$M))?tEa(b,c,t,a.eb.get(),a.Mb.get(),a.Db.get(),a.Wb.get(),x,d,e,l,q,m,a.loadPolicy,a.Da.get()):new LJ("Missing IVAR from Sandwich"):new LJ("Invalid AdMessageRenderer.")):OFa(a.Mb.get(),a.Db.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Da.get()):new LJ("Received invalid SandwichedLinearAdRenderer.");
if(null!=r.videoAdTrackingRenderer)return oFa(a.Mb.get(),a.Db.get(),r.videoAdTrackingRenderer,t,x,d,e,q)}}return[]};
KN=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.Qb=a;this.Mb=b;this.Cf=d;this.Ia=e;this.Da=f;this.Oa=h;this.Oc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(m)})};
$Fa=function(a,b){if(a.j)mH("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Cf.get().JK);for(var c=b.next();!c.done;c=b.next())aGa(a,a.j,c.value)}};
aGa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Da.get().J.U().Rc()&&a.Oa.get().zi("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.ai.toFixed(3));DK(a.Qb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Mb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=LN(a.Da.get()),n=a.Oa;if(e.Da.get().J.U().experiments.kb("enable_smearing_expansion_dai")){var p=g.SJ(e.Da.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.SJ(e.Da.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Tn:bGa(c),WE:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.ai;if(0===d)m.kp=new Ev(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.kp=0>=t?new Ev(1E3*q,1E3*r):new Ev(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={Tn:bGa(c),WE:!1},r=c.startSecs+c.ai,c.startSecs<=d?m=new Ev(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new Ev(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.kp=m;f=dEa(e,f,h,p,l,[new Zya(c)]);e.Da.get().J.U().experiments.kb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.kp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.rd())&&(h=h.vc(),h.qoe&&(h=h.qoe,h.provider.X.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.MN(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):n.get().zi("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.kp.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
NN=function(a){var b,c=null==(b=NJ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=NJ(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=NJ(a.Ca,"metadata_type_content_cpn"),f=NJ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=NJ(a.Ca,"metadata_type_player_overlay_layout_renderer"),l=NJ(a.Ca,"metadata_type_player_underlay_renderer"),m=NJ(a.Ca,"metadata_type_ad_placement_config"),n=NJ(a.Ca,"metadata_type_video_length_seconds");
var p=HJ(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?NJ(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):HJ(a.Ca,"metadata_type_layout_enter_ms")&&HJ(a.Ca,"metadata_type_layout_exit_ms")?(NJ(a.Ca,"metadata_type_layout_exit_ms")-NJ(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Vp:d,contentCpn:e,BQ:c,iM:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,VI:p,inPlayerLayoutId:NJ(a.Ca,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:NJ(a.Ca,"metadata_type_linked_in_player_slot_id")}};
dGa=function(a,b){return cGa(a,b)};
eGa=function(a,b){b=cGa(a,b);if(!b)return null;var c;b.VI=null==(c=NJ(a.Ca,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
cGa=function(a,b){var c,d=null==(c=NJ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;HJ(a.Ca,"metadata_ad_video_is_listed")?c=NJ(a.Ca,"metadata_ad_video_is_listed"):b?c=b.isListed:(mH("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);HJ(a.Ca,"metadata_type_ad_info_ad_metadata")?b=NJ(a.Ca,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Bl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(mH("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{F4:b,adPlacementConfig:NJ(a.Ca,"metadata_type_ad_placement_config"),I4:c,contentCpn:NJ(a.Ca,"metadata_type_content_cpn"),inPlayerLayoutId:NJ(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:NJ(a.Ca,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:NJ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,
VI:void 0,BQ:d,Vp:a.layoutId,videoLengthSeconds:NJ(a.Ca,"metadata_type_video_length_seconds")}};
ON=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.j=a;this.C=b;this.B=c;this.Qb=d;this.Mb=e;this.Db=f;this.Wb=h;this.Da=l;this.Wa=m;this.Jh=!0};
fGa=function(a,b,c){return BEa(a.Mb.get(),b.contentCpn,b.Vp,function(d){return CEa(a.Db.get(),d.slotId,c,b.adPlacementConfig,b.Vp,RJ(a.Wb.get(),d))})};
PN=function(a,b,c,d,e,f,h,l){g.I.call(this);this.Qb=a;this.Ae=b;this.j=c;this.Da=d;this.B=e;this.Wa=f;this.Ia=h;this.Gc=l};
QN=function(a){g.I.call(this);this.j=a};
DK=function(a,b,c,d){a.j().uh(b,d);c=c();a=a.j();a.hc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;eK(d.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);eK(d.hc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.hc(c.slotId))throw new LJ("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(XJ(e,c))throw new LJ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Pg.rq.has(c.slotType))throw new LJ("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Pg.Cr.has(c.slotType))throw new LJ("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Mza(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);Mza(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);Mza(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=gK(f,h);if(XJ(f,c))throw new LJ("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Hza(c));f.j.set(h,l)}catch(ua){ua instanceof LJ&&ua.Ck?(UJ(d.hc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ua.Ck,c),mH(ua,c,void 0,void 0,ua.Ju)):(UJ(d.hc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),mH(ua,c));break a}XJ(d.j,c).K=!0;try{var m=d.j,n=XJ(m,c),p=c.slotEntryTrigger,q=m.Pg.yl.get(p.triggerType);q&&(q.fl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,x=m.Pg.yl.get(v.triggerType);x&&(x.fl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.ma.set(v.triggerId,x))}for(var B=g.u(c.slotExpirationTriggers),E=B.next();!E.done;E=B.next()){var F=E.value,H=m.Pg.yl.get(F.triggerType);H&&(H.fl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.W.set(F.triggerId,H))}var P=m.Pg.rq.get(c.slotType).get().build(m.C,c);n.N=P;var Q=m.Pg.Cr.get(c.slotType).get().build(m.G,c);Q.init();n.B=Q}catch(ua){ua instanceof LJ&&ua.Ck?(UJ(d.hc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ua.Ck,c),mH(ua,c,void 0,void 0,ua.Ju)):(UJ(d.hc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),mH(ua,c));VJ(d,c,!0);break a}eK(d.hc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.wh(c);for(var R=g.u(d.Fd),ha=R.next();!ha.done;ha=
R.next())ha.value.wh(c);qza(d,c)}};
RN=function(a,b,c,d){g.I.call(this);var e=this;this.Qb=a;this.Mb=b;this.qc=c;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(e)})};
ZDa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof KM?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):mH("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Ev(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.qc.get().addCueRange(d,c.start,c.end,!1,a)};
SN=function(){g.I.apply(this,arguments);this.Jh=!0;this.Ej=new Map;this.j=new Map};
gGa=function(a,b){a=g.u(a.Ej.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
DAa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}mH("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.hc(b)),layoutId:b})};
hGa=function(a,b){this.callback=a;this.slot=b};
TN=function(){};
iGa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
jGa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0};
kGa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
UN=function(a){this.Ia=a};
VN=function(a){g.I.call(this);this.CL=a;this.Vb=new Map};
lGa=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof WM&&f.triggeringLayoutId===b&&c.push(e)}c.length?dK(a.CL(),c):mH("Survey is submitted but no registered triggers can be activated.")};
WN=function(a,b,c){VN.call(this,a);var d=this;this.Da=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(d)})};
XN=function(a){g.I.call(this);this.j=a;this.Jh=!0;this.Vb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
YN=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
ZN=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&dK(a.j(),c)};
$N=function(a,b){g.I.call(this);var c=this;this.j=a;this.Vb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)})};
mGa=function(a,b,c,d){var e=[];a=g.u(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof NM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(mH("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
nGa=function(a){return a instanceof ADa||a instanceof BDa||a instanceof OM};
aO=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.qc=b;this.Ia=c;this.Wa=d;this.Jh=!0;this.Vb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(e)})};
oGa=function(a,b,c,d,e,f,h,l,m,n){if(a.Wa.get().hf(1).clientPlaybackNonce!==m)throw new LJ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Vb.set(c.triggerId,{Pu:new XM(b,c,d,e),Yu:f});a.qc.get().addCueRange(f,h,l,n,a)};
pGa=function(a,b){a=g.u(a.Vb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.Yu)return c}return""};
bO=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Zu)?void 0:d.slotId)||null};
qGa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
cO=function(a){g.I.call(this);this.j=a;this.Jh=!0;this.Vb=new Map};
oM=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof MM){var f;if(f=e.trigger.layoutId===b)f=(f=zza.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&dK(a.j(),c)};
dO=function(a){g.I.call(this);this.j=a;this.Jh=!0;this.Vb=new Map};
eO=function(a){g.I.call(this);this.C=a;this.Jh=!0;this.Vb=new Map;this.j=new Map;this.B=new Map};
rGa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
fO=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
sGa=function(a,b){for(var c=[],d=g.u(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof AM&&e.trigger.slotId===b&&c.push(e);1<=c.length&&dK(a.j(),c)};
tGa=function(a,b){var c={slotId:EK(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ca:new MJ([])},d=Object,e=d.assign;b=rK(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Lb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"surface",Ca:new MJ([]),
jc:mza(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{K7:!0,slot:c,layout:b})};
cEa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Tn:new Ev(-0x8000000000000,-0x8000000000000),WE:d},null!=c&&(d.kp=new Ev(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Tn:new Ev(0x7ffffffffffff,0x8000000000000),WE:d},null!=c&&(d.kp=new Ev(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||mH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||mH("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new LJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Tn:new Ev(a,e),WE:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.kp=new Ev(a,e)}return d;
default:return new LJ("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
bGa=function(a){var b=1E3*a.startSecs;return new Ev(b,b+1E3*a.ai)};
uGa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.U(b.value,nN))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1};
gO=function(){this.B=new Map;this.j=new Map;this.C=new Map};
EK=function(a,b){if(g.ZB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.lF(16)};
rK=function(a,b,c){if(g.ZB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.lF(16)};
DN=function(a,b){if(g.ZB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.lF(16)};
vGa=function(a){var b=[new gJ(a.Vp),new Yya(a.BQ),new VI(a.adPlacementConfig),new nJ(a.videoLengthSeconds),new AJ(a.VI)];a.instreamAdPlayerOverlayRenderer&&b.push(new bJ(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new cJ(a.playerOverlayLayoutRenderer));a.iM&&b.push(new ZI(a.iM));return b};
wGa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:rK(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Lb:new Map,layoutExitNormalTriggers:[new IM(function(n){return DN(f,
n)},c.Vp)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:b,Ca:d,jc:e(h),adLayoutLoggingData:m}};
hO=function(a,b){var c=this;this.eb=a;this.Da=b;this.j=function(d){return DN(c.eb.get(),d)}};
CEa=function(a,b,c,d,e,f){c=new MJ([new dJ(c),new VI(d)]);b=rK(a.eb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Lb:new Map,layoutExitNormalTriggers:[new IM(function(h){return DN(a.eb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:c,jc:f(d),adLayoutLoggingData:void 0}};
tN=function(a,b,c,d,e){var f=vGa(d);return wGa(b,c,d,new MJ(f),e,a.eb.get())};
xGa=function(a,b,c,d,e){var f=vGa(d);f.push(new Rya(d.F4));f.push(new Sya(d.I4));return wGa(b,c,d,new MJ(f),e,a.eb.get())};
JN=function(a,b,c,d,e,f,h,l,m,n){b=rK(a.eb.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new LM(a.j,e)];n&&h.push(new HM(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Lb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([d,new VI(f),new gJ(e)]),jc:l(p),adLayoutLoggingData:m}};
ZFa=function(a,b,c,d,e,f,h,l,m){b=rK(a.eb.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new LM(a.j,e)];m&&p.push(new HM(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Lb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([d,new VI(f),new gJ(e)]),jc:h(n),adLayoutLoggingData:l}};
vFa=function(a,b,c){var d=[];d.push(new yDa(a.j,c));b&&d.push(b);return d};
uFa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Lb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new DM(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new Nya(d),new VI(e)]),jc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
VEa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Lb:new Map,layoutExitNormalTriggers:[new IM(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Vc:[],Ya:"core",Ca:new MJ([new VI(d)].concat(g.oa(h))),jc:e(m),adLayoutLoggingData:l}};
EN=function(a,b,c,d){if(a.Da.get().bf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)mH("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
xFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=DFa(a,b,c,e,f,h,l,m,q,EN(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Gy;c=new hJ(a.BJ);d=a.layoutExitSkipTriggers;0b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);oO=new Uint8Array(256);pO=nO(256);qO=nO(256);rO=nO(256);sO=nO(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;oO[f]=e;b=e<<1^(e>>7&&283);var h=b^e;pO[f]=b<<24|e<<16|e<<8|h;qO[f]=h<<24|pO[f]>>>8;rO[f]=e<<24|qO[f]>>>8;sO[f]=e<<24|rO[f]>>>8}GGa=!0}e=nO(44);for(c=
0;4>c;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(oO[a>>16&255]^d)<<24|oO[a>>8&255]<<16|oO[a&255]<<8|oO[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
HGa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=pO[c>>>24]^qO[d>>16&255]^rO[e>>8&255]^sO[f&255]^b[n++],l=pO[d>>>24]^qO[e>>16&255]^rO[f>>8&255]^sO[c&255]^b[n++],m=pO[e>>>24]^qO[f>>16&255]^rO[c>>8&255]^sO[d&255]^b[n++],f=pO[f>>>24]^qO[c>>16&255]^rO[d>>8&255]^sO[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=oO[c>>>24]^h>>>24;a[1]=oO[d>>16&255]^h>>16&255;a[2]=oO[e>>8&255]^
h>>8&255;a[3]=oO[f&255]^h&255;h=b[41];a[4]=oO[d>>>24]^h>>>24;a[5]=oO[e>>16&255]^h>>16&255;a[6]=oO[f>>8&255]^h>>8&255;a[7]=oO[c&255]^h&255;h=b[42];a[8]=oO[e>>>24]^h>>>24;a[9]=oO[f>>16&255]^h>>16&255;a[10]=oO[c>>8&255]^h>>8&255;a[11]=oO[d&255]^h&255;h=b[43];a[12]=oO[f>>>24]^h>>>24;a[13]=oO[c>>16&255]^h>>16&255;a[14]=oO[d>>8&255]^h>>8&255;a[15]=oO[e&255]^h&255};
vO=function(){if(!IGa&&!g.lE){if(uO)return uO;var a;uO=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=uO)?0:b.importKey)&&(null==(c=uO)?0:c.sign)&&(null==(d=uO)?0:d.encrypt))return uO;uO=void 0}};
JGa=function(){this.C=this.j=0;this.B=Array.from({length:wO.length}).fill(0)};
KGa=function(){};
LGa=function(a){this.name=a;this.startTimeMs=(0,g.WD)();this.j=!1};
MGa=function(){this.j=new KGa};
OGa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){NGa(a,c,(0,g.WD)()-d);return f};
return b.then(e,e)}NGa(a,c,(0,g.WD)()-d);return b};
NGa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new JGa),a.j[b].aj(c,d))};
PGa=function(){};
QGa=function(a){if(!xO.isActive())return a.exports.AES128CTRCipher_encrypt.bind(a.exports);var b=a.j?"oals":"oalw";return function(c,d,e){xO.pk(b,function(){a.exports.AES128CTRCipher_encrypt(c,d,e)})}};
yO=function(a,b){g.I.call(this);var c=this;this.j=a;this.B=QGa(this.j);this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset);this.addOnDisposeCallback(function(){c.j.exports.AES128CTRCipher_release(c.cipher)})};
g.zO=function(a){this.D=a};
g.AO=function(a){g.I.call(this);this.B=a};
BO=function(a,b){this.B=new yO(a,b)};
RGa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
SGa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,x=0;64>x;)16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=q+CO[x]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=p+CO[x]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=n+CO[x]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=m+CO[x]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,x++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
UGa=function(a){var b=new Uint8Array(32),c=64-a.B;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;TGa(a);return b};
TGa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
VGa=function(a){this.j=a};
WGa=function(a,b,c){a=new RGa(a.j);a.update(b);a.update(c);b=UGa(a);a.update(a.G);a.update(b);b=UGa(a);a.reset();return b};
XGa=function(a){this.B=a};
YGa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j){l.La(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
ZGa=function(a,b,c){a.C||(a.C=new VGa(a.B));return WGa(a.C,b,c)};
$Ga=function(a,b,c){var d,e;return g.G(function(f){if(1==f.j){d=vO();if(!d)return f.return(ZGa(a,b,c));g.Ba(f,3);return g.z(f,YGa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.fG(e);IGa=!0;return f.return(ZGa(a,b,c))})};
DO=function(){var a=aHa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Ula.apply(null,[Vla.apply(null,g.oa(b))].concat(g.oa(c)));this.store=Xla(a,void 0,b)};
g.bHa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.oa(h),g.oa(l)):l;else if(!Array.isArray(l)&&g.cb(l)&&!Array.isArray(h)&&g.cb(h))d[f]=g.bHa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.vD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,pmb:h,updateValue:l}),
g.eG(b),a}return d};
EO=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
cHa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
FO=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
GO=function(a,b,c){return a.split(b).zm.split(c).mI};
dHa=function(a){a.D=void 0;a.B=0;a.C=0};
eHa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
fHa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
gHa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!eHa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);dHa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
HO=function(a,b,c){a=gHa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
hHa=function(a,b,c){a=HO(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;ce&&bf)MO[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;MO[e++]=55296|f>>10;f=56320|f&1023}MO[e++]=f}}f=String.fromCharCode.apply(String,MO);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
PO=function(a,b){var c;if(null==(c=OO)?0:c.encodeInto)return b=OO.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
kHa=function(a){if(OO)return OO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=PO(a,b);b.lengthc&&(b=b.subarray(0,c));return b};
QO=function(a){this.j=a;this.pos=0;this.B=-1};
RO=function(a){var b=IO(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=IO(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
SO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=RO(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:RO(a);break;case 1:a.pos+=8;break;case 2:d=RO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
TO=function(a,b){if(SO(a,b))return RO(a)};
UO=function(a,b){if(SO(a,b))return!!RO(a)};
VO=function(a,b){if(SO(a,b)){b=RO(a);var c=HO(a.j,a.pos,b);a.pos+=b;return c}};
WO=function(a,b){if(a=VO(a,b))return g.NO(a)};
XO=function(a,b,c){if(a=VO(a,b))return c(new QO(new EO([a])))};
YO=function(a,b){for(var c=[];SO(a,b);)c.push(RO(a));return c.length?c:void 0};
ZO=function(a,b,c){for(var d=[],e;e=VO(a,b);)d.push(c(new QO(new EO([e]))));return d.length?d:void 0};
$O=function(a,b){a=a instanceof Uint8Array?new EO([a]):a;return b(new QO(a))};
lHa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
mHa=function(a,b){this.C=b;this.pos=0;this.B=[];this.j=lHa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
aP=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;cd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(aP(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
cP=function(a,b,c){void 0!==c&&(bP(a,8*b),bP(a,c))};
dP=function(a,b,c){void 0!==c&&cP(a,b,c?1:0)};
eP=function(a,b,c){void 0!==c&&(bP(a,8*b+2),b=c.length,bP(a,b),aP(a,b),a.j.set(c,a.pos),a.pos+=b)};
fP=function(a,b,c){void 0!==c&&(nHa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),aP(a,1.2*c.length),b=PO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(aP(a,b),b=PO(c,a.j.subarray(a.pos))),a.pos+=b,oHa(a))};
nHa=function(a,b,c){c=void 0===c?2:c;bP(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
oHa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
gP=function(a,b,c,d,e){c&&(nHa(a,b,void 0===e?3:e),d(a,c),oHa(a))};
g.hP=function(a,b,c){c=new mHa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.iP=function(a){var b=new QO(new EO([sg(decodeURIComponent(a))]));a=WO(b,2);b=TO(b,4);var c=pHa[b];if("undefined"===typeof c)throw a=new g.vD("Failed to recognize field number",{name:"EntityKeyHelperError",Lkb:b}),g.eG(a),a;return{Z5:b,entityType:c,entityId:a}};
g.jP=function(a,b){var c=new mHa;eP(c,2,kHa(a));a=qHa[b];if("undefined"===typeof a)throw b=new g.vD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.eG(b),b;cP(c,4,a);cP(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.qg(b))};
kP=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
rHa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.bHa(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
sHa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.eG(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.eG(new g.vD("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.fd(e.payload);
return kP(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.iP(e).entityType;l=kP(d,m,e)}catch(q){if(q instanceof Error)g.eG(new g.vD("Failed to deserialize entity key",{entityKey:e,rQ:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.eG(new g.vD("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.fd(e.payload);var n,p;return rHa(d,l,e.entityKey,e.payload[l],null==(n=
e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return kP(a,c.entityType,c.key,c.Y5);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return kP(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,rHa(a,c.entityType,c.key,c.Y5,c.fmb);default:return a}};
lP=function(a,b,c){return a[b]?a[b][c]||null:null};
uHa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0c?tHa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=tHa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(mP)&&(c=".");return b.join(c)};
tHa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
vHa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;ca};
VLa=function(a,b){ULa(a.program,b.dba)&&(yI("bg_i",void 0,"player_att"),g.LI.initialize(a,function(){yI("bg_l",void 0,"player_att");SLa=(0,g.WD)()},b.cspNonce))};
WLa=function(a){a=void 0===a?{}:a;return g.LI.invoke(a)};
XLa=function(a){var b=g.bC("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return uya(a,b)};
ULa=function(a,b){return a?g.LI.isLoading()?!1:TLa(b):!1};
YLa=function(a){a=a.split("");PP.ng(a,57);PP.mM(a,2);PP.U0(a,24);PP.U0(a,44);PP.mM(a,1);PP.ng(a,32);PP.U0(a,6);return a.join("")};
g.ZLa=function(a,b){return a.Fa+"timedtext_video?ref=player&v="+b.videoId};
g.QP=function(a,b){a.feature=b;return a};
g.$La=function(a){var b=this;this.videoData=a;a={};this.B=(a.c1a=function(){var c=[];if(g.LI.isInitialized()){var d="";b.videoData&&b.videoData.Ek&&(d=b.videoData.Ek+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);yI("bg_v",void 0,"player_att");d=WLa(d);yI("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else yI("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.LI.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^yya())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.ZB("CATSTAT",0)))},a);
this.videoData&&this.videoData.Ek?this.j=iC(this.videoData.Ek):this.j={}};
g.aMa=function(a){if(a.videoData&&a.videoData.Ek){for(var b=[a.videoData.Ek],c=g.u(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.B[d]&&(d=a.B[d](a.j))&&b.push(d);return b.join("&")}return null};
cMa=function(a){var b={};Object.assign(b,a.B);g.aC("player_attestation_bg_async")&&(b.c1a=function(){return bMa(a)});
if(a.videoData&&a.videoData.Ek){for(var c=[a.videoData.Ek],d=g.u(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.dMa=function(a,b){VLa(a,{dba:g.SJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
bMa=function(a){function b(e){return e+"&r1d="+g.LI.getState()}
if(!g.LI.isInitialized())return yI("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Ek&&(c=a.videoData.Ek+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){yI("bg_v",void 0,"player_att");XLa(d).then(function(f){f?(yI("bg_s",void 0,"player_att"),e(b("r1a="+f))):(yI("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){yI("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
RP=function(a){a=void 0===a?2592E3:a;if(0(0,g.WD)()-1E3*a))return 0;a=g.oD("yt-player-quality");if("string"===typeof a){if(a=g.mL[a],0a.previousQuality)return 1;if(a.quality=b)};
$P=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
aQ=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Kc||a.has(d.Kc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Kc,itag:d.itag,xtag:d.j,lang:(null==(e=d.Kc)?void 0:e.name)||"",langid:(null==(f=d.Kc)?void 0:f.id)||""})}else e=new g.UP(d.id,d.Kc),a.add(d.Kc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
pMa=function(){g.I.apply(this,arguments);this.j=null};
tMa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(bQ(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.tb]=[a.info]);return n}p=qMa(b,d,l);f&&e({aftsrt:cQ(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),x=v.next();!x.done;x=v.next()){x=x.value;var B=x.itag,E=void 0,F=t+"_"+((null==(E=x.video)?void 0:E.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(x):l[B]=q[F]:(E=dQ(b,x,c,d.isLive,m),!0!==E?(h.add(t),l[B]=E,
"disablevp9hfr"===E&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(x),q[F]=!0))}}f&&e({bfflt:cQ(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].dh()&&(n[d]=n[d],n[d]=rMa(b,n[d],l),n[d]=sMa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.XZ;f&&e({aftflt:cQ(n)});a.j=g.cd(n,function(P){return!!P.length});
return a.j};
vMa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.kd&&h&&1h?r=c:b.xd&&p===h&&EMa(q[c])&&(r=c));"9"===r&&q.h&&gQ(q.h)>gQ(q["9"])&&(r="h");b.Jb&&d.isLive&&"("===r&&q.H&&1440>gQ(q["("])&&(r="H");m&&f({vfmly:FMa(r)});b=q[r];if(!b.length)return m&&f({novfmly:FMa(r)}),
BC();fQ(b);return CC(new aQ(b,a,n))};
xMa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
EMa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&GMa.has(b.itag))return!0;return!1};
FMa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
cQ=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(FMa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
wMa=function(a,b,c,d,e,f){var h={},l={};g.bd(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.ke)return l[q]="noenc",!1;if(f.zb&&"(h"===p.tb&&f.ub)return l[q]="lichdr",!1;if("("===p.tb||"(h"===p.tb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.ke[c.flavor]&&!!c.j[r])||(l[q]=p.ke[c.flavor]?"unspt":"noflv");return r}if(!hQ(a,iQ.CRYPTOBLOCKFORMAT)&&!a.Ba||a.ma)return l[q]=a.ma?"disvp":"vpsub",!1}return c&&p.ke[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.ke[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
sMa=function(a,b){var c=Lr(a,function(d,e){return 32c&&(a=a.filter(function(d){if(32a.K)return"max"+a.K;if(a.ib&&"h"===b.tb&&b.video&&1080a.Za)return"av1cap";if((d=c.C.get(b.tb))&&0a.Ob)return"ratecap";a=HMa(c,b);return!0!==a?a:!0};
fQ=function(a,b){b=void 0===b?[]:b;g.Yb(a,function(c,d){var e=d.Ob-c.Ob;if(!c.dh()||!d.dh())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0a.Dd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
0a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(48>d||122d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
KQ=function(a,b){this.j=a;this.pos=0;this.start=b||0};
LQ=function(a){return a.pos>=a.j.byteLength};
QQ=function(a,b,c){var d=new KQ(c);if(!MQ(d,a))return!1;d=NQ(d);if(!OQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=PQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+UQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+UQ(a),d*=128;return b?c-d:c};
SQ=function(a){var b=PQ(a,!0);a.pos+=b};
pNa=function(a){if(!OQ(a,440786851,!0))return null;var b=a.pos;PQ(a,!1);var c=PQ(a,!0)+a.pos-b;a.pos=b+c;if(!OQ(a,408125543,!1))return null;PQ(a,!0);if(!OQ(a,357149030,!0))return null;var d=a.pos;PQ(a,!1);var e=PQ(a,!0)+a.pos-d;a.pos=d+e;if(!OQ(a,374648427,!0))return null;var f=a.pos;PQ(a,!1);var h=PQ(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
VQ=function(a){var b=a.pos;a.pos=0;var c=1E6;MQ(a,[408125543,357149030,2807729])&&(c=RQ(a));a.pos=b;return c};
qNa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!WQ(a)||!OQ(a,160))return a.pos=c,NaN;PQ(a,!0);var d=a.pos;if(!OQ(a,161))return a.pos=c,NaN;PQ(a,!0);UQ(a);var e=UQ(a)<<8|UQ(a);a.pos=d;if(!OQ(a,155))return a.pos=c,NaN;d=RQ(a);a.pos=c;return(e+d)*b/1E9};
WQ=function(a){if(!rNa(a)||!OQ(a,524531317))return!1;PQ(a,!0);return!0};
rNa=function(a){if(a.Cn()){if(!OQ(a,408125543))return!1;PQ(a,!0)}return!0};
MQ=function(a,b){for(var c=0;c=Math.abs(a.C-b.D)||a.Pa+1===b.Pa&&0===b.Zb&&a.kf?!0:!1};
zNa=function(a){return a.Pa+(a.kf?1:0)};
ANa=function(a){1===a.length||g.Kr(a,function(c){return!!c.range});
for(var b=1;b=b.range.start+b.Zb&&a.range.start+a.Zb+a.B<=b.range.start+b.Zb+b.B:a.Pa===b.Pa&&a.Zb>=b.Zb&&(a.Zb+a.B<=b.Zb+b.B||b.kf)};
HNa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.eg()?(a=a.j.OA(a),Fs(a,function(c){return HNa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Zb+b.B>a.Zb&&b.Zb+b.B<=a.Zb+a.B};
INa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,wNa(a)};
hR=function(a,b){var c=this;this.fb=a;this.D=this.j=null;this.G=this.Yg=NaN;this.K=this.requestId=null;this.Bd={Blb:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.fb[0].range&&0d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=SNa(a,b);c=lR(c,lQ(a));return c.timedOut+c.j+0b.nj?1E3*Math.pow(1.6,c-b.nj):0;return 0===b?!0:a.Z+b<(0,g.WD)()};
VNa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
nR=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new mR(a)};
oR=function(a,b,c,d,e,f){f=void 0===f?0:f;nR.call(this,a,b,d,void 0);this.G=c;this.Fj=f;this.index=e||new g.qQ};
WNa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.ai=c;this.j=d||NaN;this.B=e||NaN};
pR=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
qR=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new pQ(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
vR=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.Fz()&&!this.info.Zb};
wR=function(a){return gHa(a.j)};
iOa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.zm;c=new vR(new bR(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,b,!1,a.info.Dj,a.info.clipId),c.mI);c.D=a.D;c.C=a.C;b=new vR(new bR(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb+b,a.info.B-b,a.info.kf,a.info.Dj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
xR=function(a,b,c){var d;if(!(d=!fR(a.info,b.info)||a.info.kf)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?cHa(c,d.j[0]):1);d=c}if(d)return null;c=new bR(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,a.info.B,a.info.kf,a.info.Dj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.C=d.C;c.kf=d.kf;d=new EO;FO(d,a.j);FO(d,b.j);c=new vR(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c};
jOa=function(a){g.uL(a.info.j.info)||a.info.j.info.Pe();if(-1!==a.C)return a.C;if(a.B&&XMa(a.B))return a.C=XMa(a.B),a.C;if(g.uL(a.info.j.info)){var b=wR(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;GQ(b,f);){var h=HQ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.DQ(h):1952867444===h.type&&isNaN(d)&&(d=g.eNa(h));f=IQ(h.type)?f+8:f+h.size}!e&&c&&(e=EQ(c));b=d/e}else b=new KQ(wR(a)),c=a.G?b:new KQ(new DataView(a.info.j.j.buffer)),d=VQ(c),c=b.pos,b.pos=0,WQ(b)?OQ(b,231)?
(d=RQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.D;return a.C};
lOa=function(a,b){0e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
yR=function(a,b){b=void 0===b?!1:b;var c=mOa(a);a=b?0:a.info.K;return c||a};
mOa=function(a){g.uL(a.info.j.info)||a.info.j.info.Pe();if(a.B&&7===a.info.type)return a.B.Fj;if(g.uL(a.info.j.info)){var b=wR(a);var c=0;b=g.JQ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=fNa(d.value),c+=d.MR[0]/d.Fr;c=c||NaN;if(!(0<=c))a:{c=wR(a);b=a.info.j.j;for(var e=d=0,f=0;GQ(c,d);){var h=HQ(c,d);if(1836476516===h.type)e=g.DQ(h);else if(1836019558===h.type){!e&&b&&(e=EQ(b));if(!e){c=NaN;break a}var l=FQ(h.data,h.dataOffset,1953653094),m=l;l=e;var n=FQ(m.data,m.dataOffset,
1952868452);m=FQ(m.data,m.dataOffset,1953658222);var p=uQ(n);uQ(n);p&2&&uQ(n);n=p&8?uQ(n):0;var q=uQ(m),r=q&1;p=q&4;var t=q&256,v=q&512,x=q&1024;q&=2048;var B=vQ(m);r&&uQ(m);p&&uQ(m);for(var E=r=0;Ea.W&&a.isLivePlayback;a.Za=Number(pR(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(YNa(pR(c,a.D+":mpdResponseTime"))))a.ra=((0,g.WD)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Kr(c.getElementsByTagName("Period"),a.Aaa,a);a.state=2;a.oa("loaded");XOa(a)}return a}).wl(function(c){if(c instanceof xC){var d=c.xhr;
a.Bg=d.status}a.state=3;a.oa("loaderror");return bg(d)})};
ZOa=function(a,b,c){return YOa(new CR(a,b,c),a)};
$Oa=function(a){return a.isLive&&(0,g.WD)()-a.Ka>=a.W};
aPa=function(a){a.G&&a.G.stop()};
XOa=function(a){var b=a.W;isFinite(b)&&($Oa(a)?a.refresh():(b=Math.max(0,a.Ka+b-(0,g.WD)()),a.G||(a.G=new g.bv(a.refresh,b,a),g.M(a,a.G)),a.G.start(b)))};
bPa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Dd()+1}return 0};
FR=function(a){return a.Jb?a.Jb-(a.K||a.timestampOffset):0};
GR=function(a){return a.Ta?a.Ta-(a.K||a.timestampOffset):0};
HR=function(a){if(!isNaN(a.Ba))return a.Ba;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!yL(b[c].info.mimeType)){b=0;for(c=d.dn();c<=d.Dd();c++)b+=d.getDuration(c);b/=d.jz();b=.5*Math.round(b/.5);10=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Toa()&&(b.isArm=1,a=240);if(c){var f,h;if(d=null==(f=c.videoInfos.find(function(l){return sL(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;f=Math.min(TP("1",c.fps),TP("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=TP("1",30),b.perfCap30=c,a=Math.min(a,c),c=TP("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
LR=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Za=this.keySystemAccess=null;this.Mx=this.Nx=-1;this.Gl=null;this.C=!!d&&d.kb("edge_nonprefixed_eme")};
NR=function(a){return a.C?!1:!a.keySystemAccess&&!!MR()&&"com.microsoft.playready"===a.keySystem};
OR=function(a){return"com.microsoft.playready"===a.keySystem};
PR=function(a){return!a.keySystemAccess&&!!MR()&&"com.apple.fps.1_0"===a.keySystem};
QR=function(a){return"com.youtube.fairplay"===a.keySystem};
RR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.SR=function(a){return"fairplay"===a.flavor};
MR=function(){var a=window,b=a.MSMediaKeys;LC()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
lPa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.iL&&!g.JC())return Gv("45");if(g.lE||g.ef)return a.kb("edge_nonprefixed_eme");if(g.TR)return Gv("47");if(g.QD){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.SJ(a,"html5_safari_desktop_eme_min_version"))return Gv(a)}return!0};
nPa=function(a,b,c,d){var e=KC(),f=(c=e||c&&LC())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.oa(f),g.oa(mPa.playready)):[].concat(g.oa(mPa.playready),g.oa(f))};
UR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Ga=b;this.useCobaltWidevine=d;this.va=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
qPa=function(a,b){a.callback=b;a.D=[];lPa(a.Ga.experiments)?oPa(a):pPa(a)};
oPa=function(a){if(!a.isDisposed())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=rPa(a,c);if(VR&&VR.keySystem===b&&VR.qba===JSON.stringify(d))a.va("remksa",{re:!0}),sPa(a,c,VR.keySystemAccess);else{var e,f;a.va("remksa",{re:!1,ok:null!=(f=null==(e=VR)?void 0:e.keySystem)?f:""});VR=void 0;(WR.isActive()?WR.pk("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(nP(function(h){sPa(a,c,h,d)}),nP(function(){a.G=!a.G&&
"widevine"===a.C[a.B[0]].flavor;
a.G||a.B.shift();oPa(a)}))}}};
sPa=function(a,b,c,d){if(!a.isDisposed()){d&&(VR={keySystem:b.keySystem,keySystemAccess:c,qba:JSON.stringify(d)});b.keySystemAccess=c;if(OR(b)){c=gL();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())tPa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())tPa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&RR(b)?(a.B.shift(),oPa(a)):a.callback(a.D)}};
tPa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
rPa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&QR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];OR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.iL&&g.HC("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.YR(a.Ga)&&(QC()||IC())&&(a.va("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
pPa=function(a){if(MR()&&g.QD)a.D.push(new LR("fairplay","com.apple.fps.1_0","",a.Ga.experiments));else{var b=uPa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
uPa=function(){var a=MR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=gL();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
vPa=function(a){this.experiments=a;this.C=0;this.Z=(this.D=this.experiments.kb("html5_consider_end_stall"))&&ZR;this.K=this.experiments.kb("html5_ignore_stall_from_no_data_timeouts");this.G=this.experiments.kb("html5_ignore_stall_from_data_timeouts");this.B=this.experiments.kb("html5_measure_max_progress_handling");this.N=(this.j=this.experiments.kb("html5_record_ump_timing"))&&this.experiments.kb("html5_use_ump_timing")};
wPa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=gC(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.SJ=function(a,b){return Number(a.flags[b])||0};
$R=function(a,b){return(a=a.flags[b])?a.toString():""};
xPa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
yPa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.oa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0=f&&f>d&&!0===HMa(a,e,c)&&(d=f)}return d};
g.DPa=function(a,b){b=void 0===b?!1:b;return aS()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(gL(),"application/x-mpegURL")?!0:!1};
FPa=function(a){EPa(function(){for(var b=g.u(Object.keys(iQ)),c=b.next();!c.done;c=b.next())hQ(a,iQ[c.value])})};
hQ=function(a,b){b.name in a.N||(a.N[b.name]=GPa(a,b));return a.N[b.name]};
GPa=function(a,b){if(a.G)return!!a.G[b.name];if(b===iQ.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===iQ.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.An);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',
a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.An)};
HPa=function(a){a.D||(a.D=!0,a.B=!0)};
IPa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).f6);a.C.set(b,{f6:c+1,XZ:Math.pow(2,c+1)});a.B=!0};
zMa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
BMa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,tb:b,xi:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,hQ(a,iQ.BITRATE)&&(b.hw=8*c.Ob),b.DX=null==
f?void 0:f.isHdr()),a.j.set(d,b))};
bS=function(){g.yG.call(this);this.items={}};
cS=function(){g.zO.apply(this,arguments)};
dS=function(){g.AO.apply(this,arguments)};
eS=function(a,b){var c=JPa(a,b);BO.call(this,a,c||b);this.j=a;c&&this.j.exports.free(c.byteOffset)};
KPa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
LPa=function(a){a.B||(a.B=new cS(a.j));return a.B};
fS=function(a){try{return sg(a)}catch(b){return null}};
MPa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?fS(b.clientKey):null;var c=b.encryptedClientKey?fS(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.WD)():null;a&&c&&d&&(this.j=new KPa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=fS(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
gS=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
hS=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.Ql=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a=wS;m=b?b.useNativeControls:
a.use_native_controls;this.Z=g.tS(this)&&this.B;n=this.B&&!this.Z;m=g.xS(this)||!l&&RC(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.vl=this.B;this.color=SC("red",b?b.progressBarColor:a.color,hQa);this.Ro="3"===this.controlsType;this.Nc=!this.D;this.Km=(m=!this.Nc&&!vS(this)&&!this.ma&&!this.N&&!uS(this))&&!this.Ro&&"1"===this.controlsType;this.ze=g.yS(this)&&m&&"0"===this.controlsType&&!this.Km;this.Uq=this.gp=l;this.xd=("3"===this.controlsType||this.B||RC(!1,
a.use_media_volume))&&!this.Z;this.Nm=MC&&!g.Tc(601)?!1:!0;this.Lo=this.D||!1;this.md=vS(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=UC("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.K||RC(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.vj=this.L("enable_cast_for_web_unplugged")&&g.zS(this)&&l||this.L("enable_cast_on_music_web")&&g.FH(this)&&l||p&&l&&"1"===this.controlsType&&!this.B&&(vS(this)||g.yS(this)||
g.AS(this));this.Rq=!!window.document.pictureInPictureEnabled||BBa();p=b?!!b.supportsAutoplayOverride:RC(!1,a.autoplayoverride);this.Ni=!(this.B&&!g.tS(this))&&!g.HC("nintendo wiiu")||p;p=b?!!b.enableMutedAutoplay:RC(!1,a.mutedautoplay);this.Fo=this.L("embeds_enable_muted_autoplay")&&g.tS(this);this.Oi=p&&!1;p=(vS(this)||uS(this))&&"blazer"===this.playerStyle;this.wj=b?!!b.disableFullscreen:!RC(!0,a.fs);l=g.WC(g.BS(this))&&g.tS(this);this.Rb=!this.wj&&(p||g.$C())&&!l;this.Bm=this.L("uniplayer_block_pip")&&
(IC()&&Gv(58)&&!QC()||kE);p=g.tS(this)&&!this.El;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.Wd=p||RC(!this.N,q);this.Il=RC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.W=QC()&&0=wS?"_top":"_blank";this.Rg=g.AS(this);this.jl=RC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q=
"gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.ra=q;this.Ba=UC("",b?b.authorizedUserIndex:a.authuser);this.Jc=g.tS(this)&&(this.kd||!Noa()||this.bb);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Je=((q=!this.Jc)||!!this.Ba&&q)&&RC(!this.ma,this.K?r:void 0);
this.Bf=b?b.isMobileDevice||!!b.disableKeyboardControls:RC(!1,a.disablekb);this.loop=RC(!1,a.loop);this.pageId=UC("",b?b.initialDelegatedSessionId:a.pageid);this.Cp=RC(!0,a.canplaylive);this.ib=RC(!1,a.livemonitor);this.disableSharing=RC(this.N,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||0>=r*q?null:new g.He(r,q))):
r=null;this.Om=r;this.mute=b?!!b.startMuted:RC(!1,a.mute);this.storeUserVolume=!this.mute&&RC("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:SC(void 0,r,CS);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":UC("",a.cc_lang_pref);r=SC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,CS);"3"===this.controlsType&&2===r&&(r=3);this.zb=r;this.nj=b?b.hl||"en_US":UC("en_US",
a.hl);this.region=b?b.contentRegion||"US":UC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":UC("en",a.host_language);this.Go=!this.kd&&Math.random()Math.random();this.bl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new MPa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):
void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Nf=new XPa;g.M(this,this.Nf);this.Im=RC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.ZB("DATASYNC_ID");this.Po=g.ZB("LOGGED_IN",!1);this.rj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Gl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Pf=!0:this.Pf=100*Math.random()v.width*v.height*v.fps)v=F}else r.push(F)}else l[E]="disdrmhfr";t.reduce(function(Q,
R){return R.nh().isEncrypted()&&Q},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.L("html5_native_audio_track_switching");t.push(HQa(r,c,d,f,"93",v,p,n,m,"auto",e,q,x,B));Object.entries(l).length&&h(l);return SS(a.G,t,pQa(a,b),!1)};
HQa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,x="",B=g.u(a),E=B.next();!E.done;E=B.next())E=E.value,x||(x=E.itag),E.audioChannels&&E.audioChannels>v&&(v=E.audioChannels,x=E.itag);e=new qL(e,"application/x-mpegURL",{audio:new lL(0,v),video:new nL(f,h,l,null,void 0,n,void 0,r),ke:q,qY:x});a=new wQa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new TS(e,a,m)};
EQa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
GQa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.ke===b.ke&&!e.audioChannels)return d}return""};
FQa=function(a){for(var b=new Set,c=g.u(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.u(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
US=function(a,b){this.j=a;this.B=b};
JQa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.jQ(h.url,!0);if(h.s){var l=f,m=h.sp,n=YLa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=zL(h.type,h.quality,h.itag,h.width,h.height);e.push(new US(h,f))}}return SS(a.G,e,pQa(a,b),!1)};
VS=function(a,b){this.j=a;this.B=b};
KQa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=zL(e.type,"medium","0");d.push(new VS(f,e.url))}return SS(a.G,d,pQa(a,b),!1)};
LQa=function(a,b){var c=[],d=zL(b.type,"auto",b.itag);c.push(new VS(d,b.url));return SS(a.G,c,!1,!0)};
NQa=function(a){return a&&MQa[a]?MQa[a]:null};
OQa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.xo=fS(a.ustreamerConfig)||void 0)};
PQa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.mZ=new OQa(b)};
g.WS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
g.YS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.XS(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.ZS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.QQa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.ZS(a));return b};
g.XS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
UQa=function(a,b,c,d){a||(a=b&&RQa.hasOwnProperty(b)&&SQa.hasOwnProperty(b)?SQa[b]+"_"+RQa[b]:void 0);b=a;if(!b)return null;a=b.match(TQa);if(!a||5!==a.length)return null;if(a=b.match(TQa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
$S=function(a,b){for(var c={},d=g.u(Object.keys(VQa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.vK(f)&&(c[VQa[e]]=f)}return c};
aT=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.u(Object.keys(WQa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=WQa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=XQa(h.url);g.vK(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=XQa(a.url),g.vK(a)&&(b["maxresdefault.jpg"]=a));return b};
XQa=function(a){return a.startsWith("//")?"https:"+a:a};
bT=function(a){return a&&a.baseUrl||""};
cT=function(a){a=g.jC(a);for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
YQa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ek=b)};
aRa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.U(h,ZQa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.U(h,$Qa))return Object.assign({is_yto_interstitial:!0},iC(h))});
d=g.u(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,qo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,qo:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
qo:0===f?5:7})}}};
bRa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
cRa=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
dRa=function(a,b){null!=b?(a.ip=b,a.Hf=!0):(a.ip="",a.Hf=!1)};
dT=function(a,b){this.type=a||"";this.id=b||""};
g.eRa=function(a){return new dT(a.substr(0,2),a.substr(2))};
g.eT=function(a,b){this.Ga=a;this.author="";this.PC=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=gC(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=$S(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new dT("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.eRa(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.fT=function(a,b){this.Ga=a;this.Wr=this.author="";this.PC=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Wv=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Wr=b.Wr||"";if(a=b.endscreen_autoplay_session_data)this.PC=gC(a,"&");this.QC=b.QC;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.Wv=b.Wv||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=gC(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=$S(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
fRa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.iRa=function(a){var b,c,d;a=g.U(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,gRa);return g.U(null==a?void 0:a.playerBar,hRa)};
jRa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
kRa=function(){if(void 0===gT){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Vv(g.wD()+"::yt-player"))){gT=new HH(a);break a}gT=void 0}}return gT};
g.hT=function(){var a=kRa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.lRa=function(a){var b=kRa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.iT=function(a){return g.hT()[a]||0};
g.jT=function(a,b){var c=g.hT();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.lRa(c))};
g.kT=function(a){return g.G(function(b){return b.return(g.iE(mRa(),a))})};
rRa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:return m=g.iT(a),4===m?v.return(4):g.z(v,g.nE(),2);case 2:n=v.B;if(!n)throw g.RD("wiac");if(!l||void 0===h){v.La(3);break}return g.z(v,nRa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.kT(n),5);case 5:return q=v.B,g.Ba(v,6),lT++,g.z(v,g.ZD(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Tb:!0},function(x){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.$D(x.objectStore("media"),h,B)}else B=g.TD.resolve(void 0);var E=oRa(a,b.dh()),F=oRa(a,!b.dh()),H={fmts:pRa(d),format:c||{}};E=g.$D(x.objectStore("index"),H,E);var P=-1===d.downloadedEndTime;H=P?x.objectStore("index").get(F):g.TD.resolve(void 0);var Q={fmts:"music",format:{}};x=P&&e&&!b.dh()?g.$D(x.objectStore("index"),Q,F):g.TD.resolve(void 0);return g.TD.all([x,H,B,E]).then(function(R){R=g.u(R);R.next();R=R.next().value;lT--;var ha=g.iT(a);if(4!==ha&&P&&e||void 0!==R&&g.qRa(R.fmts))ha=
1,g.jT(a,ha);return ha})}),8);
case 8:return v.return(v.B);case 6:r=g.Da(v);lT--;t=g.iT(a);if(4===t)return v.return(t);g.jT(a,4);throw r;}})};
g.sRa=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,g.nE(),2);if(3!=d.j){b=d.B;if(!b)throw g.RD("ri");return g.z(d,g.kT(b),3)}c=d.B;return d.return(g.ZD(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.zqa(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
vRa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){if(1==m.j)return g.z(m,g.nE(),2);if(3!=m.j){f=m.B;if(!f)throw g.RD("rc");return g.z(m,g.kT(f),3)}h=m.B;l=g.ZD(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Tb:tRa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return uRa(e,n)}).catch(function(n){throw new g.vD("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.qRa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
oRa=function(a,b){return""+a+"|"+(b?"v":"a")};
pRa=function(a){var b={};return hC((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
xRa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.wRa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.u(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
mT=function(a){g.yG.call(this);this.j=null;this.C=new ula;this.j=null;this.K=new Set;this.crossOrigin=a||""};
yRa=function(a,b,c){for(c=nT(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(oT(d,b))&&(d=g.pT(d,b)))return d;c--}return g.pT(a.levels[0],b)};
ARa=function(a,b,c){c=nT(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=oT(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.oh(f,{TX:f,pY:e}))}zRa(a)};
zRa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=BRa(a,b)}};
BRa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.TX].Oe(b.pY);c.onload=function(){var d=b.TX,e=b.pY;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);zRa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.JH()-1);e=[e,d];a.oa("l",e[0],e[1])};
return c};
g.qT=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d};
oT=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.pT=function(a,b){b>=a.EL()&&a.Jx();var c=oT(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Jx()+1-d*c;if(f=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
DRa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.qT.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
sT=function(a,b,c,d){rT.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ayT?!1:!0,a.isLivePlayback=!0;else if(Fc.isLive){To.livestream="1";a.allowLiveDvr=Fc.isLiveDvrEnabled?aS()?!0:NC&&5>yT?!1:!0:!1;a.Fa=27;Fc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var nk=Fc.latencyClass;nk&&(a.latencyClass=VRa[nk]||"UNKNOWN");var wj=Fc.liveChunkReadahead;wj&&(a.liveChunkReadahead=wj);var di=So&&So.livePlayerConfig;if(di){di.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);di.hasSubfragmentedWebm&&(a.DD=!0);di.defraggedFromSubfragments&&(a.defraggedFromSubfragments=
!0);var dm=di.liveExperimentalContentId;dm&&(a.liveExperimentalContentId=Number(dm));var Vo=di.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=Vo&&(a.isLiveHeadPlayable=Vo)}Uo=!0}else Fc.isUpcoming&&(Uo=!0);Uo&&(a.isLivePlayback=!0,To.adformat&&"8"!==To.adformat.split("_")[1]||a.Ea.push("heartbeat"),a.Ro=!0)}var Wo=Fc.isPrivate;void 0!==Wo&&(a.isPrivate=RC(a.isPrivate,Wo))}if(qa){var ok=Fc||null,gl=!1,ei=qa.errorScreen;gl=ei&&(ei.playerLegacyDesktopYpcOfferRenderer||ei.playerLegacyDesktopYpcTrailerRenderer||
ei.ypcTrailerRenderer)?!0:ok&&ok.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(qa.status);if(!gl){a.errorCode=NQa(qa.errorCode)||"auth";var em=ei&&ei.playerErrorMessageRenderer;if(em){a.playerErrorMessageRenderer=em;var Fq=em.reason;Fq&&(a.errorReason=g.JG(Fq));var Xo=em.subreason;Xo&&(a.Ym=g.JG(Xo),a.Ox=Xo)}else a.errorReason=qa.reason||null;var pk=qa.status;if("LOGIN_REQUIRED"===pk)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===pk)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===
pk){var fm=qa.errorScreen,gm=fm&&fm.playerKavRenderer;a.errorDetail=gm&&gm.kavUrl?"4":"3"}else a.errorDetail=qa.isBlockedInRestrictedMode?"5":"0"}}var Gq=a.playerResponse.interstitialPods;Gq&&aRa(a,Gq);a.Xa&&a.eventId&&(a.Xa=lC(a.Xa,{ei:a.eventId}));var Yo=a.playerResponse.captions;if(Yo&&Yo.playerCaptionsTracklistRenderer)a:{var fi=Yo.playerCaptionsTracklistRenderer;a.captionTracks=[];if(fi.captionTracks)for(var on=g.u(fi.captionTracks),hm=on.next();!hm.done;hm=on.next()){var qh=hm.value,pn=JRa(qh.baseUrl);
if(!pn)break a;var im={is_translateable:!!qh.isTranslatable,languageCode:qh.languageCode,languageName:qh.name&&g.JG(qh.name),url:pn,vss_id:qh.vssId,kind:qh.kind};im.name=qh.trackName;im.displayName=qh.name&&g.JG(qh.name);a.captionTracks.push(new g.WS(im))}a.BB=fi.audioTracks||[];a.BU=fi.defaultAudioTrackIndex||0;a.yu=[];if(fi.translationLanguages)for(var qn=g.u(fi.translationLanguages),Zo=qn.next();!Zo.done;Zo=qn.next()){var hl=Zo.value,qk={};qk.languageCode=hl.languageCode;qk.languageName=g.JG(hl.languageName);
if(hl.translationSourceTrackIndices){qk.translationSourceTrackIndices=[];for(var jm=g.u(hl.translationSourceTrackIndices),km=jm.next();!km.done;km=jm.next())qk.translationSourceTrackIndices.push(km.value)}if(hl.excludeAudioTrackIndices){qk.excludeAudioTrackIndices=[];for(var lm=g.u(hl.excludeAudioTrackIndices),Lg=lm.next();!Lg.done;Lg=lm.next())qk.excludeAudioTrackIndices.push(Lg.value)}a.yu.push(qk)}a.DB=[];if(fi.defaultTranslationSourceTrackIndices)for(var Ri=g.u(fi.defaultTranslationSourceTrackIndices),
gi=Ri.next();!gi.done;gi=Ri.next())a.DB.push(gi.value);a.xu=!!fi.contribute&&!!fi.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.kP=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&cRa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Hq;
a.compositeLiveIngestionOffsetToken=null==(Hq=a.playerResponse.playbackTracking)?void 0:Hq.compositeLiveIngestionOffsetToken;var Iq;a.compositeLiveStatusToken=null==(Iq=a.playerResponse.playbackTracking)?void 0:Iq.compositeLiveStatusToken}HRa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var $o=b.hlsdvr;null!=$o&&(a.allowLiveDvr="1"==$o?aS()?!0:NC&&5>yT?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.lx||(a.lx=b.encoded_ad_safety_reason||null);a.hU=b.agcid||null;a.fG=b.ad_id||null;a.hG=b.ad_sys||null;
a.YB=b.encoded_ad_playback_context||null;a.bl=RC(a.bl,b.infringe||b.muted);a.H5=b.authkey;a.A4=b.authuser;a.mutedAutoplay=RC(a.mutedAutoplay,b&&b.playmuted)&&a.L("embeds_enable_muted_autoplay");a.bL=RC(a.bL,b&&b.mutedautoplay)&&a.L("embeds_enable_muted_autoplay");var rk=b.length_seconds;rk&&(a.lengthSeconds="string"===typeof rk?Pe(rk):rk);if(a.isAd()||a.Km||!g.WC(g.BS(a.Ga)))a.endSeconds=TC(a.endSeconds,a.VO||b.end||b.endSeconds);else{var rh=a.lengthSeconds;switch(g.BS(a.Ga)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<
rh?a.limitedPlaybackDurationInSeconds=30:30>rh&&10c&&(LL()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+LL(),
r.jj=c);2160<=c&&(r.Fa=!0);kMa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Nc=!1);r.lM=b;r.Ua=g.lE||Zoa()&&!b?!1:!0;r.W=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");KC()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.W&&a.isAd()&&(a.hx&&(r.ma=a.hx),a.Lw&&(r.C=a.Lw));r.Ta=a.isLivePlayback&&a.uj()&&a.Ga.L("html5_drm_live_audio_51");
r.ub=a.GB;return a.Ke=r};
kSa=function(a){return a.Ga.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&JT(a)?!0:!1};
mSa=function(a){xI("drm_pb_s",void 0,a.Ka);a.Za||a.j&&eQ(a.j);var b={};a.j&&(b=tMa(a.vx,LT(a),a.Ga.G,a.j,function(c){return a.oa("ctmp","fmtflt",c)},!0,new Set));
b=new UR(b,a.Ga,a.qU,a.useCobaltWidevine?KC()?lSa(a):!1:!1,function(c,d){a.va(c,d)});
g.M(a,b);a.Go=!1;a.loading=!0;qPa(b,function(c){xI("drm_pb_f",void 0,a.Ka);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Za=a.Za;e.Nx=a.Nx;e.Mx=a.Mx;break;case "widevine":e.Gl=a.Gl}a.Io=c;if(0p&&(p=t.nh().audio.numChannels)}2=a.C.videoInfos.length)&&(b=vL(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Io),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
PT=function(a,b){a.md=b;uSa(a,new aQ(g.Jr(a.md,function(c){return c.nh()})))};
vSa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ga.j.c,cver:a.Ga.j.cver};a.Tx&&(b.ptk=a.Tx,b.oid=a.J0,b.ptchn=a.I0,b.pltype=a.L0,a.xx&&(b.m=a.xx));return b};
g.QT=function(a){return zT(a)&&a.Za?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.ke||null};
xSa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.JG(b.text):a.paidContentOverlayText};
ySa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Pe(b.durationMs):a.paidContentOverlayDurationMs};
RT=function(a){var b="";if(a.XL)return a.XL;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.qb?"window":"live");a.Yd&&(b="post");return b};
g.ST=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
zSa=function(a){return!!a.qj||!!a.DP||!!a.Vx||!!a.Wx||a.HW||a.N.focEnabled||a.N.rmktEnabled};
g.TT=function(a){return!!(a.kd||a.Of||a.Fl||a.hlsvp||a.Ev())};
vT=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Gb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.Ee()&&!a.loading&&(g.TT(a)||g.Gb(a.Ea,"heartbeat")||b)};
BT=function(a,b){a=poa(a);var c={};if(b){b=g.u(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.u(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
wSa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.jl);for(var c=0;c(b?parseInt(b[1],10):NaN);c=a.Ga;c=("TVHTML5_CAST"===g.YR(c)||"TVHTML5"===g.YR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ga.j.ctheme;var d;if(d=!a.vj)c||(c=a.Ga,c=
"TVHTML5"===g.YR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.vj=!0);return a.Ga.deviceIsAudioOnly||a.vj&&a.Ga.K};
jU=function(a){var b,c,d;return a.isDaiEnabled()&&!!(null==(b=a.playerResponse)?0:null==(c=b.playerConfig)?0:null==(d=c.daiConfig)?0:d.ssaEnabledPlayback)};
OSa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
kU=function(a){return!(!a.Nm||!a.Ga.K)&&a.Ev()};
PSa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
DT=function(a){if(a.GV||a.cotn||!a.j||a.j.isOtf)return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.yc&&!a.uj(),c=b&&ZR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!ZR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=lU(a),e;if(e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.uj()&&!a.j.yc&&ZR)e=a.Om,e="1"===e?!1:"6"===e||"4"===e?!1:!0;(c=c||b||d||e)&&!a.Yx&&a.va("sabr",{loc:"m"},!0);return c&&!!a.Yx};
lU=function(a){if(a.enableServerStitchedDai)return!1;var b=a.yc()&&!a.uj(),c=b&&ZR&&a.L("html5_enable_sabr_live_streaming_xhr")&&a.L("html5_sabr_live");b=b&&!ZR&&a.L("html5_enable_sabr_live_non_streaming_xhr")&&a.L("html5_sabr_live");var d=a.yc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream,e=c&&a.Yd&&a.L("html5_sabr_post_live"),f=c&&a.isPremiere&&a.L("html5_sabr_premiere");d=(g.WT(a)||XT(a))&&d;var h=(g.WT(a)||XT(a))&&a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency");a=(g.WT(a)||
XT(a))&&"ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency");return c&&(e||f||d||h||a)||b};
g.mU=function(a){return a.aV&&DT(a)};
XRa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.iT(b);return b&&!a.Nm};
g.nU=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&mQ(b[a.B.id].resource.j)&&!!b[a.D.id]&&mQ(b[a.D.id].resource.j)};
QSa=function(a){return a.Ux?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ux.status):!0};
ESa=function(a){return(a=a.Pm)&&a.showError?a.showError:!1};
AT=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
PRa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
RSa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
NRa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Wx=new jRa(b));if(b=b.video_masthead_ad_quartile_urls)a.DP=b.quartile_0_url,a.BS=b.quartile_25_url,a.CS=b.quartile_50_url,a.DS=b.quartile_75_url,a.wS=b.quartile_100_url,a.Vx=b.quartile_0_urls,a.ZR=b.quartile_25_urls,a.oS=b.quartile_50_urls,a.pS=b.quartile_75_urls,a.KQ=b.quartile_100_urls};
MRa=function(a){var b={};a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
JRa=function(a){if(a){if(gAa(a))return a;a=hAa(a);if(gAa(a,!0))return a}return""};
g.SSa=function(a){return a.captionsLanguagePreference||a.Ga.captionsLanguagePreference||g.ST(a,"yt:cc_default_lang")||a.Ga.nj};
oU=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.GT=function(a){var b;return a.nx||(null==(b=a.suggestions)?void 0:b[0])||null};
g.pU=function(a){return a.L("embeds_web_enable_pfp_unbranded_flag")?a.Ga.Hm&&a.allowPfpUnbranded:a.Hf&&a.Ga.Hm};
g.qU=function(a){var b=a.U(),c=g.TSa(b),d=a.Ba;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=dU(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.ib?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Ho)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:USa[e]}});a.iy&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.nj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=VSa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.ub)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.TSa=function(a){var b=g.MH(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.md)b.thirdParty={embedUrl:a};return b};
$Sa=function(a,b,c){var d=a.videoId,e=g.qU(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(oF()),referer:document.location.toString(),signatureTimestamp:19746};g.sD();a.isAutonav&&(h.autonav=!0);g.tD(0,141)&&(h.autonavState=g.tD(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.tD(0,66);MSa(a)&&(h.autoplay=!0);f.K&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=
l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=WSa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);v&&(x.viralCampaignId=String(v));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.YL;if(null!=m){m={startWalltime:String(m)};if(n=a.Fm)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Qf?0:a.Rg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Uu)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.il){n=a.qS;l=[];p=g.u(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:XSa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:YSa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:ZSa[r[1]]||"UNKNOWN_PLATFORM"};r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(B){g.fG(B)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=
a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0d&&(d=-(d+1));sf(a,b,d);b.setAttribute("data-layer",String(c))};
g.OU=function(a){var b=a.U();if(!b.Ke)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!oU(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Pk();var f=c.Ua&&c.Ua.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Hf&&f;return!c.ypcPreview&&(!d||e)&&!g.Gb(c.Ea,"ypc")&&
!a&&(!g.tS(b)||f)};
zTa=function(a){a=g.AU(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.nY)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.va("iqss",{trigger:d},!0),!0):!1};
ATa=function(){rD.apply(this,arguments);this.Sw={}};
PU=function(){BTa||(BTa=new ATa);return BTa};
CTa=function(a,b){b?a.Sw.Authorization="Bearer "+b:delete a.Sw.Authorization};
QU=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.WD)()-f).toFixed(),shost:g.Rl(a),trigger:b};DTa(h,a);c&&c(h);d&&!l&&d(new dL("pathprobe.net",h))}
var f=(0,g.WD)();g.wC(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
DTa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),ETa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
GTa=function(a,b){cP(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(bP(a,112),bP(a,c<<1^c>>31));cP(a,16,b.X7);cP(a,17,b.detailedNetworkType);cP(a,18,b.o5);cP(a,19,b.n5);cP(a,21,b.cca);cP(a,23,b.b5);cP(a,28,b.DQ);cP(a,29,b.sca);cP(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for(bP(a,285),aP(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}cP(a,36,b.Q5);
gP(a,38,b.mediaCapabilities,FTa,3);cP(a,39,b.rca);cP(a,40,b.fv);cP(a,44,b.playerState);dP(a,46,b.LV);cP(a,48,b.Fba);cP(a,50,b.Qu);cP(a,51,b.ax);cP(a,54,b.Np);dP(a,56,b.y8);cP(a,57,b.t5);dP(a,58,b.Qn);cP(a,59,b.jj);cP(a,60,b.nw);dP(a,61,b.isPrefetch)};
HTa=function(a){return{a5:YO(a,2),videoId:WO(a,3),kS:TO(a,4)}};
JTa=function(a){return{gmb:ZO(a,1,ITa)}};
ITa=function(a){return{conditions:YO(a,1),lmb:TO(a,2)}};
KTa=function(a){return{CI:YO(a,1)}};
FTa=function(a,b){var c;if(b.TK)for(c=0;c=b&&a.j?gVa(a):a.j&&a.j.start()};
gVa=function(a){a.j&&(a.j.dispose(),a.j=null)};
hVa=function(a){bV.call(this,a);var b=this;this.events=new g.kL(a);g.M(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new qV(a);g.M(b,b.j);g.NU(a,b.j.element,4);b.j.hide()})};
rV=function(a){g.V.call(this,{I:"button",Ma:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ma:["ytp-fullerscreen-edu-text"],ya:"Scroll for details"},{I:"div",Ma:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Y:{"data-priority":"1"}});this.Va=a;this.j=new g.hH(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.M(this,
this.j);this.T(a,"fullscreentoggled",this.Qa);this.T(a,"presentingplayerstatechange",this.Qa);this.Ra("click",this.onClick);this.Qa()};
sV=function(a){bV.call(this,a);var b=this;this.events=new g.kL(a);g.M(this,this.events);sU(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
sU(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&GS(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new rV(a);g.M(b,b.j);a.vy(b.j)})};
iVa=function(a){g.V.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ma:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Close"},V:[g.NG()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle",
ya:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ha("ytp-gated-actions-overlay-background");this.B=this.Ha("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ha("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.jb("onCloseMiniplayer")});
this.hide()};
kVa=function(a,b){var c=0;c=0;for(var d={};c
e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;kVa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.NU(this.api,this.j.element,4)};
mVa=function(a){bV.call(this,a);a=a.U();a.kh.push("flix");a.qb=!1;a.Gm=!1};
tV=function(a){bV.call(this,a);var b=this;uU(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
uU(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.oa(g.Ia.apply(0,arguments)))});
tU(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
tU(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.oa(c))})};
nVa=function(a){bV.call(this,a);sU(a,"createClientVe",this.createClientVe.bind(this));sU(a,"createServerVe",this.createServerVe.bind(this));sU(a,"destroyVe",this.destroyVe.bind(this));sU(a,"hasVe",this.hasVe.bind(this));sU(a,"logClick",this.logClick.bind(this));sU(a,"logVisibility",this.logVisibility.bind(this));sU(a,"setTrackingParams",this.setTrackingParams.bind(this))};
uV=function(a){bV.call(this,a);var b=this;this.events=new g.kL(a);g.M(this,this.events);sU(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
sU(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
sU(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
oVa=function(a,b,c){var d=1E3*a.api.getCurrentTime()=c.width||!c.height||0>=c.height||g.vK(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
qVa=function(a){a=a.api.Ub();a=a.isCued()||a.isError()?"none":g.cM(a)?"playing":"paused";navigator.mediaSession.playbackState=a};
wV=function(a){bV.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.kL(a);g.M(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.U(l.compositeVideoOverlay,vVa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.OK({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.yf("compositeembargo",1);var e=null==d?void 0:d.aL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?wVa(b,e.filter(function(f){return xVa(b,f)})):(null==d?0:d.cueRanges)&&wVa(b,d.cueRanges.filter(function(f){return xVa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.uo())});
this.events.T(a,g.zK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Un(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.Rq!==f&&(d.Rq=f,b.api.uo());yVa(b,c)}}});
this.events.T(a,g.AK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Un(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Rq=void 0;b.api.uo();yVa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.uo()});
sU(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
yVa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Wn([a.j],1)),a.j=b)};
wVa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
xVa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
zVa=function(a){bV.call(this,a);sU(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));sU(this.api,"updateDownloadState",this.updateDownloadState.bind(this));sU(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));sU(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));sU(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));sU(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this))};
xV=function(a){bV.call(this,a);var b=this;sU(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
sU(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
AVa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
BVa=function(a){for(var b=0,c=0;cf.start&&dF;F++)if(E=(E<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(x.charAt(F)),4==F%5){for(var H="",P=0;6>P;P++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(E&31)+H,E>>=5;B+=H}x=B.substr(0,4)+
" "+B.substr(4,4)+" "+B.substr(8,4)}else x="";m={video_id_and_cpn:String(c.videoId)+" / "+x,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(1Q)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(Q=
b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+Q.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=KV(l,"bandwidth");m.network_activity_samples=KV(l,"networkactivity");m.live_latency_samples=KV(l,"livelatency");m.buffer_health_samples=KV(l,"bufferhealth");b=g.nU(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?
"":"display:none";AT(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240123_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0=a.length?0:b};
rWa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.YV=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.uT(a.Ga,b),g.M(a,e),e.Km=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
sWa=function(a,b){a.index=g.we(b,0,a.length-1);a.startSeconds=0};
tWa=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.YV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
wWa=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){c=g.JI();var p=a.U(),q={context:g.qU(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,x,B,E,F,H;r=(null==(H=g.U(null==(v=r)?void 0:null==(x=v.embedPreview)?void 0:null==(B=x.thumbnailPreviewRenderer)?void 0:null==(E=B.playButton)?void 0:null==(F=E.buttonRenderer)?void 0:F.navigationEndpoint,g.FT))?void 0:H.videoId)||null}else r=null}v=(v=r)?v:void 0;x=a.playlistId?a.playlistId:b.list;B=b.listType;if(x){var P;"user_uploads"===B?P={username:x}:P={playlistId:x};uWa(p,v,b,P);q.playlistRequest=
P}else b.playlist?(P={templistVideoIds:b.playlist.toString().split(",")},uWa(p,v,b,P),q.playlistRequest=P):v&&(P={videoId:v},p&&(P.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=P);d=q;e=g.OH(vWa);g.Ba(n,2);return g.z(n,g.BI(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ea=cpa(b,g.tS(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ea,f&&(l=f,l.trackingParams&&NP(l.trackingParams)),n.return(new g.uT(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.eG(m);return n.return(a)})};
uWa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.$V=function(a,b){ZV.get(a);ZV.set(a,b)};
g.aW=function(a){g.yG.call(this);this.loaded=!1;this.player=a};
xWa=function(){this.B=[];this.j=[]};
g.bW=function(a,b){return b?a.j.concat(a.B):a.j};
g.cW=function(a,b){switch(b.kind){case "asr":yWa(b,a.B);break;default:yWa(b,a.j)}};
yWa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.dW=function(a){g.I.call(this);this.X=a;this.B=new xWa;this.D=[];this.N=[]};
g.eW=function(a,b,c){g.dW.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.yu;this.N=b.DB;this.C=g.eU(b)};
zWa=function(){this.j=10;this.ej=!1};
AWa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.DD?!1:b.DD,d=new zWa;d.ej=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.SJ(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d};
g.BWa=function(a){this.Ga=a;this.N=new zWa;this.No=this.Mo=!1;this.Pm=2;this.ma=20971520;this.Ta=8388608;this.W=120;this.Pd=62914560;this.Go=g.SJ(this.Ga.experiments,"html5_min_readbehind_secs");this.XE=g.SJ(this.Ga.experiments,"html5_min_readbehind_cap_secs");this.qj=this.Ga.L("html5_offline_reset_media_stream_on_unresumable_slices");this.Ob=NaN;this.yp=this.jl=this.yu=2;this.tj=1024*fW(this,"html5_request_size_min_kb",64);this.Fa=2097152;this.wx=fW(this,"html5_bypass_contention_secs");this.gp=1048576;
this.Hm=!1;this.rj=fW(this,"html5_repredict_interval_ms",1800);this.Xz=fW(this,"html5_head_miss_secs",5);this.eG=fW(this,"html5_min_upgrade_health_secs",10);this.bb=15;this.Of=1;this.K=1.15;this.Z=1.05;this.Bm=1;this.TF=fW(this,"html5_min_seconds_between_format_selections",8);this.Iz=fW(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Km=fW(this,"html5_max_buffer_health_for_downgrade_prop",.5);this.pu=ZR;this.Pi=this.Jc=!1;this.Vm=6;this.B=!1;this.md=g.SJ(this.Ga.experiments,"html5_min_startup_buffered_media_duration_secs");
this.Oo=g.SJ(this.Ga.experiments,"html5_post_interrupt_readahead");this.Px=this.Ga.L("html5_disable_classic_alr");this.Po=g.SJ(this.Ga.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.lx=100;this.Ni=10;this.gG=6;this.Lw=fW(this,"html5_ssdai_failure_retry_limit",3);this.Gm=this.Ga.experiments.kb("html5_clone_original_for_fallback_location");this.nj=fW(this,"html5_min_failures_to_delay_retry",1);this.tx=this.Ga.L("html5_apply_min_failures");this.Kg=!1;this.Jb=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
this.gk=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_timeout_secs");this.fC=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.wj=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.hC=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_min_load_speed");this.ix=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.iC=g.SJ(this.Ga.experiments,"html5_subsegment_readahead_seek_latency_fudge");
this.Oi=fW(this,"html5_hopeless_secs",15);this.Jm=1;this.xd=!1;this.YB=this.Ga.L("html5_restrict_streaming_xhr_on_sqless_requests");this.gA=g.SJ(this.Ga.experiments,"html5_max_headm_for_streaming_xhr");this.AB=this.Ga.L("html5_pipeline_manifestless_allow_nonstreaming");this.EB=this.Ga.L("html5_prefer_server_bwe3");this.Vy=this.Ga.L("html5_last_slice_transition");this.dC=this.Ga.L("html5_store_xhr_headers_readable");this.Uq=this.kh=this.Pj=!1;this.Nm=g.SJ(this.Ga.experiments,"html5_max_drift_per_track_secs");
this.Io=this.Ga.L("html5_no_placeholder_rollbacks");this.eC=this.Ga.L("html5_subsegment_readahead_enable_mffa");this.Af=this.Ga.L("html5_allow_video_keyframe_without_audio");this.zB=this.Ga.L("html5_enable_vp9_fairplay");this.Ho=!1;this.Za=!0;this.Ke=this.Ka=this.ac=!1;this.Fl=!0;this.Cp=!1;this.D="";this.Tx=1048576;this.ze=[];this.Wx=this.Ga.L("html5_woffle_resume");this.bl=this.Ga.L("html5_abs_buffer_health");this.jy=this.Ga.L("html5_interruption_resets_seeked_time");this.yA=g.SJ(this.Ga.experiments,
"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ea=!1;this.Gl=this.Ga.L("html5_explicitly_dispose_xhr");this.Qo=!1;this.vl=!this.Ga.L("html5_encourage_array_coalescing");this.Fm=!1;this.XB=this.Ga.L("html5_restart_on_unexpected_detach");this.jj=0;this.Rg="";this.iy=this.Ga.L("html5_filter_non_efficient_formats_for_safari");this.Ga.L("html5_format_hybridization");this.qx=this.Ga.L("html5_abort_before_separate_init");this.aC=Xoa();this.cC=this.Ga.L("html5_serialize_server_stitched_ad_request");
this.yx=this.Ga.L("html5_skip_buffer_check_seek_to_head");this.Wd=!1;this.vx=this.Ga.L("html5_attach_po_token_to_bandaid");this.Eo=g.SJ(this.Ga.experiments,"html5_max_redirect_response_length")||8192;this.vj=this.Ga.L("html5_rewrite_timestamps_for_webm");this.ib=this.Ga.L("html5_only_media_duration_for_discontinuities");this.WB=g.SJ(this.Ga.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ga.L("html5_onesie_live");this.kC=this.Ga.L("html5_onesie_premieres");this.Vx=this.Ga.L("html5_drop_onesie_for_live_mode_mismatch");
this.hG=g.SJ(this.Ga.experiments,"html5_onesie_live_ttl_secs")||8;this.Ko=g.SJ(this.Ga.experiments,"html5_attach_num_random_bytes_to_bandaid");this.yB=g.SJ(this.Ga.experiments,"html5_onesie_request_timeout_ms")||3E3;this.nx=this.C=!1;this.Ba=this.Ga.L("html5_ssdai_use_post_for_media")&&this.Ga.L("gab_return_sabr_ssdai_config");this.mC=this.Ga.L("html5_use_post_for_media");this.zb=this.Ga.L("html5_use_live_ump_heartbeat");this.Rb=this.Ga.L("html5_use_sps_ump_part");this.useUmp=this.Ga.L("html5_use_ump")||
this.zb||this.Rb;this.Na=this.ra=!1;this.qb=this.Ga.L("html5_enable_drc_toggle_api")?!1:this.Ga.L("html5_enable_drc");this.HB=this.Ga.L("html5_reset_primary_stats_on_redirector_failure");this.Ga.L("html5_remap_to_original_host_when_redirected");this.Im=this.Qf=this.j=!1;this.Nc=this.Ga.L("html5_enable_sabr_format_selection");this.Mx=this.Ga.L("html5_iterative_seeking_buffered_time");this.al=this.Ga.L("html5_use_network_error_code_enums");this.Qx=this.Ga.L("html5_disable_overlapping_requests");this.G=
!1;this.Nf=this.Ga.L("html5_disable_bandwidth_cofactors_for_sabr");this.enableServerDrivenRequestCancellation=this.Ga.L("html5_enable_server_driven_request_cancellation");this.gy=this.Ga.L("html5_enable_sabr_request_timing");this.Pf=this.Ga.L("html5_enable_server_format_filter");this.Ux=this.Ga.L("html5_drc_edit_sync_workaround");this.Xx=this.Ga.L("html5_enable_lawnmower");this.Yx=this.Ga.L("html5_enable_lawnmower_messaging");this.Zx=this.Ga.L("html5_enable_lawnmower_status_logging_V2");this.Ox=this.Ga.Rc()?
g.SJ(this.Ga.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.yy=g.SJ(this.Ga.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Jo=g.SJ(this.Ga.experiments,"html5_normal_latency_mffa_ms")||NaN;this.fG=g.SJ(this.Ga.experiments,"html5_mffa_ms_proxima_override")||this.Jo;this.ZB=this.Ga.L("html5_retry_quota_exceeded_via_seek");this.xu=this.Ga.L("html5_use_goodput_request_for_probing");this.Hz=this.Ga.L("html5_live_defrag_only_h264_playbacks");this.oz=this.Ga.L("html5_live_defrag_only_h264_formats");
this.lC=this.Ga.L("html5_use_managed_media_source_buffering");this.FB=this.Ga.L("html5_record_now");this.Bf=!1;this.Cl=g.SJ(this.Ga.experiments,"html5_drm_byterate_soft_cap");this.El=g.SJ(this.Ga.experiments,"html5_drm_live_byterate_soft_cap");this.Dl=g.SJ(this.Ga.experiments,"html5_drm_byterate_soft_cap_vp9");this.Ro=!1;this.Xa=this.Ga.L("html5_use_sabr_error_http_response_code");this.Il=!1;this.mx=this.Ga.L("html5_track_overshoot");this.ub=this.Ga.L("html5_sabr_report_request_cancellation_info");
this.Mf=this.Lo=this.hx=!1;this.Gw=this.Ga.L("html5_spoof_4k");this.Xb=!1;this.Fo=fW(this,"html5_min_media_duration_for_cabr_slice");this.TE=this.vl?0:fW(this,"html5_min_media_duration_for_append_prop");this.GB=this.Ga.L("html5_remove_defrag_without_frame_level_streaming");this.kd=this.Ga.L("html5_log_audio_switching_latency");this.Nx=this.Ga.L("html5_consume_all_buffered_bytes_one_poll");this.Sx=this.Ga.L("html5_disable_urgent_adaptation");this.sx=this.Ga.L("html5_apply_constraints_in_client_for_sabr");
this.ey=this.Ga.L("html5_enable_sabr_max_byterate");this.Rq=this.Ga.L("html5_send_video_playback_ustreamer_config");this.Mm=fW(this,"html5_max_discontinuity_rewrite_count");this.Om=fW(this,"html5_max_drift_seconds");this.Hl=fW(this,"html5_fixed_media_duration_for_request");this.bC=this.Ga.L("html5_sabr_use_init_selected_audio");this.xx=this.Ga.L("html5_use_init_selected_audio");this.Ua=!1;this.Je=fW(this,"html5_sabr_request_limit_per_period");this.kx=!1};
CWa=function(a,b,c){c=void 0===c?!1:c;1080Math.random()){var B=new g.vD("Unable to load player module",b,document.location&&document.location.origin);g.eG(B)}Kf(e);r&&r(x)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(x){switch(t.readyState){case "loaded":case "complete":Kf(f)}v&&v(x)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.po(m,g.Jw(b)),h=g.Ve("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
jXa=function(a,b,c,d,e){g.yG.call(this);var f=this;this.target=a;this.QG=b;this.B=0;this.K=!1;this.D=new g.Ae(NaN,NaN);this.j=new g.kL(this);this.Ba=this.C=this.N=null;g.M(this,this.j);b=d||e?4E3:3E3;this.W=new g.bv(function(){rW(f,1,!1)},b,this);
g.M(this,this.W);this.ma=new g.bv(function(){rW(f,2,!1)},b,this);
g.M(this,this.ma);this.ra=new g.bv(function(){rW(f,512,!1)},b,this);
g.M(this,this.ra);this.Ea=3E3;d||(this.C=this.j.T(a,"mouseover",this.lw),this.j.T(a,"mousemove",this.m3),this.j.T(a,"mouseleave",this.C8));qs?this.j.T(a,"keypress",this.V7):this.j.T(a,"focusin",this.k6);this.G=this.j.T(a,"mousedown",this.FT);this.Z=this.j.T(a,"touchstart",this.GT,void 0,!0);rW(this,640,!0)};
kXa=function(a){rW(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.lw));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.lw))};
rW=function(a,b,c){a.isDisposed();var d=!a.B;c?(a.B|=b,b&1&&a.W.start(),b&2&&a.ma.start()):(a.B&=~b,b&1&&a.W.stop(),b&2&&a.ma.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.cv(a.ra,a.Ea);b=!a.B;d!==b&&a.oa("autohideupdate",b)};
g.tW=function(a){g.V.call(this,{I:"button",Ma:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Qa);this.T(a,"basechromeinitialized",this.Jca);a=this.api.U();a.Z&&sW&&(this.Ra("click",this.V6,this),this.Ra("touchstart",this.Raa,this));g.yS(a)&&g.jv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Qa()};
g.uW=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.N&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.V.call(this,{I:"div",Ma:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ha("ytp-cued-thumbnail-overlay");c=new g.tW(a);g.M(this,c);c.Ja(b);this.D=new g.kL(this);g.M(this,this.D);this.api=a;this.G=this.Ha("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.hH(this,250);g.M(this,this.B);this.j=new g.bv(this.Qa,
0,this);g.M(this,this.j);this.Qa();this.T(a,"appresize",this.Yb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.zaa);vS(a.U())&&this.T(a,"videoplayerreset",this.yw)};
lXa=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Ub();a=g.oH(a,64)&&g.oH(a,1);return 0===b&&a};
g.vW=function(a){g.V.call(this,{I:"div",Ma:["ytp-error"],Y:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",Y:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",ya:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.wW=function(a){a=a.split(mXa);for(var b=[],c=0;c1+b&&a.api.toggleFullscreen()};
uXa=function(a){a=IC()&&67<=Roa()&&!a.api.U().Z;return!g.HC("tizen")&&!rS&&!a&&!0};
DW=function(a,b){b=void 0===b?2:b;g.yG.call(this);this.api=a;this.j=null;this.Ed=new iD(this);g.M(this,this.Ed);this.B=Qwa;this.Ed.T(this.api,"presentingplayerstatechange",this.r3);this.j=this.Ed.T(this.api,"progresssync",this.Mc);this.qo=b;1===this.qo&&this.Mc()};
g.EW=function(a){g.V.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",ya:"{{title}}"}]},{I:"div",S:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.J=a;this.B=new g.bv(this.show,10,this);this.j=new g.bv(this.hide,500,this);g.M(this,this.B);g.M(this,this.j);this.hide()};
GW=function(a,b,c){if(0>=b){c=hwa();b="muted";var d=0}else c=c?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Dc:!0,Y:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Dc:!0,Y:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";FW(a,c,b,d+"%")};
AXa=function(a,b){b=b?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Dc:!0,S:"ytp-svg-fill",Y:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Rva();var c=a.J.getPlaybackRate(),d=g.FK("Speed is $RATE",{RATE:String(c)});FW(a,b,d,c+"x")};
BXa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";FW(a,OUa(),b)};
FW=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.ev(a.j);a.B.start();a.updateValue("title",d);g.nv(a.element,"ytp-bezel-text-hide",!d)};
CXa=function(a,b){g.V.call(this,{I:"button",Ma:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.tS(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?Uva():{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Dc:!0,S:"ytp-svg-fill",Y:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",S:"ytp-cards-button-title",ya:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",Y:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",Y:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",Y:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",ya:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.hH(this,250,!0,100);g.M(this,this.B);g.nv(this.C,"ytp-show-cards-title",g.tS(a.U()));this.hide();this.Ra("click",this.j9);this.Ra("mouseover",this.C9);this.yF(!0)};
DXa=function(a,b){g.V.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Show cards","aria-haspopup":"true"},V:[Uva()]},{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",Y:{"aria-label":"Close"},V:[g.NG()]}]:[{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var c=this;this.J=a;this.Sg=
b;this.D=new g.hH(this,250,!1,250);this.j=null;this.N=new g.bv(this.Q9,300,this);this.K=new g.bv(this.P9,2E3,this);this.G=[];this.B=null;this.W=new g.bv(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.M(this,this.D);g.M(this,this.N);g.M(this,this.K);g.M(this,this.W);a.U().L("player_new_info_card_format")?(g.jv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ha("ytp-cards-teaser-close-button"),"click",this.s3),this.T(this.Ha("ytp-cards-teaser-info-icon"),"click",this.NR),this.T(this.Ha("ytp-cards-teaser-label"),"click",this.NR)):this.Ra("click",this.NR);this.T(b.element,"mouseover",this.IT);this.T(b.element,"mouseout",this.HT);this.T(a,"cardsteasershow",
this.daa);this.T(a,"cardsteaserhide",this.Pb);this.T(a,"cardstatechange",this.k0);this.T(a,"presentingplayerstatechange",this.k0);this.T(a,"appresize",this.HL);this.T(a,"onShowControls",this.HL);this.T(a,"onHideControls",this.m5);this.Ra("mouseenter",this.t3)};
EXa=function(a){g.V.call(this,{I:"button",Ma:[HW.BUTTON,HW.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:HW.TITLE_NOTIFICATIONS_ON,Y:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},V:[g.Yva()]},{I:"div",S:HW.TITLE_NOTIFICATIONS_OFF,Y:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",
Y:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.Ra("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")};
FXa=function(a,b){a.j=b;a.element.classList.toggle(HW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.hL:c.gL)?(a=a.api.fn())?AI(a,b):g.eG(Error("No innertube service available when updating notification preferences.")):g.eG(Error("No update preferences command available.")):g.eG(Error("No video data when updating notification preferences."))};
HXa=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=GXa(a,b);if(a=g.no(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Esa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
GXa=function(a,b){var c=document.location.protocol;return $ea(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.IW=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.yS(r);g.V.call(this,{I:"div",Ma:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",Y:t?{title:g.FK("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":tQa(r),"data-tooltip-opaque":String(g.tS(r)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",ya:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",Y:t?{title:g.FK("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe from channel","data-tooltip-image":tQa(r),"data-tooltip-opaque":String(g.tS(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count",
ya:d}:""]}],Y:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var x=this.Ha("ytp-sb-subscribe"),B=this.Ha("ytp-sb-unsubscribe");f&&g.jv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var E=function(){if(r.Ba){var H=v.channelId;if(m||n){var P={c:H};var Q;g.LI.isInitialized()&&(Q=WLa(P));P=Q||"";if(Q=p.getVideoData())if(Q=Q.subscribeCommand){var R=p.fn();R?(AI(R,Q,{botguardResponse:P,feature:m}),p.jb("SUBSCRIBE",H)):g.eG(Error("No innertube service available when updating subscriptions."))}else g.eG(Error("No subscribe command in videoData."));
else g.eG(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else HXa(g.ES(v.J.U()),"sb_button",v.D)},F=function(){var H=v.channelId;
if(m||n){var P=p.getVideoData();AI(p.fn(),P.unsubscribeCommand,{feature:m});p.jb("UNSUBSCRIBE",H)}x.focus();x.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.T(x,"click",E);this.T(B,"click",F);this.T(x,"keypress",function(H){13===H.keyCode&&E(H)});
this.T(B,"keypress",function(H){13===H.keyCode&&F(H)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(wTa(p),EU(p,x,this),EU(p,B,this))}else g.jv(x,"ytp-sb-disabled"),g.jv(B,"ytp-sb-disabled")};
JXa=function(a){g.V.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.U().W,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.U().W,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ha("ytp-title-channel");this.j=this.Ha("ytp-title-channel-logo");this.channelName=this.Ha("ytp-title-expanded-title");this.G=this.Ha("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this,
37220);g.tS(this.api.U())&&IXa(this);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",this.Qa);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.no(JW(b));c.preventDefault()}),this.T(this.j,"click",this.i9));
this.Qa()};
KXa=function(a){if(!a.api.U().Jc){var b=a.api.getVideoData(),c=new g.IW("Subscribe",null,"Subscribed",null,!0,!1,b.Bl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new EXa(a.api);a.B=e;g.M(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.El&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.El&&(e.hide(),a.api.logVisibility(e.element,!1),FXa(e,!1))})}};
IXa=function(a){var b=a.api.U();KXa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.bb?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(LXa(a)&&(c.preventDefault(),a.isExpanded()?a.ZG():a.yH()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.yH),a.T(a.channel,"mouseleave",a.ZG),a.T(a.channel,"focusin",
a.yH),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.ZG()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)}));
a.C=new g.bv(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.M(a,a.C);a.T(a.channel,MXa,function(){NXa(a)});
a.T(a.api,"onHideControls",a.YQ);a.T(a.api,"appresize",a.YQ);a.T(a.api,"fullscreentoggled",a.YQ)};
NXa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
LXa=function(a){var b=a.api.getPlayerSize();return g.tS(a.api.U())&&524<=b.width};
JW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.PS(b)+c.Nc;if(!g.tS(b))return c;b={};g.vU(a.api,"addEmbedsConversionTrackingParams",[b]);g.QP(b,"emb_ch_name_ex");return g.Bm(c,b)};
KW=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ma:["ytp-panel-back-button-container"],V:[{Y:{"aria-label":"Back to previous menu"},I:"button",Ma:["ytp-button",l]}]},{I:"span",Ma:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ma:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.GG.call(this,h);this.content=
b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.dX=!1;this.cX=d;c&&(c=this.Ha(l),m=this.Ha(m),this.T(c,"click",this.BY),this.T(m,"click",this.BY),this.dX=!0,e&&(p=this.Ha(p),this.T(p,"click",e)));b.subscribe("size-change",this.GY,this);this.T(a,"fullscreentoggled",this.GY);this.J=a};
g.LW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.GG({I:"div",S:"ytp-panel-menu",Y:h});KW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
g.MW=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.dQ,a);a.items=[];g.rf(a.menuItems.element);a.menuItems.oa("size-change")};
OXa=function(a,b){return b.priority-a.priority};
NW=function(a){var b=g.YU({"aria-haspopup":"true"});g.XU.call(this,b,a);this.Ra("keydown",this.j)};
OW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
PXa=function(a,b){g.V.call(this,{I:"div",S:"ytp-user-info-panel",Y:{"aria-label":"User info"},V:a.U().Ba&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},ya:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ya:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",
ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",Y:{tabIndex:"{{userInfoFocusable}}"},ya:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ya:a.U().Jc?"":"Sign in on YouTube"}]}]}]});this.Va=a;this.j=b;a.U().Ba||a.U().Jc||(a=this.Ha("ytp-user-info-panel-login"),this.T(a,"click",this.v3));this.closeButton=new g.V({I:"button",Ma:["ytp-collapse","ytp-button"],Y:{title:"Close"},V:[g.PG()]});this.closeButton.Ja(this.element);
g.M(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.u3);this.Qa()};
RXa=function(a,b,c){g.LW.call(this,a);this.Gb=b;this.Sd=c;this.getVideoUrl=new NW(6);this.qn=new NW(5);this.cn=new NW(4);this.uc=new NW(3);this.gF=new g.XU(g.YU({href:"{{href}}",target:this.J.U().W},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.XU(g.YU(),1,"Stats for nerds");this.My=new g.GG({I:"div",Ma:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},ya:"{{text}}"});this.vV=new KW(this.J,this.My);this.YF=this.Ts=null;g.tS(this.J.U())&&(this.closeButton=
new g.V({I:"button",Ma:["ytp-collapse","ytp-button"],Y:{title:"Close"},V:[g.PG()]}),g.M(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.Ra("click",this.p5,this));g.tS(this.J.U())&&(this.rl=new g.XU(g.YU(),8,"Account"),g.M(this,this.rl),this.Tc(this.rl,!0),this.rl.Ra("click",this.Q$,this),a.createClientVe(this.rl.element,this.rl,137682));this.J.U().Mm&&(this.Sk=new gV("Loop",7),g.M(this,this.Sk),this.Tc(this.Sk,!0),this.Sk.Ra("click",this.J9,this),a.createClientVe(this.Sk.element,
this.Sk,28661));g.M(this,this.getVideoUrl);this.Tc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.A9,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,this.qn);this.Tc(this.qn,!0);this.qn.Ra("click",this.B9,this);a.createClientVe(this.qn.element,this.qn,28660);g.M(this,this.cn);this.Tc(this.cn,!0);this.cn.Ra("click",this.z9,this);a.createClientVe(this.cn.element,this.cn,28658);g.M(this,this.uc);this.Tc(this.uc,!0);this.uc.Ra("click",this.y9,this);g.M(this,this.gF);
this.Tc(this.gF,!0);this.gF.Ra("click",this.y$,this);g.M(this,this.showVideoInfo);this.Tc(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.R$,this);g.M(this,this.My);this.My.Ra("click",this.o9,this);g.M(this,this.vV);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Qaa("Chromium")&&(b=!0);40>=Qaa("Firefox")&&(b=!1);b&&(this.Ts=new g.V({I:"textarea",S:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.M(this,this.Ts),this.Ts.Ja(this.element));var d;null==(d=
this.rl)||ZU(d,awa());var e;null==(e=this.Sk)||ZU(e,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});ZU(this.uc,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});ZU(this.gF,Sva());ZU(this.showVideoInfo,Tva());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);QXa(this);this.zF(this.J.getVideoData())};
QW=function(a,b){var c=!1;if(a.Ts){var d=a.Ts.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Gb.Pb():(a.My.Zd(b,"text"),g.PW(a.Gb,a.vV),QUa(a.My.element),a.Ts&&(a.Ts=null,QXa(a)));return c};
QXa=function(a){var b=!!a.Ts;g.WU(a.uc,b?"Copy debug info":"Get debug info");OW(a.uc,!b);g.WU(a.cn,b?"Copy embed code":"Get embed code");OW(a.cn,!b);g.WU(a.getVideoUrl,b?"Copy video URL":"Get video URL");OW(a.getVideoUrl,!b);g.WU(a.qn,b?"Copy video URL at current time":"Get video URL at current time");OW(a.qn,!b);ZU(a.cn,b?Pva():null);ZU(a.getVideoUrl,b?OG():null);ZU(a.qn,b?OG():null)};
SXa=function(a){return g.tS(a.J.U())?a.rl:a.Sk};
g.RW=function(a,b){g.UU.call(this,a,{I:"div",Ma:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.He(0,0);this.Ra("keydown",this.w3)};
TXa=function(a){var b=a.j[a.j.length-1];if(b){g.As(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.ps(b.element,"width","");g.ps(b.element,"height","");g.ps(b.element,"maxWidth","100%");g.ps(b.element,"maxHeight","100%");g.ps(b.content.element,"height","");var c=g.Bs(b.element);c.width+=1;c.height+=1;g.ps(b.element,"width",c.width+"px");g.ps(b.element,"height",c.height+"px");g.ps(b.element,"maxWidth","");g.ps(b.element,"maxHeight","");var d=0;b.dX&&(d=b.Ha("ytp-panel-header"),d=g.Bs(d).height);
var e=0;b.cX&&(e=b.Ha("ytp-panel-footer"),g.ps(e,"width",c.width+"px"),e=g.Bs(e).height);g.ps(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];UXa(a,b,c,!0)}};
UXa=function(a,b,c,d){VXa(a);b&&(b.unsubscribe("size-change",a.qB,a),b.unsubscribe("back",a.Aj,a));c.subscribe("size-change",a.qB,a);c.subscribe("back",a.Aj,a);if(a.Ib){g.jv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;TXa(a);g.As(a.element,e);a.G=new g.bv(function(){WXa(a,b,c,d)},20,a);
a.G.start()}else c.Ja(a.element),b&&b.detach()};
WXa=function(a,b,c,d){a.G.dispose();a.G=null;g.jv(a.element,"ytp-popup-animating");d?(g.jv(b.element,"ytp-panel-animate-forward"),g.lv(c.element,"ytp-panel-animate-back")):(g.jv(b.element,"ytp-panel-animate-back"),g.lv(c.element,"ytp-panel-animate-forward"));g.As(a.element,a.size);a.K=new g.bv(function(){g.lv(a.element,"ytp-popup-animating");b.detach();g.mv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
VXa=function(a){a.G&&g.dv(a.G);a.K&&g.dv(a.K)};
YXa=function(a,b){g.RW.call(this,a);this.Sd=b;this.D=new g.kL(this);this.ra=new g.bv(this.jaa,1E3,this);this.Ba=this.C=null;g.M(this,this.D);g.M(this,this.ra);a.createClientVe(this.element,this,28656);g.jv(this.element,"ytp-contextmenu");XXa(this);this.hide()};
XXa=function(a){g.kD(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.bb||(b=a.J.rb(),a.D.T(b,"contextmenu",a.m9),a.D.T(b,"touchstart",a.y3,null,!0),a.D.T(b,"touchmove",a.hZ,null,!0),a.D.T(b,"touchend",a.hZ,null,!0))};
ZXa=function(a){a.J.isFullscreen()?g.NU(a.J,a.element,10):a.Ja(document.body)};
TW=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{I:"button",Ma:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.tS(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",ya:"{{icon}}"},{I:"div",S:"ytp-copylink-title",ya:"Copy link",Y:{"aria-hidden":"true"}}]});this.api=a;this.Se=b;this.j=c;this.visible=!1;this.tooltip=this.Se.Ne();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.nv(this.element,"ytp-show-copylink-title",g.tS(b));a.createClientVe(this.element,
this,86570);this.Ra("click",this.onClick);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",this.Qa);this.T(a,"appresize",this.Qa);this.Qa();this.addOnDisposeCallback(g.DU(this.tooltip,this.element))};
$Xa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.rb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.Mo&&!g.pU(c)&&!a.api.Xc()&&!b};
aYa=function(a){a.updateValue("icon",Lva());if(a.api.U().B)a.tooltip.DF(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Fh();a.tooltip.DF(a.element);var b=a.Ra("mouseleave",function(){a.Pc(b);a.Qa();a.tooltip.Ol()})}};
bYa=function(a,b){return g.G(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.of("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(kE){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
UW=function(a){g.V.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div",
S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.bv(this.show,10,this);this.B=new g.bv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ha("ytp-doubletap-static-circle");g.M(this,this.D);g.M(this,this.B);this.hide();this.N=this.Ha("ytp-doubletap-fast-forward-ve");this.W=this.Ha("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.W,
this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.W,!0);this.G=a.L("web_show_cumulative_seek_time")};
VW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.rb().getPlayerSize();a.G?a.B.stop():g.ev(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.jv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";cYa(a,a.G?a.C:c)};
dYa=function(a,b,c){g.ev(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.jv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
cYa=function(a,b){b=g.FK("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
YW=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.V.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.bb=this.ma=this.W=this.C=this.B=this.K=this.expanded=this.enabled=this.Ka=!1;this.Ua=new g.bv(function(){d.badge.element.style.width=""},200,this);
this.Fa=new g.bv(function(){WW(d);XW(d)},200,this);
this.dismissButton=new g.V({I:"button",Ma:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.D=new g.V({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.D);this.Ea=new g.V({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.M(this,this.Ea);this.badge=new g.V({I:c?"div":
"button",Ma:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ea,this.D]});g.M(this,this.badge);this.badge.Ja(this.element);this.N=new g.hH(this.badge,250,!1,100);g.M(this,this.N);this.Ta=new g.hH(this.D,250,!1,100);g.M(this,this.Ta);this.Za=new g.$u(this.bca,null,this);g.M(this,this.Za);this.Na=new g.$u(this.X5,null,this);g.M(this,this.Na);g.M(this,this.Ua);g.M(this,this.Fa);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.lJ(!1)});
this.T(this.J,"onShowControls",function(){d.lJ(!0)});
this.T(this.badge.element,"click",this.iJ);this.T(this.dismissButton.element,"click",this.pA);this.T(this.J,"pageTransition",this.JT);this.T(this.J,"appresize",this.Cm);this.T(this.J,"fullscreentoggled",this.x9);this.T(this.J,"cardstatechange",this.f9);this.T(this.J,"annotationvisibility",this.Kca,this);this.T(this.J,"offlineslatestatechange",this.Lca,this)};
WW=function(a){g.nv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.W||!a.K)};
XW=function(a,b){var c=a.tK();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Za.stop(),a.Na.stop(),a.Ua.stop(),a.Za.start()):(g.FG(a.D,a.expanded),g.nv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),eYa(a))};
eYa=function(a){a.B&&a.J.logVisibility(a.badge.element,a.fB());a.C&&a.J.logVisibility(a.dismissButton.element,a.fB()&&a.tK())};
fYa=function(a){var b=a.text||"",c=g.$e("ytp-suggested-action-badge-title",a.element);c&&g.zf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.qb?a.qb:"")};
ZW=function(a,b){b?a.C&&a.J.logClick(a.dismissButton.element):a.B&&a.J.logClick(a.badge.element)};
$W=function(a){g.RW.call(this,a,"ytp-shopping-product-menu");this.Ue=new g.LW(this.J);g.M(this,this.Ue);this.hide();g.PW(this,this.Ue);g.NU(this.J,this.element,4)};
hYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=gYa(a,c,e,null==b?void 0:b.icon),b.navigationEndpoint&&c.Ra("click",function(){a.J.jb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
iYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&gYa(a,c,e,null==b?void 0:b.icon).Ra("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.oa("featuredproductdismissed"):b.serviceEndpoint&&a.J.jb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
gYa=function(a,b,c,d){b=new g.XU(g.YU(),b,c);ZU(b,jYa(d));g.M(a,b);a.Ue.Tc(b,!0);return b};
jYa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",Y:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Sva();case "HIDE":return{I:"svg",Y:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",Y:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}}};
kYa=function(a){YW.call(this,a,!1,!0);this.ra=[];this.ub=[];this.K=!0;this.badge.element.classList.add("ytp-featured-product");this.Ba=new g.V({I:"div",S:"ytp-featured-product-open-in-new"});g.M(this,this.Ba);this.countdownTimer=new g.V({I:"text",S:"ytp-featured-product-countdown",ya:"{{content}}"});this.countdownTimer.hide();g.M(this,this.countdownTimer);this.G=new g.V({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text",
ya:"{{trendingOffer}}"}]});this.G.hide();g.M(this,this.G);this.overflowButton=new g.V({I:"button",Ma:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.M(this,this.overflowButton);this.infoButton=new g.V({I:"button",Ma:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.M(this,this.infoButton);this.banner=new g.V({I:"a",S:"ytp-featured-product-container",V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",Y:{src:"{{thumbnail}}"}},
this.Ba]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",ya:"{{title}}"},{I:"text",S:"ytp-featured-product-price",ya:"{{price}}"},{I:"div",V:[{I:"text",S:"ytp-featured-product-vendor",ya:"{{vendor}}"},{I:"text",S:"ytp-featured-product-affiliate-disclaimer",ya:"{{affiliateDisclaimer}}"},this.countdownTimer,this.G]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.M(this,this.banner);this.banner.Ja(this.D.element);this.T(this.J,g.zK("featured_product"),
this.Mba);this.T(this.J,g.AK("featured_product"),this.MA);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.D9);this.T(this.overflowButton.element,"click",this.Z9);this.T(a,"featuredproductdismissed",this.pA)};
lYa=function(a){var b,c,d,e,f,h;return a.G.Ib||(null==(b=a.j)?0:null==(c=b.bannerData)?0:null==(d=c.itemData)?0:d.affiliateDisclaimer)?null:null==(e=a.j)?void 0:null==(f=e.bannerData)?void 0:null==(h=f.itemData)?void 0:h.vendorName};
nYa=function(a,b){aX(a);if(b){var c=g.IT.getState().entities;c=lP(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.ra.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=mYa(h.startTimeSec);void 0!==f&&(h=mYa(h.endTimeSec),b.push(new g.yK(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.rf(b)}}};
pYa=function(a){if(a.trendingOfferEntityKey){var b=g.IT.getState().entities;if(b=lP(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?oYa(a):(a.G.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.G.show(),a.banner.update({vendor:lYa(a)}))}else oYa(a)}else oYa(a)};
oYa=function(a){a.G.hide();a.banner.update({vendor:lYa(a)})};
aX=function(a){a.ra=[];a.MA();a.J.yf("featured_product")};
qYa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Zd(uHa({seconds:b}));if(0a)))return a};
wYa=function(a,b,c){g.V.call(this,{I:"div",Ma:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",ya:"{{disclaimer}}"},{I:"a",Ma:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",ya:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",ya:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ha("ytp-info-panel-action-item-disclaimer");this.button=
this.Ha("ytp-info-panel-action-item-button");this.Ee=!1;this.J.createServerVe(this.element,this,!0);this.Ra("click",this.onClick);a="";c=g.U(null==b?void 0:b.onTap,iG);var d=g.U(c,g.VG);this.Ee=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Ee=!0,g.lo(this.button,g.io(a))):(d=g.U(c,sYa))&&!this.j?((a=d.phoneNumbers)&&0b);d=a.next())c++;return 0===c?c:c-1};
EYa=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b=a.C&&!b};
WYa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Se.mq(),VU(a.B,a.element,!1)):g.eG(b))};
YYa=function(a,b){var c=BG(),d=a.U();c={I:"div",S:"ytp-share-panel",Y:{id:BG(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",Y:{id:c},ya:"Share"},{I:"a",Ma:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.W,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ya:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[PUa()]},{I:"div",S:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",ya:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ma:["ytp-share-panel-close","ytp-button"],Y:{title:"Close"},V:[g.NG()]}]};g.UU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ne();this.C=[];this.G=this.Ha("ytp-share-panel-inner-content");
this.closeButton=this.Ha("ytp-share-panel-close");this.T(this.closeButton,"click",this.Pb);this.addOnDisposeCallback(g.DU(this.tooltip,this.closeButton));this.D=this.Ha("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Qa);this.j=this.Ha("ytp-share-panel-link");this.addOnDisposeCallback(g.DU(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=XYa(e,h);
g.jV(h,e.api,f)&&e.api.jb("SHARE_CLICKED")});
this.Ra("click",this.G3);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.j8);this.hide()};
$Ya=function(a,b){ZYa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;fd;e={Xv:void 0,xm:void 0},f++){e.Xv=c[f];a:switch(e.Xv.img||e.Xv.iconId){case "facebook":var h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Xv.sname||e.Xv.serviceName;e.xm=new g.V({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.Xv.url,target:"_blank",title:l},V:[h]});e.xm.Ra("click",function(p){return function(q){var r=p.Xv.url;if(g.zH(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var x=r instanceof g.he?r:g.ke("undefined"!=typeof r.href?r.href:String(r))||g.re;var B=void 0!==
self.crossOriginIsolated,E="strict-origin-when-cross-origin";window.Request&&(E=(new Request("/")).referrerPolicy);var F="unsafe-url"===E;E=v.noreferrer;if(B&&E){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");E=!1}r=v.target||r.target;B=[];for(var H in v)switch(H){case "width":case "height":case "top":case "left":B.push(H+"="+v[H]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(H+"="+(v[H]?
1:0))}H=B.join(",");Oc()&&t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.of("A"),x=x instanceof g.he?x:vba(x),v.href=g.ie(x),v.target=r,E&&(v.rel="noreferrer"),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(x),t={}):E?(t=Lba("",t,r,H),x=g.ie(x),t&&(g.LS&&g.jc(x,";")&&(x="'"+x.replace(/'/g,"%27")+"'"),t.opener=null,""===x&&(x="javascript:''"),x=g.ue(''),
(v=t.document)&&v.write&&(v.write(g.te(x)),v.close()))):((t=Lba(x,t,r,H))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.xm.addOnDisposeCallback(g.DU(a.tooltip,e.xm.element));"Facebook"===l?a.api.createClientVe(e.xm.element,e.xm,164504):"Twitter"===l&&a.api.createClientVe(e.xm.element,e.xm,164505);a.T(e.xm.element,"click",function(p){return function(){a.api.logClick(p.xm.element)}}(e));
a.api.logVisibility(e.xm.element,!0);a.C.push(e.xm);d++}}var m=b.more||b.moreLink,n=new g.V({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],Y:{href:m,target:"_blank",title:"More"}});n.Ra("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=XYa(a,q);g.jV(q,a.api,p)&&a.api.jb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.DU(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)});
a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
XYa=function(a,b){var c={};g.tS(a.api.U())&&(g.vU(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Bm(b,g.QP(c,"emb_share")));return b};
ZYa=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]};
mX=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
aZa=function(a,b){a.startSec+=b;a.endSec+=b};
cZa=function(a){YW.call(this,a);this.G=this.j=this.isContentForward=this.Ba=!1;bZa(this);this.T(this.J,"changeProductsInVideoVisibility",this.g$);this.T(this.J,"videodatachange",this.onVideoDataChange)};
dZa=function(a){a.ra&&a.Ea.element.removeChild(a.ra.element);a.ra=void 0};
fZa=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.U(c,eZa))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.V({I:"img",
S:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:c}});g.M(a,c);return c})};
gZa=function(a,b){a.isContentForward=b;g.nv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
nX=function(a){var b=a.isContentForward&&!a.tK();g.nv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.nv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.G)};
oX=function(a,b,c){return new g.yK(1E3*a,1E3*b,{priority:9,namespace:c})};
hZa=function(a){a.J.yf("shopping_overlay_visible");a.J.yf("shopping_overlay_preview_collapsed");a.J.yf("shopping_overlay_preview_expanded");a.J.yf("shopping_overlay_expanded")};
bZa=function(a){a.T(a.J,g.zK("shopping_overlay_visible"),function(){a.hg(!0)});
a.T(a.J,g.AK("shopping_overlay_visible"),function(){a.hg(!1)});
a.T(a.J,g.zK("shopping_overlay_expanded"),function(){a.ma=!0;XW(a)});
a.T(a.J,g.AK("shopping_overlay_expanded"),function(){a.ma=!1;XW(a)});
a.T(a.J,g.zK("shopping_overlay_preview_collapsed"),function(){a.j=!0;nX(a)});
a.T(a.J,g.AK("shopping_overlay_preview_collapsed"),function(){a.j=!1;nX(a)});
a.T(a.J,g.zK("shopping_overlay_preview_expanded"),function(){a.G=!0;nX(a)});
a.T(a.J,g.AK("shopping_overlay_preview_expanded"),function(){a.G=!1;nX(a)})};
jZa=function(a){g.V.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.U().W,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.U().W,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ha("ytp-shorts-title-channel-logo");this.channelName=this.Ha("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.no(pX(b)),c.preventDefault()):b.api.logClick(b.j)});
a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.no(pX(b));c.preventDefault()});
iZa(this);this.T(a,"videodatachange",this.Qa);this.T(a,"videoplayerreset",this.Qa);this.Qa()};
iZa=function(a){if(!a.api.U().Jc){var b=a.api.getVideoData(),c=new g.IW("Subscribe",null,"Subscribed",null,!0,!1,b.Bl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
pX=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.PS(b)+c.Nc;if(!g.tS(b))return c;b={};g.vU(a.api,"addEmbedsConversionTrackingParams",[b]);g.QP(b,"emb_ch_name_ex");return g.Bm(c,b)};
qX=function(a){g.UU.call(this,a,{I:"button",Ma:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",ya:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.bv(function(){b.hide()},5E3);
this.Bf=this.Pi=NaN;g.M(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Pi/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
nZa=function(a){return a.L("web_big_boards")?a.fg()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
uX=function(a,b){g.V.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",ya:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ha("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.kL(this);this.j=new g.hH(this,100);g.M(this,this.events);g.M(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.hv()});
nZa(this.api)&&g.jv(this.element,"ytp-storyboard-framepreview-big-boards")};
oZa=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){oZa(a,a.api.Uj())}),a.events.T(a.api,"progresssync",a.Vf),a.events.T(a.api,"appresize",a.K)),a.C=NaN,pZa(a),a.j.show(200)):(c&&g.kD(a.events),a.j.hide(),a.j.stop())};
pZa=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.rb().getPlayerSize(),e=nT(b,d.width);e=CRa(b,e,c);a.update({timestamp:g.yH(c)});e!==a.C&&(a.C=e,ARa(b,e,d.width),b=yRa(b,e,d.width),mZa(a.D,b,d.width,d.height))};
qZa=function(a,b){g.V.call(this,{I:"button",Ma:["ytp-fullscreen-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.Se=b;this.message=null;this.j=g.DU(this.Se.Ne(),this.element);this.B=new g.bv(this.i5,2E3,this);g.M(this,this.B);this.T(a,"fullscreentoggled",this.ym);this.T(a,"presentingplayerstatechange",this.Qa);this.T(a,"resize",this.Qa);this.Ra("click",this.onClick);g.$C()&&(b=
this.J.rb(),this.T(b,wpa(),this.TP),this.T(b,vpa(document),this.qw));a.U().Rb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Qa();this.ym(a.isFullscreen())};
vX=function(a,b){g.V.call(this,{I:"button",Ma:["ytp-button","ytp-jump-button"],Y:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0=h)break}a.D=d;a.frameCount=b.JH();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.B.pop())||d.dispose();
for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
d_a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
a_a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
b_a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",ya:"{{chapterTitle}}"}]})};
f_a=function(a){g.V.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",Y:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ha("ytp-heat-map-svg");this.C=this.Ha("ytp-heat-map-path");this.G=this.Ha("ytp-heat-map-graph");this.D=this.Ha("ytp-heat-map-play");this.B=this.Ha("ytp-heat-map-hover");this.Ee=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",
a);this.api.L("web_heat_map_v2")&&g.jv(this.api.getRootNode(),"ytp-heat-map-v2")};
g_a=function(a,b){0=h&&x<=p&&f.push(r)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0a.qb&&(a.qb=m/f),d=!0)}c++}}return d};
IX=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:oU(d))&&b.airingStart&&b.airingEnd?B_a(a,b.airingStart,b.airingEnd):B_a(a,b.seekableStart,b.seekableEnd);d=CH(c,b.loaded,0);b=CH(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;JX(a,b,d);e&&C_a(a);D_a(a)}}};
B_a=function(a,b,c){return E_a(a)?new BH(Math.max(b,a.Fb.startTimeMs/1E3),Math.min(c,a.Fb.endTimeMs/1E3)):new BH(b,c)};
F_a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Fb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[cX(a.j,b.startTimeMs)],g.nv(b.j,"ytp-repeating-chapter",!1)),a.Fb&&(b=a.j[cX(a.j,a.Fb.startTimeMs)],g.nv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.nv(d.j,"ytp-exp-chapter-hover-container",!a.Fb)})};
LX=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ba)};
C_a=function(a){a.Qf.style.removeProperty("height");for(var b=g.u(Object.keys(a.Ka)),c=b.next();!c.done;c=b.next())H_a(a,c.value);MX(a);JX(a,a.ma,a.ib)};
HX=function(a){var b=a.bb.x;b=g.we(b,0,a.N);a.kh.update(b,a.N);return a.kh};
OX=function(a){return(a.D?135:90)-NX(a)};
NX=function(a){var b=48,c=a.api.U();a.D?b=54:g.tS(c)&&!c.B&&(b=40);return b};
JX=function(a,b,c){a.ma=b;a.ib=c;var d=HX(a),e=a.C.j;var f=a.C;f=f.B+a.ma*f.getLength();var h=g.FK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.yH(f,!0),DURATION:g.yH(e,!0)}),l=cX(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Fb&&2!==a.api.getPresentingPlayerType()&&(e=a.Fb.startTimeMs/1E3,f=a.Fb.endTimeMs/1E3);e=CH(a.C,e,0);l=CH(a.C,f,1);h=a.api.getVideoData();f=g.we(b,e,l);c=(null==
h?0:g.nU(h))?1:g.we(c,e,l);b=y_a(a,b,d);g.ps(a.Rg,"transform","translateX("+b+"px)");PX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:oU(h))?(b=a.api.getProgressState().seekableEnd)&&PX(a,d,f,CH(a.C,b),"LIVE_BUFFER"):PX(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
PX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ba*(a.D?3:2),l=c*h;c=KX(a,l);var m=d*h;h=KX(a,m);"HOVER_PROGRESS"===e&&(h=KX(a,b.j*d,!0),m=b.j*d-I_a(a,b.j*d)*(a.D?3:2));b=Math.max(l-J_a(a,c),0);for(d=c;d=a.j.length)return a.N;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
y_a=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.D};
I_a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.L_a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Of=b;a.N=c;a.D=d;EX(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);C_a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.GX(a);a.B&&f&&EX(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-NX(a),a.Za.style.height=c+"px",g.ps(a.ra,"transform","translateY("+-d+"px)"),g.ps(a.progressBar,"transform","translateY("+-d+"px)")),c_a(a.B))};
MX=function(a){var b=!!a.Fb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Fb?(c=a.Fb.startTimeMs/1E3,d=a.Fb.endTimeMs/1E3):(e=c>a.C.B,f=0a.ma);g.nv(a.Qf,"ytp-scrubber-button-hover",c===d&&1b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ba*a.scale,d=yRa(a.B,a.D,b);mZa(a.bg,d,b,c,!0);a.Fa.start()}};
C0a=function(a){var b=a.j;3===a.type&&a.Ka.stop();a.api.removeEventListener("appresize",a.Ea);a.ma||b.setAttribute("title",a.C);a.C="";a.j=null};
E0a=function(a){g.V.call(this,{I:"button",Ma:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.tS(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",ya:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",ya:"Watch Later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;wTa(a);a.createClientVe(this.element,this,28665);this.Ra("click",this.onClick,this);this.T(a,"videoplayerreset",this.yw);this.T(a,"appresize",
this.VB);this.T(a,"videodatachange",this.VB);this.T(a,"presentingplayerstatechange",this.VB);this.VB();a=this.J.U();var b=g.oD("yt-player-watch-later-pending");a.D&&b?(iMa(),D0a(this)):this.Qa(2);g.nv(this.element,"ytp-show-watch-later-title",g.tS(a));EU(this.J,this.element,this)};
F0a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.tS(c)&&g.KU(a.J)&&g.oH(a.J.Ub(),128),f=c.C;return c.Je&&240<=b.width&&!d.isAd()&&d.Je&&!e&&!g.pU(d)&&!a.J.Xc()&&!f};
G0a=function(a,b){HXa(g.ES(a.J.U()),"wl_button",function(){iMa({videoId:b});window.location.reload()})};
D0a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Qa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.fn(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Qa(2);a.J.U().K&&a.J.jb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Qa(1);a.J.U().B&&a.J.DF(a.element);a.J.U().K&&a.J.jb("WATCH_LATER_VIDEO_ADDED")};
AI(c,b).then(d,function(){a.isRequestPending=!1;a.Qa(4,"An error has occurred. Please try again later.");a.J.U().K&&a.J.jb("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}};
H0a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=PUa();break;case 1:c=Lva();break;case 2:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Dc:!0,S:"ytp-svg-fill",Y:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Dc:!0,Y:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.nY=function(){g.BW.apply(this,arguments);this.uI=(this.Kq=g.tS(this.api.U()))&&(this.api.U().B||QC()||OC());this.JM=48;this.KM=69;this.DC=this.di=null;this.Ct=[];this.EK=this.Th=this.FK=this.bv=this.Sd=null;this.QF=[];this.contextMenu=this.Hg=this.overflowButton=this.Rh=this.Sg=this.searchButton=this.Wm=this.shareButton=this.zo=this.Qg=this.title=this.channelAvatar=this.BA=this.tooltip=null;this.sM=!1;this.PE=this.Tv=this.XC=this.YC=null;this.tQ=this.nP=this.VM=!1};
I0a=function(a){var b=a.api.U(),c=g.oH(a.api.Ub(),128);return b.D&&c&&!a.api.isFullscreen()};
J0a=function(a){if(a.Ag()&&!a.api.Xc()&&a.Rh){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.zo||b&&!F0a(a.zo)||LYa(a.Rh,a.zo);!a.shareButton||b&&!VYa(a.shareButton)||LYa(a.Rh,a.shareButton);!a.Wm||b&&!$Xa(a.Wm)||LYa(a.Rh,a.Wm)}else{if(a.Rh){b=a.Rh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.yf(a.Qg.element,a.searchButton.element)&&a.searchButton.Ja(a.Qg.element);a.zo&&!g.yf(a.Qg.element,a.zo.element)&&a.zo.Ja(a.Qg.element);
a.shareButton&&!g.yf(a.Qg.element,a.shareButton.element)&&a.shareButton.Ja(a.Qg.element);a.Wm&&!g.yf(a.Qg.element,a.Wm.element)&&a.Wm.Ja(a.Qg.element)}};
K0a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==ts(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=K0a(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexc.TA||0>c.Rt||0>f||0>d||0>c.vr||0>h)return wY(a,b),[];a=$Q(c.TA,c.vr);b=c.FP||0;return[new bR(3,e,a,"makeSliceInfosMediaBytes",c.Rt-1,d/h,f/h,b,
a.length-b,void 0,c.Dj,c.clipId)]}return 0>c.Rt?(wY(a,b),[]):(null==(h=a.manifest)?0:h.yc)?(a=e.Fj,[new bR(3,e,void 0,"makeSliceInfosMediaBytes",c.Rt,void 0,a,void 0,a*e.info.Ob,!0,c.Dj,c.clipId)]):[]};
d1a=function(a,b,c){a.manifest=b;a.Cg=c;b=g.u(a.wd);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.e_),f=e.next();!f.done;f=e.next()){f=f.value;var h=c1a(a,c,f);b1a(a,f.Ap,d,h)}}};
f1a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()});
(a=a.wd.get(c))&&!a.Ng&&(e1a&&(a.Wq.has(b)||a.Wq.set(b,{data:new EO,xM:0,xI:!1}),FO(a.Wq.get(b).data,d)),FO(a.Kf,d),a.bytesReceived+=d.getLength(),a.HQ=!0)};
W0a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.wd.get(b);c&&!c.Ng&&(c.Ng=!0,c.Vf&&c.Vf(),g1a(a)&&a.C.zY())};
g1a=function(a){a=g.u(a.wd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Ng)return!1;return!0};
yY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
h1a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.oa(new Uint8Array(c))));a.close()}return b};
i1a=function(){for(var a=zY.length;4>a;a++){var b=g.of("VIDEO");b.load();zY.push(new g.HV(b))}};
j1a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.Ti()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.nf())&&b.isView()&&(b=b.mediaElement);if(b&&12m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Va.addEventListener(g.zK("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.yK(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,EY(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,EY(b)+m)),h=cPa(f,l)||d,h!==d&&a.j.va("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().nj=!0;d.getVideoData().W=!0;g.HY(d,!0);f={};a.B&&(f=g.MN(a.B.vc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.va("queued",f);0!==b&&d.seekTo(b+.01,{Iv:!0,TR:3,zd:"videoqueuer_queued"});a.C=new n1a(a.N,a.app.rd(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(DY(c,1),c.j.subscribe("internalvideodatachange",c.Ku,c),c.B.subscribe("internalvideodatachange",c.Ku,c),c.j.subscribe("mediasourceattached",c.Ku,c),c.B.subscribe("statechange",c.QT,c),c.j.subscribe("newelementrequired",c.RY,c),c.Ku());return a.D};
x1a=function(a){var b,c,d,e;g.G(function(f){switch(f.j){case 1:if(a.isDisposed()||!a.D||!a.j)return f.return();a.Z&&IY(a.app.rd(),!0,!1);b=null;if(!a.C){f.La(2);break}g.Ba(f,3);return g.z(f,s1a(a.C),5);case 5:g.Ca(f,2);break;case 3:b=c=g.Da(f);case 2:if(!a.j)return f.return();g.CY.pk("vqsp",function(){JY(a.app,a.j)});
g.CY.pk("vqpv",function(){a.app.playVideo()});
b&&(a.j?z1a(a.j,b.message):null==(d=a.B)||d.va("gapsp",{}));e=a.D;GY(a);e&&e.resolve();return f.return(Promise.resolve())}})};
GY=function(a){if(a.B){if(a.G){var b=a.B;a.app.Va.removeEventListener(g.zK("vqueued"),a.K);b.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(b=a.C,Infinity!==b.status.status&&1!==b.G&&b.Fg("Canceled")),a.C=null);a.D=null;a.j&&a.j!==g.AU(a.app,1)&&a.j!==a.app.rd()&&a.j.dispose();a.j=null;a.Z=!1};
A1a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
B1a=function(a,b,c){if(a.Qv())return"qie";if(null==a.j||a.j.isDisposed()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.me())return"vinm";if(0>=A1a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=j1a(d.policy,d.j,d.B,d.Am)?a="pge":(c=v1a(d),b=c.wR,a=g.SJ(d.Rd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=EL(c.r_.df(),d),b=EL(b.df(),d),a=!(0c)){b=new KY(a.X,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.Tj();e&&e!==a.j.Tj()&&a.B.set(e,[c])}a.j.j.set(b.Hh(),b)}};
LY=function(a,b){return a.B.get(b)};
K1a=function(a,b,c,d,e,f){return new J1a(c,c+(d||0),!d,b,a,e,f)};
J1a=function(a,b,c,d,e,f,h){g.I.call(this);this.Ec=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.OI=h;this.j=new Map;wSa(f)};
L1a=function(a){this.end=this.start=a};
g.MY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.qa=c;this.Fa=new Map;this.Xa=new Map;this.Ka=new Map;this.C=new Map;this.B=[];this.N=[];this.D=new Map;this.Jc=new Map;this.Z=new Map;this.ac=NaN;this.ub=this.bb=this.Xb=null;this.Rb=new g.bv(function(){M1a(d,d.ac,d.Xb||void 0)});
this.events=new g.kL(this);this.Jb=15E3;this.K=new g.bv(function(){d.Ba=!0;var e=d.qa,f=d.Jb;e.va("sdai",{aftimeout:f});e.oe(new dL("ad.fetchtimeout",{timeout:f}));N1a(d);d.yD(!1)},this.Jb);
this.Ba=!1;this.G=new Map;this.qb=[];this.W=null;this.Ke=new Set;this.Ea=[];this.Nc=[];this.Je=[];this.md=[];this.j=void 0;this.zb=0;this.Za=!0;this.Ua=!1;this.Na=[];this.xd=new Set;this.ze=new Set;this.Wd=new Set;this.ra=0;this.ib=new Set;this.Pd=0;this.hp=this.kd=!1;this.ma="";this.Bd={Nkb:function(){return d.C},
Wkb:function(){return d.B},
Okb:function(){return d.D}};
this.qa.getPlayerType();O1a(this.qa,this);this.Ta=this.X.Rc();g.M(this,this.Rb);g.M(this,this.events);g.M(this,this.K);this.events.T(this.api,g.zK("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.AK("serverstitchedcuerange"),this.onCueRangeExit)};
S1a=function(a,b,c,d,e,f,h,l){var m=P1a(a,f,f+e);a.Ba&&a.qa.va("sdai",{adaftto:1});a.hp&&a.qa.va("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.qa;h=void 0===h?f+e:h;f===h&&!e&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.qa.va("sdai",{attl0d:1});f>h&&NY(a,{reason:"enterTime_greater_than_return",Ec:f,Vd:h});var p=1E3*n.Kd();fn&&NY(a,{reason:"parent_return_greater_than_content_duration",Vd:h,rmb:n});
n=null;p=g.Ub(a.N,{Vd:f},function(q,r){return q.Vd-r.Vd});
0<=p&&(n=a.N[p],n.Vd>f&&Q1a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;pd?-1*(d+2):d;return 0<=d&&(a=a.N[d],a.Vd>=c)?{Gk:a,hA:b}:{Gk:void 0,hA:b}};
RY=function(a,b){var c="";(b=W1a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
W1a=function(a,b){a=g.u(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
M1a=function(a,b,c){var d=a.ub||a.api.rd().getPlayerState();TY(a,!0);a.qa.seekTo(b,c);a=a.api.rd();b=a.getPlayerState();g.cM(d)&&!g.cM(b)?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
TY=function(a,b){a.ac=NaN;a.Xb=null;a.Rb.stop();a.bb&&b&&X1a(a.bb);a.ub=null;a.bb=null};
Y1a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.N),f=e.next();!f.done;f=e.next())f=f.value,(f.Ecc)&&d.push(f);a.N=d;d=g.u(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.qa.removeCueRange(e),a.C.delete(e.getId()),a.qa.va("sdai",{rmAdCR:1}));d=SY(a,b/1E3);b=d.Gk;d=d.hA;if(b&&(d=1E3*d-b.Ec,e=b.Ec+d,b.durationMs=d,b.Vd=e,d=a.C.get(b.cpn))){e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Ec+b.durationMs:f.end===d.start&&(f.end=b.Ec);d.start=b.Ec;d.end=b.Ec+b.durationMs}if(b=SY(a,c/1E3).Gk){var h;d="playback_timelinePlaybackId_"+b.ud+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ec+"_parentReturnTimeMs_"+b.Vd;a.cE("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
Z1a=function(a){a.Fa.clear();a.Xa.clear();a.Ka.clear();a.C.clear();a.B=[];a.N=[];a.D.clear();a.Jc.clear();a.Z.clear();a.G.clear();a.qb=[];a.W=null;a.Ke.clear();a.Ea=[];a.Nc=[];a.Je=[];a.md=[];a.Na=[];a.xd.clear();a.ze.clear();a.Wd.clear();a.ib.clear();a.Ba=!1;a.j=void 0;a.zb=0;a.Za=!0;a.Ua=!1;a.ra=0;a.Pd=0;a.kd=!1;a.hp=!1;a.ma="";a.K.isActive()&&OY(a)};
a2a=function(a,b,c,d,e,f){if(!a.hp)if(g.$1a(a,c))a.Ta&&a.qa.va("sdai",{gdu:"undec",seg:c,itag:e});else if(b=UY(a,b,c,d,f),!(jU(a.qa.getVideoData())&&(null==b?0:b.SD)))return b};
UY=function(a,b,c,d,e){var f=a.G.get(c);if(!f){b+=a.Bq();b=SY(a,b,1);if(b.Gk)return b.Gk;b=VY(a,c-1,null!=d?d:2);if(e)return a.qa.va("sdai",{misscue:e,sq:c,type:d,prevsstate:null==b?void 0:b.qy,prevrecord:a.G.has(c-1)}),a.G.get(c-1);if(2===(null==b?void 0:b.qy))return a.G.get(c-1)}return f};
b2a=function(a){if(a.Na.length)for(var b=g.u(a.Na),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.C.values());for(c=b.next();!c.done;c=b.next())a.qa.removeCueRange(c.value);b=g.u(a.B);for(c=b.next();!c.done;c=b.next())a.qa.removeCueRange(c.value);a.C.clear();a.B=[];a.Fa.clear();a.Xa.clear();a.Ka.clear();a.j||(a.Za=!0)};
VY=function(a,b,c){if(1===c){if(a.Fa.has(b))return a.Fa.get(b)}else{if(2===c&&a.Xa.has(b))return a.Xa.get(b);if(3===c&&a.Ka.has(b))return a.Ka.get(b)}};
d2a=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;c2a(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.qa.removeCueRange(e);if(a.Na.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else c2a(a,b,c)};
c2a=function(a,b,c){b=T1a(b,c);c=!0;g.$b(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.qa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.qa.addCueRange(b),b=a.qa.TC("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
WY=function(a,b,c){if(void 0===c||!c){c=g.u(a.qb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.qb.push(new L1a(b))}};
g.$1a=function(a,b){a=g.u(a.qb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
Q1a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",nmb:b,Ec:c,Vd:d,Gkb:e.ud,Hkb:(null==(f=e.videoData)?void 0:f.videoId)||"",Dkb:e.durationMs,Ekb:e.Ec,Fkb:e.Vd};NY(a,b)};
NY=function(a,b){a=a.qa;a.va("timelineerror",b);a.oe(new dL("dai.timelineerror",b))};
e2a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
f2a=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
g2a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
h2a=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Vd!==b.Ec&&c++;return c};
i2a=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vd!==e.Ec&&(e=e.cpn,b===e&&(d=!0),d&&!a.ze.has(e)&&(a.qa.va("sdai",{decoratedAd:e}),a.ze.add(e)))}};
N1a=function(a){a.Ta&&a.qa.va("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Pd)+"_isTimeout_"+a.Ba})};
P1a=function(a,b,c){if(a.Ea.length)for(var d=g.u(a.Ea),e=d.next(),f={};!e.done;f={Qy:void 0},e=d.next()){f.Qy=e.value;e=1E3*f.Qy.startSecs;var h=1E3*f.Qy.ai+e;if(b>e&&be&&cb?-1*(b+2):b])}};
YY=function(a,b){if(a=r2a(a,b)){a=g.u(a.segments);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Hh()<=b&&c.qv()>b)return c}};
j2a=function(a,b){var c;if(a.j)for(c=a.B.shift();c&&c!==a.j;)c=a.B.shift();else c=a.B.shift();if(c)return a.fk.has(c)?s2a(a,c):3===b&&(a.G.stop(),a.api.playVideo(1)),a.C.set(a.wg,b),t2a(a,c),!1;a.G.stop();return!0};
s2a=function(a,b){b=LY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.G.start(b[0].OI)};
t2a=function(a,b){if(a.wg!==b){var c=a.qa.getVideoData(),d=c.clientPlaybackNonce;a.wg&&a.api.SF();var e=a.wg;a.wg=b;var f=!1;""===e&&(e=d,f=!0);b=LY(a.timeline,a.wg);if(null==b?0:b.length){var h=b[0];b=h.getType();c=e===d?c:a.Oy.get(e);var l=a.C.get(e);l?a.C.delete(e):l=f?1:2;a:{var m=a.wg;if(!a.Ik.has(m))for(var n=g.u(a.Ik),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}n=m;p=a.qa.OH();p.Ug!==n&&(q=p.vc(p.Ug),m=p.vc(n),
p.Ug=n,m!==q&&(q.qoe&&(n=q.qoe,n.provider.X.Rc()&&n.va("ssap",{qoesus:"1",vid:n.provider.videoData.videoId}),isNaN(n.G)||g.uC(n.G)),m.resume()));m=a.qa.getCurrentTime();q=Math.max(0,m-XY(a,e)/1E3);n=Math.max(0,m-XY(a,a.wg)/1E3);p=3===l;h=h.getVideoData();var r=a.qa.OH(),t=e,v=a.wg,x=a.qa.getPlayerState();if(t!==v){var B=r.vc(t),E=r.vc(v),F,H=t===(null==(F=B.getVideoData())?void 0:F.clientPlaybackNonce),P;F=v===(null==(P=E.getVideoData())?void 0:P.clientPlaybackNonce);var Q;P=H?(null==(Q=B.getVideoData())?
void 0:Q.videoId)||"":"nvd";var R;Q=F?(null==(R=E.getVideoData())?void 0:R.videoId)||"":"nvd";H&&null!=(R=B.qoe)&&(aZ(R,4,p?4:0,v,Q,q),R.reportStats());F&&(bZ(E),null!=(R=E.qoe)&&(aZ(R,4,p?5:1,t,P,n),R.reportStats()),u2a(E,new g.nH(x,E.Fe)),v2a(E));r.j.has(t)&&(w2a(r.j.get(t)),r.j.delete(t))}var ha;mWa(e,a.wg,d,m,h,null!=(ha=a.D.get(e))?ha:m);a.D.delete(e);a.api.oa("videodatachange","newdata",h,b,f?void 0:c,l);a.fk.delete(e);a.j="";(null==h?0:h.startSeconds)&&1===b&&a.Z&&(d=h.startSeconds,e=LY(a.timeline,
a.qa.getVideoData().clientPlaybackNonce),null==e?0:e.length)&&(a.qa.seekTo(d+e[0].Hh()/1E3,{FR:!0}),a.Z=!1);2===b?a.N++:a.N=0}}};
x2a=function(a){var b=a.wg,c=a.timeline.B.values();a=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next()){d=g.u(d.value);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e="st."+f.Hh()+";";e+="et."+f.qv()+";";var h=f.Tj();h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h:"nvd");a.push(e)}}return a.join(",")};
k2a=function(a){a.qa.dF(Array.from(a.Ik.values()));a.Ik.clear()};
z2a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.ma=NaN;this.G=this.D=this.W=null;this.Z=new g.bv(function(){y2a(d,d.ma,d.W||void 0)});
this.ra=[];this.Ba=new g.bv(function(){var e=d.ra.pop();if(e){var f=e.ud,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.cv(d.Ba,4500))}});
this.events=new g.kL(this);c.getPlayerType();g.M(this,this.Z);g.M(this,this.Ba);g.M(this,this.events);this.events.T(this.api,g.zK("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.jk)};
D2a=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return cZ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Kd();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Qc(),cZ(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ec&&eq.Ec)return cZ(a,"overlappingReturn",h,l),"";if(f===q.Ec)return cZ(a,"outOfOrder",h,l),"";e===q.Vd&&(n=q)}h="cs_childplayback_"+A2a++;l={Te:dZ(d,!0),Am:Infinity,target:null};var r={ud:h,playerVars:b,playerType:c,durationMs:d,Ec:e,Vd:f,zs:l};a.B=a.B.concat(r).sort(function(x,B){return x.Ec-B.Ec});
n?B2a(a,n,{Te:dZ(n.durationMs,!0),Am:n.zs.Am,target:r}):(b={Te:dZ(e,!1),Am:e,target:r},a.K.set(b.Te,b),m.addCueRange(b.Te));b=!0;if(a.j===a.api.rd()&&(m=1E3*m.getCurrentTime(),m>=r.Ec&&mb)break;if(f>b)return{Gk:d,hA:b-e};c=f-d.Vd/1E3}return{Gk:null,hA:b-c}};
y2a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.rd().getPlayerState();gZ(a,!0);b=isFinite(b)?b:a.j.xq();var e=H2a(a,b);b=e.Gk;e=e.hA;var f=b&&!eZ(a,b)||!b&&a.j!==a.api.rd(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||fZ(a);b?C2a(a,b,e,c,d):I2a(a,e,c,d)};
I2a=function(a,b,c,d){var e=a.j,f=a.api.rd();e!==f&&a.api.LA();e.seekTo(b,Object.assign({},{zd:"application_timelinemanager"},c));J2a(a,d)};
C2a=function(a,b,c,d,e){var f=eZ(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.X.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.uT(a.X,b.playerVars);h.ud=b.ud;a.api.ut(h,b.playerType)}h=a.api.rd();f||h.addCueRange(b.zs.Te);h.seekTo(c,Object.assign({},{zd:"application_timelinemanager"},d));J2a(a,e)};
J2a=function(a,b){a=a.api.rd();var c=a.getPlayerState();g.cM(b)&&!g.cM(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
gZ=function(a,b){a.ma=NaN;a.W=null;a.Z.stop();a.D&&b&&X1a(a.D);a.G=null;a.D=null};
eZ=function(a,b){a=a.api.rd();return!!a&&a.getVideoData().ud===b.ud};
K2a=function(a){var b=a.B.find(function(e){return eZ(a,e)});
if(b){var c=a.api.rd();fZ(a);var d=new g.XL(8);b=G2a(a,b)/1E3;I2a(a,b,{},d);c.va("forceParentTransition",{childPlayback:1});a.j.va("forceParentTransition",{parentPlayback:1})}};
M2a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Am>=d&&l.target&&l.target.Vd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ec>=d&&l.Vd<=e){var m=a;m.N===l&&fZ(m);eZ(m,l)&&m.api.LA()}else f.push(l);a.B=f;d=H2a(a,b/1E3);b=d.Gk;d=d.hA;b&&(d*=1E3,L2a(a,b,d,b.Vd===b.Ec+b.durationMs?b.Ec+d:b.Vd));(b=H2a(a,c/1E3).Gk)&&
cZ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.ud+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ec+" parentReturnTimeMs="+b.Vd+"}.Child playbacks can only have duration updated not their start."))};
L2a=function(a,b,c,d){b.durationMs=c;b.Vd=d;d={Te:dZ(c,!0),Am:c,target:null};B2a(a,b,d);eZ(a,b)&&1E3*a.api.rd().getCurrentTime()>c&&(b=G2a(a,b)/1E3,c=a.api.rd().getPlayerState(),I2a(a,b,{},c))};
cZ=function(a,b,c,d){a.j.va("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
O2a=function(a){a&&"web"!==a&&N2a.includes(a)};
jZ=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.bv(function(){hZ(c);iZ(c)});
g.M(this,this.j)};
P2a=function(a){hZ(a);return a.data.map(function(b){return b.value})};
hZ=function(a){var b=(0,g.WD)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
S2a=function(a,b){a.dataset.version=b};
V2a=function(a){g.V.call(this,{I:"div",Ma:["html5-video-player"],Y:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.mZ.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.Ly=this.Ha(g.mZ.VIDEO_CONTAINER);this.EA=new g.ms(0,0,0,0);this.zc=null;this.PJ=new g.ms(0,0,0,0);this.hO=this.qP=this.pP=NaN;this.nI=this.MJ=this.EQ=this.lV=!1;this.TM=NaN;this.RO=!1;this.gE=null;this.RP=function(){b.app.U().L("web_player_misc_bugfix_a")?
b.element.focus({preventScroll:!0}):b.element.focus()};
this.uJ=function(){b.app.Va.oa("playerUnderlayVisibilityChange","visible");b.zc.classList.remove(g.mZ.VIDEO_CONTAINER_TRANSITIONING);b.zc.removeEventListener(UUa,b.uJ);b.zc.removeEventListener("transitioncancel",b.uJ)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.U();e.transparentBackground&&this.Vr("ytp-transparent");"0"===e.controlsType&&this.Vr("ytp-hide-controls");g.jv(this.element,"ytp-exp-bottom-control-flexbox");g.jv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.KS(e)&&g.jv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.jv(this.element,"ytp-ssap");S2a(this.element,T2a(a));this.t_=!1;this.WC=new g.He(NaN,NaN);U2a(this);this.T(a.Va,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
U2a=function(a){function b(){a.zc&&nZ(a);oZ(a)!==a.RO&&a.resize()}
function c(h,l){a.Qs(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.PJ=new g.ms(0,0,0,0);a.EA=new g.ms(0,0,0,0)}
var f=a.app.Va;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
X2a=function(a){var b=g.AU(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.mU(b))c=a.app.Va.getVideoData();if(c){if(g.ZT(c)||g.$T(c)||g.aU(c))return 16/9;if(jSa(c)&&c.C.j)return a=c.C.videoInfos[0].video,W2a(a.width,a.height)}return(a=a.zc)?W2a(a.videoWidth,a.videoHeight):16/9};
Y2a=function(a,b,c,d){var e=c,f=W2a(b.width,b.height);a.lV?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(Z2a*b-a)||1>Math.abs(Z2a/a-b)?Z2a:a/b};
oZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.AU(a.app);if(!b||b.wp())return!1;a=a.app.Va.Ub();b=!g.oH(a,2)||b&&b.getVideoData().W;var c=g.oH(a,1024);return a&&b&&!c&&!a.isCued()};
nZ=function(a){var b="3"===a.app.U().controlsType&&!a.nI&&oZ(a)&&!a.app.dA||!1;a.zc.controls=b;a.zc.tabIndex=b?0:-1;b?a.zc.removeEventListener("focus",a.RP):a.zc.addEventListener("focus",a.RP)};
$2a=function(a){var b=a.Vj(),c=1,d=!1,e=Y2a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Yoa(),m=g.SJ(f.experiments,"player_underlay_min_player_width");m=h&&a.EQ&&a.getPlayerSize().width>m;if(oZ(a)){var n=X2a(a);var p=isNaN(n)||g.lE||pZ&&g.QD||m;kE&&!g.Tc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.ms(p,0,b.width,b.height)):p=new g.ms(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.ms((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.QD&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.t_)a.zc.style.display="";a.RO=!0}else{p=-b.height;kE?p*=window.devicePixelRatio:g.LS&&(p-=window.screen.height);p=new g.ms(0,p,b.width,b.height);if(l||a.t_)a.zc.style.display="none";a.RO=!1}ns(a.PJ,p)||(a.PJ=p,g.zS(f)?(a.zc.style.setProperty("width",
p.width+"px","important"),a.zc.style.setProperty("height",p.height+"px","important")):g.As(a.zc,p.getSize()),d=new g.Ae(p.left,p.top),g.ws(a.zc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.ms((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);ns(a.EA,b)||(a.EA=b,d=!0);g.ps(a.zc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.MJ&&(m&&(a.zc.addEventListener(UUa,a.uJ),a.zc.addEventListener("transitioncancel",a.uJ),a.zc.classList.add(g.mZ.VIDEO_CONTAINER_TRANSITIONING)),a.MJ=m,a.app.Va.oa("playerUnderlayVisibilityChange",
a.MJ?"transitioning":"hidden"));return d};
a3a=function(){this.csn=g.WF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
b3a=function(a){if(a.csn!==g.WF())if("UNDEFINED_CSN"===a.csn)a.csn=g.WF();else{var b=g.WF(),c=g.VF();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.aC("combine_ve_grafts")?MP(KP(),e,c):g.eC(g.oG)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.sG(b,c)}};
c3a=function(a,b){this.yd=a;this.policy=b;this.playbackRate=1};
d3a=function(a,b){var c=Math.min(2.5,nS(a.yd));a=qZ(a);return b-c*a};
f3a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.Hl)return Math.ceil(a.policy.Hl*b);a.policy.bl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/oS(a.yd);c=Math.max(.9*(d-3),nS(a.yd)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0e&&(a=e);return Infinity>a?a/1E3:a};
sZ=function(a,b,c,d,e){this.Aa=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Yd;this.D=null;this.C=0};
i3a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.xn(d)||c&&c.Pa===d?(b.G=!a.xn(d),b.ma=!a.xn(d)):(b.G=!0,b.ma=!0)}};
k3a=function(a,b,c,d,e){if(!b.j.eg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof tZ))a:{if(b.C.length&&(d=b.C[0],d instanceof uZ&&d.ih&&d.Uh)){d=!0;break a}d=!1}d||a.policy.j||vZ(b);return c}var f=wZ(b,c);if(!isNaN(f))return f;if(a.Aa.NO(1E3*c))return c;e.DI||(b.Hk(),a.Aa.eK(!0));return d&&(a=FL(d.df(),c),!isNaN(a))?(xZ(b,a+j3a),c):xZ(b,c)};
n3a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Za||g.Xf(function(){yZ(a)});
else{if(a.Tf()&&a.j){var e=l3a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.Xf(function(){a.Aa.va("seekreason",{reason:"behindMinSq",tgt:e});m3a(a,e)});
return}}c?a.videoTrack.ma=!1:a.audioTrack.ma=!1;var f=a.policy.yx||!a.B;0<=wZ(a.videoTrack,a.j)&&0<=wZ(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Aa.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.Xf(function(){if(a.B||!a.policy.Za)yZ(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.ja.seekCount?(a.seekCount++,a.Aa.va("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Aa.va("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,zZ(a.Aa,h+.1,{Iv:!0,zd:"chunkSelectorSynchronizeMedia",iq:!0})))}}})}};
l3a=function(a,b,c){if(!a.Tf())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.wi(a.j);return(c.xn(a.manifest.Ze)||b.Pa===a.manifest.Ze)&&da.K.length){var d=new Uint8Array(2*a.K.length);d.set(a.K);a.K=d}q3a(a,Math.ceil(b)-Math.ceil(a.Z));q3a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.G/1024)))}if(a.policy.j){d=b-a.Z;var e=c-a.G;a.Xb=e;a.Ta=Math.max(a.Ta,e/(d+.01)*1E3)}a.Z=b;a.G=c;a.ra&&c>a.ra&&p3a(a)};
q3a=function(a,b){for(;31>=5;a.K[a.Xa++]=BZ[b]};
r3a=function(a){return a.K?g.NO(a.K.subarray(0,a.Xa)):""};
s3a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
EZ=function(a){a.isActive&&(a.isActive=!1)};
FZ=function(a,b){CZ.call(this,a,b);this.qb=this.zb=!1;this.ma=this.W=Infinity;this.Ka=NaN;this.ub=!1;this.Za=NaN;this.ac=0;this.SC=b.SC||1;this.sQ=b.sQ||this.SC;this.Tk=b.Tk;this.Pa=b.Pa;this.Yg=b.Yg;t3a(this);this.SQ(this.j);this.Na=(this.Za-this.j)/1E3};
GZ=function(a,b,c){a.Mq||(b=Math.max(b,.01),jS(a.yd,b,c,b))};
u3a=function(a,b){return b?a.zI()?!0:2048<=b:!1};
v3a=function(a){return(a.D-a.j)/1E3};
t3a=function(a){a.Ka=a.j+1E3*a.snapshot.delay;a.ub=!1};
y3a=function(a,b){if(a.Tk&&void 0!==a.Pa&&void 0!==a.Yg){var c=Math,d=c.min,e=a.W;var f=a.Tk;var h=a.j;if(w3a(f,a.Pa))f=b;else{var l=0;f.ej&&(l=.2);f=h+1E3*(f.Gj+l)}a.W=d.call(c,e,f);c=Math;d=c.min;e=a.ma;f=a.Tk;h=a.j;l=x3a(f,a.Pa,a.Yg);2!==l&&(b=l?b:h+1E3*f.Gj,f.ej&&(b+=1E3*f.Gj));a.ma=d.call(c,e,b);a.W<=a.j?t3a(a):(a.Ka=a.W,a.ub=!0)}};
z3a=function(a){a.Tk&&y3a(a,a.now());return a.ub};
A3a=function(a,b){if(b+1<=a.totalLength){var c=IO(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=IO(a,b++);else if(2===c)c=IO(a,b++),a=IO(a,b++),a=(c&63)+64*a;else if(3===c){c=IO(a,b++);var d=IO(a,b++);a=IO(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=IO(a,b++);d=IO(a,b++);var e=IO(a,b++);a=IO(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),eHa(a,c,4)?a=fHa(a).getUint32(c-a.C,!0):(d=IO(a,c+2)+256*IO(a,c+3),a=IO(a,c)+256*(IO(a,c+
1)+256*d)),b+=5;return[a,b]};
HZ=function(a){this.Hb=a;this.j=new EO};
IZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.zA=this.rO=!1;this.pg=null};
B3a=function(a){return g.Kr(a.info.fb,function(b){return 3===b.type})};
C3a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Hb=c;this.status=0;this.j=new EO;this.B=0;this.isDisposed=this.G=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.rA()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.WD)();f-e.D>e.policy.j&&(e.Hb.It(f,e.B),e.D=f)},function(){},d.body||null)};
D3a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
nRa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=JZ.Xt("woe");d=new g.zO(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;JZ.As(c,Math.ceil(b.byteLength/16));return f.return(e)})};
uRa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=JZ.Xt("wod");d=new g.zO(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;JZ.As(c,Math.ceil(b.byteLength/16));return f.return(e)})};
E3a=function(a,b){var c=this;this.j=a;this.Hb=b;this.loaded=this.status=0;this.error="";a=ZQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new EO;this.pF().then(function(){c.Hb.er()},function(d){c.error=""+d||"unknown_err";
c.Hb.er()})};
G3a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Hb=c;this.W=d;this.status=0;this.response=void 0;this.Z=this.B=0;this.K=this.N=!1;this.errorMessage="";this.ra=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.isDisposed()?e.C.cancel().catch(function(){}):(e.G=f.headers,e.Hb.Aw(),F3a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.ma=function(f){var h=(0,g.WD)();e.isDisposed()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),F3a(e),f=(0,g.WD)(),f-e.Z>e.policy.j&&(e.Z=f,e.Hb.It(h,e.B))))};
this.onError=function(f){e.errorMessage=String(f);e.N=!0;e.onDone()};
this.j=new EO;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
F3a=function(a){a.C.read().then(a.ma,a.onError).then(void 0,bqa)};
H3a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Hb=b;this.B=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.rA(f)};
a=nP(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",nP(function(f){d.Vf(f)}),!1)};
I3a=function(a,b,c,d,e){if(mQ(a.base))return new E3a(a,c);a=a.Oe();return d?mMa()?new C3a(a,b,c,e):new G3a(a,b,c,e):new H3a(a,c,e)};
KZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Hb=a;this.policy=b;this.ge=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Bw=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.bv(this.oba,this.policy.rj,this)};
J3a=function(a){a.Hb.Xs()||(a.resource.Z=(0,g.WD)(),a=LZ(a),a.C=(0,g.WD)(),a.started+=1)};
K3a=function(a,b,c){a.timing.CP((0,g.WD)(),b,c);if(!a.Hb.Xs()&&(b=a.resource,b.B=0,b.G=0,b.K=0,QNa(LZ(a)),null!=(b=a.Bw)&&(a=a.ge.base,!((0,g.WD)()this.policy.gA?!1:!0:!1)c=null,this.policy.oz&&
this.policy.Pj?c=[1]:h&&(c=[]),null!=c&&(this.policy.GB&&c.push(2),this.ge.set("defsel",c.join(",")));this.Gd=new KZ(this,this.policy,this.ge,this.info.resource,this.timing,this.logger,d,p);this.JE=f||null;this.zA=M3a(this);J3a(this.Gd);d=void 0;if(this.policy.mC||this.zl||this.policy.Ba)d={method:"POST"},f=(0,g.OZ)([120,0]),p={},this.policy.Rq&&this.Uh&&(p.videoPlaybackUstreamerConfig=this.Uh),this.policy.Ba&&(c=this.info.D)&&Object.assign(p,c),0a.j||c.push(d)}return c};
b4a=function(a,b,c){b.push.apply(b,g.oa($3a[a]||[]));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.oa(a4a[a]||[]))};
g4a=function(a,b){var c=LT(a),d=a.U().G;if(QZ&&!d.B)return QZ;var e=[],f=[],h={},l=[].concat(g.oa(c4a));a.L("html5_early_media_for_drm")&&(l=l.concat(d4a),a.L("allow_vp9_1080p_mq_enc")&&l.push(e4a));var m=[].concat(g.oa(f4a));c.Z&&(m[0]=["141"]);l=g.u(l);for(var n=l.next();!n.done;n=l.next()){var p=!1;n=g.u(n.value);for(var q=n.next();!q.done;q=n.next()){q=q.value;var r=V3a(q);if(r&&r.video&&!(sL(r)&&!c.Fa&&r.video.j>c.jj)){var t=g.SJ(a.U().experiments,"html5_drm_byterate_soft_cap");0t||(p?(e.push(q),b4a(q,e,a)):(r=dQ(c,r,d),!0===r?(p=!0,e.push(q),b4a(q,e,a)):h[q]=r))}}}m=g.u(m);for(l=m.next();!l.done;l=m.next())for(l=g.u(l.value),p=l.next();!p.done;p=l.next())if(p=p.value,(n=X3a(p))&&n.audio&&(a.L("html5_onesie_51_audio")||!HBa(n)&&!tL(n)))if(n=dQ(c,n,d),!0===n){f.push(p);b4a(p,f,a);break}else h[p]=n;c.B&&b("orfmts",h);QZ={video:e,audio:f};d.B=!1;return QZ};
i4a=function(a){return{P_:ZO(a,1,h4a),Yba:WO(a,2)}};
j4a=function(a){return{OI:TO(a,1)}};
h4a=function(a){return{clipId:WO(a,1),Zp:XO(a,2,k4a),BP:XO(a,3,j4a)}};
k4a=function(a){return{K0:WO(a,1),zZ:TO(a,2),f8:TO(a,3),YX:TO(a,4),ZX:TO(a,5),AZ:TO(a,6)}};
l4a=function(a){return{type:TO(a,1),scope:TO(a,2),value:VO(a,3),sendByDefault:UO(a,4)}};
m4a=function(a){TU.call(this,"sabr");this.Hb=a};
RZ=function(a,b,c,d,e,f,h){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Hb=e;this.logger=new g.SU("sabr");this.zl=new HZ(this);this.Aba=new m4a(this);this.gg=new vY(this);this.state=1;this.c_=!1;this.UQ=0;this.clipId="";this.policy.gy?this.Ie=new PZ(this,f):this.Ie=new FZ(this,f);e=this.policy;e=KNa(b.resource,n4a(b,e,d),e);b.Pv()&&e.set("probe","1");this.ge=e;this.ge.set("rn",""+this.Aq());d1a(this.gg,c,a);this.Gd=new KZ(this,this.policy,this.ge,b.resource,this.Ie,this.logger,d,
h,this.policy.enableServerDrivenRequestCancellation);J3a(this.Gd);a={method:"POST"};a.body=b.C;try{this.xhr=I3a(this.ge,this.policy.N,this.Ie,ZR,a),this.Gd.B.start()}catch(l){g.fG(l)}};
o4a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.TQ)?0:f.items)for(a=g.u(a.TQ.items),f=a.next();!f.done;f=a.next())f=f.value,ba.C&&(a.C=NaN,a.D=NaN);if(a.j&&a.j.Pa===d){e=a.j;var f=e.Tg,h=c.Et(f);d=b.fb[0].Pa;a.va("sdai",{onqevt:f.event,sq:d,gab:h});if(h)"predictStart"!==f.event?e.CD?UZ(a,4,"cue"):(a.C=b.fb[0].Pa,a.D=b.fb[0].D,a.va("sdai",{joinad:a.B,sg:a.C,st:a.D.toFixed(3)}),a.Z=Date.now(),UZ(a,2,"join"),c.dI(e.Tg)):(a.N=b.fb[0].Pa+
Math.max(Math.ceil(-f.j/5E3),1),a.va("sdai",{onpred:b.fb[0].Pa,est:a.N}),a.Z=Date.now(),UZ(a,3,"predict"),c.dI(e.Tg));else if(1===a.B){b=b.fb[0].D;var l;(null==(l=a.G)?0:l.kN(b))?(B4a(a.Aa,b,b,d),UZ(a,4,"sk2had")):UZ(a,5,"nogab")}}else 1===a.B&&UZ(a,5,"noad")}};
E4a=function(a,b,c){return 1===a.B||2===a.B||0!==a.B&&b===a.Ba&&(a=D4a(a.W),c>(a?a.Pa:-1))?!1:!0};
F4a=function(a,b,c){return(0>c||c===a.C)&&!isNaN(a.D)?a.D:b};
G4a=function(a,b){if(a.j){var c=a.j.Tg.ai-(b.startTime+a.K-a.j.Tg.startSecs);0>=c||(c=new yQ(a.j.Tg.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Tg.context,a.j.Tg.identifier,"stop",a.j.Tg.j+1E3*b.duration),a.va("cuepointdiscontinuity",{segNum:b.Pa}),TZ(a,c,b.Pa))}};
UZ=function(a,b,c){a.B!==b&&(a.va("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
VZ=function(a,b,c,d){(void 0===d?0:d)?UZ(a,1,"sk2h"):0a.policy.jj,l=e<=a.policy.jj?sL(d):rL(d);if(!f||h||l)c[e]=d}return c};
c_=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.WD)();c=g.vt(c,function(r){if(r.Ob>this.policy.Ob)return!1;var t=this.manifest.j[r.id];return $Z(this.G).get(r.id)>d?!1:4=r.video.width&&480>=r.video.height}))}0b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(0c.tM.video.width?(g.Hb(e,b),b--):g_(a,c.aM)*a.policy.K>g_(a,c.tM)&&(g.Hb(e,b-1),b--);var q=e[e.length-1];a.Za=!!a.C&&!!a.C.info&&a.C.info.tb!==q.tb;a.logger.debug(function(){return"Constraint: "+$P(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+AL(q)});
a.D=e;a.Ua.clear();c=!1;for(b=0;bd};
b_=function(a){if(!a.B||!a.policy.D&&!a.B.info.Kc){var b=a.K.j;a.B&&a.policy.qb&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
a.B=a.manifest.j[b[0].id];if(1a.j.j:X4a(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}};
d_=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+AL(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=rZ(a.Ea),d=g_(a,a.B.info),e=c/a.policy.Z-d;0=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+AL(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+$P(a.j)});
a.Z=b}};
L4a=function(a){var b=a.policy.Z,c=rZ(a.Ea),d=c/b-g_(a,a.B.info);b=g.Fb(a.D,function(e){return g_(this,e)b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+AL(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
M4a=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if("f"===d.info.tb||b.includes(xL(d.info,a.manifest.yc)))return d;for(var f={},h=0;h=n+100?h=!0:p+100=f){var n=0;if(a.hd){var p=ZY(a.hd,1E3*l);p&&(n=p.mm/1E3)}p=Object.assign({},a.Td[e]);var q=a.Td[e].formatId;q=a.manifest.N.get(q.itag+";"+(q.lmt||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.wi(f+.1-n);var r=q.index.getStartTime(l)+n,t=l+ +(.1=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Yn,h=b.Si;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Yn=c.Yn;b.Dw=c.durationMs;b.Si=c.Si;c.formatId=a;c.startTimeMs=e;c.Ew=e;c.durationMs=d-e;c.Dw=c.durationMs;
c.Yn=f;c.Si=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Dw=b.durationMs);return!1};
d5a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.yc||b.lmt===c.lmt};
h5a=function(a,b,c){if(a.logger&&a.policy.Il){for(var d=[],e=0;e=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.j.getLength())throw Error();return IO(a.j,a.offset++)};
z5a=function(a,b){b=void 0===b?!1:b;var c=y5a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=y5a(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+y5a(a),d*=128;return b?c:c-d};
A5a=function(a){try{var b=z5a(a,!0),c=z5a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
B5a=function(a){for(var b=new n_(a),c=-1,d=0,e=0;!d||!e;){var f=A5a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.Vl()}else if(186===h){if(2!==f)return;e=b.Vl()}374648427===h?c=b.Vl()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=hHa(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new EO([b]);FO(d,a);return d};
D5a=function(a,b,c){var d=this;this.Aa=a;this.policy=b;this.K=c;this.logger=new g.SU("dash");this.B=[];this.j=null;this.Ba=-1;this.W=0;this.Fa=NaN;this.ma=0;this.C=NaN;this.Z=this.Na=0;this.Xa=-1;this.Ka=this.G=this.D=this.Ea=null;this.bb=this.Ua=NaN;this.N=this.ra=this.Za=this.ib=null;this.qb=!1;this.Ta=this.timestampOffset=0;this.Bd={wW:function(){return d.B}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Na&&a.va("atv",{ap:this.policy.Na});this.N=new k5a(this.policy,e,function(h,l,m){o_(a,new m_(d.policy.D,2,{OE:new x5a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;1===h?o_(a,new m_(d.policy.D,h)):d.Aa.va("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof k_&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Aa.va("offlinenwerr",{em:l}),C5a(d),o_(a,new m_(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Aa.va("dldbwerr",{em:l}),C5a(d),o_(a,new m_(d.policy.D,4,{oI:!0})))})}};
E5a=function(a){return a.B.length?a.B[0]:null};
L5a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Zb+a.G.B;if(0=Math.abs(e.D-f.D)&&e.Pa===f.Pa?0:yNa(e,f)))||F5a(a,"d")}else if(0=a.Ba&&0===a.W){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8e&&(f=-1)}else{h=new n_(h);for(m=l=!1;;){n=h.Vl();var p=A5a(h),q=p.id;p=p.size;if(!(0f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.Vl()+p);if(160===q){0>f&&(e=f=h.Vl()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ba=f;a.W=e-f}if(a.Ba>d)break;a.Ba?(d=I5a(a,a.Ba),d.G&&J5a(a,d),G5a(a,b,d),K5a(a,d),a.Ba=0):a.W&&(d=I5a(a,0>a.W?Infinity:a.W),a.W-=d.j.getLength(),K5a(a,d))}}a.j&&a.j.info.kf&&(K5a(a,a.j),a.j=null)};
H5a=function(a,b){!b.info.j.hm()&&0===b.info.Zb&&(g.uL(b.info.j.info)||b.info.j.info.Pe())&&pOa(b);if(1===b.info.type)try{J5a(a,b),M5a(a,b)}catch(e){g.eG(e);var c=gR(b.info);c.hms="1";a.Aa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.lO(b);a.N&&p5a(a.N,b);if(c.eg()&&a.policy.j)a:{a=a.Aa.manifest;b=b.info.clipId;c=wL(c.info,a.yc);if(b){var d=KOa(a,c);if(a.Fa[d])break a;a.Fa[d]=b}a.Ea.push(c)}};
C5a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
N5a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0);
a.j&&(b+=a.j.j.getLength());return b};
O5a=function(a){if(a.ra&&!a.policy.Io){var b=a.Aa;b.manifest.isManifestless&&IR(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.ma:NaN;p_(a)};
I5a=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=iOa(c,b);a.j=c[1];return c[0]};
J5a=function(a,b){b.j.getLength();var c=wR(b);if(GBa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new KQ(c);MQ(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;rL(d)&&!GBa(d)&&(d=wR(b),(new KQ(d)).Cn(),QQ([408125543,374648427,174,224],21936,d));b.info.j.info.dh()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.uL(d.info)?d.B=dNa(c):d.info.Pe()&&(d.B=nNa(c))));
b.info.j.info.Pe()&&b.info.dh()&&(c=wR(b),(new KQ(c)).Cn(),QQ([408125543,374648427,174,224],30320,c)&&QQ([408125543,374648427,174,224],21432,c));if(a.policy.aC&&b.info.j.info.Pe()){c=wR(b);var e=new KQ(c);if(MQ(e,[408125543,374648427,174,29637])){d=PQ(e,!0);e=e.start+e.pos;for(var f=0;f