+e&&(h=-1)}else{f=new MU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=Tya(p,!0),t=Tya(p,!1);var u=r;var x=t}catch(B){x=u=-1}p=u;var y=x;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.U=e-h}if(a.ma>d)break;a.ma?(d=Wya(a,a.ma),d.u&&!d.info.i.Gg()&&Xya(a,d),Vya(a,b,d),SU(a,
+d),a.ma=0):a.U&&(d=Wya(a,0>a.U?Infinity:a.U),a.U-=d.i.totalLength,SU(a,d))}}a.i&&a.i.info.Nd&&(SU(a,a.i),a.i=null)};
+RU=function(a,b){!b.info.i.Gg()&&0===b.info.zb&&(g.BD(b.info.i.info)||b.info.i.info.De())&&HD(b);if(1===b.info.type)try{Xya(a,b),Zya(a,b)}catch(d){g.Tx(d);var c=OC(b.info);c.hms="1";TU(a.K,!0,"fmt.unparseable",c||{})}b.info.i.wB(b);a.u&&Mya(a.u,b)};
+$ya=function(a){var b=a.l.reduce(function(c,d){return c+d.i.totalLength},0);
+a.i&&(b+=a.i.i.totalLength);return b};
+UU=function(a){return g.Oe(a.l,function(b){return b.info})};
+Wya=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=zD(c,b);a.i=c[1];return c[0]};
+Xya=function(a,b){var c=xD(b);if(!a.policy.Vo&&SD(b.info.i.info)&&"bt2020"===b.info.i.info.fb().primaries){var d=new aC(c);cC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;RD(d)&&!SD(d)&&(d=xD(b),iC(new aC(d)),hC([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.u&&(g.BD(d.info)?d.u=oja(c):d.info.De()&&(d.u=qja(c))));b.info.i.info.De()&&
+b.info.isVideo()&&(c=xD(b),iC(new aC(c)),hC([408125543,374648427,174,224],30320,c)&&hC([408125543,374648427,174,224],21432,c));if(a.policy.uh&&b.info.i.info.De()){c=xD(b);var e=new aC(c);if(cC(e,[408125543,374648427,174,29637])){d=fC(e,!0);e=e.start+e.i;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=b.Fc(),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.setUint32(b.Yb,e))}}if(b=a.va&&!!a.va.C.G)if(b=c.info.isVideo())b=GD(c),h=a.va,VU?(l=1/b,b=WU(a,b)>=WU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&aza(c)&&(b=a.va,VU?(l=GD(c),h=1/l,l=WU(a,l),b=WU(b)+h-l):b=b.getDuration()-
+a.getDuration(),b=1+b/c.info.duration,OB(xD(c),b))}else{h=!1;a.J||(HD(c),c.l&&(a.J=c.l,h=!0,QC(c.info,c.l),l=c.info.i.info,f=xD(c),g.BD(l)?YB(f,1701671783):l.De()&&hC([408125543],307544935,f)));if(f=l=FD(c))f=c.info.i.info.De()&&160===uD(c.i,0);if(f)a.Y+=l,a.B=NaN;else{if(a.policy.En){var n;e=a.K;f=CD(c)/1;isNaN(e.timestampOffset)&&bza(e,f-Math.min(f,e.policy.Jh));e=n=f-e.timestampOffset;if(0<=a.B&&6!==c.info.type){f=n-a.B;var p=f-a.Aa;d=c.info.Ka;var r=a.La?a.La.Ka:-1,t=a.Ga?a.Ga:-1,u=a.Da?a.Da:
+-1;m=a.policy.dd&&f>a.policy.dd;var x=a.policy.cd&&p>a.policy.cd;1E-4m&&d>a.Ea)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),OB(xD(c),
+d),d=FD(c),n=l-d,l=d)));a.Aa=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;DD(c,e)?(isNaN(a.xa)&&(a.xa=e),a.Y+=l,a.B=e+l):(l=OC(c.info),l.smst="1",TU(a.K,!0,"fmt.unparseable",l||{}))}a.La=c.info;a.Da=FD(c);c.B&&(a.Ga=c.B);if(h&&a.J){h=cza(a,!0);RC(c.info,h);a.i&&RC(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())RC(l.value,h);(c.info.Nd||a.i&&a.i.info.Nd)&&6!==c.info.type||(a.X=h,b=a.K,b.i.isManifestless&&dza(b,h,!!a.C.info.video),a.policy.Aa||eza(a))}}Zya(a,c);a.timestampOffset&&ED(c,
+a.timestampOffset)};
+SU=function(a,b){if(b.info.Nd){a.Pa=b.info;if(a.J){var c=cza(a,!1);a.K.uC(a.C,c);a.X||a.policy.Aa||eza(a);a.X=null}QU(a)}a.u&&Mya(a.u,b);if(c=PU(a))if(c=AD(c,b,a.policy.wj)){a.l.pop();a.l.push(c);return}a.l.push(b)};
+QU=function(a){a.i=null;a.ma=-1;a.U=0;a.J=null;a.xa=NaN;a.Y=0;a.X=null};
+Zya=function(a,b){if(a.C.info.Jd){if(b.info.i.info.De()){var c=new aC(xD(b));if(cC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=fC(c,!0);c=16!==d?null:mC(c,d)}else c=null;d="webm"}else b.info.K=Oya(xD(b)),c=Pya(b.info.K),d="cenc";c&&c.length&&(c=new KU(c,d),c.De=b.info.i.info.De(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.Ii&&b.l&&b.l.u&&(c.i=b.l.u),a.K.fp(c))}};
+eza=function(a){var b=a.J,c=JB(b);c&&(c.startSecs+=a.xa,a.K.Cx(a.C,c,b.i))};
+cza=function(a,b){var c,d=a.J;if(c=JB(d))c.startSecs+=a.xa;if(d.data["Stitched-Video-Id"]||d.data["Stitched-Video-Cpn"]||d.data["Stitched-Video-Duration-Us"]||d.data["Stitched-Video-Start-Frame-Index"]||d.data["Serialized-State"]){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.q(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,
+-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.q(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}e=new Qya(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new zB(d.i,a.xa,b?d.zi:a.Y,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
+aza=function(a){return a.info.i.Gg()&&a.info.Ka===a.info.i.index.getLastSegmentNumber()};
+WU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.C.G&&b&&(b+=a.C.G.i);return b+a.getDuration()};
+fza=function(a,b){0>b||(a.l.forEach(function(c){ED(c,b)}),a.timestampOffset=b)};
+XU=function(a,b){this.info=a;this.callback=b;this.state=1;this.K=!1;this.B=0;this.C=!1;this.i=null};
+gza=function(a){return g.ym(a.info.i,function(b){return 3===b.type})};
+YU=function(a,b){var c=a.state;a.state=b;a.sz();a.callback&&a.callback(a,c)};
+ZU=function(a,b){b&&a.state=b&&(e.l.pop(),e.B-=FD(l),f=!0)}f&&(e.G=0c?sU(a,d):a.l=a.i.Wl(b-1,!1).i[0]};
+lV=function(a,b){var c;for(c=0;c=a.U:c};
+tza=function(a){var b;return gV(a)||!(null===(b=PU(a.B))||void 0===b||!b.info.u)};
+fV=function(a){var b=[],c=cV(a);c&&b.push(c);b=g.qb(b,UU(a.B));g.Cb(a.u,function(d){g.Cb(d.info.i,function(e){d.K&&(b=g.Po(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.zb>=e.range.start+e.zb&&f.range.start+f.zb+f.l<=e.range.start+e.zb+e.l:f.Ka===e.Ka&&f.zb>=e.zb&&(f.zb+f.l<=e.zb+e.l||e.Nd))}));
+(LC(e)||4===e.type)&&b.push(e)})});
+a.l&&!xja(a.l,g.eb(b),a.l.i.Gg())&&b.push(a.l);return b};
+qza=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:qza(a,c?b:0)?a[b].startTime:NaN};
+mV=function(a){return!(!a.l||a.l.i===a.i)};
+nV=function(a){return mV(a)&&a.i.Be()&&a.l.i.info.Ibb&&a.B=d.totalLength&&(c=sD(d),c=EB(c),yz(c)?a.ea():c="")}if(c)return b=rV(a),(0,g.P)(),b.started=0,b.timedOut=0,b.i=0,a.info.Ti(a.l,c),3;c=b.Jo();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.OC())return a.lastError="net.closed",5;Kza(a,!0);if(!d&&a.i&&(d=a.i.Gd,d.length&&!yD(d[0])))return a.lastError="net.closed",
+5;var e=gza(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=gza(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Uo&&(e=b);b=a.timing;d=(0,g.P)();e=e?Number(e):0;if(!b.va){b.va=!0;if(!b.dk){hU(b,d,c);jya(b,d,c);var f=dU(b);if(2===f&&e)fU(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.Y.i||!b.schedule.Y.i)&&!b.Ga&&iU(b)&&fU(b,e,c),iU(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.Fg(1,b.u/c),zF(e));c=b.schedule;d=(d-b.i)/1E3||.05;e=b.Y;f=b.Oh;c.G.Fg(d,b.l/d);c.B=uF();f||c.l.Fg(1,
+d-e)}b.deactivate()}b=rV(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;a.info.l.l=0;(0,g.P)()b.indexOf("googlevideo.com")||(Mza({primary:b}),Lza=(0,g.P)());b=a.timing;a.ea("Succeeded, rtpd="+(1E3*b.Y+b.i-Date.now()).toFixed(0));return 4};
+sV=function(a){var b;a.ea("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ka)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.dk){hU(c,d,1024*c.ma);var e=(d-c.i)/1E3;if(2!==dU(c))if(iU(c)){c.u+=(d-c.B)/1E3;var f=c.schedule,h=c.l;h=Math.max(h,2048);f.i.Fg(1,c.u/h);zF(f)}else iya(c)||c.dk||(f=c.schedule,f.J.Fg(1,e),zF(f)),c.xa=d;f=c.schedule;h=c.Y;var l=c.Oh;f.G.Fg(e,c.l/e);f.B=uF();l||f.l.Fg(1,
+e-h);Dka(c.schedule,(d-c.B)/1E3,0)}}else(0,g.P)();"net.nocontent"!==a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError?(c=rV(a),c.timedOut+=1):(c=rV(a),c.i+=1),a.timing.l||a.info.l.l++);YU(a,5)};
+Oza=function(a,b){b&&(b=rV(a),b.l+=1);uV(a);a.lastError="net.timeout";sV(a)};
+uV=function(a){a.ea();a.xhr&&a.xhr.abort();a.timing.deactivate()};
+Jza=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Ws();return(!a.xhr.xr()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)};
+Gza=function(a){if(tB(a.l.ih))return new zza(a.l,a);var b=g.tC(a.l);return a.policy.Ea&&(a.policy.Kp&&!isNaN(a.info.ye)&&a.info.ye>a.policy.Nk||a.C?0:NA())?new pV(b,a.policy.B,a):new qV(b,a)};
+Kza=function(a,b){if(b||a.xhr.Nm()&&a.xhr.dg()&&!Jza(a)&&!a.C){if(!a.i){if(a.xhr.xr())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Jo();a.i=new iza(a.info.i,c)}for(;a.xhr.dg();)jza(a.i,a.xhr.oi(),b&&!a.xhr.dg())}};
+Dza=function(a){if(!a.policy.B.Jf||!isNaN(a.info.ye)&&0a.info.i[0].Ka)return!1}return!0};
+vV=function(a,b,c,d,e){this.ma=a;this.policy=b;this.schedule=c;this.K=d;this.Y=e;this.X=NaN;this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1;this.U=NaN};
+Pza=function(a,b,c,d,e){return b.Va&&b.Pa&&3===mB(b)?new vV(a,b,c,d,e):null};
+Qza=function(a,b){if(a.policy.Gn){var c=b.info.Ib,d=xF(a.schedule);b=b.index.Ag;c=Math.max(1,d/c);a.U=Math.round(1E3*Math.max(((c-1)*b+a.policy.K)/c,b-a.policy.Ob));a.ea()}};
+Tza=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.G,f=e>=a.policy.Ah,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e=a.policy.Ob&&!a.u;if(!f&&!c&&Rza(a,b))return NaN;c&&(a.u=!0,a.ea());a:{d=h;c=Date.now()/1E3-(a.K.Yf()||0)-a.J.l-a.policy.K;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.ea();wV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Nb;d=a.policy.Lk&&!a.policy.Kb||!a.policy.Tk&&0=a.policy.Ok)return!1;if(!b.l)return!0;d=b.l;if(!AC(d.i.l,a.policy))return!1;4===d.type&&d.i.Be()&&(b.l=g.eb(d.i.Bu(d)),d=b.l);if(!d.u&&!d.i.Vl(d))return!1;var e=a.i.Le||a.i.K;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0=e)return b.U=e,c.U=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(nV(b)&&!a.policy.Ua)return!0;if(d.u||hV(b)&&hV(b)+hV(c)>a.policy.bb)return!1;e=!b.C&&!c.C;
+f=b===a.videoTrack&&a.U;if(!(c=!!(c.l&&!c.l.u&&c.l.Ba}return c?!1:(b=
+b.Qb)&&b.isLocked()?!1:!0};
+cAa=function(a,b,c){if(HV(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.Vd&&a.i.K?b.i.Wl(a.i.Vd,!1):b.i.Fm(Infinity);d.ye=a.ye}else d=b.i.Wl(0,!1);a.C?0===d.ye&&(d.C=a.C.U):d.C=a.Ya}else if(d=b.l,d.i.Be()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.zb?0:d.range.length-(d.zb+d.l),h=d.i;if(mV(b)&&b.i.Be()){var l=Math.min(15,.5*GV(a,b,!0));var m=nV(b)||e<=l||a.l.K;a.ea("ready to adapt: "+m+", upgrade pending: "+nV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
+b.i:(h=d.startTime+bAa,d.l&&(h+=d.duration),sU(b,h),d=b.l,h=d.i));h.Gg()?(f=a.l,c=lU(a.G,h.info.Ib,c.i.info.Ib,e,0h&&(c=d.i.Tp(d,c.range.length-e.l)))),d=c):(0>d.Ka&&(c=OC(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.Ja("nosq",d.G+";"+g.nE(c))),d=h.Or(d));if(a.U)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Gg()?
+(c=lU(a.G,b.i.info.Ib,c.i.info.Ib,0),d=d.i.Tp(d,c)):d=d.i.Or(d);if(a.K&&(c=a.u,e=d.i[0].Ka,c=0>e&&!isNaN(c.B)?c.B:e,e=a.u,h=(0>c||c===e.B)&&!isNaN(e.C)?e.C:d.i[0].C,e=a.K.Aq(h,c,d.i[0].i.info.id,b===a.audioTrack?1:2),0>c&&tya(a.u,0,0,!0),e)){h="decurl_itag"+d.i[0].i.info.kc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.Np&&b.isRequestPending(c-1)){a.Ja("sdai","wt_daistate_on_sg"+(c-1));return}a.Ja("sdai",h);c=d;e&&(c.u=new g.pB(e))}a.policy.Gi&&-1!==d.i[0].Ka&&d.i[0].Kaf)a.policy.Ya&&(f=eya(e.timing),m=e.timing,a.Ja("rqs",g.nE({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.xhr.xr(),d:m.C?m.C.join(""):""}))),e.va&&a.Ja("sbwe3","1",!0);if(!a.Ha()&&2<=e.state)if(f=a.timing,n=e.info.i[0].i,m=!f.l&&n.info.video,n=!f.i&&n.info.audio,3===e.state?m?f.tick("vrr"):n&&f.tick("arr"):4===e.state?m?(f.l=g.tC(e.l),eu(),
+hu(4)):n&&(f.i=g.tC(e.l)):e.Yp()&&m&&(eu(),hu(4)),3===e.state)lV(l,e),UC(e.info)&&yV(a,l,h,!0),a.K&&(l=e.info.Aq())&&a.K.Ti(e.info.i[0].Ka,h.info.id,l),a.fh();else if(3<=e.state&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof tV&&h.B&&Oza(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.ea();h=Hya(a.l,h);l=e.info.range.length-h.iB();h.B=!0;e.info.i[0].i.B=!1;
+f=h.Io(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=sD(l.Gd[0].i);sD(g.eb(l.Gd).i);for(var p=0;ph.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ka===l.i[0].Ka)if(m=h.i.Fd.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ka,h.C=l.i[0].C,yT(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.tB(h.i.Fd)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Ea&&e.Xq()&&!(3<=e.state)&&!zV(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,tB(h.l.i)&&(f=g.$d(g.Xa(e.Yd()),3),a.Ja("dldbrerr",f||"none")),e.canRetry()?(f=(h.info.video&&
+1(0,g.P)()||(e=XC(e.info,!1))&&IV(a,e))}}}},d)};
+eAa=function(a,b){b&&(a.ea(),a.W("videoformatchange",b));a.policy.Kk&&a.l.Pa&&a.W("audioformatchange",Cya(a.l,"a"))};
+zV=function(a,b){try{var c=b.info.i[0].i,d=c.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&d){d.J&&(b.Ha(),3<=b.state||b.Xq(),d.J=!1);b.dB()&&a.Aa.Fg(1,b.dB());var e=b.IE(),f=b.gH(),h=a.i,l;for(l in h.i){var m=h.i[l].index;m.Mj&&(e&&(m.Qr=Math.max(m.Qr,e)),f&&(m.i=Math.max(m.i||0,f)))}}if(b.info.Oh()&&!TC(b.info)){for(var n=g.q(b.vz()),p=n.next();!p.done;p=n.next())RU(d.B,p.value);a.W("metadata",c)}eV(d);return!!d.qg()}catch(r){return r instanceof Error&&(g.Tx(r),b=b.Xr(),b.origin="hrhs",
+TU(a,!0,"fmt.unplayable",b)),!1}};
+KV=function(a){var b=a.mediaSource.i,c=a.mediaSource.l,d=fAa(a);if(d){if(a.policy.rj){if(!b.Ho()){var e=a.audioTrack.qg();e&&JV(a,b,e)}c.Ho()||(b=a.videoTrack.qg())&&JV(a,c,b)}a.ma||(a.ma=(0,g.P)(),a.ea(),a.policy.Y&&a.Ja("apdps","r."+d))}else{if(a.ma){d=(0,g.P)()-a.ma;e=iV(a.audioTrack,a.currentTime);var f=iV(a.videoTrack,a.currentTime);a.ea();a.policy.Y&&a.Ja("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ma=0}if(a.C){d=a.C;e=a.audioTrack;f=iE(a.mediaSource.l.Te());
+if(d.B)d=Tza(d,f);else{if(f=e.qg()){var h=f.l;h&&h.C&&h.l&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.ye&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=Date.now()/1E3,d.G=d.startTimeSecs,d.C=d.l.startTime,d.ea())}d=NaN}d&&a.W("seekplayerrequired",d,!0)}d=!1;gAa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=Date.now(),e.tick("vda"),JA("vda","video_to_ad"),e.u&&(eu(),hu(4))));if(a.mediaSource&&!a.mediaSource.We()&&(gAa(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=Date.now(),d.tick("ada"),
+JA("ada","video_to_ad"),d.B&&(eu(),hu(4))),d=!0),!a.Ha()&&a.mediaSource)){!a.policy.xa&&gV(a.videoTrack)&&gV(a.audioTrack)&&tE(a.mediaSource)&&!a.mediaSource.eg()&&(e=cV(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ea(),e=a.mediaSource,tE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.qe.webkitSourceEndOfStream(e.qe.EOS_NO_ERROR)),e=a.schedule,Eka(yF(e)),e.C=uF()));e=a.policy.Pk;f=a.policy.Rp;d||!(0c*(10-e)/nU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ka:-1);e=!!f}if(e)return!1;e=d.info;f=cV(b);!f||f.Nd||MC(f,e)||c.abort();!c.ct()||qE()?c.PD(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.ct()&&a.Ja("ctu","ct."+qE()+";prev_c."+c.ct()+";curr_c."+e.i.info.containerType);f=e.i.G;a.policy.Bj&&f&&(e=0+f.duration,f=-f.i,0===c.ow()&&e===c.bB()||c.cD(0,e),f!==
+c.Lc()&&(c.rr(f),VU&&fza(a.audioTrack.B,c.nB())));if(a.i.u&&0===d.info.zb&&(g.BD(d.info.i.info)||a.policy.cq)){if(null==c.Ho()){e=cV(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var h=0;he)){a:if(a.policy.Tc&&(!d.info.zb||d.info.Nd||10>d.info.C)&&a.Ja("sba",c.Cb({as:IC(d.info)})),e=d.u?d.info.i.i:null,f=sD(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=hAa(a,c,f,d.info,e),"s"===e)a.Pa=0,e=!0;else{a.policy.zj||
+(c.abort(),rU(b));if("i"===e||"x"===e)iAa(a,"checked",e,d.info);else{if("q"===e)if(d.info.isVideo()?(e=a.policy,e.G=Math.floor(.8*e.G),e.X=Math.floor(.8*e.X),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.eb=Math.floor(.8*e.eb),e.C=Math.floor(.8*e.C)),a.policy.Bb)DU(a.l,d.info.i);else if(!c.eg()&&!a.mediaSource.isView&&c.Vu(Math.min(a.currentTime,d.info.startTime),!0,5)){e=!1;break a}a.W("reattachrequired")}e=!1}e=!e}if(e)return!1;b.oi(d);a.ea("Appended "+IC(d.info)+", buffered: "+eE(c.Te()));
+return!0};
+iAa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.C=e,d.i.info.video&&!EU(a.l)&&DU(a.l,d.i)):"i"===c&&(15>a.Pa?(a.Pa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=OC(d);d.mrs=wE(a.mediaSource);d.origin=b;d.reason=c;TU(a,f,e,d)};
+dza=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=VD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!fD(l,b.Ka))l.jz(b),e=!0;else if(d.Ua){e=b;var m=l.Pi(e.Ka);m&&m.startTime!==e.startTime?(l.segments=[],l.jz(e),e=!0):e=!1;e&&(f=b.Ka)}}0<=f&&d.W("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);rya(a.B,b,c,e);a.u.uC(b,c)};
+JV=function(a,b,c){c.info.i.Be();var d=c.info.i.i;if(null==d||b.Ho()===d)return!1;var e=d,f=b.qw();if(a.policy.fg&&f&&b.isView()&&g.BD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=pja(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ja("fenc","1")}f=null;(h=c.info.i.Io(0))&&(f=h.i[0]);a.policy.Ci&&b.abort();d=hAa(a,b,e,f,d);if("s"!==d)return iAa(a,"sepInit",d,c.info),!0;a.ea();return b.eg()};
+hAa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:eE(b.Te()).replace(/,/g,"_"),message:g.$d(g.Xa(f.message),3),track:a.mediaSource?b===a.mediaSource.l?"v":"a":"u"},Uza()),TU(a,!1,"player.exception",b),"q";g.Tx(f)}return"u"}return a.mediaSource.We()?"m":"s"};
+Wza=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.U||a.W("seekplayerrequired",c,d)});
+b.subscribe("ctmp",function(c,d){a.Ja(c,d,!1)});
+b.subscribe("error",function(c,d,e){TU(a,c,d,e)});
+b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
+NU=function(a,b){a.W("localmediachange",b)};
+GV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.G;!a.policy.Ua&&FU(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.eb:a.policy.X));c&&(d+=a.policy.bb);var e=FU(a.l)?b.l?b.l.i.info.Ib:b.i.info.Ib:b.Ib;d/=e;0c&&a.Ja("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
+aAa=function(a){var b=g.Po(a.Ga.Bm(),function(d){return"ad"===d.namespace});
+b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
+jAa=function(a,b){(new oV(b,"cms",null,function(c){for(var d=[],e=0;e=b&&Vza(a,d.startTime,!1)});
+return c&&c.startTime=b.size||(b.forEach(function(c,d){var e=dF(a.l)?d:c;d=new Uint8Array(dF(a.l)?c:d);dF(a.l)&&IAa(d);c=g.$d(d,4);IAa(d);d=g.$d(d,4);a.i[c]?a.i[c].status=e:a.i[d]?a.i[d].status=e:a.i[c]={type:"",status:e}}),a.ea("Key statuses changed: "+JAa(a,",")),PV(a,"onkeystatuschange"),a.status="kc",a.W("keystatuseschange",a))};
+RV=function(a){var b;if(b=a.U&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
+HAa=function(a,b){var c,d;a.status="km";EA("drm_net_s",void 0,a.videoData.bb);if(a.videoData.useInnertubeDrmService()){var e=new g.cx(a.u.qf),f={context:g.Mu(e.config_||g.Nu())};f.drmSystem=KAa[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.$d(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.l)||void 0===
+c?void 0:c.fb())||void 0===d||!d.isHdr());a.videoData.Z("html5_request_only_hdr_or_sdr_keys")&&(f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR");if(!f.context||!f.context.client){a.ea();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.u.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=
+f.context.user||{};f.context.request=f.context.request||{};a.videoData.xa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.xa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.eb&&(f.context.user.kidsParent={oauthToken:a.videoData.eb});if(g.hF(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;md;d++)c[2*d]=''.charCodeAt(d);a=a.u.createSession("video/mp4",b,c);return new TV(null,null,null,null,a)};
+WV=function(a,b){var c=a.G[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c};
+TAa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new NV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new YV(g.S(a,"disable_license_delay"),b,this);break a;default:c=
+null}if(this.J=c)g.F(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.UF,this);this.ea("Created, key system "+this.i.keySystem+", final EME "+iF(this.u.experiments));bW(this,"cks"+this.i.Ue());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ua=new XV(this.videoData.Ob,this.u.experiments),g.F(this,this.Ua))};
+XAa=function(a){var b=VV(a.C);b?b.then(Tr(function(){YAa(a)}),Tr(function(c){if(!a.Ha()){a.ea();
+g.Sr(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ea(),bW(a,"mdkrdy"),a.Y=!0);
+a.X&&(b=VV(a.X))};
+ZAa=function(a,b,c){a.Pa=!0;c=new KU(b,c);a.u.Z("html5_eme_loader_sync")&&(a.G.get(b)||a.G.set(b,c));a.u.Z("html5_process_all_encrypted_events")?dW(a,c):a.u.Z("html5_eme_loader_sync")?dW(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?eW(a):dW(a,c)};
+aBa=function(a,b){if(cF(a.i)&&!a.xa&&(b=Nya(b),0!==b.length)){var c=new KU(b);a.xa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(d){d.createMediaKeys().then(function(e){$Aa(a,e,c)})},null)}};
+$Aa=function(a,b,c){var d=b.createSession(),e=a.l.values[0],f=CAa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);PAa(h,d,a.i.u,f,"playready")});
+d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.Aa=!0,bBa(a,MAa(e,a.Aa)))});
+d.generateRequest("cenc",c.initData)};
+dW=function(a,b){if(!a.Ha()){bW(a,"onInitData");if(g.S(a.u.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.K.get(b.initData);b=a.G.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.G.remove(c);a.K.remove(c)}a.ea();bW(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Ea&&!a.videoData.isLivePlayback)a.u.Z("html5_process_all_encrypted_events")&&eW(a);else{if(!(g.S(a.u.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.De)){a.Ea=
+!0;c=b.cryptoPeriodIndex;var d=b.i;Rya(b);b.De||(d&&b.i!==d?a.W("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.W("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.W("widevine_set_need_key_info",b)}}else a.UF(b)}};
+YAa=function(a){if(!a.Ha())if(g.S(a.u.experiments,"html5_drm_set_server_cert")&&!g.bG(a.u)){var b=a.C.setServerCertificate();b?b.then(Tr(function(c){a.videoData.X&&a.W("ctmp","ssc",c)}),Tr(function(c){a.W("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Tr(function(){fW(a)})):fW(a)}else fW(a)};
+fW=function(a){a.Ha()||(a.Y=!0,a.ea(),bW(a,"onmdkrdy"),eW(a))};
+eW=function(a){if(a.Pa&&a.Y&&!a.va){for(;a.B.length;){var b=a.B[0];if(a.l.get(b.initData))if("fairplay"===a.i.flavor)a.l.remove(b.initData);else{a.B.shift();continue}Rya(b);break}a.B.length&&a.createSession(a.B[0])}};
+bBa=function(a,b){var c=TA("auto",b,!1,"l");if(a.videoData.rf){if(RA(a.U,c))return}else if(XA(a.U,b))return;a.U=c;a.W("qualitychange");a.ea();bW(a,"updtlq"+b)};
+bW=function(a,b){var c=void 0===c?!1:c;a.Ha()||(a.ea(),(a.videoData.X||c)&&a.W("ctmp","drmlog",b))};
+cBa=function(a){var b;if(b=g.it()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.A.TextDecoder?(new TextDecoder).decode(b):g.$a(b),a.W("ctmp","drm",b))};
+gW=function(a,b,c){g.Q.call(this);var d=this;this.videoData=a;this.i=b;this.playerVisibility=c;this.K=0;this.u=this.l=null;this.ma=this.J=this.G=this.B=!1;this.X=this.Y=0;this.U=g.T(this.i.experiments,"html5_delayed_retry_count");this.C=new g.J(function(){return d.W("newelementrequired",!1)},g.T(this.i.experiments,"html5_delayed_retry_delay_ms"));
+g.F(this,this.C)};
+jW=function(a,b,c){var d=!1,e=a.K+3E4<(0,g.P)()||a.C.isActive(),f;if(f=!e)f=a.playerVisibility,f=!!(f.Ce()||f.isInline()||f.isBackground()||f.Lq()||f.Jq());f&&(c.nonfg="paused",e=!0,a.W("pausevideo"));!e&&0=a.i.Ua)return!1;b.exiled=""+a.i.Ua;hW(a,"qoe.start15s",b);a.W("playbackstalledatstart");return!0};
+fBa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
+eBa=function(a){return a.B?!0:a.G||"yt"!==a.i.va?!1:a.videoData.Ya?25>a.videoData.jb:!a.videoData.jb};
+iW=function(a,b){b=void 0===b?!1:b;aI(a.videoData)?a.W("signatureexpiredreloadrequired"):a.i.Z("html5_signature_reload_refactor")?a.B||(a.B=!0,a.W("releasevideo"),b||a.W("signatureexpiredreloadrequired")):a.G||a.W("signatureexpiredreloadrequired")};
+gBa=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.Ki();b.details.merr=c?c.toString():"0";b.details.msg=a.u.Yd()}};
+hBa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
+jBa=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d&&!a.B)return!1;b.details.sts="18802";if(eBa(a))return!c||$H(a.videoData)||a.i.Z("html5_signature_reload_refactor")?(b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.mE("qoe.restart",!1,b)),hW(a,b.errorCode,b.details),iW(a,c)):(a.J=!0,a.W("releaseloader")),!0;6048E5<(0,g.P)()-a.i.bb&&iBa(a,"signature");return!1};
+iBa=function(a,b){try{window.location.reload();hW(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.bG(a.i)&&fBa(a)};
+kBa=function(a,b){a.i.B.B=!1;hW(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.W("formatupdaterequested")};
+kW=function(a,b,c,d){a.W("clienttemp",b,c,(void 0===d?{mD:!1}:d).mD)};
+hW=function(a,b,c){a.W("qoeerror",b,c)};
+lBa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d};
+lW=function(a,b,c){this.i=a;this.X=b;this.l=c;this.Y=this.J=this.K=this.B=this.u=this.G=this.U=this.C=0;this.playbackRate=1};
+nBa=function(a,b,c){!g.S(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.bG(a.i)&&(c=c.compose(mBa(a,b)));return c};
+qBa=function(a,b){return oBa(a).compose(pBa(a,b))};
+oBa=function(a){a=rBa(a);return TA("auto",a,!1,"s")};
+rBa=function(a){var b;a.Z("html5_exponential_memory_for_sticky")?b=.5>BF(a.i.Nb,"sticky-lifetime")?"auto":VA[AF()]:b=VA[AF()];return b};
+sBa=function(a,b){return 1(0,g.P)()-a.G?0:f||0h?a.B+1:0;if(!e||g.bG(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;vBa(a,b.videoData.l);a.l.Ja("dfd",xBa());return!0};
+zBa=function(a,b){return 0>=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.fb()&&32