astroport/doc/Turning the database inside.../fU9hR3kiOK0_data/base.js

7546 lines
1.3 MiB

var _yt_player={};(function(g){var window=this;/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ma,na,pa,qa,ra,sa,ua,va,wa,baa,xa,ya,za,Aa,caa,Ca,Da,Ea,Fa,Ha,Ja,Ka,faa,gaa,haa,Ta,Ua,iaa,jaa,kaa,laa,bb,maa,ib,jb,naa,qb,lb,oaa,ob,paa,qaa,raa,wb,saa,yb,taa,uaa,Bb,Cb,Db,Eb,Ib,Kb,Lb,Tb,Wb,Xb,ac,bc,xaa,cc,dc,mc,nc,pc,zc,Ac,Bc,Fc,Dc,Baa,Eaa,Faa,Gaa,Jc,Kc,Mc,Lc,Pc,Tc,Haa,Iaa,Sc,Vc,Jaa,$c,ad,bd,cd,gd,id,Maa,kd,ld,pd,qd,rd,sd,td,ud,vd,xd,zd,Ad,Cd,Dd,Oaa,Ed,Fd,Gd,Hd,Qaa,Id,Pd,Rd,Ud,Zd,$d,ee,fe,ie,ge,ke,me,le,ve,Wd,Be,ze,Ae,Taa,Ce,Vd,Waa,Ee,Fe,Xaa,Le,Ne,Zaa,Oe,Pe,Qe,Re,Te,Ve,$aa,Se,af,bf,
Ye,ef,df,bba,We,Ue,hf,jf,kf,lf,nf,dba,of,pf,eba,vf,xf,zf,Af,Cf,Df,Ef,Gf,Hf,fba,Jf,Lf,Mf,If,Kf,yf,Ff,hba,Pf,Nf,Of,Rf,gba,Qf,Vf,Xf,iba,jba,kba,lba,mba,nba,oba,pba,qba,dg,Zf,hg,jg,gg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,yg,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,Ng,Lg,Og,rba,Pg,Qg,Rg,Sg,Mg,Tg,Vg,Ug,Wg,Xg,Yg,Zg,$g,ah,bh,ch,dh,gh,ih,hh,jh,kh,uba,wba,xba,zba,mh,nh,oh,qh,rh,xh,yh,Bh,Ch,Dh,Gh,Fh,Hh,zh,Aba,Sh,Th,Uh,Bba,Vh,Wh,Xh,Yh,Zh,$h,ai,Cba,bi,ci,di,Dba,Eba,ei,gi,fi,ii,ji,mi,ki,Gba,li,ni,oi,qi,pi,ri,Hba,si,Jba,Iba,
Kba,vi,Lba,xi,yi,zi,wi,Ai,Mba,Bi,Nba,Di,Rba,Ei,Fi,Gi,Hi,Sba,Ji,Li,Oi,Ri,Ti,Qi,Pi,Ui,Tba,Vi,Wi,Xi,Yi,Zi,Vba,dj,ej,Xba,fj,gj,hj,ij,jj,Yba,lj,mj,nj,oj,qj,pj,Zba,$ba,aca,rj,sj,tj,uj,wj,xj,yj,zj,Aj,vj,Bj,Cj,Dj,bca,cca,Ej,Fj,dca,Gj,Hj,eca,Jj,fca,Kj,Lj,Mj,gca,Nj,Oj,Qj,Sj,Tj,Uj,Vj,Wj,Pj,Rj,ica,Xj,Yj,ak,bk,ck,dk,mca,nca,oca,ek,gk,pca,qca,rca,ik,jk,sca,kk,tca,lk,uca,mk,nk,ok,vca,pk,rk,sk,tk,uk,vk,wk,xk,yk,wca,xca,zk,yca,Bk,Ak,Ek,Fk,Dk,zca,Dca,Cca,Hk,Eca,Fca,Gca,Ica,Hca,Jca,Ik,Kk,Mk,Nk,Ok,Lca,Sk,Tk,Mca,Nca,
Uk,Vk,Wk,Xk,Oca,Yk,Zk,Pca,$k,al,Rca,bl,cl,Sca,el,fl,hl,il,jl,ll,ml,ol,pl,dl,ql,sl,rl,tl,ul,wl,Uca,xl,Tca,yl,zl,Vca,Wca,Bl,Dl,El,Fl,Gl,Cl,Jl,Kl,Hl,Xca,Zca,$ca,Ml,Nl,Ol,Pl,ada,Ql,Rl,Sl,Tl,Ul,Vl,Wl,Xl,$l,Zl,cda,dda,am,cm,Yl,bm,bda,dm,em,fda,gda,hda,ida,im,jm,km,fm,lm,mm,eda,jda,kda,lda,pm,nm,qm,sm,qda,mda,rda,wm,xm,ym,zm,Am,qk,sda,Bm,Cm,tda,uda,vda,wda,xda,Em,Fm,Gm,Hm,Im,Jm,Ada,Bda,Km,Om,Nm,Tm,Um,Wm,Eda,Vm,Ym,$m,Zm,Cda,cn,en,fn,Jda,Ida,gn,hn,jn,kn,ln,nn,pn,Pda,Nda,Oda,Sda,Qda,Rda,qn,Tda,sn,tn,Wda,Vda,
yn,zn,An,Xda,Gn,Hn,Zda,In,Jn,dea,$da,Qn,Rn,Sn,jea,Vn,Wn,Xn,Yn,kea,ao,bo,co,eo,go,ho,io,jo,lo,mo,po,qo,ro,nea,oea,to,uo,vo,yo,wo,zo,Bo,Co,Ao,pea,Fo,Io,qea,So,Ro,tea,uea,Uo,cp,bp,Zo,xea,wea,vp,up,op,Aea,xp,yp,zp,Ap,Dea,Eea,Hp,Ip,Jp,Pp,Qp,Fea,Sp,Up,Rp,Xp,$p,Zp,Yp,bq,gq,hq,iq,jq,pq,nq,qq,rq,sq,vq,uq,Gea,Iea,xq,Jea,Bq,Aq,Lea,Cq,Dq,Mea,Hq,Nea,Oea,Fq,Pea,Jq,Kq,Qea,Nq,Pq,Sq,Rea,Wq,Sea,Yq,Zq,Tea,br,Vea,er,dr,Wea,gr,jr,kr,lr,nr,mr,Yea,qr,rr,sr,tr,ur,wr,yr,zr,Ar,xr,bfa,$ea,Br,Er,Fr,efa,Cr,Dr,Hr,Jr,Kr,Nr,Lr,
Pr,Or,Qr,ffa,Sr,Tr,Wf,Vr,Xr,Zr,$r,as,cs,hfa,gs,hs,is,ks,ifa,ps,os,js,qs,vs,kfa,Yf,Is,Hs,Ks,Gs,Js,lfa,Ms,mfa,nfa,ofa,qfa,Ns,pfa,Os,Ps,Qs,Rs,Us,Vs,rfa,Ys,Zs,$s,Ws,dt,ct,et,ft,ht,it,jt,bt,kt,mt,tfa,ot,ufa,qt,rt,vfa,tt,ut,wfa,wt,xfa,yfa,zfa,Afa,Bfa,xt,zt,Cfa,vt,nt,Dfa,Bt,Ct,Et,Efa,Ft,Gt,Ht,It,Ffa,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Gfa,Zt,$t,Yt,au,bu,cu,du,eu,Hfa,tu,fu,Ifa,ru,Jfa,xu,yu,zu,Au,Bu,Cu,Eu,Fu,Gu,Iu,Hu,Ju,Lu,Ou,Lfa,Pu,Vu,Wu,Yu,Zu,$u,av,bv,cv,dv,ev,Mfa,fv,gv,iv,jv,hv,Nfa,kv,lv,nv,pv,
Ofa,qv,vv,tv,ov,wv,rv,uv,xv,yv,zv,Pfa,Av,Bv,Cv,Dv,Jv,Qfa,Fv,Lv,Nv,Qv,Pv,Hv,Mv,Kv,Rfa,Rv,Tv,Uv,Sfa,Vv,Wv,Ev,Gv,Iv,Ov,Xv,Yv,Zv,aw,$v,Tfa,bw,cw,dw,ew,fw,Ufa,hw,gw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Aw,Cw,Bw,Dw,Ew,Fw,Gw,Hw,Vfa,Wfa,Jw,Lw,Mw,Ow,Qw,Rw,Tw,Uw,Vw,Ww,Xw,Zw,$w,ax,bx,Yw,aga,cx,dx,ex,fx,cga,dga,gx,ega,ix,fga,hx,jx,lx,mx,nx,px,gga,qx,rx,sx,tx,ux,vx,xx,wx,yx,hga,zx,Ax,Bx,Cx,Dx,iga,jga,nga,oga,kga,lga,mga,Ex,Fx,pga,Hx,Ix,Jx,qga,Mx,Nx,rga,sga,Ox,Px,tga,uga,vga,Qx,wga,Vx,Rx,Yx,xga,yga,
Zx,zga,Aga,$x,ay,Bga,by,cy,Cga,Dga,Wx,Ega,dy,Fga,Gga,ey,Hga,Iga,fy,gy,hy,iy,jy,ky,ly,my,ny,py,oy,qy,Jga,sy,ty,uy,vy,wy,yy,zy,Ay,Kga,S,By,Cy,Dy,Ey,Fy,cz,dz,gz,hz,Qy,Vy,Zy,Yy,bz,kz,mz,qz,Ny,My,sz,Xy,Rga,Sga,Tga,uz,vz,xz,yz,zz,Az,Bz,wz,Cz,Uga,Ez,Fz,Xga,Zga,Yga,Hz,Wga,Vga,Gz,Iz,$ga,Jz,aha,cha,bha,dha,Kz,Lz,eha,fha,gha,Mz,Nz,iha,Oz,hha,Pz,Qz,jha,kha,Rz,Tz,Uz,Xz,Wz,lha,Zz,$z,nha,oha,pha,qha,rha,sha,tha,bA,uha,vha,wha,xha,yha,zha,Gha,Hha,Iha,Kha,fA,gA,Lha,iA,jA,kA,mA,nA,hA,oA,lA,qA,rA,tA,sA,uA,vA,xA,yA,
zA,AA,FA,CA,GA,KA,HA,NA,LA,OA,EA,Qha,PA,BA,Rha,RA,UA,TA,WA,XA,SA,YA,ZA,cB,$A,dB,Vha,jB,Xha,lB,mB,pB,Wha,Yha,qB,sB,tB,rB,eB,Zha,uB,oB,xB,$ha,zB,AB,BB,DB,EB,nB,Uha,gB,Tha,fB,HB,wB,aia,MB,NB,OB,PB,hB,QB,RB,kB,FB,SB,iB,bB,eA,dA,aA,WB,VB,XB,U,YB,$B,aC,bC,fC,eC,jC,cia,oC,pC,qC,rC,dia,eia,sC,tC,uC,wC,xC,yC,fia,zC,AC,BC,CC,DC,gia,EC,FC,IC,JC,KC,LC,MC,PC,iia,RC,SC,VC,WC,jia,YC,$C,ZC,kia,XC,lia,mia,nia,oia,pia,qia,aD,ria,sia,tia,bD,cD,gD,fD,iD,dD,jD,kD,lD,eD,mD,hD,nD,oD,qD,pD,rD,sD,xia,tD,uD,vD,yia,BD,CD,AD,
ED,yD,DD,wD,zia,GD,FD,HD,Aia,ID,xD,Bia,JD,KD,LD,MD,ND,OD,PD,QD,XD,TD,Cia,ZD,$D,UD,VD,SD,WD,RD,YD,dE,cE,bE,fE,gE,hE,iE,kE,jE,lE,mE,nE,rE,tE,uE,vE,wE,yE,zE,sE,pE,oE,qE,AE,BE,CE,DE,xE,EE,FE,GE,HE,JE,IE,Eia,KE,LE,ME,NE,OE,Hia,Gia,QE,RE,PE,SE,TE,UE,Iia,Lia,Mia,Nia,$E,aF,Oia,bF,Pia,WE,VE,Jia,cF,XE,YE,Kia,ZE,Qia,Ria,dF,eF,Sia,fF,Tia,jF,gF,iF,hF,Uia,Via,lF,Wia,kF,mF,nF,oF,pF,qF,rF,sF,tF,Zia,Yia,Xia,$ia,uF,aja,uia,via,bja,yF,dja,zF,AF,BF,DF,FF,HF,IF,KF,fja,hja,ija,jja,JF,MF,NF,kja,OF,SF,lja,RF,UF,VF,QF,TF,
vF,cja,PF,GF,eja,mja,wF,WF,EF,CF,XF,nja,YF,oja,ZF,$F,pja,aG,bG,cG,qja,dG,eG,fG,gG,hG,rja,sja,iG,tja,uja,jG,lG,xja,wja,vja,zja,nG,Aja,oG,pG,mG,Cja,qG,rG,sG,Dja,tG,uG,vG,kG,wG,Eja,xG,yG,BG,EG,FG,Gja,Fja,CG,HG,DG,GG,AG,IG,Hja,Ija,JG,LG,KG,NG,Jja,Kja,PG,QG,SG,OG,Lja,RG,TG,UG,VG,YG,ZG,aH,cH,dH,eH,fH,Mja,hH,jH,lH,kH,mH,nH,oH,Oja,pH,iH,qH,rH,sH,tH,uH,vH,wH,xH,yH,Qja,AH,zH,EH,FH,GH,HH,IH,LH,MH,NH,KH,Sja,JH,OH,Tja,Uja,QH,RH,SH,Vja,UH,WH,YH,XH,ZH,$H,VH,TH,Wja,aI,cI,dI,bI,eI,Xja,fI,iI,hI,kI,jI,gI,Yja,pI,$ja,
rI,tI,uI,vI,mI,sI,wI,nI,bka,xI,yI,oI,zI,qI,aka,cka,lI,Zja,AI,BI,CI,DI,FI,GI,HI,EI,dka,II,JI,eka,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,fka,gka,YI,ZI,hka,$I,aJ,bJ,cJ,ika,dJ,eJ,fJ,jka,lka,kka,mka,rka,nka,oka,pka,gJ,ska,qka,tka,kJ,uJ,iJ,mJ,vJ,wJ,zJ,xJ,vka,wka,yka,AJ,DJ,CJ,hJ,rJ,IJ,GJ,MJ,EJ,PJ,OJ,TJ,JJ,SJ,WJ,VJ,YJ,$J,uka,nJ,QJ,fK,Aka,hK,eK,Bka,iK,jK,lK,mK,Cka,gK,dK,kK,aK,cK,oK,sJ,NJ,qK,pK,sK,rK,nK,Dka,tJ,uK,BJ,lJ,Eka,vK,bK,xK,yK,zK,AK,tK,FJ,BK,XJ,RJ,ZJ,xka,DK,CK,EK,FK,GK,IK,Fka,Gka,JK,MK,bL,cL,Kka,
tL,uL,yL,Nka,DL,Mka,EL,Oka,AL,FL,GL,HL,IL,cC,JL,aL,LL,NL,PL,OL,Qka,Rka,Ska,SL,Tka,YL,WL,UL,VL,RL,TL,XL,ZL,Vka,Uka,$L,eM,cM,fM,dM,kM,Wka,nM,Xka,oM,qM,rM,pM,tM,uM,vM,wM,Ika,Jka,xM,yM,AM,DM,EM,FM,HM,IM,KM,MM,NM,OM,QM,RM,SM,TM,WM,XM,YM,ZM,$M,aN,bN,Hka,cN,dN,eN,fN,gN,hN,iN,Yka,jN,kN,mN,oN,qN,pN,rN,sN,tN,xN,yN,zN,CN,DN,HN,KN,LN,PN,QN,RN,NN,TN,UN,VN,Zka,bO,eO,cO,aO,fO,hO,jO,lO,mO,nO,oO,pO,rO,qO,sO,tO,uO,vO,xO,zO,yO,wO,AO,CO,BO,EO,FO,GO,$ka,IO,HO,JO,KO,ala,LO,MO,QO,OO,NO,PO,RO,SO,TO,UO,WO,XO,YO,$O,aP,bP,
cP,dP,gP,eP,hP,iP,jP,kP,lP,mP,nP,oP,qP,rP,sP,xP,yP,vP,zP,uP,DP,GP,HP,FP,CP,EP,BP,wP,AP,JP,KP,MP,NP,RP,QP,PP,TP,UP,WP,VP,ZP,gla,hla,aQ,$P,cQ,dQ,bQ,fQ,hQ,iQ,jQ,jla,kQ,lQ,ila,mQ,nQ,rQ,sQ,pQ,uQ,tQ,vQ,lla,wQ,zQ,CQ,DQ,EQ,mla,IQ,FQ,GQ,JQ,KQ,LQ,MQ,PQ,QQ,OQ,NQ,SQ,UQ,WQ,XQ,YQ,ZQ,$Q,aR,dR,cR,gR,AN,kR,nR,mR,oR,jR,SN,iR,pR,qR,nla,rR,sR,tR,uR,vR,xR,yR,zR,BR,ola,pla,CR,FR,DR,GR,HR,IR,JR,KR,NR,sla,OR,rla,PR,MR,QR,SR,RR,gja,UR,ula,WR,vla,aS,YR,cS,dS,eS,TR,gS,ZR,hS,fS,bS,kS,jS,VR,xla,lS,nS,yla,mS,oS,Ala,qS,rS,sS,zS,
Hla,BS,Cla,xQ,Bla,ES,GS,HS,qL,KS,Ila,IS,rL,yS,OS,PS,RS,SS,US,Fla,Gla,ZS,YS,XS,DS,cT,dT,CS,eT,fT,Jla,OK,gT,iT,WS,VS,lT,mT,MS,nT,$R,bT,aM,iS,pT,qT,kT,jT,tT,dL,vT,ZB,wT,aT,xT,zT,NS,JS,oT,AT,BT,CT,DT,Ela,hT,tS,ET,Dla,FT,GT,mM,HT,IT,Nla,JT,Ola,Pla,KT,LT,Qla,MT,NT,OT,PT,Tla,QT,ST,RT,TT,VT,Vla,UT,Ula,WT,XT,ZT,$T,aU,bU,cU,dU,eU,fU,gU,hU,Wla,iU,Xla,Yla,jU,nU,mU,kU,lU,Zla,oU,pU,$la,ama,qU,bma,dma,cma,rU,sU,ema,tU,uU,vU,wU,xU,yU,zU,AU,BU,CU,fma,DU,EU,FU,GU,IU,JU,KU,LU,ima,MU,HU,NU,OU,kma,gma,PU,hma,lma,QU,SU,
mma,TU,UU,VU,XU,WU,YU,ZU,$U,nma,aV,gV,kV,lV,oma,cV,fV,hV,eV,jV,iV,oV,mV,nV,pV,dV,bV,qV,pma,Y,rV,tV,uV,sV,vV,wV,xV,yV,zV,AV,qma,BV,CV,DV,EV,FV,GV,HV,IV,rma,JV,KV,LV,MV,NV,OV,PV,QV,RV,SV,TV,UV,VV,WV,XV,YV,ZV,$V,aW,bW,cW,sma,dW,eW,gW,hW,fW,tma,uma,vma,iW,jW,wma,xma,kW,lW,mW,nW,zma,Bma,Ama,yma,qW,pW,rW,Cma,sW,tW,uW,vW,wW,xW,yW,zW,AW,BW,CW,DW,EW,FW,GW,JW,HW,OW,IW,PW,SW,QW,RW,TW,Ema,UW,VW,WW,Fma,XW,Gma,Ima,Jma,$W,Kma,ZW,YW,Hma,aX,bX,cX,Lma,dX,eX,gX,hX,iX,jX,kX,mX,Mma,oX,nX,Nma,Oma,pX,rX,sX,uX,qX,tX,vX,
Qma,Pma,wX,xX,Rma,yX,zX,AX,BX,CX,Z,DX,EX,Sma,FX,GX,HX,IX,KX,MX,Tma,LX,NX,OX,QX,PX,RX,SX,TX,UX,VX,Wma,WX,XX,Yma,YX,ZX,$X,bY,cY,aY,$ma,dY,ana,eY,fY,gY,hY,bna,iY,cna,jY,kY,dna,lY,ena,mY,nY,oY,fna,pY,qY,rY,sY,uY,wY,yY,AY,BY,CY,FY,gna,GY,HY,hna,JY,jna,ina,lna,IY,KY,NY,LY,MY,PY,OY,nna,ona,lX,kna,fX,EY,QY,RY,oW,mna,SY,TY,UY,VY,pna,WY,XY,YY,ZY,$Y,aZ,bZ,cZ,dZ,rna,sna,una,tna,wna,eZ,xna,fZ,gZ,yna,hZ,zna,Ana,Cna,Bna,Dna,Ena,Fna,iZ,Gna,jZ,kZ,Kna,Hna,Jna,Ina,lZ,mZ,Lna,nZ,oZ,Mna,Nna,Ona,Pna,pZ,Qna,Rna,qZ,Una,Tna,
Vna,Wna,rZ,sZ,Xna,Yna,Zna,vZ,$na,aoa,boa,coa,wZ,uZ,doa,yZ,eoa,zZ,AZ,BZ,CZ,DZ,EZ,FZ,GZ,foa,HZ,goa,IZ,JZ,KZ,hoa,LZ,MZ,NZ,OZ,PZ,ioa,koa,joa,loa,QZ,moa,noa,RZ,ooa,SZ,TZ,UZ,poa,qoa,roa,VZ,WZ,YZ,XZ,ZZ,$Z,soa,a_,b_,uoa,c_,xoa,yoa,zoa,woa,d_,Aoa,f_,Boa,Coa,g_,h_,i_,Doa,j_,Eoa,k_,m_,Goa,Hoa,n_,o_,Ioa,p_,q_,Joa,r_,s_,t_,Koa,u_,v_,w_,x_,Moa,z_,A_,Noa,C_,y_,B_,Poa,Soa,D_,Xoa,F_,Yoa,I_,$oa,K_,M_,L_,apa,bpa,cpa,dpa,fpa,epa,J_,Zoa,S_,P_,T_,O_,U_,Q_,E_,gpa,N_,H_,V_,W_,X_,R_,G_,ipa,Y_,kpa,jpa,Z_,$_,a0,b0,c0,d0,e0,
f0,g0,h0,i0,j0,k0,l0,m0,n0,o0,p0,q0,r0,lpa,mpa,npa,s0,t0,u0,v0,w0,x0,qpa,y0,rpa,spa,tpa,upa,vpa,z0,wpa,xpa,ypa,zpa,Apa,Bpa,A0,Cpa,Dpa,B0,Epa,Fpa,C0,Gpa,Hpa,Ipa,Jpa,D0,Kpa,Lpa,E0,F0,G0,Npa,Qpa,H0,Ppa,Rpa,Opa,Spa,Tpa,Wpa,Vpa,I0,Zpa,Ypa,Xpa,$pa,J0,K0,L0,M0,Mpa,aqa,N0,O0,P0,Q0,R0,S0,T0,U0,bqa,V0,cqa,W0,dqa,X0,Y0,Z0,$0,a1,eqa,fqa,gqa,b1,hqa,c1,d1,e1,iqa,f1,g1,h1,i1,jqa,kqa,j1,k1,Upa,lqa,nqa,pqa,qqa,rqa,sqa,mqa,oqa,tqa,l1,uqa,vqa,wqa,m1,xqa,n1,o1,yqa,p1,zqa,Aqa,LW,MW,NW,q1,KW,Ooa,DY,r1,s1,Bqa,Dma,t1,Cqa,
opa,u1,Dqa,Eqa,ppa,w1,v1,x1,Iqa,y1,Hqa,z1,Jqa,Lqa,Kqa,Oqa,Qqa,D1,E1,aa,ha,F1,daa,Zc,Oa,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
g.ea=function(a){if(!(a instanceof Array)){a=g.q(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
g.r=function(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Gb=b.prototype};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ma=function(a,b){if(b){for(var c=ka,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&la(c,d,{configurable:!0,writable:!0,value:f})}};
na=function(){na=function(){};
var a=Symbol.iterator;a||(a=Symbol.iterator=Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&la(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return pa(da(this))}})};
pa=function(a){na();a={next:a};a[Symbol.iterator]=function(){return this};
return a};
qa=function(){this.C=!1;this.w=null;this.u=void 0;this.o=1;this.G=this.B=0;this.A=null};
ra=function(a){if(a.C)throw new TypeError("Generator is already running");a.C=!0};
sa=function(a,b){a.A={Vw:b,bG:!0};a.o=a.B||a.G};
g.ta=function(a,b,c){a.o=c;return{value:b}};
ua=function(a,b){a.o=b;a.B=0};
va=function(a){a.B=0;var b=a.A.Vw;a.A=null;return b};
wa=function(a){this.o=new qa;this.u=a};
baa=function(a,b){ra(a.o);var c=a.o.w;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.o["return"]);
a.o["return"](b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.o.w,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.o.C=!1,e;var f=e.value}catch(k){return a.o.w=null,sa(a.o,k),ya(a)}a.o.w=null;d.call(a.o,f);return ya(a)};
ya=function(a){for(;a.o.o;)try{var b=a.u(a.o);if(b)return a.o.C=!1,{value:b.value,done:!1}}catch(c){a.o.u=void 0,sa(a.o,c)}a.o.C=!1;if(a.o.A){b=a.o.A;a.o.A=null;if(b.bG)throw b.Vw;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
za=function(a){this.next=function(b){ra(a.o);a.o.w?b=xa(a,a.o.w.next,b,a.o.F):(a.o.F(b),b=ya(a));return b};
this["throw"]=function(b){ra(a.o);a.o.w?b=xa(a,a.o.w["throw"],b,a.o.F):(sa(a.o,b),b=ya(a));return b};
this["return"]=function(b){return baa(a,b)};
na();this[Symbol.iterator]=function(){return this}};
Aa=function(a,b){var c=new za(new wa(b));ia&&ia(c,a.prototype);return c};
caa=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}
f(a.next())})};
g.Ba=function(a){return caa(new za(new wa(a)))};
Ca=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Xx:e,PC:f}}return{Xx:-1,PC:void 0}};
Da=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ea=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Fa=function(a,b){na();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};
return d.next()}};
d[Symbol.iterator]=function(){return d};
return d};
g.Ga=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ha=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&daa.test(a)?a:""};
g.w=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ia=function(){};
Ja=function(a){a.zd=void 0;a.getInstance=function(){return a.zd?a.zd:a.zd=new a}};
Ka=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
g.La=function(a){var b=Ka(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){return"function"==Ka(a)};
g.Na=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Pa=function(a){return Object.prototype.hasOwnProperty.call(a,Oa)&&a[Oa]||(a[Oa]=++eaa)};
faa=function(a,b,c){return a.call.apply(a.bind,arguments)};
gaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.x=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.x=faa:g.x=gaa;return g.x.apply(null,arguments)};
g.Qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(a,b){for(var c in b)a[c]=b[c]};
g.Sa=function(a,b){function c(){}
c.prototype=b.prototype;a.Gb=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ie=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};
haa=function(a,b){if(!a||/[?&]dsh=1(&|$)/.test(a))return null;if(/[?&]ae=1(&|$)/.test(a)){var c=/[?&]adurl=([^&]+)/.exec(a);if(!c)return null;var d=b?c.index:a.length;try{return{cE:a.slice(0,d)+"&act=1"+a.slice(d),KE:decodeURIComponent(c[1])}}catch(f){return null}}if(/[?&]ae=2(&|$)/.test(a)){c=a;d="";if(b){var e=a.indexOf("&adurl=");0<e&&(c=a.slice(0,e),d=a.slice(e))}return{cE:c+"&act=1"+d,KE:c+"&dct=1"+d}}return null};
Ta=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Ua=function(a,b){Ta.call(this,iaa(a,b))};
iaa=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");return d+c[e]};
jaa=function(){};
kaa=function(a){var b=a.url,c=a.xT;this.B=!!a.cP;this.u=haa(b,c);a=/[?&]dsh=1(&|$)/.test(b);this.w=!a&&/[?&]ae=1(&|$)/.test(b);this.A=!a&&/[?&]ae=2(&|$)/.test(b);this.o=/[?&]adurl=([^&]*)/.exec(b)};
g.Va=function(a){return a[a.length-1]};
laa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Xa=function(a,b,c){b=g.Wa(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
g.Wa=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Ya=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.$a=function(a,b){return 0<=Za(a,b)};
g.ab=function(a){return 0==a.length};
bb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.db=function(a,b){var c=Za(a,b),d;(d=0<=c)&&g.cb(a,c);return d};
g.cb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.eb=function(a,b){var c=g.Wa(a,b,void 0);0<=c&&g.cb(a,c)};
maa=function(a,b){var c=0;laa(a,function(d,e){b.call(void 0,d,e,a)&&g.cb(a,e)&&c++})};
g.fb=function(a){return Array.prototype.concat.apply([],arguments)};
g.gb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
ib=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.La(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.kb=function(a,b,c,d){Array.prototype.splice.apply(a,jb(arguments,1))};
jb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
naa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Na(f)?"o"+g.Pa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.pb=function(a,b,c){return lb(a,c||ob,!1,b)};
qb=function(a,b){return lb(a,b,!0,void 0,void 0)};
lb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+(k-f>>>1),n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:-f-1};
g.rb=function(a,b){a.sort(b||ob)};
oaa=function(a,b){var c=ob;g.rb(a,function(d,e){return c(b(d),b(e))})};
g.sb=function(a,b){if(!g.La(a)||!g.La(b)||a.length!=b.length)return!1;for(var c=a.length,d=paa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
ob=function(a,b){return a>b?1:a<b?-1:0};
paa=function(a,b){return a===b};
g.ub=function(a,b,c){c=g.pb(a,b,c);0>c&&g.kb(a,-(c+1),0,b)};
g.vb=function(a,b,c){var d={};(0,g.y)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
qaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
raa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
wb=function(a){return function(){return a}};
g.xb=function(a){return a};
saa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
yb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
taa=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
uaa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.zb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Ab=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Bb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Cb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
Db=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Eb=function(a){for(var b in a)return a[b]};
g.Fb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Gb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Hb=function(a,b){var c=g.La(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Ib=function(a,b){return null!==a&&b in a};
g.Jb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Kb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Lb=function(a,b){var c=Kb(a,b,void 0);return c&&a[c]};
g.Mb=function(a){for(var b in a)return!1;return!0};
g.Nb=function(a){for(var b in a)delete a[b]};
g.Ob=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Pb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Qb=function(a){var b=Ka(a);if("object"==b||"array"==b){if(g.Ma(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=g.Qb(a[c]);return b}return a};
g.Sb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Rb.length;f++)c=Rb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Tb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Wb=function(a,b){this.o=a===Ub&&b||"";this.u=Vb};
Xb=function(a){return a instanceof Wb&&a.constructor===Wb&&a.u===Vb?a.o:"type_error:Const"};
g.Yb=function(a){return new Wb(Ub,a)};
ac=function(a,b){this.u=a===Zb&&b||"";this.w=$b};
bc=function(a){if(a instanceof ac&&a.constructor===ac&&a.w===$b)return a.u;Ka(a);return"type_error:TrustedResourceUrl"};
xaa=function(a,b){var c=Xb(a);if(!vaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(waa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var k=b[f];return k instanceof Wb?Xb(k):encodeURIComponent(String(k))});
return new ac(Zb,d)};
cc=function(a,b){return 0==a.lastIndexOf(b,0)};
dc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.ec=function(a){return/^[\s\xa0]*$/.test(a)};
mc=function(a,b){if(b)a=a.replace(fc,"&amp;").replace(gc,"&lt;").replace(hc,"&gt;").replace(ic,"&quot;").replace(jc,"&#39;").replace(lc,"&#0;");else{if(!yaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(fc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(gc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(hc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ic,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(jc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(lc,"&#0;"))}return a};
nc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.qc=function(a,b){for(var c=0,d=oc(String(a)).split("."),e=oc(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=pc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||pc(0==l[2].length,0==m[2].length)||pc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
pc=function(a,b){return a<b?-1:a>b?1:0};
g.tc=function(a,b){this.u=a===rc&&b||"";this.w=sc};
g.uc=function(a){if(a instanceof g.tc&&a.constructor===g.tc&&a.w===sc)return a.u;Ka(a);return"type_error:SafeUrl"};
g.wc=function(a){if(a instanceof g.tc)return a;a="object"==typeof a&&a.ug?a.xe():String(a);vc.test(a)||(a="about:invalid#zClosurez");return new g.tc(rc,a)};
g.xc=function(a,b){if(a instanceof g.tc)return a;a="object"==typeof a&&a.ug?a.xe():String(a);if(b&&/^data:/i.test(a)){var c=a.replace(/(%0A|%0D)/g,"");var d=c.match(zaa);d=d&&Aaa.test(d[1]);c=new g.tc(rc,d?c:"about:invalid#zClosurez");if(c.xe()==a)return c}vc.test(a)||(a="about:invalid#zClosurez");return new g.tc(rc,a)};
zc=function(){this.o="";this.u=yc};
Ac=function(a){if(a instanceof zc&&a.constructor===zc&&a.u===yc)return a.o;Ka(a);return"type_error:SafeStyle"};
Bc=function(a){var b=new zc;b.o=a;return b};
Fc=function(a){var b="",c;for(c in a){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?(0,g.Cc)(d,Dc).join(" "):Dc(d),b+=c+":"+d+";")}return b?Bc(b):Ec};
Dc=function(a){if(a instanceof g.tc)return'url("'+g.uc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Wb?Xb(a):Baa(String(a));if(/[{;}]/.test(a))throw new Ua("Value does not allow [{;}], got: %s.",[a]);return a};
Baa=function(a){var b=a.replace(Gc,"$1").replace(Gc,"$1").replace(Hc,"url");if(Caa.test(b)){if(Daa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Eaa(a))return"zClosurez"}else return"zClosurez";return Faa(a)};
Eaa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Faa=function(a){return a.replace(Hc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.wc(d).xe();return c+f+b+f+e})};
Gaa=function(a){function b(d){Array.isArray(d)?(0,g.y)(d,b):c+=Ac(d)}
var c="";(0,g.y)(arguments,b);return c?Bc(c):Ec};
Jc=function(a){return-1!=g.Ic.indexOf(a)};
Kc=function(){return Jc("Firefox")||Jc("FxiOS")};
Mc=function(){return Jc("Safari")&&!(Lc()||Jc("Coast")||Jc("Opera")||Jc("Edge")||Jc("Edg/")||Jc("OPR")||Kc()||Jc("Silk")||Jc("Android"))};
Lc=function(){return(Jc("Chrome")||Jc("CriOS"))&&!Jc("Edge")};
g.Nc=function(){return Jc("Android")&&!(Lc()||Kc()||Jc("Opera")||Jc("Silk"))};
Pc=function(){this.u="";this.A=Oc;this.w=null};
g.Qc=function(a){if(a instanceof Pc&&a.constructor===Pc&&a.A===Oc)return a.u;Ka(a);return"type_error:SafeHtml"};
Tc=function(a){if(a instanceof Pc)return a;var b="object"==typeof a,c=null;b&&a.ts&&(c=a.o());return Sc(mc(b&&a.ug?a.xe():String(a)),c)};
Haa=function(a){function b(f){Array.isArray(f)?(0,g.y)(f,b):(f=Tc(f),e.push(g.Qc(f).toString()),f=f.o(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Tc(Uc),d=c.o(),e=[];(0,g.y)(a,b);return Sc(e.join(g.Qc(c).toString()),d)};
Iaa=function(a){return Haa(Array.prototype.slice.call(arguments))};
Sc=function(a,b){return Vc(a,b)};
Vc=function(a,b){var c=new Pc;c.u=a;c.w=b;return c};
g.Wc=function(a,b){Xb(a);Xb(a);return Vc(b,null)};
Jaa=function(a){var b=g.Yb("Output of CSS sanitizer");Xb(b);Xb(b);return Bc(a)};
g.Xc=function(a,b){if(Kaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Qc(b)};
g.Yc=function(a,b){var c=b instanceof g.tc?b:g.xc(b);a.href=g.uc(c)};
$c=function(a,b){a.src=bc(b);var c;(c=a.ownerDocument&&a.ownerDocument.defaultView)&&c!=g.v?c=Ha(c.document):(null===Zc&&(Zc=Ha(g.v.document)),c=Zc);c&&a.setAttribute("nonce",c)};
ad=function(a,b,c,d){a=a instanceof g.tc?a:g.xc(a);b=b||g.v;c=c instanceof Wb?Xb(c):c||"";return b.open(g.uc(a),c,d,void 0)};
bd=function(a){return encodeURIComponent(String(a))};
cd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.dd=function(a){return a=mc(a,void 0)};
g.ed=function(a,b){var c=String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Laa("0",Math.max(0,b-d))+c};
g.fd=function(a){return null==a?"":String(a)};
gd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.hd=function(a){var b=Number(a);return 0==b&&g.ec(a)?NaN:b};
id=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
g.jd=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Maa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
kd=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
ld=function(a){return a?decodeURI(a):a};
g.nd=function(a,b){return b.match(md)[a]||null};
g.od=function(a){return ld(g.nd(3,a))};
pd=function(a){a=a.match(md);return kd(null,null,null,null,a[5],a[6],a[7])};
qd=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var k=c[d].substring(0,e);f=c[d].substring(e+1)}else k=c[d];b(k,f?cd(f):"")}};
rd=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
sd=function(a,b){return b?a?a+"&"+b:b:a};
td=function(a,b){if(!b)return a;var c=rd(a);c[1]=sd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
ud=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)ud(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+bd(b)))};
vd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)ud(a[d],a[d+1],c);return c.join("&")};
g.wd=function(a){var b=[],c;for(c in a)ud(c,a[c],b);return b.join("&")};
xd=function(a,b){var c=2==arguments.length?vd(arguments[1],0):vd(arguments,1);return td(a,c)};
g.yd=function(a,b){var c=g.wd(b);return td(a,c)};
zd=function(a,b,c){c=null!=c?"="+bd(c):"";return td(a,b+c)};
Ad=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Cd=function(a,b){var c=a.search(Bd),d=Ad(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return cd(a.substr(d,e-d))};
Dd=function(a,b){for(var c=a.search(Bd),d=0,e,f=[];0<=(e=Ad(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Naa,"$1")};
Oaa=function(a,b){var c=rd(a),d=c[1],e=[];d&&(0,g.y)(d.split("&"),function(f){var k=f.indexOf("=");b.hasOwnProperty(0<=k?f.substr(0,k):f)||e.push(f)});
c[1]=sd(e.join("&"),g.wd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Ed=function(){return Jc("iPhone")&&!Jc("iPod")&&!Jc("iPad")};
Fd=function(){return Ed()||Jc("iPad")||Jc("iPod")};
Gd=function(a){Gd[" "](a);return a};
Hd=function(a,b){try{return Gd(a[b]),!0}catch(c){}return!1};
Qaa=function(a,b){var c=Paa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Id=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Kd=function(a){return Qaa(a,function(){return 0<=g.qc(Jd,a)})};
g.Ld=function(a){return Number(Raa)>=a};
g.Md=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Nd=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.Od=function(a,b,c){return a+c*(b-a)};
Pd=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Qd=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Rd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Sd=function(a,b){this.width=a;this.height=b};
g.Td=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Ud=function(a){return a.width*a.height};
Zd=function(a){return a?new Vd(Wd(a)):Xd||(Xd=new Vd)};
$d=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.be=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ae(document,"*",a,b)};
g.ce=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ae(c,"*",a,b)[0]||null}return c||null};
g.ae=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,k;k=a[f];f++)b==k.nodeName&&(d[e++]=k);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;k=a[f];f++)b=k.className,"function"==typeof b.split&&g.$a(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
ee=function(a,b){g.zb(b,function(c,d){c&&"object"==typeof c&&c.ug&&(c=c.xe());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:de.hasOwnProperty(d)?a.setAttribute(de[d],c):cc(d,"aria-")||cc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
fe=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Sd(a.clientWidth,a.clientHeight)};
ie=function(a){var b=ge(a);a=a.parentWindow||a.defaultView;return g.he&&g.Kd("10")&&a.pageYOffset!=b.scrollTop?new g.Qd(b.scrollLeft,b.scrollTop):new g.Qd(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ge=function(a){return a.scrollingElement?a.scrollingElement:g.je||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
ke=function(a){return a?a.parentWindow||a.defaultView:window};
g.ne=function(a,b,c){var d=arguments,e=document,f=String(d[0]),k=d[1];if(!Saa&&k&&(k.name||k.type)){f=["<",f];k.name&&f.push(' name="',g.dd(k.name),'"');if(k.type){f.push(' type="',g.dd(k.type),'"');var l={};g.Sb(l,k);delete l.type;k=l}f.push(">");f=f.join("")}f=le(e,f);k&&("string"===typeof k?f.className=k:Array.isArray(k)?f.className=k.join(" "):ee(f,k));2<d.length&&me(e,f,d,2);return f};
me=function(a,b,c,d){function e(k){k&&b.appendChild("string"===typeof k?a.createTextNode(k):k)}
for(;d<c.length;d++){var f=c[d];!g.La(f)||g.Na(f)&&0<f.nodeType?e(f):(0,g.y)(Taa(f)?g.gb(f):f,e)}};
g.oe=function(a){return le(document,a)};
le=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.pe=function(a){return document.createTextNode(String(a))};
g.qe=function(a,b){a.appendChild(b)};
g.re=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.se=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.te=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
ve=function(a){return Uaa&&void 0!=a.children?a.children:(0,g.ue)(a.childNodes,function(b){return 1==b.nodeType})};
g.we=function(a){var b;if(Vaa&&!(g.he&&g.Kd("9")&&!g.Kd("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Na(b)&&1==b.nodeType?b:null};
g.xe=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Wd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ye=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.re(a);var c=Wd(a);a.appendChild(c.createTextNode(String(b)))}};
Be=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!ze(a)||Ae(a)):b=ze(a)&&Ae(a);if(b&&g.he){var c;!g.Ma(a.getBoundingClientRect)||g.he&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
ze=function(a){return g.he&&!g.Kd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Ae=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Taa=function(a){if(a&&"number"==typeof a.length){if(g.Na(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.Ma(a))return"function"==typeof a.item}return!1};
g.De=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Ce(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.$a(f.className.split(/\s+/),c))},!0,d)};
Ce=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
Vd=function(a){this.o=a||g.v.document||document};
Waa=function(a){this.ww=a};
Ee=function(a,b,c){this.A=a;this.u=b;this.o=c||[];this.sj=new Map};
Fe=function(a,b){Ee.call(this,a,3,b)};
g.A=function(){this.ub=this.ub;this.Wi=this.Wi};
g.B=function(a,b){g.Ge(a,g.Qa(g.He,b))};
g.Ge=function(a,b){a.ub?b():(a.Wi||(a.Wi=[]),a.Wi.push(b))};
g.He=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Ie=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.La(d)?g.Ie.apply(null,d):g.He(d)}};
g.Je=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1};
Xaa=function(a){var b=g.w("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(f){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(f){e="Not available",c=!0}return!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:(b=a.message,null==
b&&(a.constructor&&a.constructor instanceof Function?(a.constructor.name?b=a.constructor.name:(b=a.constructor,Ke[b]?b=Ke[b]:(b=String(b),Ke[b]||(c=/function\s+([^\(]+)/m.exec(b),Ke[b]=c?c[1]:"[Anonymous]"),b=Ke[b])),b='Unknown Error of type "'+b+'"'):b="Unknown Error of unknown type"),{message:b,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:a.stack||"Not available"})};
Le=function(a,b){g.Je.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.u=null;a&&this.init(a,b)};
Ne=function(a){return!(!a||!a[Me])};
Zaa=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.capture=!!d;this.jo=e;this.key=++Yaa;this.tk=this.vn=!1};
Oe=function(a){a.tk=!0;a.listener=null;a.o=null;a.src=null;a.jo=null};
Pe=function(a){this.src=a;this.listeners={};this.o=0};
Qe=function(a,b){var c=b.type;c in a.listeners&&g.db(a.listeners[c],b)&&(Oe(b),0==a.listeners[c].length&&(delete a.listeners[c],a.o--))};
Re=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.tk&&f.listener==b&&f.capture==!!c&&f.jo==d)return e}return-1};
Te=function(a,b,c,d,e){if(d&&d.once)return Se(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Te(a,b[f],c,d,e);return null}c=Ue(c);return Ne(a)?a.ka(b,c,g.Na(d)?!!d.capture:!!d,e):Ve(a,b,c,!1,d,e)};
Ve=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Na(e)?!!e.capture:!!e,l=We(a);l||(a[Xe]=l=new Pe(a));c=l.add(b,c,d,k,f);if(c.o)return c;d=$aa();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)aba||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ye(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Ze++;return c};
$aa=function(){var a=bba,b=$e?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
Se=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Se(a,b[f],c,d,e);return null}c=Ue(c);return Ne(a)?a.Ns(b,c,g.Na(d)?!!d.capture:!!d,e):Ve(a,b,c,!0,d,e)};
af=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)af(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=Ue(c),Ne(a)?a.bb(b,c,d,e):a&&(a=We(a))&&(b=a.wl(b,c,d,e))&&bf(b)};
bf=function(a){if("number"!==typeof a&&a&&!a.tk){var b=a.src;if(Ne(b))Qe(b.u,a);else{var c=a.type,d=a.o;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ye(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Ze--;(c=We(b))?(Qe(c,a),0==c.o&&(c.src=null,b[Xe]=null)):Oe(a)}}};
Ye=function(a){return a in cf?cf[a]:cf[a]="on"+a};
ef=function(a,b,c,d){var e=!0;if(a=We(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.tk&&(f=df(f,d),e=e&&!1!==f)}return e};
df=function(a,b){var c=a.listener,d=a.jo||a.src;a.vn&&bf(a);return c.call(d,b)};
bba=function(a,b){if(a.tk)return!0;if(!$e){var c=b||g.w("window.event"),d=new Le(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var k=c.length-1;!d.o&&0<=k;k--){d.currentTarget=c[k];var l=ef(c[k],f,!0,d);e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=ef(c[k],f,!1,d),e=e&&l}return e}return df(a,new Le(b,
this))};
We=function(a){a=a[Xe];return a instanceof Pe?a:null};
Ue=function(a){if(g.Ma(a))return a;a[ff]||(a[ff]=function(b){return a.handleEvent(b)});
return a[ff]};
g.gf=function(){g.A.call(this);this.u=new Pe(this);this.ga=this;this.aa=null};
hf=function(a,b,c,d){b=a.u.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.tk&&k.capture==c){var l=k.listener,m=k.jo||k.src;k.vn&&Qe(a.u,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
jf=function(a,b){this.w=a;this.A=b;this.u=0;this.o=null};
kf=function(a,b){a.A(b);100>a.u&&(a.u++,b.next=a.o,a.o=b)};
lf=function(a){g.v.setTimeout(function(){throw a;},0)};
nf=function(a,b){var c=a;b&&(c=(0,g.x)(a,b));c=cba(c);!g.Ma(g.v.setImmediate)||g.v.Window&&g.v.Window.prototype&&!Jc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(mf||(mf=dba()),mf(c)):g.v.setImmediate(c)};
dba=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Jc("Presto")&&(a=function(){var e=g.oe("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.x)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}});
if("undefined"!==typeof a&&!Jc("Trident")&&!Jc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.rw;c.rw=null;e()}};
return function(e){d.next={rw:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
of=function(){this.u=this.o=null};
pf=function(){this.next=this.scope=this.ng=null};
g.uf=function(a,b){rf||eba();sf||(rf(),sf=!0);tf.add(a,b)};
eba=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);rf=function(){a.then(vf)}}else rf=function(){nf(vf)}};
vf=function(){for(var a;a=tf.remove();){try{a.ng.call(a.scope)}catch(b){lf(b)}kf(wf,a)}sf=!1};
xf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
zf=function(a){this.o=0;this.F=void 0;this.A=this.u=this.w=null;this.B=this.C=!1;if(a!=g.Ia)try{var b=this;a.call(void 0,function(c){yf(b,2,c)},function(c){yf(b,3,c)})}catch(c){yf(this,3,c)}};
Af=function(){this.next=this.context=this.onRejected=this.w=this.o=null;this.u=!1};
Cf=function(a,b,c){var d=Bf.get();d.w=a;d.onRejected=b;d.context=c;return d};
Df=function(a){if(a instanceof zf)return a;var b=new zf(g.Ia);yf(b,2,a);return b};
Ef=function(a){return new zf(function(b,c){c(a)})};
Gf=function(a,b,c){Ff(a,b,c,null)||g.uf(g.Qa(b,a))};
Hf=function(a){return new zf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Gf(e,b,c)})};
fba=function(a){return new zf(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},k=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],Gf(m,g.Qa(f,l),k);
else b(e)})};
Jf=function(a,b){var c=Cf(b,b,void 0);c.u=!0;If(a,c);return a};
Lf=function(a,b){return Kf(a,null,b,void 0)};
Mf=function(a,b){if(0==a.o)if(a.w){var c=a.w;if(c.u){for(var d=0,e=null,f=null,k=c.u;k&&(k.u||(d++,k.o==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.o&&1==d?Mf(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Nf(c),Of(c,e,3,b)))}a.w=null}else yf(a,3,b)};
If=function(a,b){a.u||2!=a.o&&3!=a.o||Pf(a);a.A?a.A.next=b:a.u=b;a.A=b};
Kf=function(a,b,c,d){var e=Cf(null,null,null);e.o=new zf(function(f,k){e.w=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){k(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Qf?k(l):f(m)}catch(n){k(n)}}:k});
e.o.w=a;If(a,e);return e.o};
yf=function(a,b,c){0==a.o&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.o=1,Ff(c,a.I,a.P,a)||(a.F=c,a.o=b,a.w=null,Pf(a),3!=b||c instanceof Qf||gba(a,c)))};
Ff=function(a,b,c,d){if(a instanceof zf)return If(a,Cf(b||g.Ia,c||null,d)),!0;if(xf(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if(g.Ma(e))return hba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
hba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function k(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Pf=function(a){a.C||(a.C=!0,g.uf(a.G,a))};
Nf=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.A=null);return b};
Of=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.B;a=a.w)a.B=!1;if(b.o)b.o.w=null,Rf(b,c,d);else try{b.u?b.w.call(b.context):Rf(b,c,d)}catch(e){Sf.call(null,e)}kf(Bf,b)};
Rf=function(a,b,c){2==b?a.w.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
gba=function(a,b){a.B=!0;g.uf(function(){a.B&&Sf.call(null,b)})};
Qf=function(a){Ta.call(this,a)};
g.Tf=function(a,b){g.gf.call(this);this.Ad=a||1;this.Nm=b||g.v;this.lw=(0,g.x)(this.md,this);this.uy=(0,g.H)()};
g.Uf=function(a,b,c){if(g.Ma(a))c&&(a=(0,g.x)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.x)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Vf=function(a,b){var c=null;return Lf(new zf(function(d,e){c=g.Uf(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
Xf=function(){this.P=new Wf;this.A=new Map;this.G=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Tf(this.flushInterval);this.u.ka("tick",this.F,!1,this)};
iba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
jba=function(){this.o=Yf();this.o.o("/client_streamz/youtube/web/network/one_platform_requests",{lg:3,kg:"request_url"})};
kba=function(){this.o=Yf();this.o.o("/client_streamz/youtube/web/network/one_platform_redirects",{lg:2,kg:"response_code"},{lg:3,kg:"request_url"},{lg:3,kg:"response_url"})};
lba=function(a,b,c,d){a.o.w("/client_streamz/youtube/web/network/one_platform_redirects",b,c,d)};
mba=function(){this.o=Yf();this.o.o("/client_streamz/youtube/web/network/one_platform_request_success",{lg:3,kg:"request_url"})};
nba=function(){this.o=Yf();this.o.o("/client_streamz/youtube/web/network/one_platform_request_failed",{lg:2,kg:"response_code"},{lg:3,kg:"request_url"})};
oba=function(){this.o=Yf();this.o.o("/client_streamz/youtube/video_ads/visibility_error",{lg:3,kg:"element_name"},{lg:3,kg:"error_reason"})};
pba=function(a){return(0,g.Cc)(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.bg=function(a,b){g.La(a);void 0===b&&(b=0);Zf();for(var c=$f[b],d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,k||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.cg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.bg(b,3)};
qba=function(a){var b=[];dg(a,function(c){b.push(c)});
return b};
g.eg=function(a){!g.he||g.Kd("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;dg(a,function(f){d[e++]=f});
return d.subarray(0,e)};
dg=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=fg[n];if(null!=p)return p;if(!g.ec(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Zf();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
Zf=function(){if(!fg){fg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));$f[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===fg[f]&&(fg[f]=e)}}}};
hg=function(a,b,c){this.u=null;this.o=this.w=this.A=0;this.B=!1;a&&gg(this,a,b,c)};
jg=function(a,b,c){if(ig.length){var d=ig.pop();a&&gg(d,a,b,c);return d}return new hg(a,b,c)};
gg=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.eg(b):new Uint8Array(0);a.u=b;a.A=void 0!==c?c:0;a.w=void 0!==d?a.A+d:a.u.length;a.o=a.A};
kg=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.o++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.o++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.o++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.B=!0};
lg=function(a){var b=a.u;var c=b[a.o+0];var d=c&127;if(128>c)return a.o+=1,d;c=b[a.o+1];d|=(c&127)<<7;if(128>c)return a.o+=2,d;c=b[a.o+2];d|=(c&127)<<14;if(128>c)return a.o+=3,d;c=b[a.o+3];d|=(c&127)<<21;if(128>c)return a.o+=4,d;c=b[a.o+4];d|=(c&15)<<28;if(128>c)return a.o+=5,d>>>0;a.o+=5;128<=b[a.o++]&&128<=b[a.o++]&&128<=b[a.o++]&&128<=b[a.o++]&&a.o++;return d};
mg=function(a){this.o=jg(a,void 0,void 0);this.B=this.o.o;this.u=this.w=-1;this.A=!1};
ng=function(a){var b=a.o;(b=b.o==b.w)||(b=a.A)||(b=a.o,b=b.B||0>b.o||b.o>b.w);if(b)return!1;a.B=a.o.o;b=lg(a.o);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.A=!0,!1;a.w=b>>>3;a.u=c;return!0};
og=function(a){switch(a.u){case 0:if(0!=a.u)og(a);else{for(a=a.o;a.u[a.o]&128;)a.o++;a.o++}break;case 1:1!=a.u?og(a):(a=a.o,a.o+=8);break;case 2:if(2!=a.u)og(a);else{var b=lg(a.o);a=a.o;a.o+=b}break;case 5:5!=a.u?og(a):(a=a.o,a.o+=4);break;case 3:b=a.w;do{if(!ng(a)){a.A=!0;break}if(4==a.u){a.w!=b&&(a.A=!0);break}og(a)}while(1);break;default:a.A=!0}};
pg=function(a){var b=lg(a.o);a=a.o;var c=a.u,d=a.o,e=d+b;b=[];for(var f="";d<e;){var k=c[d++];if(128>k)b.push(k);else if(192>k)continue;else if(224>k){var l=c[d++];b.push((k&31)<<6|l&63)}else if(240>k){l=c[d++];var m=c[d++];b.push((k&15)<<12|(l&63)<<6|m&63)}else if(248>k){l=c[d++];m=c[d++];var n=c[d++];k=(k&7)<<18|(l&63)<<12|(m&63)<<6|n&63;k-=65536;b.push((k>>10&1023)+55296,(k&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)k=jb(b,f,f+8192),e+=String.fromCharCode.apply(null,k);b=e}a.o=d;return c+b};
qg=function(a){var b=lg(a.o);a=a.o;if(0>b||a.o+b>a.u.length)a.B=!0,b=new Uint8Array(0);else{var c=a.u.subarray(a.o,a.o+b);a.o+=b;b=c}return b};
rg=function(){this.o=[]};
sg=function(a,b){for(;127<b;)a.o.push(b&127|128),b>>>=7;a.o.push(b)};
tg=function(a,b){a.o.push(b>>>0&255);a.o.push(b>>>8&255);a.o.push(b>>>16&255);a.o.push(b>>>24&255)};
ug=function(){this.w=[];this.u=0;this.o=new rg};
vg=function(a,b){sg(a.o,8*b+2);var c=a.o.end();a.w.push(c);a.u+=c.length;c.push(a.u);return c};
wg=function(a,b){var c=b.pop();for(c=a.u+a.o.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
xg=function(a){for(var b=new Uint8Array(a.u+a.o.length()),c=a.w,d=c.length,e=0,f=0;f<d;f++){var k=c[f];b.set(k,e);e+=k.length}c=a.o.end();b.set(c,e);a.w=[b];return b};
yg=function(a,b,c){if(null!=c&&null!=c)if(sg(a.o,8*b),a=a.o,0<=c)sg(a,c);else{for(b=0;9>b;b++)a.o.push(c&127|128),c>>=7;a.o.push(1)}};
Bg=function(a,b,c){if(null!=c&&null!=c){sg(a.o,8*b);a=a.o;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));zg=b;Ag=d;c=zg;for(b=Ag;0<b||127<c;)a.o.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.o.push(c)}};
Cg=function(a,b,c){null!=c&&(sg(a.o,8*b+1),a=a.o,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,zg=b,Ag=c,tg(a,zg),tg(a,Ag))};
Dg=function(a,b,c){if(null!=c){sg(a.o,8*b+1);a=a.o;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)Ag=0<1/d?0:2147483648,zg=0;else if(isNaN(d))Ag=2147483647,zg=4294967295;else if(1.7976931348623157E308<d)Ag=(c<<31|2146435072)>>>0,zg=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),Ag=(c<<31|d/4294967296)>>>0,zg=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);Ag=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;zg=4503599627370496*d>>>0}tg(a,zg);tg(a,
Ag)}};
Eg=function(a,b,c){null!=c&&(sg(a.o,8*b),a.o.o.push(c?1:0))};
Fg=function(a,b,c){if(null!=c){b=vg(a,b);for(var d=a.o,e=0;e<c.length;e++){var f=c.charCodeAt(e);if(128>f)d.o.push(f);else if(2048>f)d.o.push(f>>6|192),d.o.push(f&63|128);else if(65536>f)if(55296<=f&&56319>=f&&e+1<c.length){var k=c.charCodeAt(e+1);56320<=k&&57343>=k&&(f=1024*(f-55296)+k-56320+65536,d.o.push(f>>18|240),d.o.push(f>>12&63|128),d.o.push(f>>6&63|128),d.o.push(f&63|128),e++)}else d.o.push(f>>12|224),d.o.push(f>>6&63|128),d.o.push(f&63|128)}wg(a,b)}};
Gg=function(a,b,c,d){null!=c&&(b=vg(a,b),d(c,a),wg(a,b))};
Hg=function(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=vg(a,b);d(c[e],a);wg(a,f)}};
Ig=function(){};
Ng=function(a,b,c,d){a.o=null;b||(b=[]);a.C=void 0;a.w=-1;a.Fd=b;a:{if(b=a.Fd.length){--b;var e=a.Fd[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Jg&&e instanceof Uint8Array)){a.A=b-a.w;a.u=e;break a}}a.A=Number.MAX_VALUE}a.B={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.A?(e+=a.w,a.Fd[e]=a.Fd[e]||Kg):(Lg(a),a.u[e]=a.u[e]||Kg);if(d&&d.length)for(b=0;b<d.length;b++)Mg(a,d[b])};
Lg=function(a){var b=a.A+a.w;a.Fd[b]||(a.u=a.Fd[b]={})};
Og=function(a,b){if(b<a.A){var c=b+a.w,d=a.Fd[c];return d===Kg?a.Fd[c]=[]:d}if(a.u)return d=a.u[b],d===Kg?a.u[b]=[]:d};
rba=function(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return g.eg(a);Ka(a);return null};
Pg=function(a,b){var c=Og(a,b);return null==c?0:c};
Qg=function(a,b,c){b<a.A?a.Fd[b+a.w]=c:(Lg(a),a.u[b]=c);return a};
Rg=function(a,b,c){0!==c?Qg(a,b,c):b<a.A?a.Fd[b+a.w]=null:(Lg(a),delete a.u[b]);return a};
Sg=function(a,b,c,d){(c=Mg(a,c))&&c!==b&&void 0!==d&&(a.o&&c in a.o&&(a.o[c]=void 0),Qg(a,c,void 0));Qg(a,b,d)};
Mg=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],k=Og(a,f);null!=k&&(c=f,d=k,Qg(a,f,void 0))}return c?(Qg(a,c,d),c):0};
Tg=function(a,b,c){a.o||(a.o={});if(!a.o[c]){var d=Og(a,c);d&&(a.o[c]=new b(d))}return a.o[c]};
Vg=function(a,b,c){Ug(a,b,c);b=a.o[c];b==Kg&&(b=a.o[c]=[]);return b};
Ug=function(a,b,c){a.o||(a.o={});if(!a.o[c]){for(var d=Og(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.o[c]=e}};
Wg=function(a,b,c){a.o||(a.o={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=c[e].Fd;a.o[b]=c;Qg(a,b,d)};
Xg=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Xg(d):d)}return b}if(Jg&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Xg(d):d);return b};
Yg=function(a){this.o=a||{cookie:""}};
Zg=function(a){a=(a.o.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=oc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
$g=function(a){return a?a.passive&&sba()?a:a.capture||!1:!1};
ah=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,$g(d)),!0):!1};
bh=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,$g(void 0))};
g.eh=function(a){"number"===typeof a?(this.date=ch(a,0,1),dh(this,1)):g.Na(a)?(this.date=ch(a.getFullYear(),a.getMonth(),a.getDate()),dh(this,a.getDate())):(this.date=new Date((0,g.H)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),dh(this,a))};
ch=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
dh=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
gh=function(a){fh();return new ac(Zb,a)};
ih=function(){return!hh()&&(Jc("iPod")||Jc("iPhone")||Jc("Android")||Jc("IEMobile"))};
hh=function(){return Jc("iPad")||Jc("Android")&&!Jc("Mobile")||Jc("Silk")};
jh=function(a){try{return!!a&&null!=a.location.href&&Hd(a,"foo")}catch(b){return!1}};
kh=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
uba=function(){var a=[];kh(tba,function(b){a.push(b)});
return a};
wba=function(a){return(a=vba.exec(a))&&a[0]||""};
xba=function(){var a=lh;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
zba=function(){var a=g.oe("IFRAME"),b={};(0,g.y)(yba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
mh=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function k(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,k)}
l((b=b.apply(a,void 0)).next())})};
nh=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
oh=function(a,b,c){b instanceof g.Qd?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.ph=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
qh=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.sh=function(a,b,c){if("string"===typeof b)(b=rh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=rh(c,d);f&&(c.style[f]=e)}};
rh=function(a,b){var c=th[b];if(!c){var d=id(b);c=d;void 0===a.style[d]&&(d=(g.je?"Webkit":uh?"Moz":g.he?"ms":g.vh?"O":null)+Maa(d),void 0!==a.style[d]&&(c=d));th[b]=c}return c};
g.wh=function(a,b){var c=a.style[id(b)];return"undefined"!==typeof c?c:a.style[rh(a,b)]||""};
xh=function(a,b){var c=Wd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
yh=function(a,b){return xh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ah=function(a,b,c){if(b instanceof g.Qd){var d=b.x;b=b.y}else d=b,b=c;a.style.left=zh(d,!1);a.style.top=zh(b,!1)};
Bh=function(a){return new g.Qd(a.offsetLeft,a.offsetTop)};
Ch=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Dh=function(a){if(g.he&&!g.Ld(8))return a.offsetParent;var b=Wd(a),c=yh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=yh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Eh=function(a){var b=Wd(a),c=new g.Qd(0,0);var d=b?Wd(b):document;d=!g.he||g.Ld(9)||"CSS1Compat"==Zd(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=Ch(a);b=ie(Zd(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Gh=function(a,b){var c=new g.Qd(0,0),d=ke(Wd(a));if(!Hd(d,"parent"))return c;var e=a;do{var f=d==b?g.Eh(e):Fh(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Ih=function(a,b){var c=Hh(a),d=Hh(b);return new g.Qd(c.x-d.x,c.y-d.y)};
Fh=function(a){a=Ch(a);return new g.Qd(a.left,a.top)};
Hh=function(a){if(1==a.nodeType)return Fh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Qd(a.clientX,a.clientY)};
g.Mh=function(a,b,c){if(b instanceof g.Sd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.Jh(a,b);a.style.height=zh(c,!0)};
zh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Jh=function(a,b){a.style.width=zh(b,!0)};
g.Nh=function(a){var b=Aba;if("none"!=yh(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
Aba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.je&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Ch(a),new g.Sd(a.right-a.left,a.bottom-a.top)):new g.Sd(b,c)};
g.Oh=function(a,b){a.style.display=b?"":"none"};
Sh=function(){if(Ph&&!jh(Qh)){var a="."+Rh.domain;try{for(;2<a.split(".").length&&!jh(Qh);)Rh.domain=a=a.substr(a.indexOf(".")+1),Qh=window.parent}catch(b){}jh(Qh)||(Qh=window)}return Qh};
Th=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Sd(b.innerWidth,b.innerHeight)).round():fe(b||window).round()}catch(d){return new g.Sd(-12245933,-12245933)}};
Uh=function(a,b,c){try{a&&(b=b.top);var d=Th(a,b,void 0===c?!1:c),e=ie(Zd(b.document).o);if(-12245933==d.width){var f=d.width;var k=new nh(f,f,f,f)}else k=new nh(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new nh(-12245933,-12245933,-12245933,-12245933)}};
Bba=function(a){var b={};(0,g.y)(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.u(e)||(b[d]=null)):b[d]=c});
maa(a,function(c){return null===b[c.event]})};
Vh=function(){this.vb=0;this.o=!1;this.u=-1;this.Ci=!1;this.Wd=0};
Wh=function(){this.u=null;this.o=!1};
Xh=function(a){Wh.call(this);this.w=a};
Yh=function(){Wh.call(this)};
Zh=function(){Wh.call(this)};
$h=function(){this.o={};this.u=!0;this.w={}};
ai=function(a,b,c){a.o[b]||(a.o[b]=new Xh(c));return a.o[b]};
Cba=function(a){a.o.queryid||(a.o.queryid=new Zh)};
bi=function(a,b,c){(a=a.o[b])&&a.setValue(c)};
ci=function(a,b){if(Ib(a.w,b))return a.w[b];var c=a.o[b];if(c)return c.getValue()};
di=function(a){var b={},c=g.Ab(a.o,function(d){return d.o});
g.zb(c,function(d,e){var f=void 0!==a.w[e]?String(a.w[e]):d.o&&null!==d.u?String(d.u):"";0<f.length&&(b[e]=f)},a);
return b};
Dba=function(a){a=di(a);var b=[];g.zb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Eba=function(){this.o=this.Ah=null};
ei=function(){};
gi=function(){if(!fi())throw Error();};
fi=function(){return!(!hi||!hi.performance)};
ii=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ji=function(){};
mi=function(a){a=a||ki();for(var b=new li(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Fba.test(f.url)&&(c=f);if(f.url&&!f.Es){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Gba(b,e,c)};
ki=function(){var a=g.v,b=[],c=null;do{var d=a;if(jh(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new li(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.v;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.Es=!0);return b};
Gba=function(a,b,c){this.o=a;this.u=b;this.w=c};
li=function(a,b,c){this.url=a;this.Bd=b;this.Es=!!c;this.depth=null};
ni=function(){this.w="&";this.A=!1;this.u={};this.B=0;this.o=[]};
oi=function(a,b){var c={};c[a]=b;return[c]};
qi=function(a,b,c,d,e){var f=[];kh(a,function(k,l){var m=pi(k,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
pi=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(pi(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(qi(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
ri=function(a,b,c,d){a.o.push(b);a.u[b]=oi(c,d)};
Hba=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.w.length-1};
si=function(a,b){this.o=a;this.depth=b};
Jba=function(){function a(l,m){return null==l?m:l}
var b=ki(),c=Math.max(b.length-1,0),d=mi(b);b=d.o;var e=d.u,f=d.w,k=[];f&&k.push(new si([f.url,f.Es?2:0],a(f.depth,1)));e&&e!=f&&k.push(new si([e.url,2],0));b.url&&b!=f&&k.push(new si([b.url,0],a(b.depth,c)));d=(0,g.Cc)(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=wba(b.url))&&d.push([new si([e,1],a(b.depth,c))]);d.push([]);return(0,g.Cc)(d,function(l){return Iba(c,l)})};
Iba=function(a,b){(0,g.ti)(b,function(e){return 0<=e.depth});
var c=(0,g.ui)(b,function(e,f){return Math.max(e,f.depth)},-1),d=qaa(c+2);
d[0]=a;(0,g.y)(b,function(e){return d[e.depth+1]=e.o});
return d};
Kba=function(){var a=Jba();return(0,g.Cc)(a,function(b){return pi(b)})};
vi=function(){this.u=new ji;this.o=fi()?new gi:new ei};
Lba=function(){wi();var a=hi.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&g.Ma(hi.setInterval)&&g.Ma(hi.clearInterval)&&g.Ma(hi.setTimeout)&&g.Ma(hi.clearTimeout))};
xi=function(a){wi();var b=Sh()||hi;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
yi=function(){wi();return Kba()};
zi=function(){};
wi=function(){return zi.getInstance().getContext()};
Ai=function(a){Ng(this,a,null,null)};
Mba=function(a){this.A=a;this.o=-1;this.u=this.w=0};
Bi=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.o)return b.apply(null,g.ea(d));try{return a.o=a.A.o.now(),b.apply(null,g.ea(d))}finally{a.w+=a.A.o.now()-a.o,a.o=-1,a.u+=1}}};
Nba=function(a,b){this.u=a;this.w=b;this.o=new Mba(a)};
Di=function(){this.w=void 0;this.o=this.C=0;this.B=-1;this.Ya=new $h;ai(this.Ya,"mv",Oba).o=!0;ai(this.Ya,"omid",Ci);ai(this.Ya,"epoh",Ci).o=!0;ai(this.Ya,"epph",Ci).o=!0;ai(this.Ya,"umt",Ci).o=!0;ai(this.Ya,"phel",Ci).o=!0;ai(this.Ya,"phell",Ci).o=!0;ai(this.Ya,"oseid",Pba).o=!0;var a=this.Ya;a.o.sloi||(a.o.sloi=new Yh);a.o.sloi.o=!0;ai(this.Ya,"xdi",Ci).o=!0;ai(this.Ya,"amp",Ci).o=!0;ai(this.Ya,"prf",Ci).o=!0;ai(this.Ya,"gtx",Ci).o=!0;ai(this.Ya,"mvp_lv",Ci).o=!0;ai(this.Ya,"eocm",Ci).o=!0;ai(this.Ya,
"pnl",Qba).o=!0;this.u=new Nba(wi(),this.Ya);this.A=!1};
Rba=function(){var a="https:";hi&&hi.location&&"http:"===hi.location.protocol&&(a="http:");this.u=a;this.o=.01;this.w=Math.random()};
Ei=function(a,b,c,d,e){if((d?a.w:Math.random())<(e||a.o))try{if(c instanceof ni)var f=c;else f=new ni,kh(c,function(l,m){var n=f,p=n.B++,t=oi(m,l);n.o.push(p);n.u[p]=t});
var k=f.jc(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");k&&xi(k)}catch(l){}};
Fi=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Gi=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):(0,g.H)()};
Hi=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
Sba=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Ji=function(){var a=Sh();this.events=[];this.u=a||g.v;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.o=Ii()||(null!=b?b:1>Math.random())};
Li=function(a){a&&Ki&&Ii()&&(Ki.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ki.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Oi=function(){var a=Mi;this.B=Ni;this.A="jserror";this.w=!0;this.o=null;this.C=this.u;this.Ga=void 0===a?null:a};
Ri=function(a,b,c,d){return Bi(Di.getInstance().u.o,function(){try{if(a.Ga&&a.Ga.o){var e=a.Ga.start(b.toString(),3);var f=c();a.Ga.end(e)}else f=c()}catch(m){var k=a.w;try{Li(e);var l=new Pi(Qi(m));k=a.C(b,l,void 0,d)}catch(n){a.u(217,n)}if(!k)throw m;}return f})()};
Ti=function(a,b,c){var d=Si;return Bi(Di.getInstance().u.o,function(e){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];return Ri(d,a,function(){return b.apply(void 0,f)},c)})};
Qi=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
Pi=function(a){Fi.call(this,Error(a),{message:a})};
Ui=function(){var a=Sh();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Mi.disable())};
Tba=function(a){Si.o=function(b){(0,g.y)(a,function(c){c(b)})}};
Vi=function(a,b){return Ri(Si,a,b,void 0)};
Wi=function(a,b){return Ti(a,b,void 0)};
Xi=function(a,b){Ei(Ni,a,b,"jserror"!=a,void 0)};
Yi=function(a,b,c,d){Si.u(a,b,c,d)};
Zi=function(){return Date.now()-Uba};
Vba=function(){var a=Di.getInstance().w,b=0<=$i?Zi()-$i:-1,c=aj?Zi()-bj:-1,d=0<=cj?Zi()-cj:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Yi(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
dj=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,jh(a)&&(c=a,b=d);return{Bd:c,level:b}};
ej=function(a){var b=a!==a.top,c=a.top===dj(a).Bd,d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Db(Wba,function(k){return g.Ma(f[k])})||(e=1));
return{af:f,compatibility:e,GO:d}};
Xba=function(a){return(a=a.document)&&g.Ma(a.elementFromPoint)};
fj=function(a,b,c,d){var e=void 0===e?!1:e;c=Ti(d,c,void 0);ah(a,b,c,{capture:e})};
gj=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
hj=function(a){return new nh(a.top,a.right,a.bottom,a.left)};
ij=function(a){var b=a.top||0,c=a.left||0;return new nh(b,c+(a.width||0),b+(a.height||0),c)};
jj=function(a){return null!=a&&0<=a&&1>=a};
Yba=function(){var a=g.Ic;return a?kj("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return nc(a,b)})||nc(a,"OMI/")&&!nc(a,"XiaoMi/")?!0:nc(a,"Presto")&&nc(a,"Linux")&&!nc(a,"X11")&&!nc(a,"Android")&&!nc(a,"Mobi"):!1};
lj=function(){this.w=!jh(hi.top);this.isMobileDevice=hh()||ih();var a=ki();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.od(a[a.length-1].url)||"":"";this.o=new nh(0,0,0,0);this.A=new g.Sd(0,0);this.B=new g.Sd(0,0);this.F=new nh(0,0,0,0);this.C=0;this.G=!1;this.u=!(!hi||!ej(hi).af);this.update(hi)};
mj=function(a,b){b&&b.screen&&(a.A=new g.Sd(b.screen.width,b.screen.height))};
nj=function(a,b){var c=a.o?new g.Sd(a.o.Yc(),a.o.getHeight()):new g.Sd(0,0);var d=b;d=void 0===d?hi:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var k=d.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,t=m.offsetHeight,u=m.offsetWidth;m.clientHeight!=t&&(n=l.scrollHeight,p=l.scrollWidth,t=l.offsetHeight,u=l.offsetWidth);
n>c.height?n>t?(e=n,f=p):(e=t,f=u):n<t?(e=n,f=p):(e=t,f=u)}var z=new g.Sd(f,e)}catch(C){z=new g.Sd(-12245933,-12245933)}a.B=z};
oj=function(){var a=lj.getInstance();if(0<a.C||a.G)return!0;a=wi().u.isVisible();var b=0===ii(Rh);return a||b};
qj=function(a,b){var c=pj(b);return 0===c?0:pj(a)/c};
pj=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Zba=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.we(a)||a){var d=Wd(a),e=d&&ke(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
$ba=function(a,b,c){if(!a||!b)return!1;b=oh(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Sh();jh(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Xba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Wd(c))&&b.defaultView&&b.defaultView.frameElement)&&Zba(b,a);d=a===c;a=!d&&a&&Ce(a,function(e){return e===c});
return!(b||d||a)};
aca=function(a,b,c,d){return lj.getInstance().w?!1:0>=a.Yc()||0>=a.getHeight()?!0:c&&d?Vi(208,function(){return $ba(a,b,c)}):!1};
rj=function(a,b,c){var d=new nh(0,0,0,0);this.time=a;this.volume=null;this.w=b;this.o=d;this.u=c};
sj=function(a,b,c,d,e,f,k,l){this.F=a;this.G=b;this.C=c;this.B=d;this.o=e;this.A=f;this.u=k;this.w=l};
tj=function(a){this.w=a;this.u=0;this.o=null};
uj=function(a,b,c){this.Bd=a;this.aa=void 0===c?"na":c;this.A=[];this.I=!1;this.w=new rj(-1,!0,this);this.o=this;this.F=b;this.P=this.Z=this.G=!1;this.U="uk";this.ub=!1;this.B=!0};
wj=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.U=b,a.F=0,a.o!=a||vj(a)};
xj=function(a,b){g.$a(a.A,b)||(a.A.push(b),b.Hj(a.o),b.oh(a.w),b.Mf()&&(a.G=!0))};
yj=function(a){a=a.o;a.az();a.Zy();var b=lj.getInstance();b.F=Uh(!1,a.Bd,b.isMobileDevice);a.jH();a.w.o=a.Ex()};
zj=function(a){a.G=a.A.length?kj(a.A,function(b){return b.Mf()}):!1};
Aj=function(a){var b=g.gb(a.A);(0,g.y)(b,function(c){c.oh(a.w)})};
vj=function(a){var b=g.gb(a.A);(0,g.y)(b,function(c){c.Hj(a.o)});
a.o!=a||Aj(a)};
Bj=function(a,b,c,d){this.element=a;this.o=new nh(0,0,0,0);this.B=new nh(0,0,0,0);this.u=b;this.Ya=c;this.P=d;this.ub=!1;this.timestamp=-1;this.A=new sj(b.w,this.element,this.o,new nh(0,0,0,0),0,0,Zi(),0)};
Cj=function(a){this.ub=!1;this.o=a;this.A=g.Ia};
Dj=function(a,b,c){this.w=void 0===c?0:c;this.u=a;this.o=null==b?"":b};
bca=function(a){switch(Math.trunc(a.w)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
cca=function(a,b){return new Dj(a.u,a.o,a.w+b)};
Ej=function(a,b){return a.w<b.w?!0:a.w>b.w?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.o<typeof b.o?!0:typeof a.o>typeof b.o?!1:a.o<b.o};
Fj=function(){this.w=0;this.o=[];this.u=!1};
dca=function(a,b){(0,g.y)(b.o,function(c){a.add(c.u,c.o,bca(c))})};
Gj=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;kh(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Hj=function(a){var b=eca;a.u&&(g.rb(a.o,function(c,d){return Ej(d,c)?1:Ej(c,d)?-1:0}),a.u=!1);
return(0,g.ui)(a.o,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
eca=function(a){var b=a.u;a=a.o;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.$a(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Jj=function(a){var b=void 0===b?!0:b;this.o=new Fj;void 0!==a&&dca(this.o,a);b&&this.o.add("v",Ij,-16)};
fca=function(a){var b=[],c=[];g.zb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
Kj=function(){if(Ij&&"unreleased"!==Ij)return Ij};
Lj=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Kj();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);xi(a)};
Mj=function(){this.o=0};
gca=function(a,b,c){(0,g.y)(a.w,function(d){var e=a.o;if(!d.o&&(d.w(b,c),d.A())){d.o=!0;var f=d.u(),k=new Fj;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.B);d=Mj.getInstance();k.add("i",d.o++);k.add("adk",e);Gj(k,f);e=new Jj(k);Lj(e)}})};
Nj=function(){this.u=this.w=this.A=this.o=0};
Oj=function(a){this.u=a=void 0===a?hca:a;this.o=(0,g.Cc)(this.u,function(){return new Nj})};
Qj=function(a,b){return Pj(a,function(c){return c.o},void 0===b?!0:b)};
Sj=function(a,b){return Rj(a,b,function(c){return c.o})};
Tj=function(a,b){return Pj(a,function(c){return c.w},void 0===b?!0:b)};
Uj=function(a,b){return Rj(a,b,function(c){return c.w})};
Vj=function(a,b){return Rj(a,b,function(c){return c.u})};
Wj=function(a){(0,g.y)(a.o,function(b){b.u=0})};
Pj=function(a,b,c){a=(0,g.Cc)(a.o,function(d){return b(d)});
return c?a:ica(a)};
Rj=function(a,b,c){var d=g.Ya(a.u,function(e){return b<=e});
return-1==d?0:c(a.o[d])};
ica=function(a){return(0,g.Cc)(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Xj=function(){this.u=new Oj;this.aa=new Nj;this.M=this.F=-1;this.ga=1E3;this.ma=new Oj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.V=this.R=-1};
Yj=function(a,b){return Tj(a.u,void 0===b?!0:b)};
ak=function(a,b,c){g.A.call(this);this.position=jca.clone();this.Ko=this.Zn();this.Qs=-2;this.OO=Date.now();this.sC=-1;this.Nl=b;this.Bo=null;this.In=!1;this.lp=null;this.opacity=-1;this.lO=c;this.EC=this.Rs=g.Ia;this.Nd=new Eba;this.Nd.Ah=a;this.Nd.o=a;this.Rj=!1;this.li={Tt:null,St:null};this.gC=!0;this.Km=null;this.Kj=!1;Di.getInstance().C++;this.ie=this.Pr();this.rC=-1;this.Ib=null;a=this.Ya=new $h;ai(a,"od",kca);ai(a,"opac",Ci).o=!0;ai(a,"sbeos",Ci).o=!0;ai(a,"prf",Ci).o=!0;ai(a,"mwt",Ci).o=
!0;ai(a,"iogeo",Ci);ai(a,"osddt",Ci).o=!0;ai(a,"nrl",Ci).o=!0;ai(a,"nrls",lca).o=!0;(a=this.Nd.Ah)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(g.Zj&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+g.jd("googleAvInapp")):a.getAttribute("data-"+g.jd("googleAvInapp")))&&(lj.getInstance().u=!0);1==this.lO?bi(this.Ya,"od",1):bi(this.Ya,"od",0)};
bk=function(a,b){if(b!=a.Kj){a.Kj=b;var c=lj.getInstance();b?c.C++:0<c.C&&c.C--}};
ck=function(a,b){if(a.Ib){if(b.getName()===a.Ib.getName())return;a.Ib.dispose();a.Ib=null}var c=b.create(a.Nd.o,a.Ya,a.Mf());if(c=null!=c&&c.Zs()?c:null)a.Ib=c};
dk=function(a,b,c){if(!a.Bo||-1==a.Nl||-1===b.u||-1===a.Bo.u)return 0;a=b.u-a.Bo.u;return a>c?0:a};
mca=function(a,b,c){if(a.Ib){a.Ib.dg();var d=a.Ib.A,e=d.F,f=e.o;if(null!=d.B){var k=d.C;a.lp=new g.Qd(k.left-f.left,k.top-f.top)}f=a.Np()?Math.max(d.o,d.A):d.o;k={};null!==e.volume&&(k.volume=e.volume);e=1===ci(a.Ya,"osddt");var l=a.Ib.getName();switch(l){case "aio":case "iem":case "exc":case "geo":case "gsv":case "mraid":case "nis":case "nio":case "omid":e=!0;break;case "a100":case "na":e=!0;break;default:e||-1!=a.Nl||Xi("av-js",{strategy_name:l,bin:Di.getInstance().o})}e?(e=a.zx(d),a.Bo=d,a.sa(f,
b,c,!1,k,e,d.w)):a.sa(f,b,c,!1,k,a.Vr(b),d.w)}};
nca=function(a){if(a.In&&a.Km){var b=1==ci(a.Ya,"od"),c=lj.getInstance().o,d=a.Km,e=a.Ib?a.Ib.getName():"ns",f=new g.Sd(c.Yc(),c.getHeight());c=a.Np();a={KO:e,lp:a.lp,gP:f,Np:c,vb:a.ie.vb,dP:b};if(b=d.u){b.dg();e=b.A;f=e.F.o;var k=null,l=null;null!=e.B&&f&&(k=e.C,k=new g.Qd(k.left-f.left,k.top-f.top),l=new g.Sd(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.o,e.A):e.o;c={KO:b.getName(),lp:k,gP:l,Np:c,dP:!1,vb:e}}else c=null;c&&gca(d,a,c)}};
oca=function(a,b,c){b&&(a.Rs=b);c&&(a.EC=c)};
ek=function(){};
gk=function(a){if(a instanceof ek)return a;if("function"==typeof a.Zf)return a.Zf(!1);if(g.La(a)){var b=0,c=new ek;c.next=function(){for(;;){if(b>=a.length)throw fk;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.hk=function(a,b,c){if(g.La(a))try{(0,g.y)(a,b,c)}catch(d){if(d!==fk)throw d;}else{a=gk(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==fk)throw d;}}};
pca=function(a){if(g.La(a))return g.gb(a);a=gk(a);var b=[];g.hk(a,function(c){b.push(c)});
return b};
qca=function(){this.A=this.o=this.w=this.u=this.B=0};
rca=function(a){var b={};var c=(0,g.H)()-a.B;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.w)&&(b.pnc=c);(c=a.A)&&(b.pnmm=c);(a=a.o)&&(b.pns=a);return b};
ik=function(){Vh.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.w=-1};
jk=function(a){return jj(a.volume)&&.1<=a.volume};
sca=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.o={};for(var b in this.u)0<this.u[b][1]&&(this.o[b]=0);this.w=0};
kk=function(a,b){var c=a.u[b],d=c[1];a.w+=c[0];0<d&&0==a.o[b]&&(a.o[b]=1)};
tca=function(a){return lk(a,g.Gb(a.u))};
lk=function(a,b){var c=0,d;for(d in a.o)g.$a(b,d)&&1==a.o[d]&&(c+=a.u[d][1],a.o[d]=2);return c};
uca=function(a){var b=0,c;for(c in a.o){var d=a.o[c];if(1==d||2==d)b+=a.u[c][1]}return b};
mk=function(){this.o=this.u=0};
nk=function(){Xj.call(this);this.w=new Nj;this.Z=this.I=this.U=0;this.G=-1;this.oa=new Nj;this.B=new Nj;this.o=new Oj;this.C=this.A=-1;this.P=new Nj;this.ga=2E3;this.ba=new mk;this.da=new mk;this.ha=new mk};
ok=function(a,b,c){var d=a.Z;aj||c||-1==a.G||(d+=b-a.G);return d};
vca=function(){this.o=!1};
pk=function(a,b){this.o=!1;this.A=a;this.G=b;this.u=0};
rk=function(a,b){if(a.w(b)){var c=qk(a.G,a.A,b);a.u|=c;return 0==c}return!1};
sk=function(a,b,c,d){Bj.call(this,a,b,c,d)};
tk=function(a,b,c){Bj.call(this,null,a,b,c);this.F=a.isActive();this.C=0};
uk=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;ak.call(this,b,c,d);this.tr=0;this.Nf={};this.yc=new sca;this.RC={};this.jd="";this.pk=null;this.oa=!1;this.o=[];this.Gi=e;this.C=f;this.A=null;this.w=-1;this.Z=this.G=void 0;this.I=this.M=0;this.V=-1;this.ga=this.da=!1;this.U=this.F=this.u=this.Hk=this.ma=0;new Oj;this.ba=this.aa=0;this.ha=-1;this.Cc=0;this.P=g.Ia;this.R=[this.Zn()];this.wa=2;this.mj={};this.mj.pause="p";this.mj.resume="r";this.mj.skip="s";this.mj.mute="m";this.mj.unmute=
"um";this.mj.exitfullscreen="ef";this.B=null};
vk=function(a){0!=a.Cc&&(a.Cc=3)};
wk=function(a){return void 0===a?a:Number(a)?gj(a,3):0};
xk=function(a,b){var c;null!=b&&b<a.R.length?c=b:c=a.R.length-1;return a.R[c]};
yk=function(a){var b=!!ci(Di.getInstance().Ya,"umt");return a.G||!b&&!a.Z?0:1};
wca=function(a,b){var c=a.Vr(b),d=a.P(a)||{};d=void 0!==d.currentTime?d.currentTime:a.M;var e=d-a.M,f=0;0<=e?(a.I+=c,a.ba+=Math.max(c-e,0),f=Math.min(e,a.I)):a.aa+=Math.abs(e);0!=e&&(a.I=0);-1==a.ha&&0<e&&(a.ha=0<=cj?Zi()-cj:-1);a.M=d;return f};
xca=function(a,b){kj(a.C,function(c){return c.A==b.A})||a.C.push(b)};
zk=function(a,b,c){return 15E3<=b?!0:a.da?(void 0===c?0:c)?!0:0<a.w?b>=a.w/2:0<a.V?b>=a.V:!1:!1};
yca=function(a){var b=gj(a.ie.vb,2),c=a.yc.w,d=a.ie,e=xk(a),f=wk(e.A),k=wk(e.C),l=wk(d.volume),m=gj(e.F,2),n=gj(e.M,2),p=gj(d.vb,2),t=gj(e.R,2),u=gj(e.V,2);d=gj(d.Wd,2);a=a.ih().clone();a.round();e=Yj(e,!1);return{fP:b,Il:c,Lo:f,Ho:k,Uk:l,Mo:m,Io:n,vb:p,No:t,Jo:u,Wd:d,position:a,kp:e}};
Bk=function(a,b){Ak(a.o,b,function(){return{fP:0,Il:void 0,Lo:-1,Ho:-1,Uk:-1,Mo:-1,Io:-1,vb:-1,No:-1,Jo:-1,Wd:-1,position:void 0,kp:[]}});
a.o[b]=yca(a)};
Ak=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Ek=function(a,b,c){var d=a.RC[b];if(null!=d)return d;d=zca(a,b);var e=Kb(Ck,function(f){return f==b});
c=Dk(a,d,d,c,Aca[Ck[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=lk(a.yc,["gdr"]));return c};
Fk=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Dk=function(a,b,c,d,e){if(a.Rj)return{"if":0};var f=a.ih().clone();f.round();var k=lj.getInstance(),l=Di.getInstance(),m=a.Pd(),n=a.Ib?a.Ib.getName():"ns",p={};p["if"]=k.w?1:void 0;p.sdk=a.A?a.A:void 0;p.t=a.OO;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Qj(m.u,!1);p.mtos=Yj(m);p.mcvt=m.aa.w;p.ps=void 0;p.vht=ok(m,Zi(),2==a.Cc);p.mut=m.oa.w;p.a=wk(a.ie.volume);p.mv=wk(m.C);p.fs=a.Kj?1:0;p.ft=m.P.o;p.at=m.B.o;p.as=.1<=m.A?1:0;p.atos=Qj(m.o);p.ssb=Qj(m.ma,!1);p.amtos=Tj(m.o);p.uac=a.ma;p.vpt=m.w.o;"nio"==
n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=zk(a,m.w.o,!0)?1:0;p.efpf=a.wa;if("gsv"==n||"nis"==n)f=a.Ib,0<f.C&&(p.nnut=f.C);p.tcm=yk(a);p.nmt=a.aa;p.bt=a.ba;p.pst=a.ha;p.vpaid=a.G;p.dur=a.w;p.vmtime=a.M;p.is=a.yc.w;1<=a.o.length&&(p.i0=a.o[0].Il,p.a0=[a.o[0].Uk],p.c0=[a.o[0].vb],p.ss0=[a.o[0].Wd],f=a.o[0].position,p.p0=f?[f.top,f.left,f.bottom,f.right]:void 0);2<=a.o.length&&(p.i1=a.o[1].Il,p.a1=Fk(a.o[1].Lo,a.o[1].Uk,a.o[1].Ho),p.c1=Fk(a.o[1].Mo,a.o[1].vb,a.o[1].Io),p.ss1=Fk(a.o[1].No,a.o[1].Wd,a.o[1].Jo),
f=a.o[1].position,p.p1=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos1=a.o[1].kp);3<=a.o.length&&(p.i2=a.o[2].Il,p.a2=Fk(a.o[2].Lo,a.o[2].Uk,a.o[2].Ho),p.c2=Fk(a.o[2].Mo,a.o[2].vb,a.o[2].Io),p.ss2=Fk(a.o[2].No,a.o[2].Wd,a.o[2].Jo),f=a.o[2].position,p.p2=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos2=a.o[2].kp);4<=a.o.length&&(p.i3=a.o[3].Il,p.a3=Fk(a.o[3].Lo,a.o[3].Uk,a.o[3].Ho),p.c3=Fk(a.o[3].Mo,a.o[3].vb,a.o[3].Io),p.ss3=Fk(a.o[3].No,a.o[3].Wd,a.o[3].Jo),f=a.o[3].position,p.p3=f?[f.top,f.left,
f.bottom,f.right]:void 0,p.mtos3=a.o[3].kp);p.cs=uca(a.yc);b&&(p.ic=tca(a.yc),p.dvpt=m.w.u,p.dvs=Vj(m.u,.5),p.dfvs=Vj(m.u,1),p.davs=Vj(m.o,.5),p.dafvs=Vj(m.o,1),c&&(m.w.u=0,Wj(m.u),Wj(m.o)),a.Ei()&&(p.dtos=m.U,p.dav=m.I,p.dtoss=a.tr+1,c&&(m.U=0,m.I=0,a.tr++)),p.dat=m.B.u,p.dft=m.P.u,c&&(m.B.u=0,m.P.u=0));p.ps=[k.B.width,k.B.height];p.bs=[k.o.Yc(),k.o.getHeight()];p.scs=[k.A.width,k.A.height];p.dom=k.domain;a.Hk&&(p.vds=a.Hk);if(0<a.C.length||a.Gi)b=g.gb(a.C),a.Gi&&b.push(a.Gi),p.pings=(0,g.Cc)(b,
function(t){return t.toString()});
b=(0,g.Cc)((0,g.ue)(a.C,function(t){return t.B()}),function(t){return t.getId()});
naa(b);p.ces=b;a.u&&(p.vmer=a.u);a.F&&(p.vmmk=a.F);a.U&&(p.vmiec=a.U);p.avms=a.Ib?a.Ib.getName():"ns";a.Ib&&g.Sb(p,a.Ib.fh());d?(p.c=gj(a.ie.vb,2),p.ss=gj(a.ie.Wd,2)):p.tth=Zi()-Gk;p.mc=gj(m.M,2);p.nc=gj(m.F,2);p.mv=wk(m.C);p.nv=wk(m.A);p.lte=gj(a.Qs,2);d=xk(a,e);Yj(m);p.qmtos=Yj(d);p.qnc=gj(d.F,2);p.qmv=wk(d.C);p.qnv=wk(d.A);p.qas=.1<=d.A?1:0;p.qi=a.jd;p.avms||(p.avms="geo");p.psm=m.ba.o;p.psv=m.ba.getValue();p.psfv=m.da.getValue();p.psa=m.ha.getValue();l=Dba(l.Ya);l.length&&(p.veid=l);a.B&&g.Sb(p,
rca(a.B));return p};
zca=function(a,b){if(g.$a(Bca,b))return!0;var c=a.Nf[b];return void 0!==c?(a.Nf[b]=!0,!c):!1};
Dca=function(){this.o={};var a=ke();Hk(this,a,document);var b=Cca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Hk(this,c,c.document);Hk(this,a.top,a.top.document)}}catch(d){}};
Cca=function(){var a=document.documentElement;try{if(!jh(ke().top))return"2";var b=[],c=ke(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Hk=function(a,b,c){fj(c,"mousedown",function(){return Eca(a)},301);
fj(b,"scroll",function(){return Fca(a)},302);
fj(c,"touchmove",function(){return Gca(a)},303);
fj(c,"mousemove",function(){return Hca(a)},304);
fj(c,"keydown",function(){return Ica(a)},305)};
Eca=function(a){g.zb(a.o,function(b){1E5<b.w||++b.w})};
Fca=function(a){g.zb(a.o,function(b){1E5<b.o||++b.o})};
Gca=function(a){g.zb(a.o,function(b){1E5<b.o||++b.o})};
Ica=function(a){g.zb(a.o,function(b){1E5<b.u||++b.u})};
Hca=function(a){g.zb(a.o,function(b){1E5<b.A||++b.A})};
g.Jk=function(a){var b=[];Ik(new Jca,a,b);return b.join("")};
Jca=function(){};
Ik=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Ik(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Kk(d,c),c.push(":"),Ik(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Kk(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Kk=function(a,b){b.push('"',a.replace(Kca,function(c){var d=Lk[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Lk[c]=d);return d}),'"')};
Mk=function(){this.o=[];this.u=[]};
Nk=function(a,b){return g.Xa(a.o,function(c){return c.jd==b})};
Ok=function(a,b){return b?g.Xa(a.o,function(c){return c.Nd.Ah==b}):null};
Lca=function(a,b){return g.Xa(a.u,function(c){return 2==c.xf()&&c.jd==b})};
Sk=function(){var a=Rk;return 0==a.o.length?a.u:0==a.u.length?a.o:g.fb(a.u,a.o)};
Tk=function(a,b){var c=1==b.xf()?a.o:a.u,d=g.Wa(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Ib&&b.Ib.Zl(),b.dispose(),!0):!1};
Mca=function(a){var b=Rk;if(Tk(b,a)){switch(a.xf()){case 0:var c=function(){return null};
case 2:c=function(){return Lca(b,a.jd)};
break;case 1:c=function(){return Nk(b,a.jd)}}for(var d=c();d;d=c())Tk(b,d)}};
Nca=function(a,b){var c=Rk,d=(0,g.ue)(a,(void 0===b?0:b)?function(e){return!Nk(c,e.jd)}:function(e){return!Ok(c,e.Nd.Ah)});
c.o.push.apply(c.o,g.ea(d))};
Uk=function(a){var b=Rk,c=[];(0,g.y)(a,function(d){kj(b.o,function(e){return e.Nd.Ah===d.Nd.Ah&&e.jd===d.jd})||(b.o.push(d),c.push(d))})};
Vk=function(){this.o=this.u=null};
Wk=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.o=g.Xa(a.u,function(d){return null!=d&&d.Hy()});
a.o&&(a.o.init(c)?yj(a.o.o):b(a.o.o.zj(),a.o));return null!=a.o};
Xk=function(a){a=Oca(a);Cj.call(this,a.length?a[a.length-1]:new uj(hi,0));this.w=a;this.u=null};
Oca=function(a){if(!a.length)return[];a=(0,g.ue)(a,function(c){return null!=c&&c.bz()});
for(var b=1;b<a.length;b++)xj(a[b-1],a[b]);return a};
Yk=function(a,b,c,d){Bj.call(this,a,b,c,d);this.I=this.G=null};
Zk=function(a,b){try{if(b.length){a.G||(a.G=Zi());var c=Pca(b),d=Gh(a.element,a.u.o.Bd),e=d.x,f=d.y;a.o=new nh(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=hj(c.intersectionRect);a.B=oh(k,a.o.left-k.left,a.o.top-k.top)}}catch(l){a.Zl(),Yi(299,l)}};
Pca=function(a){return(0,g.ui)(a,function(b,c){return b.time>c.time?b:c},a[0])};
$k=function(a,b,c,d){Yk.call(this,a,b,c,d);this.C=this.F=this.w=null};
al=function(a){return a.w&&a.w.takeRecords?a.w.takeRecords():[]};
Rca=function(a){if(!a.element)return!1;var b=a.element,c=a.u.o.Bd,d=Di.getInstance().u.o;a.w=new c.IntersectionObserver(Bi(d,function(e){return Zk(a,e)}),Qca);
d=Bi(d,function(){a.w.unobserve(b);a.w.observe(b);Zk(a,al(a))});
c.ResizeObserver?(a.F=new c.ResizeObserver(d),a.F.observe(b)):c.MutationObserver&&(a.C=new g.v.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.w.observe(b);Zk(a,al(a));return!0};
bl=function(){var a=/Chrome\/(\d+)/.exec(g.Ic);return a?parseFloat(a[1]):NaN};
cl=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Ic);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Sca=function(){var a=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ic);return a?a[1]:""};
el=function(){return dl("android")&&dl("chrome")&&!(dl("trident/")||dl("edge/"))};
fl=function(){return dl("armv7")||dl("aarch64")||dl("android")};
g.gl=function(){return dl("cobalt")};
hl=function(){return dl("cobalt")&&dl("appletv")};
il=function(){return dl("(ps3; leanback shell)")||dl("ps3")&&g.gl()};
jl=function(){return dl("(ps4; leanback shell)")||dl("ps4")&&g.gl()};
g.kl=function(){return g.gl()&&(dl("ps4 vr")||dl("ps4 pro vr"))};
ll=function(){var a=/WebKit\/([0-9]+)/.exec(g.Ic);return!!(a&&600<=parseInt(a[1],10))};
ml=function(){return dl("iemobile")||dl("windows phone")&&dl("edge")};
ol=function(){return nl&&dl("applewebkit")&&!dl("version")&&(!dl("safari")||dl("gsa/"))};
pl=function(){return dl("smart-tv")&&dl("samsung")};
dl=function(a){var b=g.Ic;return b?0<=b.toLowerCase().indexOf(a):!1};
ql=function(a){a=void 0===a?hi:a;Cj.call(this,new uj(a,2))};
sl=function(){var a=rl();uj.call(this,hi.top,a,"geo")};
rl=function(){Di.getInstance();var a=lj.getInstance();return a.w||a.u?0:2};
tl=function(){};
ul=function(){this.done=!1;this.o={QD:0,Vv:0,TT:0,Pw:0,xs:-1,pE:0,oE:0,qE:0};this.B=null;this.C=!1;this.u=null;this.F=0;this.w=new tj(this)};
wl=function(){var a=vl;a.C||(a.C=!0,Tca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.A.apply(a,g.ea(c))}),a.A())};
Uca=function(){tl.getInstance();var a=Vk.getInstance();null!=a.o&&a.o.o?yj(a.o.o):lj.getInstance().update(hi)};
xl=function(a,b,c){if(!a.done&&(a.w.cancel(),0!=b.length)){a.u=null;try{Uca();var d=Zi(),e=Di.getInstance();e.B=d;if(null!=Vk.getInstance().o)for(e=0;e<b.length;e++)mca(b[e],d,c);else Xi("",{strategy_not_selected:1,bin:e.o});for(d=0;d<b.length;d++)nca(b[d]);++a.o.Pw}finally{c?(0,g.y)(b,function(f){f.ie.vb=0}):a.w.schedule()}}};
Tca=function(a,b){if(!a.B){var c=Ti(142,b,void 0);wi();var d;Rh.visibilityState?d="visibilitychange":Rh.mozVisibilityState?d="mozvisibilitychange":Rh.webkitVisibilityState&&(d="webkitvisibilitychange");d&&ah(Rh,d,c,{capture:!1})&&(a.B=c)}};
yl=function(){var a=Vk.getInstance();if(null!=a.o){var b=a.o;(0,g.y)(Sk(),function(c){return ck(c,b)})}};
zl=function(a,b){var c=a.F;aj&&(c+=b-bj);return c};
Vca=function(a){var b=vl;a=void 0===a?function(){return{}}:a;
Si.A="av-js";Ni.o=.01;Tba([function(c){var d=Di.getInstance(),e={};e=(e.bin=d.o,e.type="error",e);d=di(d.Ya);if(!b.u){var f=hi.document,k=0<=$i?Zi()-$i:-1,l=Zi();-1==b.o.xs&&(k=l);var m=lj.getInstance(),n=Di.getInstance(),p=di(n.Ya),t=Sk();try{if(0<t.length){var u=m.o;u&&(p.bs=[u.Yc(),u.getHeight()]);var z=m.B;z&&(p.ps=[z.width,z.height]);hi.screen&&(p.ss=[hi.screen.width,hi.screen.height])}else p.url=encodeURIComponent(hi.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=$i;p.bin=n.o;void 0!==hi.google_osd_load_pub_page_exp&&(p.olpp=hi.google_osd_load_pub_page_exp);p.deb=[1,b.o.QD,b.o.Vv,b.o.Pw,b.o.xs,0,b.w.u,b.o.pE,b.o.oE,b.o.qE].join("-");p.tvt=zl(b,l);m.u&&(p.inapp=1);if(null!==hi&&hi!=hi.top){0<t.length&&(p.iframe_loc=encodeURIComponent(hi.location.href.substring(0,512)));var C=m.F;p.is=[C.Yc(),C.getHeight()]}}catch(D){p.error=1}b.u=p}u=g.Pb(b.u);z=Di.getInstance().u;1==ci(z.w,"prf")?(C=new Ai,f=z.o,k=0,-1<f.o&&(k=f.A.o.now()-f.o),C=Rg(C,1,
f.w+k),f=z.o,C=Rg(C,5,-1<f.o?f.u+1:f.u),C=Rg(C,2,z.u.o.w()),C=Rg(C,3,z.u.o.u()),C=Rg(C,4,z.u.o.o()),z={},f=new ug,k=Og(C,1),k=null==k?k:+k,k=null==k?0:k,0!==k&&Dg(f,1,k),k=Pg(C,2),0!==k&&Bg(f,2,k),k=Pg(C,3),0!==k&&Bg(f,3,k),k=Pg(C,4),0!==k&&Bg(f,4,k),k=Pg(C,5),0!==k&&yg(f,5,k),C=xg(f),z=(z.pf=g.bg(C),z)):z={};g.Sb(u,z);g.Sb(c,e,d,u,a());if(e=Kj())d={},g.Sb(c,(d.v=encodeURIComponent(e),d))}])};
Wca=function(){var a=Al||hi;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
Bl=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Dl=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?Cl(c,a):c}}};
El=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Cl(f,b,c)}};
Fl=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Gl=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
Cl=function(a,b,c){return void 0===c||c?(0,g.ue)(a,function(d,e){return g.$a(b,e)}):(0,g.Cc)(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(k,l){return k+l},0)})};
Jl=function(a,b){var c={sv:"862",cb:"j"};c.nas=Rk.o.length;c.msg=a;if(void 0!==b){var d=Hl(b);d&&(c.e=Il[d])}return c};
Kl=function(a){return cc(a,"custom_metric_viewable")};
Hl=function(a){var b=Kl(a)?"custom_metric_viewable":a.toLowerCase();return Kb(Ck,function(c){return c==b})};
Xca=function(){this.o=void 0;this.u=!1;this.w=0;this.A=-1;this.B="tos"};
Zca=function(a){try{var b=a.split(",");return b.length>g.Gb(Yca).length?null:(0,g.ui)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Ll[e[0]]||!Ll[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
$ca=function(a,b){if(void 0==a.o)return 0;switch(a.B){case "mtos":return a.u?Uj(b.o,a.o):Uj(b.u,a.o);case "tos":return a.u?Sj(b.o,a.o):Sj(b.u,a.o)}return 0};
Ml=function(a,b,c,d){pk.call(this,b,d);this.F=a;this.C=c};
Nl=function(a){pk.call(this,"fully_viewable_audible_half_duration_impression",a)};
Ol=function(a,b){pk.call(this,a,b)};
Pl=function(){this.u=this.A=this.C=this.B=this.w=this.o=""};
ada=function(){};
Ql=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.Ma(l)?f[k]=l(a):f[k]=a[l])}else g.Sb(f,a);void 0!==c&&g.Sb(f,c);a=Hj(Gj(new Fj,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Rl=function(){};
Sl=function(a,b,c){tk.call(this,a,b,c)};
Tl=function(a){a=void 0===a?hi:a;Cj.call(this,new uj(a,2))};
Ul=function(a,b,c){tk.call(this,a,b,c)};
Vl=function(a){a=void 0===a?hi:a;Cj.call(this,new uj(a,2))};
Wl=function(){uj.call(this,hi,2,"mraid");this.V=0;this.M=this.R=!1;this.C=null;this.u=ej(this.Bd);this.w.o=new nh(0,0,0,0);this.ba=!1};
Xl=function(a,b,c){a.Qh("addEventListener",b,c)};
$l=function(a){Di.getInstance().A=!!a.Qh("isViewable");Xl(a,"viewableChange",bda);"loading"===a.Qh("getState")?Xl(a,"ready",Yl):Zl(a)};
Zl=function(a){"string"===typeof a.u.af.AFMA_LIDAR?(a.R=!0,cda(a)):(a.u.compatibility=3,a.C="nc",wj(a,"w"))};
cda=function(a){a.M=!1;var b=1==ci(Di.getInstance().Ya,"rmmt"),c=!!a.Qh("isViewable");(b?!c:1)&&wi().setTimeout(Wi(524,function(){a.M||(am(a),Yi(540,Error()),a.C="mt",wj(a,"w"))}),500);
dda(a);Xl(a,a.u.af.AFMA_LIDAR,bm)};
dda=function(a){var b=1==ci(Di.getInstance().Ya,"sneio"),c=void 0!==a.u.af.AFMA_LIDAR_EXP_1,d=void 0!==a.u.af.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.af.AFMA_LIDAR_EXP_2=!0);c&&(a.u.af.AFMA_LIDAR_EXP_1=!b)};
am=function(a){a.Qh("removeEventListener",a.u.af.AFMA_LIDAR,bm);a.R=!1};
cm=function(a,b){if("loading"===a.Qh("getState"))return new g.Sd(-1,-1);var c=a.Qh(b);if(!c)return new g.Sd(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.Sd(-1,-1):new g.Sd(d,c)};
Yl=function(){try{var a=Wl.getInstance();a.Qh("removeEventListener","ready",Yl);Zl(a)}catch(b){Yi(541,b)}};
bm=function(a,b){try{var c=Wl.getInstance();c.M=!0;var d=a?new nh(a.y,a.x+a.width,a.y+a.height,a.x):new nh(0,0,0,0);var e=Zi(),f=oj();var k=new rj(e,f,c);k.o=d;k.volume=b;c.oh(k)}catch(l){Yi(542,l)}};
bda=function(a){var b=Di.getInstance(),c=Wl.getInstance();a&&!b.A&&(b.A=!0,c.ba=!0,c.C&&wj(c,"w",!0))};
dm=function(){this.I=!1;this.o=null;this.w=new Rl;this.u=null;var a={};this.F=(a.start=this.NF,a.firstquartile=this.IF,a.midpoint=this.KF,a.thirdquartile=this.OF,a.complete=this.GF,a.pause=this.fu,a.resume=this.WB,a.skip=this.MF,a.viewable_impression=this.jh,a.mute=this.Dk,a.unmute=this.Dk,a.fullscreen=this.JF,a.exitfullscreen=this.HF,a.fully_viewable_audible_half_duration_impression=this.jh,a.measurable_impression=this.jh,a.abandon=this.fu,a.engagedview=this.jh,a.impression=this.jh,a.creativeview=
this.jh,a.progress=this.Dk,a.custom_metric_viewable=this.jh,a.bufferstart=this.fu,a.bufferfinish=this.WB,a);a={};this.P=(a.overlay_resize=this.LF,a.abandon=this.ls,a.close=this.ls,a.collapse=this.ls,a.overlay_unmeasurable_impression=function(b){return Ek(b,"overlay_unmeasurable_impression",oj())},a.overlay_viewable_immediate_impression=function(b){return Ek(b,"overlay_viewable_immediate_impression",oj())},a.overlay_unviewable_impression=function(b){return Ek(b,"overlay_unviewable_impression",oj())},
a.overlay_viewable_end_of_session_impression=function(b){return Ek(b,"overlay_viewable_end_of_session_impression",oj())},a);
Di.getInstance().o=3;eda(this);this.A=!1};
em=function(a,b,c,d){b=a.zm(null,d,!0,b);b.A=c;Nca([b],a.A);return b};
fda=function(a,b,c){Bba(b);var d=a.u;(0,g.y)(b,function(e){var f=(0,g.Cc)(e.o,function(k){var l=Zca(k);if(null==l)k=null;else if(k=new Xca,null!=l.visible&&(k.o=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=dc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.w=l,k.A=-1):(k.w=-1,k.A=l);k.B=void 0===m?"tos":m}return k});
kj(f,function(k){return null==k})||xca(c,new Ml(e.id,e.event,f,d))})};
gda=function(a){a=a.u;return[new Ol("viewable_impression",a),new Nl(a)]};
hda=function(){var a=[];lj.getInstance();var b=Di.getInstance();a.push(sl.getInstance());ci(b.Ya,"mvp_lv")&&a.push(Wl.getInstance());b=[new Tl,new Vl];b.push(new Xk(a));b.push(new ql(hi));return b};
ida=function(a){if(!a.I){a.I=!0;try{var b=Zi(),c=Di.getInstance(),d=lj.getInstance();$i=b;c.w=79463069;"o"!==a.o&&(Al=dj(hi).Bd);if(Lba()){vl.o.Vv=0;vl.o.xs=Zi()-b;var e=hda(),f=Vk.getInstance();f.u=e;Wk(f,function(){fm()})?vl.done||(yl(),xj(f.o.o,a),wl()):d.w?fm():wl()}else gm=!0}catch(k){throw Rk.reset(),k;
}}};
im=function(a){vl.w.cancel();hm=a;vl.done=!0};
jm=function(a){if(a.o)return a.o;var b=Vk.getInstance().o;if(b)switch(b.getName()){case "nis":a.o="n";break;case "gsv":a.o="m"}a.o||(a.o="h");return a.o};
km=function(a,b,c){if(null==a.u)return b.Hk|=4,!1;a=qk(a.u,c,b);b.Hk|=a;return 0==a};
fm=function(){var a=[new ql(hi)],b=Vk.getInstance();b.u=a;Wk(b,function(){im("i")})?vl.done||(yl(),wl()):im("i")};
lm=function(a,b,c){if(!b.oa){var d=Ek(b,"start",oj());a=a.w.o(d).o;var e={id:"lidarv"};e.r=c;e.v="862v";qd(a,function(f,k){return e[f]="mtos"==f||"tos"==f?k:encodeURIComponent(k)});
c=Wca();qd(c,function(f,k){return e[f]=encodeURIComponent(k)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Hj(Gj(new Fj,e));Lj(c);b.oa=!0}};
mm=function(a,b,c){xl(vl,[a],!oj());Bk(a,c);4!=c&&Ak(a.R,c,a.Zn);return Ek(a,b,oj())};
eda=function(a){Vca(function(){var b=nm();null!=a.o&&(b.sdk=a.o);var c=Vk.getInstance();null!=c.o&&(b.avms=c.o.getName());return b})};
jda=function(a,b,c,d){if(a.A)var e=Nk(Rk,b);else e=Ok(Rk,c),null!==e&&e.jd!==b&&(a.il(e),e=null);e||(b=a.zm(c,Zi(),!1,b),0==Rk.u.length&&(Di.getInstance().w=79463069),Uk([b]),e=b,e.A=jm(a),d&&(e.pk=d));return e};
kda=function(a,b){b.F=0;for(var c in om)null==a[c]&&(b.F|=om[c]);pm(a,"currentTime");pm(a,"duration")};
lda=function(a){(0,g.y)(Rk.o,function(b){3==b.Cc&&a.il(b)})};
pm=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
nm=function(){var a=lj.getInstance(),b={};return b.sv="862",b["if"]=a.w?"1":"0",b.nas=String(Rk.o.length),b};
qm=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
sm=function(a){return!!(1<<a&rm)};
qda=function(){try{mda()}catch(d){}var a="a=1&b="+rm+"&",b=[],c=99;(0,g.y)(nda,function(d,e){var f=!1;try{f=d(hi)}catch(k){}b[e/32>>>0]|=f<<e%32});
(0,g.y)(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;(0,g.y)(oda,function(d){var e="false";try{e=d(hi)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
(0,g.y)(pda,function(d){var e="";try{e=g.cg(d(hi))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
mda=function(){if(!tm){var a=function(){um=!0;hi.document.removeEventListener("webdriver-evaluate",a,!0)};
hi.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){vm=!0;hi.document.removeEventListener("webdriver-evaluate-response",b,!0)};
hi.document.addEventListener("webdriver-evaluate-response",b,!0);tm=!0}};
rda=function(){this.u=-1};
wm=function(){this.u=64;this.o=Array(4);this.B=Array(this.u);this.A=this.w=0;this.reset()};
xm=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.o[0];c=a.o[1];e=a.o[2];var f=a.o[3];var k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);
k=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|
k>>>20);k=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<
5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|
k>>>21);k=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.o[0]=a.o[0]+b&4294967295;a.o[1]=a.o[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.o[2]=a.o[2]+e&4294967295;a.o[3]=a.o[3]+f&4294967295};
ym=function(){this.u=null};
zm=function(a){return function(b){var c=new wm;c.update(b+a);return pba(c.digest()).slice(-8)}};
Am=function(a,b){this.u=a;this.w=b};
qk=function(a,b,c){var d=a.o(c);if(g.Ma(d)){var e={};e=(e.sv="862",e.cb="j",e.e=sda(b),e);var f=Ek(c,b,oj());g.Sb(e,f);c.RC[b]=f;a=2==c.xf()?fca(e).join("&"):a.w.o(e).o;try{return d(c.jd,a,b),0}catch(k){return 2}}else return 1};
sda=function(a){var b=Kl(a)?"custom_metric_viewable":a;a=Kb(Ck,function(c){return c==b});
return Il[a]};
Bm=function(a,b,c){Am.call(this,a,b);this.A=c};
Cm=function(){dm.call(this);this.C=null;this.B=!1;this.G={};this.w=new ym};
tda=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&fda(a,c,b)};
uda=function(a,b,c){var d=Nk(Rk,b);d||(d=c.opt_nativeTime||-1,d=em(a,b,jm(a),d),c.opt_osdId&&(d.pk=c.opt_osdId));return d};
vda=function(a,b,c){var d=Nk(Rk,b);d||(d=em(a,b,"n",c.opt_nativeTime||-1));return d};
wda=function(a,b){var c=Nk(Rk,b);c||(c=em(a,b,"h",-1));return c};
xda=function(a){Di.getInstance();switch(jm(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
Em=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Sb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.w.o(Jl("ol",d));if(void 0!==d)if(void 0!==Hl(d))if(gm)b=Jl("ue",d);else if(ida(a),"i"==hm)b=Jl("i",d),b["if"]=0;else if(b=a.co(b,e))if(a.A&&3==b.Cc)b="stopped";else{b:{"i"==hm&&(b.Rj=!0,a.Bu());c=e.opt_fullscreen;void 0!==c&&bk(b,!!c);var f;if(c=!lj.getInstance().u)(c=nc(g.Ic,"CrKey")||nc(g.Ic,"PlayStation")||nc(g.Ic,"Roku")||Yba()||nc(g.Ic,"Xbox"))||(c=g.Ic,c=nc(c,"AppleTV")||
nc(c,"Apple TV")||nc(c,"CFNetwork")||nc(c,"tvOS")),c||(c=g.Ic,c=nc(c,"sdk_google_atv_x86")||nc(c,"Android TV")),c=!c;c&&(wi(),c=0===ii(Rh));if(f=c){switch(b.xf()){case 1:lm(a,b,"pv");break;case 2:a.uu(b)}im("pv")}c=d.toLowerCase();if(!f&&g.$a(yda,c)&&0==b.Cc){"i"!=hm&&(vl.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;cj=f="number"===typeof f?f:Zi();b.In=!0;var k=oj();b.Cc=1;b.Nf={};b.Nf.firstquartile=!1;b.Nf.midpoint=!1;b.Nf.thirdquartile=!1;b.Nf.complete=!1;b.Nf.pause=!1;b.Nf.skip=!1;b.Nf.viewable_impression=
!1;b.tr=0;k||(b.Pd().G=f);xl(vl,[b],!k)}0!=b.Cc&&g.$a(zda,c)&&!b.Rj&&b.Gi&&(f=b.Gi,f.o||(f.o=rk(f,b)));(f=b.mj[c])&&kk(b.yc,f);switch(b.xf()){case 1:var l=Kl(c)?a.F.custom_metric_viewable:a.F[c];break;case 2:l=a.P[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Jl(void 0,c);g.Sb(e,d);d=e;break b}d=void 0}3==b.Cc&&(a.A?b.Ib&&b.Ib.Zl():a.il(b));b=d}else b=Jl("nf",d);else b=void 0;else gm?b=Jl("ue"):(b=a.co(b,e))?(d=Jl(),g.Sb(d,Dk(b,!0,!1,!1)),b=d):b=Jl("nf");return"string"===typeof b?a.A&&"stopped"===b?
Dm:a.w.o(void 0):a.w.o(b)};
Fm=function(a){return Di.getInstance(),"h"!=jm(a)&&jm(a),!1};
Gm=function(a){var b={};return b.viewability=a.o,b.googleViewability=a.w,b.moatInit=a.B,b.moatViewability=a.C,b.integralAdsViewability=a.A,b.doubleVerifyViewability=a.u,b};
Hm=function(a,b,c){c=void 0===c?{}:c;a=Em(Cm.getInstance(),b,c,a);return Gm(a)};
Im=function(a,b){b=void 0===b?!1:b;var c=Cm.getInstance().co(a,{});c?vk(c):b&&(c=Cm.getInstance().zm(null,Zi(),!1,a),c.Cc=3,Uk([c]))};
Jm=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a)throw Error("Invalid URI scheme in origin: "+a);c="";
var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
Ada=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(t){for(var u=k,z=0;64>z;z+=4)u[z/4]=t[z]<<24|t[z+1]<<16|t[z+2]<<8|t[z+3];for(z=16;80>z;z++)t=u[z-3]^u[z-8]^u[z-14]^u[z-16],u[z]=(t<<1|t>>>31)&4294967295;t=e[0];var C=e[1],D=e[2],E=e[3],F=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var G=E^C&(D^E);var fa=1518500249}else G=C^D^E,fa=1859775393;else 60>z?(G=C&D|E&(C|D),fa=2400959708):(G=C^D^E,fa=3395469782);G=((t<<5|t>>>27)&4294967295)+G+F+fa+u[z]&4294967295;F=E;E=D;D=(C<<30|C>>>2)&4294967295;C=t;t=G}e[0]=e[0]+t&4294967295;e[1]=e[1]+C&4294967295;
e[2]=e[2]+D&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+F&4294967295}
function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],C=0,D=t.length;C<D;++C)z.push(t.charCodeAt(C));t=z}u||(u=t.length);z=0;if(0==n)for(;z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64;for(;z<u;)if(f[n++]=t[z++],p++,64==n)for(n=0,b(f);z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64}
function d(){var t=[],u=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var z=63;56<=z;z--)f[z]=u&255,u>>>=8;b(f);for(z=u=0;5>z;z++)for(var C=24;0<=C;C-=8)t[u++]=e[z]>>C&255;return t}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,wE:function(){for(var t=d(),u="",z=0;z<t.length;z++)u+="0123456789ABCDEF".charAt(Math.floor(t[z]/16))+"0123456789ABCDEF".charAt(t[z]%16);return u}}};
Bda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],(0,g.y)(d,function(l){e.push(l)}),Km(e.join(" "));
var f=[],k=[];(0,g.y)(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ab(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.y)(d,function(l){e.push(l)});
a=Km(e.join(" "));a=[c,a];g.ab(k)||a.push(k.join(""));return a.join("_")};
Km=function(a){var b=Ada();b.update(a);return b.wE().toLowerCase()};
g.Lm=function(){var a=[],b=Jm(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Yg(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Yg(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&c&&b?[b,Bda(Jm(d),c,a||
null)].join(" "):null}return null};
g.Mm=function(a,b){this.u={};this.o=[];this.Vh=this.w=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Mm)for(c=a.te(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Om=function(a){if(a.w!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];Nm(a.u,d)&&(a.o[c++]=d);b++}a.o.length=c}if(a.w!=a.o.length){var e={};for(c=b=0;b<a.o.length;)d=a.o[b],Nm(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};
Nm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Pm=function(a,b){this.o=this.G=this.B="";this.A=null;this.C=this.u="";this.F=!1;var c;a instanceof g.Pm?(this.F=void 0!==b?b:a.F,g.Qm(this,a.B),this.G=a.G,g.Rm(this,a.o),g.Sm(this,a.A),this.u=a.u,Tm(this,a.w.clone()),this.C=a.C):a&&(c=String(a).match(md))?(this.F=!!b,g.Qm(this,c[1]||"",!0),this.G=Um(c[2]||""),g.Rm(this,c[3]||"",!0),g.Sm(this,c[4]),this.u=Um(c[5]||"",!0),Tm(this,c[6]||"",!0),this.C=Um(c[7]||"")):(this.F=!!b,this.w=new Vm(null,this.F))};
g.Qm=function(a,b,c){a.B=c?Um(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Rm=function(a,b,c){a.o=c?Um(b,!0):b};
g.Sm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.A=b}else a.A=null};
Tm=function(a,b,c){b instanceof Vm?(a.w=b,Cda(a.w,a.F)):(c||(b=Wm(b,Dda)),a.w=new Vm(b,a.F))};
g.Xm=function(a){return a instanceof g.Pm?a.clone():new g.Pm(a,void 0)};
Um=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Wm=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Eda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Eda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Vm=function(a,b){this.u=this.o=null;this.w=a||null;this.A=!!b};
Ym=function(a){a.o||(a.o=new g.Mm,a.u=0,a.w&&qd(a.w,function(b,c){a.add(cd(b),c)}))};
$m=function(a,b){Ym(a);b=Zm(a,b);return Nm(a.o.u,b)};
g.an=function(a,b,c){a.remove(b);0<c.length&&(a.w=null,a.o.set(Zm(a,b),g.gb(c)),a.u=a.u+c.length)};
Zm=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
Cda=function(a,b){b&&!a.A&&(Ym(a),a.w=null,a.o.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.an(this,e,c))},a));
a.A=b};
cn=function(a){if(g.ec(g.fd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Pm(a)}catch(c){return null!=g.Xa(bn,function(d){return 0<a.search(d)})}return b.C.match(Fda)?!0:null!=g.Xa(bn,function(c){return null!=a.match(c)})};
g.dn=function(a,b){return a.replace(Gda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.ec(g.fd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
en=function(a){Ng(this,a,Hda,null)};
fn=function(a){Ng(this,a,null,null)};
Jda=function(a,b){var c=Vg(a,fn,1);0<c.length&&Hg(b,1,c,Ida)};
Ida=function(a,b){var c=Og(a,1);null!=c&&Dg(b,1,c);c=Og(a,2);null!=c&&Bg(b,2,c)};
gn=function(a){Ng(this,a,Kda,null)};
hn=function(a){Ng(this,a,null,Lda)};
jn=function(a){Ng(this,a,null,null)};
kn=function(a){Ng(this,a,null,null)};
ln=function(a){Ng(this,a,Mda,null)};
nn=function(a){Ng(this,a,null,mn)};
pn=function(a){Ng(this,a,null,on)};
Pda=function(a,b){var c=Tg(a,jn,1);null!=c&&Gg(b,1,c,Nda);c=Tg(a,kn,2);null!=c&&Gg(b,2,c,Oda)};
Nda=function(a,b){var c=Og(a,1);null!=c&&Fg(b,1,c);c=Og(a,2);null!=c&&Fg(b,2,c);c=Og(a,3);null!=c&&Eg(b,3,c)};
Oda=function(a,b){var c=Og(a,1);null!=c&&Fg(b,1,c);c=Og(a,2);null!=c&&Fg(b,2,c);c=Og(a,3);null!=c&&yg(b,3,c);c=Og(a,4);null!=c&&Eg(b,4,c)};
Sda=function(a,b){var c=Vg(a,nn,1);0<c.length&&Hg(b,1,c,Qda);c=Tg(a,pn,2);null!=c&&Gg(b,2,c,Rda)};
Qda=function(a,b){var c=Og(a,1);null!=c&&Fg(b,1,c);c=Og(a,2);null!=c&&yg(b,2,c);c=Og(a,3);null!=c&&Eg(b,3,c)};
Rda=function(a,b){var c=Og(a,1);null!=c&&Bg(b,1,c);c=Og(a,2);null!=c&&Dg(b,2,c);c=Tg(a,en,3);null!=c&&Gg(b,3,c,Jda)};
qn=function(){this.u=[];this.o=-1};
Tda=function(a){-1==a.o&&(a.o=(0,g.ui)(a.u,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.o};
g.rn=function(a,b,c){g.A.call(this);this.o=null;this.A=!1;this.C=a;this.B=c;this.u=b||window;this.w=(0,g.x)(this.Hx,this)};
sn=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
tn=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.I=function(a,b,c){g.A.call(this);this.o=a;this.Ad=b||0;this.u=c;this.w=(0,g.x)(this.Ix,this)};
g.un=function(a){a.stop();a.Ix()};
Wda=function(a){var b=Uda++,c={xG:{id:b,ng:a.measure,context:void 0},LJ:{id:b,ng:a.GT,context:void 0},state:{},args:void 0,xo:!1};return function(){0<arguments.length?(c.args||(c.args=[]),c.args.length=0,c.args.push.apply(c.args,arguments),c.args.push(c.state)):c.args&&0!=c.args.length?(c.args[0]=c.state,c.args.length=1):c.args=[c.state];c.xo||(c.xo=!0,vn[wn].push(c));xn||(xn=!0,window.requestAnimationFrame(Vda))}};
Vda=function(){xn=!1;var a=vn[wn],b=a.length;wn=(wn+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.xG;c.xo=!1;e.ng&&e.ng.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.LJ,c.xo=!1,e.ng&&e.ng.apply(e.context,c.args),c.state={};a.length=0};
yn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
zn=function(a){return a.classList?a.classList:yn(a).match(/\S+/g)||[]};
An=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Bn=function(a,b){return a.classList?a.classList.contains(b):g.$a(zn(a),b)};
g.J=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Bn(a,b)){var c=yn(a);An(a,c+(0<c.length?" "+b:b))}};
g.Cn=function(a,b){if(a.classList)(0,g.y)(b,function(f){g.J(a,f)});
else{var c={};(0,g.y)(zn(a),function(f){c[f]=!0});
(0,g.y)(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;An(a,d)}};
g.Dn=function(a,b){a.classList?a.classList.remove(b):g.Bn(a,b)&&An(a,(0,g.ue)(zn(a),function(c){return c!=b}).join(" "))};
g.En=function(a,b){a.classList?(0,g.y)(b,function(c){g.Dn(a,c)}):An(a,(0,g.ue)(zn(a),function(c){return!g.$a(b,c)}).join(" "))};
g.K=function(a,b,c){c?g.J(a,b):g.Dn(a,b)};
g.Fn=function(){g.gf.call(this);this.o=0;this.endTime=this.startTime=null};
Xda=function(a,b){Array.isArray(b)||(b=[b]);var c=(0,g.Cc)(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.sh(a,"transition",c.join(","))};
Gn=function(a,b,c,d,e){g.Fn.call(this);this.w=a;this.C=b;this.G=c;this.A=d;this.F=Array.isArray(e)?e:[e]};
Hn=function(a,b,c,d){return new Gn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Zda=function(a){a=oc(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Yda))return null}return a};
In=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Jn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.he&&10>document.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)};
dea=function(a){if(!a)return Ec;var b=document.createElement("div").style,c=$da(a);(0,g.y)(c,function(d){var e=g.je&&d in aea?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");cc(e,"--")||cc(e,"var")||(d=Jn(bea,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Zda(d),null!=d&&Jn(cea,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Jaa(b.cssText||"")};
$da=function(a){g.La(a)?a=g.gb(a):(a=g.Gb(a),g.db(a,"cssText"));return a};
g.Ln=function(a){var b,c=b=0,d=!1;a=a.split(eea);for(var e=0;e<a.length;e++){var f=a[e];g.Kn.test(f)?(b++,c++):fea.test(f)?d=!0:gea.test(f)?c++:hea.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Mn=function(a,b,c,d,e,f,k,l){this.o=a;this.B=b;this.w=c;this.C=d;this.A=e;this.F=f;this.u=k;this.G=l};
g.Nn=function(a,b){if(0==b)return a.o;if(1==b)return a.u;var c=g.Od(a.o,a.w,b),d=g.Od(a.w,a.A,b),e=g.Od(a.A,a.u,b);c=g.Od(c,d,b);d=g.Od(d,e,b);return g.Od(c,d,b)};
g.On=function(a,b,c){this.A=a;this.B=b;this.o=this.w=a;this.C=c||0};
g.Pn=function(a){a.o=Math.min(a.B,2*a.o);a.w=Math.min(a.B,a.o+(a.C?Math.round(a.C*(Math.random()-.5)*2*a.o):0));a.u++};
Qn=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Rn=function(a){return(a=a.exec(g.Ic))?a[1]:""};
Sn=function(a){return 0<=g.qc(iea,a)};
g.Tn=function(a){g.A.call(this);this.B=1;this.w=[];this.A=0;this.o=[];this.u={};this.C=!!a};
jea=function(a,b,c){g.uf(function(){a.apply(b,c)})};
g.Un=function(a){this.o=a};
Vn=function(a){this.o=a};
Wn=function(a){this.data=a};
Xn=function(a){return void 0===a||a instanceof Wn?a:new Wn(a)};
Yn=function(a){this.o=a};
g.Zn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.H)()||!!b&&b>(0,g.H)()};
g.$n=function(a){this.o=a};
kea=function(){};
ao=function(){};
bo=function(a){this.o=a};
co=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a};
eo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a};
go=function(a,b){this.u=a;this.o=null;if(g.he&&!g.Ld(9)){fo||(fo=new g.Mm);this.o=fo.get(a);this.o||(b?this.o=document.getElementById(b):(this.o=document.createElement("userdata"),this.o.addBehavior("#default#userData"),document.body.appendChild(this.o)),fo.set(a,this.o));try{this.o.load(this.u)}catch(c){this.o=null}}};
ho=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return lea[b]})};
io=function(a){try{a.o.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
jo=function(a,b){this.u=a;this.o=b+"::"};
g.ko=function(a){var b=new co;return b.isAvailable()?a?new jo(b,a):b:null};
lo=function(a,b){this.o=a;this.u=b};
mo=function(a){this.o=[];if(a)a:{if(a instanceof mo){var b=a.te();a=a.Ed();if(0>=this.o.length){for(var c=this.o,d=0;d<b.length;d++)c.push(new lo(b[d],a[d]));break a}}else b=g.Gb(a),a=g.Fb(a);for(d=0;d<b.length;d++)g.no(this,b[d],a[d])}};
g.no=function(a,b,c){var d=a.o;d.push(new lo(b,c));b=d.length-1;a=a.o;for(c=a[b];0<b;)if(d=b-1>>1,a[d].o>c.o)a[b]=a[d],b=d;else break;a[b]=c};
g.oo=function(){mo.call(this)};
po=function(){};
qo=function(a){Ng(this,a,mea,null)};
ro=function(a){Ng(this,a,null,null)};
nea=function(a,b){for(;ng(b)&&4!=b.u;)switch(b.w){case 1:var c=qg(b);Qg(a,1,c);break;case 2:c=qg(b);Qg(a,2,c);break;case 3:c=qg(b);Qg(a,3,c);break;case 4:c=qg(b);Qg(a,4,c);break;case 5:c=lg(b.o);Qg(a,5,c);break;default:og(b)}return a};
oea=function(a){a=a.split("");var b=[null,-1713709306,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
1537509927,-1085997285,-2004441746,null,1514390249,a,-1727948138,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
268602481,-412932477,function(c,d){for(var e=64,f=[];++e-f.length-32;)switch(e){case 94:case 95:case 96:break;case 123:e-=76;case 92:case 93:continue;case 58:e=44;case 91:break;case 46:e=95;default:f.push(String.fromCharCode(e))}c.forEach(function(k,l,m){this.push(m[l]=f[(f.indexOf(k)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
-1490306595,-1564815556,-412932477,-1052598320,1831551597,-1052598320,1173560505,1277646858,1078922486,"now",643470030,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(k,l,m){this.push(m[l]=f[(f.indexOf(k)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
-1211212009,-2052899271,-1754024156,"uJlWOl",function(c,d){c.push(d)},
1605412962,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(k,l,m){this.push(m[l]=f[(f.indexOf(k)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
null,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
1507781321,function(c){c.reverse()},
1381807086,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
a,-447989605,"now",a,-444958683,-70039377,-1411955588,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-2122552473,-410857127,-1194794,756895321,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
-1742591411,1078922486];b[0]=b;b[6]=b;b[33]=b;b[32](b[42],b[41]);b[51](b[8],b[45]);b[38](b[6],b[48]);b[51](b[39],b[19]);b[36](b[37]);b[51](b[16]);b[38](b[37],b[50]);b[34](b[8],b[40]);b[2](b[42]);b[38](b[33],b[0]);b[2](b[33]);b[17](b[47]);b[10](b[6],b[3]);b[51](b[42],b[24]);b[51](b[37],b[11]);b[11](b[34],b[53]);b[39](b[7],b[32]);b[11](b[9],b[16]);b[11](b[34],b[19]);b[31](b[38],b[26]);b[35](b[0],b[2]);b[47](b[43],b[45]);b[39](b[38],b[13]);b[31](b[34],b[28]);b[52](b[34],b[10]);b[53](b[1],b[20]);b[53](b[21],
b[35]);b[5](b[48],b[2]);b[38](b[27],b[42]);b[2](b[34],b[28]);b[23](b[5],b[36]);b[11](b[2],b[25]);b[6](b[7],b[53]);b[19](b[10],b[51]);b[6](b[10],b[45]);b[34](b[10],b[31]);b[37](b[23],b[54]);b[19](b[10],b[15]);b[19](b[7],b[27]);b[19](b[10],b[17]);b[2](b[23],b[4]);return a.join("")};
to=function(a){var b=arguments,c=so;1<b.length?c[b[0]]=b[1]:1===b.length&&Object.assign(c,b[0])};
g.L=function(a,b){return a in so?so[a]:b};
uo=function(a){return g.L(a,void 0)};
vo=function(a){var b=so.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.xo=function(a){a=wo(a);return"string"===typeof a&&"false"===a?!1:!!a};
yo=function(a,b){var c=wo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
wo=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
zo=function(){var a=[],b=g.L("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.L("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Bo=function(a,b,c){a&&(a.dataset?a.dataset[Ao(b)]=String(c):a.setAttribute("data-"+b,c))};
Co=function(a){return a?a.dataset?a.dataset[Ao("loaded")]:a.getAttribute("data-loaded"):null};
Ao=function(a){return Do[a]||(Do[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
pea=function(a){Eo.forEach(function(b){return b(a)})};
Fo=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.M(b),pea(b)}}:a};
g.M=function(a,b,c,d){var e=g.w("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),to("ERRORS",e))};
g.Go=function(a){var b=g.w("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.L("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),to("ERRORS",b))};
g.Ho=function(a,b){g.Ma(a)&&(a=Fo(a));return window.setTimeout(a,b)};
Io=function(a,b){g.Ma(a)&&(a=Fo(a));return window.setInterval(a,b)};
g.Jo=function(a){window.clearTimeout(a)};
g.Oo=function(a,b,c){var d=g.Ko();if(d){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Lo[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Mo[a]?k():g.Ho(k,0)}catch(l){g.M(l)}},c);
Lo[e]=!0;No[a]||(No[a]=[]);No[a].push(e);return e}return 0};
qea=function(a){var b=g.Oo("watchAdsInit",function(c){a.apply(void 0,arguments);g.Po(b)},void 0);
return b};
g.Po=function(a){var b=g.Ko();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete Lo[c]}))};
g.Qo=function(a,b){var c=g.Ko();return c?c.publish.apply(c,arguments):!1};
So=function(a){var b=g.Ko();if(b)if(b.clear(a),a)Ro(a);else for(var c in No)Ro(c)};
g.Ko=function(){return g.w("ytPubsubPubsubInstance")};
Ro=function(a){No[a]&&(a=No[a],(0,g.y)(a,function(b){Lo[b]&&delete Lo[b]}),a.length=0)};
g.To=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;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(rea,""),c=c.replace(sea,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else tea(a,b,c)};
tea=function(a,b,c){c=void 0===c?null:c;var d=Uo(a),e=document.getElementById(d),f=e&&Co(e),k=e&&!f;f?b&&b():(b&&(f=g.Oo(d,b),b=""+g.Pa(b),Vo[b]=f),k||(e=uea(a,d,function(){Co(e)||(Bo(e,"loaded","true"),g.Qo(d),g.Ho(g.Qa(So,d),0))},c)))};
uea=function(a,b,c,d){d=void 0===d?null:d;var e=g.oe("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);$c(e,gh(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Uo=function(a){var b=document.createElement("a");g.Yc(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+gd(a)};
cp=function(){g.Jo(Wo);g.Jo(Xo);Xo=0;Yo&&Yo.isReady()?(Zo($o),"log_event"in ap&&Zo(Object.entries(ap.log_event)),$o.clear(),delete ap.log_event):bp()};
bp=function(){g.xo("web_gel_timeout_cap")&&!Xo&&(Xo=g.Ho(cp,6E4));g.Jo(Wo);var a=g.L("LOGGING_BATCH_TIMEOUT",yo("web_gel_debounce_ms",1E4));g.xo("shorten_initial_gel_batch_timeout")&&dp&&(a=vea);Wo=g.Ho(cp,a)};
Zo=function(a){var b=Yo,c=Math.round((0,g.N)());a=g.q(a);for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;var f=e.next().value;e=g.Qb(g.ep(b));e.events=f;(f=fp[d])&&wea(e,d,f);delete fp[d];xea(e,c);g.gp(b,"log_event",e,{retry:!0,onSuccess:function(){hp=Math.round((0,g.N)()-c)}});
dp=!1}};
xea=function(a,b){a.requestTimeMs=String(b);g.xo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.xo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*ip/2));d++;d>ip&&(d=1);to("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;jp&&hp&&g.xo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:jp,roundtripMs:String(hp)});jp=
c;hp=0}};
wea=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}]};
vp=function(){if(g.xo("use_typescript_transport"))cp();else if(g.Jo(kp),g.Jo(lp),lp=0,!g.Mb(mp)){for(var a in mp){var b=np[a];if(b&&b.isReady()){var c=void 0,d=a,e=yea[d],f=Math.round((0,g.N)());for(c in mp[d]){var k=g.Qb(g.ep(b));k[e]=op(d,c);var l=pp[c];if(l)a:{var m=k,n=c;if(l.videoId)var p="VIDEO";else if(l.playlistId)p="PLAYLIST";else break a;m.credentialTransferTokenTargetId=l;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:n,scope:p}]}delete pp[c];
l=k;l.requestTimeMs=f;g.xo("unsplit_gel_payloads_in_logs")&&(l.unsplitGelPayloadsInLogs=!0);if(p=g.L("EVENT_ID",void 0))m=g.L("BATCH_CLIENT_COUNTER",void 0)||0,!m&&g.xo("web_client_counter_random_seed")&&(m=Math.floor(Math.random()*qp/2)),m++,m>qp&&(m=1),to("BATCH_CLIENT_COUNTER",m),p={serializedEventId:p,clientCounter:m},l.serializedClientEventId=p,rp&&sp&&g.xo("log_gel_rtt_web")&&(l.previousBatchInfo={serializedClientEventId:rp,roundtripMs:sp}),rp=p,sp=0;g.gp(b,d,k,{retry:zea.has(d),onSuccess:g.Qa(Aea,
(0,g.N)())})}delete mp[a];tp=!1}}g.Mb(mp)||up()}};
up=function(){g.xo("web_gel_timeout_cap")&&!lp&&(lp=g.Ho(vp,6E4));g.Jo(kp);var a=g.L("LOGGING_BATCH_TIMEOUT",yo("web_gel_debounce_ms",1E4));g.xo("shorten_initial_gel_batch_timeout")&&tp&&(a=Bea);kp=g.Ho(vp,a)};
op=function(a,b){b=void 0===b?"":b;mp[a]=mp[a]||{};mp[a][b]=mp[a][b]||[];return mp[a][b]};
Aea=function(a){sp=Math.round((0,g.N)()-a)};
xp=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=wp+"VisibilityState";if(b in a)return a[b]};
yp=function(a,b){var c;kj(a,function(d){c=b[d];return!!c});
return c};
zp=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Cea||(this[b]=a[b]);this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;if(d)try{d=d.nodeName?
d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.o=a.pageX;this.u=a.pageY}}catch(e){}};
Ap=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.o=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}};
Dea=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Kb(Bp,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Na(e[4])&&g.Na(d)&&g.Ob(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.Ep=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Dea(a,b,c,d);if(e)return e;e=++Cp.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new zp(l);if(!Ce(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new zp(l);
l.currentTarget=a;return c.call(a,l)};
k=Fo(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Dp()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Bp[e]=[a,b,c,k,d];return e};
Eea=function(a,b,c,d){var e=a||document;return g.Ep(e,b,function(f){var k=Ce(f.target,function(l){return l===e||d(l)},!0);
k&&k!==e&&!k.disabled&&(f.currentTarget=k,c.call(k,f))})};
g.Fp=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.y)(a,function(b){if(b in Bp){var c=Bp[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Dp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Bp[b]}}))};
g.Gp=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Hp=function(a){a=a||window.event;var b;a.composedPath&&g.Ma(a.composedPath)?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Gp(a)};
Ip=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
Jp=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.Qd(b,c)};
g.Kp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Lp=function(a){a=a||window.event;return!1===a.returnValue||a.iy&&a.iy()};
g.Mp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
g.Np=function(a,b,c,d){return Eea(a,b,c,function(e){return g.Bn(e,d)})};
g.Op=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ep(a,b,function(){g.Fp(e);c.apply(a,arguments)},d)};
Pp=function(a){for(var b in Bp)Bp[b][0]==a&&g.Fp(b)};
Qp=function(a){this.I=a;this.o=null;this.B=0;this.C=null;this.A=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.w=0;this.G=g.Ep(window,"mousemove",(0,g.x)(this.M,this));this.P=Io((0,g.x)(this.F,this),25)};
Fea=function(){};
Sp=function(a,b){return Rp(a,0,b)};
g.Tp=function(a,b){return Rp(a,1,b)};
Up=function(){};
g.Vp=function(){return!!g.w("yt.scheduler.instance")};
Rp=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.w("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Ho(a,c||0)};
g.Wp=function(a){if(!isNaN(a)){var b=g.w("yt.scheduler.instance.cancelJob");b?b(a):g.Jo(a)}};
Xp=function(a){var b=g.w("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
$p=function(){var a={},b=void 0===a.VF?!0:a.VF;a=void 0===a.VN?!1:a.VN;if(null==g.w("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?(0,g.H)()-Math.max(c,0):-1;g.Ga("_lact",c,window);g.Ga("_fact",c,window);-1==c&&Yp();g.Ep(document,"keydown",Yp);g.Ep(document,"keyup",Yp);g.Ep(document,"mousedown",Yp);g.Ep(document,"mouseup",Yp);b&&(a?g.Ep(window,"touchmove",function(){Zp("touchmove",200)},{passive:!0}):(g.Ep(window,"resize",function(){Zp("resize",200)}),g.Ep(window,"scroll",function(){Zp("scroll",
200)})));
new Qp(function(){Zp("mouse",100)});
g.Ep(document,"touchstart",Yp,{passive:!0});g.Ep(document,"touchend",Yp,{passive:!0})}};
Zp=function(a,b){aq[a]||(aq[a]=!0,g.Tp(function(){Yp();aq[a]=!1},b))};
Yp=function(){null==g.w("_lact",window)&&($p(),g.w("_lact",window));var a=(0,g.H)();g.Ga("_lact",a,window);-1==g.w("_fact",window)&&g.Ga("_fact",a,window);(a=g.w("ytglobal.ytUtilActivityCallback_"))&&a()};
bq=function(){var a=g.w("_lact",window),b;null==a?b=-1:b=Math.max((0,g.H)()-a,0);return b};
g.fq=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:bq())};g.xo("log_sequence_info_on_gel_web")&&d.bj&&(a=e.context,b=d.bj,cq[b]=b in cq?cq[b]+1:0,a.sequence={index:cq[b],groupKey:b},d.CE&&delete cq[d.bj]);d=d.al;g.xo("use_typescript_transport")?(a="",d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),fp[d.token]=a,a=d.token),d=$o.get(a)||[],$o.set(a,d),d.push(e),c&&
(Yo=new c),c=yo("web_logging_max_batch")||100,e=(0,g.N)(),d.length>=c?cp():10<=e-dq&&(bp(),dq=e)):(d?(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),pp[d.token]=a,d=op("log_event",d.token)):d=op("log_event"),d.push(e),c&&(np.log_event=new c),c=yo("web_logging_max_batch")||100,e=(0,g.N)(),d.length>=c?vp():10<=e-eq&&(up(),eq=e))};
gq=function(){return g.w("yt.ads.biscotti.lastId_")||""};
hq=function(a){g.Ga("yt.ads.biscotti.lastId_",a,void 0)};
iq=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length)try{var f=cd(e[0]||""),k=cd(e[1]||"");f in b?Array.isArray(b[f])?ib(b[f],k):b[f]=[b[f],k]:b[f]=k}catch(m){if("q"!=e[0]){var l=Error("Error decoding URL component");l.params={key:e[0],value:e[1]};g.M(l)}}}return b};
jq=function(a){var b=[];g.zb(a,function(c,d){var e=bd(d),f;Array.isArray(c)?f=c:f=[c];(0,g.y)(f,function(k){""==k?b.push(e):b.push(e+"="+bd(k))})});
return b.join("&")};
g.kq=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return iq(a)};
g.lq=function(a){a=a.split(",");return a=a.map(function(b){return g.kq(b)})};
g.mq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.kq(1<a.length?a[1]:a[0])):{}};
g.oq=function(a,b){return nq(a,b||{},!0)};
pq=function(a,b){return nq(a,b||{},!1)};
nq=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=g.kq(e[1]||"");for(var f in b)if(c||!Ib(e,f))e[f]=b[f];return g.yd(a,e)+d};
qq=function(a){if(!b)var b=window.location.href;var c=g.nd(1,a),d=g.od(a);c&&d?(a=a.match(md),b=b.match(md),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.od(b)==d&&(Number(g.nd(4,b))||null)==(Number(g.nd(4,a))||null):!0;return a};
rq=function(a){a||(a=document.location.href);a=g.nd(1,a);return null!==a&&"https"==a};
sq=function(a){a=g.od(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
vq=function(a){var b=tq;a=void 0===a?gq():a;b=Object.assign(uq(b),Gea(b));b.ca_type="image";a&&(b.bid=a);return b};
uq=function(a){var b={};b.dt=Hea;b.flash="0";a:{try{var c=a.o.top.location.href}catch(f){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?hi:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!hi.navigator&&"unknown"!==typeof hi.navigator.javaEnabled&&!!hi.navigator.javaEnabled&&hi.navigator.javaEnabled();hi.screen&&(b.u_h=hi.screen.height,b.u_w=hi.screen.width,b.u_ah=hi.screen.availHeight,b.u_aw=hi.screen.availWidth,b.u_cd=
hi.screen.colorDepth);hi.navigator&&hi.navigator.plugins&&(b.u_nplug=hi.navigator.plugins.length);hi.navigator&&hi.navigator.mimeTypes&&(b.u_nmime=hi.navigator.mimeTypes.length);return b};
Gea=function(a){var b=a.o;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var k=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,k,l];c=Th(!1,a.o.top);d={};e=new qn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=zba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=Tda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=ii(a.u),d.wgl=!!hi.WebGLRenderingContext,d};
Iea=function(){if(!wq)return null;var a=wq();return"open"in a?a:null};
g.yq=function(a){switch(xq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
xq=function(a){return a&&"status"in a?a.status:-1};
Jea=function(a,b){b=void 0===b?{}:b;var c=qq(a),d=g.xo("web_ajax_ignore_global_headers_if_set"),e;for(e in zq){var f=g.L(zq[e]);!f||!c&&!Aq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||Aq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||Aq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||Aq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=jq(vq(void 0));
return b};
Bq=function(a,b){var c=g.od(a),d=ld(g.nd(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=g.kq(b),f={};(0,g.y)(Kea,function(k){e[k]&&(f[k]=e[k])});
return pq(a,f)};
Aq=function(a,b){var c=g.L("CORS_HEADER_WHITELIST")||{},d=g.od(a);return d?(c=c[d])?g.$a(c,b):!1:!0};
Lea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=Cq(a,b);var d=Dq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(k){if(!e){e=!0;f&&g.Jo(f);var l=k.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,k):b.onError&&b.onError.call(p,n,k);b.Fc&&b.Fc.call(p,n,k)};
"JSON"==(b.format||"JSON")&&(l||400<=k.status&&500>k.status)?k.json().then(m,function(){m(null)}):m(null)}});
b.AA&&0<b.timeout&&(f=g.Ho(function(){e||(e=!0,g.Jo(f),b.AA.call(b.context||g.v))},b.timeout))}else g.Eq(a,b)};
g.Eq=function(a,b){var c=b.format||"JSON";a=Cq(a,b);var d=Dq(a,b),e=!1,f,k=Fq(a,function(l){if(!e){e=!0;f&&g.Jo(f);var m=g.yq(l),n=null,p=400<=l.status&&500>l.status,t=500<=l.status&&600>l.status;if(m||p||t)n=Mea(c,l,b.tT);if(m)a:if(l&&204==l.status)m=!0;else{switch(c){case "XML":m=0==parseInt(n&&n.return_code,10);break a;case "RAW":m=!0;break a}m=!!n}n=n||{};p=b.context||g.v;m?b.onSuccess&&b.onSuccess.call(p,l,n):b.onError&&b.onError.call(p,l,n);b.Fc&&b.Fc.call(p,l,n)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
b.Ud&&0<b.timeout&&(f=g.Ho(function(){e||(e=!0,k.abort(),g.Jo(f),b.Ud.call(b.context||g.v,k))},b.timeout));
return k};
Cq=function(a,b){b.wT&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.L("XSRF_FIELD_NAME",void 0),d=b.Zd;d&&(d[c]&&delete d[c],a=g.oq(a,d));return a};
Dq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.sb,k=uo("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Br||g.od(a)&&!b.withCredentials&&g.od(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.sb&&b.sb[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=g.kq(e),g.Sb(e,f),e=b.tB&&"JSON"==b.tB?JSON.stringify(e):g.wd(e));f=e||f&&!g.Mb(f);!Gq&&f&&"POST"!=b.method&&(Gq=!0,g.M(Error("AJAX request with postData should use POST")));
return e};
Mea=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?Nea(b):null)d={},(0,g.y)(b.getElementsByTagName("*"),function(e){d[e.tagName]=Oea(e)})}c&&Hq(d);
return d};
Hq=function(a){if(g.Na(a))for(var b in a)"html_content"==b||dc(b,"_html")?a[b]=g.Wc(g.Yb("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Hq(a[b])};
Nea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Oea=function(a){var b="";(0,g.y)(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.Iq=function(a,b){b.method="POST";b.sb||(b.sb={});g.Eq(a,b)};
Fq=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Fo(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Iea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.xo("debug_forward_web_query_parameters")&&(a=Bq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Jea(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Pea=function(){for(var a={},b=g.q(Object.entries(g.kq(g.L("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a};
Jq=function(){return"INNERTUBE_API_KEY"in so&&"INNERTUBE_API_VERSION"in so};
Kq=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),by:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Mj:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Hl:g.L("INNERTUBE_CONTEXT_HL",void 0),Gl:g.L("INNERTUBE_CONTEXT_GL",void 0),qo:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",ey:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)}};
Qea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.L("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.gw||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.w("gapi.auth.getToken")().rT:b=g.Lm());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.xo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Mq=function(a,b,c,d,e){Lq.set(""+a,b,{Dy:c,path:"/",domain:void 0===d?"youtube.com":d,sO:void 0===e?!1:e})};
Nq=function(a){return Lq.get(""+a,void 0)};
g.Oq=function(a,b,c){Lq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Pq=function(){var a;(a=g.ko("yt.innertube"))||(a=new go("yt.innertube"),a=a.isAvailable()?a:null);this.o=a?new Yn(a):null;this.u=document.domain||window.location.hostname};
g.Qq=function(a){this.o=null;a?this.o=a:Jq()&&(this.o=Kq())};
g.ep=function(a){a=a.o||Kq();a={client:{hl:a.Hl,gl:a.Gl,clientName:a.Mj,clientVersion:a.innertubeContextClientVersion,configInfo:a.by}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));b=g.L("EXPERIMENTS_TOKEN","");""!==b&&(a.client.experimentsToken=b);b=zo();0<b.length&&(a.request={internalExperimentFlags:b});g.L("DELEGATED_SESSION_ID")&&!g.xo("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});a.client=Object.assign(a.client,Pea());return{context:a}};
g.gp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Go(Error("Missing VISITOR_DATA when sending innertube request."));c={headers:{"Content-Type":"application/json"},method:"POST",sb:c,tB:"JSON",Ud:function(){d.Ud()},
AA:d.Ud,onSuccess:function(k,l){if(d.onSuccess)d.onSuccess(l)},
JT:function(k){if(d.onSuccess)d.onSuccess(k)},
onError:function(k,l){if(d.onError)d.onError(l)},
IT:function(k){if(d.onError)d.onError(k)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.o.qo;f&&(e=f);f=Qea(a.o.ey||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);a=g.oq(""+e+("/youtubei/"+a.o.innertubeApiVersion+"/"+b),{alt:"json",key:a.o.innertubeApiKey});try{g.xo("use_fetch_for_op_xhr")?Lea(a,c):g.Iq(a,c)}catch(k){if("InvalidAccessError"==k)g.Go(Error("An extension is blocking network request."));else throw k;}};
g.Rq=function(a,b,c){c=void 0===c?{}:c;var d=g.Qq;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Qq==g.Qq&&(d=null);g.fq(a,b,d,c)};
Sq=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.ea(c))};
Rea=function(a){g.Tq(a)};
g.Uq=function(a){g.Tq(a,"WARNING")};
g.Tq=function(a,b,c,d,e){e=void 0===e?{}:e;e.name=c||g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);e.version=d||g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=e||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;d=window&&window.yterr||!1;if(a&&d&&!(5<=Vq)&&(g.xo("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),window.console.log(d.join("\n"),
a)),0!==a.o)){d=a.u;e=a.columnNumber;if(a.args&&a.args.length)for(var f=0,k=0;k<a.args.length;k++){var l=a.args[k],m="params."+k;f+=m.length;if(l)if(Array.isArray(l))for(var n=c,p=0;p<l.length&&!(l[p]&&(f+=Wq(p,l[p],m,n),500<f));p++);else if("object"===typeof l)for(n in n=void 0,p=c,l){if(l[n]&&(f+=Wq(n,l[n],m,p),500<f))break}else c[m]=String(JSON.stringify(l)).substring(0,500),f+=c[m].length;else c[m]=String(JSON.stringify(l)).substring(0,500),f+=c[m].length;if(500<=f)break}else if(a.hasOwnProperty("params"))if(l=
a.params,"object"===typeof a.params)for(k in m=0,l){if(l[k]&&(f="params."+k,n=String(JSON.stringify(l[k])).substr(0,500),c[f]=n,m+=f.length+n.length,500<m))break}else c.params=String(JSON.stringify(l)).substr(0,500);a=Xaa(a);(d=d||a.stack)||(d="Not available");l={stackTrace:d};a.fileName&&(l.filename=a.fileName);k=a.lineNumber.toString();isNaN(k)||!e||isNaN(e)||(l.lineNumber=Number(k),l.columnNumber=Number(e),k=k+":"+e);window.yterr&&g.Ma(window.yterr)&&(a.params=c,window.yterr(a));if(!(Xq.has(a.message)||
0<=d.indexOf("/YouTubeCenter.js")||0<=d.indexOf("/mytube.js"))){if(g.xo("kevlar_gel_error_routing")){m=b;e={level:"ERROR_LEVEL_UNKNOWN",message:a.message};"ERROR"===m?e.level="ERROR_LEVEL_ERROR":"WARNING"===m&&(e.level="ERROR_LEVEL_WARNNING");l={isObfuscated:!0,browserStackInfo:l};m={pageUrl:window.location.href,kvPairs:[]};f=g.q(Object.keys(c));for(n=f.next();!n.done;n=f.next())n=n.value,m.kvPairs.push({key:"client."+n,value:String(c[n])});g.Rq("clientError",{errorMetadata:m,stackTrace:l,logMessage:e});
vp()}b={Zd:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:k,level:b,"client.name":c.name},sb:{url:g.L("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};c.version&&(b["client.version"]=c.version);if(b.sb){d&&(b.sb.stack=d);d=g.q(Object.keys(c));for(e=d.next();!e.done;e=d.next())e=e.value,b.sb["client."+e]=c[e];if(c=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.sb[e]=c[e];c=g.L("SERVER_NAME",
void 0);d=g.L("SERVER_VERSION",void 0);c&&d&&(b.sb["server.name"]=c,b.sb["server.version"]=d)}g.Eq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",b);Xq.add(a.message);Vq++}}};
Wq=function(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length};
Sea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.ea(c))};
Yq=function(){this.wc=!1;this.o=null};
Zq=function(a,b,c,d){if(d)try{a.o=new window.botguard.bg(b,c?function(){return c(b)}:g.Ia)}catch(e){g.Uq(e)}else{try{a.o=new window.botguard.bg(b)}catch(e){g.Uq(e)}c&&c(b)}};
Tea=function(a){var b=$q;a=void 0===a?{}:a;return b.o?Promise.race([new Promise(function(c){setTimeout(c,yo("botguard_async_snapshot_timeout_ms",2E3),null)}),
new Promise(function(c){b.o.invoke(c,!0,a)})]):Promise.resolve(null)};
br=function(){if("1"!=g.Hb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){ar=!0;"google_ad_status"in window?to("DCLKSTAT",1):to("DCLKSTAT",2)};
g.To("//static.doubleclick.net/instream/ad_status.js",a);Uea.push(g.Tp(function(){if(!(ar||"google_ad_status"in window)){if(a){var b=""+g.Pa(a);(b=Vo[b])&&g.Po(b)}ar=!0;to("DCLKSTAT",3)}},5E3))}};
g.cr=function(a,b,c,d,e){e=void 0===e?"":e;a&&(c&&!g.gl()?a&&(a=g.uc(g.wc(a)),"about:invalid#zClosurez"===a?a="":(a=g.Qc(Tc(a)).toString(),a=bd(g.Jk(a))),g.ec(a)||(a=g.ne("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Wd(a).body.appendChild(a))):e?Fq(a,b,"POST",e,d):g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Fq(a,b,"GET","",d):Vea(a,b)||Wea(a,b))};
Vea=function(a,b){if(!vo("web_use_beacon_api_for_ad_click_server_pings"))return!1;if(vo("use_sonic_js_library_for_v4_support")){a:{try{var c=new kaa({url:a,cP:!0});if(c.B?c.w&&c.o&&c.o[1]||c.A:c.u){var d=ld(g.nd(5,a));var e=!(!d||!d.endsWith("/aclk")||"1"!==Cd(a,"ri"));break a}}catch(f){}e=!1}if(!e)return!1}else if(e=ld(g.nd(5,a)),!e||-1==e.indexOf("/aclk")||"1"!==Cd(a,"ae")||"1"!==Cd(a,"act"))return!1;return dr(a)?(b&&b(),!0):!1};
er=function(a,b,c){c=void 0===c?"":c;dr(a,c)?b&&b():g.cr(a,b,void 0,void 0,c)};
dr=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Wea=function(a,b){var c=new Image,d=""+Xea++;fr[d]=c;c.onload=c.onerror=function(){b&&fr[d]&&b();delete fr[d]};
c.src=a};
g.hr=function(a,b){var c=g.Pb(b),d;return Lf(new zf(function(e,f){c.onSuccess=function(k){g.yq(k)?e(k):f(new gr("Request failed, status="+xq(k),"net.badstatus",k))};
c.onError=function(k){f(new gr("Unknown request error","net.unknown",k))};
c.Ud=function(k){f(new gr("Request timed out","net.timeout",k))};
d=g.Eq(a,c)}),function(e){e instanceof Qf&&d.abort();
return Ef(e)})};
g.ir=function(a,b,c,d){function e(k,l,m){return Lf(k,function(n){return 0>=l||403===xq(n.Ji)?Ef(new gr("Request retried too many times","net.retryexhausted",n.Ji)):f(m).then(function(){return e(g.hr(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(k){return new zf(function(l){setTimeout(l,k)})}
return e(g.hr(a,b),c-1,d)};
gr=function(a,b,c){Ta.call(this,a+", errorCode="+b);this.errorCode=b;this.Ji=c;this.name="PromiseAjaxError"};
jr=function(){this.u=0;this.o=null};
kr=function(a){var b=new jr;a=void 0===a?null:a;b.u=2;b.o=void 0===a?null:a;return b};
lr=function(a){var b=new jr;a=void 0===a?null:a;b.u=1;b.o=void 0===a?null:a;return b};
nr=function(a){Ta.call(this,a.message||a.description||a.name);this.isMissing=a instanceof mr;this.isTimeout=a instanceof gr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Qf};
mr=function(){Ta.call(this,"Biscotti ID is missing from server")};
Yea=function(){if("1"===g.Hb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Ef(Error("Biscotti ID is not available in private embed mode"));or||(or=Lf(g.hr("//googleads.g.doubleclick.net/pagead/id",pr).then(qr),function(a){return rr(2,a)}));
return or};
qr=function(a){a=a.responseText;if(!cc(a,")]}'"))throw new mr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new mr;a=a.id;hq(a);or=lr(a);sr(18E5,2);return a};
rr=function(a,b){var c=new nr(b);hq("");or=kr(c);0<a&&sr(12E4,a-1);throw c;};
sr=function(a,b){g.Ho(function(){Lf(g.hr("//googleads.g.doubleclick.net/pagead/id",pr).then(qr,function(c){return rr(b,c)}),g.Ia)},a)};
tr=function(){try{var a=g.w("yt.ads.biscotti.getId_");return a?a():Yea()}catch(b){return Ef(b)}};
ur=function(a){Zea||g.Rq("adsClientStateChange",{adsClientEvent:{eventType:a}})};
wr=function(){this.o=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=Nq(this.o);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(vr[d]=c.toString())}}};
yr=function(a,b){return!!((xr("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
zr=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Ar=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
xr=function(a){a=void 0!==vr[a]?vr[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
bfa=function(){var a=void 0===a?window.location.href:a;if(g.xo("kevlar_disable_theme_param"))return null;var b=ld(g.nd(5,a));if($ea(b))return"USER_INTERFACE_THEME_DARK";a=g.mq(a).theme;return afa.get(a)||null};
$ea=function(a){var b=cfa.map(function(c){return c.toLowerCase()});
return!g.xo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:dfa.hasOwnProperty(a)&&!g.xo("desktop_themeable_vulcan")};
Br=function(a){a.requestFullscreen?a.requestFullscreen(void 0):a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitEnterFullscreen&&a.webkitEnterFullscreen()};
Er=function(a){var b;Cr()?Dr()==a&&(b=document):b=a;b&&(a=yp(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
Fr=function(a){return g.Xa(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
efa=function(){var a=document;return g.Xa(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Cr=function(){return!!yp(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Dr=function(a){a=void 0===a?!1:a;var b=yp(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.Gr=function(a){g.A.call(this);this.Z=[];this.Md=a||this};
Hr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.L(b,c[e],d)};
g.Ir=function(a){for(;a.Z.length;){var b=a.Z.pop();b.target.removeEventListener(b.name,b.Fb)}};
g.O=function(a){a=void 0===a?!1:a;g.A.call(this);this.Oh=new g.Tn(a);g.B(this,this.Oh)};
Jr=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Kr=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Mr=function(a,b,c,d){g.O.call(this);this.w=!!b;this.C=a;this.I=c||a;this.G=!!d;this.o=new g.Gr(this);g.B(this,this.o);this.B=this.F=null;this.A=this.u=!1;b&&(g.je&&a.setAttribute("draggable","true"),a.style.touchAction="none");Lr(this)};
Nr=function(a,b,c){a.o.L(a.I,b,c,void 0,!a.w)};
Lr=function(a){a.B=null;a.F=null;Nr(a,Or("over"),a.Ty);Nr(a,"touchstart",a.Vs);a.w&&Nr(a,Or("down"),a.JJ)};
Pr=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.F)return d}return null};
Or=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Qr=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Pb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Pb(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
ffa=function(a){a instanceof Qr||(a=new Qr(a));return a};
Sr=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=(0,g.H)();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Rr)for(b=1,c=0;c<Rr.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Rr.charCodeAt(c),b++;return a};
Tr=function(){for(var a=Sr(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Ur=function(){return(0,g.Cc)(Sr(),function(a){return(a&15).toString(16)}).join("")};
Wf=function(){};
Vr=function(a){this.Ld=a};
g.Wr=function(a){return new Vr({trackingParams:a})};
Xr=function(a){var b=gfa++;return new Vr({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
g.Yr=function(a){var b={};void 0!==a.Ld.trackingParams?b.trackingParams=a.Ld.trackingParams:(b.veType=a.Ld.veType,void 0!==a.Ld.veCounter&&(b.veCounter=a.Ld.veCounter),void 0!==a.Ld.elementIndex&&(b.elementIndex=a.Ld.elementIndex));void 0!==a.Ld.dataElement&&(b.dataElement=g.Yr(a.Ld.dataElement));void 0!==a.Ld.youtubeData&&(b.youtubeData=a.Ld.youtubeData);return b};
Zr=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
$r=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
as=function(a){return g.L($r(void 0===a?0:a),void 0)};
g.bs=function(a){a=as(void 0===a?0:a);var b;a?b=new Vr({veType:a,youtubeData:void 0}):b=null;return b};
cs=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},to("csn-to-ctt-auth-info",a));return a};
g.ds=function(a){a=void 0===a?0:a;var b=g.L(Zr(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.xo("kevlar_client_side_screens")||g.xo("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
hfa=function(a,b,c){var d=cs();(c=g.ds(c))&&delete d[c];b&&(d[a]=b)};
g.es=function(a){return cs()[a]};
gs=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(Zr(c))||b!==g.L($r(c)))if(hfa(a,d,c),to(Zr(c),a),to($r(c),b),0==c||g.xo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&g.fq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:fs,clientScreenNonce:a},g.Qq)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
hs=function(a,b){this.version=a;this.args=b};
is=function(a,b){this.topic=a;this.o=b};
ks=function(a,b){var c=js();c&&c.publish.call(c,a.toString(),a,b)};
ifa=function(a,b,c){var d=js();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.w("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(ls[e])try{if(k&&a instanceof is&&a!=f)try{var m=a.o,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Vh){var p=new m;m.Vh=p.version}var t=m.Vh}catch(u){}if(!t||n.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.gb(n.args))}catch(u){throw u.message="yt.pubsub2.Data.deserialize(): "+u.message,u;}}catch(u){throw u.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+u.message,u;}b.call(c||window,k)}catch(u){g.M(u)}},ms[a.toString()]?g.Vp()?g.Tp(l):g.Ho(l,0):l())});
ls[e]=!0;ns[a.toString()]||(ns[a.toString()]=[]);ns[a.toString()].push(e);return e};
ps=function(a,b,c){var d=ifa(a,function(e){b.apply(c,arguments);os(d)},c);
return d};
os=function(a){var b=js();b&&("number"===typeof a&&(a=[a]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete ls[c]}))};
js=function(){return g.w("ytPubsub2Pubsub2Instance")};
qs=function(a){hs.call(this,1,arguments);this.csn=a};
g.ts=function(a,b,c,d){c={csn:b,parentVe:g.Yr(c),childVes:(0,g.Cc)(d,function(f){return g.Yr(f)})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=g.Yr(e.value),(g.Mb(e)||!e.trackingParams&&!e.veType)&&g.Tq(Error("Child VE logged with no data"),"WARNING",void 0,void 0,void 0);d={al:g.es(b),bj:b};"UNDEFINED_CSN"==b?g.rs("visualElementAttached",c,d):a?g.fq("visualElementAttached",c,a,d):g.Rq("visualElementAttached",c,d)};
g.us=function(a,b){var c=g.xo("use_default_events_client")?void 0:g.Qq,d={csn:a,ve:g.Yr(b),eventType:1},e={al:g.es(a),bj:a};"UNDEFINED_CSN"==a?g.rs("visualElementShown",d,e):c?g.fq("visualElementShown",d,c,e):g.Rq("visualElementShown",d,e)};
vs=function(a,b,c){c={csn:b,ve:g.Yr(c),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"};var d={al:g.es(b),bj:b};"UNDEFINED_CSN"==b?g.rs("visualElementGestured",c,d):a?g.fq("visualElementGestured",c,a,d):g.Rq("visualElementGestured",c,d)};
g.rs=function(a,b,c){ws.push({payloadName:a,payload:b,options:c});xs||(xs=ps(jfa,kfa))};
kfa=function(a){if(ws){for(var b=g.q(ws),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,g.fq(c.payloadName,c.payload,null,c.options));ws.length=0}xs=0};
g.ys=function(a,b,c){g.ts(g.xo("use_default_events_client")?void 0:g.Qq,a,b,[c])};
g.zs=function(a,b){vs(g.xo("use_default_events_client")?void 0:g.Qq,a,b)};
Yf=function(){if(!As){As=new Xf;var a=yo("client_streamz_web_flush_count",-1);-1!==a&&(As.C=a)}return As};
g.Ds=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.H)()+1E3*d:0;if((d=d?(0,g.Bs)():(0,g.Cs)())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Es=function(a){var b=(0,g.Cs)(),c=(0,g.Bs)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.Fs=function(){return g.Es("yt-remote-session-screen-id")};
Is=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Gs(a)||c.some(function(e){return!Gs(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Hs(a,d.value);return a};
Hs=function(a,b){for(var c in b)if(Gs(b[c])){if(c in a&&!Gs(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Hs(a[c],b[c])}else if(Js(b[c])){if(c in a&&!Js(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Ks(a[c],b[c])}else a[c]=b[c];return a};
Ks=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Gs(d)?a.push(Hs({},d)):Js(d)?a.push(Ks([],d)):a.push(d);return a};
Gs=function(a){return"object"===typeof a&&!Array.isArray(a)};
Js=function(a){return"object"===typeof a&&Array.isArray(a)};
lfa=function(){Ls=(0,g.N)()};
Ms=function(a){a=void 0===a?{}:a;var b=$q;a=void 0===a?{}:a;return b.o?b.o.invoke(void 0,void 0,a):null};
mfa=function(a){a=void 0===a?{}:a;return Tea(a)};
nfa=function(a,b){var c=this;this.videoData=a;this.w=b;var d={};this.u=(d.c1a=function(){if(Ns(c)){var e="";c.videoData&&c.videoData.He&&(e=c.videoData.He+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);e=(e=c.w?Ms(e):g.w("yt.abuse.player.invokeBotguard")(e))?"r1a="+e:null}else e=null;return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=function(e){e=Number(e.c);
var f=c.w?parseInt(g.L("DCLKSTAT",0),10):(f=g.w("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.He?this.o=g.kq(this.videoData.He):this.o={}};
ofa=function(a){if(a.videoData&&a.videoData.He){for(var b=[a.videoData.He],c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.o[d]&&a.u[d]&&(d=a.u[d](a.o))&&b.push(d);return b.join("&")}return null};
qfa=function(a){var b={};Object.assign(b,a.u);"c1b"in a.o&&(b.c1a=function(){return pfa(a)});
if(a.videoData&&a.videoData.He){for(var c=[a.videoData.He],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.o[e]&&b[e]&&(e=b[e](a.o))&&c.push(e);return new Promise(function(f){Promise.all(c).then(function(k){f(k.filter(function(l){return!!l}).join("&"))})})}return Promise.resolve(null)};
Ns=function(a){return a.w?!!$q.o:(a=g.w("yt.abuse.player.botguardInitialized"))&&a()};
pfa=function(a){if(!Ns(a))return Promise.resolve(null);var b="";a.videoData&&a.videoData.He&&(b=a.videoData.He+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){mfa(c).then(function(e){e?d("r1a="+e):d(null)})})};
Os=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}};
Ps=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
Qs=function(a){var b=void 0===b?!1:b;if(a instanceof Os)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Tq(a):g.Uq(a);return new Os(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
Rs=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.Ss=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.o=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};
g.Ts=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Sous-titres automatiques)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Us=function(a,b){this.id=a;this.tb=b;this.captionTracks=[];this.Pn=this.sr=this.o=null;this.dr="UNKNOWN"};
Vs=function(a,b,c){this.sampleRate=a||0;this.o=b||0;this.spatialAudioType=c||0};
rfa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
Ys=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;this.quality=f||Ws(a,b);this.fc=g.Xs[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!=d&&1!=d?0:e;this.projectionType=d?2==d&&2==e?3:d:0;(a=k)||(a=g.Xs[this.quality],0==a?a="Auto":(b=this.fps,c=this.projectionType,a=a+(2==c||3==c||4==c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.o=l||"";this.primaries=m||"";this.streamType=n||0;this.isAccelerated=!1};
Zs=function(a){return 1280<=a.width||720<=a.height};
$s=function(a){return"smpte2084"==a.o||"arib-std-b67"==a.o};
Ws=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=at[0],f=0;f<at.length;f++){var k=at[f],l=g.Xs[k];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=k}return"tiny"};
dt=function(a,b,c,d,e,f,k,l,m){this.id=a;this.containerType=bt(b);this.mimeType=b;this.o=k||0;this.w=l||0;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.tb=void 0===e?null:e;this.captionTrack=void 0===m?null:m;this.zc=void 0===f?null:f;this.u=sfa[ct(this)]||"";this.A=!0};
ct=function(a){return a.id.split(";",1)[0]};
et=function(a){return"9"==a.u||"("==a.u||"9h"==a.u||"(h"==a.u};
ft=function(a){return"9h"==a.u||"(h"==a.u};
g.gt=function(a){return 1==a.containerType};
ht=function(a){return"application/x-mpegURL"==a.mimeType};
it=function(a){return/(opus|vorbis|mp4a|dtse|ac-3|ec-3)/.test(a)};
jt=function(a){return a.includes("vtt")||a.includes("text/mp4")};
bt=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
kt=function(a,b,c,d,e){var f=new Vs;b in g.Xs||(b="small");d&&e?(e=parseInt(e,10),d=parseInt(d,10)):(e=g.Xs[b],d=Math.round(16*e/9));b=new Ys(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new dt(c,a,f,b)};
mt=function(){return g.Ba(function(a){lt||(lt=new Promise(function(b,c){var d=indexedDB.open("yt-player-local-media",3);d.onerror=function(e){"VersionError"==e.target.error.name?(e=indexedDB.open("yt-player-local-media"),e.onsuccess=function(f){return void b(f.target.result)},e.onerror=c):c()};
d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();lt=null};
b(f)};
d.onupgradeneeded=function(e){var f=e.target.result;2>e.oldVersion&&(f.createObjectStore("index"),f.createObjectStore("media"));3>e.oldVersion&&f.createObjectStore("metadata")}}));
return a["return"](lt)})};
tfa=function(a){var b;return g.Ba(function(c){if(1==c.o)return g.ta(c,mt(),2);b=c.u;return c["return"](nt(b.transaction("media").objectStore("media").get(a)))})};
ot=function(a,b){var c,d;return g.Ba(function(e){c=IDBKeyRange.bound(b+"|",b+"~");d=a.objectStore("index").getAll(c);return e["return"](new Promise(function(f,k){d.onsuccess=function(l){return void f(l.target.result.join(","))};
d.onerror=k}))})};
ufa=function(){var a;return g.Ba(function(b){if(1==b.o)return lt?b=g.ta(b,lt,3):(b.o=2,b=void 0),b;2!=b.o&&(a=b.u,a.close(),lt=null);return b["return"](new Promise(function(c,d){var e=indexedDB.deleteDatabase("yt-player-local-media");e.onsuccess=function(){return void c()};
e.onerror=function(){return void d()}}))})};
qt=function(a){if(!pt||(void 0===a?0:a)){a=window.localStorage["yt-player-lv"]||"{}";try{pt=JSON.parse(a)}catch(b){pt={}}}return pt};
rt=function(a){return qt()[a]||0};
vfa=function(){var a=qt();return Object.keys(a)};
tt=function(a){var b=qt();return Object.keys(b).filter(function(c){return b[c]===a})};
ut=function(a,b){var c=qt(!0);0!==b?c[a]=b:delete c[a];c=JSON.stringify(pt);window.localStorage["yt-player-lv"]=c};
wfa=function(a,b){var c,d;g.Ba(function(e){if(1==e.o)return g.ta(e,mt(),2);c=e.u;d=c.transaction(["metadata"],"readwrite");d.objectStore("metadata").put(b,a);return e["return"](new Promise(function(f,k){d.oncomplete=function(){return void f()};
d.onabort=k}))})};
wt=function(a,b,c,d,e){var f,k,l,m,n,p,t;return g.Ba(function(u){if(1==u.o)return f=""+a+"|"+b.id+"|"+c,k=vt(a,b.isVideo()),l=vt(a,!b.isVideo()),g.ta(u,mt(),2);m=u.u;n=m.transaction(["index","media"],"readwrite");n.objectStore("media").put(d,f);n.objectStore("index").put(e,k);t=(p=!!e&&-1==e.indexOf("dlt"))?n.objectStore("index").get(l):null;return u["return"](new Promise(function(z,C){n.oncomplete=function(){var D=2,E;if(E=p&&t)E=t.result,E=!!E&&-1==E.indexOf("dlt");E&&(D=1,ut(a,D));z(D)};
n.onabort=C}))})};
xfa=function(a,b,c){var d,e,f;g.Ba(function(k){if(1==k.o)return d=vt(a,b),g.ta(k,mt(),2);e=k.u;f=e.transaction("index","readwrite");f.objectStore("index").put(c,d);return k["return"](new Promise(function(l,m){f.oncomplete=function(){return void l()};
f.onabort=m}))})};
yfa=function(a){var b,c;return g.Ba(function(d){if(1==d.o)return g.ta(d,mt(),2);b=d.u;c=b.transaction("index");return d["return"](ot(c,a))})};
zfa=function(a,b,c){return g.Ba(function(d){return d["return"](tfa(""+a+"|"+b+"|"+c))})};
Afa=function(a){var b,c;return g.Ba(function(d){if(1==d.o)return g.ta(d,mt(),2);b=d.u;c=b.transaction(["index","metadata"]);return d["return"](xt(c,a))})};
Bfa=function(){var a,b;return g.Ba(function(c){if(1==c.o)return g.ta(c,mt(),2);a=c.u;b=a.transaction(["index","metadata"]);return c["return"](Promise.all(vfa().map(function(d){return xt(b,d)})))})};
xt=function(a,b){var c,d,e,f,k,l,m,n;return g.Ba(function(p){if(1==p.o)return c=nt(a.objectStore("metadata").get(b)),g.ta(p,ot(a,b),2);if(3!=p.o){d=p.u;e={videoId:b,totalSize:0,downloadedSize:0,status:rt(b),details:null};if(!d.length)return p["return"](e);f=g.lq(d);k=g.q(f);for(l=k.next();!l.done;l=k.next())m=l.value,e.totalSize+=parseInt(m.mket,10)*parseInt(m.avbr,10),e.downloadedSize+=m.hasOwnProperty("dlt")?(parseInt(m.dlt,10)||0)*parseInt(m.avbr,10):parseInt(m.mket,10)*parseInt(m.avbr,10);n=e;
return g.ta(p,c,3)}n.details=p.u||null;return p["return"](e)})};
zt=function(a){var b,c,d;return g.Ba(function(e){if(1==e.o)return ut(a,0),g.ta(e,mt(),2);b=e.u;c=b.transaction(["index","media"],"readwrite");d=IDBKeyRange.bound(a+"|",a+"~");return e["return"](new Promise(function(f,k){c.objectStore("index")["delete"](d);c.objectStore("media")["delete"](d);c.oncomplete=function(){return void f()};
c.onabort=k}))})};
Cfa=function(){return g.Ba(function(a){delete window.localStorage["yt-player-lv"];pt=null;return a["return"](ufa())})};
vt=function(a,b){return""+a+"|"+(b?"v":"a")};
nt=function(a){return new Promise(function(b,c){a.onsuccess=function(){return void b(a.result)};
a.onerror=c})};
Dfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=iq(b||"");var c={};(0,g.y)(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.P=function(a,b){return"true"==a.flags[b]};
g.Q=function(a,b){return parseFloat(a.flags[b])||0};
g.At=function(a,b){var c=a.flags[b];return c?c.toString():""};
Bt=function(){var a=g.w("yt.player.utils.videoElement_");a||(a=g.oe("VIDEO"),g.Ga("yt.player.utils.videoElement_",a,void 0));return a};
Ct=function(a){var b=Bt();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Et=function(a){if(/opus/.test(a)&&(g.Dt&&!Sn("38")||g.Dt&&dl("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!jl())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Ct(a)};
Efa=function(a){try{var b=Et('video/mp4; codecs="avc1.42001E"')||Et('video/webm; codecs="vp9"');return(Et('audio/mp4; codecs="mp4a.40.2"')||Et('audio/webm; codecs="opus"'))&&(b||!a)||Ct('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
Ft=function(){var a=Bt();return!!a.webkitSupportsPresentationMode&&g.Ma(a.webkitSetPresentationMode)};
Gt=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
Ht=function(){var a=Bt();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
It=function(a,b){this.o=a;this.u=b;this.w=0;Object.defineProperty(this,"timestampOffset",{get:this.kP,set:this.oP});Object.defineProperty(this,"buffered",{get:this.iP})};
Ffa=function(){this.length=0};
Jt=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.u=NaN;this.w=0;Object.defineProperty(this,"duration",{get:this.jP,set:this.nP});Object.defineProperty(this,"readyState",{get:this.lP});this.o.addEventListener("webkitsourceclose",(0,g.x)(this.mP,this),!0)};
Kt=function(){this.length=1};
Lt=function(){this.buffered=new Kt};
Mt=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Nt=function(a,b,c){b=void 0===b?",":b;c=void 0===c?0:c;var d=[];if(a)for(c=c&&c<a.length?a.length-c:0;c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
Ot=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
Pt=function(a,b){return 0<=Ot(a,b)};
Qt=function(a,b){if(!a)return NaN;var c=Ot(a,b);return 0<=c?a.end(c):NaN};
Rt=function(a){return a&&a.length?a.end(a.length-1):NaN};
St=function(a,b){var c=Qt(a,b);return 0<=c?c-b:0};
Tt=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return Mt(d,e)};
Ut=function(a,b,c){g.O.call(this);var d=this;this.o=a;this.I=b;this.G=c;this.P=this.w=this.B=null;this.C=0;this.A=function(e){return d.S(e.type,d)};
this.supports(3)&&(this.o.addEventListener("updateend",this.A),this.o.addEventListener("error",this.A));this.M=0;this.F=Mt([],[]);this.u=!1};
Vt=function(a,b,c,d){g.O.call(this);var e=this;this.o=a;this.I={error:function(){!e.ea()&&e.isActive()&&e.S("error",e)},
updateend:function(){!e.ea()&&e.isActive()&&e.S("updateend",e)}};
Jr(this.o,this.I);this.u=b;this.G=c;this.C=0;this.B=Infinity;this.A=0;this.F=this.w=d};
Wt=function(a,b){this.o=a;this.u=void 0===b?!1:b;this.w=!1};
Xt=function(a,b){b=void 0===b?!1:b;g.A.call(this);this.B=new g.Gr(this);g.B(this,this.B);this.u=this.o=null;this.w=a;var c=this.w;c=c.NI?c.o.webkitMediaSourceURL:window.URL.createObjectURL(c);this.Sl=new Wt(c,!0);this.C=b;this.A=null;Hr(this.B,this.w,["sourceopen","webkitsourceopen"],this.kN);Hr(this.B,this.w,["sourceclose","webkitsourceclose"],this.jN)};
Gfa=function(a,b){Yt(a)?g.uf(function(){return b(a)}):a.A=b};
Zt=function(a,b){try{a.w.duration=b}catch(c){}};
$t=function(a){return!!a.o||!!a.u};
Yt=function(a){try{return"open"==a.w.readyState}catch(b){return!1}};
au=function(a){try{return"closed"==a.w.readyState}catch(b){return!0}};
bu=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
cu=function(a){return a.o?!!a.o.supports(0):bu()};
du=function(a,b,c,d){if(!a.o||!a.u)return null;var e=a.o.isView()?a.o.o:a.o,f=a.u.isView()?a.u.o:a.u,k=new Xt(a.w,!0);k.Sl=a.Sl;e=new Vt(e,b,c,d);b=new Vt(f,b,c,d);k.o=e;k.u=b;g.B(k,e);g.B(k,b);Yt(a)||a.o.Mp(a.o.Bb());return k};
eu=function(a,b,c){this.o=a;this.M=b;this.R=void 0===c?!1:c;this.C=!!g.w("cast.receiver.platform.canDisplayType");b=g.w("cast.receiver.platform.getValue");this.u=!this.C&&b&&b("max-video-resolution-vpx")||null;this.B={};this.G=!1;this.I=new Set;this.F=!0;this.w=!g.P(a,"html5_disable_protected_hdr");this.A=!1;this.P=g.P(a,"html5_disable_vp9_encrypted")};
Hfa=function(a,b){var c=ct(b);if("0"===c)return!0;var d=b.mimeType;if(g.P(a.o,"html5_disable_codec_on_platform_errors")){if(a.I.has(b.u))return!1}else if("1"==b.u&&a.G)return!1;var e;if(e=b.video&&($s(b.video)||"bt2020"==b.video.primaries))e=!(fu(a,gu)||(g.P(a.o,"html5_hdr_matchmedia_killswitch")?24<window.screen.pixelDepth:24<window.screen.pixelDepth&&window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches));if(e||"338"===c&&!(g.Dt?Sn(53):g.hu&&Sn(64)))return!1;e={};b.video&&(b.video.width&&
(e[iu.name]=b.video.width),b.video.height&&(e[ju.name]=b.video.height),b.video.fps&&(e[ku.name]=b.video.fps),b.video.o&&(e[gu.name]=b.video.o),b.o&&(e[lu.name]=8*b.o),"("==b.u&&(e[mu.name]="subsample"),2==b.video.projectionType||3==b.video.projectionType||4==b.video.projectionType)&&(e[nu.name]="true");b.audio&&b.audio.o&&(e[ou.name]=b.audio.o);a.A&&et(b)&&(e[pu.name]="allowed");for(var f in qu){var k=qu[f],l;if(l=e[k.name])(l=k==gu&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.P(a.o,"html5_ignore_h264_framerate_cap")&&
k==ku&&("H"==l.u||"h"==l.u)),l=!(l||k==nu&&!g.P(a.o,"html5_decode_to_texture_cap"));if(l)if(fu(a,k))if(a.u){if(a.u[k.name]<e[k.name])return!1}else d=d+"; "+k.name+"="+e[k.name];else if(ft(b)&&k==gu)return!1}!g.P(a.o,"disable_html5_cast_hdcp_filter2")&&a.C&&b.video&&1080<b.video.fc&&b.zc&&(d+="; hdcp=2.2");return"227"===c&&!g.P(a.o,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.P(a.o,"html5_enable_new_hvc_enc")?!1:ru(a,d)};
tu=function(){var a=el()&&!Sn(29),b=dl("google tv")&&dl("chrome")&&!Sn(30),c=hl();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.uu=function(a,b){b=void 0===b?!1:b;return tu()&&ru(a,'audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(Bt(),"application/x-mpegURL")?!0:!1};
fu=function(a,b){b.name in a.B||(a.B[b.name]=Ifa(a,b));return a.B[b.name]};
Ifa=function(a,b){if(a.u)return!!a.u[b.name];if(b==lu&&g.P(a.o,"html5_ignore_bad_bitrates")&&ru(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!ru(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b==vu)return ru(a,"video/mp4; codecs="+b.valid)&&!ru(a,"video/mp4; codecs="+b.Se);if(b.video){var c='video/webm; codecs="vp9"';ru(a,c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',ru(a,c)||(c='audio/mp4; codecs="mp4a.40.2"');
return ru(a,c+"; "+b.name+"="+b.valid)&&!ru(a,c+"; "+b.name+"="+b.Se)};
ru=function(a,b){return a.C?window.cast.receiver.platform.canDisplayType(b):Et(b)};
Jfa=function(a){return g.wu||pl()&&!a?!1:!0};
xu=function(a){this.og=a};
yu=function(a,b,c){if(c)return kr();var d={};c=Bt();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.ge().mimeType)){var f=e.og.ya().quality;if(!d[f]||d[f].ge().Bc())d[f]=e}var k=[];d.auto&&k.push(d.auto);(0,g.y)(at,function(l){(l=d[l])&&k.push(l)});
return k.length?lr(k):kr()};
zu=function(a,b,c,d){this.u=a||0;this.o=b||0;this.w=c;this.reason=d};
Au=function(a,b){return a.u==b.u&&a.o==b.o&&a.w==b.w&&a.reason==b.reason};
Bu=function(a,b,c,d){return new zu(g.Xs[a]||0,g.Xs[b]||0,c,d)};
Cu=function(a){var b=g.Xs.auto;return a.u==b&&a.o==b};
Eu=function(a,b){if(b.w&&Cu(b))return Du;if(b.w||Cu(a))return b;if(a.w||Cu(b))return a;var c=a.u&&b.u?Math.max(a.u,b.u):a.u||b.u,d=a.o&&b.o?Math.min(a.o,b.o):a.o||b.o;c=Math.min(c,d);return c==a.u&&d==a.o?a:new zu(c,d,!1,d==a.o?a.reason:b.reason)};
Fu=function(a){var b=a.o||a.u;return Lb(Kfa,function(c){return g.Xs[c]==b})||"auto"};
Gu=function(a,b){var c=g.Xs[b];return a.u<=c&&(!a.o||a.o>=c)};
Iu=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return Hu(a)};
Hu=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
Ju=function(a,b,c,d){if(g.Na(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
Lu=function(){var a="ytp-id-"+Ku.toString();Ku++;return a};
g.Mu=function(a){g.A.call(this);this.o={};this.Qa={};this.element=this.createElement(a)};
g.Nu=function(a){g.te(a.element)};
Ou=function(a,b,c,d){if("{{"===d.substr(0,2))a.Qa[d]=[b,c];else return d};
Lfa=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.D?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(k,l){0<l&&c.push(g.oe("BR"));c.push(g.pe(k))}):c.push(g.pe(e))}return c};
Pu=function(a,b,c,d){if("child"===c){g.re(b);var e;void 0===d?e=void 0:!Array.isArray(d)||d&&"string"===typeof d.D?e=[d]:e=d;c=Lfa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.sh(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.uc(g.wc(a))),b.setAttribute(c,a))};
g.R=function(a){g.Mu.call(this,a);this.ha=!0;this.P=!1;this.listeners=[]};
g.Qu=function(a,b){b?a.show():a.hide()};
g.Ru=function(a){g.R.call(this,a);this.ba=new g.O;g.B(this,this.ba)};
g.Tu=function(a,b,c,d){g.Ru.call(this,a);this.priority=b;c&&g.Su(this,c);d&&this.qb(d)};
g.Uu=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{D:c?"a":"div",Y:b,O:a,J:[{D:"div",H:"ytp-menuitem-icon",W:"{{icon}}"},{D:"div",H:"ytp-menuitem-label",W:"{{label}}"},{D:"div",H:"ytp-menuitem-content",W:"{{content}}"}]}};
Vu=function(a,b){a.la("icon",b)};
g.Su=function(a,b){a.la("label",b)};
Wu=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.La=a;this.u=e;this.startTime=b;this.o=k||0;this.range=f||null;this.pending=l||!1};
g.Xu=function(){this.segments=[]};
Yu=function(a,b){if(b>a.jb())a.segments=[];else{var c=g.Wa(a.segments,function(d){return d.La>=b},a);
0<c&&a.segments.splice(0,c)}};
Zu=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.o=e?0:8;this.dataOffset=this.offset+this.o;this.u=e};
$u=function(a){var b=a.data.getUint8(a.offset+a.o);a.o+=1;return b};
av=function(a){var b=a.data.getUint16(a.offset+a.o);a.o+=2;return b};
bv=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
cv=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
dv=function(a){var b=a.data;var c=a.offset+a.o;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b};
ev=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.o;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.o+a.data.byteOffset,c-a.o);a.o=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
Mfa=function(a){this.data=new DataView(new ArrayBuffer(a));this.o=0};
fv=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.o,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.o+=d};
gv=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.o=f};
iv=function(a,b){this.o=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.u=hv(this,"Sequence-Number");this.F=hv(this,"Segment-Count");this.G=this.o["Segment-Durations-Ms"]||"";this.ingestionTime=hv(this,"Ingestion-Walltime-Us")/1E6;this.w=(hv(this,"First-Frame-Time-Us")+hv(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ee=hv(this,"Target-Duration-Us")/1E6;this.C="T"==this.o["Stream-Finished"];this.A="T"==this.o.Streamable;this.cryptoPeriodIndex=hv(this,"Crypto-Period-Index");
this.B=hv(this,"Crypto-Period-Seconds")};
jv=function(a){return parseInt(a.o["Start-Media-Time-Us"],10)/1E6||0};
hv=function(a,b){return parseInt(a.o[b],10)||0};
Nfa=function(a,b){this.o=a;this.duration=b};
kv=function(a,b,c,d,e){this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.o=e;e.getUint32(4)};
lv=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
nv=function(a,b){var c=g.mv(a,0,1952868452),d=g.mv(a,0,1953658222);if(c&&d){c.skip(1);var e=$u(c)<<16|av(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.o;var f=cv(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=$u(d)<<16|av(d);if(c&256){e=c&1;f=c&4;var k=c&512,l=c&1024,m=c&2048;c=cv(d);e&&d.skip(4);f&&d.skip(4);e=(k?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)k=d.o,l=cv(d),d.data.setUint32(d.offset+k,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
pv=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.mv(a,0,1836476516))?ov(a):NaN};
Ofa=function(a){var b=g.mv(a,0,1937011556);if(!b)return null;b=qv(a,b.dataOffset+8,1635148593);if(!b)return null;var c=qv(a,b.dataOffset+78,1936995172),d=qv(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),$u(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=qv(a,d.dataOffset,1886547818)){var k=qv(a,d.dataOffset,1886546020),l=qv(a,d.dataOffset,2037673328);if(!l&&(l=qv(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
bv(k)/65536,f=bv(k)/65536,e=bv(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new kv(b,c,f,e,a)}return null};
qv=function(a,b,c){for(;rv(a,b);){var d=tv(a,b);if(d.type==c)return d;b+=d.size}return null};
g.mv=function(a,b,c){for(;rv(a,b);){var d=tv(a,b);if(d.type==c)return d;b=uv(d.type)?b+8:b+d.size}return null};
vv=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
tv=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Zu(a,b,c,d)};
ov=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
wv=function(a){a=new Zu(a.data,a.offset,a.size,a.type,a.u);var b=$u(a);a.skip(7);var c=cv(a);if(0==b){b=cv(a);var d=cv(a)}else b=dv(a),d=dv(a);a.skip(2);for(var e=av(a),f=[],k=[],l=0;l<e;l++){var m=cv(a);f.push(m);k.push(cv(a));a.skip(4)}return{Wp:c,zE:b,ax:d,tu:f,Sp:k}};
rv=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593==c||1635148611==c||1937126244==c||1936995172==c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
uv=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
xv=function(a){a.skip(4);var b=ev(a,0),c=ev(a,0),d=cv(a),e=cv(a),f=cv(a),k=cv(a),l=ev(a);return{rO:b,value:c,Wp:d,NT:e,vT:f,id:k,Fy:l,offset:a.offset}};
yv=function(a,b){for(var c=qv(a,0,b);c;)c.markAsSkip(),c=qv(a,c.offset+c.size,b)};
zv=function(a,b){for(var c=0,d=[];rv(a,c);){var e=tv(a,c);e.type==b&&d.push(e);c=uv(e.type)?c+8:c+e.size}return d};
Pfa=function(a,b){var c=g.mv(a,0,1937011556),d=g.mv(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.mv(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var k=e.getUint32(f.dataOffset+12);if(1701733217!=k&&1701733238!=k)return null;k=new Mfa(a.byteLength+d);fv(k,a,0,c.offset+12);k.data.setInt32(k.o,2);k.o+=4;fv(k,a,c.offset+16,c.size-16);fv(k,e,e.byteOffset+f.dataOffset+8,d);fv(k,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.mv(a,0,e.value),k.data.setUint32(e.offset,e.size+d);d=g.mv(k.data,0,1953654136);k.data.setUint32(d.offset+16,2);return k.data};
Av=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Bv=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return String.fromCharCode.apply(null,b)};
Cv=function(a,b){this.u=a;this.o=0;this.w=b||0};
Dv=function(a){return a.o>=a.u.byteLength};
Jv=function(a,b,c){var d=new Cv(c);if(!Ev(d,a))return!1;d=Fv(d);if(!Gv(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.w+d.o;var e=Hv(d,!0);d=a+(d.w+d.o-b)+e;d=9<d?Iv(d-9,8):Iv(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Qfa=function(a){var b=new Cv(a);Kv(b);if(Ev(b,[408125543,374648427,174,224]))b=Fv(b);else return null;for(var c=a=null;!Dv(b);){var d=Hv(b,!1);if(21432==d)switch(Lv(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=Fv(b):Mv(b)}if(!c)return null;for(var e,f=d=b=null;!Dv(c);)switch(Hv(c,!1)){case 30321:if(3!=Lv(c))return null;break;case 30324:b=Nv(c);break;case 30323:f=Nv(c);break;case 30325:d=Nv(c);break;case 30322:e=Hv(c,!0);e=Ov(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:Mv(c)}return e?new kv(a,b,f,d,e):null};
Fv=function(a){var b=Hv(a,!0),c=a.u.byteOffset+a.o;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new Cv(c,a.w+a.o);a.o+=b;return c};
Lv=function(a){for(var b=Hv(a,!0),c=Pv(a),d=1;d<b;d++)c=256*c+Pv(a);return c};
Nv=function(a){var b=Hv(a,!0),c=0;4==b?c=a.u.getFloat32(a.o):8==b&&(c=a.u.getFloat64(a.o));a.o+=b;return c};
Qv=function(a){var b=Hv(a,!0);return Bv(Ov(a,b))};
Pv=function(a){return a.u.getUint8(a.o++)};
Hv=function(a,b){var c=Pv(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Pv(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Pv(a),d*=128;return b?c-d:c};
Mv=function(a){var b=Hv(a,!0);a.o+=b};
Kv=function(a){var b=a.o;a.o=0;var c=!1;try{Gv(a,440786851)&&(a.o=0,Gv(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.o=0,c=!1,g.Go(d);else throw d;}a.o=b;return c};
Rfa=function(a){if(!Gv(a,440786851,!0))return null;var b=a.o;Hv(a,!1);var c=Hv(a,!0)+a.o-b;a.o=b+c;if(!Gv(a,408125543,!1))return null;Hv(a,!0);if(!Gv(a,357149030,!0))return null;var d=a.o;Hv(a,!1);var e=Hv(a,!0)+a.o-d;a.o=d+e;if(!Gv(a,374648427,!0))return null;var f=a.o;Hv(a,!1);var k=Hv(a,!0)+a.o-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l};
Rv=function(a){var b=a.o,c={Ou:1E6,Pu:1E9,duration:0,yu:0,Bm:0};if(!Gv(a,408125543))return a.o=b,null;c.yu=Hv(a,!0);c.Bm=a.w+a.o;if(Gv(a,357149030))for(var d=Fv(a);!Dv(d);){var e=Hv(d,!1);2807729==e?c.Ou=Lv(d):2807730==e?c.Pu=Lv(d):17545==e?c.duration=Nv(d):Mv(d)}else return a.o=b,null;a.o=b;return c};
Tv=function(a,b,c){var d=a.o,e=[];if(!Gv(a,475249515))return a.o=d,null;for(var f=Fv(a);Gv(f,187);){var k=Fv(f);if(Gv(k,179)){var l=Lv(k);if(Gv(k,183)){k=Fv(k);for(var m=b;Gv(k,241);)m=Lv(k)+b;e.push({ki:m,Gn:l})}}}if(0<e.length&&c==e[0].ki)for(Sv&&g.Go(Error("opus_oboe")),b=0;b<e.length;b++)e[b].ki+=1;a.o=d;return e};
Uv=function(a){var b=a.o;a.o=0;var c=1E6;Ev(a,[408125543,357149030,2807729])&&(c=Lv(a));a.o=b;return c};
Sfa=function(a,b){var c=a.o;a.o=0;if(160!=a.u.getUint8(a.o)&&!Vv(a)||!Gv(a,160))return a.o=c,NaN;Hv(a,!0);var d=a.o;if(!Gv(a,161))return a.o=c,NaN;Hv(a,!0);Pv(a);var e=Pv(a)<<8|Pv(a);a.o=d;if(!Gv(a,155))return a.o=c,NaN;d=Lv(a);a.o=c;return(e+d)*b/1E9};
Vv=function(a){if(!Wv(a)||!Gv(a,524531317))return!1;Hv(a,!0);return!0};
Wv=function(a){if(Kv(a)){if(!Gv(a,408125543))return!1;Hv(a,!0)}return!0};
Ev=function(a,b){for(var c=0;c<b.length;c++){if(!Gv(a,b[c]))return!1;c!=b.length-1&&Hv(a,!0)}return!0};
Gv=function(a,b,c){c=void 0===c?!1:c;if(Dv(a))return!1;for(var d=a.o;Hv(a,!1)!=b;)if(Mv(a),d=a.o,Dv(a))return!1;c&&(a.o=d);return!0};
Iv=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
Ov=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.o,b);a.o+=b;return c};
Xv=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Yv=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new Xv(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Zv=function(a,b){return new Xv(a,a+b-1)};
aw=function(a,b,c,d,e,f,k,l,m,n,p){this.o=b;this.range=c;this.type=a;this.F="";this.u=-1;this.F=d;this.u=0<=e?e:-1;this.startTime=f||0;this.duration=k||0;this.w=l||0;this.Oa=0<=m?m:this.range?this.range.length:NaN;this.C=!!n;a=this.range?this.w+this.Oa==this.range.length:void 0===p?!!this.Oa:p;this.A=a;this.range?(this.G=this.startTime+this.duration*this.w/this.range.length,this.I=this.duration*this.Oa/this.range.length,this.B=this.G+this.I):$v(this);this.P=[]};
$v=function(a){a.G=a.startTime;a.I=a.duration;a.B=a.G+a.I};
Tfa=function(a,b,c){var d=!(!b||b.o!=a.o||b.type!=a.type||b.u!=a.u);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.w+b.Oa==a.w+a.Oa:d};
bw=function(a){return 1==a.type||2==a.type};
cw=function(a){return 3==a.type||6==a.type};
dw=function(a,b){return a.o==b.o?a.range&&b.range?a.range.start+a.w+a.Oa==b.range.start+b.w:a.u==b.u?a.w+a.Oa==b.w:a.u+1==b.u&&0==b.w&&a.A:!1};
ew=function(a,b){return dw(a,b)||Pd(a.B,b.G)||a.u+1==b.u&&0==b.w&&a.A?!0:!1};
fw=function(a){return a.u+(a.A?1:0)};
Ufa=function(a){1==a.length||(0,g.ti)(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Xv(a[0].range.start+a[0].w,b.range.start+b.w+b.Oa-1)};
hw=function(a){a=gw(a);var b="";g.zb(a,function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
gw=function(a){var b={};b.itag=ct(a.o.info);b.type=a.type;b.seg=String(a.u);a.range&&(b.range=""+(a.range.start+a.w)+"-"+(a.range.start+a.w+a.Oa-1));b.time=""+a.G.toFixed(1)+"-"+(a.G+a.I).toFixed(1);b.off=String(a.w);b.len=String(a.Oa);a.A&&(b.end="1");a.C&&(b.eos="1");return b};
iw=function(a,b){var c=b.u;a.F="updateWithEmsg";a.u=c;b.C&&(a.C=b.C)};
jw=function(a,b){var c=b.La;a.F="updateWithSegmentInfo";a.u=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,$v(a)};
kw=function(a){var b=this;a=void 0===a?[]:a;this.o=[];this.w=this.u=0;this.A=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
lw=function(a,b){if(0===a.o.length)return!1;var c=a.o[a.o.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
mw=function(a,b){for(var c=g.q(b.o),d=c.next();!d.done;d=c.next())a.append(d.value)};
nw=function(a){a.A=void 0;a.u=0;a.w=0};
ow=function(a,b,c){a.isFocused(b);return b-a.w+c<=a.o[a.u].length};
pw=function(a){if(!a.A){var b=a.o[a.u];a.A=new DataView(b.buffer,b.byteOffset,b.length)}return a.A};
qw=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!ow(a,b,c)){var d=a.u,e=a.w;a.focus(b+c-1);e=new Uint8Array(a.w+a.o[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.o[k],f),f+=a.o[k].length;a.o.splice(d,a.u-d+1,e);nw(a);a.focus(b)}d=a.o[a.u];return new DataView(d.buffer,d.byteOffset+b-a.w,c)};
rw=function(a,b,c){a=qw(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
tw=function(a){a=rw(a,0,-1);var b=new Uint8Array(a.length);b.set(a);return b};
uw=function(a,b){a.focus(b);return a.o[a.u][b-a.w]};
vw=function(a,b){a.focus(b);return ow(a,b,4)?pw(a).getUint32(b-a.w):256*(256*(256*uw(a,b)+uw(a,b+1))+uw(a,b+2))+uw(a,b+3)};
ww=function(a,b,c){this.info=a;this.o=b instanceof kw?b:new kw([b]);this.o.getLength();this.w=c;this.u=null;this.A=-1;this.B=0};
xw=function(a){return qw(a.o)};
yw=function(a,b){if(1!=a.info.o.info.containerType||0!=a.info.w||!a.info.A)return!0;for(var c=xw(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
zw=function(a,b,c){var d;if(!(d=!dw(a.info,b.info)||a.info.A)){if(c=void 0===c?!1:c)c=b.o,c=!(c.o.length?lw(a.o,c.o[0]):1);d=c}if(d)return null;c=new aw(a.info.type,a.info.o,a.info.range,a.info.F,a.info.u,a.info.startTime,a.info.duration,a.info.w,a.info.Oa,a.info.C,a.info.A);d=b.info;c.Oa+=d.Oa;c.range&&(c.I+=d.I);c.B=d.B;c.A=d.A;c.C=c.C||d.C;d=new kw;mw(d,a.o);mw(d,b.o);c=new ww(c,d,a.w);c.u=b.u||a.u;if(a=c.info.range)a=c.o,a=!(1===a.o.length&&0<a.o[0].byteOffset);a&&(c.w=!1);return c};
Aw=function(a){g.gt(a.info.o.info)||a.info.o.info.Bc();if(-1!=a.A)return a.A;if(a.u&&jv(a.u))return a.A=jv(a.u),a.A;if(g.gt(a.info.o.info)){var b=xw(a);for(var c=a.info.o.o,d=NaN,e=NaN,f=0;rv(b,f);){var k=tv(b,f);1936286840==k.type?e=k.data.getUint32(k.dataOffset+8):1836476516==k.type?e=ov(k):1952867444==k.type&&isNaN(d)&&(d=vv(k));f=uv(k.type)?f+8:f+k.size}!e&&c&&(e=pv(c));b=d/e}else b=new Cv(xw(a)),c=a.w?b:new Cv(new DataView(a.info.o.o.buffer)),d=Uv(c),c=b.o,b.o=0,Vv(b)?Gv(b,231)?(d=Lv(b)*d/1E9,
b.o=c,b=d):(b.o=c,b=NaN):(b.o=c,b=NaN);a.A=b||a.info.G;return a.A};
Cw=function(a,b){0<a.B&&(b-=a.B);var c=Aw(a)+b;Bw(a,c);a.B=b};
Bw=function(a,b){g.gt(a.info.o.info)||a.info.o.info.Bc();a.A=b;if(g.gt(a.info.o.info)){for(var c=xw(a),d=a.info.o.o,e=NaN,f=NaN,k=0;rv(c,k);){var l=tv(c,k);isNaN(e)&&(1936286840==l.type?e=l.data.getUint32(l.dataOffset+8):1836476516==l.type&&(e=ov(l)));if(1952867444==l.type){!e&&d&&(e=pv(d));var m=vv(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}k=uv(l.type)?k+8:k+l.size}return!0}c=new Cv(xw(a));e=a.w?c:new Cv(new DataView(a.info.o.o.buffer));d=b;f=Uv(e);e=c.o;c.o=0;if(Vv(c)&&Gv(c,231))if(k=Hv(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.u.setUint8(c.o+f,d&255),d>>>=8;c.o=e;c=!0}else c=!1;return c};
Dw=function(a){g.gt(a.info.o.info)||a.info.o.info.Bc();if(a.u&&6==a.info.type)return a.u.Ee;if(g.gt(a.info.o.info)){var b=xw(a);var c=0;b=zv(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=wv(d.value),c+=d.Sp[0]/d.Wp;c=c||NaN;if(!(0<=c))a:{c=xw(a);b=a.info.o.o;d=0;for(var e,f=0;rv(c,d);){var k=tv(c,d);if(1836476516==k.type)e=ov(k);else if(1836019558==k.type){!e&&b&&(e=pv(b));if(!e){c=NaN;break a}var l=qv(k.data,k.dataOffset,1953653094),m=e,n=qv(l.data,l.dataOffset,1952868452);l=qv(l.data,
l.dataOffset,1953658222);var p=bv(n);bv(n);p&2&&bv(n);n=p&8?bv(n):0;var t=bv(l),u=t&1;p=t&4;var z=t&256,C=t&512,D=t&1024;t&=2048;var E=cv(l);u&&bv(l);p&&bv(l);for(var F=u=0;F<E;F++){var G=z?bv(l):n;C&&bv(l);p&&0==F||!D||bv(l);t&&bv(l);u+=G}f+=u/m}d=uv(k.type)?d+8:d+k.size}c=f||NaN}}else e=new Cv(xw(a)),c=a.w?e:new Cv(new DataView(a.info.o.o.buffer)),c=Sfa(e,Uv(c));return c||a.info.I};
Ew=function(a){var b=xw(a);var c=(c=g.mv(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.o.o,c=(b=g.mv(b,0,1836476516))?ov(b):a?pv(a):NaN);return c};
Fw=function(a){if(!a.u){g.gt(a.info.o.info)||a.info.o.info.Bc();if(g.gt(a.info.o.info)){var b=xw(a),c=qv(b,0,1701671783);if(c){var d=xv(c);var e=d.rO;d=lv(d.Fy);if(b=qv(b,c.offset+c.size,1701671783)){b=xv(b);for(var f in b)if(c=lv(b.Fy),d&&c)for(var k in c)d[k]=c[k]}e=d?new iv(d,e):null}else e=null}else{e=new Cv(xw(a));f=e.o;e.o=0;d=k=null;if(Ev(e,[408125543,307544935,29555,26568]))for(b=Fv(e);!Dv(b);)c=Hv(b,!1),17543==c?d=lv(Qv(b)):17827==c?k=Qv(b):Mv(b);e.o=f;e=d?new iv(d,k):null}a.u=e}};
Gw=function(){this.o=!1;this.u=0;this.nd=!1};
Hw=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Jj?!1:c.Jj;var e=new Gw;e.o=a.fa("html5_streaming_xhr_no_mp4_holdback_chunk");e.u=g.Q(a.experiments,"html5_time_based_consolidation_ms");e.nd=d||c;return e};
g.Iw=function(){this.A=new Gw;this.NB=this.KB=!1;this.Nn=2;this.C=20971520;this.G=8388608;this.B=120;this.za=3145728;this.V=62914560;this.Aa=10485760;this.Tn=this.Ea=0;this.I=NaN;this.Yf=0;this.Yh=this.Jv=2;this.Md=3;this.WC=2;this.ba=2097152;this.UC=1048576;this.da=!1;this.P=1800;this.Ic=5;this.Mc=10;this.U=15;this.ac=1;this.o=1.15;this.u=1.05;this.sy=!0;this.aa=!1;this.eD=.8;this.en=this.Ta=!1;this.Ca=6;this.hn=this.oa=!1;this.Xf=.5;this.qe=0;this.Qg=this.Wa=!1;this.od=this.Kc=0;this.Gv=2;this.Ma=
5E3;this.pd=0;this.ma=!1;this.M=.5;this.rb=2;this.nb=this.Dv=0;this.Ev=1.5;this.Fv=this.Vf=.5;this.qc=15;this.nn=1;this.ov=this.aA=this.Ka=!1;this.Hn=0;this.cn=this.gg=this.Bv=this.QC=this.gn=this.BC=this.pC=this.fA=!1;this.qd=0;this.tv=this.jn=this.zv=this.Yb=!1;this.Hc=0;this.Uc=this.Z=this.XB=this.Mh=this.R=this.yb=this.Ia=this.kn=this.Kv=this.rd=this.ha=this.Cv=this.Tc=this.xv=!1;this.bn=!0;this.pe=!1;this.w="";this.CD=1048576;this.fn=this.po=this.Rb=this.F=!1;this.Jc=46800;this.Qa=this.jv=this.Rg=
this.zo=this.pc=this.wa=!1;this.Iv=!0;this.ga=this.an=this.TC=this.kv=this.Wf=this.Qk=this.Pk=this.Av=!1;this.Xb=0;this.dn=""};
Vfa=function(a,b){1080<b.ya().fc&&!a.KB&&(a.C=36700160,a.G=5242880,a.za=10485760,a.ba=4194304,a.KB=!0);2160<b.ya().fc&&!a.NB&&(a.C=104857600,a.I=13107200,a.NB=!0);a.UC=Math.max(65536,Math.min(a.ba,5*b.o))};
Wfa=function(){this.w=this.o=this.u=this.started=this.A=0};
Jw=function(a,b){a[b]||(a[b]=new Wfa);return a[b]};
Lw=function(a){a=a.split("");Kw.qz(a,21);Kw.Ru(a,5);Kw.Ru(a,20);Kw.qz(a,55);Kw.OM(a,2);Kw.Ru(a,52);Kw.qz(a,18);Kw.Ru(a,66);Kw.qz(a,22);return a.join("")};
Mw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Uq(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Ow=function(a,b,c){return b&&b.test(a)||Nw&&c&&c.test(a)?!0:!1};
Qw=function(a){return(a=Pw&&Pw.exec(a))?a[0]:""};
Rw=function(a){var b=void 0===b?!1:b;return Mw(Ow(a,Xfa,null),a,b,"Trusted Stream URL")};
g.Sw=function(a){var b=void 0===b?!1:b;return Mw(Ow(a,Yfa,null),a,b,"Trusted Image URL")};
Tw=function(a){var b=void 0===b?!1:b;return Mw(Ow(a,Zfa,null),a,b,"Trusted Promoted Video Domain URL")};
Uw=function(a,b){b=void 0===b?!1:b;return Mw(Ow(a,$fa,null),a,b,"Captions URL")};
Vw=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);g.Rm(a,document.location.hostname);document.location.port&&g.Sm(a,document.location.port);return a.toString()};
Ww=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);return a.toString()};
Xw=function(a){this.u=a;this.A=this.path=this.w="";this.o={};this.url=""};
Zw=function(a){Yw(a);return a.A};
$w=function(a){Yw(a);return"local"===a.w};
ax=function(a){Yw(a);return Cb(a.o,function(b){return null!==b})};
bx=function(a){Yw(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.jc();b=new g.Pm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.o.replace(/^[^.]*/,""),g.Rm(b,"r"+d+"---"+a[1]+c),b=new Xw(b.toString()),b.set("fallback_count","1"),b;d=b.o.match("\\.a1\\.googlevideo\\.com$");b.o.match("\\.googlevideo\\.com$")?(g.Rm(b,"redirector.googlevideo.com"),c=b.toString()):b.o.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Rm(b,"www.youtube.com"),c=b.toString()):c=Vw(c);b=new Xw(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Yw=function(a){if(a.u){if(!Rw(a.u)&&!a.u.startsWith("local"))throw Error("Untrusted URL: "+a.u);var b=g.Xm(a.u);a.w=b.B;a.A=b.o+(null!=b.A?":"+b.A:"");var c=b.u;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.o;a.o=cx(c);g.Ra(a.o,dx(b.w.toString()));g.Ra(a.o,d);"index.m3u8"===a.o.file&&(delete a.o.file,a.path+=
"/file/index.m3u8");a.u="";a.url=""}};
aga=function(a){Yw(a);var b=a.w+(a.w?"://":"//")+a.A+a.path;if(ax(a)){var c=[];g.zb(a.o,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
cx=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&ex(c,a[b],a[b+1]);return c};
dx=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?ex(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
ex=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
fx=function(a){this.Ie=a;this.o={};this.url=""};
cga=function(a,b){var c=b.indexOf("?");if(0<c){var d=dx(b.substr(c+1));g.zb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=cx(b);g.zb(c,function(e,f){this.set(f,e)},a)};
dga=function(a){var b=a.Ie.jc(),c=[];g.zb(a.o,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=ax(a.Ie)?"&":"?";return b+a+d};
gx=function(a,b){var c=new Xw(b),d=c.get("req_id");d&&a.set("req_id",d);g.zb(a.o,function(e,f){c.set(f,null)});
return c};
ega=function(a){this.A=a.clone();this.o=a;this.w=null;this.B=this.u=0};
ix=function(a,b,c){var d=Jw(c,Zw(a.o));if(d.u>=b.Gv||1<=d.o)if(a=hx(a),c=Jw(c,Zw(a)),c.u+c.o<=d.u+d.o)return!0;return!1};
fga=function(a,b){var c=b?hx(a):a.o;return new fx(c)};
hx=function(a){a.w||(a.w=bx(a.A));return a.w};
jx=function(a){return 1<a.u?a.B+1E3*Math.pow(1.6,a.u-1)<(0,g.N)():!0};
g.kx=function(a,b,c){b.Ie===a.o&&(a.o=gx(b,c));b.Ie===a.w&&(a.w=gx(b,c))};
lx=function(a,b){this.u=a[0].o.u;this.w=b||"";this.B="";this.o=a;this.range=this.o[0].range&&0<this.o[0].Oa?Ufa(this.o):null;this.A=this.xd=NaN;this.C=this.requestId=null};
mx=function(a){return!bw(a.o[a.o.length-1])};
nx=function(a){return 4==a.o[a.o.length-1].type};
g.ox=function(a,b,c,d){if(a.B)var e=new fx(new Xw(a.B));else/http[s]?:\/\//.test(a.w)?e=new fx(new Xw(a.w)):(b=null===a.C?ix(a.u,b,c):a.C,e=fga(a.u,b),a.w&&cga(e,a.w));(d=d||a.range)&&e.set("range",d.toString());a.requestId&&e.set("req_id",a.requestId);isNaN(a.xd)||e.set("headm",a.xd.toString());isNaN(a.A)||e.set("mffa",a.A+"ms");a.F&&g.zb(a.F,function(f,k){e.set(k,f)});
return e};
px=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.I*a.o.info.o)};
gga=function(a,b,c){return a.range?new Xv(a.range.start+b,a.range.end):Zv(b,c)};
qx=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.o=null;this.B=!1;this.C=null;this.I=0;this.u=new ega(a);this.A=null;this.P=NaN;this.w=null};
rx=function(a,b,c,d,e,f){f=void 0===f?0:f;qx.call(this,a,b,d);this.index=e||new g.Xu;this.Ee=f;this.R=c;this.G=!0;if(this.F=!c)this.B=!0};
sx=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
tx=function(a){if(a.tl())return!1;a=a.dd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
ux=function(a){return a.A.nd||a.A.nd?a.aa&&sx()?3:2:a.gg?-1:1};
vx=function(a){var b=void 0===a?{}:a;a=void 0===b.Ee?0:b.Ee;var c=void 0===b.dw?!1:b.dw,d=void 0===b.xr?0:b.xr,e=void 0===b.Hd?0:b.Hd,f=void 0===b.Bg?Infinity:b.Bg,k=void 0===b.Ey?0:b.Ey;b=void 0===b.ze?!1:b.ze;this.segments=[];this.o=a;this.C=d;this.u=c;this.w=-1;this.B=e;this.I=f;this.A=null;this.G=k;this.F=b};
xx=function(a,b,c){b=wx(a,b);return 0<=b&&(c||!a.segments[b].pending)};
wx=function(a,b){return qb(a.segments,function(c){return b-c.La})};
yx=function(a,b,c){c=void 0===c?{}:c;rx.call(this,a,b,"",void 0,void 0,c.Ee||0);this.index=new vx(c);this.M=c.xr||-1;this.U=c.ze||!1};
hga=function(a,b,c,d,e){this.La=a;this.startSecs=b;this.durationSecs=c;this.o=d||NaN;this.u=e||NaN};
zx=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""};
Ax=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
Bx=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
Cx=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Dx=function(){this.o=[];this.u=null;this.B=0;this.A=[];this.w=!1;this.C="";this.F=0};
iga=function(a){var b=a.A;a.A=[];return b};
jga=function(){this.A=[];this.o=null;this.u={};this.w={}};
nga=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=kga(a):"AdaptationSet"==f.nodeName?k=lga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=mga(a,f.attributes.id.value));if(null==k)return;k.update(e,c);ib(d,iga(k))}ib(a.A,d);oaa(a.A,function(l){return 1E3*l.startSecs+l.o})};
oga=function(a){a.o&&(a.o.o=[]);g.zb(a.u,function(b){b.o=[]});
g.zb(a.w,function(b){b.o=[]})};
kga=function(a){a.o||(a.o=new Dx);return a.o};
lga=function(a,b){a.u[b]||(a.u[b]=new Dx);return a.u[b]};
mga=function(a,b){a.w[b]||(a.w[b]=new Dx);return a.w[b]};
Ex=function(a,b,c,d,e){qx.call(this,a,b,d||void 0,e||void 0);this.index=new g.Xu;this.F=c};
Fx=function(a,b,c){var d=a.index.Rr(b),e=a.index.gd(b),f=a.index.getDuration(b),k;c?f=k=0:0<a.info.o&&(k=a.info.o*f);c=b==a.index.jb()&&0<k;a=new aw(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,k,c);return new lx([a],d)};
pga=function(a,b){if(!a.index.Hb()){for(var c=[],d=b.F,e=b.G.split(",").filter(function(t){return 0<t.length}),f=0,k=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),k=(k=m.exec(l))?+k[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new Wu(p,f,k,NaN,"sq/"+(p+1)));f+=k;l--}a.index.append(c)}};
g.Gx=function(){this.o=0;this.u=new Float64Array(128);this.w=new Float64Array(128);this.B=1;this.A=!1};
Hx=function(a){if(a.u.length<a.o+1){var b=2*a.u.length;b+=2;var c=a.u;a.u=new Float64Array(b+1);var d=a.w;a.w=new Float64Array(b+1);for(b=0;b<a.o+1;b++)a.u[b]=c[b],a.w[b]=d[b]}};
Ix=function(a,b,c,d,e,f){qx.call(this,a,b,c||void 0,d||void 0);this.G=null;this.index=new g.Gx;this.F=e;this.lastModified=f};
Jx=function(a,b,c,d){for(var e=[];b<=a.index.jb();b++){var f=a.index,k=b;f=Zv(f.bp(k),k+1<f.o||f.A?f.u[k+1]-f.u[k]:-1);k=a.index.gd(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b==a.index.jb()&&m+n==f.length;e.push(new aw(3,a,f,"getRequestInfoForRange_",b,k,l,m,n,p));if(f.start+m+n>=c+d)break}return new lx(e)};
qga=function(a,b){return g.Kx(function(c,d){return g.ir(c,d,4,1E3)},a,b)};
g.Lx=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Bv(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
g.Kx=function(a,b,c){return a(b,c).then(function(d){var e=g.Lx(d);return e?g.Kx(a,e,c):d})};
Mx=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.O.call(this);this.ba=this.duration=0;this.ze=this.Z=this.isLive=this.w=!1;this.Bg=this.Hd=0;this.Ml=this.Ef=!1;this.P=(0,g.N)();this.F=Infinity;this.o={};this.sourceUrl=a||"";this.C=this.R=0;this.B=null;this.ga=!!b&&g.P(b,"html5_live_nonzero_first_segment_start_time");this.u=!1;this.M=[];this.ma=!!b&&g.P(b,"html5_live_self_init_segments");this.A=null;this.oa=c;this.da=!b||!g.P(b,"html5_manifest_without_credentials");this.G=
0;this.V=!!b&&g.P(b,"disable_html5_manifest_namespace_redux");this.aa="";this.I=NaN;this.ha=b&&g.P(b,"disable_html5_duration_caching")?Infinity:10;this.U=0};
Nx=function(a){return Cb(a.o,function(b){return!!b.info.zc})};
rga=function(a){return Cb(a.o,function(b){return jt(b.info.mimeType)})};
sga=function(a){return Db(a.o,function(b){return b.info.video?b.xp():!0})};
Ox=function(a){return Cb(a.o,function(b){return $w(b.u.o)})};
Px=function(a,b){a.o[b.info.id]=b};
tga=function(a,b,c,d){c=void 0===c?0:c;var e=new Mx("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Qx(f,b,e.duration),l=Yv(f.init),m=Yv(f.index),n=parseInt(f.clen,10),p=Rx(f.url,f.sp,f.s,d);f=parseInt(f.lmt,10);p&&Px(e,new Ix(p,k,l,m,n,f))});
return e};
uga=function(a,b,c,d){c=void 0===c?0:c;var e=new Mx("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Qx(f,b,e.duration),l=Rx(f.url,f.sp,f.s,d);if(!g.gt(k)){var m=d&&g.P(d,"html5_manifestless_vp9_otf"),n=d&&g.P(d,"html5_otf_webm_audio_killswitch");if(!m||!k.isVideo()&&n)return}l&&(k.video&&3==k.video.streamType?Px(e,new Ex(l,k,"sq/0",null,null)):(m=Yv(f.init),f=Yv(f.index),Px(e,new Ex(l,k,"",m,f))))});
e.Ml=!0;return e};
vga=function(a,b,c,d){var e=new Mx("",d,!0);(0,g.y)(a,function(f){var k=Qx(f,c),l=Rx(f.url,f.sp,f.s,d),m=parseInt(f.target_duration_sec,10)||5;f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.Hd=e.Hd||n;e.Bg=e.Bg||p;var t=!jt(k.mimeType),u=d&&g.Q(d,"html5_manifestless_max_segment_history");l&&Px(e,new yx(l,k,{Ee:m,dw:t,xr:f,Hd:n,Bg:p,Ey:u,ze:b}))});
e.w=!b;e.Ef=!0;e.u=!0;e.isLive=!b;e.ze=b;e.Z=!!e.Hd&&!!e.Bg&&isFinite(e.Bg);return e};
Qx=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var k=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=(a.size||"640x360").split("x");k=new Ys(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=k;null===Sx&&(Sx=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99"'));
if((Sx||Tx)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",t="01",u="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"==l.primaries&&(u=p="09"),"smpte2084"==l.o&&(t="16"),"arib-std-b67"==l.o&&(t="18"));d=["vp09",m,"51",n,"01",p,t,u].join(".");Ux&&(d+=".00");d='video/webm; codecs="'+d+'"'}}m=l=null;it(d)&&(l=new Vs(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new Rs(a.name,a.audio_track_id,"1"==a.isDefault)));
a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new rfa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),t=a.next();!t.done;t=a.next())t=t.value,p[t]=b[t];return new dt(e,d,l,k,m,p,n,c,f)};
wga=function(a){return kj(a,function(b){return 3==+b.stream_type})?3:0};
Vx=function(a,b){return a.B?jb(a.B.A,b):a.M.length?jb(a.M,b):[]};
Rx=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?"":c;a=new Xw(a);a.set("alr","yes");c&&(c=Lw(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));d&&g.P(d,"html5_enable_hancedenay_iphersay")&&(d=a.get("n"))&&(d=oea(d),a.set("n",d));return a};
Yx=function(a,b){var c=zx(b,"id");c=c.replace(":",";");var d=zx(b,"mimeType"),e=zx(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(zx(b,"bandwidth"),10)/8;var f=parseInt(Ax(b,"BaseURL").getAttribute(Wx(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=parseInt(zx(b,"width"),10);var l=parseInt(zx(b,"height"),10),m=parseInt(zx(b,"frameRate"),10),n=xga(zx(b,Wx(a,"projectionType")));a:switch(zx(b,Wx(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}zx(b,"video_level");k=new Ys(k,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(it(d))if(l=parseInt(zx(b,"audioSamplingRate"),10),m=parseInt(zx(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=yga(zx(b,Wx(a,"spatialAudioType"))),l=new Vs(l,m,n),m=zx(b,"lang")||"und",n=Ax(b,"Role")){var t=zx(n,"value")||"";Ib(Xx,t)?(n=m+"."+Xx[t],p="main"==t,m=zx(b,Wx(a,"langName"))||m+" - "+t,m=new Rs(m,n,p)):m=null}else m=null;p=null;
if(n=Ax(b,"ContentProtection"))if(g.gl())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&(p[n.attributes.type.textContent]=
n.textContent.trim());else p=null;return new dt(c,d,l,k,m,p,e,f)};
xga=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
yga=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
Zx=function(a,b){b=void 0===b?"":b;a.C=1;a.P=(0,g.N)();return Lf(qga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.da}).then((0,g.x)(a.qF,a)),(0,g.x)(a.tF,a))};
zga=function(a,b,c){return Zx(new Mx(a,b,c),a)};
Aga=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(c=a.split("-"),0<=parseInt(c[1],10)?e=Yv(a):d=d+"?range="+a));return new Wu(b.La,b.startSecs,b.durationSecs,b.o,d,e,b.u)};
$x=function(a){return a.isLive&&(0,g.N)()-a.P>=a.F};
ay=function(a){var b=a.F;isFinite(b)&&($x(a)?a.refresh():(b=Math.max(0,a.P+b-(0,g.N)()),a.A||(a.A=new g.I(a.refresh,b,a),g.B(a,a.A)),a.A.start(b)))};
Bga=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c.Hb())return c.jb()+1}return 0};
by=function(a){if(!isNaN(a.I))return a.I;var b=a.o,c;for(c in b){var d=b[c].index;if(d.Hb()){b=0;for(c=d.Qe();c<=d.jb();c++)b+=d.getDuration(c);b/=d.Cj();b=.5*Math.round(b/.5);d.Cj()>a.ha&&(a.I=b);return b}if(a.isLive&&(d=b[c],d.Ee))return d.Ee}return NaN};
cy=function(a,b){for(var c in a.o){var d=a.o[c].index;if(d.Hb()){var e=d.Re(b),f=d.qt(e);if(f)return f+b-d.gd(e)}}return NaN};
Cga=function(a,b){var c=Lb(a.o,function(e){return e.index.Hb()});
if(!c)return NaN;c=c.index;var d=c.Re(b);return c.gd(d)==b?b:d<c.jb()?c.gd(d+1):NaN};
Dga=function(a,b){g.zb(a.o,function(c){g.zb(b,function(d,e){var f=c.u;f.o.set(e,d);f.A.set(e,d);f.w&&f.w.set(e,d)})})};
Wx=function(a,b){return a.V?"yt:"+b:a.aa+":"+b};
Ega=function(a){return g.Xa(Object.values(a.o),function(b){return b.info.zc&&b.info.video?480<b.info.video.fc&&"H"==b.info.u:!1})};
dy=function(){g.O.call(this);this.o={}};
Fga=function(){this.o=0};
Gga=function(a,b){this.o=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16);this.encryptedClientKey=b};
ey=function(a){try{return g.eg(a)}catch(b){return null}};
Hga=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?ey(b.clientKey):null;var c=b.encryptedClientKey?ey(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.o=new Gga(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ey(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
Iga=function(){var a=g.Es("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Md(Math.floor(b),0,100),muted:!!a.muted}};
fy=function(a){g.Ds("yt-player-bandwidth",a,2592E3)};
gy=function(a){if(a=void 0===a?0:a)try{var b=JSON.parse(window.localStorage["yt-player-quality"]);if((0,g.N)()-b.creation>1E3*a)return"auto"}catch(c){}return g.Es("yt-player-quality")||"auto"};
hy=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
iy=function(){return g.Es("yt-player-performance-cap")||{}};
jy=function(a){g.Ds("yt-player-watch-later-pending",a)};
ky=function(){return g.Es("yt-player-headers-readable")||!1};
ly=function(a){g.Ds("yt-player-playback-on-reload",a)};
my=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
ny=function(a){this.u=this.A=0;this.alpha=Math.exp(Math.log(.5)/a)};
py=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.A=!1;this.C=!0;this.u=Math.round(a*this.resolution);this.values=Array(this.u);for(a=0;a<this.u;a++)this.values[a]=Infinity;this.G=oy(this);this.B=c;this.F=d};
oy=function(a){for(var b=Array(a.u),c=0;c<a.u;c++)b[c]=c;return b};
qy=function(a,b){if(!a.A&&0===a.valueIndex)return 0;a.C&&(g.rb(a.G,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.G[Math.round(b*((a.A?a.u:a.valueIndex)-1))]]||0};
Jga=function(a){var b=new Fga;this.policy=a;this.P=b;this.G=this.M=0;this.A=-1;this.C=this.F=ry();this.B=new py(4,1,.6,.4);this.o=new py(10,1,.5,.4);this.u=a.u?new ny(a.o):new py(a.o,20,.5,.4);this.I=new py(5,1,.25);this.w=new py(30,1,.5);a=g.Es("yt-player-bandwidth")||{};this.u.w(this.policy.A,0<a.byterate?a.byterate:this.policy.w);0<a.delay&&this.B.w(1,Math.min(+a.delay,2));0<a.stall&&this.o.w(1,+a.stall);0<a.init&&(this.C=Math.min(a.init,this.C));this.A=ry()};
sy=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.I.w(b,c/b);f||(a.F=ry());e||a.w.w(1,b-d)};
ty=function(a){a=a.B.o();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
uy=function(a,b,c){isNaN(c)||(a.G+=c);isNaN(b)||(a.M+=b)};
vy=function(a){a=a.u.o();return 0<a?a:1};
wy=function(a){var b=vy(a);b=1/((a.o.o()||0)+1/b);a=a.I.o();return Math.max(b,0<a?a:1)};
yy=function(a){return{delay:ty(a),stall:a.o.o()||0,byterate:vy(a),init:a.C}};
zy=function(a){-1<a.A&&3E4<ry()-a.A&&(fy(yy(a)),a.A=ry())};
Ay=function(a){return 4E3<=ry()-a.F};
Kga=function(){this.o=17;this.w=13E4;this.A=.5;this.u=!1};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
By=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Cy=function(a,b){return void 0===b||null===b?a:Number(b)};
Dy=function(a,b){return void 0===b||null===b?a:b.toString()};
Ey=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(Lga);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
Fy=function(a){var b=a.docid||a.video_id||a.videoId||a.id;return b?b:(a=a.raw_player_response)&&a.videoDetails&&a.videoDetails.videoId||null};
cz=function(a,b){g.A.call(this);a=a?g.Pb(a):{};this.yb=this.Ea="";this.qd=Dy("",a.csp_nonce);this.experiments=new Dfa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Ka=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;Nw=this.fa("web_player_deprecated_uvr_killswitch");try{var c=document.location.toString()}catch(m){c=""}this.Yb=c;this.Hc=(c=window.location.ancestorOrigins)?Array.from(c):[];this.u=S(!1,a.is_embed);this.deviceParams={};b&&b.device?(c=b.device,
c.brand&&(this.deviceParams.cbrand=c.brand),c.browser&&(this.deviceParams.cbr=c.browser),c.browserVersion&&(this.deviceParams.cbrver=c.browserVersion),this.deviceParams.c=c.interfaceName||"WEB",this.deviceParams.cver=c.interfaceVersion||"html5",c.interfaceTheme&&(this.deviceParams.ctheme=c.interfaceTheme),this.deviceParams.cplayer=c.interfacePlayerType||"UNIPLAYER",c.model&&(this.deviceParams.cmodel=c.model),c.network&&(this.deviceParams.cnetwork=c.network),c.os&&(this.deviceParams.cos=c.os),c.osVersion&&
(this.deviceParams.cosver=c.osVersion),c.platform&&(this.deviceParams.cplatform=c.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");this.loaderUrl=this.u||"TVHTML5_SIMPLY_EMBEDDED_PLAYER"==this.deviceParams.c&&a.loaderUrl?Dy("",a.loaderUrl):this.Yb;this.w=Ow(this.loaderUrl,Mga,null);c=this.loaderUrl;var d=void 0===d?!1:d;this.jn=Mw(Ow(c,Nga,null),c,d,"Trusted Ad Domain URL");this.aa=S(!1,a.privembed);this.protocol=0==this.Yb.indexOf("http:")?
"http":"https";this.G=Qw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Qw(this.Yb)||this.protocol+"://www.youtube.com/";d=b?b.eventLabel:a.el;c="detailpage";"adunit"==d?c=this.u?"embedded":"detailpage":"embedded"==d||this.w?c=By(c,d,Oga):d&&(c="embedded");this.ba=c;$p();d=null;c=b?b.playerStyle:a.ps;var e=g.$a(Gy,c);!c||e&&!this.w||(d=c);this.playerStyle=d;this.P=(this.B=g.$a(Gy,this.playerStyle))&&"area120-boutique"!=this.playerStyle&&"play"!=this.playerStyle&&"jamboard"!=this.playerStyle;this.hn=
!this.P;this.M=S(!1,a.disableplaybackui);if(d=!this.M||!this.fa("web_player_disable_ui_speed_killswitch"))Bt().defaultPlaybackRate?Hy||g.Iy||Jy?(d=g.hu&&Sn("20")||g.Dt&&Sn("4")||g.vh&&Sn("11"))||(d=/WebKit\/([0-9]+)/.exec(g.Ic),d=!!(d&&602<=parseInt(d[1],10))):d=!(g.vh&&!dl("chrome")||Hy||dl("android")||dl("silk")):d=!1;this.Ia=d;this.o=S("blazer"==this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.o?d=!0:(d=parseInt((0,g.H)()/1E3,10),c=wr.getInstance(),d=this.fa("block_desktop_background_playback_with_mobile_cookie")&&
c&&d>parseInt(c.get("dhmu",d.toString()),10));this.gn=d;this.wa="3"==this.controlsType||this.o||S(!1,a.use_media_volume);this.R=Ht();this.Nn=g.Ky;this.qe=S(!1,a.opt_out_deprecation);var f;b?void 0!=b.hideInfo&&(f=!b.hideInfo):f=a.showinfo;this.Qg=g.Ly(this)&&!this.qe||S(!My(this)&&!Ny(this)&&!this.B,f);this.Vf=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);f=this.o&&Oy&&0<Py&&2.3>=Py;d=b?b.useNativeControls:a.use_native_controls;c=this.o;d=Qy(this)||!f&&S(c,d)?"3":"1";this.controlsType=
"0"!=(b?b.controlsType:a.controls)?d:"0";this.Wa=this.o;this.color=By("red",a.color,Pga);this.nn="3"==this.controlsType||S(!1,a.modestbranding)&&"red"==this.color;this.ma=!this.u;this.Rg=(d=!this.ma&&!Ny(this)&&!this.P&&!this.B&&!My(this))&&!this.nn&&"1"==this.controlsType;this.Ca=g.Ry(this)&&d&&"0"==this.controlsType&&!this.Rg;this.zo=this.Hn=f;this.Yh=Sy&&!g.Kd(601)?!1:!0;this.fn=this.u||!1;this.Qa=Ny(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Dy("",
a.widget_referrer);this.ac=(!this.w||S(!0,a.enablecastapi))&&"1"==this.controlsType&&!this.o&&(Ny(this)||g.Ry(this)||g.Ty(this))&&!g.Uy(this)&&!Vy(this);this.po=Gt()||Ft();f=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.Tc=!this.o&&!dl("nintendo wiiu")&&!dl("nintendo 3ds")||f;f=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);d=this.fa("embeds_enable_muted_autoplay")&&g.Ly(this);this.Uc=f&&d&&this.R&&!Qy(this);f=(Ny(this)||My(this))&&"blazer"==this.playerStyle;this.pc=b?!!b.disableFullscreen:
!S(!0,a.fs);this.da=!this.pc&&(f||Cr());this.bn=this.fa("uniplayer_block_pip")&&el()&&Sn(58)&&!(g.Iy&&dl("version/"));f=g.Ly(this)&&!this.qe;var k;b?void 0!=b.disableRelatedVideos&&(k=!b.disableRelatedVideos):k=a.rel;this.Aa=f||S(!this.B,k);this.Yf=S(!1,a.co_rel);this.C=g.Iy&&dl("version/")&&0<Py&&4.4>=Py?"_top":"_blank";this.Ta=g.Ty(this);this.Kc="blazer"==this.playerStyle;switch(this.playerStyle){case "blogger":k="bl";break;case "gmail":k="gm";break;case "books":k="gb";break;case "docs":k="gd";
break;case "duo":k="gu";break;case "google-live":k="gl";break;case "google-one":k="go";break;case "play":k="gp";break;case "chat":k="hc";break;case "hangouts-meet":k="hm";break;case "photos-edu":case "picasaweb":k="pw";break;default:k="yt"}this.V=k;this.Nc=Dy("",a.authuser);var l;b?void 0!=b.disableWatchLater&&(l=!b.disableWatchLater):l=a.showwatchlater;this.Th=(this.u&&!this.aa||!!this.Nc)&&S(!this.P,this.w?l:void 0);this.Xb=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.loop=S(!1,a.loop);
this.pageId=Dy("",a.pageid);this.Tn=S(!0,a.canplaylive);this.wg=S(!1,a.livemonitor);this.disableSharing=S(this.B,b?b.disableSharing:a.ss);(l=a.video_container_override)?(k=l.split("x"),2!==k.length?l=null:(l=Number(k[0]),k=Number(k[1]),l=isNaN(l)||isNaN(k)||0>=l*k?null:new g.Sd(l,k))):l=null;this.Pk=l;this.mute=b?!!b.startMuted:S(!1,a.mute);this.Mc=!this.mute&&S("0"!=this.controlsType,a.store_user_volume);l=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"==this.controlsType?
3:By(void 0,l,Wy);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Dy("",a.cc_lang_pref);l=By(2,a.cc_load_policy,Wy);"3"==this.controlsType&&2==l&&(l=3);this.Xg=l;this.Ic=b?b.hl||"en_US":Dy("en_US",a.hl);this.region=b?b.contentRegion||"US":Dy("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Dy("en",a.host_language);this.an=!this.aa&&Math.random()<g.Q(this.experiments,"web_player_api_logging_fraction");this.Z=!this.aa;this.rd=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);
this.qh=Cy(this.qh,a.ismb);l=a;g.At(this.experiments,"html5_qoe_intercept")?l=g.At(this.experiments,"html5_qoe_intercept"):this.hn?(l=l.vss_host||"s.youtube.com",this.fa("www_for_videostats")&&"s.youtube.com"==l&&(l=Xy(this.G)||"www.youtube.com")):l="video.google.com";this.Qk=l;this.Kd(a,!0);this.I=new dy;g.B(this,this.I);this.F=this.o&&!this.fa("enable_svg_mode_on_embed_mobile");l=b?b.innertubeApiKey:Dy("",a.innertube_api_key);k=b?b.innertubeApiVersion:Dy("",a.innertube_api_version);f=b?b.innertubeContextClientVersion:
Dy("",a.innertube_context_client_version);this.vg={innertubeApiKey:uo("INNERTUBE_API_KEY")||l,innertubeApiVersion:uo("INNERTUBE_API_VERSION")||k,by:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Mj:this.deviceParams.c,innertubeContextClientVersion:uo("INNERTUBE_CONTEXT_CLIENT_VERSION")||f,Hl:this.hostLanguage,Gl:this.region,qo:uo("INNERTUBE_HOST_OVERRIDE")||"",ey:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};this.Xf=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.A=new eu(this.experiments,this.fa("html5_force_hfr_support")?
!0:Yy(this)||il()||jl()||Zy(this),g.Dt&&g.Kd(56)||g.hu&&g.Kd(54)||Zy(this));l=this.qh;k=this.experiments;f=new Kga;g.$y(this)&&(f.u=!0,f.A=.1);g.P(k,"html5_ewma_bandwidth_estimator")&&(f.u=!0);g.P(k,"html5_pctile_bandwidth_estimator")&&(f.u=!1);l&&(f.w=l/8);f.o=g.Q(k,"html5_bandwidth_window_size")||f.o;this.schedule=new Jga(f);this.enableSafetyMode=S(!1,a.enable_safety_mode);this.nb=S(this.M?!1:Ny(this)&&"blazer"!=this.playerStyle,a.allow_autonav);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:
S(!1,a.send_visitor_id_header);this.Wg=!1;this.Wf=Du;this.oa=(0,g.N)();this.ga=0;this.se=!1;this.cn=S(!1,"docs"==this.playerStyle?a.disable_native_context_menu:void 0);this.en=Yy(this)&&this.fa("enable_skip_intro_button");this.embedConfig=Dy("",a.embed_config);this.Md=!1;this.qc=S(!1,a.full_window);this.dn=S(!1,a.embedding_app);this.za=!g.az(this)&&!bz(this)&&!g.Uy(this)&&!Vy(this);this.livingRoomAppMode=a.living_room_app_mode;this.transparentBackground=b?!!b.transparentBackground:S(!1,a.transparent_background);
this.useFastSizingOnWatchDefault=S(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:S(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:S(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:S(!1,a.use_miniplayer_ui);this.showBackButton=S(!1,a.showbackbutton);this.Ma=!1;this.kn=1E-4>Math.random();this.Jc=a.onesie_hot_config?new Hga(a.onesie_hot_config):
void 0;this.isTectonic=!!a.isTectonic};
dz=function(a,b){return!a.B&&el()&&Sn(55)&&"3"==a.controlsType&&!b};
g.ez=function(a){a=Xy(a.G);return"www.youtube-nocookie.com"==a?"www.youtube.com":a};
g.fz=function(a){return g.Uy(a)?"music.youtube.com":g.ez(a)};
gz=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
hz=function(a){return Ny(a)&&!g.az(a)};
Qy=function(a){return Sy&&!a.Vf||dl("nintendo wiiu")||dl("nintendo 3ds")?!0:!1};
Vy=function(a){return"area120-boutique"==a.playerStyle};
g.Uy=function(a){return"music-embed"==a.playerStyle};
g.$y=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"==a.deviceParams.cplatform};
Zy=function(a){return"CHROMECAST ULTRA/STEAK"==a.deviceParams.cmodel||"CHROMECAST/STEAK"==a.deviceParams.cmodel};
g.iz=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
Yy=function(a){return"web"==a.deviceParams.c.toLowerCase().substr(0,3)};
g.jz=function(a){return"WEB"==a.deviceParams.c};
bz=function(a){return"WEB_KIDS"==a.deviceParams.c};
g.az=function(a){return"WEB_UNPLUGGED"==a.deviceParams.c};
kz=function(a){return"TVHTML5_UNPLUGGED"==a.deviceParams.c};
g.lz=function(a){return g.az(a)||"TV_UNPLUGGED_CAST"==a.deviceParams.c||kz(a)};
mz=function(a){return"WEB_REMIX"==a.deviceParams.c};
g.pz=function(a){return(a.deviceHasDisplay&&g.Dt&&!nl&&"3"!==a.controlsType?g.Iy?a.u&&g.Kd(51):!0:!1)||(a.deviceHasDisplay&&g.hu&&!nl&&"3"!==a.controlsType?g.Iy?a.u&&g.Kd(48):g.Kd(38):!1)||(a.deviceHasDisplay&&g.vh&&!nl&&"3"!==a.controlsType?g.Iy?a.u&&g.Kd(37):g.Kd(27):!1)||a.deviceHasDisplay&&g.nz&&!ml()&&g.Kd(11)||a.deviceHasDisplay&&g.oz&&g.Kd("604.4")};
qz=function(a){if(g.Ry(a)&&Oy)return!1;if(g.hu){if(!g.Kd(47)||!g.Kd(52)&&g.Kd(51))return!1}else if(g.oz)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
Ny=function(a){return"detailpage"==a.ba};
g.Ry=function(a){return"embedded"==a.ba};
g.rz=function(a){return"leanback"==a.ba};
My=function(a){return"adunit"==a.ba||"gvn"==a.playerStyle};
g.Ty=function(a){return"profilepage"==a.ba};
g.Ly=function(a){return a.u&&g.Ry(a)&&!My(a)&&!a.B};
sz=function(a){if(!a.U)return"";var b=a.U.split("/");if(5==b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8==b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9==b.length)return b[7]+="-s20-c",b.join("/");g.Uq(new Sq("Profile image not a FIFE URL.",a.U));return a.U};
g.tz=function(a){var b=g.fz(a);!a.fa("yt_embeds_disable_new_error_lozenge_url")&&Qga.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Xy=function(a){var b=g.od(a);return(a=Number(g.nd(4,a))||null)?b+":"+a:b};
Rga=function(){this.R=this.ba=this.o=this.A=this.u=this.B=this.C=this.P=this.I=!1;this.M=!0;this.w=0;this.V=!1;this.U=Infinity;this.G=!1;this.Z=!0;this.F=!1};
Sga=function(a){if(a.P)return["f"];var b="19 9h 9 h 8 (h ( H *".split(" ");a.V&&b.unshift("1");a.o&&b.unshift("h");return b};
Tga=function(a){var b=["o","a","v","A","V"];a.B&&(b=["m","M"].concat(b));a.u&&(b=["mac3","MAC3"].concat(b));a.A&&(b=["meac3","MEAC3"].concat(b));a.I&&(b=["so","sa"].concat(b));a.ba&&b.unshift("a");a.C&&b.unshift("ah");return b};
uz=function(a){if(fu(a.A,vu)&&fu(a.A,ju)&&fu(a.A,lu))return 8192;try{var b=my();if(b)return b}catch(d){}b=g.Q(a.experiments,"html5_av1_thresh");var c=g.Q(a.experiments,"html5_av1_thresh_lcc");c&&2>=navigator.hardwareConcurrency&&(b=c);(c=g.Q(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(b=c);(a=g.Q(a.experiments,"html5_av1_thresh_arm"))&&fl()&&(b=a);(a=+iy()[hy("1",30)]||0)&&(b=Math.min(b,a));(a=+iy()[hy("1",60)]||0)&&(b=Math.min(b,a));return b};
vz=function(a,b,c,d){this.flavor=a;this.o=b;this.u=c;this.B=d;this.w={};this.Oe=this.keySystemAccess=null;this.Ln=this.Mn=-1;this.Rm=null;this.C=!!d&&g.P(d,"edge_nonprefixed_eme");this.A=d?g.At(d,"html5_hdcp_probing_stream_url"):""};
xz=function(a){return a.C?!1:!a.keySystemAccess&&!!wz()&&"com.microsoft.playready"==a.o};
yz=function(a){return"com.microsoft.playready"==a.o};
zz=function(a){return g.wu&&"com.microsoft.playready"==a.o&&!!navigator.requestMediaKeySystemAccess};
Az=function(a){return!a.keySystemAccess&&!!wz()&&"com.apple.fps.1_0"==a.o};
Bz=function(a){return"fairplay"===a.flavor};
wz=function(){var a=window.MSMediaKeys;ll()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
Cz=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Dt)return Sn("45");if(g.wu||g.he)return g.P(a,"edge_nonprefixed_eme");if(g.hu)return Sn("47");if(g.oz){var b=g.Q(a,"html5_safari_desktop_eme_min_version");if(b)return Sn(b)}return!g.P(a,"html5_disable_nonprefixed_eme_for_other")};
Uga=function(a,b,c){c=void 0===c?"":c;var d=hl(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.ea(e),g.ea(Dz.playready)):[].concat(g.ea(Dz.playready),g.ea(e))};
Ez=function(a,b,c){this.videoInfos=a;this.o=b||null;this.audioTracks=[];this.u=c||null;if(this.o)for(a=new Set,b=g.q(this.o),c=b.next();!c.done;c=b.next())if(c=c.value,c.tb&&!a.has(c.tb.id)){var d=new Us(c.id,c.tb);a.add(c.tb.id);this.audioTracks.push(d)}};
Fz=function(a,b,c){var d={},e;for(e in c.o){var f=c.o[e],k=ct(f.info);""==f.info.u||("304"==k||"266"==k)&&a.M||a.R&&"h"==f.info.u&&f.info.video&&1080<f.info.video.fc||!Hfa(b,f.info)||"(h"==f.info.u&&!b.w||(k="MAC3"==f.info.u||"MEAC3"==f.info.u||"M"==f.info.u,c.isLive&&k&&!a.F||(d[f.info.u]=d[f.info.u]||[],d[f.info.u].push(f.info)))}c=g.q(Object.keys(d));for(e=c.next();!e.done;e=c.next())e=e.value,d[e]&&d[e][0].isVideo()&&(d[e]=Vga(a,d[e]),d[e]=Wga(b,d[e]));return g.Ab(d,function(l){return!!l.length})};
Xga=function(a,b,c){var d={};g.zb(b,function(e,f){var k=e.filter(function(l){var m;if(m=l.zc&&c&&l.zc[c.flavor]&&c.w[l.mimeType])(l="("!=l.u&&"(h"!=l.u)||(l=(fu(a,mu)||a.R)&&!a.P),m=l;return m?!0:!1});
k.length&&(d[f]=k)});
return d};
Zga=function(a,b,c,d){function e(t){return!!f[t]}
var f=Fz(a,b,c),k=f["9h"]?"9h":"9";if(0<a.w&&f[k]&&f["1"]){var l=Math.min(a.w,Gz(f["1"])),m=Gz(f[k]),n=function(t){return t<=l||t>m},p=f["1"].filter(function(t){return n(t.ya().fc)});
p=f[k].filter(function(t){return!n(t.ya().fc)}).concat(p);
p.length&&(f["19"]=p)}Nx(c)&&(f=Xga(b,f,d));b=Sga(a);d=Tga(a);b=g.Xa(b,e);d=g.Xa(d,e);if(!b||!d)return kr();a.Z&&"1"==b&&f[k]&&(p=Gz(f["1"]),Gz(f[k])>p&&(b=k));"9"==b&&f.h&&(k=Gz(f["9"]),Gz(f.h)>1.5*k&&(b="h"),c.Ef&&!Jfa(a.G)&&(b="h"));a=f[b];c=f[d];if(!a.length)return kr();Hz(a,c);return lr(new Ez(a,c,Yga(f,b,d)))};
Yga=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(Hz(d,e),new Ez(d,e)):null};
Hz=function(a,b){g.rb(a,function(c,d){return d.ya().height*d.ya().width-c.ya().height*c.ya().width||d.o-c.o});
g.rb(b,function(c,d){return d.o-c.o})};
Wga=function(a,b){var c=(0,g.ui)(b,function(d,e){return 32<e.ya().fps?Math.min(d,e.ya().width):d},Infinity);
Infinity>c&&(b=a.F&&(a.M||fu(a,ku))?(0,g.ue)(b,function(d){return 32<d.ya().fps||d.ya().width<c}):(0,g.ue)(b,function(d){return!(32<d.ya().fps)}));
il()&&(b=(0,g.ue)(b,function(d){return"299"!=ct(d)}));
return b};
Vga=function(a,b){return b=(0,g.ue)(b,function(c){return c.ya().fc<=a.U})};
Gz=function(a){return(0,g.ui)(a,function(b,c){return Math.max(b,c.ya().fc)},0)};
Iz=function(a,b,c,d){g.A.call(this);this.o=[];this.u={};this.A={};this.C=null;this.B=b;this.F=!1;this.w=[];this.G=d;$ga(this,a,!c)};
$ga=function(a,b,c){for(var d in b)for(var e=g.q(b[d]),f=e.next();!f.done;f=e.next())if(f=f.value,f.zc)for(var k in f.zc)if(Dz[k])for(var l=g.q(Dz[k]),m=l.next();!m.done;m=l.next())m=m.value,a.u[m]=a.u[m]||new vz(k,m,f.zc[k],a.B),a.A[k]=a.A[k]||{},a.A[k][f.mimeType]=!0;hl()&&(a.u["com.youtube.fairplay"]=new vz("fairplay","com.youtube.fairplay","",a.B),a.A.fairplay={"audio/mp4":!0,"video/mp4":!0});a.o=Uga(c,a.G,g.At(a.B,"html5_hdcp_probing_stream_url")).filter(function(n){return!!a.u[n]})};
Jz=function(a){if(!a.ea())if(0==a.o.length)a.C(a.w);else{var b=a.o[0],c=a.u[b],d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};yz(c)&&(d.initDataTypes=["keyids","cenc"]);for(var e in a.A[c.flavor]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;"widevine"!=c.flavor||a.F?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_SECURE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"}))}navigator.requestMediaKeySystemAccess(b,
[d]).then(Fo((0,g.x)(a.P,a,c)),Fo((0,g.x)(a.I,a)))}};
aha=function(a,b){function c(f){b.w[f.contentType]=!0}
if(yz(b)){var d=Bt(),e;for(e in a.A[b.flavor])b.w[e]=!!d.canPlayType(e)}else d=b.keySystemAccess.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
cha=function(a){if(wz()&&g.oz)a.w.push(new vz("fairplay","com.apple.fps.1_0","",a.B));else{var b=bha(),c=g.Xa(a.o,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.A[e.flavor])b(l,d)&&(e.w[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c&&a.w.push(a.u[c]);a.o=[]}a.C(a.w)};
bha=function(){var a=wz();if(a){var b=a.isTypeSupported;return function(c,d){return b(d,c)}}return(a=Bt())&&(a.addKey||a.webkitAddKey)?(0,g.x)(a.canPlayType,a):function(){return!1}};
dha=function(a,b,c){this.w=a;this.u=b;this.cpn=c;this.A=0;this.o=""};
Kz=function(a,b,c){a.cpn&&(b=g.yd(b,{cpn:a.cpn}));c&&(b=g.yd(b,{KT:c}));return b};
Lz=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
eha=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.tb){f=b.tb;var k=f.getId().split(".")[0];k&&(d+='LANGUAGE="'+k+'",');a.o||f.getIsDefault()||(e="NO");f=f.getName()}k="";null!==c&&(k=c.itag.toString());a=Kz(a,b.url,k);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(Lz(b,c)+'",URI="'+(a+'"'))};
fha=function(a){for(var b=[],c=[],d=g.q(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.A?b.push(e):c.push(e);b.sort(function(f,k){return k.bitrate-f.bitrate});
c.sort(function(f,k){return f.bitrate-k.bitrate});
a.u=b.concat(c)};
gha=function(a,b,c,d,e,f,k,l,m,n){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=k;this.tb=void 0===n?null:n;this.audioItag=l||null;this.zc=m||""};
Mz=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.type.match(/codecs="([^"]*)"/);d=d?d[1]:"";var e=null;c.audio_track_id&&(e=new Rs(c.name,c.audio_track_id,!!c.is_default));c=new gha(c.itag,c.url,d,+c.width,+c.height,+c.fps,+c.bitrate,c.audio_itag,c.drm_families,e);b[c.itag]=b[c.itag]||[];b[c.itag].push(c)}return b};
Nz=function(a,b,c){this.og=a;this.u=b;this.o=null;this.w=c};
iha=function(a,b,c,d,e){if(!(nl||ll()||hl()))return kr();var f=hha(c),k=Mz(c);if(!k)return kr();c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),m;c=[];var n=[],p=[],t=g.Q(a.experiments,"html5_hls_min_video_height"),u;for(u in k)if(!g.P(a.experiments,"html5_disable_drm_hfr_1080")||"383"!=u&&"373"!=u){var z=g.q(k[u]);for(m=z.next();!m.done;m=z.next()){var C=m.value;if(C.width){if(!(C.height<t)){var D=k[C.audioItag];if(D&&(c.push(C),m="fairplay"==C.zc?l:null,p.push(Oz(D,
[C],e,C.itag,C.width,C.height,C.fps,f,void 0,void 0,m)),!E||C.width*C.height*C.fps>E.width*E.height*E.fps))var E=C}}else n.push(C)}}m=p.reduce(function(F,G){return G.og.uo()&&F},!0)?l:null;
d=Math.max(d,g.Q(a.experiments,"html5_hls_initial_bitrate"));E=E||{};p.push(Oz(n,c,e,"93",void 0===E.width?0:E.width,void 0===E.height?0:E.height,void 0===E.fps?0:E.fps,f,"auto",d,m));return yu(a.A,p,dz(a,b))};
Oz=function(a,b,c,d,e,f,k,l,m,n,p){d=new dt(d,"application/x-mpegURL",new Vs,new Ys(e,f,k,null,void 0,m),void 0,p);a=new dha(a,b,c);a.A=n?n:1369843;return new Nz(d,a,l)};
hha=function(a){a=g.q(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};
Pz=function(a,b){this.og=a;this.o=b};
Qz=function(a,b){this.og=a;this.o=b};
jha=function(a){var b=[];(0,g.y)(a,function(c){if(c.url){var d=kt(c.type,"medium","0");b.push(new Qz(d,c.url))}});
return b};
kha=function(a){return navigator.mediaCapabilities?Rz(a.videoInfos).then(function(){return a},function(){return a}):lr(a)};
Rz=function(a){var b=navigator.mediaCapabilities;if(!b)return lr(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.o||1E6,framerate:d.video.fps||30}:null})});
return fba(c).then(function(d){for(var e=0;e<d.length;e++)a[e].A=d[e].smooth;return a},function(){return a})};
Tz=function(a){for(var b={},c=g.q(Object.keys(Sz)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[Sz[d]];e&&(b[d]=e)}return b};
Uz=function(a,b){for(var c={},d=g.q(Object.keys(Sz)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Sw(f)&&(c[Sz[e]]=f)}return c};
Xz=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.q(Object.keys(Vz)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Vz[e];for(var f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Wz(k.url);g.Sw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Wz(a.url),g.Sw(a)&&(b["maxresdefault.jpg"]=a));return b};
Wz=function(a){return a.startsWith("//")?"https:"+a:a};
g.T=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Yz=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(lha(d))}return 1==b.length?b[0]:g.ne("SPAN",null,b)};
lha=function(a){var b=null,c=a.text;a.bold&&(b=g.ne("B",null,b||c));a.italics&&(b=g.ne("I",null,b||c));a.strikethrough&&(b=g.ne("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.ne("A",null,b||c),g.Yc(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.ne("SPAN",null,c)};
Zz=function(a){return a&&a.baseUrl||""};
$z=function(a){a=g.mq(a);for(var b in a){var c=a[b];a[b]=Array.isArray(c)?c[0]:c}return a};
nha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value.playerAnnotationsUrlsRenderer){d.adsOnly&&(a.ln=!0);d.allowInPlaceSwitch&&(a.Sq=!0);if(c=d.loadPolicy)a.annotationsLoadPolicy=mha[c];if(c=d.invideoUrl)a.be=Ww(c);a.Is=!0;break}};
oha=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.He=c)};
pha=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=aA(d.baseUrl);if(!e)return;d=new g.Ss({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.T(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Yq=b.audioTracks||[];a.pw=b.defaultAudioTrackIndex||0;a.qw=b.translationLanguages?(0,g.Cc)(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}):
[];
a.yn=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
qha=function(a,b,c){var d=b.errorScreen;if(!(d&&(d.playerLegacyDesktopYpcOfferRenderer||d.playerLegacyDesktopYpcTrailerRenderer||d.ypcTrailerRenderer)||c&&c.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(b.status))){a.errorCode="150";if(c=d&&d.playerErrorMessageRenderer){if(d=c.reason)a.errorReason=g.T(d);if(c=c.subreason)a.dh=g.T(c),a.Qn=c}else a.errorReason=b.reason||null;c=b.status;"LOGIN_REQUIRED"==c?a.errorDetail="1":"CONTENT_CHECK_REQUIRED"==c?a.errorDetail="2":"AGE_CHECK_REQUIRED"==
c?(b=(b=b.errorScreen)&&b.playerKavRenderer,a.errorDetail=b&&b.kavUrl?"4":"3"):a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}};
rha=function(a,b){var c=b.heartbeatToken;c&&(a.drmSessionId=b.drmSessionId||"",a.heartbeatToken=c,a.Tx=parseInt(b.intervalMilliseconds,10),a.Ux=parseInt(b.maxRetries,10),a.Vx=!!b.softFailOnError,a.dy=!!b.useInnertubeHeartbeatsForDrm,a.Vm=!0)};
sha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m&&!a.fa("web_player_unserialized_interstitial_killswitch"))return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},g.kq(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,jq:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,jq:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var k=parseInt(d.podConfig.timeToInsertAtMillis,10);a.interstitials=a.interstitials.concat({time:k,
playerVars:f,jq:0==k?5:7})}}};
tha=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
bA=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)};
uha=function(a,b){var c=b.playerLegacyMulticameraRenderer;c&&(c=c.metadataList)&&(a.Yz=c,a.bi=g.lq(c))};
vha=function(a,b){var c=b.playerControlsOverlayRenderer;if(c){var d=c.controlBgHtml;null!=d?(a.hg=d,a.lc=!0):(a.hg="",a.lc=!1);c.mutedAutoplay?(c=c.mutedAutoplay.playerMutedAutoplayOverlayRenderer)&&c.endScreen&&(c=c.endScreen.playerMutedAutoplayEndScreenRenderer)&&c.text&&(a.Zz=g.T(c.text)):a.mutedAutoplay=!1}};
wha=function(a,b){var c=b.backgroundability;c&&c.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);if(c=b.contextParams)a.contextParams=c;(c=b.pictureInPicture)&&c.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);b.playableInEmbed&&(a.allowEmbed=!0);var d=b.ypcClickwrap;d&&(c=d.playerLegacyDesktopYpcClickwrapRenderer,d=d.ypcRentalActivationRenderer,c?(a.Tm=c.durationMessage||"",a.Kk=!0):d&&(c=d.durationMessage,a.Tm=c?g.T(c):"",a.Kk=!0))};
xha=function(a,b,c){var d=Zz(b.googleRemarketingUrl);d&&(a.googleRemarketingUrl=d);if(d=Zz(b.youtubeRemarketingUrl))a.youtubeRemarketingUrl=d;if(d=Zz(b.ptrackingUrl)){d=$z(d);var e=d.oid;e&&(a.oB=e);if(e=d.pltype)a.pB=e;if(e=d.ptchn)a.nB=e;if(d=d.ptk)a.wp=encodeURIComponent(d)}if(d=Zz(b.ppvRemarketingUrl))a.ppvRemarketingUrl=d;if(d=Zz(b.qoeUrl)){d=g.mq(d);for(var f in d)e=d[f],d[f]=Array.isArray(e)?e.join(","):e;if(f=d.cat)a.wm=f;if(f=d.live)a.Os=f}if(f=Zz(b.remarketingUrl)){a.remarketingUrl=f;d=
$z(f);d.foc_id&&(a.Pc.focEnabled=!0);if(d=d.data)a.Pc.rmktEnabled=!0,d.engaged&&(a.Pc.engaged="1");d=a.Pc;e=f.match(md);d.baseUrl=kd(e[1],null,e[3],e[4])+ld(g.nd(5,f))}if(f=Zz(b.videostatsPlaybackUrl)){f=$z(f);if(d=f.adformat)c.adformat=d;if(c=f.autoplay)a.Lh="1"==c;if(c=f.autonav)a.Pj="1"==c;if(c=f.delay)a.Me=g.hd(c);if(c=f.ei)a.eventId=c;"adunit"==f.el&&(a.Lh=!0);if(c=f.feature)a.ym=c;if(c=f.list)a.playlistId=c;if(c=f.of)a.eu=c;if(c=f.osid)a.osid=c;if(c=f.referrer)a.referrer=c;if(c=f.sdetail)a.Cp=
c;if(c=f.sourceid)a.OT=c;if(c=f.ssrt)a.Gm="1"==c;if(c=f.subscribed)a.subscribed="1"==c,a.Pc.subscribed=c;if(c=f.uga)a.userGenderAge=c;if(c=f.upt)a.bq=c;if(c=f.vm)a.videoMetadata=c}b.promotedPlaybackTracking&&(b=b.promotedPlaybackTracking,b.startUrls&&(a.yp=b.startUrls[0],a.zp=b.startUrls),b.firstQuartileUrls&&(a.lu=b.firstQuartileUrls[0],a.mu=b.firstQuartileUrls),b.secondQuartileUrls&&(a.nu=b.secondQuartileUrls[0],a.ou=b.secondQuartileUrls),b.thirdQuartileUrls&&(a.pu=b.thirdQuartileUrls[0],a.qu=b.thirdQuartileUrls),
b.completeUrls&&(a.ju=b.completeUrls[0],a.ku=b.completeUrls))};
yha=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value)if(d=d.playerLegacyDesktopWatchAdsRenderer)if(d=d.playerAdParams){"1"==d.autoplay&&(a.Lh=!0);a.adSafetyReason=d.encodedAdSafetyReason||null;void 0!=d.showContentThumbnail&&(a.Hm=!!d.showContentThumbnail);c.enabled_engage_types=d.enabledEngageTypes;break}};
zha=function(a,b){var c=b.daiConfig;c&&c.enableDai&&(a.Mb=!0);if(c=b.audioConfig){var d=c.loudnessDb;null!=d&&(a.Am=d);c.audioMuted&&(a.fi=!0);c.muteOnStart&&(a.fi=!0)}(c=b.playbackEndConfig)&&(c=c.endSeconds)&&a.mutedAutoplay&&(a.endSeconds=c);if(c=b.fairPlayConfig){if(d=c.certificate)a.Oe=ey(d);d=parseInt(c.keyRotationPeriodMs,10);0<d&&(a.Mn=d);c=parseInt(c.keyPrefetchMarginMs,10);0<c&&(a.Ln=c)}if(c=b.playbackStartConfig){a.hu=parseInt(c.startSeconds,10);if(d=c.liveUtcStartSeconds)a.liveUtcStartSeconds=
parseInt(d,10);if(c=c.startPosition){if(d=c.utcTimeMillis)a.liveUtcStartSeconds=.001*parseInt(d,10);if(c=c.streamTimeMillis)a.Rp=.001*parseInt(c,10)}}else if(c=b.skippableSegmentsConfig){if(d=c.introSkipDurationMs)a.ys=parseInt(d,10)/1E3;if(c=c.outroSkipDurationMs)a.du=parseInt(c,10)/1E3}if(d=b.skippableIntroConfig)c=parseInt(d.startMs,10),d=parseInt(d.endMs,10),isNaN(c)||isNaN(d)||(a.gy=c,a.fy=d);if(c=b.streamSelectionConfig)a.qh=parseInt(c.maxBitrate,10);(c=b.visualizerConfig)&&c.isVisualizerEligible&&
(a.isVisualizerEligible=!0);if(c=b.vrConfig)a.Di="1"==c.partialSpherical;if(c=b.webDrmConfig){c.skipWidevine&&(a.hC=!0);if(d=c.widevineServiceCert)a.Rm=ey(d);c.useCobaltWidevine&&(a.useCobaltWidevine=!0);c.startWithNoQualityConstraint&&(a.jl=!0)}if(c=b.mediaCommonConfig)if(c=c.dynamicReadaheadConfig)a.maxReadAheadMediaTimeMs=c.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=c.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=c.readAheadGrowthRateMs||NaN};
Gha=function(a,b,c){var d=b.adaptiveFormats;if(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next()){var k=f.value;f=k.indexRange;var l=k.initRange;f={itag:k.itag,url:k.url,index:f?f.start+"-"+f.end:"0-0",bitrate:k.bitrate,init:l?l.start+"-"+l.end:"0-0",type:k.mimeType,clen:k.contentLength,lmt:k.lastModified,xtags:k.xtags};if(l=k.audioTrack){var m=l.displayName;m&&(f.name=m,f.audio_track_id=l.id,l.audioIsDefault&&(f.isDefault="1"))}if(l=k.captionTrack)f.caption_display_name=l.displayName,f.caption_vss_id=
l.vssId,f.caption_language_code=l.languageCode,f.caption_kind=l.kind;(l=k.cipher||k.signatureCipher)?(l=g.kq(l),f.sp=l.sp,f.s=l.s,f.url=l.url):f.url=k.url;l=k.width;m=k.height;null!=l&&null!=m&&(f.size=l+"x"+m);(l=k.fps)&&(f.fps=l);(l=k.type)&&(f.stream_type=Aha[l]);(l=k.projectionType)&&(f.projection_type=Bha[l]);(l=k.stereoLayout)&&(f.stereo_layout=Cha[l]);(l=k.spatialAudioType)&&(f.spatial_audio_type=Dha[l]);if(m=k.drmFamilies){l=[];m=g.q(m);for(var n=m.next();!n.done;n=m.next())l.push(cA[n.value]);
f.drm_families=l.join(",")}(l=k.qualityLabel)&&(f.quality_label=l);(l=k.targetDurationSec)&&(f.target_duration_sec=l);(l=k.maxDvrDurationSec)&&(f.max_dvr_duration_sec=l);(l=k.audioSampleRate)&&(f.audio_sample_rate=l);(l=k.audioChannels)&&(f.audio_channels=l);if(k=k.colorInfo)(l=k.primaries)&&(l=Eha[l])&&(f.primaries=l),(k=k.transferCharacteristics)&&(k=Fha[k])&&(f.eotf=k);e.push(g.wd(f))}a.adaptiveFormats=e.join(",")}if(d=b.formats){e=[];k=g.q(d);for(f=k.next();!f.done;f=k.next())f=f.value,e.push(f.itag+
"/"+f.width+"x"+f.height);a.Hr=e.join(",");e=[];d=g.q(d);for(f=d.next();!f.done;f=d.next()){f=f.value;k={itag:f.itag,type:f.mimeType,quality:f.quality};(l=f.url)&&(k.url=l);if(l=f.cipher||f.signatureCipher)l=g.kq(l),k.sp=l.sp,k.s=l.s,k.url=l.url;f.stereo3d&&(k.stereo3d=1);e.push(g.wd(k))}a.Gk=e.join(",")}if(f=b.hlsFormats){e={};if(c&&(c=c.audioPairingConfig)&&c.pairs)for(c=g.q(c.pairs),d=c.next();!d.done;d=c.next())d=d.value,e[d.videoItag]=d.audioItag;c={};d=g.q(f);for(k=d.next();!k.done;k=d.next())k=
k.value,c[k.itag]=k.bitrate;d=[];f=g.q(f);for(k=f.next();!k.done;k=f.next()){l=k.value;k={itag:l.itag,type:l.mimeType,url:l.url,bitrate:l.bitrate,width:l.width,height:l.height,fps:l.fps};if(m=l.audioTrack)if(n=m.displayName)k.name=n,k.audio_track_id=m.id,m.audioIsDefault&&(k.is_default="1");if(l.drmFamilies){m=[];n=g.q(l.drmFamilies);for(var p=n.next();!p.done;p=n.next())m.push(cA[p.value]);k.drm_families=m.join(",")}l=e[l.itag];m=c[l];l&&m&&(k.audio_itag=l,k.bitrate+=m);d.push(g.wd(k))}a.hlsFormats=
d.join(",")}if((e=b.licenseInfos)&&0<e.length){c={};e=g.q(e);for(d=e.next();!d.done;d=e.next())f=d.value,d=f.drmFamily,f=f.url,d&&f&&(c[cA[d]]=f);a.zc=c}if(c=b.drmParams)a.drmParams=c;if(c=b.dashManifestUrl)a.fe=g.yd(c,{cpn:a.clientPlaybackNonce});if(c=b.hlsManifestUrl)a.hlsvp=c;if(b=b.probeUrl)a.probeUrl=Ww(g.yd(b,{cpn:a.clientPlaybackNonce}))};
Hha=function(a,b,c){var d=b.videoId;d&&(a.videoId=d,c.video_id||(c.video_id=d));a.fa("web_player_uid_killswitch")||(d=b.channelId)&&(a.Pc.uid=d.substr(2));if(d=b.title)a.title=d,c.title||(c.title=d);if(d=b.lengthSeconds)a.lengthSeconds=parseInt(d,10),c.length_seconds||(c.length_seconds=d);if(d=b.keywords)a.keywords=dA(d);if(d=b.channelId)a.Ng=d,c.ucid||(c.ucid=d);if(d=b.viewCount)a.MB=parseInt(d,10);if(d=b.author)a.author=d,c.author||(c.author=d);if(c=b.isCrawlable)a.isListed=c;if(c=b.musicVideoType)a.musicVideoType=
c;c=b.isLive;null!=c&&(a.va=c,a.isPremiere=!!c&&!b.isLiveContent);if(b=b.thumbnail)a.gf=Xz(b)};
Iha=function(a,b){if(b.playerLegacyDesktopYpcTrailerRenderer){var c=b.playerLegacyDesktopYpcTrailerRenderer;a.uq=c.trailerVideoId||"";var d=(d=b.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&d.ypcTrailerRenderer}else if(b.playerLegacyDesktopYpcOfferRenderer)c=b.playerLegacyDesktopYpcOfferRenderer;else if(b.ypcTrailerRenderer){d=b.ypcTrailerRenderer;var e=d.fullVideoMessage;a.Um=e?g.T(e):""}c&&(a.mq=c.itemTitle||"",c.itemUrl&&(a.nq=c.itemUrl),c.itemBuyUrl&&(a.kq=c.itemBuyUrl),a.lq=c.itemThumbnail||
"",a.rq=c.offerHeadline||"",a.qq=c.offerDescription||"",a.tq=c.offerId||"",a.oq=c.offerButtonText||"",a.fv=c.offerButtonFormattedText||null,a.Wm=c.overlayDurationMsec||NaN,a.Um=c.fullVideoMessage||"",a.oj=!0);d&&((c=d.unserializedPlayerResponse)&&!a.fa("web_player_unserialized_ypc_killswitch")?a.Lk={raw_player_response:c}:(c=d.playerVars,a.Lk=c?g.kq(c):null),a.oj=!0)};
Kha=function(a,b,c,d){b.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);if(b.isPostLiveDvr)a.ze=!0;else{var e=!1;if(a.wg)a.allowLiveDvr=eA(!0),a.va=!0;else if(b.isLive){d.livestream="1";a.allowLiveDvr=eA(!!b.isLiveDvrEnabled);a.De=27;b.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);if(e=b.latencyClass)a.latencyClass=Jha[e]||"UNKNOWN";a.ll=!0;if(b=b.liveChunkReadahead)a.liveChunkReadahead=b;if(c=c&&c.livePlayerConfig)if(c.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0),c.hasSubfragmentedWebm&&
(a.Jj=!0),c.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0),c=c.liveExperimentalContentId)a.liveExperimentalContentId=parseInt(c,10);e=!0}else b.isUpcoming&&(e=!0);e&&(a.va=!0,d.adformat&&"8"!=d.adformat.split("_")[1]||(a.fa("live_fresca_v2")?a.Rc.push("heartbeat"):(a.Sn=!0,a.Rc.push("fresca"))),a.Vm=!0,a.Jn=!0)}};
fA=function(a,b){hs.call(this,1,arguments)};
gA=function(a,b){hs.call(this,1,arguments);this.o=a};
Lha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
iA=function(a){var b=hA(a);if(b.aft)return b.aft;a=g.L((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
jA=function(a){return!!g.w("yt.timing."+(a||"")+"pingSent_")};
kA=function(a,b){g.Ga("yt.timing."+(b||"")+"pingSent_",a,void 0)};
mA=function(a){return g.w("ytcsi."+(a||"")+"data_")||lA(a)};
nA=function(a){a=mA(a);a.info||(a.info={});return a.info};
hA=function(a){a=mA(a);a.tick||(a.tick={});return a.tick};
oA=function(a){var b=mA(a).nonce;b||(b=Tr(),mA(a).nonce=b);return b};
lA=function(a){var b={tick:{},info:{}};g.Ga("ytcsi."+(a||"")+"data_",b,void 0);return b};
qA=function(a){var b=hA(a||""),c=iA(a);c&&!pA&&(ks(Mha,new fA(Math.round(c-b._start),a)),pA=!0)};
rA=function(){var a=g.w("ytcsi.debug");a||(a=[],g.Ga("ytcsi.debug",a,void 0),g.Ga("ytcsi.reference",{},void 0));return a};
tA=function(a){a=a||"";var b=sA();if(b[a])return b[a];var c=rA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
sA=function(){var a=g.w("ytcsi.reference");if(a)return a;rA();return g.w("ytcsi.reference")};
uA=function(){this.o=0};
vA=function(){uA.o||(uA.o=new uA);return uA.o};
xA=function(a,b){wA[b]=wA[b]||{count:0};var c=wA[b];c.count++;c.time=(0,g.N)();a.o||(a.o=Sp(function(){var d=(0,g.N)(),e;for(e in wA)wA[e]&&6E4<d-wA[e].time&&delete wA[e];a&&(a.o=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Sq("CSI data exceeded logging limit with key",b),0===b.indexOf("info")?g.Uq(c):g.Tq(c)),!0):!1};
yA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.xo("csi_on_gel")||!!mA(a).useGel};
zA=function(a){a=mA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
AA=function(a){lA(a);Nha();kA(!1,a);a||(g.L("TIMING_ACTION")&&to("PREVIOUS_ACTION",g.L("TIMING_ACTION")),to("TIMING_ACTION",""))};
FA=function(a,b,c){var d=(c=c?c:a)||"",e=sA();e[d]&&delete e[d];var f=rA(),k={timerName:d,info:{},tick:{},span:{}};f.push(k);e[d]=k;tA(c||"").info.actionType=a;BA(c);AA(c);mA(c).useGel=!0;to(c+"TIMING_AFT_KEYS",b);to(c+"TIMING_ACTION",a);CA("c",c);yA(c)&&(a={actionType:DA[uo((c||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:DA[uo("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"},b=oA(c),vA().info(a,b));g.Ga("ytglobal.timing"+(c||"")+"ready_",!0,void 0);EA(c)};
CA=function(a,b){GA("yt_sts",a,b);HA("_start",void 0,b)};
GA=function(a,b,c){if(null!==b)if(nA(c)[a]=b,yA(c)){var d=b;b=zA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a in IA){if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}b=IA[a];g.$a(Oha,b)&&(d=!!d);a in JA&&"string"===typeof d&&(d=JA[a]+d.toUpperCase());a=d;d=b.split(".");for(var k=e={},l=0;l<d.length-1;l++){var m=d[l];k[m]={};k=k[m]}k[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Is({},e)}else g.$a(Pha,a)||g.Uq(new Sq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&KA(b,c)}else tA(c||"").info[a]=b};
KA=function(a,b){if(yA(b)){var c=tA(b||"");Is(c.info,a);c=zA(b);"gelInfos"in c||(c.gelInfos={});Is(c.gelInfos,a);c=oA(b);vA().info(a,c)}};
HA=function(a,b,c){var d=hA(c);if(g.xo("use_first_tick")&&LA(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;MA.mark&&(cc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),MA.mark(e))}e=b||(0,g.N)();d[a]=e;e=zA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(yA(c)){tA(c||"").tick[a]=b||(0,g.N)();e=oA(c);if("_start"===a){var f=vA();xA(f,"baseline_"+e)||g.Rq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else vA().tick(a,e,b);qA(c);e=!0}else e=!1;e||(EA(c),tA(c||"").tick[a]=b||(0,g.N)());
return d[a]};
NA=function(a){var b="above_the_fold";MA&&MA.measure&&(cc(b,"measure_")||(b="measure_"+b),a?MA.measure(b,a):MA.measure(b))};
LA=function(a,b){var c=hA(b);return a in c};
OA=function(a){LA("_start","video_to_ad")&&!LA(a,"video_to_ad")&&HA(a,void 0,"video_to_ad")};
EA=function(a){if(!jA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=hA(a);if(g.w("ytglobal.timing"+(a||"")+"ready_")&&b&&LA("_start")&&iA(a))if(qA(a),a)PA(a);else{b=!0;var d=g.L("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&PA(a)}}};
Qha=function(){switch(xp()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
PA=function(a){if(!yA(a)){var b=hA(a),c=nA(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},k=c.srt;void 0!==b.srt&&delete c.srt;b.aft=iA(a);var l=hA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&nA(a).yt_pvis&&"youtube"===e&&(GA("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var t in b)"_"!==t.charAt(0)&&(m=Math.round(b[t]-d),p[t]=m,e.push(t+"."+
m));f.rt=e.join(",");b=!!c.ap;g.xo("debug_csi_data")&&(c=g.w("yt.timing.csiData"),c||(c=[],g.Ga("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var u in f)f.hasOwnProperty(u)&&(c+="&"+u+"="+f[u]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&b?er(f):g.cr(f);kA(!0,a);ks(QA,new gA(p.aft+(Number(k)||0),a))}};
BA=function(a){if(!yA(a)&&!jA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(HA("aa",void 0,a),GA("ap",1,a),GA("yt_fss","c",a),PA(a))}};
Rha=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=ey(a.ustreamerConfig))};
RA=function(a){g.O.call(this);this.o=null;this.w=new g.oo;this.o=null;this.C=new Set;this.F=a||""};
UA=function(a,b,c){c=SA(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Hb(e)){d=a;var f=c,k=f+"-"+e;d.C.has(k)||(d.C.add(k),g.no(d.w,f,{wy:f,Xz:e}))}TA(a)};
TA=function(a){if(!a.o&&!a.w.isEmpty()){var b=a.w.remove(),c=document.createElement("img");a.F&&(c.crossOrigin=a.F);c.src=a.levels[b.wy].jc(b.Xz);c.onload=(0,g.x)(a.I,a,b.wy,b.Xz);a.o=c}};
g.VA=function(a,b,c,d){this.level=a;this.B=b;this.loaded=new Set;this.level=a;this.B=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.w=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.o=Math.floor(Number(a[5]));this.A=a[6];this.signature=a[7];this.videoLength=d};
WA=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;RA.call(this,c);this.isLive=d;this.G=!!e;this.levels=this.u(a,b);this.A=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
XA=function(a,b,c){return(a=a.levels[b])?a.Yo(c):-1};
SA=function(a,b){var c=a.A.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].Yc()>=b)return a.A.set(b,d),d;a.A.set(b,c-1);return c-1};
YA=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.VA.call(this,a,b,c,0);this.u=null;this.C=d?3:0};
ZA=function(a,b,c,d){WA.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].iz(c)};
g.aB=function(a,b){g.O.call(this);this.Pa=a;this.adModule=!1;this.Tk=this.adaptiveFormats="";this.zc=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.backgroundable=!1;this.be="";this.Sq=this.ln=!1;this.ry=null;this.fi=this.Kk=this.oj=this.Vm=this.Sn=this.Is=!1;this.Am=NaN;this.author="";this.ah=0;this.sn=this.Mw=this.Zq=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.sf=this.Wk="";this.contentCheckOk=!1;this.Me=0;this.Jn=this.ll=!1;this.endSeconds=
0;this.Oe=null;this.Hr="";this.wc=!1;this.qh=this.Lj=0;this.Qq=this.pipable=this.Pj=!1;this.mB=0;this.va=this.wg=this.isPrivate=this.isListed=this.Bs=this.mutedAutoplay=this.Lh=!1;this.Os="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.vo=this.yo=this.ze=!1;this.latencyClass="UNKNOWN";this.Mb=this.isMdxPlayback=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Jf=0;this.reloadReason="";this.Hs=this.oy=this.sh=!1;this.keywords={};this.Ff="";
this.Ao=0;this.Qm=!1;this.liveChunkReadahead=NaN;this.Ps=0;this.Ql=null;this.Rl=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Rc=[];this.Id=void 0;this.racyCheckOk=!1;this.Jp=0;this.xa=null;this.autonavState=1;this.se=this.Ju=!1;this.Rp=this.ph=this.startSeconds=0;this.gq=this.mw=this.OC=Du;this.Ak=this.suggestions=null;this.Nu=!1;this.hlsFormats=this.Gk=this.expandedSubtitle=this.pl=this.subtitle=this.title="";this.Do=this.Qp=this.Ik=this.Gg=this.me=this.Cm=
this.oo=null;this.Xh="vvt";this.fv=null;this.XC="";this.Wm=NaN;this.uq=this.nq=this.mq=this.lq=this.kq=this.tq=this.Um=this.rq=this.qq=this.oq="";this.Lk=null;this.TB=!1;this.Pc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.Ux=this.Tx=NaN;this.Zi=this.Sj=this.di=this.dy=this.Vx=!1;this.Hm=!0;this.gf={};this.captionTracks=[];this.Yq=[];this.pw=0;this.qw=[];this.yn=!1;this.fl=new Us("und",new Rs("Default","und",!0));this.Js=0;this.uc=null;this.rk=[];this.bi=[];this.av=this.xm=
"";this.slotPosition=-1;this.breakType=0;this.Og=this.Da=this.Qw=this.kl=this.wf=null;this.vr=!1;this.Sc=null;this.As=this.jl=this.useCobaltWidevine=this.hC=this.Di=this.xg=!1;this.fy=this.gy=NaN;this.defraggedFromSubfragments=this.Jj=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Mh=this.cv=this.nj=!1;this.interstitials=[];this.lc=this.Cs=!1;this.wm=this.Zz=this.hg="";this.isVisualizerEligible=!1;this.tp=null;this.Eb="";this.Df=this.ay=!1;this.Yz=this.Tm="";this.hu=this.du=
this.ys=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Jm=!1;this.zk=this.Th=!0;this.errorDetail=this.userGenderAge="";this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.dh=this.errorReason=this.errorCode=null;this.Dn=this.Cn="";this.tj=void 0;this.fa("web_player_ux_module_wait")&&this.Pa.za&&this.Rc.push("ux");this.wr=this.xj=
!1;this.sB={};$A(this,b)};
cB=function(a,b){a.Ww=Dy(a.Ww,b.fflags);var c=b.iv_invideo_url;c&&(a.be=Ww(c));a.ln=S(a.ln,b.iv_ads_only);a.Sq=S(a.Sq,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=Dy(a.author,b.author);a.Wk=aA(b.ttsurl)||a.Wk;a.Zq=S(a.Zq,b.cc_asr);a.sf=Dy(a.sf,b.channel_path);a.channelBanner=Dy(a.channelBanner,b.channel_banner);a.videoCountText=Dy(a.videoCountText,b.video_count_text);a.autonavState=By(a.autonavState,b.autonav_state,Sha);a.clientPlaybackNonce=Dy(a.clientPlaybackNonce,b.cpn);
a.subscribed=S(a.subscribed,b.subscribed);a.MB=Cy(a.MB,b.view_count);a.shortViewCount=Dy(a.shortViewCount,b.short_view_count_text);a.title=Dy(a.title,b.title);a.subtitle=Dy(a.subtitle,b.subtitle);a.pl=Dy(a.pl,b.expanded_title);a.expandedSubtitle=Dy(a.expandedSubtitle,b.expanded_subtitle);a.Tk=Dy(a.Tk,b.aria_label);a.ypcPreview=Dy(a.ypcPreview,b.ypc_preview);a.gv=Dy(a.gv,b.ypc_origin);a.Tm=Dy(a.Tm,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.TB=S(a.TB,b.requires_purchase);a.showShareButton=
!S(!a.showShareButton,b.ss);a.Th=S(a.Th,b.showwatchlater);a.zk=S(a.zk,b.shownotifybutton);a.Jm=S(a.Jm,b.copy_share);if(c=b.keywords)a.keywords=dA(c.split(","));if(c=b.rvs)a.suggestions=g.lq(c);a.contentCheckOk=S(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=S(a.racyCheckOk,"1"==b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Dy(a.oauthToken,b.oauth_token);a.Ff=Dy(a.Ff,b.kpt);a.visitorData=Dy(a.visitorData,b.visitor_data);if(c=b.session_data)a.Ob=iq(c);if(c=
b.endscreen_autoplay_session_data)a.Tw=iq(c);a.Kn=Dy(a.Kn,b.endscreen_ad_tracking_data);a.SC=S(a.SC,b.wait_for_vast_info_cards_xml);a.Lu=S(a.Lu,b.suppress_creator_endscreen);a.ny=S(a.ny,b.is_trueview_action);a.wC=Dy(a.wC,b.tracking_list);a.Cn=Dy(a.Cn,b.clip);a.Dn=Dy(a.Dn,b.clipt);bB(a,b)};
$A=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);c=b.errorcode;null!=c?a.errorCode=c:"fail"==b.status&&(a.errorCode="150");c=b.reason;null!=c&&(a.errorReason=c);c=b.subreason;null!=c&&(a.dh=c);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||Tr());a.wg=S(a.Pa.wg,b.livemonitor);c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.wf=c);a.wf&&((c=a.wf.embedPreview)&&Tha(a,b,c),a.wf.playabilityStatus&&(a.kl=a.wf.playabilityStatus,
Uha(a)));c=b.raw_player_response;c||(d=b.player_response)&&(c=JSON.parse(d));c&&(a.Da=c);if(a.Da){(c=a.Da.annotations)&&nha(a,c);(c=a.Da.attestation)&&oha(a,c);(c=a.Da.heartbeatParams)&&rha(a,c);(c=a.Da.messages)&&tha(a,c);(c=a.Da.multicamera)&&uha(a,c);(c=a.Da.overlay)&&vha(a,c);if(c=a.Da.playabilityStatus)wha(a,c),(d=c.errorScreen)&&Iha(a,d);(d=a.Da.playbackTracking)&&xha(a,d,b);(d=a.Da.playerAds)&&yha(a,d,b);(d=a.Da.playerConfig)&&zha(a,d);var e=a.Da.streamingData;e&&Gha(a,e,d||null);if(e=a.Da.trackingParams)a.Af=
e;if(e=a.Da.videoDetails)if(Hha(a,e,b),Kha(a,e,d||null,b),d=e.isPrivate)a.isPrivate=S(a.isPrivate,d);c&&qha(a,c,e||null);(c=a.Da.interstitialPods)&&sha(a,c);a.be&&a.eventId&&(a.be=pq(a.be,{ei:a.eventId}));(c=a.Da.captions)&&c.playerCaptionsTracklistRenderer&&pha(a,c.playerCaptionsTracklistRenderer);a.tj=a.Da.clipConfig;a.tj&&null!=a.tj.startTimeMs&&(a.hu=.001*parseInt(a.tj.startTimeMs,10));a.fa("web_player_include_innertube_commands")&&a.Da&&a.Da.playerConfig&&a.Da.playerConfig.webPlayerConfig&&a.Da.playerConfig.webPlayerConfig.webPlayerActionsPorting&&
bA(a,a.Da.playerConfig.webPlayerConfig.webPlayerActionsPorting)}dB(a,b);b.queue_info&&(a.queueInfo=b.queue_info);c=b.hlsdvr;null!=c&&(a.allowLiveDvr=eA("1"==c));a.adQueryId=b.ad_query_id||null;a.adSafetyReason||(a.adSafetyReason=b.encoded_ad_safety_reason||null);a.YD=b.agcid||null;a.Wv=b.ad_id||null;a.Yv=b.ad_sys||null;a.Sw=b.encoded_ad_playback_context||null;a.fi=S(a.fi,b.infringe||b.muted);a.authKey=b.authkey;a.Nc=b.authuser;a.mutedAutoplay=S(a.mutedAutoplay,b&&b.playmuted)&&a.fa("embeds_enable_muted_autoplay");
a.ll=S(a.ll,b.enable_cardio);a.Jn=S(a.Jn,b.enable_cardio_before_playback);a.endSeconds=Cy(a.endSeconds,a.du||b.end||b.endSeconds);a.Af=Dy(a.Af,b.itct);a.Bs=S(a.Bs,b.noiba);a.vo=S(a.vo,b.is_live_destination);a.va=S(a.va,b.live_playback);a.isMdxPlayback=S(a.isMdxPlayback,b.mdx);if(c=b.mdx_control_mode)a.mdxControlMode="number"===typeof c?c:g.hd(c);a.As=S(a.As,b.is_inline_playback_no_ad);a.Jf=Cy(a.Jf,b.reload_count);a.reloadReason=Dy(a.reloadReason,b.reload_reason);a.Hm=S(a.Hm,b.show_content_thumbnail);
a.Hs=S(a.Hs,b.utpsa);a.Nu=S(a.Nu,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.tC=b.tkn||null;c=Uz(b);0<Object.keys(c).length&&(a.gf=c);a.ae=Dy(a.ae,b.vvt);a.mdxEnvironment=Dy(a.mdxEnvironment,b.mdx_environment);a.QJ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Dy(a.playlistId,b.list);a.xB=b.pyv_view_beacon_url;a.AB=b.pyv_quartile25_beacon_url;a.BB=b.pyv_quartile50_beacon_url;a.CB=b.pyv_quartile75_beacon_url;a.zB=b.pyv_quartile100_beacon_url;if(c=b.remarketing_url)a.remarketingUrl=
c;if(c=b.ppv_remarketing_url)a.ppvRemarketingUrl=c;c=b.session_data;!a.OB&&c&&(a.OB=iq(c).feature);a.ky=1==Cy(a.ky?1:0,b.is_fling);a.vnd=Cy(a.vnd,b.vnd);a.sl=Dy(a.sl,b.force_ads_url);a.Kf=Dy(a.Kf,b.ctrl);a.Lf=Dy(a.Lf,b.ytr);a.Fn=b.ytrcc;a.QB=b.ytrexp;a.xm=Dy(a.xm,b.adformat);a.av=Dy(a.av,b.attrib);a.slotPosition=Cy(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Gm=S(a.Gm,b.ssrt);a.videoId=Fy(b)||a.videoId;a.Wh=Dy(a.Wh,b.vss_credentials_token);a.Xh=Dy(a.Xh,b.vss_credentials_token_type);a.nj=
S(a.nj,b.audio_only);a.cv=S(a.cv,b.aac_high);a.Mh=S(a.Mh,b.prefer_low_quality_audio);a.wm=Dy(a.wm,b.qoe_cat);a.xj=S(a.xj,b.download_media);a.wr=S(a.wr,b.download_media_in_bg);a.Df=S(a.Df,b.prefer_gapless);Vha(a.Da)&&(a.adModule=!0,a.Rc.push("ad"));if(c=b.adaptive_fmts)a.adaptiveFormats=c;if(c=b.allow_embed)a.allowEmbed="1"==c;if(c=b.backgroundable)a.backgroundable="1"==c;if(c=b.autonav)a.Pj="1"==c;if(c=b.autoplay)a.Lh="1"==c;if(c=b.iv_load_policy)a.annotationsLoadPolicy=By(a.annotationsLoadPolicy,
c,Wy);if(c=b.cc_lang_pref)a.captionsLanguagePreference=Dy(c,a.captionsLanguagePreference);if(c=b.cc_load_policy)a.Xg=By(a.Xg,c,Wy);if(c=b.cached_load)a.sn=S(a.sn,c);"0"==b.dash&&(a.Mw=!0);if(c=b.dashmpd)a.fe=g.yd(c,{cpn:a.clientPlaybackNonce});if(c=b.delay)a.Me=g.hd(c);c=a.du||b.end;void 0!=c&&(a.clipEnd=Cy(a.clipEnd,c));if(c=b.fmt_list)a.Hr=c;b.fresca_preroll&&a.Rc.push("fresca");b.heartbeat_preroll&&a.Rc.push("heartbeat");a.Lj=-Math.floor(10*Math.random());a.Rl=-Math.floor(40*Math.random());if(c=
b.is_listed)a.isListed=S(a.isListed,c);if(c=b.is_private)a.isPrivate=S(a.isPrivate,c);if(c=b.pipable)a.pipable=S(a.pipable,c);a.Qq=a.pipable&&a.Pa.po;a.Ju=a.Qq&&(!a.Pa.showMiniplayerButton||a.fa("web_player_pip"));if(c=b.paid_content_overlay_duration_ms)a.mB=g.hd(c);if(c=b.paid_content_overlay_text)a.PN=c;if(c=b.url_encoded_fmt_stream_map)a.Gk=c;if(c=b.hls_formats)a.hlsFormats=c;if(c=b.hlsvp)a.hlsvp=c;if(c=b.length_seconds)a.lengthSeconds="string"===typeof c?g.hd(c):c;if(c=b.live_start_walltime)a.Ps=
"number"===typeof c?c:g.hd(c);if(c=b.live_manifest_duration)a.Ql="number"===typeof c?c:g.hd(c);if(c=b.player_params)a.playerParams=c;if(c=b.partnerid)a.De=Cy(a.De,c);if(c=b.probe_url)a.probeUrl=Ww(g.yd(c,{cpn:a.clientPlaybackNonce}));if(c=b.profile_picture)a.Id=Dy(c,a.Id);(c=b.pyv_billable_url)&&Tw(c)&&(a.tm=c);(c=b.pyv_conv_url)&&Tw(c)&&(a.yB=c);bB(a,b);0<a.startSeconds||(a.startSeconds=Cy(a.startSeconds,a.hu||a.ys||b.start||b.startSeconds),a.ph=a.startSeconds);c=b.live_utc_start;null!=c&&(a.liveUtcStartSeconds=
parseInt(c,10));if(c=b.utc_start_millis)a.liveUtcStartSeconds=.001*parseInt(c,10);if(c=b.stream_time_start_millis)a.Rp=.001*parseInt(c,10);c=a.ys||b.start;void 0==c||"1"==b.resume||a.va||(a.clipStart=Cy(a.clipStart,c));if(c=b.url_encoded_third_party_media)a.Ak=g.lq(c);if(c=b.ypc_offer_button_formatted_text)d=JSON.parse(c),a.fv=null!=d?d:null,a.XC=c;if(c=b.ypc_offer_button_text)a.oq=c;if(c=b.ypc_offer_description)a.qq=c;if(c=b.ypc_offer_headline)a.rq=c;if(c=b.ypc_full_video_message)a.Um=c;if(c=b.ypc_offer_id)a.tq=
c;if(c=b.ypc_buy_url)a.kq=c;if(c=b.ypc_item_thumbnail)a.lq=c;if(c=b.ypc_item_title)a.mq=c;if(c=b.ypc_item_url)a.nq=c;if(c=b.ypc_vid)a.uq=c;b.ypc_overlay_timeout&&(a.Wm=parseInt(b.ypc_overlay_timeout,10));if(c=b.ypc_trailer_player_vars)a.Lk=g.kq(c);if(c=b.ypc_original_itct)a.qP=c;a.Ng=Dy(a.Ng,b.ucid);(0,g.y)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(f){b[f]&&(this.Pc[f]=b[f])},a);
a.Pc.focEnabled=S(a.Pc.focEnabled,b.focEnabled);a.Pc.rmktEnabled=S(a.Pc.rmktEnabled,b.rmktEnabled);a.Qp=b.storyboard_spec||null;a.Do=b.live_storyboard_spec||null;a.ry=b.iv_endscreen_url||null;a.Is=S(a.Is,b.iv3_module);a.Sn=S(a.Sn,b.fresca_module);a.Vm=S(a.Vm,b.ypc_license_checker_module);a.oj=S(a.oj,b.ypc_module);a.Kk=S(a.Kk,b.ypc_clickwrap_module);a.oj&&a.Rc.push("ypc");a.Kk&&a.Rc.push("ypc_clickwrap");a.sB={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,
ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};cB(a,b);eB(a)?Wha(a):Xha(a);if(c=b.adpings)a.Xv=c?g.kq(c):null;if(c=b.feature)a.ym=c;if(c=b.referrer)a.referrer=c;a.clientScreenNonce=
Dy(a.clientScreenNonce,b.csn);a.Jp=Cy(a.Jp,b.root_ve_type);a.Ao=Cy(a.Ao,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Qm=S(a.Qm,b.upg_content_filter_mode);if(c=b.unplugged_location_info)a.Sc=c;if(c=b.unplugged_partner_opt_out)a.Ck=Dy("",c);a.vr=S(a.vr,b.disable_watch_next);a.Jl=Dy(a.Jl,b.internal_ip_override);a.Cs=!!b.is_yto_interstitial;(a.interstitials.length||a.Cs)&&a.Rc.push("yto")};
dB=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Og=c;a.fa("embedded_player_watch_next_parse_killswitch")||(c=a.Og.playerOverlays)&&c.playerOverlayRenderer&&(c=c.playerOverlayRenderer,c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer&&fB(a,b,c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer));c=a.Og.contents;var e;if(c){if(e=c.singleColumnWatchNextResults){var f=Cy(0,b.autoplay_count);if(e.autoplay&&e.autoplay.autoplay&&
!e.playlist){var k=e.autoplay.autoplay.sets;e={};d={};var l=null;if(k){for(var m=g.q(k),n=m.next();!n.done;n=m.next())if((n=n.value.autoplayVideoRenderer)&&n.compactVideoRenderer){l=n.compactVideoRenderer;break}if(k=k[0].autoplayVideo)(k=k.clickTrackingParams)&&(e.itct=k),e.autonav="1",e.playnext=String(f)}else e.feature="related-auto";if(l){d.autonav="1";d.video_id=l.videoId;if(f=l.shortBylineText)d.author=g.T(f);if(f=l.title)d.title=g.T(f)}d.endscreen_autoplay_session_data=g.wd(e);a.suggestions=
[d]}}e=c.twoColumnWatchNextResults}c=a.Og.playerOverlays;if(c&&(c=c.playerOverlayRenderer)){if(d=c.endScreen)if(d=d.watchNextEndScreenRenderer)var p=d.results;if(d=c.videoDetails){var t=d.embeddedPlayerOverlayVideoDetailsRenderer;if(d=d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Er=d.title,a.Dr=d.byline}if(d=c.actions)for(d=g.q(d),f=d.next();!f.done;f=d.next())f=f.value,f.likeButtonRenderer&&(a.likeButtonRenderer=f.likeButtonRenderer);g.Ry(a.Pa)&&(a.Th=!!c.addToMenu);gB(a,c.shareButton)}!p&&
e&&(c=e.endScreen&&e.endScreen.endScreen)&&(p=c.results);e&&(c=e.desktopOverlay&&e.desktopOverlay.desktopOverlayConfigRenderer)&&(c.suppressShareButton&&(a.showShareButton=!1),c.suppressWatchLaterButton&&(a.Th=!1));t&&fB(a,b,t);if(p){t=e||null;e=Cy(0,b.autoplay_count);c=[];f=!0;p=g.q(p);for(d=p.next();!d.done;d=p.next()){k=d.value;l=void 0;d=null;if(k.endScreenVideoRenderer){k=k.endScreenVideoRenderer;m=k.title;d={id:k.videoId,length_seconds:k.lengthInSeconds};if(n=k.shortBylineText)d.author=g.T(n);
if(n=k.shortViewCountText)d.short_view_count_text=g.T(n);m&&(d.title=g.T(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(d.aria_label=m.label));if(m=k.navigationEndpoint)l=m.clickTrackingParams;if(m=k.thumbnailOverlays)for(m=g.q(m),n=m.next();!n.done;n=m.next())if((n=n.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==n.style){d.live_playback="1";break}k=Xz(k.thumbnail);k=Tz(k);k.iurlmq&&(k={iurlmq:k.iurlmq,iurlhq:k.iurlmq});Object.assign(d,k)}else if(k.endScreenPlaylistRenderer){k=k.endScreenPlaylistRenderer;
l=k.navigationEndpoint;if(!l)continue;d=l.watchEndpoint;if(!d)continue;d=d.videoId;d={list:k.playlistId,video_id:d,playlist_length:k.videoCount,thumbnail_ids:d};if(m=k.title)d.playlist_title=g.T(m);if(m=k.shortBylineText)d.playlist_author=g.T(m);l=l.clickTrackingParams;k=Xz(k.thumbnail);Object.assign(d,Tz(k))}d&&(d.session_data=g.wd({itct:l}),f?(f={autonav:1,playnext:e},d.list&&(f.autoplay="1"),t&&(l=t.autoplay)&&(l=l.autoplay)&&(l=l.sets)&&(l=l[0])&&(l=l.autoplayVideo)&&(l=l.clickTrackingParams)&&
(f.itct=l),f.itct||(f.feature="related-auto"),d.endscreen_autoplay_session_data=g.wd(f),c.splice(0,0,d),f=!1):c.push(d))}a.suggestions=c}a.Og.currentVideoThumbnail&&(a.gf=Xz(a.Og.currentVideoThumbnail))}};
Vha=function(a){if(!a||!a.adPlacements)return!1;a=g.q(a.adPlacements);for(var b=a.next();!b.done;b=a.next())if(b=b.value.adPlacementRenderer,null!=b&&"AD_PLACEMENT_KIND_START"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind))return!0;return!1};
jB=function(a){var b=a.Df,c=!!a.ia&&(a.ia.yg()||a.ia.zg()||a.ia.tg()),d=a.Pa,e=!!a.ia&&a.ia.Ef,f=hB(a),k=a.cv;a.isAd();var l=a.Ml(),m=iB(a,"html5_samsung_vp9_live"),n=new Rga;n.P=f;n.C=k&&d.w;dl("windows nt 5.1")&&!g.hu&&(n.o=!0);c&&Oy&&6>=Py&&(n.o=!0);if(f=c)f=d.fa("disable_html5_ambisonic_audio")||!(g.pz(d)||d.fa("html5_enable_spherical")||d.fa("html5_enable_spherical3d"))?!1:qz(d);f&&(n.I=!0);b&&(n.o=!0,n.ba=!0);l&&!g.P(d.experiments,"html5_otf_prefer_vp9")&&(n.o=!0);fu(d.A,ou)&&(g.P(d.experiments,
"html5_enable_aac51")&&(n.B=!0),g.P(d.experiments,"html5_enable_ac3")&&(n.u=!0),g.P(d.experiments,"html5_enable_eac3")&&(n.A=!0));!g.P(d.experiments,"html5_kaios_hd_killswitch")&&Jy&&(n.U=480);if(e||c)n.M=!1;n.R=!1;b=uz(d);0<b&&2160>b&&window.SourceBuffer&&SourceBuffer.prototype.changeType&&(n.w=b);2160<=b&&(n.V=!0);my()&&(n.Z=!1);n.G=m;hl()&&a.Da&&a.Da.playerConfig&&a.Da.playerConfig.webPlayerConfig&&a.Da.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.u=!0,n.A=!0);a.va&&(m=a.Mb&&a.Pa.fa("html5_enable_audio_51_for_live_dai"),
a=!a.Mb&&a.Pa.fa("html5_enable_audio_51_for_live_non_dai"),n.F=m||a);return n};
Xha=function(a){kB(a)?a.di=!0:!lB(a,a.adaptiveFormats)&&a.fe&&(a.di=!0)};
lB=function(a,b){var c;(c=!b)||(c=!(!mB(a)&&a.adaptiveFormats));if(c)return!1;c=nB(b);var d=a.zc;var e=a.lengthSeconds,f=a.va,k=a.ze,l=a.Pa.experiments,m=wga(c);d=f||k?vga(c,k,d,l):3==m?uga(c,d,e,l):tga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=Rx(c.url,c.sp,c.s,a.Pa.experiments),c=parseInt(c.get("max_sq"),10)||Infinity,isFinite(c)&&(a.yo=!0)));if(c=d.u)c=!(a.fa("html5_manifestless_vp9")||a.fa("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||
!Yha(d));if(c)return d.dispose(),!1;oB(a,d);d.w&&d.subscribe("cuepointsadded",a.Aw,a);Nx(d)&&(a.Sj=!0);return!0};
mB=function(a){return hl()&&!pB(a)};
pB=function(a){return iB(a,"html5_enable_tvos_dash_dogfood")||a.fa("html5_enable_tvos_dash")&&MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
Wha=function(a){mB(a)&&(a.va&&a.fe?a.di=!0:a.Oe&&(a.Sj=!0))};
Yha=function(a){return a.u&&Et('video/webm; codecs="vp9"')&&Cb(a.o,function(b){return et(b.info)})};
qB=function(a){return!(!a.ia||!a.ia.u)};
sB=function(a){if(!sx())return!1;if(a.fa("html5_streaming_debug"))return!0;if(g.wu)return!1;if(g.gl()){var b=cl();if(16<=b&&17>b)return!1}return!qB(a)||"ULTRALOW"!=a.latencyClass&&21530001!=rB(a)?window.AbortController?a.fa("html5_streaming_xhr")||a.fa("html5_streaming_xhr_manifestless")&&qB(a)?!0:!1:!1:!0};
tB=function(a){var b=qB(a),c=sB(a);return(a.hasSubfragmentedFmp4||a.Jj)&&b?c&&sx()?3:2:a.defraggedFromSubfragments&&b?-1:1};
rB=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ia&&5<=by(a.ia)?21530001:a.liveExperimentalContentId};
eB=function(a){return hl()&&pB(a)?!1:!tu()||a.Mw?!0:!1};
Zha=function(a){a.wc=!0;a.di=!1;if(!a.fe&&kB(a))yfa(a.videoId).then(function(d){return lB(a,d)},function(){return lB(a,a.adaptiveFormats)}).then(function(){return uB(a)});
else{Rw(a.fe)||g.Uq(new Sq("DASH MPD Origin invalid: ",a.fe));var b=a.fe,c=g.Q(a.Pa.experiments,"dash_manifest_version")||4;b=g.yd(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.yd(b,{pacing:0}));zga(b,a.Pa.experiments,a.va).then(a.MK,a.LK,a);HA("mrs")}};
g.vB=function(a){if(!a.Sc)return null;var b=null!=a.Sc.latitudeE7&&null!=a.Sc.longitudeE7?a.Sc.latitudeE7+","+a.Sc.longitudeE7:",";return b+=","+(a.Sc.clientPermissionState||0)+","+(a.Sc.locationRadiusMeters||"")+","+(a.Sc.locationOverrideToken||"")};
uB=function(a){a.ea()||(a.wc=!1,a.S("dataloaded"))};
oB=function(a,b){a.ia=b;g.B(a,b);wB(a)&&a.Rc.push("webgl");a.ia.isLive||(a.va=!1);var c=b.sourceUrl.split("/");-1!=c.indexOf("manifest_duration")&&(a.Ql=parseInt(c[c.indexOf("manifest_duration")+1],10))};
xB=function(a){return a.zc?!0:a.fa("web_player_content_protection_manifest_killswitch")?!1:!!a.ia&&Nx(a.ia)};
$ha=function(a,b){var c=b||eB(a);if(a.ia&&!c){if(hB(a)){c=a.ia;var d=a.va;if(!c.o["0"]){var e=new dt("0","fakesb",void 0,new Ys(0,0,0,void 0,void 0,"auto"),null,null,1);c.o["0"]=d?new rx(new Xw("http://www.youtube.com/videoplayback"),e,"fake"):new Ix(new Xw("http://www.youtube.com/videoplayback"),e,new Xv(0,0),new Xv(0,0),0,NaN)}}iB(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Pa.A.A=!0);return Zga(jB(a),a.Pa.A,a.ia,a.uc).then(a.Hu,void 0,a)}return kr()};
g.yB=function(a){return mB(a)&&a.Oe?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Ba&&a.Ba.zc||null};
zB=function(a){var b=a.Da&&a.Da.paidContentOverlay&&a.Da.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.PN};
AB=function(a){var b=a.Da&&a.Da.paidContentOverlay&&a.Da.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.hd(b.durationMs):a.mB};
BB=function(a){var b="";if(a.Os)return a.Os;a.va&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.CB=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
DB=function(a){return!!(a.fe||a.adaptiveFormats||a.Gk||a.Ak||a.hlsvp)};
EB=function(a){var b=g.$a(a.Rc,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.wc&&(DB(a)||g.$a(a.Rc,"fresca")||g.$a(a.Rc,"heartbeat")||b)};
nB=function(a,b){var c=g.lq(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d[f.itag];k&&(f.width=k.width,f.height=k.height)}return c};
Uha=function(a){if(FB(a)&&(a.errorDetail="0",a.kl)){var b=a.kl.embeddedPlayerErrorMessageRenderer;b&&(a.Qw=b)}};
gB=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Jm=!!c.copyTextEndpoint)}};
Tha=function(a,b,c){c=c.thumbnailPreviewRenderer;var d=c.controlBgHtml;null!=d?(a.hg=d,a.lc=!0):(a.hg="",a.lc=!1);if(d=c.defaultThumbnail)a.gf=Xz(d);a.fa("web_player_embedded_details_parsing_killswitch")||(d=c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&fB(a,b,d);if(b=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Er=b.title,a.Dr=b.byline,b.musicVideoType&&(a.musicVideoType=b.musicVideoType);a.Th=!!c.addToWatchLaterButton;gB(a,c.shareButton);
c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(b=c.playButton.buttonRenderer.navigationEndpoint,b.watchEndpoint&&(b=b.watchEndpoint,b.watchEndpointSupportedOnesieConfig&&b.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&(a.tp=new Rha(b.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));a.fa("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&bA(a,c.webPlayerActionsPorting)};
fB=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.T(e));if(d=d.subtitle)b.subtitle=g.T(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.T(d);if(d=c.subtitle)b.expanded_subtitle=g.T(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.zk=!!c.notificationPreferenceToggleButton}};
g.GB=function(a){return a.va&&!a.allowLiveDvr};
HB=function(a){return a.va&&a.allowLiveDvr};
wB=function(a){return a.zg()||a.yg()||a.Oj()||a.tg()};
aia=function(a){a.xa=a.xa.u};
g.IB=function(a){if(a.Lu)return null;var b=a.ry;b||(b=a.Da&&a.Da.endscreen&&a.Da.endscreen.endscreenUrlRenderer&&a.Da.endscreen.endscreenUrlRenderer.url);return b||null};
g.JB=function(a){return a.Lu?null:a.Da&&a.Da.endscreen&&a.Da.endscreen.endscreenRenderer||null};
g.KB=function(a){return a.Da&&a.Da.cards&&a.Da.cards.cardCollectionRenderer||null};
g.LB=function(a){if(!a.Da||!a.Da.annotations)return null;a=g.q(a.Da.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
MB=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Pa.ba};
NB=function(a){return a.Lh||"detailpage"==MB(a)||a.mutedAutoplay};
OB=function(a){if(NB(a)){if("detailpage"==MB(a))return a.Pj||0<a.Jf;if("adunit"!=MB(a)||!a.tm)return!0}return!1};
PB=function(a){var b=1,c=g.Q(a.Pa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);return Math.min(1,Math.pow(10,-a.Am/20))||b};
hB=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"==a.Pa.deviceParams.c&&"MUSIC"==a.Pa.deviceParams.ctheme;!a.nj&&(mz(a.Pa)||c)&&b.includes(a.musicVideoType)&&(a.nj=!0);if(b=g.gl())b=/Starboard\/([0-9]+)/.exec(g.Ic),b=10>(b?parseInt(b[1],10):NaN);if(c=!a.nj)c=a.Pa,c="TVHTML5_CAST"==c.deviceParams.c||"TVHTML5"==c.deviceParams.c&&c.deviceParams.cver.startsWith("6.20130725");c&&"MUSIC"==a.Pa.deviceParams.ctheme&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===
a.musicVideoType,c=a.fa("cast_prefer_audio_only_for_atv_and_uploads")&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.nj=!0);return!a.Pa.deviceHasDisplay||a.nj&&a.Pa.w};
QB=function(a){return!!(a.fa("mweb_hoffline")&&a.adaptiveFormats&&a.xj&&a.Pa.w)};
RB=function(a,b){if(a.xj!=b&&(a.xj=b)&&a.ia){var c=a.ia,d;for(d in c.o){var e=c.o[d];e.B=!1;e.o=null}}};
kB=function(a){var b;if(b=a.fa("mweb_hoffline")&&a.adaptiveFormats)b=a.videoId,b=!!b&&1===rt(b);return!(!b||a.xj)};
FB=function(a){return(a=a.kl)&&a.showError?a.showError:!1};
SB=function(a){return a.fa("disable_rqs")?!1:iB(a,"html5_high_res_logging")};
iB=function(a,b){return a.fa(b)?!0:(a.Ww||"").includes(b+"=true")};
bB=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.yp=c.quartile_0_url,a.lu=c.quartile_25_url,a.nu=c.quartile_50_url,a.pu=c.quartile_75_url,a.ju=c.quartile_100_url,a.zp=c.quartile_0_urls,a.mu=c.quartile_25_urls,a.ou=c.quartile_50_urls,a.qu=c.quartile_75_urls,a.ku=c.quartile_100_urls)};
eA=function(a){return a?tu()?!0:TB&&5>UB?!1:!0:!1};
dA=function(a){var b={};(0,g.y)(a,function(c){var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0});
return b};
aA=function(a){if(a){if(Uw(a))return a;a=Vw(a);if(Uw(a,!0))return a}return""};
WB=function(a,b){g.A.call(this);var c=this;this.app=a;this.o=!0;this.A=null;this.C={};this.G={};this.w={};this.I=[];this.F={};this.B={};this.u=null;this.M=new Set;this.playerType=b;VB(this,"cueVideoById",this.cueVideoById);VB(this,"loadVideoById",this.loadVideoById);VB(this,"cueVideoByUrl",this.cueVideoByUrl);VB(this,"loadVideoByUrl",this.loadVideoByUrl);VB(this,"playVideo",this.playVideo);VB(this,"pauseVideo",this.pauseVideo);VB(this,"stopVideo",this.stopVideo);VB(this,"clearVideo",this.clearVideo);
VB(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);VB(this,"getVideoBytesTotal",this.getVideoBytesTotal);VB(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);VB(this,"getVideoStartBytes",this.getVideoStartBytes);VB(this,"cuePlaylist",this.cuePlaylist);VB(this,"loadPlaylist",this.loadPlaylist);VB(this,"nextVideo",this.nextVideo);VB(this,"previousVideo",this.previousVideo);VB(this,"playVideoAt",this.playVideoAt);VB(this,"setShuffle",this.setShuffle);VB(this,"setLoop",this.setLoop);VB(this,
"getPlaylist",this.getPlaylist);VB(this,"getPlaylistIndex",this.getPlaylistIndex);VB(this,"getPlaylistId",this.getPlaylistId);VB(this,"loadModule",this.loadModule);VB(this,"unloadModule",this.unloadModule);VB(this,"setOption",this.setOption);VB(this,"getOption",this.getOption);VB(this,"getOptions",this.getOptions);VB(this,"mute",this.mute);VB(this,"unMute",this.unMute);VB(this,"isMuted",this.isMuted);VB(this,"setVolume",this.setVolume);VB(this,"getVolume",this.getVolume);VB(this,"seekTo",this.seekTo);
VB(this,"getPlayerState",this.getPlayerState);VB(this,"getPlaybackRate",this.getPlaybackRate);VB(this,"setPlaybackRate",this.setPlaybackRate);VB(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);VB(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
VB(this,"setPlaybackQuality",this.setPlaybackQuality);VB(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);VB(this,"getCurrentTime",this.getCurrentTime);VB(this,"getDuration",this.getDuration);VB(this,"addEventListener",this.addEventListener);VB(this,"removeEventListener",this.removeEventListener);VB(this,"getDebugText",this.getDebugText);VB(this,"getVideoData",function(){return c.getVideoData()});
VB(this,"addCueRange",this.addCueRange);VB(this,"removeCueRange",this.removeCueRange);VB(this,"setSize",this.setSize);VB(this,"getApiInterface",this.getApiInterface);VB(this,"destroy",this.destroy);VB(this,"showVideoInfo",this.showVideoInfo);VB(this,"hideVideoInfo",this.hideVideoInfo);VB(this,"isVideoInfoVisible",this.isVideoInfoVisible);VB(this,"getSphericalProperties",this.getSphericalProperties);VB(this,"setSphericalProperties",this.setSphericalProperties);this.app.N().B||(VB(this,"getVideoEmbedCode",
this.getVideoEmbedCode),VB(this,"getVideoUrl",this.getVideoUrl));VB(this,"getMediaReferenceTime",this.getMediaReferenceTime);U(this,"getInternalApiInterface",this.getInternalApiInterface);U(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);U(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);U(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);U(this,"getAdState",this.getAdState);U(this,"sendAbandonmentPing",this.sendAbandonmentPing);U(this,"setLoopRange",this.setLoopRange);
U(this,"getLoopRange",this.getLoopRange);U(this,"setAutonavState",this.setAutonavState);U(this,"seekToLiveHead",this.seekToLiveHead);U(this,"seekToStreamTime",this.seekToStreamTime);U(this,"getStreamTimeOffset",this.getStreamTimeOffset);U(this,"getVideoData",this.getVideoData);U(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);U(this,"deleteLocalMediaById",this.deleteLocalMediaById);U(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);U(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
U(this,"fetchLocalMedia",this.fetchLocalMedia);U(this,"fetchLocalMediaById",this.fetchLocalMediaById);U(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);U(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);U(this,"getAppState",this.getAppState);U(this,"addInfoCardXml",this.addInfoCardXml);U(this,"updateLastActiveTime",this.updateLastActiveTime);U(this,"setBlackout",this.setBlackout);U(this,"setAccountLinkState",this.setAccountLinkState);U(this,"setUserEngagement",this.setUserEngagement);
U(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);U(this,"setFauxFullscreen",this.setFauxFullscreen);U(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"canPlayType",this.canPlayType);U(this,"updatePlaylist",this.updatePlaylist);U(this,"updateVideoData",this.updateVideoData);U(this,"updateEnvironmentData",this.updateEnvironmentData);U(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);
U(this,"setCardsVisible",this.setCardsVisible);U(this,"setSafetyMode",this.setSafetyMode);U(this,"isInline",this.isInline);U(this,"setInline",this.setInline);U(this,"isAtLiveHead",this.isAtLiveHead);U(this,"getVideoAspectRatio",this.getVideoAspectRatio);U(this,"getPreferredQuality",this.getPreferredQuality);U(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);U(this,"onAdUxClicked",this.onAdUxClicked);U(this,"setAutonav",this.setAutonav);U(this,"isNotServable",this.isNotServable);U(this,
"channelSubscribed",this.channelSubscribed);U(this,"channelUnsubscribed",this.channelUnsubscribed);U(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);U(this,"togglePictureInPicture",this.togglePictureInPicture);U(this,"supportsGaplessAudio",this.supportsGaplessAudio);U(this,"enqueueVideoByPlayerVars",function(d){return c.enqueueVideoByPlayerVars(d)});
U(this,"clearQueue",this.clearQueue);U(this,"isFastLoad",function(){return!1});
U(this,"getPlayerResponse",this.getPlayerResponse);U(this,"getStoryboardFrame",this.getStoryboardFrame);U(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);U(this,"getStoryboardLevel",this.getStoryboardLevel);U(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);U(this,"getAudioTrack",this.EE);U(this,"setAudioTrack",this.setAudioTrack);U(this,"getAvailableAudioTracks",this.FE);U(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);U(this,"getUserPlaybackQualityPreference",
this.getUserPlaybackQualityPreference);U(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);U(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);U(this,"setMinimized",this.setMinimized);U(this,"handleExternalCall",this.handleExternalCall);U(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);U(this,"getStatsForNerds",this.getStatsForNerds);U(this,"setScreenLayer",this.setScreenLayer);U(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);U(this,
"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);U(this,"forceFrescaUpdate",this.forceFrescaUpdate);U(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);U(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);U(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);U(this,"setGlobalCrop",this.setGlobalCrop);U(this,"getVisibilityState",this.getVisibilityState);U(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);
U(this,"setInternalSize",this.setInternalSize)};
VB=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.w.hasOwnProperty(b)||U(a,b,c);a.I.push(b)};
XB=function(a,b,c){a.G[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.w.hasOwnProperty(b)||U(a,b,c);a.I.push(b)};
U=function(a,b,c){a.w[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
YB=function(a){a.u||(a.u={},g.Ra(a.u,a.C),g.Ra(a.u,a.G),a.u.addEventListener=(0,g.x)(a.GE,a),a.u.removeEventListener=(0,g.x)(a.HE,a));return a.u};
$B=function(a,b,c){b=g.Md(Math.floor(b),0,100);isFinite(b)&&ZB(a.app,{volume:b,muted:a.isMuted()},c)};
aC=function(a,b){ZB(a.app,{muted:!0,volume:a.getVolume()},b)};
bC=function(a,b){ZB(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.dC=function(a){var b=cC(a.app.A);if(b)return b.chrome;a=a.app.A;return(a=g.Uy(a.o.N())?a.u.get("music"):null)?a.w:null};
fC=function(a,b){WB.call(this,a,b);var c=this;this.o=!1;XB(this,"cueVideoByPlayerVars",function(d,e){for(var f=[],k=1;k<arguments.length;++k)f[k-1]=arguments[k];c.cueVideoByPlayerVars.apply(c,[eC(c,d)].concat(g.ea(f)))});
XB(this,"loadVideoByPlayerVars",function(d,e){for(var f=[],k=1;k<arguments.length;++k)f[k-1]=arguments[k];c.loadVideoByPlayerVars.apply(c,[eC(c,d)].concat(g.ea(f)))});
XB(this,"preloadVideoByPlayerVars",function(d,e,f,k){return c.preloadVideoByPlayerVars(eC(c,d),e,f,k)});
XB(this,"seekBy",this.seekBy);XB(this,"mutedAutoplay",this.mutedAutoplay);XB(this,"showControls",this.showControls);XB(this,"hideControls",this.hideControls);XB(this,"cancelPlayback",this.cancelPlayback);XB(this,"getProgressState",this.getProgressState);XB(this,"getStoryboardFormat",this.getStoryboardFormat);XB(this,"getVideoContentRect",this.getVideoContentRect);XB(this,"toggleFullscreen",this.toggleFullscreen);XB(this,"isFullscreen",this.isFullscreen);XB(this,"getVideoStats",this.getVideoStats);
XB(this,"getPlayerSize",this.getPlayerSize);XB(this,"toggleSubtitles",this.toggleSubtitles);XB(this,"setCenterCrop",this.setCenterCrop);XB(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);XB(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);XB(this,"setSizeStyle",this.setSizeStyle);XB(this,"wakeUpControls",this.wakeUpControls)};
eC=function(a,b){if(!a.fa("web_player_tapi_vars_log_killswitch")){var c=Object.keys(b).filter(function(f){return!gC.includes(f)});
0<c.length&&(c.sort(),c=new Sq("b/151451059",c),g.Uq(c))}c={};for(var d=g.q(gC),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
g.iC=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.A=bia++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||hC.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return(0,g.ti)(d.thumbnails,function(e){return g.Sw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
jC=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
cia=function(a,b){switch(a.style){case hC.CHAPTER_MARKER:return b?8:5;case hC.AD_MARKER:return 6;case hC.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.kC=function(a,b){return a.start-b.start||a.priority-b.priority||a.A-b.A};
g.lC=function(a){return"crn_"+a};
g.mC=function(a,b){this.type=a||"";this.id=b||""};
g.nC=function(a,b){g.O.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.wc=this.loaded=!1;this.Ob=this.Tw=this.o=null;this.views=0;this.order=[];this.gf={};this.w=0;var c=b.session_data;c&&(this.Ob=iq(c));this.B=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.C="1"===b.mob;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.wc||(this.listId=new g.mC("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":dia(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.mC(c.substr(0,2),c.substr(2));(c=b.video)?(this.items=
c.slice(0),this.loaded=!0):eia(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.gf=Uz(b,"playlist_");this.A=(c=b.thumbnail_ids)?c.split(","):[]};
oC=function(a){return!!(a.playlist||a.list||a.api)};
pC=function(a){var b=a.index+1;return b>=a.length?0:b};
qC=function(a){var b=a.index-1;return 0>b?a.length-1:b};
rC=function(a,b){a.index=g.Md(b,0,a.length-1);a.startSeconds=0};
dia=function(a,b){if(!a.wc){a.listId=new g.mC("SR",b);var c={search_query:b};a.C&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
eia=function(a){if(!a.wc){var b=b||a.listId;b={list:b};var c=a.ya();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
sC=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.author=b.author;var c=b.loop;c&&(a.loop=c);c=a.ya();a.items=[];for(var d=g.q(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;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.wc=!1;a.loaded=!0;a.w++;a.o&&a.o()}};
tC=function(a,b){a.o=b;a.loaded&&g.Ho(a.o,0)};
uC=function(){};
g.vC=function(){g.A.call(this);this.w=null;this.F=this.C=!1;this.B=new g.gf;g.B(this,this.B)};
wC=function(a){a=a.yl();return 1>a.length?NaN:a.end(a.length-1)};
xC=function(a,b){a.w&&null!==b&&b.o===a.w.o||(a.w&&a.w.dispose(),a.w=b)};
yC=function(a){return St(a.Dd(),a.getCurrentTime())};
fia=function(a,b){if(0==a.je()||0<a.Ye())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.yl();if(d.length||!c)return Pt(d,b)}return c};
zC=function(a){var b=a.Dd();return 0<Rt(b)&&a.getDuration()?Qt(b,a.getCurrentTime()):0};
AC=function(a){var b=a.Dd();return 0<Rt(b)&&a.getDuration()?b.end(b.length-1):0};
BC=function(a){var b=a.getDuration();return Infinity==b?1:b?zC(a)/b:0};
CC=function(a){switch(a.Ye()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
DC=function(a,b,c){g.Je.call(this,b,a);this.u=c||null};
gia=function(){this.A=this.o=NaN;this.w=this.u=!1};
EC=function(a,b){return b>a.o+.001&&b<a.o+5};
FC=function(a,b,c,d){if(d=1<d)a.w=!0;if(a.u)b!=a.o&&(a.u=!1);else if(0<b&&a.o==b)return c-a.A>(d||!a.w?1500:400);a.o=b;a.A=c;return!1};
g.GC=function(a){return(a=hia[a.toString()])?a:"LICENSE"};
g.HC=function(a,b){this.o=a||64;this.u=void 0===b?null:b};
IC=function(a,b){return FC(a,b.getCurrentTime(),(0,g.N)(),yC(b))};
JC=function(a,b,c){return b==a.o&&c==a.u||void 0!=b&&(b&128&&!c||b&2&&b&16)?a:new g.HC(b,c)};
KC=function(a,b){return JC(a,a.o|b)};
LC=function(a,b){return JC(a,a.o&~b)};
MC=function(a,b,c){return JC(a,(a.o|b)&~c)};
g.V=function(a,b){return!!(a.o&b)};
g.NC=function(a,b){return b.o==a.o&&b.u==a.u};
g.OC=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
PC=function(a){return a.eb()&&!g.V(a,16)&&!g.V(a,32)};
iia=function(a){return g.V(a,8)&&g.V(a,16)};
g.QC=function(a){return g.V(a,1)&&!g.V(a,2)};
RC=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
SC=function(a,b){this.o=a;this.w=b;this.u=null;this.A=[];this.B=!1};
g.TC=function(a){a.u||(a.u=a.o.createMediaElementSource(a.w.ua()));return a.u};
g.UC=function(a){for(var b;0<a.A.length;)(b=a.A.pop())&&b.disconnect();a.u&&a.u.disconnect()};
VC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
WC=function(){var a=this;this.u=this.w=jaa;this.o=new zf(function(b,c){a.w=b;a.u=c})};
jia=function(a,b){this.F=a;this.u=b;this.B=a.CD;this.C=new Uint8Array(this.B);this.A=this.w=0;this.o=null;this.G=[];this.P=this.M=null;this.I=new WC;var c=XC(this);xfa(this.F.w,!!this.u.info.video,c)};
YC=function(a){return!!a.o&&a.o.C};
$C=function(a,b){if(!YC(a)){if(1==b.info.type)a.M=Zv(0,b.o.getLength());else if(2==b.info.type){if(!a.o||1!=a.o.type)return;a.P=Zv(a.A*a.B+a.w,b.o.getLength())}else if(3==b.info.type){if(3==a.o.type&&!dw(a.o,b.info)&&(a.G=[],b.info.u!=fw(a.o)||0!=b.info.w))return;if(b.info.A)a.G.map(function(c){return ZC(a,c)}),a.G=[];
else{a.G.push(b);a.o=b.info;return}}a.o=b.info;ZC(a,b);kia(a)}};
ZC=function(a,b){for(var c=0,d=rw(b.o);c<d.length;){var e=Math.min(d.length-c,a.C.byteLength-a.w),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.C.set(f,a.w);a.w+=e;c+=e;if(a.w==a.C.length){if(b.info===a.o&&YC(a)&&c===d.length)break;e=XC(a);wt(a.F.w,a.u.info,a.A,a.C,e);a.C=new Uint8Array(a.B);a.w=0;a.A+=1}}};
kia=function(a){if(YC(a)){var b=new Uint8Array(a.C.buffer,0,a.w),c=lia(a);wt(a.F.w,a.o.o.info,a.A,b,c).then(function(d){return a.I.resolve(d)})}};
XC=function(a){a={itag:a.u.info.id,dlt:Math.round(a.o?a.o.B:0),mket:Math.round(a.u.index.gh()),avbr:Math.round(a.u.info.w),csz:a.B,lmt:a.u.lastModified};return jq(a)};
lia=function(a){var b={lmt:a.u.lastModified,docid:a.F.w,fmtid:a.u.info.id,type:a.u.info.mimeType.split(";")[0],csz:a.B,clen:a.A*a.B+a.w};b="local://localhost/videoplayback?"+jq(b);a={itag:ct(a.u.info),type:a.u.info.mimeType,bitrate:8*a.u.info.o,lmt:""+a.u.lastModified,init:a.M.toString(),index:a.P.toString(),mket:Math.round(a.u.index.gh()).toString(),avbr:Math.round(a.u.info.w).toString(),url:b};return jq(a)};
mia=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574==f)d+=8;else{if(1886614376==f){f=a.subarray(d,d+e);var k=new Uint8Array(b.length+f.length);k.set(b);k.set(f,b.length);b=k}d+=e}}return b};
nia=function(a){a=zv(a,1886614376);(0,g.y)(a,function(b){return!b.u});
return(0,g.Cc)(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
oia=function(a){var b=(0,g.ui)(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
(0,g.y)(a,function(e){c.set(e,d);d+=e.length});
return c};
pia=function(a,b){this.w=a;this.F=this.C=!1;this.length=b?b:0;this.u=0;this.A=null;this.o=[];this.B=null;this.length?1!=this.w.length||this.w[0].Oa||(this.w[0].Oa=this.length):1==this.w.length||(0,g.ti)(this.w,function(c){return!!c.range})};
qia=function(a){return a.length-a.u+a.o.reduce(function(b,c){return b+c.o.getLength()},0)};
aD=function(a,b,c,d){var e=this;this.yh=a;this.u=c;this.loaded=this.status=0;this.error="";a=Yv(this.yh.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.o=new kw;ria(this).then(d,function(f){e.error=""+f||"unknown_err";d()});
b()};
ria=function(a){return mh(a,function c(){var d=this,e,f,k,l,m,n,p,t,u,z,C,D,E;return Aa(c,function(F){if(1==F.o){d.status=200;e=d.yh.get("docid");f=d.yh.get("fmtid");k=+(d.yh.get("csz")||0);if(!e||!f||!k)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/k);n=Math.floor(l.end/k);p=m}if(5!=F.o)return p<=n?F=g.ta(F,zfa(e,f,p),5):(F.o=0,F=void 0),F;t=F.u;u=p*k;z=(p+1)*k;C=Math.max(0,l.start-u);D=Math.min(l.end+1,z)-(C+u);E=new Uint8Array(t.buffer,C,D);d.o.append(E);d.loaded+=D;d.loaded<
l.length&&d.u((0,g.H)(),d.loaded);p++;F.o=2})})};
sia=function(a){this.schedule=a;this.o=NaN;this.u=[];this.totalBytes=0};
tia=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.ee?!1:e.ee;var f=void 0===e.Cf?!1:e.Cf,k=void 0===e.Bi?!1:e.Bi,l=e.Gf,m=e.La;e=e.xd;this.V=null;this.U=this.o=NaN;this.ga=0;this.M=this.ba=this.u=this.A=NaN;this.ha=this.Z=this.isActive=!1;this.w=0;this.R=NaN;this.G=this.C=Infinity;this.P=NaN;this.da=!1;this.F=this.I=NaN;this.B=this.aa=void 0;this.ee=d;this.Cf=f;this.Bi=k;this.Gf=l;this.La=m;this.xd=e;this.schedule=a;this.ma=b;this.oa=c;this.snapshot=yy(this.schedule)};
bD=function(a){return{rt:((0,g.H)()-a.o).toFixed(),lb:a.u.toFixed(),pt:(1E3*a.R).toFixed(),pb:a.ma.toFixed(),stall:(1E3*a.w).toFixed(),elbowTime:(a.U-a.o).toFixed(),elbowBytes:a.ga.toFixed()}};
cD=function(a){!a.F&&a.V&&(a.F=a.V(),3===a.F&&(a.aa=new sia(a.schedule)));return a.F};
gD=function(a,b,c,d){var e=(b-a.A)/1E3,f=c-a.u,k=cD(a);if(3===k&&f){var l=a.aa;l.u.push({CT:f,XT:isNaN(l.o)?NaN:d-l.o,LT:d});l.o=d}a.isActive?1===k&&0<f&&(.2<e||1024>f?(a.w+=e,.2<e&&fD(a,.05,f)):fD(a,e,f),a.ha=!0):dD(a,c)&&(1===k&&(d=(b-a.o)/1E3,eD(a)||a.Cf||(k=a.schedule,k.B.w(1,d),zy(k))),a.U=b,a.ga=c,a.isActive=!0);a.Cf||uy(a.schedule,e,f);a.A=b;a.u=c};
fD=function(a,b,c){if(!a.Cf){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Bi;a=void 0===a?!1:a;d.u.w(void 0===b?e:b,c/e);a||(d.F=ry())}};
iD=function(a,b,c){c=Math.round(c/1024);a.B&&a.B.push(hD(b-a.ba,c-a.M));a.ba=b;a.M=c};
dD=function(a,b){return b?a.Gf&&1!==cD(a)?!0:2048<=b:!1};
jD=function(a){return dD(a,a.u)};
kD=function(a){a.P=a.o+1E3*a.snapshot.delay;a.da=!1};
lD=function(a,b){a.Gf&&void 0!==a.La&&void 0!==a.xd&&(a.C=Math.min(a.C,uia(a.Gf,a.La,a.o,b)),a.G=Math.min(a.G,via(a.Gf,a.La,a.o,b,a.xd)),a.C<=a.o?kD(a):(a.P=a.C,a.da=!0))};
eD=function(a){a.Gf&&lD(a,(0,g.H)());return a.da};
mD=function(a,b){b=void 0===b?(0,g.H)():b;if(a.Gf){lD(a,b);var c=a.F?a.Gf?1!==cD(a):!1:a.C!==a.G;if(c){if(c=a.G,b<c){a.I=a.G;return}}else c=a.C;c=Math.max(c,a.P)}else c=a.P;var d=a.ma-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=jD(a)?d+b:d+Math.max(b,c);a.I=d};
hD=function(a,b){for(var c="";4095<a;)c+=hD(4095,0),a-=4095;for(;4095<b;)c+=hD(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
nD=function(a,b,c,d,e,f,k){var l=void 0===k?{}:k;k=void 0===l.method?"GET":l.method;var m=l.headers,n=l.body;l=void 0===l.credentials?"include":l.credentials;this.R=c;this.M=d;this.U=e;this.policy=f;this.status=0;this.response=void 0;this.P=!1;this.u=0;this.G=NaN;this.aborted=this.C=this.I=!1;this.errorMessage="";this.method=k;this.headers=m;this.body=n;this.credentials=l;this.o=new kw;this.id=wia++;this.A=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now();b()};
oD=function(a){a.w.read().then(a.BK.bind(a),a.onError.bind(a)).then(void 0,g.M)};
qD=function(a){if(!a.ea()){a.I=!0;if(pD(a)&&!a.o.getLength()&&!a.C&&a.u){tx(a);var b=new Uint8Array(8),c=new DataView(b.buffer);c.setUint32(0,8);c.setUint32(4,1936419184);a.o.append(b);a.u+=b.length}a.M()}};
pD=function(a){var b=a.dd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.o&&a.policy.nd&&tx(a)&&b};
rD=function(a,b,c,d,e){var f=this;this.status=0;this.ea=this.w=!1;this.u=NaN;this.o=new XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.o.onreadystatechange=function(){2===f.o.readyState&&f.C()};
this.A=d;this.B=c;this.C=e;a=Fo(function(){if(!f.ea){f.status=f.o.status;try{f.response=f.o.response,f.u=f.response.byteLength}catch(k){}f.w=!0;f.A()}});
this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Fo(function(k){f.ea||(f.status=f.o.status,f.B(k.timeStamp,k.loaded))}),!1)};
sD=function(a,b,c,d){this.u=a;this.info=b;this.timing=c;this.Z=d;this.state=1;this.o=this.aa=null;this.F=this.R=0;this.V=new g.I(this.kO,a.P,this);this.B=this.A=this.G=null;this.C=0;this.M=this.w=null;this.U=0;this.da=this.P=!1;this.I=this.u.Ka&&(nx(this.info)||this.info.ee());this.ha=!1;this.ba=null};
xia=function(a,b){a.ea();a.G=b};
tD=function(a){return a.A?Zw(a.A.Ie):""};
uD=function(a){var b=bD(a.timing);b.shost=tD(a);b.rn=a.R.toString();a.C&&(b.rc=a.C.toString());b.itag=""+ct(a.info.o[0].o.info);b.ml=""+ +a.info.o[0].o.cd();b.sq=""+a.info.o[0].u;if(a.A){var c=a.A.Ie;Yw(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.C&&500!=a.C&&503!=a.C||(b.fmt_unav="true");a.o&&a.o.Zj()&&(b.msg=a.o.Zj());a.ha&&(b.smb="1");a.w&&(a=a.w.o,a.length&&yw(a[0],b));return b};
vD=function(a){tD(a);return Jw(a.Z,tD(a))};
yia=function(a,b){if(400<=b.status)return a.B="net.badstatus",7;if(!b.ko())return a.B=204==b.status?"net.nocontent":"net.connect",7;var c="";if(wD(a)){var d=b.Ss();2048>=d.getLength()&&(c=rw(d),c=Bv(c),c=Rw(c)?c:"")}if(c){d=vD(a);(0,g.N)();d.started=0;d.u=0;d.o=0;d=a.info;var e=a.A;g.kx(d.u,e,c);d.requestId=e.get("req_id");return 5}c=b.Qo();if((d=!!a.M&&a.M.length)&&d!=c||b.ru())return a.B="net.closed",7;xD(a,!0);if(a.u.Iv&&!d&&a.w&&(d=a.w.o,d.length&&!yw(d[0])))return a.B="net.closed",7;var f=yD(a)?
b.dd("X-Bandwidth-Est"):0;if(d=yD(a)?b.dd("X-Bandwidth-Est3"):0)a.da=!0,a.u.pC&&(f=d);d=a.timing;e=(0,g.H)();f=f?parseInt(f,10):0;if(!d.Z){d.Z=!0;if(!d.Cf){e=e>d.o&&4E12>e?e:(0,g.H)();iD(d,e,c);gD(d,e,c);var k=cD(d);if(2===k&&f)fD(d,d.u/f,d.u);else if(2===k||1===k)f=(e-d.o)/1E3,(f<=d.schedule.P.o||!d.schedule.P.o)&&!d.ha&&jD(d)&&fD(d,f,c),jD(d)&&(f=d.schedule,c=Math.max(c,2048),f.o.w(1,d.w/c),zy(f));sy(d.schedule,(e-d.o)/1E3,d.u,d.R,d.ee,d.Bi)}d.isActive&&(d.isActive=!1)}c=vD(a);(0,g.N)();c.started=
0;c.u=0;c.o=0;a.info.u.u=0;(0,g.N)()<zD+3E5||!a.A||$w(a.A.Ie)||!(c=tD(a))||0>c.indexOf("googlevideo.com")||(g.Ds("yt-player-bandaid-host",{WN:c},432E3),zD=(0,g.N)());return 6};
BD=function(a){if("net.timeout"==a.B){var b=a.timing,c=(0,g.H)();if(!b.Cf){c=c>b.o&&4E12>c?c:(0,g.H)();iD(b,c,1024*b.M);var d=(c-b.o)/1E3;if(2!==cD(b))if(jD(b)){b.w+=(c-b.A)/1E3;var e=b.schedule,f=b.u;f=Math.max(f,2048);e.o.w(1,b.w/f);zy(e)}else eD(b)||b.Cf||(e=b.schedule,e.B.w(1,d),zy(e)),b.U=c;sy(b.schedule,d,b.u,b.R,b.ee,b.Bi);uy(b.schedule,(c-b.A)/1E3,0)}}else(0,g.H)();"net.nocontent"!=a.B&&("net.timeout"==a.B||"net.connect"==a.B?(b=vD(a),b.u+=1):(b=vD(a),b.o+=1),a.info.u.u++);AD(a,7)};
CD=function(a){a.ea();if(1==a.state)return!0;a=vD(a);return 100>a.u&&6>a.o};
AD=function(a,b){a.state=b;if(5<=a.state)if(a.u.pc)DD(a);else{var c=a.timing;c.isActive&&(c.isActive=!1)}a.G&&a.G(a)};
ED=function(a,b){if(b){var c=vD(a);c.w+=1}DD(a);a.B="net.timeout";BD(a)};
yD=function(a){return(0,g.ti)(a.info.o,function(b){return 3==b.type})};
DD=function(a){if(a.o){var b=a.o;a.o=null;b.abort()}a=a.timing;a.isActive&&(a.isActive=!1)};
wD=function(a){var b=a.o.dd("content-type"),c=a.o.tl();return(!FD(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
zia=function(a,b){var c=(0,g.x)(a.eI,a),d=(0,g.x)(a.LN,a),e=(0,g.x)(a.fI,a),f=(0,g.x)(a.KN,a);return $w(a.A.Ie)?new aD(a.A,d,e,c):GD(a)?new nD(b,d,e,c,f,a.u.A):new rD(b,d,e,c,f)};
GD=function(a){return a.u.aa?a.u.ov&&!isNaN(a.info.xd)&&a.info.xd>a.u.Hn?!1:sx():!1};
FD=function(a){return a.o?a.o.Up():!1};
HD=function(a){return 2>a.state||!a.w?!1:a.w.o.length||a.u.ga&&a.o&&a.o.Te()?!0:!1};
Aia=function(a){ID(a);return a.w.o};
ID=function(a){a.u.ga&&a.o&&a.o.Te()&&xD(a,!1)};
xD=function(a,b){if(b||FD(a)&&!wD(a)){if(!a.w){if(FD(a))a.info.range&&(c=a.info.range.length);else var c=a.o.Qo();a.w=new pia(a.info.o,c)}for(;a.o.Te();)a:{c=a.w;var d=a.o.Ro(),e=b&&!a.o.Te();c.A&&(mw(c.A,d),d=c.A,c.A=null);for(var f=0,k=0,l=g.q(c.w),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.Oa<=c.u)f+=m.Oa;else{d.getLength();if(bw(m)&&!e&&c.u+d.getLength()-k<f+m.Oa){c.A=d.split(k).ij;break a}var n=c.u-f;var p=c,t=m;if(1==t.type){p.C=!0;var u=!1}else 3==t.type||4==t.type?(t=p.C&&!p.F,
p.F=!0,u=t):u=!1;p=c;var z=m,C=n;t=k;var D=d;n=u||m.o.Vy()&&!n;var E=!!e;u=D.getLength()-t;z.range&&(u=Math.min(z.Oa-C,u));E=z.range?z.w+C+u==z.range.length:E;z=new aw(z.type,z.o,z.range,"reslice_"+z.F,z.u,z.startTime,z.duration,z.w+C,u,E&&z.C,E);C=u;t=D.split(t).ij.split(C).mo;p.o.push(new ww(z,t,n));p=u;c.u+=p;k+=p;f+=m.Oa;if(k==d.getLength())break}d.getLength()}}};
Bia=function(a){if(!a.u.A.nd||!isNaN(a.info.xd)&&0<a.info.xd)return!1;if(!a.o||!a.o.Ij())return!0;if(!tx(a.o))return!1;if(isNaN(a.info.xd)){var b=a.o.dd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.o[0].u)return!1}return!0};
JD=function(a,b,c){this.initData=a;this.contentType=(void 0===b?"":b)||null;this.isPrefetch=void 0===c?!1:c;this.o=this.cryptoPeriodIndex=NaN;this.u=[];this.Bc=!1};
KD=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376==d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var k=d.getUint32(c+28);f+=16*k+4}var l=d.getUint32(c+f-4);try{var m=new mg(b.subarray(c+f,c+f+l)),n=new qo;for(f=m;ng(f)&&4!=f.u;)switch(f.w){case 2:var p=qg(f),t=p;Og(n,2).push(t);break;case 4:p=qg(f);Qg(n,4,p);break;case 7:p=lg(f.o);Qg(n,7,p);break;case 9:p=lg(f.o);Qg(n,9,p);break;case 10:p=lg(f.o);Qg(n,
10,p);break;case 11:p=kg(f.o);Qg(n,11,p);break;case 12:p=lg(f.o);Qg(n,12,p);break;case 13:t=p=qg(f);Og(n,13).push(t);break;case 14:p=new ro;t=f;var u=p,z=nea,C=t.o.w,D=lg(t.o),E=t.o.o+D;t.o.w=E;z(u,t);t.o.o=E;t.o.w=C;t=n;u=p;z=ro;Ug(t,z,14);var F=t.o[14];F||(F=t.o[14]=[]);var G=u?u:new z,fa=Og(t,14);F.push(G);fa.push(G.Fd);break;case 15:p=pg(f);Qg(n,15,p);break;case 1:p=kg(f.o);Qg(n,1,p);break;case 3:p=pg(f);Qg(n,3,p);break;case 5:p=pg(f);Qg(n,5,p);break;case 6:p=pg(f);Qg(n,6,p);break;case 8:p=qg(f);
Qg(n,8,p);break;default:og(f)}f=n;if(null!=f){var oa=f;break a}}catch(kc){}}c+=e}oa=null}catch(kc){oa=null}}if(null!=oa)for(b=Og(oa,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=Og(oa,10),null!=b&&0<b&&!a.Bc&&a.o!=b&&(a.o=b),oa=Og(oa,2),oa=!oa.length||oa[0]instanceof Uint8Array?oa:(0,g.Cc)(oa,rba),oa=g.q(oa),b=oa.next();!b.done;b=oa.next())a.u.push(g.bg(b.value,4))};
LD=function(a){this.o=a;this.offset=0};
MD=function(a){if(a.offset>=a.o.getLength())throw Error();return uw(a.o,a.offset++)};
ND=function(a,b){var c=MD(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=MD(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+MD(a),d*=128;return b?c:c-d};
OD=function(a,b,c){g.O.call(this);var d=this;this.A=a;this.u=[];this.o=null;this.M=-1;this.G=0;this.U=NaN;this.I=0;this.w=b;this.ga=c;this.B=NaN;this.ba=0;this.aa=-1;this.C=this.P=this.ha=this.Z=this.F=this.R=null;this.A.w&&(this.C=new jia(this.A,this.w),this.C.I.o.then(function(e){1==e&&d.S("localmediacomplete",e)}));
this.da=!1;this.V=0};
PD=function(a){return a.u.length?a.u[0]:null};
QD=function(a){return a.u.length?a.u[a.u.length-1]:null};
XD=function(a,b,c){a.Z&&!ew(a.Z,c.info)&&(a.B=NaN,a.ba=0,a.aa=-1);a.Z=c.info;a.w=c.info.o;0==c.info.w?RD(a):!a.w.ce()&&a.F&&iw(c.info,a.F);a.o?(c=zw(a.o,c),a.o=c):a.o=c;a:{c=g.gt(a.o.info.o.info);if(3!=a.o.info.type){if(!a.o.info.A)break a;6==a.o.info.type?SD(a,b,a.o):TD(a,a.o);a.o=null}for(;a.o;){var d=a.o.o.getLength();if(0>=a.M&&0==a.G){var e=a.o.o,f=-1,k=-1;if(c){for(var l=0;l+8<e.getLength();){var m=vw(e,l),n=vw(e,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){k=l;break}}0>k&&(f=
-1)}else{e=new LD(e);for(m=l=!1;;){n=e.offset;var p=e;try{var t=ND(p,!0),u=ND(p,!1);var z=t;var C=u}catch(E){C=z=-1}p=z;var D=C;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=D&&(k=e.offset+D,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),k=e.offset+D);if(160===p){0>f&&(k=f=e.offset+D);break}e.skip(D)}}0>f&&(k=-1)}if(0>f)break;a.M=f;a.G=k-f}if(a.M>d)break;a.M?(d=UD(a,a.M),d.w&&!a.w.ce()&&VD(a,d),SD(a,b,d),WD(a,d),a.M=0):a.G&&(d=UD(a,0>a.G?Infinity:a.G),
a.G-=d.o.getLength(),WD(a,d))}}a.o&&a.o.info.A&&(WD(a,a.o),a.o=null)};
TD=function(a,b){!a.w.ce()&&0==b.info.w&&(g.gt(b.info.o.info)||b.info.o.info.Bc())&&Fw(b);if(1==b.info.type)try{VD(a,b),YD(a,b)}catch(d){g.M(d);var c=gw(b.info);c.hms="1";a.S("error",c||{})}b.info.o.ho(b);a.C&&$C(a.C,b)};
Cia=function(a){var b=a.u.reduce(function(c,d){return c+d.o.getLength()},0);
a.o&&(b+=a.o.o.getLength());return b};
ZD=function(a){return(0,g.Cc)(a.u,function(b){return b.info})};
$D=function(a){a.P&&!a.A.Tc&&a.S("placeholderrollback",a.P);a.P=null;a.F=null;a.Z=a.ha;a.B-=a.I;RD(a)};
UD=function(a,b){var c=a.o,d=Math.min(b,c.o.getLength());if(d==c.o.getLength())return a.o=null,c;c.o.getLength();d=Math.min(d,c.info.Oa);var e=c.o.split(d),f=e.mo;e=e.ij;var k=new aw(c.info.type,c.info.o,c.info.range,c.info.F,c.info.u,c.info.startTime,c.info.duration,c.info.w,d,!1,!1);f=new ww(k,f,c.w);c=new aw(c.info.type,c.info.o,c.info.range,c.info.F,c.info.u,c.info.startTime,c.info.duration,c.info.w+d,c.info.Oa-d,c.info.C,c.info.A);c=new ww(c,e,!1);c=[f,c];a.o=c[1];return c[0]};
VD=function(a,b){b.o.getLength();var c=xw(b);if(!a.A.QC&&ft(b.info.o.info)&&"bt2020"==b.info.o.info.ya().primaries){var d=new Cv(c);Ev(d,[408125543,374648427,174,224,21936,21937])&&(d=d.w+d.o,129==c.getUint8(d)&&1==c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.o.info;et(d)&&!ft(d)&&(d=xw(b),Kv(new Cv(d)),Jv([408125543,374648427,174,224],21936,d));b.info.o.info.isVideo()&&(d=b.info.o,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.A&&(g.gt(d.info)?d.A=Ofa(c):d.info.Bc()&&(d.A=Qfa(c))));b.info.o.info.Bc()&&
b.info.isVideo()&&(c=xw(b),Kv(new Cv(c)),Jv([408125543,374648427,174,224],30320,c)&&Jv([408125543,374648427,174,224],21432,c));if(a.w.info.audio&&g.gt(b.info.o.info)){d=xw(b);c=g.mv(d,0,1701606260);var e=g.mv(d,0,1836476516);if(c&&e){c.skip(2);var f=av(c),k=cv(c);d=[];var l=[],m=[],n=[];if(f)for(f=0;f<k;++f)d.push(dv(c)),l.push(dv(c)),m.push(av(c)),n.push(av(c));else for(f=0;f<k;++f)d.push(bv(c)),l.push(bv(c)),m.push(av(c)),n.push(av(c));c=ov(e);c=new Nfa(l[0]/c,d[0]/c)}else c=null;if(c){if(g.gt(b.info.o.info))for(d=
xw(b),l=g.mv(d,0,1701082227);l;)l.markAsSkip(),l=g.mv(d,l.offset+l.size,1701082227);a.da=!0;a.A.bn&&a.S("gaplessinfo",c)}}a.w.ce()||b.info.o.o||b.info.o.indexRange||(g.gt(b.info.o.info)?(c=xw(b),(d=qv(c,0,1836019574))?(d=d.offset+d.size,l=new Uint8Array(d),l.set(new Uint8Array(c.buffer,c.byteOffset,d)),c=l):c=null):c=Rfa(new Cv(xw(b))),c&&(b.info.o.o=c))};
SD=function(a,b,c){if(a.w.ce()){if(a.da&&a.w.ce()&&c.info.u==c.info.o.index.jb()&&(b=xw(c),b=g.mv(b,0,1953658222))){b.skip(1);var d=$u(b)<<16|av(b),e=d&1,f=d&4;if(d&256){var k=d&512,l=d&1024;d&=2048;var m=cv(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=cv(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.o,e))}}if(b=a.R&&!!a.R.w.w)if(b=c.info.isVideo())b=Ew(c),k=a.R,aE?(l=1/b,b=bE(a,b)>=bE(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&a.w.ce()&&c.info.u==c.info.o.index.jb()&&(b=
a.R,aE?(l=Ew(c),k=1/l,l=bE(a,l),b=bE(b)+k-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,nv(xw(c),b))}else{k=!1;a.F||(Fw(c),c.u&&(a.F=c.u,k=!0,iw(c.info,c.u),e=c.info.o.info,d=xw(c),g.gt(e)?yv(d,1701671783):e.Bc()&&Jv([408125543],307544935,d)));if(d=e=Dw(c))d=c.info.o.info.Bc()&&160==uw(c.o,0);if(d)a.I+=e,a.B=l+e;else{if(a.A.zv){if(l=f=a.ga(Aw(c),1),0<=a.B&&6!=c.info.type){f-=a.B;m=f-a.ba;d=c.info.u;1E-4<Math.abs(m)&&(a.A.jn&&a.S("avsyncissue",{audio:""+ +!!a.w.info.audio,sq:d.toFixed(),
totalDrift:(1E3*f).toFixed(),segDrift:(1E3*m).toFixed()}),a.aa=d);m=0;if(a.A.tv&&(a.A.Hc&&f>a.A.Hc||(l=a.B),a.A.xv&&a.R&&!a.w.info.audio&&g.gt(c.info.o.info))){var n=a.R;var p=n.aa;n=n.ba;var t=.02<Math.abs(n-f);(d==p||d>p&&d>a.aa)&&t&&(d=Math.max(.95,Math.min(1.05,(e-(n-f))/e)),nv(xw(c),d),d=Dw(c),m=e-d,e=d)}a.ba=f+m}}else isNaN(a.B)?f=c.info.startTime:f=a.B,l=f;Bw(c,l)?(isNaN(a.U)&&(a.U=l),a.I+=e,a.B=l+e):(l=gw(c.info),l.smst="1",a.S("error",l||{}))}if(k&&a.F){k=cE(a,!0);jw(c.info,k);a.o&&jw(a.o.info,
k);b=g.q(b.info.o);for(l=b.next();!l.done;l=b.next())jw(l.value,k);(c.info.A||a.o&&a.o.info.A)&&6!=c.info.type||(a.P=k,a.S("placeholderinfo",k),dE(a))}}YD(a,c);a.V&&Cw(c,a.V)};
WD=function(a,b){if(b.info.A){a.ha=b.info;if(a.F){var c=cE(a,!1);a.S("segmentinfo",c);a.P||dE(a);a.P=null}RD(a)}a.C&&$C(a.C,b);if(c=QD(a))if(c=zw(c,b,a.A.Pk)){a.u.pop();a.u.push(c);return}a.u.push(b)};
RD=function(a){a.o=null;a.M=-1;a.G=0;a.F=null;a.U=NaN;a.I=0;a.P=null};
YD=function(a,b){if(a.w.info.zc){if(b.info.o.info.Bc()){var c=new Cv(xw(b));if(Ev(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Hv(c,!0);c=16!=d?null:Ov(c,d)}else c=null;d="webm"}else b.info.P=nia(xw(b)),c=oia(b.info.P),d="cenc";c&&c.length&&(c=new JD(c,d),c.Bc=b.info.o.info.Bc(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.A.an&&b.u&&b.u.B&&(c.o=b.u.B),a.S("needkeyinfo",c))}};
dE=function(a){var b=a.F,c;b.o["Cuepoint-Type"]?c=new gv(eE?parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(b.o["Cuepoint-Total-Duration-Sec"])||0,b.o["Cuepoint-Context"],b.o["Cuepoint-Identifier"]||"",Dia[b.o["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(b.o["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.U,a.S("cuepoint",c,b.u))};
cE=function(a,b){var c=a.F;if(c.o["Stitched-Video-Id"]||c.o["Stitched-Video-Duration-Us"]||c.o["Stitched-Video-Start-Frame-Index"]){c.o["Stitched-Video-Id"]&&c.o["Stitched-Video-Id"].split(",");var d=[];if(c.o["Stitched-Video-Duration-Us"])for(var e=g.q(c.o["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),f=e.next();!f.done;f=e.next())d.push((parseInt(f.value,10)||0)/1E6);d=[];if(c.o["Stitched-Video-Start-Frame-Index"])for(e=g.q(c.o["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),
f=e.next();!f.done;f=e.next())d.push(parseInt(f.value,10)||0)}return new Wu(c.u,a.U,b?c.Ee:a.I,c.ingestionTime,"sq/"+c.u,void 0,void 0,b)};
bE=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.V*b)/b:a.V;a.w.w&&c&&(c+=a.w.w.o);return c+a.getDuration()};
fE=function(a,b){0>b||(a.u.forEach(function(c){return Cw(c,b)}),a.V=b)};
gE=function(a,b,c){this.U=a;this.o=b;this.A=[];this.w=new OD(a,b,c);this.u=this.F=null;this.R=0;this.P=b.info.o;this.M=0;this.G=b.Ll();this.C=-1;this.B=this.G;this.I=!1};
hE=function(a,b){b&&aE&&fE(a.w,b.Sr());a.F=b};
iE=function(a){return a.F&&a.F.Or()};
kE=function(a){for(;a.A.length&&6==a.A[0].state;){var b=a.A.shift();jE(a,b);b=b.timing;a.R=(b.A-b.o)/1E3}a.A.length&&HD(a.A[0])&&!a.A[0].info.ee()&&jE(a,a.A[0])};
jE=function(a,b){if(HD(b)){b.P=!0;ID(b);var c=b.w,d=c.o;c.o=[];c.B=g.Va(d).info;c=g.q(d);for(d=c.next();!d.done;d=c.next())lE(a,b,d.value)}};
lE=function(a,b,c){switch(c.info.type){case 1:case 2:TD(a.w,c);break;case 4:var d=c.info.o.Wy(c);c=c.info;var e=a.u;e&&e.o==c.o&&e.type==c.type&&(c.range&&e.range?e.range.start==c.range.start&&e.range.end==c.range.end:e.range==c.range)&&e.u==c.u&&e.w==c.w&&e.Oa==c.Oa&&(a.u=g.Va(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())lE(a,b,c.value);break;case 3:XD(a.w,b,c);break;case 6:XD(a.w,b,c),a.u=c.info}};
mE=function(a){return PD(a.w)};
nE=function(a,b){var c=b.info;c.o.info.o>=a.P&&(a.P=c.o.info.o)};
rE=function(a,b,c){c=void 0===c?!1:c;if(a.F){var d=a.F.ud(),e=Qt(d,b),f=NaN,k=iE(a);k&&(f=Qt(d,k.o.index.gd(k.u)));if(e==f&&a.u&&a.u.Oa&&oE(pE(a),0))return b}a=qE(a,b,c);return 0<=a?a:NaN};
tE=function(a,b){a.o.cd();var c=qE(a,b);if(0<=c)return c;c=a.w;c.C?(c=c.C,c=c.o&&3==c.o.type?c.o.startTime:0):c=Infinity;b=Math.min(b,c);a.u=a.o.pg(b).o[0];sE(a)&&a.F&&a.F.abort();a.M=0;return a.u.startTime};
uE=function(a){a.G=!0;a.B=!0;a.C=-1;tE(a,Infinity)};
vE=function(a){var b=0;(0,g.y)(a.A,function(c){var d=b;c=c.w&&c.w.length?qia(c.w):px(c.info);b=d+c},a);
return b+=Cia(a.w)};
wE=function(a,b){if(!a.F)return 0;var c=iE(a);if(c&&c.C)return c.B;c=a.F.ud(!0);return St(c,b)};
yE=function(a){xE(a);a=a.w;a.u=[];RD(a)};
zE=function(a,b){var c;for(c=0;c<a.A.length&&b!==a.A[c];c++);if(c==a.A.length)b.P&&$D(a.w),b.dispose();else{for(;c<a.A.length;){var d=a.A.pop();d.P&&$D(a.w);d.dispose()}cw(b.info.o[0])?(b.w&&b.w.B?(c=b.w.B,c=new aw(c.type,c.o,c.range,"getEmptyStubAfter_"+c.F,c.u,c.startTime+c.duration,0,c.w+c.Oa,0,!1)):(c=b.info.o[0],c=new aw(c.type,c.o,c.range,"getEmptyStubBefore_"+c.F,c.u,c.startTime,0,c.w,0,!1)),a.u=c):a.u=null}};
sE=function(a){var b;!(b=!a.U.Rg&&"f"==a.o.info.u)&&(b=a.U.F)&&(b=a.w,b=!!b.C&&YC(b.C));return b?!0:(a=iE(a))?a.C&&a.A:!1};
pE=function(a){var b=[],c=iE(a);c&&b.push(c);b=g.fb(b,ZD(a.w));(0,g.y)(a.A,function(d){(0,g.y)(d.info.o,function(e){d.P&&(b=(0,g.ue)(b,function(f){return!(f.o!=e.o?0:f.range&&e.range?f.range.start+f.w>=e.range.start+e.w&&f.range.start+f.w+f.Oa<=e.range.start+e.w+e.Oa:f.u==e.u&&f.w>=e.w&&(f.w+f.Oa<=e.w+e.Oa||e.A))}));
(cw(e)||4==e.type)&&b.push(e)})});
a.u&&!Tfa(a.u,g.Va(b),a.u.o.ce())&&b.push(a.u);return b};
oE=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!ew(a[c-1],a[c]))return!1;return!0};
qE=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.Oa)return NaN;a=pE(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var k=a[f];if(k.G<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:oE(a,c?b:0)?a[b].startTime:NaN};
AE=function(a){return kj(a.A,function(b){return 4<=b.state})};
BE=function(a){return!(!a.u||a.u.o==a.o)};
CE=function(a){return BE(a)&&a.o.cd()&&a.u.o.info.o<a.o.info.o};
DE=function(a,b,c){var d=QD(a.w);return(a=d?d.info:iE(a))&&!a.C?a.B>b&&a.B<b+c:!1};
xE=function(a){(0,g.y)(a.A,function(b){b.P&&$D(this.w);b.dispose()},a);
a.A=[];a.u=null};
EE=function(a){return!!a.u&&-1!=a.u.u&&a.u.u<a.o.index.Qe()};
FE=function(a){var b=a.u;b&&-1==b.u&&(a=QD(a.w))&&cw(a.info)&&(a=a.info.u,b.F="updateLastSliceRequested",b.u=a)};
GE=function(a){return kj(a.A,function(b){return b.I})};
HE=function(a,b){this.u=a;this.o=b;this.w=1};
JE=function(a,b,c,d,e){e=void 0===e?!1:e;a.o.Rb&&(d=Math.abs(d));d/=a.w;var f=1/wy(a.u);var k=.9*(d-a.o.Md);k=Math.max(k,ty(a.u)+2048*f);c=k/f*a.o.eD/(b+c);c=Math.min(c,d);a.o.qc&&e&&(c=Math.max(c,a.o.qc));return IE(a,c,b)};
IE=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.o.WC*c),Math.min(Math.min(a.o.ba,31*c),Math.ceil(b*c))))};
Eia=function(a,b){var c=IE(a,b.video?a.o.Jv:a.o.Yh,b.o);return a.o.Yf&&b.video?Math.max(c,a.o.Yf):c};
KE=function(a){var b=wy(a.u);if(a.o.en)return b;var c=a.o.UC,d=1E-9+ty(a.u);b*=Math.min(1,c/(b*d));a.o.Xf&&(c=((qy(a.u.w,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.o.Xf*c);return b};
LE=function(a){return KE(a)/a.w};
ME=function(a,b,c,d){g.O.call(this);this.A=0;this.u=b;this.o=c;this.B=a;this.I=d;this.C=0;this.F=this.B.u&&!this.B.ze;this.w=!1;this.G=null};
NE=function(a,b){var c=a.o.index,d=a.u.u;xx(c,d)||b&&b.u==d?(a.B=!xx(c,d),a.I=!xx(c,d)):(a.B=!0,a.I=!0)};
OE=function(a,b,c){if(!a.o.cd())return 0!=b&&xE(a),b;var d=rE(a,b);if(!isNaN(d))return d;yE(a);return c&&(c=Qt(c.ud(),b),!isNaN(c))?(tE(a,c+Fia),b):tE(a,b)};
Hia=function(a,b,c,d){if(a.w&&a.A){var e=Gia(a,b,c);if(-1!=e){a.u.B=!1;a.o.B=!1;a.F=!0;g.uf(function(){PE(a,"seekreason","behindMinSq");QE(a,e)});
return}}c?a.u.I=!1:a.o.I=!1;0<=rE(a.u,a.A)&&0<=rE(a.o,a.A)?((a.u.B||a.o.B)&&PE(a,"iterativeSeeking","done;count."+a.C,!1),a.u.B=!1,a.o.B=!1):d&&g.uf(function(){if(a.F||!a.I.R)a.I.Wf?RE(a):c&&QE(a,b.startTime);else{var f=b.startTime,k=b.duration,l=c?a.u.B:a.o.B;l=!a.ea()&&l;var m=-1!=a.u.C&&-1!=a.o.C,n=!a.u.I&&!a.o.I;l&&m&&n&&(a.A>=f&&a.A<f+k+.1?((c?a.u:a.o).B=!1,a.u.B||a.o.B||(PE(a,"iterativeSeeking","done;count."+a.C,!1),a.C=0)):8>a.C?(a.C++,PE(a,"iterativeSeeking","inprogress;count."+a.C+";target."+
a.A+";actual."+f+";duration."+k+";isVideo."+c,!1),a.seek(a.A)):(PE(a,"iterativeSeeking","incomplete;count."+a.C+";target."+a.A+";actual."+f,!1),a.C=0,a.u.B=!1,a.o.B=!1,a.S("seekplayerrequired",f+.1,!0)))}})};
Gia=function(a,b,c){if(!a.w)return-1;c=(c?a.u:a.o).o.index;var d=c.Re(a.A);return(xx(c,a.B.Hd)||b.La==a.B.Hd)&&d<a.B.Hd?a.B.Ab():-1};
QE=function(a,b){!a.ea()&&a.F&&-1!=a.u.C&&-1!=a.o.C&&(a.F=!1,a.S("seekplayerrequired",b+.1,a.I.Wf))};
RE=function(a){var b=-1!=a.u.C,c=-1!=a.o.C;if(!b||!c)if(b=!b&&mE(a.u),c=!c&&mE(a.o),b||c)if(c=b?a.u:a.o,b=b?a.o:a.u,c.C=mE(c).info.u,-1!=b.C){var d=Math.max(b.o.index.gd(b.C),c.o.index.gd(c.C));PE(a,"seekreason","initManifestlessSync");g.uf(function(){return QE(a,d)});
a.G&&(a.G.resolve(d+.1),a.G=null)}};
PE=function(a,b,c,d){a.S("ctmp",b,c,void 0===d?!1:d)};
SE=function(){this.u=this.w=0;this.B={}};
TE=function(a,b,c){g.O.call(this);this.u=this.o=null;this.A=!1;this.w=0;this.B=b;this.F=a;this.C=c;this.C.w.subscribe("cuepoint",this.G,this)};
UE=function(a,b){if(a.o){a.u=null;a.A=!1;var c=b.startTime+a.w-a.o.td.startSecs;0>=c||(c=new gv(a.o.td.startSecs-(a.B.yb&&!isNaN(a.w)?a.w:0),c,a.o.td.context,a.o.td.identifier,"stop",a.o.td.o+1E3*b.duration),a.S("ctmp","cuepointdiscontinuity","segNum."+b.La,!1),a.G(c,b.La))}};
Iia=function(a,b,c,d){this.V=a;this.F=b;this.C=c;this.G=d;this.A=Du;this.B=this.P=null;this.R=-1;this.u=this.w=null;this.o=[];this.U={};this.I=0;this.M=this.Z=!1;this.ba=0};
Lia=function(a,b,c){VE(a,b);Jia(a,c);a.P=a.w;Kia(a);a.B=a.u;return WE(a)};
Mia=function(a,b){if(Au(a.A,b))return null;if("m"==b.reason&&b.isLocked())return VE(a,b),a.I=a.o.length-1,XE(a),YE(a),a.M=a.M||a.B!=a.u,a.B=a.u,new VC(a.w,a.B,b.reason);"r"==b.reason&&(a.R=-1);VE(a,b);YE(a);if("r"==b.reason&&a.u==a.B)return new VC(a.w,a.u,b.reason);if(a.B&&a.u&&ZE(a,a.B.info)<ZE(a,a.u.info)){var c=a.A.reason;a.Z=a.Z||"r"==c||"u"==c||"v"==c}return null};
Nia=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,WE(a)}else a.P=b;return null};
$E=function(a,b){b.P=(0,g.N)();a.R=-1;VE(a,a.A)};
aF=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.G.videoInfos),d=c.next();!d.done;d=c.next())if(a.C.o[d.value.id].P>b)return!0;return!1};
Oia=function(a){return new VC(a.P,a.B,a.A.reason)};
bF=function(a){return a.A.isLocked()};
Pia=function(a){return 0<a.o.length&&0==a.I};
WE=function(a){a.R=(0,g.N)();a.Z=!1;return new VC(a.P,a.B,a.A.reason)};
VE=function(a,b){a.A=b;var c=a.G.videoInfos;if(!bF(a)){var d=(0,g.N)()-6E4;c=(0,g.ue)(c,function(l){if(l.o>this.F.I)return!1;l=this.C.o[l.id];return l.P>d?!1:4<l.u.u||4<l.I||l.C?!1:!0},a);
if(aF(a)){var e=(0,g.ue)(c,function(l){l=ct(l);return"140"==l||"134"==l||"243"==l});
e.length&&(c=e)}}c.length||(c=a.G.videoInfos);e=(0,g.ue)(c,b.A,b);e.length||(e=[c[0]]);e.sort((0,g.x)(function(l,m){return ZE(this,l)-ZE(this,m)},a));
for(c=1;c<e.length;c++){var f=e[c-1],k=e[c];f.video.width>k.video.width?(g.cb(e,c),c--):ZE(a,f)*a.F.o>ZE(a,k)&&(g.cb(e,c-1),c--)}c=e[e.length-1];a.o=e;Vfa(a.F,c)};
Jia=function(a,b){if(b)a.w=a.C.o[b];else{var c=g.Xa(a.G.o,function(d){return!!d.tb&&d.tb.isDefault});
c=c||a.G.o[0];a.w=a.C.o[c.id]}XE(a)};
cF=function(a,b){for(var c=0;c+1<a.o.length&&"tiny"==a.o[c].ya().quality;)c++;var d=LE(a.V)/a.F.o;return ZE(a,b.info)+ZE(a,a.o[c])>d};
XE=function(a){if(!a.w||!a.F.w)if(!a.w||!a.w.info.tb)if(a.w=a.C.o[a.G.o[0].id],1<a.G.o.length){var b=!1;if(a.F.Mh){if(b=!0,a.F.XB){var c=g.Wa(a.G.o,function(d){return"250"===ct(d)});
0<=c&&(a.w=a.C.o[a.G.o[c].id],b=cF(a,a.w))}}else b=a.A.isLocked()?240>a.A.o:cF(a,a.w);b&&(a.w=a.C.o[g.Va(a.G.o).id])}};
YE=function(a){if(!a.u||!a.F.w)if(bF(a))a.u=360>=a.A.o?a.C.o[a.o[0].id]:a.C.o[g.Va(a.o).id];else{for(var b=Math.min(a.I,a.o.length-1),c=LE(a.V),d=ZE(a,a.w.info),e=c/a.F.u-d;0<b&&!(ZE(a,a.o[b])<=e);b--);for(c=c/a.F.o-d;b<a.o.length-1&&!(ZE(a,a.o[b+1])>=c);b++);a.u=a.C.o[a.o[b].id];a.I=b}};
Kia=function(a){var b=a.F.u,c=LE(a.V)/b-ZE(a,a.w.info);b=g.Ya(a.o,function(d){return ZE(this,d)<c},a);
0>b&&(b=0);a.I=b;a.u=a.C.o[a.o[b].id]};
ZE=function(a,b){if(!a.U[b.id]){var c=a.C.o[b.id].index.yx(a.ba,15);c=b.w&&a.B&&a.B.index.Hb()?c||b.w:c||b.o;a.U[b.id]=c}c=a.U[b.id];a.F.qe&&b.video&&b.video.fc>a.F.qe&&(c*=1.5);return c};
Qia=function(a,b){var c=Lb(a.C.o,function(d){return ct(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Ria=function(a){var b=[];if("m"==a.A.reason||"s"==a.A.reason)return b;var c=!1;if(sga(a.C)){for(var d=Math.max(0,a.I-2);d<a.I;d++){var e=ct(a.o[d]);Zs(a.o[d].ya())||(c=!0);b.push(e)}b.reverse();if(!c&&a.F.aA)for(d=Math.max(0,a.I-3);0<=d&&!c;d--)Zs(a.o[d].ya())||(c=!0,b.push(ct(a.o[d])))}return b};
dF=function(a,b,c,d){this.o=a;this.C=b;this.B=d;this.A=c;this.w=0};
eF=function(a,b,c,d){g.O.call(this);this.o=a;this.V=b;this.U=c;this.M=d;this.R=NaN;this.w=this.I=this.B=null;this.u=this.F=this.G=this.C=NaN;this.A=!1;this.P=NaN};
Sia=function(a,b,c,d){return a.ma&&a.ha&&3==ux(a)?new eF(a,b,c,d):null};
fF=function(a,b){if(a.o.Cv){var c=b.info.o;if(0>=c)a.P=NaN;else{var d=wy(a.V),e=b.index.o;c=Math.max(1,d/c);a.P=Math.round(1E3*Math.max(((c-1)*e+a.o.M)/c,e-a.o.rb))}}};
Tia=function(a,b){var c=(0,g.H)()/1E3,d=c-a.C,e=c-a.G,f=e>=a.o.Vf,k=!1;if(f){var l=0;!isNaN(b)&&b>a.F&&(l=b-a.F,a.F=b);l/e<a.o.Ev&&(k=!0);a.G=c}c=d>=a.o.rb&&!a.A;if(!f&&!c&&gF(a,b))return NaN;c&&(a.A=!0);a:{d=k;c=(0,g.H)()/1E3-(a.U.o()||0)-a.I.w-a.o.M;f=a.w.startTime;c=f+c;if(d){if(isNaN(b)){hF(a,NaN,"n",b);f=NaN;break a}d=b-a.o.nb;d<c&&(c=d)}else a.A&&(d=c+a.o.M-a.R+a.o.Fv,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.o.nb))),c=d);f=c=Math.max(c,f)}a.u=f;if(isNaN(a.u))return iF(a),NaN;if(!k&&gF(a,b))return jF(a,
b),NaN;if(a.u<=a.w.startTime)return hF(a,NaN,"y",b),iF(a),NaN;if(!a.M(a.u,!1))return!jF(a,b)&&k&&(hF(a,NaN,"t",b),iF(a)),NaN;k=a.u;hF(a,k,"s",b);iF(a);return k};
jF=function(a,b){return a.M(a.u,!0)?!1:(hF(a,NaN,"ns",b),iF(a),!0)};
gF=function(a,b){return isNaN(b)?!0:isNaN(a.u)?!1:b<a.u+(a.A?a.o.nb:a.o.Dv)};
iF=function(a){a.B=null;a.I=null;a.w=null;a.C=NaN;a.G=NaN;a.F=NaN;a.u=NaN;a.A=!1};
hF=function(a,b,c,d){var e=uD(a.B);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.u).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.C).toFixed(0);e.ssr_n=(0,g.H)().toFixed(0);e.ssr_f=(1E3*a.I.w).toFixed(0);e.ssr_fa=a.A?"1":"0";e.ssr_o=(1E3*a.U.o()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.w.o.index;xx(b,a.w.u,!0)&&(e.ssr_ist=(1E3*b.gd(a.w.u)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.w.u)).toFixed(0));e=Ps(e);a.S("ctmp","ssr",e,!1)};
Uia=function(){this.u=g.kC;this.o=[]};
Via=function(a,b,c){var d=[];for(b=kF(a,b);b<a.o.length;++b){var e=a.o[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
lF=function(a,b){for(var c=[],d=g.q(a.o),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
Wia=function(a){return a.o.slice(kF(a,0x7ffffffffffff),a.o.length)};
kF=function(a,b){var c=qb(a.o,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
mF=function(a,b){for(var c=NaN,d=g.q(a.o),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
nF=function(a,b){if(1<b.length&&b.length>a.o.length)a.o=a.o.concat(b),a.o.sort(a.u);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.o.length||0<a.u(d,a.o[a.o.length-1])?a.o.push(d):g.ub(a.o,d,a.u)};
oF=function(a,b,c,d){g.A.call(this);this.M=a;this.R=b;this.G=c;this.I=d;this.A=NaN;this.C=this.F=this.started=!1;this.w=[];this.P=new g.I(this.u,250,this);g.B(this,this.P);this.B=new g.I(this.u,0,this);g.B(this,this.B);this.o=new Uia};
pF=function(a,b){if(!a.ea()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.w.indexOf(d);0<=e&&a.w.splice(e,1);var f=a.o;e=f.o;d=g.pb(e,d,f.u);0<=d&&g.cb(e,d)}a.u()}};
qF=function(a){return a.ea()?[]:a.o.o};
rF=function(a,b){var c=qF(a).filter(function(d){return d.namespace===b});
pF(a,c);return c};
sF=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1===a.w.indexOf(e)&&(a.w.push(e),c.push([1,e]))}return c};
tF=function(a,b){var c=[];if(!b.length)return c;b.sort(g.kC);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.w.splice(a.w.indexOf(e),1),c.push([2,e]);return c};
Zia=function(a){if(a.started&&!a.ea()){a.B.stop();var b=a.G();g.V(b,32)&&a.P.start();for(var c=Xia(a),d=g.V(b,2),e=[],f=[],k=g.q(a.w),l=k.next();!l.done;l=k.next())l=l.value,l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l);e=e.concat(tF(a,f));k=f=null;d?(b=lF(a.o,0x7ffffffffffff),f=b.filter(function(m){return 0x8000000000000>m.end}),k=Wia(a.o)):b=a.A<=c&&PC(b)?Via(a.o,a.A,c):lF(a.o,c);
e=e.concat(sF(a,b));f&&(e=e.concat(tF(a,f)));k&&(e=e.concat(sF(a,k)));a.A=c;Yia(a,e)}};
Yia=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.I(g.lC(e.namespace),e):a.I("crx_"+e.namespace,e)}};
Xia=function(a){return g.V(a.G(),2)?0x8000000000000:1E3*a.M()};
$ia=function(a){a=void 0===a?{}:a;var b=a.nd,c=a.Mm,d=a.jb,e=a.Aj;this.gg=a.gg;this.nd=b;this.Mm=c;this.jb=d;this.Aj=e};
uF=function(a,b){if(0>b)return!0;var c=a.jb();return b<c||b===c&&!a.gg||b===c&&(c=a.Aj())&&b===c.La?!0:!1};
aja=function(a,b,c){if(!uF(a,b))return 0;if(!a.nd||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.jb();return b<c||b===c&&(a=a.Aj())&&b===a.La&&!a.pending?2:1};
uia=function(a,b,c,d){if(uF(a,b))return d;b=0;a.nd&&(b=.2);return c+1E3*(a.Mm+b)};
via=function(a,b,c,d,e){b=aja(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.Mm;a.nd&&(c+=1E3*a.Mm);return c};
bja=function(){this.u=0;this.C=this.B=this.w=this.A=NaN;this.o="";this.bandwidthEstimate=NaN};
yF=function(a,b,c,d,e,f,k){g.O.call(this);var l=this;this.R=a;this.o=b;this.B=c;this.da=new SE;this.Ta=k||null;this.P=new HE(a,b);this.F=new Iia(this.P,b,this.B,d);a=Lia(this.F,e,f&&f.id);this.A=new gE(this.o,a.audio,(0,g.x)(this.ew,this));this.u=new gE(this.o,a.video,(0,g.x)(this.ew,this));vF(this,this.A);vF(this,this.u);this.u.w.R=this.A.w;this.w=null;this.wa={updateend:this.dI,error:this.jK};this.aa=new g.I(this.Hf,0,this);g.B(this,this.aa);this.Ia=new g.I(this.Hf,1E3,this);g.B(this,this.Ia);this.rb=
new g.I(this.Hf,void 0,this);g.B(this,this.rb);this.Qa=new g.I(this.Hf,1E4,this);g.B(this,this.Qa);this.M=this.C=NaN;this.Ea=0;this.ha=this.za=this.ba=!1;this.ma="";this.oa=new ny(5);this.ga={};this.Aa=NaN;(this.G=Sia(this.o,this.R,this.oa,function(m,n){return wF(l,m,n)}))&&this.G.subscribe("ctmp",this.Dc,this);
this.I=new ME(this.B,this.u,this.A,this.o);g.B(this,this.I);this.V=new TE(this.B,this.o,this.u);g.B(this,this.V);this.V.subscribe("ctmp",this.Dc,this);cja(this,this.I);this.Wa=NaN;this.Ka=null;this.Z=NaN;this.yb=this.nb=!1;this.Ca=0;this.U=!1};
dja=function(a){var b=a.u.o.index;a.Ka=new $ia({gg:a.o.gg,nd:a.o.A.nd,Mm:b.o,jb:function(){return b.jb()},
Aj:function(){return b.Aj()}})};
zF=function(a,b){b=b||a.u&&a.u.u&&a.u.u.startTime||a.C;var c=a.u;var d=a.F;var e=d.u&&d.u.index.Re(b)||0;d.ba!=e&&(d.U={},d.ba=e,VE(d,d.A));e=!bF(d)&&-1<d.R&&8E3>(0,g.N)()-d.R;var f=d.u&&3*ZE(d,d.u.info)<LE(d.V);if(!e||f)XE(d),YE(d),d.M=d.M||d.u!=d.B;d.u&&!d.u.index.Hb()&&(d.ba=-1);d=d.u;c.o!=d&&(c.o=d);c=a.A;d=a.F.w;c.o!=d&&(c.o=d)};
AF=function(a,b){a.za=b;a.U||(a.ba=!0)};
BF=function(a){a.w&&a.w.o&&a.w.u&&(Kr(a.w.o,a.wa,a),Kr(a.w.u,a.wa,a));hE(a.A,null);hE(a.u,null);a.w=null};
DF=function(a,b){b=void 0===b?!1:b;BF(a);b?a.U=!0:a.o.Uc?AF(a,a.nb):AF(a,!1);CF(a)};
FF=function(a){a.w&&au(a.w)&&(DF(a),a.o.kv&&EF(a,!0,"fmt.unplayable",{unexpected:1}))};
HF=function(a,b,c){if(a.ba&&(!Ay(a.R)||a.za)||a.o.F&&!Ay(a.R))return!1;if(a.B.u){if(0<b.A.length&&b.u&&-1==b.u.u||b.A.length>=a.o.nn&&!a.o.Wa||!a.o.fA&&0<b.A.length&&!a.o.A.nd)return!1;if(b.G)return!a.B.isLive||!isNaN(a.Aa)}if(GE(b))return!1;if(!(b.u||a.B.u&&a.o.Wa&&b.G)){if(!b.o.cd())return!1;tE(b,a.C)}var d=b.A.length+c.A.length;(AE(b)||AE(c)||a.B.isLive&&(!a.o.Wa||!b.A.length))&&--d;if(d+1>=a.o.Nn)return!1;d=b.u;if(!d)return!0;if(!jx(d.o.u))return!1;4==d.type&&d.o.cd()&&(b.u=g.Va(d.o.Ip(d)),d=
b.u);if(!d.C&&!d.o.Cg(d)||d.o.info.audio&&4==d.type)return!1;if(CE(b)&&!a.o.da)return!0;if(d.C||vE(b)&&vE(b)+vE(c)>a.o.za)return!1;var e=!b.B&&!c.B,f=b==a.u&&a.U;!(c=!!(c.u&&!c.u.C&&c.u.B<d.B)&&(!a.B.u||c.u&&c.u.B&&d.B)&&e&&!f||a.o.R&&!b.B&&c.B)&&(c=cw(d))&&(d=d.B,c=a.V,c=c.o?c.o.td:null,a.U&&c?c=c.startSecs+c.durationSecs:(c=GF(a,b,!0),!bF(a.F)&&0<a.o.U&&(e=((0,g.N)()-a.Ea)/1E3,c=Math.min(c,a.o.U+a.o.ac*e)),c=a.C+c,a.o.od&&(e=eja(a)+a.o.od,e<c&&(a.Dc("mrl","ori."+c+";mod."+e,!0),a.o.fn&&(a.Ea=(0,g.N)()),
c=e))),c=d>c);return c||a.o.zo&&(a=b.F)&&a.isLocked()?!1:!0};
IF=function(a,b,c){if((!a.w||Yt(a.w)||cu(a.w))&&!a.I.w&&a.F.Z){var d=a.C;a=a.P;c=JE(a,b.o.info.o,c.o.info.o,0);var e=ty(a.u)+c/wy(a.u);d+=Math.max(e,e+a.o.Mc-c/b.o.info.o);a:{if(b.A.length){if(b.A[0].info.o[0].startTime<=d)break a;xE(b)}a=b.w;for(c=a.u.length-1;0<=c;c--)a.u[c].info.startTime>d&&a.u.pop();b.A.length?b.u=g.Va(g.Va(b.A).info.o):b.w.u.length?b.u=QD(b.w).info:b.u=iE(b);b.u&&d<b.u.startTime&&(b.M=0,b.u=b.o.pg(d,!0).o[0])}}};
KF=function(a,b,c){if(HF(a,b,c))if(c=fja(a,b,c),a.o.Av&&a.B.u&&!b.G&&0>c.o[0].u)a.Dc("invalidsq",hw(c.o[0]));else{if(a.Ma){var d=gja(a.Ma.o,c.o[0].G,c.o[0].o.info.id);d&&(c.B=d)}a.o.Qk&&-1!=c.o[0].u&&c.o[0].u<a.B.Hd&&(c=b.o.Ni(a.B.Hd,!1));a=JF(a,c);b.A.push(a);b.u=g.Va(a.info.o)}};
fja=function(a,b,c){if(b.G){if(a.B.isLive){var d=a.B.Hd&&a.B.Z?b.o.Ni(a.B.Hd,!1):b.o.pg(Infinity);d.xd=a.Aa}else d=b.o.Ni(0,!1);a.G?0==d.xd&&(d.A=a.G.P):d.A=a.Wa;return d}d=b.u;if(!d.o.cd())return d.o.ce()?(a=JE(a.P,b.o.info.o,c.o.info.o,0),a=d.o.Li(d,a)):a=d.hh(),a;!CE(b)||a.o.da||a.B.u||(IF(a,b,c),b.u||tE(b,a.C));d=b.u;var e=d.B-a.C,f=!d.range||0==d.Oa&&0==d.w?0:d.range.length-(d.w+d.Oa),k=d.o;hja(a,b,e)&&0==f&&(a.B.u?k=b.o:(k=d.startTime+LF,d.Oa&&(k+=d.duration),tE(b,k),d=b.u,k=d.o));k.ce()?(c=
JE(a.P,k.info.o,c.o.info.o,e,Pia(a.F)&&a.ha),d=ija(d,c,BE(b))):(0>d.u&&(c=gw(d),c.pr=""+b.A.length,a.I.w&&(c.sk="1"),a.Dc("nosq",d.F+";"+Ps(c))),d=k.hh(d));a.U&&d.o.forEach(function(l){l.type=6});
return d};
hja=function(a,b,c){if(!BE(b)||!b.o.cd())return!1;a=Math.min(15,.5*GF(a,b,!0));return CE(b)||c<=a};
ija=function(a,b,c){b=a.o.Li(a,b);if(b.range&&1<b.o.length)if(c||b.u.u||b.o[0].o!=a.o)b=a.o.Li(a,b.o[0].Oa);else{c=b.o[b.o.length-1];var d=c.Oa/b.range.length;!c.A&&.4>d&&(b=a.o.Li(a,b.range.length-c.Oa))}return b};
jja=function(a,b){var c=px(b),d=a.P;var e=Math.min(2.5,ty(d.u));d=KE(d);e=c-e*d;d=bw(b.o[0]);var f=$w(b.u.o),k=a.o.F,l;a.Ka?l={ee:d,Cf:f,Bi:k,Gf:a.Ka,La:b.o[0].u,xd:b.xd}:l={ee:d,Cf:f,Bi:k};return new tia(a.R,c,e,l)};
JF=function(a,b){cw(b.o[b.o.length-1])&&MF(a,Nia(a.F,b.o[0].o));var c=jja(a,b);a.o.hn&&(c.B=[]);var d=new sD(a.o,b,c,a.ga);c.V=function(){var e;if(Bia(d)){if(e=d.u.cn&&!(!window.performance||!window.performance.now)&&d.o&&d.o.Ij()&&FD(d))e=d.o,e=e.policy.nd&&tx(e);e=e?d.info.o[0].o.info.video?3:4:2}else e=1;return e};
xia(d,(0,g.x)(a.IM,a));3==b.o.length&&1==b.o[0].type&&2==b.o[1].type&&4==b.o[2].type&&b.o[0].o.info.video&&(d.aa=Ria(a.F));a.U&&(d.ha=!0);d.start(Math.max(0,b.o[0].G-a.C));return d};
MF=function(a,b){b&&a.S("videoformatchange",b)};
NF=function(a,b){var c=b.info.o[0].o,d=c.info.video?a.u:a.A;kja(a,d,b);b.info.ee()&&!mx(b.info)&&((0,g.y)(Aia(b),function(e){TD(d.w,e)}),a.S("metadata",c));
kE(d);return!!mE(d)};
kja=function(a,b,c){if(a.B.u&&b&&(b.G&&(c.ea(),5<=c.state||FD(c)||HD(c),b.G=!1),c.U&&a.oa.w(1,c.U),c.o&&(c.ba=parseInt(c.o.dd("X-Head-Seqnum"),10)),b=c.ba)){a=a.B;for(var d in a.o)c=a.o[d].index,c.u&&(c.w=Math.max(c.w,b))}};
OF=function(a,b,c){a:{b=b.info;var d=a.o.BC,e=null,f=b.o[0];if(b.range)e=Zv(b.range.start,Math.min(4096,b.range.length));else if(d){if(b.w&&0<=b.w.indexOf("/range/")||"1"==b.u.A.get("defrag")||"1"==b.u.A.get("otf")){c=null;break a}e=Zv(0,4096)}else if(f.o.info.video){c=null;break a}d=new aw(5,f.o,e,"createProbeRequestInfo_"+f.F,f.u);b=new lx([d],b.w);b.C=c;c=b}c&&JF(a,c)};
SF=function(a){var b=a.w.o,c=a.w.u;a.A.o.w&&PF(a,b,a.A.o.w);if(lja(a)){if(a.o.Qg){if(!b.vi()){var d=mE(a.A);d&&QF(a,b,d)}c.vi()||(b=mE(a.u))&&QF(a,c,b)}}else{if(a.G){d=a.G;var e=a.A,f=Rt(a.w.u.ud());if(d.B)d=Tia(d,f);else{if(f=mE(e)){var k=f.u;k&&k.A&&k.w&&(e=e.A.length?e.A[0]:null)&&3<=e.state&&7!=e.state&&0==e.info.xd&&FD(e)&&(d.B=e,d.I=k,d.w=f.info,d.C=(0,g.H)()/1E3,d.G=d.C,d.F=d.w.startTime)}d=NaN}d&&a.S("seekplayerrequired",d,!0)}d=!1;RF(a,a.u,c)&&(d=!0,c=a.da,c.w||(c.w=(0,g.H)(),c.md("vda"),
OA("vda"),c.u&&Xp(4)));c=mE(a.u);a.o.wa&&!d&&c&&(a.yb||a.Dc("sbp",a.w.u.Za({ns:hw(c.info)})),a.yb=!0);a.w&&!au(a.w)&&(RF(a,a.A,b)&&(b=a.da,b.u||(b.u=(0,g.H)(),b.md("ada"),OA("ada"),b.w&&Xp(4)),d=!0),!a.ea()&&a.w&&(!a.o.Z&&sE(a.u)&&sE(a.A)&&Yt(a.w)&&!a.w.Sd()&&(b=iE(a.A).o,b==a.B.o[b.info.id]&&(b=a.w,Yt(b)&&b.w.endOfStream(),b=a.R,fy(yy(b)),b.A=ry())),d&&!cu(a.w)&&a.aa.Ua()))}};
lja=function(a){if(a.o.Ia)return!1;var b;if(!(b=GE(a.u))&&(b=a.I.w)){b=a.P;var c=a.u,d=a.A;if(0==c.A.length&&0==d.A.length)b=!0;else{var e=0,f=ZD(c.w).concat(ZD(d.w));f=g.q(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.Oa;c=c.o.info.o+d.o.info.o;e/=c;b=10<e?!0:10>c*(10-e)/LE(b)}(b=!b)||(b=a.u,b=0<b.A.length&&1==b.w.u.length&&PD(b.w).info.I<b.R)}if(b)return!0;if(!a.ha||!a.o.Ca||10>a.C||360<a.u.o.info.ya().fc)return!1;b=DE(a.u,a.C,a.o.Ca)||DE(a.A,a.C,a.o.Ca);return(0<a.u.A.length||0<a.A.A.length||
HF(a,a.u,a.A)||HF(a,a.A,a.u))&&b};
RF=function(a,b,c){if(c.Sd())return!0;if(!c.Xq())return!1;var d=mE(b);if(!d||6==d.info.type)return!1;var e=d.info,f=iE(b);!f||f.A||dw(f,e)||c.abort();c.Xu(e.o.info.containerType,e.o.info.mimeType);if(e=a.o.Ta&&a.B.w&&0==d.info.w&&(g.gt(d.info.o.info)||a.o.Kv)){if(null==c.vi()){e=iE(b);if(!(f=!e||e.o!=d.info.o)){b:if(e=e.P,f=d.info.P,e.length!=f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.sb(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.vi(),f=d.info.o.o,e=e!==f&&!g.sb(e,f);e=!e}e&&(g.gt(d.info.o.info)?
(yv(xw(d),1836019574),yv(xw(d),1718909296)):(e=new Cv(xw(d)),Wv(e),Gv(e,524531317,!0),d.o=d.o.split(e.w+e.o).ij),d.w=!1);a.o.pe&&d.w&&(d.w=!1);e=a.G&&!!a.G.B&&b.o.info.audio;f=a.B.u||d.w;if(!(a.B.w&&0!=d.info.w||f&&!e)&&QF(a,c,d))return!0;if(e)return!1;e=a.C+GF(a,b,!1);if(!(e=d.info.G>e)){a:if(a.o.wa&&a.Dc("sba",c.Za({as:hw(d.info)})),e=d.w?d.info.o.o:null,f=rw(d.o),d.w&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=TF(a,c,f,d.info,e),"s"==e){a.Ca=0;var l=!0}else{a.o.jv||(c.abort(),yE(b));
if("i"==e||"x"==e)UF(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.o,e.C=Math.floor(.8*e.C),e.V=Math.floor(.8*e.V),e.B=Math.floor(.8*e.B)):(e=a.o,e.G=Math.floor(.8*e.G),e.Aa=Math.floor(.8*e.Aa),e.B=Math.floor(.8*e.B)),c.supports(2)&&!c.Sd()&&!a.w.isView())){e=!1;f=c.ud();try{for(k=0;!e&&k<f.length;k++)f.start(k)>d.info.B&&(c.remove(f.start(k),f.end(f.length-1)),e=!0);var m=Math.max(0,Math.min(a.C,d.info.startTime)-5);!e&&m&&c.remove(0,m);l=!1;break a}catch(n){}}a.S("reattachrequired")}l=
!1}e=!l}if(e)return!1;b.w.u.shift();nE(b,d);return!0};
UF=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.o.C=e,d.o.info.video&&!aF(a.F)&&$E(a.F,d.o)):"i"==c&&(15>a.Ca?(a.Ca++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=gw(d);d.mrs=a.w.w.readyState;d.origin=b;d.reason=c;EF(a,f,e,d)};
VF=function(a,b,c){if(c){var d=a.V;if(d.B.Qa){var e=d.o&&d.u&&d.o.La==d.u.La-1;e=d.o&&e&&"stop"!=d.o.td.event&&"predictStart"!=d.o.td.event;d.u&&d.u.La<b.La&&(e?UE(d,d.u):d.A=!0);d.u=b}}d=a.B;e=!1;for(var f in d.o){var k=jt(d.o[f].info.mimeType)||d.o[f].info.isVideo();c==k&&(k=d.o[f].index,xx(k,b.La)||(k.pz(b),e=!0))}Hia(a.I,b,c,e)};
QF=function(a,b,c){c.info.o.cd();var d=c.info.o.o;if(null==d||b.vi()==d)return!1;var e=d,f=b.Vn();if(a.o.pe&&f&&b.isView()&&g.gt(c.info.o.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Pfa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Dc("fenc","1")}d=TF(a,b,e,null,d);return"s"!=d?(UF(a,"sepInit",d,c.info),!0):b.Sd()};
TF=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11==f.code)return"i";if(12==f.code)return"x";if(22!=f.code&&0!=f.message.indexOf("Not enough storage"))return g.M(f),"u";b=Nt(b.ud()).replace(/,/g,"_");a.Dc("quex","br."+b+";e."+f);return"q"}return au(a.w)?"m":"s"};
vF=function(a,b){b.w.subscribe("needkeyinfo",a.PJ,a);b.w.subscribe("error",a.AL,a);b.w.subscribe("avsyncissue",a.zL,a);var c=(0,g.x)(a.DL,a,b);b.w.subscribe("placeholderinfo",c,void 0);c=(0,g.x)(a.EL,a,b);b.w.subscribe("placeholderrollback",c,void 0);c=(0,g.x)(a.FL,a,b);b.w.subscribe("segmentinfo",c,void 0);c=a.BL.bind(a);b.w.subscribe("gaplessinfo",c,void 0);c=a.CL.bind(a);b.w.subscribe("localmediacomplete",c,void 0)};
cja=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.U||a.S("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Dc(c,d,!1)});
b.subscribe("error",function(c,d,e){EF(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.C=c})};
PF=function(a,b,c){var d=0+c.duration;c=-c.o;0==b.Un()&&d==b.Jr()||b.Cu(0,d);c!=b.Bb()&&(b.Mp(c),aE&&fE(a.A.w,b.Sr()))};
GF=function(a,b,c){if(a.ba)return 1;var d=b.o.info.audio?a.o.G:a.o.C;!a.o.da&&bF(a.F)&&(d=Math.max(d,b.o.info.audio?a.o.Aa:a.o.V));c&&(d+=a.o.za);var e=bF(a.F)?b.u?b.u.o.info.o:b.o.info.o:b.P;d/=e;0<a.o.Ea&&a.w&&Yt(a.w)&&(b=b.o.info.video?a.w.u:a.w.o)&&!b.Sd()&&(b=b.ud(),e=Ot(b,a.C),0<=e&&(b=a.C-b.start(e),d+=Math.max(0,Math.min(b-a.o.Ea,a.o.Tn))));0<a.o.B&&(d=Math.min(d,a.o.B));a.o.Kc&&c&&!bF(a.F)&&(c=a.F,c=ZE(c,g.Va(c.o))+ZE(c,c.G.o[0]),c=a.o.Kc*(c/KE(a.P)),c<d&&15>c&&a.Dc("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
eja=function(a){if(!a.Ta)return Infinity;var b=(0,g.ue)(qF(a.Ta),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.C)return c.start/1E3;return Infinity};
mja=function(a,b){var c=pE(a.u).find(function(d){return d.startTime>=b&&wF(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime:0};
wF=function(a,b,c){if(!(a.u.o.cd()&&a.A.o.cd()&&a.w&&a.w.u&&a.w.o))return!1;if(c&&a.B.u&&(-1==a.u.C||-1==a.A.C))return!0;var d=rE(a.u,b,c);if(isNaN(d))return!1;a=rE(a.A,a.o.ha?b:d,c);return isNaN(a)?!1:!0};
WF=function(a,b,c,d){c.cd()||c.B||!jx(c.u)||(d=c.Bj(d?Eia(a.P,c.info):0),(0,g.y)(d,function(e){if("f"!=e.o[0].o.info.u){var f=JF(this,e);mx(e)&&(b.A.push(f),b.u=g.Va(f.info.o))}},a),c.B=!0)};
EF=function(a,b,c,d){a.ea()||(d=new Os(c,b,d),g.Pa(a),Ps(d.details),a.S("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
CF=function(a){yE(a.A);yE(a.u)};
XF=function(a){a.A.w.C=null;a.u.w.C=null;a.o.w="";a.o.F=!1};
nja=function(a,b){var c=b.info.video?a.u:a.A;null!=c&&WF(a,c,b,!1)};
YF=function(a){this.o=a};
oja=function(a,b,c){this.url=a;this.interval=b;this.o=c};
ZF=function(){g.O.apply(this,arguments)};
$F=function(a,b,c,d){ZF.call(this);var e=this;this.w=-1;this.o={};this.A=new g.I(this.B,0,this);g.B(this,this.A);this.u=new g.I(function(){e.ea()||(e.A.start(Math.random()*c),e.u.start(b))},a,this);
g.B(this,this.u);d.subscribe("fairplay_next_need_key_info",this.C,this)};
pja=function(a,b,c){a=a.match(md);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0==f.indexOf("cpi=")?d.push("cpi="+b):0==f.indexOf("ek=")?d.push("ek="+bd(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
aG=function(a){a=a.subarray(4);return String.fromCharCode.apply(null,new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2))};
bG=function(a,b){this.statusCode=a;this.errorMessage=null;this.message=b;this.nextFairplayKeyId=this.u=this.o=this.heartbeatParams=null};
cG=function(a){var b=Bv(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1==c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=lv(b.slice(d+2));if(null==b)return null;a=new bG(e,a.subarray(c+4));0!=a.statusCode&&(a.errorMessage=g.GC(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new oja(c,parseInt(b["Heartbeat-Interval-Secs"],
10)||60,parseInt(b["Heartbeat-Num-Retries"],10)||4);if(c=b["Authorized-Format-Types"])a.o=c.split(",");if(c=b["Key-Ids"])a.u=qja(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
qja=function(a){if(!a)return{};a=a.split(";");var b={};(0,g.y)(a,function(c){c=c.split(",");2==c.length&&(b[c[1]]=c[0])});
return b};
dG=function(a,b,c,d){g.A.call(this);this.message=a;this.number=b;this.w=c;this.o=d;this.u=new g.On(5E3,2E4,.2)};
eG=function(a,b,c,d,e){g.A.call(this);this.F=a;this.M=b;this.P=c;this.o=d;this.u=e;this.sessionId="";this.I=this.G=this.A=this.C=null;this.B=new g.Gr(this);g.B(this,this.B);this.o?(this.B.L(this.o,"message",this.kI),this.B.L(this.o,"keystatuseschange",this.lI),this.o.closed&&this.o.closed.then(Fo((0,g.x)(this.GK,this)),null)):this.u&&(Hr(this.B,this.u,["mskeymessage","webkitkeymessage"],this.SA),Hr(this.B,this.u,["mskeyerror","webkitkeyerror"],this.RA),Hr(this.B,this.u,["mskeyadded","webkitkeyadded"],
this.QA))};
fG=function(a,b,c,d,e,f){a.C=b;a.A=c;a.G=d;a.I=e;a.w=f};
gG=function(a,b){g.A.call(this);this.u=a;this.o=b;this.F={};this.A=null;this.B=new g.Gr(this);g.B(this,this.B);this.w=this.C=null};
hG=function(a){if(a.o.keySystemAccess)return a.o.keySystemAccess.createMediaKeys().then(Fo(function(b){a.ea()||(a.C=b,a.u.setMediaKeys(b))}));
xz(a.o)?a.w=new (wz())(a.o.o):Az(a.o)?(a.w=new (wz())(a.o.o),a.u.webkitSetMediaKeys(a.w)):rja(a);return null};
rja=function(a){Hr(a.B,a.u,["keymessage","webkitkeymessage"],a.oI);Hr(a.B,a.u,["keyerror","webkitkeyerror"],a.nI);Hr(a.B,a.u,["keyadded","webkitkeyadded"],a.mI)};
sja=function(a){return"widevine"==a.o.flavor&&a.o.Rm&&a.C.setServerCertificate?a.C.setServerCertificate(a.o.Rm):null};
iG=function(a,b){var c=a.subarray(4);c=String.fromCharCode.apply(null,new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
tja=function(a,b){var c=iG(b,a.o.Oe);c=a.w.createSession("video/mp4",c);return new eG(null,null,null,null,c)};
uja=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);c=a.w.createSession("video/mp4",b,c);return new eG(null,null,null,null,c)};
jG=function(a,b){var c=a.F[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c};
lG=function(a,b,c,d){g.O.call(this);this.T=a;this.u=a.uc;this.w=b;this.aa=c;this.cryptoPeriodIndex=c.cryptoPeriodIndex||NaN;this.da=d;this.B=vja(this);this.B.session_id=d;this.I=!0;"widevine"==this.u.flavor&&(this.B.hdr="1");"playready"==this.u.flavor&&(a=parseInt(g.At(b.experiments,"playready_first_play_expiration"),10),!isNaN(a)&&0<=a&&(this.B.mfpe=""+a),g.P(b.experiments,"html5_playready_keystatuses_killswitch")||(this.I=!1),g.P(b.experiments,"html5_playready_enable_non_persist_license")&&(this.B.pst=
"0"));a=Bz(this.u)?aG(c.initData).replace("skd://","https://"):this.u.u;g.P(this.w.experiments,"enable_shadow_yttv_channels")&&(a=new g.Pm(a),document.location.origin&&document.location.origin.includes("green")?g.Rm(a,"web-green-qa.youtube.com"):g.Rm(a,"www.youtube.com"),a=a.toString());this.G=a;this.ba=Cd(this.G,"ek")||"";this.V=g.P(b.experiments,"html5_use_drm_retry");this.U=0;this.F=this.P=!1;this.A=null;this.ha=c.u;this.C=[];this.M=!1;this.o={};this.R=NaN;kG(this,"sessioninit"+c.cryptoPeriodIndex)};
xja=function(a,b){kG(a,"createkeysession");HA("drm_gk_s");a.Z=wja(a);try{a.A=b.createSession(a.aa,function(d){return kG(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.S("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.A&&(fG(a.A,a.iI,a.hI,a.gI,a.jI,a),g.B(a,a.A))};
wja=function(a){var b=a.G,c=b;var d=void 0===d?!1:d;Mw(Ow(c,yja,null),c,d,"Drm Licensor URL")||mG(a,"drm.net",!0,"t.x");for(var e in a.B)c=e,d=a.B[e],b=zd(Dd(b,c),c,d);return b};
vja=function(a){var b={};g.Sb(b,a.w.deviceParams);b.cpn=a.T.clientPlaybackNonce;var c=["23883098"].filter(function(d){return a.w.experiments.experiments[d]});
0<c.length&&(b.fexp=c.join());a.T.ae&&(b.vvt=a.T.ae,a.T.mdxEnvironment&&(b.mdx_environment=a.T.mdxEnvironment));a.w.Nc&&(b.authuser=a.w.Nc);a.w.pageId&&(b.pageid=a.w.pageId);isNaN(a.cryptoPeriodIndex)||(b.cpi=a.cryptoPeriodIndex);g.P(a.w.experiments,"html5_send_device_type_in_drm_license_request")&&(c=Sca())&&(b.cdt=c);return b};
zja=function(a){var b={};g.Sb(b,a.B);return b};
nG=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(qba(a.childNodes[0].data)):null:null};
Aja=function(a,b){kG(a,"sdpvrq");if("widevine"!=a.u.flavor)mG(a,"drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.T.clientPlaybackNonce};g.Sb(c,a.w.deviceParams);c=g.yd("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:Bv(b)}),responseType:"arraybuffer"};g.ir(c,d,3,500).then(Fo(function(e){if(!a.ea()){e=
new Uint8Array(e.response);var f=Bv(e);try{var k=JSON.parse(f)}catch(l){}k&&k.signedResponse?(a.S("ctmp","drminfo","provisioning"),a.A&&a.A.update(e)):(k=k&&k.error&&k.error.message,e="e.parse",k&&(e+=";m."+k),mG(a,"drm.provision",!0,e))}}),Fo(function(e){a.ea()||mG(a,"drm.provision",!0,"e."+e.errorCode+";c."+(e.Ji&&e.Ji.status))}))}};
oG=function(a){var b;if(b=a.I&&null!=a.A)a=a.A,b=!(!a.o||!a.o.keyStatuses);return b};
pG=function(a,b){HA("drm_net_s");if(a.T.useInnertubeDrmService()){var c=new g.Qq(a.w.vg),d=g.ep(c);d.drmSystem=Bja[a.u.flavor];d.videoId=a.T.videoId;d.cpn=a.T.clientPlaybackNonce;d.sessionId=a.da;d.licenseRequest=g.bg(b.message);d.drmParams=a.T.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(d.context&&d.context.client){var e=a.w.deviceParams;e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=
e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.T.ae&&(d.context.user.credentialTransferTokens=[{token:a.T.ae,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.T.mdxEnvironment||d.context.request.mdxEnvironment;a.T.Ff&&(d.context.user.kidsParent={oauthToken:a.T.Ff});if(Bz(a.u)){e=a.ba;for(var f=[],k=0;k<e.length;k+=2)f.push(parseInt(e.substring(k,k+2),16));
d.fairplayKeyId=g.bg(f)}e=a.T.Qd();f={onSuccess:(0,g.x)(b.F,b),onError:(0,g.x)(b.C,b)};e&&(f.gw="Bearer "+e);g.gp(c,"player/get_drm_license",d,f)}else mG(a,"drm.net",!0,"t.r;ic.0")}else c=a.Z,d=a.T.oauthToken,e={format:"RAW",method:"POST",postBody:b.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:(0,g.x)(b.B,b),onError:(0,g.x)(b.A,b)},d&&(c=zd(Dd(c,"access_token"),"access_token",d)),g.Eq(c,e)};
mG=function(a,b,c,d,e){a.ea()||a.S("licenseerror",b,c,d,e);c&&a.dispose()};
Cja=function(a,b){var c=b.u.getValue();c=new g.I(function(){return pG(a,b)},c);
g.B(a,c);c.start();g.Pn(b.u);kG(a,"rtyrq")};
qG=function(a){return g.$a(a,"UHD2")?"highres":g.$a(a,"UHD1")?"hd2160":g.$a(a,"HD")?"hd1080":g.$a(a,"HD720")?"hd720":"large"};
rG=function(a,b){if(!oG(a)&&zz(a.u)&&!b)return"large";var c=[],d=!0;if(oG(a))for(var e in a.o)"usable"==a.o[e].status&&c.push(a.o[e].type),"unknown"!=a.o[e].status&&(d=!1);if(!oG(a)||d)c=a.C;return qG(c)};
sG=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
Dja=function(a){if(oG(a)){var b=[],c;for(c in a.o)b.push.apply(b,[c,a.o[c].type,a.o[c].status]);a=b.join(";")}else a=a.C.join(";");return a};
tG=function(a,b,c,d,e){var f;"playready"===e?f=nG(a):"fairplay"==e&&(f=Av(g.bg(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Oaa(c,d),g.ir(c,a,3,500).then(function(k){k=new Uint8Array(k.response);(k=cG(k))&&k.message&&b.update(k.message)}))};
uG=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.o)if("output-restricted"==a.o[d].status&&(b=a.o[d].type,""==c||"AUDIO"==b||c==b))return!0;return!1};
vG=function(a,b){for(var c in a.o)if("usable"==a.o[c].status&&a.o[c].type==b)return!0;return!1};
kG=function(a,b){SB(a.T)&&a.S("ctmp","drmlog",b)};
wG=function(a,b){g.A.call(this);this.o=g.oe("video");this.u=null;this.w=new vz("fairplay","com.youtube.fairplay","",b);this.w.Oe=a;this.A=[];this.B=new g.Gr(this);g.B(this,this.B);Eja(this)};
Eja=function(a){var b,c;g.Ba(function(d){if(1==d.o){if(!a.o)return d["return"]();g.sh(a.o,{position:"absolute",width:"1px",height:"1px",display:"block"});a.o.src=a.w.A;document.body.appendChild(a.o);a.B.L(a.o,"encrypted",a.C);b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}];return g.ta(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2)}c=d.u;a.w.keySystemAccess=c;a.u=new gG(a.o,
a.w);g.B(a,a.u);hG(a.u);d.o=0})};
xG=function(){this.keys=[];this.values=[]};
yG=function(a,b,c){ZF.call(this);var d=this;this.A=a;this.w=b;this.o=[];this.u=new g.I(function(){var e=d.o.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.w.values.length)f=!0;else{for(var k=g.q(d.w.values),l=k.next();!l.done;l=k.next())if(l.value.cryptoPeriodIndex==f){f=!0;break a}f=!1}}f||d.S("rotated_need_key_info_ready",e);0<d.o.length&&(e=d.o[0].time-(0,g.H)(),d.u.start(Math.max(0,e)))},0);
g.B(this,this.u);c.subscribe("widevine_set_need_key_info",this.B,this)};
BG=function(a,b,c){g.O.call(this);a&&(a.addKey||a.webkitAddKey)||wz()||Cz(c.experiments);this.P=a;this.T=b;this.o=b.uc;this.u=c;this.wa=b.drmSessionId||g.Ur();this.w=new xG;this.ha=null;this.C=new xG;this.I=new xG;this.A=[];b=g.P(this.u.experiments,"html5_drm_initial_constraint_from_config")?this.T.jl:g.P(this.u.experiments,"html5_drm_start_from_null_constraint");this.G="fairplay"==this.o.flavor?Du:b?Du:zG;this.U=null;this.M=new gG(a,this.o);g.B(this,this.M);this.B=null;xz(this.o)&&(this.B=new gG(a,
this.o),g.B(this,this.B));this.ma=2;this.ba=new g.Gr(this);g.B(this,this.ba);this.oa=this.da=!1;this.ga=null;this.V=!1;a=this.P;this.o.keySystemAccess?this.ba.L(a,"encrypted",this.pI):Hr(this.ba,a,xz(this.o)?["msneedkey"]:["needkey","webkitneedkey"],this.TL);(a=hG(this.M))?a.then(Fo((0,g.x)(this.yL,this)),Fo((0,g.x)(this.mK,this))):(AG(this,"mdkrdy"),this.V=!0);this.B&&hG(this.B);this.R=this.aa=this.Z=!1;a:{a=this.o;b=this.u.experiments;c=this.w;switch(a.flavor){case "fairplay":19.2999<cl()?(b=a.Mn,
a=a.Ln,a>=b&&(a=.75*b),c=.5*(b-a),a=new $F(c,b,b-c-a,this)):a=null;break a;case "widevine":a=new yG(g.P(b,"disable_license_delay"),c,this);break a}a=null}if(this.F=a)g.B(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.Zv,this);AG(this,"cks"+this.o.ge());a=this.o;"com.youtube.widevine.forcehdcp"===a.o&&a.A&&(this.za=new wG(this.T.Oe,this.u.experiments),g.B(this,this.za))};
EG=function(a,b,c){a.oa=!0;c=new JD(b,c);g.P(a.u.experiments,"html5_eme_loader_sync")?(a.C.get(b)||a.C.set(b,c),CG(a,c)):0!=a.A.length&&a.T.xa&&a.T.xa.o?DG(a):CG(a,c)};
FG=function(a,b){AG(a,"onneedkeyinfo");g.P(a.u.experiments,"html5_eme_loader_sync")&&(a.I.get(b.initData)||a.I.set(b.initData,b));CG(a,b)};
Gja=function(a,b){if(xz(a.o)&&!a.Z){var c=mia(b);if(0!=c.length){var d=new JD(c);a.Z=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){Fja(a,f,d)})},null)}}};
Fja=function(a,b,c){var d=b.createSession(),e=a.w.values[0],f=zja(e);d.addEventListener("message",function(k){k=new Uint8Array(k.message);tG(k,d,a.o.u,f,"playready")});
d.addEventListener("keystatuseschange",function(){d.keyStatuses.forEach(function(k,l){"usable"==l&&(a.aa=!0,GG(a,rG(e,a.aa)))})});
d.generateRequest("cenc",c.initData)};
CG=function(a,b){if(!a.ea()){AG(a,"onInitData_");if(g.P(a.u.experiments,"html5_eme_loader_sync")&&a.T.xa&&a.T.xa.o){var c=a.I.get(b.initData),d=a.C.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.C.remove(c);a.I.remove(c)}AG(a,"initd"+b.initData.length+"ct"+b.contentType);"widevine"==a.o.flavor?a.da&&!a.T.va||g.P(a.u.experiments,"vp9_drm_live")&&a.T.va&&b.Bc||(a.da=!0,c=b.o,KD(b),c&&!b.Bc&&b.o!=c&&a.S("ctmp","cpsmm","emsg."+c+";pssh."+b.o),a.S("widevine_set_need_key_info",b)):a.Zv(b)}};
HG=function(a){a.ea()||(a.V=!0,AG(a,"onmdkrdy"),DG(a))};
DG=function(a){if(a.oa&&a.V&&!a.R){for(;a.A.length;){var b=a.A[0];if(a.w.get(b.initData))if("fairplay"==a.o.flavor)a.w.remove(b.initData);else{a.A.shift();continue}KD(b);break}if(a.A.length){b=a.A[0];a.w.get(b.initData);a.R=!0;var c=new lG(a.T,a.u,b,a.wa);a.w.set(b.initData,c);c.subscribe("ctmp",a.pA,a);c.subscribe("hdentitled",a.CA,a);c.subscribe("keystatuseschange",a.rz,a);c.subscribe("licenseerror",a.sz,a);c.subscribe("newlicense",a.MA,a);c.subscribe("newsession",a.OA,a);c.subscribe("sessionready",
a.dB,a);c.subscribe("fairplay_next_need_key_info",a.zA,a);xja(c,a.M)}}};
GG=function(a,b){var c=Bu("auto",b,!1,"l");if(g.P(a.u.experiments,"html5_drm_initial_constraint_from_config")?a.T.jl:g.P(a.u.experiments,"html5_drm_start_from_null_constraint")){if(Au(a.G,c))return}else if(Gu(a.G,b))return;a.G=c;a.S("qualitychange");AG(a,"updtlq"+b)};
AG=function(a,b){SB(a.T)&&a.Oh.S("ctmp","drmlog",b)};
IG=function(a,b,c,d){this.videoData=a;this.o=b;this.reason=c;this.u=d};
Hja=function(a,b){this.videoData=a;this.xa=b};
Ija=function(a,b,c){return b.on(c).then(function(){return(a.fa("disable_index_range_auth")||!b.lo||!b.xa.o||b.Ef()||b.Ml()?0:/(&|,|^)init=0-0(&|,|$)/.test(b.adaptiveFormats))?kr(new Os("auth",!0,{init:"1"})):lr(new Hja(b,b.xa))},function(d){d instanceof Error&&g.Go(d);
d=b.va&&!g.uu(a.A,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.fe,f18:""+ +(0<=b.Gk.indexOf("itag=18")),c18:""+ +Ct('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f43:""+ +(0<=b.Gk.indexOf("itag=43")),c43:""+ +Ct('video/webm; codecs="vp8.0, vorbis"')};b.ia&&(e.f133=""+ +!!b.ia.o["133"],e.c133=""+ +Et('video/mp4; codecs="avc1.42001E"'),e.f140=""+ +!!b.ia.o["140"],e.c140=""+ +Et('audio/mp4; codecs="mp4a.40.2"'),e.f242=""+ +!!b.ia.o["242"],
e.c242=""+ +Et('video/webm; codecs="vp9"'));return new Os(d,!0,e)})};
JG=function(a,b){g.O.call(this);this.o=a;this.M=b;this.P=this.C=this.F=this.w=this.u=this.B=this.I=this.A=0;this.G=1};
LG=function(a,b,c){!g.P(a.o.experiments,"html5_tv_ignore_capable_constraint")&&g.$y(a.o)&&(c=Eu(c,KG(a,b)));return c};
KG=function(a,b){if(g.$y(a.o)&&fu(a.o.A,ju))var c=b.xa.videoInfos[0].ya().fc;else{var d=!!b.xa.o;Qy(a.o)&&(c=window.screen&&window.screen.width?new g.Sd(window.screen.width,window.screen.height):null);c||(c=a.o.Pk?a.o.Pk.clone():a.M.getPlayerSize());if(Sy||MG||d){d=c;var e=g.iz();d.width*=e;d.height*=e}hB(b.videoData)||QB(b.videoData);var f=b.xa.videoInfos;if(f.length){d=.85;e=f[0].ya();4!=e.projectionType&&2!=e.projectionType&&3!=e.projectionType||Oy||(d=.45);e=f[0];var k=e.ya();f=g.q(f);for(var l=
f.next();!l.done&&!(e=k=l.value,k=k.ya(),null===c||k.width*d<c.width&&k.height*d<c.height);l=f.next());c="93"==ct(e)?Ws(k.width,k.height):k.quality;c=Bu("auto",c,!1,"r")}else c=Du;c=c.o}c&&(c=Math.max(c,360));return new zu(0,c,!1,"r")};
NG=function(a,b){var c;a:if((c=b.xa)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.A){c=e.ya().fc;break a}c=c.videoInfos[0].ya().fc}else c=0;fl()&&!g.$y(a.o)&&et(b.xa.videoInfos[0])&&(c=Math.min(c,g.Xs.large));return new zu(0,c,!1,"o")};
Jja=function(a){var b;return g.Ba(function(c){if(!a.xa.o)return c["return"]();b=a.xa.videoInfos;return c["return"](Rz(b))})};
Kja=function(a,b,c,d){if(!b||!c||!b.videoData.Ba)return!1;var e=g.Q(a.o.experiments,"html5_df_downgrade_thresh"),f=OG(a,"html5_log_media_perf_info"),k=g.Q(a.o.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.B?0:f||0<e||0<k))return!1;a.B=(0,g.N)();c=c.Xl();if(!c)return!1;var l=c.droppedVideoFrames-a.C,m=c.totalVideoFrames-a.P;a.C=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.xg&&a.S("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);if(OG(a,
"html5_ignore_background_dfd")&&d)return a.u=0,a.w=0,!1;d=60<m?l/m:0;0<d&&(a.F=d);a.w=0<k&&60*d>k?a.w+1:0;if(!e||g.$y(a.o)||!PG(a,b))return!1;a.u=d>e?a.u+1:0;if(3!=a.u)return!1;QG(a,b.videoData.Ba);a.S("ctmp","dfd",RG());return!0};
PG=function(a,b){if(OG(a,"html5_restore_perf_cap_redux"))return!0;if(!b.videoData.Ba)return!1;if("1"==b.videoData.Ba.u)return!0;var c=a.o.o?240:360;return b.videoData.Ba.ya().fc>c};
QG=function(a,b){var c=b.ya().fc-1,d=b.u,e=b.ya().fps,f=c,k=iy();d=hy(d,e);0<+k[d]&&(f=Math.min(+k[d],f));k[d]!=f&&(k[d]=f,g.Ds("yt-player-performance-cap",k,604800));a.o.Wf=new zu(0,c,!1,"b")};
SG=function(a,b){if(OG(a,"html5_restore_perf_cap_redux")){if(!b.xa.o)return Du;for(var c=0,d=a.o.o?240:360,e=g.q(b.xa.videoInfos),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.u,l=f.ya().fps;k=+iy()[hy(k,l)]||0;f=f.ya().fc;if(!k||Math.max(k,d)>=f){c=f;break}}return new zu(0,c,!1,"b")}return a.o.Wf};
OG=function(a,b){return g.P(a.o.experiments,b)};
Lja=function(a,b){OG(a,"html5_log_media_perf_info")&&(a.S("ctmp","perfdb",RG()),a.S("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.S("ctmp","mcdb",b.xa.videoInfos.filter(function(c){return!1===c.A}).map(function(c){return ct(c)}).join("-")))};
RG=function(){var a=Bb(iy(),function(b){return""+b});
return Ps(a)};
TG=function(){this.endTime=this.startTime=-1;this.ar="-";this.playbackRate=1;this.visibilityState=0;this.Uq="";this.volume=this.connectionType=this.Wg=0;this.muted=!1;this.clipId="-"};
UG=function(a,b,c,d,e,f,k,l,m,n,p,t,u){this.videoData=a;this.o=b;this.Wc=c;this.B=d;this.u=e;this.A=f;this.G=k;this.getAudioTrack=l;this.getPlaybackRate=m;this.C=n;this.getVisibilityState=p;this.F=t||function(){};
this.w=null;this.I=u||function(){}};
g.WG=function(a){return VG(a)()};
VG=function(a){if(!a.w){var b=g.Qa(function(c){var d=(0,g.N)();c&&631152E6>=d&&(g.M(Error("invalid coreTime.now value: "+d)),d=(new Date).getTime()+2);return d},g.P(a.o.experiments,"html5_validate_yt_now"));
a.w=g.Qa(function(c){return Math.round(b()-c)/1E3},b());
a.I()}return a.w};
YG=function(a){if(navigator.connection&&navigator.connection.type)return XG[navigator.connection.type]||XG.other;if(g.$y(a.o)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
ZG=function(a){var b=new TG;b.ar=a.Wc().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a.o.Wg&&(b.Wg=1);c=a.getAudioTrack();c.tb&&c.tb.id&&"und"!=c.tb.id&&(b.Uq=c.tb.id);b.connectionType=YG(a);b.volume=a.Wc().volume;b.muted=a.Wc().muted;b.clipId=a.Wc().clipid||"-";return b};
g.$G=function(a,b){this.state=a;this.Jh=b};
aH=function(a,b){return g.V(a.state,b)&&!g.V(a.Jh,b)?1:!g.V(a.state,b)&&g.V(a.Jh,b)?-1:0};
g.bH=function(a,b){return 0<aH(a,b)};
cH=function(a,b){g.A.call(this);this.u=a;this.ba=b;this.w=-1;this.R=!1;this.A=-1;this.o=new g.HC;this.M=this.V=this.U=this.G=this.F=this.P=0;this.B=new g.I(this.C,6E4,this);g.B(this,this.B);this.I=!1};
dH=function(a){0<=a.w||(3==a.u.getVisibilityState()?a.R=!0:(a.w=g.WG(a.u),a.B.start()))};
eH=function(a){if(!(0>a.A)){var b=g.WG(a.u),c=b-a.P;a.P=b;8==a.o.o?a.F+=c:g.QC(a.o)&&!g.V(a.o,16)&&(a.G+=c)}};
fH=function(a){var b=g.At(a.o.experiments,"web_player_ipp_canary_type_for_logging");if("control"==b)return"HTML5_PLAYER_CANARY_TYPE_CONTROL";if("experiment"==b)return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";a=a.o.experiments.experimentIds;return a.includes("21561000")?"HTML5_PLAYER_CANARY_TYPE_SMALL_EXPERIMENT":a.includes("21561001")?"HTML5_PLAYER_CANARY_TYPE_SMALL_CONTROL":"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"};
Mja=function(a){return(!a.fa("html5_health_to_gel")||a.o.oa+36E5<(0,g.N)())&&(a.fa("html5_health_to_gel_canary_killswitch")||a.o.oa+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"==fH(a))?a.fa("html5_health_to_qoe"):!0};
hH=function(a){g.A.call(this);var b=this;this.o=a;this.u={};this.V=1;this.ma=NaN;this.w="N";this.F=this.Ca=this.wa=this.da=this.C=0;this.ba=this.Ea="";this.oa=0;this.Ia=-1;this.Aa=1;this.R=this.U=0;this.aa=this.M=!1;this.Ma=[];this.G=null;this.I=this.Z=this.A=!1;this.B=-1;this.ga=!1;this.Ka=new g.I(this.DF,750,this);g.B(this,this.Ka);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.G=c});
g.gH(this,0,"vps",["N"])};
g.gH=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
jH=function(a,b){var c=a.o.u();g.gH(a,b,"cmt",[c.toFixed(3)]);if(a.P&&1E3*c>a.P.eA+100){var d=a.P;a.ha=1E3*b-d.pO-(1E3*c-d.eA)-d.fO;iH(a,"gllat","l."+a.ha.toFixed());delete a.P}};
lH=function(a,b){b=0<=b?b:g.WG(a.o);var c=a.o.A();if(!isNaN(a.za)&&!isNaN(c.w)){var d=c.w-a.za;0<d&&g.gH(a,b,"bwm",[d,(c.B-a.Qa).toFixed(3)])}a.za=c.w;a.Qa=c.B;isNaN(c.bandwidthEstimate)||g.gH(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.o.videoData.xg&&c.o&&iH(a,"bwinfo",c.o);a.G&&g.gH(a,b,"bat",[a.G.level,a.G.charging?"1":"0"]);d=a.o.getVisibilityState();a.Ia!=d&&(g.gH(a,b,"vis",[d]),a.Ia=d);jH(a,b);(d=YG(a.o))&&d!=a.oa&&(g.gH(a,b,"conn",[d]),a.oa=d);kH(a,b,c)};
kH=function(a,b,c){if(!isNaN(c.u)){var d=c.u;c.A<d&&(d=c.A);g.gH(a,b,"bh",[d.toFixed(3)])}};
mH=function(a){var b=0,c;for(c in a.u)b+=c.length+(0,g.ui)(a.u[c],function(d,e){return d+e.length},0);
96E3<b&&(new g.I(a.uk,0,a)).start()};
nH=function(a,b,c,d){var e=a.o.u();c=[c,e.toFixed(3)];d&&c.push(d);g.gH(a,b,"error",c);a.I=!0};
oH=function(a){!a.o.fa("html5_qoe_user_intent_match_health")||0<=a.B||(a.o.o.Ma||3!=a.o.getVisibilityState()?a.B=g.WG(a.o):a.ga=!0)};
Oja=function(a,b){if(g.V(b,128))return"ER";if(g.V(b,512))return"SU";if(g.V(b,16)||g.V(b,32))return"S";var c=Nja[RC(b)];g.$y(a.o.o)&&"B"==c&&3==a.o.getVisibilityState()&&(c="SU");"B"==c&&g.V(b,4)&&(c="PB");return c};
pH=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
iH=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!=a.Ma.indexOf(b);f||a.Ma.push(b);if(!d||!f){!a.o.fa("html5_censor_ctmp_killswitch")&&/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d){var k=1E3*g.WG(a.o);c="t."+k.toFixed()+";"+c}Pja(b,c);e.push(b+":"+c);a.u.ctmp=e;mH(a);return k}};
qH=function(a){this.u=a;this.P=!1;this.o=0;this.C=-1;this.R=this.u.Wc().volume;this.M=this.u.Wc().muted;this.F=NaN;this.w=0;this.A=[];this.B=ZG(this.u);this.G=this.I=0};
rH=function(a){a.B.startTime=a.w;a.B.endTime=a.o;a.A.length&&g.Va(a.A).isEmpty()?a.A[a.A.length-1]=a.B:a.A.length&&a.B.isEmpty()||a.A.push(a.B);a.I+=a.o-a.w;a.B=ZG(a.u);a.w=a.o};
sH=function(a){return a.I+a.u.u()-a.w};
tH=function(a){a.A.length&&a.o==a.w||rH(a);var b=a.A;a.A=[];return b};
uH=function(a,b,c){c-=a.F;return b==a.o&&.5<c};
vH=function(a,b,c,d){var e={},f={};qq(a)&&rq()&&(b&&(f["X-Goog-Visitor-Id"]=b),c&&(f.Authorization="Bearer "+c),b||c)&&(e.withCredentials=!0);0<Object.keys(f).length&&(e.headers=f);d&&(e.Fc=d);return 0<Object.keys(e).length?e:null};
wH=function(a,b,c,d){rq()&&c.token&&(a=g.yd(a,{ctt:c.token,cttype:c.uC,mdx_environment:c.mdxEnvironment}));b?(c=g.mq(a),Object.keys(c).includes("cpn"),g.Eq(a,b)):g.cr(a,d)};
xH=function(a,b,c,d){this.ga=b;this.segments=[];this.experimentIds=[];this.adQueryId=null;this.sh=this.Z=this.isFinal=this.Ea=this.U=this.autoplay=this.autonav=!1;this.wa="yt";this.u=this.A=null;this.aa=!1;this.w="watchtime"==c;this.F="playback"==c;this.ba="delayplay"==c;this.V="atr"==c;this.Ia="engage"==c;this.G=!1;this.I=this.V?"/api/stats/"+c:"//"+b.Qk+"/api/stats/"+c;d&&(this.Z=d.fs,d.rtn&&(this.u=d.rtn),this.w?(this.playerState=d.state,0<d.rti&&(this.A=d.rti)):(this.Ka=d.mos,this.Qa=d.volume,
d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.Aa=d.inview),d.size&&(this.za=d.size));this.deviceParams=g.Pb(b.deviceParams);this.Ca=b.Qa;this.experimentIds=b.experiments.experimentIds;this.ma=b.Ic;this.wa=b.V;this.region=b.region;this.userAge=b.userAge;this.oa=b.pe;this.Wa=bq();this.G=b.sendVisitorIdHeader;this.accessToken=a.Qd();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=OB(a);this.autonav=a.Pj||this.autonav;this.contentVideoId=a.ri();this.clientPlaybackNonce=
a.clientPlaybackNonce;this.U=a.lc;a.Wh&&(this.B=a.Wh,this.R=a.Xh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.ah=a.ah;this.Me=a.Me;a.Ba&&(this.videoFormat=ct(a.Ba),a.Vb&&ct(a.Vb)!=this.videoFormat&&(this.M=ct(a.Vb)));a.ia&&Ox(a.ia)&&(this.offlineDownloadUserChoice="1");this.eventLabel=MB(a);this.sh=a.sh;this.Lj=a.Lj;if(b=BB(a))this.Ma=b;a.Zh&&(this.Zh=a.Zh);this.Rl=a.Rl;this.De=a.De;this.eventId=a.eventId;this.playlistId=a.wC||a.playlistId;this.Cp=a.Cp;this.Kf=a.Kf;this.Lf=a.Lf;
this.Gm=a.Gm;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.eu=a.eu;this.referrer=a.referrer;this.ym=a.OB||a.ym;this.Ck=a.Ck;this.bq=a.bq;this.userGenderAge=a.userGenderAge};
yH=function(a,b){if(a.ga.fa("web_player_logging_net_killswitch")){var c=a.accessToken&&rq(),d=a.G&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.accessToken);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Fc:b}}return vH(a.I,a.G?a.visitorData:void 0,a.accessToken,b)};
Qja=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.yd(a,b);c?g.Eq(a,c):g.cr(a)};
AH=function(a){var b={ns:a.wa,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.ah),ei:a.eventId,fmt:a.videoFormat,fs:a.Z?"1":"0",rt:a.o(a.Ta),of:a.eu,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Ca,lact:a.Wa,live:a.Ma,cl:"311992182",mos:a.Ka,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Qa};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ra(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");
a.U&&(b.dni="1");a.isFinal&&(b["final"]="1");a.sh&&(b.splay="1");a.Me&&(b.delay=a.Me);a.ma&&(b.hl=a.ma);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.oa&&(b.uga=a.oa+a.userAge);void 0!==a.da&&(b.len=a.o(a.da));!a.w&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.u&&(b.rtn=a.o(a.u));a.Zh&&(b.als=a.Zh);a.ym&&(b.feature=a.ym);a.playlistId&&(b.list=a.playlistId);a.Kf&&(b.ctrl=a.Kf);a.Lf&&(b.ytr=a.Lf);a.Gm&&(b.ssrt="1");a.M&&(b.afmt=a.M);
a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.ha&&(b.lio=a.o(a.ha));a.w?(b.idpj=a.Lj,b.ldpj=a.Rl,null!=a.A&&(b.rti=a.o(a.A))):void 0!==a.adType&&(b.at=a.adType);a.za&&(a.F||a.ba)&&(b.size=a.za);null!=a.Aa&&(a.F||a.ba)&&(b.inview=a.o(a.Aa));a.w&&(b.volume=zH(a,(0,g.Cc)(a.segments,function(d){return d.volume})),b.muted=zH(a,(0,g.Cc)(a.segments,function(d){return d.muted?1:0})),b.st=zH(a,(0,g.Cc)(a.segments,function(d){return d.startTime})),b.et=zH(a,(0,g.Cc)(a.segments,function(d){return d.endTime})),
kj(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=zH(a,(0,g.Cc)(a.segments,function(d){return d.playbackRate}))));
kj(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=zH(a,(0,g.Cc)(a.segments,function(d){return d.visibilityState})));
kj(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=zH(a,(0,g.Cc)(a.segments,function(d){return d.connectionType})));
kj(a.segments,function(d){return 0!==d.Wg})&&(b.blo=zH(a,(0,g.Cc)(a.segments,function(d){return d.Wg})));
kj(a.segments,function(d){return"-"!==d.ar})&&(b.cc=(0,g.Cc)(a.segments,function(d){return d.ar}).join(","));
kj(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=(0,g.Cc)(a.segments,function(d){return d.clipId}).join(","));
if(kj(a.segments,function(d){return!!d.Uq})){var c="au";
a.F&&(c="au_d");b[c]=(0,g.Cc)(a.segments,function(d){return d.Uq}).join(",")}rq()&&a.B&&(b.ctt=a.B,b.cttype=a.R,b.mdx_environment=a.mdxEnvironment);
a.Ia&&(b.etype=void 0!==a.C?a.C:0);a.Ck&&(b.uoo=a.Ck);a.bq&&(b.upt=a.bq);return b};
zH=function(a,b){return(0,g.Cc)(b,a.o).join(",")};
g.BH=function(a,b,c,d,e,f){if(38===b.De&&"books"===a.playerStyle)return f=b.videoId.indexOf(":"),g.yd("//play.google.com/books/volumes/"+b.videoId.slice(0,f)+"/content/media",{aid:b.videoId.slice(f+1),sig:b.QJ});if(30===b.De&&"docs"===a.playerStyle)return g.yd("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Nc,authkey:b.authKey,eurl:a.Qa});if(33===b.De&&"google-live"===a.playerStyle)return g.yd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});g.P(a.experiments,
"log_invalid_namespame_killswitch")||"yt"===a.V||g.Tq(Error("getVideoInfoUrl for invalid namespace: "+a.V));e=18400;a.fa("ipp_signature_cipher_killswitch")||(e=g.L("STS",void 0)?g.L("STS",void 0):e);e={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Qa,ps:a.playerStyle,el:MB(b),hl:a.Ic,list:b.playlistId,agcid:b.YD,aqi:b.adQueryId,sts:e,lact:bq()};g.Ra(e,a.deviceParams);a.Ka&&(e.forced_experiments=a.Ka);b.ae?(e.vvt=b.ae,b.mdxEnvironment&&(e.mdx_environment=b.mdxEnvironment)):b.Qd()&&
(e.access_token=b.Qd());b.adFormat&&(e.adformat=b.adFormat);0<=b.slotPosition&&(e.slot_pos=b.slotPosition);b.breakType&&(e.break_type=b.breakType);null!==b.Wv&&(e.ad_id=b.Wv);null!==b.Yv&&(e.ad_sys=b.Yv);null!==b.Sw&&(e.encoded_ad_playback_context=b.Sw);b.Nu&&(e.tpra="1");a.captionsLanguagePreference&&(e.cc_lang_pref=a.captionsLanguagePreference);a.Xg&&2!==a.Xg&&(e.cc_load_policy=a.Xg);a.mute&&(e.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(e.iv_load_policy=b.annotationsLoadPolicy);
b.Kn&&(e.endscreen_ad_tracking=b.Kn);var k=a.I.get(b.videoId);k&&k.Pm&&(e.ic_track=k.Pm);b.Af&&(e.itct=b.Af);OB(b)&&(e.autoplay="1");b.mutedAutoplay&&(e.mutedautoplay=b.mutedAutoplay);b.Pj&&(e.autonav="1");b.Bs&&(e.noiba="1");b.isMdxPlayback&&(e.mdx="1",e.ytr=b.Lf);b.mdxControlMode&&(e.mdx_control_mode=b.mdxControlMode);b.Fn&&(e.ytrcc=b.Fn);b.Hs&&(e.utpsa="1");b.ky&&(e.is_fling="1");b.As&&(e.mute="1");b.vnd&&(e.vnd=b.vnd);b.sl&&(k=3===b.sl.split("|").length,e.force_ad_params=k?b.sl:"||"+b.sl);b.Zi&&
(e.preload=b.Zi);c.width&&(e.width=c.width);c.height&&(e.height=c.height);b.sh&&(e.splay="1");b.ypcPreview&&(e.ypc_preview="1");b.ri()&&(e.content_v=b.ri());b.wg&&(e.livemonitor=1);a.Nc&&(e.authuser=a.Nc);a.pageId&&(e.pageid=a.pageId);a.rb&&(e.ei=a.rb);a.u&&(e.iframe="1");b.contentCheckOk&&(e.cco="1");b.racyCheckOk&&(e.rco="1");a.w&&b.Ps&&(e.live_start_walltime=b.Ps);a.w&&b.Ql&&(e.live_manifest_duration=b.Ql);a.w&&b.playerParams&&(e.player_params=b.playerParams);a.w&&b.cycToken&&(e.cyc=b.cycToken);
a.w&&b.tC&&(e.tkn=b.tC);0!==d&&(e.vis=d);a.enableSafetyMode&&(e.enable_safety_mode="1");b.Ff&&(e.kpt=b.Ff);b.Ao&&(e.kids_age_up_mode=b.Ao);b.kidsAppInfo&&(e.kids_app_info=b.kidsAppInfo);b.Qm&&(e.upg_content_filter_mode="1");a.widgetReferrer&&(e.widget_referrer=a.widgetReferrer.substring(0,128));(c=a.dn)&&(e.embedding_app=c);(c=g.vB(b))&&(e.uloc=c);b.Jl&&(e.internalipoverride=b.Jl);a.embedConfig&&(e.embed_config=a.embedConfig);a.Yf&&(e.co_rel="1");0<a.Hc.length&&(e.ancestor_origins=Array.from(a.Hc).join(","));
void 0!==a.homeGroupInfo&&(e.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(e.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(e.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(e.is_living_room_deeplink="1");b.Cn&&b.Dn&&(e.clip=b.Cn,e.clipt=b.Dn);b.vr&&(e.disable_watch_next="1");for(var l in e)!Rja.has(l)&&e[l]&&512<String(e[l]).length&&(g.Tq(Error("GVI param too long: "+l)),e[l]="");b=a.G;g.az(a)&&(b=Qw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.G);a=g.yd(b+
"get_video_info",e);f&&(a=Bq(a,f));return a};
g.CH=function(a,b){return a.G+"timedtext_video?ref=player&v="+b.videoId};
g.DH=function(a,b){a.feature=b;return a};
EH=function(a){g.A.call(this);this.o=a;this.u=new qH(a);this.B="paused";this.C=NaN;this.I=[10,10,10,40];this.P=this.G=0;this.V=this.U=this.Z=this.ba=this.R=this.M=this.w=!1;this.A=NaN};
FH=function(a,b,c){var d=g.WG(a.o);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.G];a.G+1<a.I.length&&a.G++;c+=e;d=1E3*(c-d);a.C=g.Ho((0,g.x)(a.aa,a,c,b),d);return c};
GH=function(a,b){var c=a.o,d=c.Wc();g.Ra(d,c.videoData.Wc());g.Ra(d,{state:a.B});c=new xH(a.o.videoData,a.o.o,b,d);c.ah=a.o.u();a.o.videoData.va||(c.da=a.o.B());a.o.videoData.ia&&(d=cy(a.o.videoData.ia,c.ah))&&(c.ha=d-c.ah);c.Ta=g.WG(a.o);c.segments=[ZG(a.o)];return c};
HH=function(a,b){var c=GH(a,"watchtime");c.segments=b;c.ah=a.u.o;return c};
IH=function(a){a.u.update();return HH(a,tH(a.u))};
LH=function(a){a.o.videoData.remarketingUrl&&!a.ba&&(JH(a,a.o.videoData.remarketingUrl),a.ba=!0);a.o.videoData.youtubeRemarketingUrl&&!a.Z&&(JH(a,a.o.videoData.youtubeRemarketingUrl),a.Z=!0);a.o.videoData.googleRemarketingUrl&&!a.U&&(JH(a,a.o.videoData.googleRemarketingUrl),a.U=!0);a.o.videoData.ppvRemarketingUrl&&!a.V&&(JH(a,a.o.videoData.ppvRemarketingUrl),a.V=!0);KH(a)};
MH=function(a){a.A=Io((0,g.x)(a.F,a,"heartbeat"),3E4)};
NH=function(a,b,c){a.M||(c||(c=GH(a,"atr")),c.P=b,c.send(),a.M=!0)};
KH=function(a){a.o.videoData.Pc.eventLabel=MB(a.o.videoData);a.o.videoData.Pc.playerStyle=a.o.o.playerStyle;a.o.videoData.tm&&(a.o.videoData.Pc.feature="pyv");a.o.videoData.Pc.vid=a.o.videoData.videoId;var b=a.o.videoData.Pc;a=a.o.videoData;a=a.isAd()||!!a.tm;b.isAd=a};
Sja=function(a){var b=GH(a,"engage");b.C=1;a=VG(a.o);return g.Qa(Qja,b.I,AH(b),yH(b),a)};
JH=function(a,b){if(a.o.o.fa("web_player_logging_net_killswitch"))a.o.o.sendVisitorIdHeader&&a.o.videoData.visitorData&&qq(b)?g.Eq(b,{Fc:void 0,headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):g.cr(b,void 0);else{var c=a.o.videoData.Qd();c=vH(b,a.o.o.sendVisitorIdHeader?a.o.videoData.visitorData:void 0,c,void 0);wH(b,c,{token:a.o.videoData.Wh,uC:a.o.videoData.Xh,mdxEnvironment:a.o.videoData.mdxEnvironment},void 0)}};
OH=function(a){g.A.call(this);var b=this;this.A=a;this.w=this.o=this.u=null;this.A.videoData.isValid()&&!this.A.videoData.Ak&&(this.u=new EH(a),g.B(this,this.u),this.o=new hH(a),g.B(this,this.o));Mja(a)&&(this.w=new cH(a,function(c){b.o&&iH(b.o,"h5h",c,void 0)}),g.B(this,this.w))};
g.PH=function(a){a.u&&rH(a.u.u)};
Tja=function(a,b){a.u&&NH(a.u,b)};
Uja=function(a){if(!a.u)return null;var b=GH(a.u,"atr");return function(c){a.u&&NH(a.u,c,b)}};
QH=function(a){return a.u?Sja(a.u):function(){}};
RH=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.o=a-1};
SH=function(a){return a.data[a.o]||0};
Vja=function(a){this.A=new RH(50);this.o=null;this.w=this.u=0;this.B=a};
UH=function(a,b,c){g.O.call(this);var d=new Wja;"ULTRALOW"==a.latencyClass&&(d.A=!1);a.wg?d.u=3:g.GB(a)&&(d.u=2);g.P(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!=a.latencyClass||(d.C=!0);var e=tB(a);d.B=2==e||-1==e;d.B&&(d.P++,21530001==rB(a)&&(d.F=g.Q(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(dl("trident/")||dl("edge/"))e=g.Q(b,"html5_platform_minimum_readahead_seconds")||3,d.w=Math.max(d.w,e);g.Q(b,"html5_minimum_readahead_seconds")&&(d.w=g.Q(b,"html5_minimum_readahead_seconds"));
g.Q(b,"html5_maximum_readahead_seconds")&&(d.G=g.Q(b,"html5_maximum_readahead_seconds"));g.P(b,"html5_force_adaptive_readahead")&&(d.A=!0);g.Q(b,"html5_allowable_liveness_drift_chunks")&&(d.o=g.Q(b,"html5_allowable_liveness_drift_chunks"));g.Q(b,"html5_readahead_ratelimit")&&(d.I=g.Q(b,"html5_readahead_ratelimit"));switch(rB(a)){case 21530001:d.o=(d.o+1)/5,"LOW"==a.latencyClass&&(d.o*=2),d.M=g.P(b,"html5_live_smoothly_extend_max_seekable_time")}this.o=d;this.T=a;this.I=c;this.w=[];this.B=0;this.A=
!0;this.C=1!=this.o.u;this.F=!1;this.G=0;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.wg&&b--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||b++;switch(rB(a)){case 21530001:b=1;break;case 2153E4:b=2}this.o.B&&b++;this.u=TH(this,b)};
WH=function(a,b){var c=a.u;(void 0===b?0:b)&&a.o.M&&3==tB(a.T)&&--c;return VH(a)*c};
YH=function(a,b){var c=XH(a);var d=a.o.o;a.F||(d=Math.max(d-1,0));d*=VH(a);return b>=c-d};
XH=function(a){return Math.max(a.I()-WH(a,!0),a.T.Ab())};
ZH=function(a,b,c){b=YH(a,b);c||b?b&&(a.A=!0):a.A=!1;a.C=2==a.o.u||3==a.o.u&&a.A};
$H=function(a,b){var c=YH(a,b);a.F!=c&&a.S("livestatusshift",c);a.F=c};
VH=function(a){return a.T.ia?by(a.T.ia)||5:5};
TH=function(a,b){b=Math.max(Math.max(a.o.P,Math.ceil(a.o.w/VH(a))),b);return Math.min(Math.min(8,Math.floor(a.o.G/VH(a))),b)};
Wja=function(){this.P=1;this.w=0;this.G=Infinity;this.I=0;this.A=!0;this.o=2;this.u=1;this.B=!1;this.F=NaN;this.M=this.C=!1};
aI=function(){var a=xp();return!(!a||"visible"===a)};
cI=function(a){var b=bI();b&&document.addEventListener(b,a,!1)};
dI=function(a){var b=bI();b&&document.removeEventListener(b,a,!1)};
bI=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[wp+"VisibilityState"])return"";a=wp+"visibilitychange"}return a};
eI=function(){g.O.call(this);this.w=0;this.A=this.B=this.u=this.o=this.C=!1;this.F=(0,g.x)(this.Qi,this);cI(this.F);this.G=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A)};
Xja=function(a,b){a.u!=b&&(a.u=b,a.Qi())};
fI=function(a,b){a.B!=b&&(a.B=b,a.Qi())};
iI=function(a,b,c){g.A.call(this);this.B=a;this.G=b;this.U=c;this.A=new g.HC;this.u=this.w=null;this.I=this.P=this.o=0;this.F=new g.I(this.V,1001,this);g.B(this,this.F);this.ha=new gI({delayMs:g.Q(this.B.experiments,"html5_seek_timeout_delay_ms")});this.R=new gI({delayMs:g.Q(this.B.experiments,"html5_long_rebuffer_threshold_ms")});this.da=hI(this,"html5_seek_set_cmt");this.Z=hI(this,"html5_seek_jiggle_cmt");this.aa=hI(this,"html5_seek_new_elem");this.M=hI(this,"html5_decoder_freeze_timeout");this.ba=
hI(this,"html5_reload_element_long_rebuffer");this.C={}};
hI=function(a,b){var c=g.Q(a.B.experiments,b+"_delay_ms"),d=g.P(a.B.experiments,b+"_cfl");return new gI({delayMs:c,Ew:d})};
kI=function(a,b,c,d,e,f,k){Yja(b,c)?(d=jI(a,b),d.wn=k,d.wdup=a.C[e]?"1":"0",a.G("qoeerror",e,d),a.C[e]=!0,b.F||f()):(b.B&&b.u&&!b.C?(f=(0,g.N)(),d?b.o||(b.o=f):b.o=0,c=!d&&f-b.u>b.B,f=b.o&&f-b.o>b.G||c?b.C=!0:!1):f=!1,f&&(f=jI(a,b),f.wn=k,f.we=e,f.wsuc=""+ +d,k=Ps(f),a.G("ctmp","workaroundReport",k),d&&(b.reset(),a.C[e]=!1)))};
jI=function(a,b){var c=b.Za();a.o&&(c.stt=a.o.toFixed(3));a.u&&Object.assign(c,a.u.Za());a.w&&Object.assign(c,a.w.Za());return c};
gI=function(a){a=void 0===a?{}:a;var b=void 0===a.iO?1E3:a.iO,c=void 0===a.jO?3E4:a.jO,d=void 0===a.Ew?!1:a.Ew;this.A=void 0===a.delayMs?0:a.delayMs;this.G=b;this.B=c;this.F=d;this.reset()};
Yja=function(a,b){if(!a.A||a.u)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.w)a.w=c;else if(c-a.w>a.A)return a.u=c,!0;return!1};
pI=function(a,b,c){g.O.call(this);var d=this;this.U=b;this.T=a;this.V=new Zja(b);this.Ca=c;this.P=new iI(this.U,(0,g.x)(this.S,this),this.Ca);a={};this.Z=(a.seekplayerrequired=this.tO,a.videoformatchange=this.OI,a);lI(this,"html5_unrewrite_timestamps")?this.Z.timestamp=this.BO:this.Z.timestamp=this.AO;this.wa=null;this.ma=new g.Gr;g.B(this,this.ma);this.I=this.u=this.B=this.o=null;this.w=NaN;this.F=0;this.C=null;this.aa=NaN;this.G=this.M=null;this.ga=this.R=!1;this.ba=new g.I(function(){return mI(d,
!1)},this.V.o);
g.B(this,this.ba);this.da=new g.I(function(){d.R=!0;nI(d)});
g.B(this,this.da);this.Ea=new g.I(function(){return oI(d)});
g.B(this,this.Ea);this.oa=this.A=0;this.ha=!0;this.za=0;this.Aa=NaN};
$ja=function(a,b){a.wa=b;a.T.va&&(a.I=new Vja(function(){a:{if(a.wa&&a.wa.xa.o){if(qB(a.T)&&a.B){var c=a.B.oa.o()||0;break a}if(a.T.ia){c=a.T.ia.G;break a}}c=0}return c}),a.u=new UH(a.T,a.U.experiments,function(){return a.sc(!0)}));
a.T.startSeconds&&isFinite(a.T.startSeconds)&&1E9<a.T.startSeconds||(a.F=a.F||a.T.startSeconds||0)};
rI=function(a,b){g.Ir(a.ma);(a.o=b)?(aka(a),oI(a)):qI(a);var c=a.P;(c.w=b)&&c.F.Ua()};
tI=function(a,b){a.B&&Kr(a.B,a.Z,a);(a.B=b)?(Jr(b,a.Z,a),sI(a,!0)):qI(a);a.P.u=b};
uI=function(a){return a.getCurrentTime()-a.Bb()};
vI=function(a){return!!a.u&&a.u.C};
mI=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!YH(c,d)&&c.C?(c.o.C&&(c.o.o=Math.max(c.o.o+1,10)),c=Infinity):c=d<c.T.Ab()?Math.min(c.T.Ab()+10,XH(c)):NaN;if(!isNaN(c)){if(lI(a,"html5_in_buffer_ptl")&&a.B&&b){d=a.ba.isActive();var e=XH(a.u);if((e=mja(a.B,e-a.Bb()))&&!d){a.V.o&&a.ba.start();a.S("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.Bb()));a.seekTo(e+a.Bb());return}}lI(a,"html5_peg_to_live_logging")&&a.S("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Bb()));
a.seekTo(c)}}};
sI=function(a,b){if(a.u&&a.B){var c=!1;if(b)c=!0;else if(a.T.isLowLatencyLiveStream||"LOW"==a.T.latencyClass||"ULTRALOW"==a.T.latencyClass)if(c=a.u,c.w.length){var d=c.u;b:{if(c.w.length){if(1<Math.min.apply(null,c.w)){var e=TH(c,c.u-1);break b}if(c.o.A){e=TH(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!=c.u)c.w=[],c.B=0;c=d}else c=!1;c&&a.S("livereadaheadchanged",WH(a.u));c=a.B;d=a.u.u;e=a.u;e=(e.u-1+e.o.o)*VH(e);var f=a.u.o.F;c.Aa=Math.max(d-1,0);c.G&&(c.G.R=e);c.Wa=f}};
wI=function(a){return a.T.va&&!!a.T.xa&&!a.T.xa.o};
nI=function(a){bka(a).then(void 0,function(){qI(a)});
xI(a).then(function(b){a.G&&(a.G.resolve(b),a.S("seekend"));qI(a)},function(){qI(a)});
a.S("seekstart")};
bka=function(a){if(!a.M)if(a.B)if(isFinite(a.w))a.M=a.B.seek(a.w-a.A);else{var b=a.B;CF(b);b.G&&fF(b.G,b.u.o);b.aa.Ua();b=b.I;var c=Math.max(b.u.w.B||0,b.o.w.B||0);uE(b.u);uE(b.o);var d=b.B,e;for(e in d.o)Yu(d.o[e].index,Infinity);b.B.u&&(b.F=!0);b.S("setcurrenttime",c);b.w=!0;b.G=new WC;a.M=b.G;a.w=a.B.getCurrentTime()+a.A}else a.M=Df(a.w-a.A);return a.M};
xI=function(a){var b=a.C;b||(a.C=new WC,b=a.C,oI(a));return b};
yI=function(a,b,c){return isNaN(b)?NaN:g.Md(b,a.Ab(),a.sc(c))};
oI=function(a){if(a.C)if(!lI(a,"html5_nondash_live_seek_killswitch")&&wI(a)&&a.o&&0<a.o.je()&&0<wC(a.o)&&(a.w=yI(a,a.w,!1)),!a.o||!zI(a))a.Ea.start(750);else if(!isNaN(a.w)&&isFinite(a.w)&&a.aa!=a.w-a.A){var b=a.o.getCurrentTime()-a.w;if(Math.abs(b)<=a.za)a.C&&a.C.resolve(a.o.getCurrentTime());else if(!a.T.va&&a.w>=a.sc()-.1)a.w=a.sc(),a.C.resolve(a.sc()),a.S("ended");else try{var c=a.w-a.A;a.o.seekTo(c);a.P.o=c;a.aa=c;a.F=a.w}catch(d){}}};
zI=function(a){if(!a.o||0==a.o.je()||0<a.o.Ye())return!1;var b=0<a.o.getCurrentTime();if(!(lI(a,"html5_nondash_mediaelementready_killswitch")||a.T.xa&&a.T.xa.o||a.T.va)&&xB(a.T))return b;if(0<=a.w){var c=a.o.yl();if(c.length||!b)return Pt(c,a.w-a.A)}return b};
qI=function(a){a.w=NaN;a.aa=NaN;a.C=null;a.M=null;a.G=null;a.R=!1;a.ga=!1;a.za=0;a.ba.stop();a.da.stop()};
aka=function(a){if(a.o){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.ma.L(a.o,c.value,function(d){switch(d.type){case "seeking":d=a.o.getCurrentTime()+a.A;if(!a.C||a.ga&&d!=a.w){a.C=new WC;a.aa=d;var e=a.o.getCurrentTime();a.P.o=e;a.seekTo(d);a.ga=!0}break;case "seeked":a.C&&a.C.resolve(a.o.getCurrentTime());break;case "loadedmetadata":if(a.ha){d="ss.";e=0;if((HB(a.T)||a.T.liveUtcStartSeconds)&&(a.T.liveUtcStartSeconds||a.T.startSeconds&&isFinite(a.T.startSeconds)&&
1E9<a.T.startSeconds)&&a.T.ia){e=a.T.liveUtcStartSeconds||a.T.ph;d="utc.";var f=a.sc();var k=a.sc();k=cy(a.T.ia,k-a.A);e=f-k+e}else a.T.ia&&a.T.ia.u&&a.T.ph?(d="mss.",e=a.T.ph+a.Bb()):lI(a,"html5_unrewrite_timestamps")&&a.T.Rp&&(d="stss.",e=a.T.Rp);e?(a.seekTo(e),a.S("ctmp","startSeconds",d+e),a.ha=!1):a.T.ph&&a.S("ctmp","startSeconds",d+(a.T.ph+a.Bb()));d=!!e}else d=!1;lI(a,"html5_nondash_live_seek_killswitch")&&!d&&wI(a)&&(a.w=isFinite(a.w)?g.Md(a.w,a.Ab(),a.sc()):a.sc());case "progress":oI(a)}});
a.G||a.F||a.V.w||!a.o.Gp()||a.seekTo(.01)}};
cka=function(a){if(!a.o)return 0;if(HB(a.T)){var b=AC(a.o)+a.A-a.Ab();a=a.sc()-a.Ab();return Math.max(0,Math.min(1,b/a))}return BC(a.o)};
lI=function(a,b){return a.U&&g.P(a.U.experiments,b)};
Zja=function(a){this.o=g.Q(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.u=g.P(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.A=a.fa("html5_seek_over_discontinuities");this.w=a.fa("html5_requires_seek_for_playback_at_zero_killswitch")};
AI=function(){this.o=this.started=!1};
BI=function(a,b){this.w=a;this.timerName="";this.u=!1;this.o=b||null;this.u=!1};
CI=function(a,b,c){var d=g.Ry(b.Pa)&&b.Pa.Tc&&NB(b);if(b.Pa.Kc&&(Ny(b.Pa)||g.rz(b.Pa)||d)&&!a.u){a.u=!0;g.L("TIMING_ACTION")||to("TIMING_ACTION",a.w.pd);a.w.Rb&&to("CSI_SERVICE_NAME",a.w.Rb);if(a.o){b=a.o.A;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,HA(e,b[e],a.timerName);b=a.o.w;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,GA(e,b[e],a.timerName);b=a.o;b.A={};b.w={}}GA("yt_pvis",Qha(),a.timerName);GA("yt_pt","html5",a.timerName);c&&!LA("pbs",a.timerName)&&
a.tick("pbs",c);c=a.w;!g.rz(c)&&!Ny(c)&&LA("_start",a.timerName)&&PA(a.timerName)}};
DI=function(){g.A.call(this);this.w={};this.o={};this.u=new g.I(this.A,250,this);g.B(this,this.u)};
FI=function(a,b,c,d){a.w[b]=c;a.o[b]=new EI(void 0===d?!1:d)};
GI=function(a,b){if(a.o[b]){var c=a.o[b].buffer;for(var d=[];c.u!==c.o;)c.u=(c.u+1)%c.data.length,d.push(c.data[c.u]);c=d}else c=[];return c};
HI=function(a,b){return a.o[b]?SH(a.o[b].buffer):0};
EI=function(a){this.u=a;this.o=NaN;this.buffer=new RH(100)};
dka=function(a,b,c){var d,e,f,k,l,m;return g.Ba(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"HMAC",hash:{name:"SHA-256"}},f=["sign"],g.ta(n,d.importKey("raw",a,e,!1,f),2);if(3!=n.o)return k=n.u,l=new Uint8Array(b.length+c.length),l.set(b),l.set(c,b.length),g.ta(n,d.sign("HMAC",k,l),3);m=n.u;return n["return"](new Uint8Array(m))})};
II=function(a,b,c){var d,e,f,k,l,m;return g.Ba(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"AES-CTR"},f=["encrypt"],g.ta(n,d.importKey("raw",a,e,!1,f),2);if(3!=n.o)return k=n.u,l={name:"AES-CTR",counter:c,length:128},g.ta(n,d.encrypt(l,k,b),3);m=n.u;return n["return"](new Uint8Array(m))})};
JI=function(a){this.o=a;a=new Uint8Array(16);window.crypto.getRandomValues(a);this.u=a};
eka=function(a,b){return g.Ba(function(c){return c["return"](dka(a.o.u,b,a.u))})};
KI=function(){this.o=0;this.w=void 0;this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
LI=function(a,b){var c=a.o+b;if(!(a.u.length>=c)){for(var d=2*a.u.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.u);a.u=c;a.view=new DataView(a.u.buffer)}};
MI=function(a,b){if(268435455<b){LI(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.o,c&127|128),c>>=7,a.o+=1;b=Math.floor(b/268435456)}for(LI(a,4);127<b;)a.view.setUint8(a.o,b&127|128),b>>=7,a.o+=1;a.view.setUint8(a.o,b);a.o+=1};
NI=function(a,b,c){MI(a,b<<3|2);b=c.length;MI(a,b);LI(a,b);a.u.set(c,a.o);a.o+=b};
OI=function(a,b,c){a.w||(a.w=new TextEncoder);c=a.w.encode(c);NI(a,b,c)};
PI=function(a){return new Uint8Array(a.u.buffer,0,a.o)};
QI=function(a){var b=a.gl,c=a.deviceId,d=a.userAgent,e=a.clientName,f=a.clientVersion;this.u=a.hl;this.C=b;this.B=c;this.F=d;this.w=e;this.A=f};
RI=function(a){var b=a.encryptedClientKey,c=a.iv,d=a.hmac;this.w=a.encryptedOnesiePlayerRequest;this.u=b;this.B=c;this.A=d};
SI=function(){};
TI=function(a){this.u=a.client};
UI=function(a){this.u=a;this.A=this.o=0;this.w=-1};
VI=function(a){var b=uw(a.u,a.o);++a.o;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=uw(a.u,a.o),++a.o,d*=128,c+=(b&127)*d;return c};
WI=function(a,b){for(a.A=b;a.o+1<=a.u.totalLength;){var c=a.w;0>c&&(c=VI(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.w=c;break}switch(e){case 0:VI(a);break;case 1:a.o+=8;break;case 2:c=VI(a);a.o+=c;break;case 5:a.o+=4}}return!1};
XI=function(a,b){var c=void 0===c?null:c;if(!WI(a,b))return c;c=VI(a);var d=rw(a.u,a.o,c);a.o+=c;return d};
fka=function(a){this.iv=XI(new UI(a),5)};
gka=function(a){a=new UI(a);var b=-1;b=void 0===b?0:b;this.o=WI(a,1)?VI(a):b;0===this.o&&(a=XI(a,4),this.u=new fka(new kw([a])))};
YI=function(a){var b=a.videoId;this.u=a.YF;this.w=b};
ZI=function(a){var b=a.httpHeaders,c=a.postBody;this.w=a.url;this.u=b;this.A=c};
hka=function(a){this.body=XI(new UI(a),4)};
$I=function(a){this.u=a.BE};
aJ=function(a,b){if(b+1<=a.totalLength){var c=uw(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)c=uw(a,b++);else if(2===c){c=uw(a,b++);var d=uw(a,b++);c=(c&63)+64*d}else if(3===c){c=uw(a,b++);d=uw(a,b++);var e=uw(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=uw(a,b++);d=uw(a,b++);e=uw(a,b++);var f=uw(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),ow(a,c,4)?c=pw(a).getUint32(c-a.w,!0):(d=uw(a,c+2)+256*uw(a,c+3),c=uw(a,c)+256*(uw(a,
c+1)+256*d)),b+=5;return[c,b]};
bJ=function(a){this.o=new kw;this.u=a};
cJ=function(a){var b=g.q(aJ(a.o,0));var c=b.next().value;var d=b.next().value;d=g.q(aJ(a.o,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.o.totalLength&&(d=a.o.split(d).ij.split(b),b=d.mo,d=d.ij,a.u(c,b),a.o=d,cJ(a))};
ika=function(a){var b,c;a:{var d,e=a.N().Jc;if(e){var f=null===(c=g.Es("yt-player-bandaid-host"))||void 0===c?void 0:c.WN;if(f&&e.baseUrl){c=new Xw("https://"+f+e.baseUrl);if(e=null===(d=a.tp)||void 0===d?void 0:d.urlQueryOverride)for(d=dx(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=ey(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");
if(!d){c=void 0;break a}c.set("id",d)}break a}}c=void 0}!c&&(null===(b=a.tp)||void 0===b?0:b.url)&&(c=new Xw(a.tp.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.jc()};
dJ=function(a,b){var c=this;this.T=a;this.u=b;this.A=new JI(a.N().Jc.o);this.P=new bJ(function(d,e){switch(d){case 10:var f=new gka(e);switch(f.o){case 5:c.u.tick("orfb");break;case 0:c.G=f.u.iv}c.F=f.o;break;case 11:switch(c.F){case 0:jka(c,e)}c.F=null}});
this.w=new WC;this.C=!1;this.B=new g.I(this.I,3E4,this)};
eJ=function(a,b){a.w.reject(b);a.B.stop();a.u.tick("ore");a.o&&a.o.abort()};
fJ=function(a){for(;a.o.Te();){var b=a.o.Ro();a.P.feed(b)}};
jka=function(a,b){var c,d,e,f;g.Ba(function(k){if(1==k.o)return a.u.tick("orpr"),a.C=!0,c=rw(b),g.ta(k,a.A.decrypt(c,a.G),2);d=k.u;e=new hka(new kw([d]));f=e.body;a.Da=(new TextDecoder).decode(f);a.u.tick("oprr");a.w.resolve(a.Da);a.B.stop();k.o=0})};
lka=function(a){var b,c;return g.Ba(function(d){if(1==d.o)return g.ta(d,kka(a),2);b=d.u;c={BE:b};return d["return"](new $I(c))})};
kka=function(a){var b,c,d,e,f;return g.Ba(function(k){if(1==k.o)return g.ta(k,mka(a),2);if(3!=k.o)return b=k.u,c=a.A.o.encryptedClientKey,d=a.A.u,g.ta(k,eka(a.A,b),3);e=k.u;f={encryptedOnesiePlayerRequest:b,encryptedClientKey:c,iv:d,hmac:e};return k["return"](new RI(f))})};
mka=function(a){var b,c,d;return g.Ba(function(e){switch(e.o){case 1:var f=a.T.N().vg;f="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player?key="+f.innertubeApiKey;var k=[];k.push(new SI);var l=a.T.N().vg,m=l.Hl,n=l.Gl,p=g.Ic;switch(l.Mj){case "TVHTML5":var t=7;break;default:t=56}b=new ZI({url:f,httpHeaders:k,postBody:new YI({YF:new TI({client:new QI({hl:m,gl:n,deviceId:"Rory",userAgent:p,clientName:t,clientVersion:l.innertubeContextClientVersion})}),videoId:a.T.videoId})});
e.B=2;return g.ta(e,a.A.encrypt(b.o()),4);case 4:c=e.u;ua(e,3);break;case 2:return va(e),d=new Os("onesie.request.encrypt",!1),e["return"](Promise.reject(d));case 3:return e["return"](c)}})};
rka=function(a,b,c,d){a.ea();a.wc=!0;return nka(a.N())?oka(a).then(function(){return pka(a,d)}).then(function(){qka(a)})["catch"](function(e){e=Qs(e);
if(e.o)return Promise.reject(e);c(e);return gJ(a,b,c)}):gJ(a,b,c)};
nka=function(a){return g.P(a.experiments,"html5_onesie")&&g.P(a.experiments,"html5_onesie_player_config")&&"yt"===a.V?!0:!1};
oka=function(a){a=a.N().Jc;if(!a||!a.o)return Promise.reject(new Os("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};window.fetch||(a.fetch="0");window.TextEncoder&&window.TextDecoder||(a.text="0");window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey||(a.crypto="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new Os("html5.missingapi",!1,a))):Promise.resolve()};
pka=function(a,b){return mh(this,function d(){var e,f,k,l,m;return Aa(d,function(n){if(1==n.o)return e=new dJ(a,b),g.ta(n,e.fetch(),2);f=n.u;k={player_response:f};a.wc=!1;a.Kd(k,!0);if(EB(a))return n["return"](Promise.resolve());l={};a.errorCode?(l.ec=a.errorCode,l.ed=a.errorDetail,l.es=a.dh||""):l.successButUnplayable="1";m=new Os("onesie.response",!1,l);return n["return"](Promise.reject(m))})})};
gJ=function(a,b,c){return mh(this,function e(){var f,k,l,m,n,p,t,u,z;return Aa(e,function(C){switch(C.o){case 1:f=function(){return!0},k=function(D){D=Qs(D);
if(D.o)return Promise.reject(D);c(D);return!1},m=(l=a.isAd())?1:3,n=0;
case 2:if(!(n<m)){C.o=4;break}p=b;if(!(0<n)){C.o=5;break}return g.ta(C,Vf(5E3),6);case 6:t={playerretry:n},l||(t.recover="embedded"),p=pq(b,t);case 5:return g.ta(C,ska(a,p).then(f,k),7);case 7:if(u=C.u)return C["return"]();n++;C.o=2;break;case 4:z=l?"auth":"manifest.net.retryexhausted";if(!l&&1E-4>Math.random())try{g.Uq(new Sq("b/152131571",btoa(b)))}catch(D){}return C["return"](Promise.reject(new Os(z,!0,{backend:"gvi"})))}})})};
ska=function(a,b){return mh(this,function d(){var e,f,k,l,m,n,p,t,u,z,C,D;return Aa(d,function(E){if(1==E.o)return e=a.N(),f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},k={},e.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.At(e.experiments,"debug_dapper_trace_id"))&&(k["X-Google-DapperTraceInfo"]=l),(m=g.At(e.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=m),0<Object.keys(k).length&&(f.headers=k),n=(0,g.N)(),p=function(F){if(!a.ea()){F=
F?F.status:-1;var G=400===F||429===F,fa=((0,g.N)()-n).toFixed();fa={backend:"gvi",rc:""+F,rt:fa};var oa="manifest.net.connect";429===F?oa="auth":200<F&&(oa="manifest.net.badstatus");return Promise.reject(new Os(oa,G,fa))}},t=function(F){return p(F.Ji)},g.ta(E,g.Kx(g.hr,b,f).then(void 0,t),2);
u=E.u;if(!u||!u.responseText)return E["return"](p(u));a.wc=!1;z=g.kq(u.responseText);a.Kd(z,!0);if(a.errorCode)return C={ec:a.errorCode,ed:a.errorDetail,es:a.dh||""},E["return"](Promise.reject(new Os("auth",!0,C)));if(!a.wc&&!EB(a))return D=a.isAd()?"auth":"manifest.net.retryexhausted",E["return"](Promise.reject(new Os(D,!0,{successButUnplayable:"1"})));E.o=0})})};
qka=function(a){var b=new g.Qq(a.N().vg),c=g.ep(b);c.videoId=a.videoId;g.gp(b,"next",c,{onSuccess:function(d){a.Kd({raw_watch_next_response:d},!1)},
onError:function(){}})};
tka=function(a,b,c,d){function e(){HA("virc",void 0,void 0);OA("virc")}
HA("vir",void 0,void 0);OA("vir");a=rka(a,b,c,d);a.then(e,e);return a};
kJ=function(a,b,c,d,e,f,k){g.O.call(this);var l=this;this.A=a;this.Ia=new gia;this.I=c;this.Rb=d;this.Vf=f;this.M=k;this.R=new oF((0,g.x)(this.getCurrentTime,this),(0,g.x)(this.getPlaybackRate,this),(0,g.x)(this.getPlayerState,this),function(m,n){m!=g.lC("endcr")||g.V(l.u,32)||hJ(l);e(m,n,l.Ka)});
g.B(this,this.R);this.F=null;this.Aa=new xG;this.ba=null;this.U=new JG(a,this.Rb);g.B(this,this.U);this.U.subscribe("ctmp",this.Ra,this);this.Hc=!0;this.G=this.w=null;this.V=[];this.Z=new AI;this.P=this.za=null;this.aa=new AI;this.Qa=null;this.Wf=this.ma=!1;this.Xb=NaN;this.rd=new g.I(this.qN,500,this);g.B(this,this.rd);this.u=new g.HC;this.Yb=[];this.Ka=b;this.Ca=new g.Gr;g.B(this,this.Ca);this.T=new g.aB(a);iJ(this,function(){return{}});
this.o=null;this.oa=new g.I((0,g.x)(this.qL,this),15E3);g.B(this,this.oa);a=g.Q(this.A.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.qd=new g.I((0,g.x)(this.iN,this),a);g.B(this,this.qd);this.Qg=0;this.od=this.Ma=!1;this.ga=NaN;this.wa=!1;this.Ea=0;this.pc=new g.I(this.Au,4500,this);g.B(this,this.pc);this.Ic=this.Ta=!1;this.Wa=NaN;this.ha=new DI;g.B(this,this.ha);FI(this.ha,"bufferhealth",function(){var m=l.C;return m.o?yC(m.o):0});
FI(this.ha,"bandwidth",(0,g.x)(this.TE,this));FI(this.ha,"networkactivity",(0,g.x)(this.bF,this),!0);FI(this.ha,"livelatency",(0,g.x)(this.xx,this));FI(this.ha,"rawlivelatency",(0,g.x)(this.Bx,this));this.ha.start();this.pd=!1;this.qc=!0;this.nb=NaN;this.Kc=this.Yh=!1;this.yb=1;this.rb=(0,g.x)(this.SG,this);cI(this.rb);this.M.subscribe("visibilitystatechange",this.rb);this.Xf=this.qe=this.pe=0;uka(this);g.B(this,this.C);this.da=null;this.Md=!1;this.Tc=[];this.Jc=this.Yf=0;this.Uc=this.Rg=!1;this.ac=
new g.I(function(){g.jJ(l,"ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.u.o.toString(16))});
g.B(this,this.ac);this.Mc=null};
uJ=function(a,b,c,d){d=void 0===d?!0:d;a.V.length=0;a.za=null;a.Z.reset();a.aa.reset();a.Ma=!1;a.nb=NaN;a.Hc=!0;a.Qa=null;a.o&&a.o.stopVideo();lJ(a);mJ(a);nJ(a);g.Wp(a.ga);a.ha.clear();g.He(a.T);if(2==a.Ka||a.A.jn)b.oy=!0;var e=a.A.u;var f=a.A.w,k;(k=b.xm)||(k=(k=b.av)&&oJ.hasOwnProperty(k)&&pJ.hasOwnProperty(k)?pJ[k]+"_"+oJ[k]:void 0);if(k){var l=k.match(qJ);if(l&&5===l.length){if(l=k.match(qJ)){var m=Number(l[3]),n=[7,8,10,5,6];l=!(1===Number(l[1])&&8===m)&&0<=n.indexOf(m)}else l=!1;e=e||f||l?k:
null}else e=null}else e=null;e&&(b.adFormat=e);2==a.Ka&&(b.Lh=!0);if(a.M.isFullscreen()||a.A.u)e=g.Es("yt-player-autonavstate"),b.autonavState=e||(a.A.u?2:a.T.autonavState);a.qc=d;a.T=b;a.T.subscribe("dataupdated",a.AN,a);a.T.subscribe("dataloaded",a.jr,a);a.T.subscribe("dataloaderror",a.Ki,a);rJ(a,b);iJ(a,c);a.wa=!1;a.Ea=0;sJ(a,"newdata");tJ(a,new g.HC);c=a.C;d=a.T;qI(c);c.T=d;c.u=null;c.I=null;c.A=0;c.oa=0;c.F=0;c.ha=!0;c.P.dispose();c.P=new iI(c.U,(0,g.x)(c.S,c),c.Ca);FB(b)&&(b=a.T.errorDetail,
c=a.T.kl,g.jJ(a,"auth",unescape(c.reason),b,b,c.subreason||void 0))};
iJ=function(a,b){!a.B||a.B.ea();var c=new UG(a.T,a.A,b,(0,g.x)(a.getDuration,a),(0,g.x)(a.getCurrentTime,a),(0,g.x)(a.eF,a),(0,g.x)(a.Rb.getPlayerSize,a.Rb),(0,g.x)(a.getAudioTrack,a),(0,g.x)(a.getPlaybackRate,a),(0,g.x)(a.Ur,a),a.Vf,(0,g.x)(a.rF,a),function(){return a.I.tick("qoes")});
a.B=new OH(c)};
mJ=function(a){var b=a.B;b.w&&b.w.C();if(b.u){var c=b.u;if(!c.ea()&&c.w){c.B="paused";var d=IH(c);d.isFinal=!0;d.send();g.Jo(c.A);c.dispose()}}b.o&&(c=b.o,c.o.fa("html5_stopVideo_ping_block_killswitch")||c.I)&&("PL"==c.w&&(c.w="N"),d=g.WG(c.o),g.gH(c,d,"vps",[c.w]),c.o.fa("html5_qoe_user_intent_match_health")&&!c.A&&(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.A=!0),c.uk(d));b.dispose();g.He(a.B)};
vJ=function(a){return a.o&&a.o.Ch()?a.o.ua():null};
wJ=function(a){if(a.T.isValid())return!0;g.jJ(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
zJ=function(a,b){a.ma=void 0===b?!1:b;if(!wJ(a)||a.Z.started)xJ(a)&&a.Z.started&&!a.Z.isFinished()&&!a.ma&&a.jr();else{a.Z.start();var c=a.B;g.WG(c.A);if(c.o){c=c.o;c.o.videoData.wm&&pH(c,c.o.videoData.wm);c.o.videoData.Zi?pH(c,"prefetch"):c.o.fa("html5_qoe_user_intent_match_health")||(c.u.user_intent=["0"],c.A=!0);c.o.videoData.Jf&&iH(c,"reload","r."+c.o.videoData.reloadReason+";ct."+c.o.videoData.Jf);c.o.videoData.wg&&pH(c,"monitor");c.o.videoData.va&&pH(c,"live");c.o.videoData.Kf&&iH(c,"ctrl",
c.o.videoData.Kf,!0);if(c.o.videoData.Lf){var d=c.o.videoData.Lf.replace(/,/g,"_");iH(c,"ytp",d,!0)}c.o.videoData.QB&&(d=c.o.videoData.QB.replace(/,/g,"."),iH(c,"ytrexp",d,!0));if(!g.P(c.o.o.experiments,"html5_disable_gpu_reporting")){var e=c.o.o.experiments;d=c.o.videoData;e=g.P(e,"enable_white_noise")||g.P(e,"enable_webgl_noop")||g.P(e,"enable_gpu_logging");var f=d.Oj()||d.yg()||d.zg()||d.tg(),k=d.xa&&"1"==g.Va(d.xa.videoInfos).u&&/^g/.test(d.clientPlaybackNonce);d=/^gp/.test(d.clientPlaybackNonce);
(e||f||d||k)&&(d=(0,g.yJ)())&&(c.u.gpu=[d])}c.ma=Io((0,g.x)(c.uk,c),1E4)}a.jr()}};
xJ=function(a){return g.P(a.A.experiments,"tvhtml5_disable_live_prefetch")&&g.$y(a.A)&&a.T.va};
vka=function(a){var b=a.T,c=g.BH(a.A,a.T,a.Rb.getPlayerSize(),a.Vf(),a.M.isFullscreen(),window.location.search);tka(a.T,c,function(d){return a.Ki(d)},a.I).then(void 0,function(d){a.T!=b||b.ea()||(d=Qs(d),"auth"==d.errorCode&&a.T.errorDetail?g.jJ(a,"auth",unescape(a.T.errorReason),Ps(d.details),a.T.errorDetail,a.T.dh||void 0):a.Ki(d))})};
wka=function(a,b){a.w?a.w.Ma=new YF(b):a.Mc=b};
yka=function(a){g.V(a.u,128)||(a.T.Hb(),a.qc=!0,4!=a.Ka&&(a.V=g.gb(a.T.Rc)),DB(a.T)?(AJ(a).then(function(){a.ea()||(a.ma&&BJ(a),rJ(a,a.T),a.Z.o=!0,sJ(a,"dataloaded"),a.aa.started?CJ(a):a.ma&&tJ(a,KC(KC(a.u,512),1)),Lja(a.U,a.P))}),a.Ra("loudness",""+a.T.Am.toFixed(3),!0),xka(a)):sJ(a,"dataloaded"))};
AJ=function(a){nJ(a);a.P=null;var b=Ija(a.A,a.T,a.M.u);a.za=b;a.za.then((0,g.x)(a.hM,a),(0,g.x)(a.iM,a));return b};
DJ=function(a){a.o&&a.o.ak();zJ(a);wJ(a)&&!g.V(a.u,128)&&(a.aa.started||(a.aa.start(),tJ(a,KC(KC(a.u,8),1))),CJ(a))};
CJ=function(a){a.ea();if(!a.aa.isFinished()&&a.Z.isFinished()&&!g.V(a.u,128)&&!a.V.length){if(!a.R.started){var b=a.R;b.started=!0;b.u()}if(!EJ(a)){a.w&&(b=a.w.da,a.Wf=!!b.o&&!!b.A);a.aa.isFinished()||(a.aa.o=!0);!a.T.va||0<a.T.ph&&!qB(a.T)||(a.seekTo(Infinity),FJ(a,"readying"),a.M.isBackground()&&(a.od=!0));b=a.B;if(b.u){var c=b.u;c.o.videoData.ll&&c.o.videoData.Jn&&(c.F("connected"),MH(c))}b.o&&(b=b.o,b.o.videoData.va&&(c=b.o.videoData.ia,qB(b.o.videoData)&&pH(b,"manifestless"),c&&by(c)&&pH(b,"live-segment-"+
by(c).toFixed(1))));a.S("playbackready",a);LA("pbr",a.I.timerName)||(a.I.tick("pbr"),OA("pbr"))}}};
hJ=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.o&&a.o.pause();b=b?new g.HC(14):new g.HC;tJ(a,b)};
rJ=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.ba&&(a.removeCueRange(a.ba),a.ba=null);a.ba=new g.iC(1E3*c,0x7ffffffffffff);a.ba.namespace="endcr";a.addCueRange(a.ba)}};
IJ=function(a,b,c,d){a.T.Ba=c;d&&GJ(a,b,d);var e=(d=g.HJ(a))?ct(d):"";d=a.B;e=new IG(a.T,c,b,e);if(d.o){c=d.o;d=g.WG(c.o);g.gH(c,d,"vfs",[e.o.id,e.u,c.Ea,e.reason]);c.Ea=e.o.id;e=c.o.G();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.iz();1<f&&e.push(f);g.gH(c,d,"view",e)}c.Z||(c.o.videoData.xg&&pH(c,"rqs"),c.o.videoData.ia&&Ox(c.o.videoData.ia)&&(c.u.preload=["1"]));c.Z=!0;c.I=!0;g.gH(c,d,"vps",[c.w]);c.uk(d)}c=a.U;c.A=0;c.u=0;a.S("internalvideoformatchange",a.T,"m"==
b)};
g.HJ=function(a){var b=JJ(a);return Cu(b)||!a.P?null:g.Xa(a.P.xa.videoInfos,(0,g.x)(b.A,b))};
GJ=function(a,b,c){if(c!=a.T.Vb){var d=!a.T.Vb;a.T.Vb=c;"m"!=b&&(b=d?"i":"a");var e=a.B;c=new IG(a.T,c,b,"");if(e.o){e=e.o;var f=g.WG(e.o);c.o.id!=e.ba&&(g.gH(e,f,"afs",[c.o.id,e.ba,c.reason]),e.ba=c.o.id)}d||a.S("internalaudioformatchange",a.T,"m"==b)}};
g.jJ=function(a,b,c,d,e,f){var k,l;g.Jb(zka,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+parseInt(g.L("DCLKSTAT",0),10));b={errorCode:b,errorDetail:e,errorMessage:l||g.KJ[k]||"",Ar:k,dh:f||"",LB:d};sJ(a,"dataloaderror");tJ(a,JC(a.u,128,b));g.Wp(a.ga);nJ(a);g.LJ(a)};
MJ=function(a,b){a.V=a.V.filter(function(c){return b!=c});
a.aa.started&&CJ(a)};
EJ=function(a){var b;(b=!!a.V.length)||(a=a.R.o.o[0],b=!!a&&-0x8000000000000>=a.start);return b};
PJ=function(a,b){if(a.o&&b.ua()==a.o.ua()&&(b.isView()||a.o.isView())){if(b.isView()||!a.o.isView())g.Ir(a.Ca),a.o=b,NJ(a),rI(a.C,a.o)}else{a.o&&OJ(a);if(!a.u.isError()){var c=LC(a.u,512);g.V(c,8)&&!g.V(c,2)&&(c=KC(c,1));b.isView()&&(c=LC(c,64));tJ(a,c)}a.o=b;a.o.setLoop(a.Kc);a.o.setPlaybackRate(a.yb);NJ(a);rI(a.C,a.o)}};
OJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.o){var d=a.getCurrentTime();0<d&&(a.C.F=d);rI(a.C,null);QJ(a);a.w&&(a.w.aa.Ua(),RJ(a,c));a.oa.stop();if(a.o){!a.aa.started||a.u.isError()||g.V(a.u,2)||tJ(a,KC(a.u,512));g.Ir(a.Ca);if(b||!a.o.isView())a.o.stopVideo(),lJ(a);a.o=null}}};
TJ=function(a){if(!a.P)return[];var b=LG(a.U,a.P,SJ(a,!0));b=b||Du;a=(0,g.ue)(a.P.xa.videoInfos,(0,g.x)(b.A,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].ya();c[e.quality]||(b.push(e),c[e.quality]=!0)}return b};
JJ=function(a){if(a.P){var b=a.U;var c=a.P,d=SJ(a);a=a.M.isBackground();var e=gy(g.Q(b.o.experiments,"html5_sticky_duration_cap_secs"));e=Bu("auto",e,!1,"s");var f=g.P(b.o.experiments,"html5_break_sticky")&&/^i/.test(c.videoData.clientPlaybackNonce);if(Cu(e)||f){e=Eu(KG(b,c),NG(b,c));f=0;!b.o.o||g.Ry(b.o)||ml()||g.P(b.o.experiments,"mweb_uniplayer_auto_quality")||g.P(b.o.experiments,"hls_for_vod")||(f=g.Xs.medium);var k=g.Q(b.o.experiments,"html5_default_quality_cap");if(k){var l=!!c.xa.o;!OG(b,"html5_quality_cap_include_cast")&&
c.videoData.Kf&&(l=!1);!OG(b,"html5_quality_cap_include_drm")&&c.videoData.zc&&(l=!1);var m=g.Q(b.o.experiments,"html5_quality_cap_min_age_secs");l&&m&&(l=b.o.schedule.C,l=(0,g.N)()-l>1E3*m);l&&(f=f?Math.min(f,k):k)}(k=g.Q(b.o.experiments,"html5_autoplay_default_quality_cap"))&&OB(c.videoData)&&(f=f?Math.min(f,k):k);k=g.Q(b.o.experiments,"html5_random_playback_cap");m=/[a-h]$/;k&&m.test(c.videoData.clientPlaybackNonce)&&(f=f?Math.min(f,k):k);if(m=k=g.Q(b.o.experiments,"html5_hfr_quality_cap"))a:{m=
c.xa;if(m.o)for(m=g.q(m.videoInfos),l=m.next();!l.done;l=m.next())if(32<l.value.ya().fps){m=!0;break a}m=!1}m&&(f=f?Math.min(f,k):k);(k=g.Q(b.o.experiments,"html5_live_quality_cap"))&&c.videoData.va&&(f=f?Math.min(f,k):k);f=new zu(0,f,!1,"d");e=Eu(e,f);f=g.Q(b.o.experiments,"html5_background_quality_cap");k=g.Q(b.o.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!=gy()||bq()/1E3<k?Du:a?new zu(0,f,!1,"v"):Du;a=Eu(e,a);e=(e=g.Q(b.o.experiments,"html5_autonav_quality_cap"))&&c.videoData.Pj?
new zu(0,e,!1,"e"):Du;a=Eu(Eu(Eu(a,e),SG(b,c)),c.videoData.OC);e=new zu(0,0,!1,"o");1<b.G&&(e=new zu(0,480,!0,"o"));e=Eu(a,e)}g.P(b.o.experiments,"html5_ignore_sticky_for_medcap")&&(e=Eu(e,NG(b,c)));b=Eu(Eu(Eu(c.videoData.gq,e),c.videoData.mw),d)}else b=Du;return b};
SJ=function(a,b){if(a.F){var c=a.F;var d=void 0===b?!1:b;d=void 0===d?!1:d;c=!g.P(c.u.experiments,"html5_drm_entitled_qualitycap_on_edge_killswitch")&&d&&c.U?c.U:c.G}else c=a.T.lo()&&a.T.ia&&Nx(a.T.ia)?(g.P(a.A.experiments,"html5_drm_initial_constraint_from_config")?a.T.jl:g.P(a.A.experiments,"html5_drm_start_from_null_constraint"))?Du:zG:Du;a.Uc&&(c=Eu(c,UJ));return c};
WJ=function(a){if(!a.ea()&&!g.V(a.u,128)&&a.T.xa){if(a.T.xa.o)VJ(a);else{var b=JJ(a),c=a.T;a:{var d=a.T.Gg;if(b.o){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.ge(),l=g.Xs[k.ya().quality];if((!b.w||"auto"!=k.ya().quality)&&l<=b.o){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.me=d;IJ(a,b.reason,a.T.me.ge())}a.u.eb()&&(a.C.ha=!1,a.playVideo())}};
VJ=function(a){if(a.T.xa&&a.T.xa.o){var b=JJ(a),c=a.T.Ba;if(c&&"1"==c.u){var d=uz(a.A);if(d&&d<c.ya().fc){AJ(a);return}}if(a.w&&(a=a.w,!a.ea()&&!Au(a.F.A,b)&&a.u)){var e=a.F.A;MF(a,Mia(a.F,b));zF(a);c=bF(a.F)&&"m"==b.reason&&a.F.M;d=a.o.Yb&&"l"==b.reason&&BE(a.u);b=("b"==b.reason||"o"==b.reason)&&e.o>b.o;c||d||b?a.S("reattachrequired"):(CE(a.u)&&IF(a,a.u,a.A),a.aa.Ua())}}};
YJ=function(a){XJ(a,"html5_nonblocking_media_capabilities")?VJ(a):WJ(a)};
$J=function(a){Dga(a.T.ia,{cpn:a.T.clientPlaybackNonce,c:a.A.deviceParams.c,cver:a.A.deviceParams.cver});var b=a.A,c=a.T,d=new g.Iw,e=Hw(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Jj:c.Jj});d.A=e;d.Wf=b.fa("html5_unify_sqless_flow");d.R=b.fa("html5_accurate_seeking_redux");d.yb=b.fa("html5_unrewrite_timestamps");d.Wa=b.fa("html5_stop_overlapping_requests");d.Ea=g.Q(b.experiments,"html5_min_readbehind_secs");d.Tn=g.Q(b.experiments,"html5_min_readbehind_cap_secs");g.$y(b)&&(d.Ea=g.Q(b.experiments,
"tvhtml5_min_readbehind_secs"));d.Qg=b.fa("html5_append_init_while_paused");d.Kc=g.Q(b.experiments,"html5_max_readahead_bandwidth_cap");d.od=g.Q(b.experiments,"html5_post_interrupt_readahead");d.M=g.Q(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.rb=g.Q(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Dv=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.nb=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.Ev=
g.Q(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Vf=g.Q(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Fv=g.Q(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Ka=b.fa("html5_peak_shave");d.aA=b.fa("html5_peak_shave_always_include_sd");d.ov=b.fa("html5_restrict_streaming_xhr_on_sqless_requests");d.Hn=g.Q(b.experiments,"html5_max_headm_for_streaming_xhr");d.fA=b.fa("html5_pipeline_manifestless_allow_nonstreaming");d.pC=b.fa("html5_prefer_server_bwe3");
d.Yf=1024*g.Q(b.experiments,"html5_video_tbd_min_kb");d.BC=b.fa("html5_probe_live_using_range");d.gn=b.fa("html5_last_slice_transition");d.Bv=b.fa("html5_store_xhr_headers_readable");d.cn=b.fa("html5_enable_packet_train_response_rate");if(e=g.Q(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.qd=e,d.Gv=1;d.Ma=g.Q(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ma;d.Tc=b.fa("html5_no_placeholder_rollbacks");d.Cv=b.fa("html5_subsegment_readahead_enable_mffa");b.fa("html5_allow_video_keyframe_without_audio")&&
(d.ha=!0);d.rd=b.fa("html5_reattach_on_stuck");d.Kv=b.fa("html5_webm_init_skipping");d.Md=g.Q(b.experiments,"html5_request_size_padding_secs")||d.Md;d.kn=b.fa("html5_log_timestamp_offset");d.Rb=b.fa("html5_abs_buffer_health");d.fn=b.fa("html5_interruption_resets_seeked_time");d.Jc=g.Q(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Jc;d.pc=b.fa("html5_explicitly_dispose_xhr");d.zo=b.fa("html5_gapless_no_requests_after_lock");d.pd=g.Q(b.experiments,"html5_probe_primary_failure_factor");
d.Av=b.fa("html5_skip_invalid_sq");d.kv=b.fa("html5_restart_on_unexpected_detach");d.jn=b.fa("html5_log_live_discontinuity");d.tv=b.fa("html5_rewrite_manifestless_for_continuity");d.Hc=g.Q(b.experiments,"html5_max_drift_per_track_secs");d.xv=b.fa("html5_rewrite_manifestless_for_sync");d.qe=g.Q(b.experiments,"html5_static_abr_resolution_shelf");d.Pk=!b.fa("html5_encourage_array_coalescing");d.an=b.fa("html5_crypto_period_secs_from_emsg");d.ga=b.fa("html5_defer_slicing");d.Xb=g.Q(b.experiments,"html5_buffer_health_to_defer_slice_processing");
b.fa("html5_media_common_config_killswitch")||(d.B=c.maxReadAheadMediaTimeMs/1E3||d.B,e=b.schedule,e.u.o()===e.policy.w?d.U=10:d.U=c.minReadAheadMediaTimeMs/1E3||d.U,d.ac=c.readAheadGrowthRateMs/1E3||d.ac);uh&&(d.V=41943040);d.da=!bu();g.$y(b)||!bu()?(e=b.experiments,d.C=8388608,d.G=524288,d.Yh=5,d.za=2097152,d.ba=1048576,d.WC=1.5,d.sy=!1,d.I=4587520,il()&&(d.I=786432),d.o*=1.1,d.u*=1.1,d.Ta=!0,d.V=d.C,d.Aa=d.G,d.Uc=g.P(e,"persist_disable_player_preload_on_tv")||g.P(e,"persist_disable_player_preload_on_tv_for_living_room")||
!1):b.o&&(d.o*=1.3,d.u*=1.3);g.Dt&&dl("crkey")&&(e="CHROMECAST/ANCHOVY"==b.deviceParams.cmodel,d.C=20971520,d.G=1572864,e&&(d.I=812500,d.P=1E3,d.Jv=5,d.ba=2097152));!b.fa("html5_disable_firefox_init_skipping")&&g.hu&&(d.Ta=!0);b.supportsGaplessAudio()||(d.bn=!1);Jy&&(d.Mh=!0);if(qB(c)){d.en=!0;d.zv=!0;if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.fa("html5_disable_low_pipeline"))d.nn=2,d.Nn=4;d.gg=c.defraggedFromSubfragments;c.Mb&&(d.Qa=!0);g.GB(c)&&(d.R=!1);d.Qk=g.lz(b)}c.isAd()&&(d.Ca=
0,d.qc=0);sB(c)&&(d.aa=!0);d.ma=b.fa("html5_enable_subsegment_readahead_v3")||b.fa("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.oa=c.xg;d.hn=d.oa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||SB(c));pl()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.fa("html5_disable_move_pssh_to_moov")&&Nx(c.ia)&&(d.Ta=!1);Nx(c.ia)&&(d.rd=!1);if(c.va){e=by(c.ia);var f=g.Q(b.experiments,"html5_live_abr_head_miss_fraction"),k=g.Q(b.experiments,"html5_live_abr_repredict_fraction");
f&&e&&(d.Ic=Math.min(e*f,d.Ic));k&&e&&(d.P=Math.min(1E3*e*k,d.P))}f=0;b.fa("html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.o,c.va&&(f=g.Q(b.experiments,"ULTRALOW"==c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));e=b.schedule;e.P.o=qB(c)?.5:0;if(!e.policy.u&&f&&(e=e.u,f=Math.round(f*e.resolution),f!==e.u)){k=Array(f);var l=Math.min(f,e.A?e.u:
e.valueIndex),m=e.valueIndex-l;0>m&&(m+=e.u);for(var n=0;n<l;++n)k[n]=e.values[(m+n)%e.u];for(;n<f;++n)k[n]=Infinity;e.u=f;e.values=k;e.valueIndex=l%f;e.A=l===f;e.C=!0;e.G=oy(e)}d.Ia=c.va;switch(rB(c)){case 21530001:d.po=b.fa("html5_live_smoothly_extend_max_seekable_time");d.ma=!0;"LOW"==c.latencyClass?d.M=g.Q(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.M=g.Q(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Tc=!0;break;case 2153E4:d.ma=
!1}d.Mh=d.Mh||c.Mh;d.Z=c.Df;SB(c)&&(d.wa=!0);c.Df&&!Nx(c.ia)&&b.fa("html5_hack_gapless_init")&&(d.pe=!0);(e=g.Q(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Df&&c.isAd()&&(d.o*=e,d.u*=e);QB(c)&&(d.w=c.videoId,d.Rb=!0,QB(c)&&c.wr&&(d.F=!0));b.fa("html5_drm_initial_constraint_from_config")?d.Yb=c.jl:d.Yb=b.fa("html5_drm_start_from_null_constraint");c=g.Q(b.experiments,"html5_deadzone_multiplier")||1;(e=g.Q(b.experiments,"html5_sticky_reduces_discount_by"))&&"auto"!=gy()&&(c-=e);d.o*=c;
d.u*=c;if(c=g.Q(b.experiments,"html5_request_sizing_multiplier"))d.eD=c;d.Mc=g.Q(b.experiments,"html5_min_upgrade_health")||d.Mc;fu(b.A,lu)&&(d.I=NaN);b.A.A&&(d.dn="; "+pu.name+"=allowed");"auto"!=gy()&&(d.Xf=0);d.QC=b.fa("html5_rec_2020_matrix_correction_killswitch");c=d.Ia&&!b.fa("html5_pause_appends_killswitch");d.Ia=c||b.fa("html5_never_pause_appends");g.P(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&Jy&&(d.XB=!0);b=b.experiments;g.P(b,"html5_validate_lengthless_slices_killswitch")&&
(d.Iv=!1);g.P(b,"html5_reset_on_append_error_killswitch")&&(d.jv=!0);g.P(b,"html5_audio_only_eos_fix_killswitch")&&(d.Rg=!0);g.P(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.TC=!0);b=a.getAudioTrack();b=b.tb.isDefault?void 0:b;c=a.Aa;c.keys=[];c.values=[];a.w=new yF(a.A.schedule,d,a.T.ia,a.T.xa,JJ(a),b,a.R);a.w.subscribe("needkeyinfo",a.NA,a);a.w.subscribe("newDrmInfo",a.UL,a);a.w.subscribe("videoformatchange",a.PG,a);a.w.subscribe("audioformatchange",a.sL,a);a.w.subscribe("error",
a.Ki,a);a.w.subscribe("ctmp",a.Ra,a);a.w.subscribe("reattachrequired",a.nO,a);a.w.subscribe("metadata",a.FA,a);a.w.subscribe("constraint",a.yN,a);a.w.subscribe("timestamp",a.sG,a);a.w.subscribe("localmediacomplete",a.tL,a);d=ZJ(a)?!0:a.ma&&xJ(a);a.w.initialize(a.getCurrentTime(),JJ(a),d);a.T.probeUrl&&(a.w.ma=a.T.probeUrl);(a.V.length||a.ma)&&RJ(a,!1);tI(a.C,a.w);a.Mc&&(a.w.Ma=new YF(a.Mc))};
uka=function(a){a.C=new pI(a.T,a.A,a.M);a.C.subscribe("seekto",function(b,c){a.C.F=b;var d=a.Ia;d.o=b;d.u=!0;c||aK(a);a.ba&&b>a.T.endSeconds&&isFinite(b)&&(a.removeCueRange(a.ba),a.ba=null);b<bK(a)-.01&&(d=LC(a.u,2),g.V(d,8)&&(d=LC(d,4)),tJ(a,d));a.S("SEEK_TO",a,b)});
a.C.subscribe("seekstart",function(){return cK(a)});
a.C.subscribe("seekend",function(){return a.S("SEEK_COMPLETE")});
a.C.subscribe("newmediaelementrequired",function(){return dK(a)});
a.C.subscribe("ended",function(){return hJ(a)});
a.C.subscribe("ctmp",a.Ra,a);a.C.subscribe("qoeerror",a.dO,a);a.C.subscribe("livereadaheadchanged",function(b){var c=a.B;c.o&&(c=c.o,g.gH(c,g.WG(c.o),"lra",[b]),iH(c,"live-readahead-seconds",b.toString()))})};
nJ=function(a){a.w&&(a.w.dispose(),a.w=null,tI(a.C,null));QJ(a)};
QJ=function(a){if(a.G){if(a.w){var b=qB(a.T)&&a.T.Mb&&!a.T.isAd();DF(a.w,b)}a.G.dispose();a.G=null}};
fK=function(a){if(a.G)return a.G.Sl;XJ(a,"html5_disable_loader_reorder")&&eK(a);Aka(a);return a.G?a.G.Sl:null};
Aka=function(a){if(XJ(a,"html5_application_media_source"))a.S("requestmediasource",a);else{var b=g.Q(a.A.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Qg<b&&a.qd.start();try{var c=a.o.To()}catch(d){if(gK(a,"html5.missingapi",{updateMs:"1"}))return;g.Uq(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
g.jJ(a,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}hK(a,c)}};
hK=function(a,b){XJ(a,"html5_disable_loader_reorder")||eK(a);a.G=b;Gfa(a.G,function(c){try{if(a.G&&(!c||a.G==c)){var d=a.getDuration();!d&&qB(a.T)&&(d=g.Q(a.A.experiments,"html5_manifestless_media_source_duration")||3600);a.G.isView()?(c=d,c>a.G.getDuration()&&Zt(a.G,c)):Zt(a.G,d);var e=a.w,f=a.G;e.U&&(CF(e),e.U=!1);BF(e);if(!$t(f)){var k=e.u.o.info.mimeType+e.o.dn,l=e.A.o.info.mimeType,m=new Ut("fakesb"==l?new Lt:f.w.addSourceBuffer(l),bt(l),!1),n=new Ut("fakesb"==k?new Lt:f.w.addSourceBuffer(k),
bt(k),!0);f.o=m;f.u=n;g.B(f,m);g.B(f,n)}hE(e.u,f.u);hE(e.A,f.o);e.w=f;e.resume();Jr(f.o,e.wa,e);Jr(f.u,e.wa,e);e.o.kn&&1E-4>=Math.random()&&e.Dc("toff",""+f.o.supports(1),!0);e.Hf();a.S("mediasourceattached");a.qd.stop()}}catch(p){g.Uq(p),a.Ki(new Os("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
eK=function(a){a.w?Lf(a.w.seek(a.getCurrentTime()-a.Bb()),function(){}):$J(a)};
Bka=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
iK=function(a){return a.Ta||"yt"!=a.A.V?!1:a.T.se?25>a.T.Jf:!a.T.Jf};
jK=function(a){a.Ta||(a.Ta=!0,a.S("signatureexpired"))};
lK=function(a,b){try{window.location.reload(!0);a.B.onError("qoe.restart",Ps({detail:"pr."+b}));return}catch(c){}XJ(a,"tvhtml5_retire_old_players")&&g.$y(a.A)&&kK(a)};
mK=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
Cka=function(a,b){if(a.o&&("fmt.unplayable"==b.errorCode||"html5.invalidstate"==b.errorCode)){var c=a.o.Ye();b.details.merr=c?c.toString():"0";b.details.msg=a.o.bk()}};
gK=function(a,b,c){var d=g.Q(a.A.experiments,"html5_error_cooldown_in_ms")||3E4;if(a.nb+d>(0,g.H)())return!a.T.se&&(a.A.ga+=1,10<a.A.ga)?(c.exiled=""+a.A.ga,a.B.onError("qoe.start15s",Ps(c)),a.S("playbackstalledatstart"),!0):!1;a.nb=(0,g.H)();d=a.T;d=d.me?d.me.nx()<Date.now()/1E3+1800:!1;c.e=b;a.G&&(c.msopened=""+ +!!a.G.o);d&&(c.staleprog="1");a.B.onError("qoe.restart",Ps(c));if(d&&iK(a))return jK(a),!0;dl("philips")&&kK(a);b=!1;c=a.T.Ba;!XJ(a,"html5_disable_codec_on_platform_errors")&&c&&"1"==c.u?
(a.A.A.disableAv1(),b=!0):a.w?(c=a.w,d=(d=iE(c.u)||c.u.u)?d.o:c.u.o,d.I+=1,$E(c.F,d)):a.T.me&&a.T.me.zu();dK(a,b);return!0};
dK=function(a,b){b=void 0===b?!1:b;return g.Ba(function(c){if(1==c.o)return a.w&&a.w.ea()&&nJ(a),a.S("newelementrequired"),b?c=g.ta(c,AJ(a),2):(c.o=2,c=void 0),c;g.V(a.u,8)&&a.playVideo();c.o=0})};
kK=function(a){if("GAME_CONSOLE"!=a.A.deviceParams.cplatform)try{window.close()}catch(b){}};
g.LJ=function(a,b){b=void 0===b?!1:b;a.o&&(a.o.stopVideo(),lJ(a),nJ(a),g.V(a.u,128)||(b?tJ(a,MC(a.u,4,8)):tJ(a,JC(a.u))),a.A.I.remove(a.T.videoId))};
aK=function(a){g.V(a.u,32)||(tJ(a,KC(a.u,32)),g.V(a.u,8)&&a.pauseVideo(!0),a.S("beginseeking",a));nK(a)};
cK=function(a){g.V(a.u,32)?(tJ(a,MC(a.u,16,32)),a.S("endseeking",a)):XJ(a,"html5_sync_seeking_state")&&!g.V(a.u,2)&&tJ(a,KC(a.u,16))};
oK=function(a){if(a.T.ia)return cy(a.T.ia,a.getCurrentTime()-a.Bb());if((!XJ(a,"html5_disable_limit_ingestion_tvos")||hl())&&a.o){var b=a.o.Vo();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+a.getCurrentTime()}return NaN};
sJ=function(a,b){a.S("internalvideodatachange",void 0===b?"dataupdated":b,a,a.T)};
NJ=function(a){(0,g.y)("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Ca.L(this.o,b,this.QG,this)},a);
a.A.Xf&&a.o.Ch()&&(a.Ca.L(a.o,"webkitplaybacktargetavailabilitychanged",a.cK,a),a.Ca.L(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.dK,a))};
qK=function(a){XJ(a,"html5_enable_timeupdate_timeout")&&!a.T.va&&pK(a)&&a.rd.start()};
pK=function(a){if(!a.o)return!1;var b=a.o.getCurrentTime();a=a.o.getDuration();return!!(1<b&&b>a-.3)};
sK=function(a){window.clearInterval(a.Xb);a.oa.stop();a.T.se=!0;a.A.se=!0;a.A.ga=0;rK(a);g.V(a.u,8)&&tJ(a,LC(a.u,65));var b=a.B;if(b.u){var c=b.u;if(!c.w){g.P(c.o.o.experiments,"disable_embedpage_playback_logging")||16623!=c.o.videoData.Jp||g.Go(Error("Playback for EmbedPage"));var d=GH(c,"playback");c.I=[10+c.o.videoData.Lj,10,10,40+c.o.videoData.Rl-c.o.videoData.Lj,40];var e=c.u;window.clearInterval(e.G);e.G=NaN;e.G=Io((0,g.x)(e.update,e),100);e.F=g.WG(e.u);e.B=ZG(e.u);d.u=FH(c,!0);d.send();c.o.videoData.wp&&
(d=c.o.o,e=c.o.videoData,e={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.wp,oid:e.oB,ptchn:e.nB,pltype:e.pB,content_v:e.ri()},d=g.yd(d.G+"ptracking",e),JH(c,d));c.o.videoData.ll&&(c.F("playback"),c.A||MH(c));c.o.videoData.Me||LH(c);c.w=!0;c=c.u;c.o=c.u.u();c.F=g.WG(c.u);!(0==c.w&&5>c.o)&&2<c.o-c.w&&(c.w=c.o);c.P=!0}}b.w&&(b=b.w,c=g.WG(b.u),0>b.w&&(b.w=c,b.B.start()),b.A=c,b.P=c);a.pc.Ua();a.S("playbackstarted");g.Vp()&&((a=g.w("yt.scheduler.instance.clearPriorityThreshold"))?
a():Xp(0))};
rK=function(a){var b=a.getCurrentTime(),c=a.T;!LA("pbs",a.I.timerName)&&MA.measure&&MA.getEntriesByName&&(MA.getEntriesByName("mark_nr")[0]?NA("mark_nr"):NA());c.videoId&&a.I.info("docid",c.videoId);c.eventId&&a.I.info("ei",c.eventId);c.clientPlaybackNonce&&a.I.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.I.info("start",c.startSeconds.toString());a.o&&a.o.Dh()&&a.I.info("paused",1);c.Ba?a.I.info("fmt",ct(c.Ba)):a.I.info("fmt","-1");c.Zi&&a.I.info("yt_pre",a.Wf?"2":"1");a.M.isFullscreen()&&
a.I.info("yt_fs","1");a.I.info("cmt",b.toFixed(3));if(a.w){b=a.w.da;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.A),c.length&&(c=c[0],b.md("vri",c.fetchStart),b.md("vdns",c.domainLookupEnd),b.md("vreq",c.requestStart),b.md("fvb",c.responseStart),b.md("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.o),c.length&&(c=c[0],b.md("ari",c.fetchStart),b.md("adns",c.domainLookupEnd),b.md("areq",c.requestStart),b.md("avb",c.responseStart),
b.md("arc",c.responseEnd)));b=b.B;for(var d in b)a.I.tick(d,b[d])}};
nK=function(a,b){b=void 0===b?!1:b;if(a.o&&a.T){var c=a.C,d=a.u.eb(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.I&&f){var k=c.I;if(k.o&&!(e>=k.u&&e<k.w)){var l=k.o.Re(e);-1!=l&&(k.u=k.o.gd(l),k.w=k.u+k.o.getDuration(l),l=(0,g.H)()/1E3-k.o.qt(l),l-=k.B(),k.A.add(l))}}c.u&&(f&&(f=c.u,k=c.o?yC(c.o):0,f.B++,3>f.B||(0,g.H)()-f.G<f.o.I||(f.G=(0,g.H)(),f.w.push(k),50<f.w.length&&f.w.shift())),f=c.u,ZH(f,e,void 0===d?!0:d),$H(f,e),d&&mI(c,!0));c=a.getCurrentTime();!a.w||g.V(a.u,4)&&g.GB(a.T)||(d=a.w,e=
c,d.w&&d.w.u&&(e-=!isNaN(d.Z)&&d.o.yb?d.Z:0,d.C!=e&&d.resume(),d.I.w&&!au(d.w)&&(f=d.C<=e&&e<d.C+10,k=Pt(d.w.u.ud(),d.C+LF),f&&k&&(d.I.w=!1)),d.I.w||(d.C=e),d.Ia.Ua()));5<c&&(a.C.F=c);(d=g.Vp())?g.Wp(a.ga):g.Jo(a.ga);!g.QC(a.u)&&a.o.Dh()||g.V(a.u,128)||(e=(0,g.x)(a.BF,a),0==a.o.Dj().length?a.ga=d?g.Tp(e,100):g.Ho(e,100):a.ga=d?g.Tp(e,500):g.Ho(e,500));a.T.ah=c;if(!b&&a.u.eb()&&(c=a.B,c.u&&(c=c.u,c.u.update(),c.o.videoData.Hb()&&c.o.videoData.Me&&c.w&&!c.R&&sH(c.u)>=c.o.videoData.Me&&(c.w&&c.o.videoData.Me&&
(d=GH(c,"delayplay"),d.Ea=!0,d.send(),c.R=!0),LH(c))),a.T.va&&(0,g.H)()>a.Xf+6283&&(!a.isAtLiveHead()||a.T.ia&&$x(a.T.ia)||(c=a.B,c.o&&(c=c.o,e=c.o.A(),d=g.WG(c.o),kH(c,d,e),e=e.C,isNaN(e)||g.gH(c,d,"e2el",[e.toFixed(3)]))),g.lz(a.A)&&a.Ra("rawlat","l."+HI(a.ha,"rawlivelatency").toFixed(3)),a.Xf=(0,g.H)()),a.T.Ba&&ht(a.T.Ba)&&(c=vJ(a))&&c.videoHeight!=a.Jc&&(a.Jc=c.videoHeight,XJ(a,"html5_log_hls_video_height_change_as_format_change")&&a.T.me&&"auto"==a.T.me.og.ya().quality&&a.T.Gg)))for(c=g.q(a.T.Gg),
d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Jc&&"auto"!=d.og.ya().quality){IJ(a,"a",d.ge());break}Kja(a.U,a.P,a.o,a.M.isBackground())&&YJ(a);c=a.U;d=a.T.Ba;0>=g.Q(c.o.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.ya()&&32<d.ya().fps)?c=!1:3<=c.w?(c.w=0,c=!0):c=!1;c&&Dka(a);a.S("progresssync",a,b)}};
Dka=function(a){a.B.onError("qoe.restart","droprate."+a.U.F);a.A.A.F=!1;AJ(a).then(function(){return BJ(a)})};
tJ=function(a,b){if(!g.NC(a.u,b)){var c=new g.$G(b,a.u);a.u=b;var d=!a.Yb.length;a.Yb.push(c);var e=a.o&&a.o.Yl();if(g.bH(c,1)&&!g.V(c.Jh,16)&&!e&&g.V(a.u,8)&&!g.V(a.u,64)&&a.w&&(a.w.ha=!0,tK(a),a.o&&5<=yC(a.o))){e=a.U;var f=a.P;PG(e,f)&&f.videoData.Ba?(6E4<(0,g.H)()-e.I&&(e.A=0),e.A++,e.I=(0,g.H)(),4!=e.A?e=!1:(QG(e,f.videoData.Ba),e=!0)):e=!1;e&&YJ(a)}(e=g.Q(a.A.experiments,"html5_ad_timeout_ms"))&&a.T.isAd()&&g.V(b,1)&&(g.V(b,8)||g.V(b,16))?a.ac.start(e):a.ac.stop();(0>aH(c,8)||g.bH(c,1024))&&
a.oa.stop();!g.bH(c,8)||a.T.se||g.V(c.state,1024)||a.oa.start();g.V(c.state,8)&&0>aH(c,16)&&!g.V(c.state,32)&&!g.V(c.state,2)&&a.playVideo();g.V(c.state,2)&&HB(a.T)&&(e=a.getCurrentTime(),a.T.lengthSeconds!=e&&(a.T.lengthSeconds=e,sJ(a)),nK(a,!0));g.bH(c,2)&&(a.Au(!0),tK(a));g.bH(c,128)&&tK(a);a.T.ia&&a.T.va&&!a.Rg&&(0>aH(c,8)?(e=a.T.ia,e.A&&e.A.stop()):g.bH(c,8)&&a.T.ia.resume());e=a.C;e.P.A=c.state;if(f=e.o)f=8==c.Jh.o&&PC(c.state)&&g.QC(c.state)&&e.V.A;if(f){f=e.o.getCurrentTime();var k=e.o.Dd();
var l=lI(e,"manifestless_post_live_ufph")||lI(e,"manifestless_post_live")?Ot(k,Math.max(f-3.5,0)):Ot(k,f-3.5);0<=l&&f>k.end(l)-1.1&&l+1<k.length&&11>k.start(l+1)-k.end(l)&&(l=k.start(l+1)+.2,.2>Math.abs(e.Aa-l)||(e.S("ctmp","seekover","b."+Nt(k,"_")+";cmt."+f),e.Aa=l,e.seekTo(l,{Fl:!0})))}e=a.B;if(g.bH(c,1024)||g.bH(c,2048)||g.bH(c,512)||g.bH(c,4))e.w&&(f=e.w,0<=f.A||(f.w=-1,f.B.stop())),e.o&&(f=e.o,f.o.fa("html5_qoe_user_intent_match_health")&&!f.A&&(f.B=-1));e.u&&(f=e.u,f.ea()||(g.V(c.state,2)?
(f.B="paused",g.bH(c,2)&&f.w&&IH(f).send()):g.V(c.state,8)?(f.B="playing",f.w&&isNaN(f.C)&&FH(f,!1)):f.B="paused",f.A&&g.V(c.state,128)&&(f.F("error-100"),g.Jo(f.A))));if(e.o){f=e.o;k=c.state;l=g.WG(f.o);var m=Oja(f,c.state);if(m!=f.w){if(!(l<f.C)){if("PL"==f.w)f.R+=l-f.C;else if("B"==f.w&&f.M){f.M=!1;var n=g.Q(f.o.o.experiments,"html5_disable_last_state_change")?f.C:f.da;f.U+=l-n;!f.aa&&10<=f.U&&180>=f.R&&(f.o.F(),f.u.qoealert=["1"],f.aa=!0)}"B"!=m||"PL"!=f.w&&"PB"!=f.w||(f.M=!0);f.C=l}"B"==m&&"PL"==
f.w||f.o.videoData.xg?lH(f,l):jH(f,l);"PL"===m&&f.Ka.Ua();g.gH(f,l,"vps",[m]);f.w=m;f.da=l;f.C=l;f.I=!0}m=k.u;g.V(k,128)&&m&&nH(f,l,m.errorCode,m.LB);(g.V(k,2)||g.V(k,128))&&f.uk(l);f.o.fa("html5_qoe_user_intent_match_health")?k.eb()&&!f.A&&(0<=f.B&&(f.u.user_intent=[f.B.toString()]),f.A=!0):g.V(k,8)&&f.o.videoData.Zi&&!f.A&&(f.u.user_intent=[l.toString()],f.A=!0);mH(f)}e.w&&(e=e.w,eH(e),e.o=c.state,0<=e.A&&g.bH(c,16)&&e.M++,c.state.isError()&&e.C());if(d&&!a.ea())try{for(var p=g.q(a.Yb),t=p.next();!t.done;t=
p.next()){var u=t.value,z=a.R;c=u;if(z.started&&(z.u(),g.V(c.Jh,16))){c=z;var C=mF(c.o,Math.max(c.A-2E3,0));!isNaN(C)&&0x7ffffffffffff>C&&c.B.start()}a.S("statechange",u)}}finally{a.Yb.length=0}}};
uK=function(a,b){g.V(a.u,128)||(tJ(a,MC(a.u,1028,9)),a.Ra("dompaused",b),a.S("onDompaused"))};
BJ=function(a){if(!a.o||!a.T.xa)return!1;var b=null;a.T.xa.o?(b=fK(a),a.w.resume()):(nJ(a),a.T.me&&(b=a.T.me.em()));var c=b;var d=a.o.Uo();b=!1;d&&null!==c&&c.o===d.o||(a.I.tick("vta"),OA("vta"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.C.F=b),a.o.ak(c),a.G&&Xp(4),!a.T.se&&g.OC(a.u)&&a.oa.start(),b=!0);g.V(a.u,2)||(c=a.C,c.G||!(0<c.F)||c.o&&0<c.o.getCurrentTime()||c.seekTo(c.F));a:if(c=b,g.yB(a.T)&&a.o)if((d=a.T.uc)&&a.o.Ch()){var e=a.o.ua();if(a.F)if(e!=a.F.ua())lJ(a);else if(c&&"fairplay"==
d.flavor&&!hl())lJ(a);else break a;a.F=new BG(e,a.T,a.A);a.F.subscribe("licenseerror",a.OG,a);a.F.subscribe("qualitychange",a.kL,a);a.F.subscribe("heartbeatparams",a.MG,a);a.F.subscribe("keystatuseschange",a.NG,a);a.F.subscribe("hdproberequired",a.jL,a);a.F.subscribe("ctmp",a.Ra,a);c=g.q(a.Aa.keys);for(d=c.next();!d.done;d=c.next())d=a.Aa.get(d.value),FG(a.F,d);XJ(a,"html5_eme_loader_sync")||(a=a.Aa,a.keys=[],a.values=[])}else g.jJ(a,"fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");
return b};
lJ=function(a){a.F&&(a.F.dispose(),a.F=null)};
Eka=function(a){a.A.A.w=!1;a.B.onError("qoe.restart",Ps({e:"fmt.noneavailable",detail:"hdr"}));AJ(a).then(function(){return BJ(a)})};
vK=function(a,b){b=void 0===b?!1:b;return a.T.va&&(a.isAtLiveHead()&&(XJ(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.u,4))||vI(a.C)||g.GB(a.T))?a.getCurrentTime():bK(a,b)};
bK=function(a,b){return a.C.sc(void 0===b?!1:b)};
g.wK=function(a,b){(a.Hc=b)||a.oa.stop();if(a.T.ia)if(b)a.T.ia.resume();else{var c=a.T.ia;c.A&&c.A.stop()}g.P(a.A.experiments,"html5_suspend_loader")&&a.w&&(b?a.w.resume():RJ(a,!0));g.P(a.A.experiments,"html5_fludd_suspend")&&(g.V(a.u,2)||b?g.V(a.u,512)&&b&&tJ(a,LC(a.u,512)):tJ(a,KC(a.u,512)));c=a.B;c.o&&(c=c.o,g.gH(c,g.WG(c.o),"stream",[b?"A":"I"]))};
xK=function(a){return a.o?a.o.So():a.Kc};
yK=function(a){a.o&&(a.G?(lJ(a),QJ(a),fK(a)):(a.T.me&&a.T.me.zu(),a.o.stopVideo()),a.playVideo())};
zK=function(a,b){g.P(a.A.experiments,"html5_log_rebuffer_reason")&&a.Ra("bufreason","r."+b+";lact."+bq())};
AK=function(a,b){if(a.T.xg){var c=g.Q(a.A.experiments,"html5_log_rebuffer_events");if(c&&a.o){var d=a.o.Za();d.rt=g.WG(a.B.A).toFixed(3);d.e=b.substr(0,3);a.Tc[a.Yf++%c]=Ps(d)}}};
tK=function(a){if(a.T.xg){for(var b=g.q(a.Tc),c=b.next();!c.done;c=b.next())a.Ra("vpe",c.value);a.Tc=[];a.Yf=0}};
FJ=function(a,b){a.Ra("seekreason",b)};
BK=function(a){if(dl("cobalt")&&dl("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ra("nxdock",""+ +b)}};
XJ=function(a,b){return g.P(a.A.experiments,b)};
RJ=function(a,b){AF(a.w,b||ZJ(a))};
ZJ=function(a){var b=XJ(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.$y(a.A),c=XJ(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.$a(a.V,"ad")};
xka=function(a){if(iB(a.T,"html5_set_debugging_opt_in")&&(a=wr.getInstance(),!yr(0,183))){var b="f"+(Math.floor(183/31)+1),c=xr(b)||0;c|=268435456;0==c?delete vr[b]:(c=c.toString(16),vr[b]=c.toString());a.save()}};
DK=function(){this.o={};var a=Nq("CONSISTENCY");a&&CK(this,{encryptedTokenJarContents:a})};
CK=function(a,b){if(b.encryptedTokenJarContents&&(a.o[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.o[b.encryptedTokenJarContents]},1E3*c);
g.Mq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
EK=function(a){var b=g.L("INNERTUBE_CONTEXT");if(!b)return g.Tq(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};b=g.Qb(b);b.client||(b.client={});var c=b.client;c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=Math.round(window.devicePixelRatio)||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var d=void 0===d?!1:d;wr.getInstance();var e=yr(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.xo("kevlar_apply_prefers_color_theme")&&
(e=yr(0,165)?"USER_INTERFACE_THEME_DARK":yr(0,174)?"USER_INTERFACE_THEME_LIGHT":window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");d=d?e:bfa()||e;c.userInterfaceTheme=d;(d=Nq("EXPERIMENTS_DEBUG"))?c.experimentsToken="ZERO"===d?"GgIQAQ%3D%3D":d:delete c.experimentsToken;c=zo();DK.o||(DK.o=new DK);d=g.Fb(DK.o.o);b.request=Object.assign(Object.assign({},b.request),
{internalExperimentFlags:c,consistencyTokenJars:d});c=yr(wr.getInstance(),58);b.user=Object.assign({},b.user);c&&(b.user.enableSafetyMode=c);(c=g.L("DELEGATED_SESSION_ID"))&&!g.xo("pageid_as_header_web")&&(b.user.onBehalfOfUser=c);if(c=g.ds())b.clientScreenNonce=c;a&&(b.clickTracking={clickTrackingParams:a});return b};
FK=function(a,b,c){this.o=a;this.w=b;this.u=c};
GK=function(a,b,c,d){FK.o=new FK(a,b,d)};
IK=function(a,b){var c=void 0===c?HK:c;a:{var d,e;if((null===(d=b.signalServiceEndpoint)||void 0===d?0:d.signal)&&a.o.FO&&(d=a.o.FO[b.signalServiceEndpoint.signal])){var f=new d;break a}if((null===(e=b.continuationCommand)||void 0===e?0:e.request)&&a.o.nE&&(e=a.o.nE[b.continuationCommand.request])){f=new e;break a}for(f in b)if(a.o.lr[f]&&(e=a.o.lr[f])){f=new e;break a}f=void 0}if(!f)return a.u(new Sq("Error: No request builder found for command.",b)),Df({});e={context:EK(b.clickTrackingParams)};
(d=f.u(b))?f.o(e,d):(g.Tq(new Sq("Error: Failed to create Request from Command.",b)),e=void 0);if(!e)return a.u(new Sq("Error: Failed to build request for command.",b)),Df({});var k;var l;(d=null===(l=null===(k=b.commandMetadata)||void 0===k?void 0:k.webCommandMetadata)||void 0===l?void 0:l.apiUrl)?(k=pq(d,{key:g.L("INNERTUBE_API_KEY")}),(l=g.L("INNERTUBE_HOST_OVERRIDE"))&&(k=String(l)+String(pd(k)))):k=void 0;return k?Fka(a,e,k,c,f.w()):(a.u(new Sq("Error: No API URL provided for command (yaqs/6180475663155200).",
b)),Df({}))};
Fka=function(a,b,c,d,e){d=void 0===d?HK:d;var f=JSON.stringify(b),k=qq(c)?"same-origin":"cors",l=qq(c)?"same-origin":"include";return Gka().then(function(m){m={method:"POST",mode:k,headers:m,body:f};g.xo("op_credentials_killswitch")||(m.credentials=l);var n;e&&(n=Object.assign({QT:c,RT:m,identity:d,requestTime:(0,g.N)()},e));return a.w.fetch(c,m,n)}).then(function(m){return Df(m)})};
Gka=function(){return Hka().then(function(a){a=Object.assign({"Content-Type":"application/json","X-Goog-Visitor-Id":g.L("VISITOR_DATA")},a);return Df(a)})};
JK=function(a){fC.call(this,a);this.P=null};
g.KK=function(a){return a.app.A};
g.LK=function(a){a=g.KK(a).u.get("endscreen");return!!a&&a.Oy()};
MK=function(a){a=g.KK(a);var b=a.u.get("endscreen");return b&&b.Py()?!0:a.Fm()||g.Uy(a.o.N())};
g.NK=function(a,b){3==a.getPresentingPlayerType()?a.S("mdxautoplaycancel"):a.S("autonavcancel",b)};
g.PK=function(a,b){return OK(a.app,b)};
g.QK=function(a){return a.app.G};
g.SK=function(a){var b=g.RK(g.KK(a));return a.app.aa&&!a.isFullscreen()||3==a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Qy()||!!a.getPlaylist()};
g.TK=function(a,b,c){a.app.w.Ki(new Os(b,!1,c))};
g.UK=function(a){var b={};a=TJ(g.W(a.app));a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.WK=function(a){return(a=g.VK(g.KK(a)))?a.EG():{}};
g.YK=function(a){a=g.XK(g.KK(a));return!!a&&a.Vl()};
g.ZK=function(a){a=g.XK(g.KK(a));return!!a&&a.Ny()};
g.$K=function(a,b,c){var d=g.dC(a);if(d)return d.xt(b,c);a=a.app.G.getPlayerSize();return new g.ph(0,0,a.width,a.height)};
bL=function(a){a=aL(g.KK(a));return!!a&&a.zG()};
cL=function(a){a=g.KK(a).u.get("heartbeat");return!!a&&a.AG()};
g.eL=function(a,b,c){dL(a.app,b,c)};
g.fL=function(a,b,c){(a=g.W(a.app,c))&&MJ(a,b)};
g.gL=function(a){a=(a=a.getVideoData())&&a.Ba;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!=a.mimeType};
g.hL=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.fe)};
g.iL=function(a,b,c){a=g.QK(a).element;var d=qb(a.children,function(e){e=parseInt(e.getAttribute("data-layer"),10);return c-e||1});
0>d&&(d=-(d+1));g.se(a,b,d);b.setAttribute("data-layer",c)};
g.jL=function(a){var b=a.N();if(!b.nb)return!1;var c=a.getVideoData();if(!c||3==a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.P(b.experiments,"allow_poltergust_autoplay");d=c.va&&(!g.P(b.experiments,"allow_live_autoplay")||!d);var e=c.va&&g.P(b.experiments,"allow_live_autoplay_on_mweb"),f=!!a.getPlaylist();g.P(b.experiments,"player_allow_autonav_after_playlist")&&(f=(a=a.getPlaylist())&&a.hasNext());return!c.ypcPreview&&(!d||e)&&!g.$a(c.Rc,"ypc")&&!f};
g.kL=function(a,b,c,d){a.N().Z&&Ika(a.app.oa,b,c,d)};
g.lL=function(a,b,c){a.N().Z&&Jka(a.app.oa,b,c)};
g.mL=function(a,b,c){a.N().Z&&(a.app.oa.o.has(b),c&&(b.visualElement=g.Wr(c)))};
g.nL=function(a,b){a.N().Z&&a.app.oa.click(b)};
g.oL=function(a,b,c){if(a.N().Z&&(a=a.app.oa,a.o.has(b),c?a.u.add(b):a.u["delete"](b),c&&!a.A.has(b))){c=g.ds();var d=b.visualElement;c&&d&&g.us(c,d);a.A.add(b)}};
g.pL=function(a,b){return a.N().Z?a.app.oa.o.has(b):!1};
g.sL=function(a,b){if(a.app.getPresentingPlayerType()==b){var c=a.app,d=g.W(c,b);d&&(d!=c.w?qL(c,c.w):rL(c))}};
Kka=function(a){if(!a.fa("html5_inline_video_quality_survey"))return!1;var b=g.W(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Ba||!c.Ba.video||1080>c.Ba.video.fc||c.ay)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Ba.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.fa("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ra("iqss",e,!0),!0):!1};
tL=function(a,b){document.requestStorageAccess().then(a,b)};
uL=function(a){if(a){var b=[],c;for(c in a)Lka.has(c)||b.push(c);b.length&&(b.sort(),g.Uq(new Sq("Unknown house brand player vars:",b)))}};
g.vL=function(a){g.O.call(this);this.loaded=!1;this.player=a};
g.wL=function(a,b){return jt(a.info.mimeType)?b?ct(a.info)===b:!0:!1};
g.xL=function(a,b){if(null!=a.ia&&g.lz(b.N())&&!a.ia.u&&null!=a.ia.o.rawcc)return!0;if(!a.Ef())return!1;var c=!!a.ia&&a.ia.u&&Object.values(a.ia.o).some(function(e){return g.wL(e,"386")}),d=!!a.ia&&!a.ia.u&&rga(a.ia);
return c||d};
yL=function(a,b){g.A.call(this);this.F=b;this.u=new Map;this.w={};this.A={};this.C=null;this.o=a;this.B=g.P(a.N().experiments,"web_player_defer_modules")};
g.zL=function(a){return a.u.get("captions")};
Nka=function(a,b){switch(b){case "ad":return AL(a);case "annotations_module":var c=a.o.N();if(Vy(c))c=!1;else{var d=a.o.getVideoData();c=d.ny||"3"==c.controlsType?!1:c.I.isEmpty()&&"annotation-editor"!=c.playerStyle&&"live-dashboard"!=c.playerStyle?!!d.be||!!g.KB(d)||!!g.LB(d):!0}return c;case "attribution":return c=a.o.N(),g.P(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"==c.playerStyle;case "creatorendscreen":return c=a.o.N(),"3"==c.controlsType?c=!1:"creator-endscreen-editor"==
c.playerStyle?c=!0:(c=a.o.getVideoData(),c=!!c&&(!!g.IB(c)||!!g.JB(c))),c;case "embed":return g.Ly(a.o.N());case "endscreen":return g.BL(a);case "fresca":return a.o.getVideoData().Sn;case "heartbeat":return a.o.getVideoData().Vm;case "kids":return bz(a.o.N());case "remote":return a.o.N().ac;case "miniplayer":return a.o.N().showMiniplayerUiWhenMinimized;case "music":return g.Uy(a.o.N());case "captions":return"lb3"==a.o.N().playerStyle?c=!1:(c=a.o.getVideoData(),c=!!c.Wk||!!c.captionTracks.length||
g.xL(c,a.o)),c;case "unplugged":return g.az(a.o.N());case "ux":return a.o.N().za;case "visualizer":return g.CL(a);case "webgl":return Mka(a);case "ypc":return a.Fm();case "ypc_clickwrap":return c=a.o.getVideoData(),c.Kk&&!c.Cs;case "yto":return!!a.o.getVideoData().Rc.includes("yto");default:return g.Tq(Error("Module descriptor "+b+" does not match")),!1}};
DL=function(a){a.B&&(a.sd("endscreen"),a.qr(),a.sd("creatorendscreen",void 0,!0))};
g.BL=function(a){var b=a.o.N();if(g.rz(b)||b.B||!b.Aa&&!b.Ta)return!1;var c=a.o.getPresentingPlayerType();if(2==c)return!1;if(3==c)return g.P(b.experiments,"desktop_enable_autoplay");a=a.o.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.P(b.experiments,"allow_poltergust_autoplay");c=a.va&&(!g.P(b.experiments,"allow_live_autoplay")||!c);b=a.va&&g.P(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.VK=function(a){return a.u.get("webgl")};
Mka=function(a){var b=a.o.getVideoData(),c=a.o.N().experiments,d=g.kl(),e=g.P(c,"enable_spherical_kabuki");a=g.pz(a.o.N());if(b.tg())return d||e||a||g.P(c,"html5_enable_spherical");if(b.yg())return a||d||e||g.P(c,"html5_enable_spherical");if(b.zg())return a||d||g.P(c,"html5_enable_spherical3d");if(b.Oj())return a||g.P(c,"html5_enable_anaglyph3d")||!1;d=b.Ba&&b.Ba.video&&$s(b.Ba.video);return a&&!g.yB(b)&&!b.isVisualizerEligible&&!d&&(g.P(c,"enable_webgl_noop")||g.P(c,"html5_enable_bicubicsharp")||
g.P(c,"html5_enable_smartsharp"))};
EL=function(a){g.P(a.o.N().experiments,"web_player_ux_module_wait")&&a.u.get("ux")&&g.fL(a.o,"ux")};
Oka=function(a){EL(a);a.sd("ux",void 0,!0)};
AL=function(a){if(a=a.o.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.CL=function(a){var b=a.o.N();return a.o.getVideoData().isVisualizerEligible&&qz(b)&&g.P(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"==b.playerStyle&&g.pz(b)&&!(g.wu&&!g.Kd(42))};
FL=function(a,b,c){for(var d=g.q(a.u),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Pf(b))&&(g.He(f),a.u["delete"](e))}};
GL=function(a){return a.u.get("ad")};
HL=function(a){return bz(a.o.N())?a.u.get("kids"):null};
g.RK=function(a){return a.o.N().ac?a.u.get("remote"):null};
IL=function(a){return g.az(a.o.N())?a.u.get("unplugged"):null};
cC=function(a){return a.o.N().za?a.u.get("ux"):null};
g.XK=function(a){return a.u.get("annotations_module")};
JL=function(a){return a.u.get("creatorendscreen")};
aL=function(a){return a.u.get("fresca")};
LL=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];if(m.src==d||m.getAttribute("data-original-src")==d)k=m}k||(k=g.oe("SCRIPT"),k.setAttribute("data-original-src",d),f=!0);var n=function(){a.ea()||c.call(a)},p=function(){a.ea()||g.fL(a.o,b)};
k.onload=g.Qa(function(t){nf(n);t&&t()},k.onload);
k.onerror=g.Qa(function(t){if(.01>Math.random()){var u=new Sq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Tq(u)}nf(p);t&&t()},k.onerror);
k.onreadystatechange=g.Qa(function(t){switch(k.readyState){case "loaded":case "complete":nf(n,this)}t&&t()},k.onreadystatechange);
f&&((e=a.o.N().qd)&&k.setAttribute("nonce",e),$c(k,gh(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(k,e.firstChild),g.Ge(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.KL[b]=null;"annotations_module"==b&&(g.KL.creatorendscreen=null)}))}};
g.ML=function(a){g.vC.call(this);this.o=a;this.u={}};
NL=function(){this.o=[];this.u=[];this.w=[]};
PL=function(a,b,c){c=g.oe(c?"AUDIO":"VIDEO");g.Ra(c,Pka);g.Ep(c,"loadeddata",(0,g.x)(c.u,c));Sy&&6<=UB&&g.Ep(c,"webkitbeginfullscreen",(0,g.x)(c.play,c));a.u.push(c);b?a.w.push(c):OL(a,c);return c};
OL=function(a,b){g.$a(a.u,b)&&!g.$a(a.o,b)&&(b.src||b.load(),g.db(a.w,b)||a.o.push(b))};
Qka=function(){this.u=200;this.o=12};
Rka=function(a){var b=new Qka;b.u=g.Q(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.o=g.Q(a.experiments,"html5_gapless_max_played_ranges");return b};
g.QL=function(a,b,c,d){d=void 0===d?!1:d;g.vC.call(this);this.o=a;this.u=b;this.A=c;this.G=d};
Ska=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";if(uI(b.C)>d/1E3+1)return"in-the-past";if(f.va&&!isFinite(d))return"live-infinite";if(a.o&&((b=b.o)&&b.isView()&&(b=b.o),b&&b.Dj().length>a.o&&g.yB(e)))return"played-ranges";if(!e.xa)return null;if(!e.xa.o||!f.xa.o)return"non-dash";if(e.xa.videoInfos[0].containerType!=f.xa.videoInfos[0].containerType)return"container";if(g.yB(f)&&g.yB(e))return"content-protection";a=f.xa.o[0].audio;
e=e.xa.o[0].audio;return a.sampleRate==e.sampleRate||g.Dt?(a.o||2)!=(e.o||2)?"channel-count":null:"sample-rate"};
SL=function(a,b,c,d){g.A.call(this);var e=this;this.R=a;this.o=b;this.u=c;this.B=this.A=null;this.F=d-1E3*b.Bb();this.G=-1;this.I=!1;this.C=new WC;this.C.then(void 0,function(){});
this.P=new g.I(function(){return RL(e,"timeout")},1E4);
g.B(this,this.P);this.M=isFinite(d);this.w={status:0,error:null}};
Tka=function(a){var b,c,d,e,f,k;return g.Ba(function(l){if(1==l.o){if(a.ea())return l["return"](Promise.reject(Error(a.w.error||"disposed")));a.P.start();return g.ta(l,a.C,2)}b=a.o.o;if(b.Bf())return RL(a,"ended_in_finishTransition"),l["return"](Promise.reject(Error(a.w.error)));if(!a.B||!Yt(a.B))return RL(a,"next_mse_closed"),l["return"](Promise.reject(Error(a.w.error)));if(a.u.G!=a.B)return RL(a,"next_mse_mismatch"),l["return"](Promise.reject(Error(a.w.error)));c=TL(a);d=c.dA;e=c.cA;OJ(a.o,!1,!0);
f=UL(b,d,e,!a.u.getVideoData().isAd());PJ(a.u,f);a.M&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Fl:!0,Qu:3}),f.play());k=b.Za();k.cpn=a.o.getVideoData().clientPlaybackNonce;k.st=""+d;k.et=""+e;a.u.Ra("gapless",Ps(k));a.o.Ra("gaplessTo",a.u.getVideoData().clientPlaybackNonce);g.uf(function(){!a.u.getVideoData().se&&g.OC(a.u.getPlayerState())&&sK(a.u)});
VL(a,6);a.dispose();return l["return"](Promise.resolve())})};
YL=function(a){if(a.u.getVideoData().xa){hK(a.u,a.B);VL(a,3);WL(a);var b=XL(a),c=b.fC;b=b.CO;c.subscribe("updateend",a.hk,a);b.subscribe("updateend",a.hk,a);a.hk(c);a.hk(b)}};
WL=function(a){a.o.unsubscribe("internalvideodatachange",a.ci,a);a.u.unsubscribe("internalvideodatachange",a.ci,a);a.o.unsubscribe("mediasourceattached",a.ci,a);a.u.unsubscribe("statechange",a.Ez,a)};
UL=function(a,b,c,d){return new g.QL(a.isView()?a.o:a,b,c,d)};
VL=function(a,b){b<=a.w.status||(a.w={status:b,error:null},5==b&&a.C.resolve(void 0))};
RL=function(a,b){if(!a.ea()&&!a.isFinished()){var c=4<=a.w.status&&"player-reload-after-handoff"!==b;a.w={status:Infinity,error:b};if(a.o&&a.u){var d=a.u.getVideoData().clientPlaybackNonce;a.o.Ra("gaplessError","cpn."+d+";msg."+b);d=a.o;d.T.Df=!1;c&&dK(d);d.w&&(c=d.w,c.o.Z=!1,c.w&&SF(c))}a.C.reject(void 0);a.dispose()}};
TL=function(a){var b=a.o.o;b=b.isView()?b.u:0;var c=a.o.getVideoData().va?Infinity:vK(a.o,!0);c=Math.min(a.F/1E3,c)+b;var d=a.M?100:0;a=c-uI(a.u.C)+d;return{vE:b,dA:a,uE:c,cA:Infinity}};
XL=function(a){return{fC:a.A.o.o,CO:a.A.u.o}};
ZL=function(a){g.A.call(this);var b=this;this.w=a;this.C=this.u=this.o=null;this.G=!1;this.B=null;this.I=Rka(this.w.N());this.A=null;this.F=function(){return g.uf(function(){return Uka(b)})}};
Vka=function(a,b,c,d){d=void 0===d?0:d;a.o&&$L(a);a.B=new WC;a.o=b;var e=c,f=a.w.kb(),k=f.getVideoData().va?Infinity:1E3*vK(f,!0);e>k&&(e=k-a.I.u,a.G=!0);f.getCurrentTime()>=e/1E3?a.F():(a.u=f,a.w.addEventListener(g.lC("vqueued"),a.F),e=isFinite(e)||e/1E3>a.u.getDuration()?e:0x8000000000000,a.C=new g.iC(e,0x8000000000000,{namespace:"vqueued"}),a.u.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().ia;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().va&&(f=Math.min(c/1E3,vK(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),
k=Math.min(d,vK(b)+l));f=Cga(e,k)||d;f!=d&&a.o.Ra("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+k))}b=f;a.o.getVideoData().Zi=!0;a.o.getVideoData().Df=!0;zJ(a.o,!0);d="";a.u&&(d=g.WG(a.u.B.A),e=a.u.getVideoData().clientPlaybackNonce,d="crt."+(1E3*d).toFixed()+";cpn."+e);a.o.Ra("queued",d);0!=b&&a.o.seekTo(b+.01,{Fl:!0,Qu:3});a.A=new SL(a.I,a.w.kb(),a.o,c);c=a.A;Infinity!=c.w.status&&(VL(c,1),c.o.subscribe("internalvideodatachange",c.ci,c),c.u.subscribe("internalvideodatachange",c.ci,c),c.o.subscribe("mediasourceattached",
c.ci,c),c.u.subscribe("statechange",c.Ez,c),c.o.subscribe("newelementrequired",c.LA,c),c.ci());return a.B};
Uka=function(a){var b,c,d;return g.Ba(function(e){switch(e.o){case 1:if(a.ea()||!a.B||!a.o)return e["return"]();a.G&&hJ(a.w.kb(),!0,!1);b=null;if(!a.A){e.o=2;break}e.B=3;return g.ta(e,Tka(a.A),5);case 5:ua(e,2);break;case 3:b=c=va(e);case 2:aM(a.w.app,a.o);var f=a.o.getPlayerType();g.bM(a.w.app,f);a.w.playVideo();b&&(f=a.o,f.Ra("newelem",b.message),dK(f));d=a.B;$L(a);return e["return"](d.resolve(void 0))}})};
$L=function(a){a.u&&(a.w.removeEventListener(g.lC("vqueued"),a.F),a.u.removeCueRange(a.C),a.u=null,a.C=null);if(a.A){if(!a.A.isFinished()){var b=a.A;Infinity!=b.w.status&&RL(b,"Canceled")}a.A=null}a.B=null;a.o=null;a.G=!1};
eM=function(a,b){g.A.call(this);var c=this;this.data=[];this.w=a||NaN;this.u=b||null;this.o=new g.I(function(){cM(c);dM(c)});
g.B(this,this.o)};
cM=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&fM(a,c,!0)});
a.data=(0,g.ue)(a.data,function(c){return!(c.expire<b)})};
fM=function(a,b,c){c&&a.u&&a.u(b.value)};
dM=function(a){a.o.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-(0,g.H)(),0),a.o.start(b))};
g.gM=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={wq:c.wq},e=d.next())e=e.value,c.wq=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.wq}}(c));
return a};
g.hM=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){var k="";0<d&&(k+=" "+d+" jour(s)");if(0<d||0<e)k+=" "+e+" Heures";d=(k+(" "+f+" minute(s) ")+(c+" seconde(s)")).trim()}else{k="";0<d&&(k+=d+":",10>e&&(k+="0"));if(0<d||0<e)k+=e+":",10>f&&(k+="0");k+=f+":";10>c&&(k+="0");d=k+c}return 0<=a?d:"-"+d};
g.iM=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)};
g.jM=function(a,b){return oC(b)?(b.fetch=0,new g.nC(a,b)):new g.aB(a,b)};
kM=function(a){g.A.call(this);this.u=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.o=window.IntersectionObserver?new IntersectionObserver((0,g.x)(this.w,this),b):null)&&this.o.observe(a)};
Wka=function(a,b){Bo(a,"version",b)};
nM=function(a){var b=a.N();g.R.call(this,{D:"div",Y:["html5-video-player"],O:{tabindex:"-1",id:a.Rb?a.Rb.rootElementId:a.za.attrs.id},J:[{D:"div",H:g.lM.VIDEO_CONTAINER,O:{"data-layer":"0"}}]});b.transparentBackground&&this.km("ytp-transparent");"0"==b.controlsType&&this.km("ytp-hide-controls");b.fa("web_wn_macro_markers")&&g.J(this.element,"ytp-exp-marker-tooltip");b.fa("html5_player_bottom_linear_gradient")&&g.J(this.element,"ytp-linear-gradient-bottom-experiment");Wka(this.element,mM(a));this.app=
a;this.A=this.o[g.lM.VIDEO_CONTAINER];this.w=new g.ph(0,0,0,0);this.u=null;this.G=new g.ph(0,0,0,0);this.M=this.V=this.U=NaN;this.C=this.da=!1;this.I=NaN;this.R=!1;this.F=null;this.addEventListener=(0,g.x)(this.element.addEventListener,this.element);this.removeEventListener=(0,g.x)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
this.ba=(0,g.x)(function(){this.element.focus()},this);
hz(b)&&"blazer"!=b.playerStyle&&window.matchMedia&&(this.aa="desktop-polymer"==b.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Sd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Sd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Sd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Sd(640,360)}]);this.Z=b.useFastSizingOnWatchDefault;this.B=new g.Sd(NaN,NaN);Xka(this);this.L(a.u,"onMutedAutoplayChange",this.dJ)};
Xka=function(a){var b=a.app.u,c=(0,g.x)(a.PF,a),d=(0,g.x)(a.QF,a),e=(0,g.x)(a.cJ,a),f=(0,g.x)(a.AF,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.Ge(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
oM=function(a){a.u&&(a.u.removeEventListener("focus",a.ba),g.te(a.u),a.u=null)};
qM=function(a){var b=g.P(a.app.N().experiments,"html5_aspect_from_adaptive_format"),c=g.W(a.app);if(c=c?c.getVideoData():null){if(c.yg()||c.zg()||c.tg())return 16/9;if(b&&c.lo()&&c.xa.o)return b=c.xa.videoInfos[0].video,pM(b.width,b.height)}return(a=a.u)?pM(a.videoWidth,a.videoHeight):b?16/9:NaN};
rM=function(a,b,c,d){var e=c,f=pM(b.width,b.height);a.da?e=c<f?Infinity:0:isNaN(a.M)?isNaN(a.V)||(e=a.V):e=a.M;isFinite(e)||(e=Math.max(c,f));var k;e>f?k={width:b.width,height:b.width/e,aspectRatio:e}:e<f?k={width:b.height*e,height:b.height,aspectRatio:e}:k={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?k.width=k.height*c:c<e&&(k.height=k.width/c),k.aspectRatio=c);return k};
pM=function(a,b){return 1>Math.abs(sM*b-a)||1>Math.abs(sM/a-b)?sM:a/b};
tM=function(a){if(1==a.app.getAppState())return!1;if(6==a.app.getAppState())return!0;var b=g.W(a.app);if(!b||EJ(b))return!1;var c=g.PK(a.app.u);a=!g.V(c,2)||!g.P(a.app.N().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Df;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
uM=function(a){var b="3"==a.app.N().controlsType&&!a.C&&tM(a)&&!a.app.Qa||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.ba):g.P(a.app.N().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.ba)};
vM=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=rM(a,b,a.getVideoAspectRatio()),f=ml();if(tM(a)){var k=qM(a);var l=isNaN(k)||g.wu||MG&&g.oz;nl&&!g.Kd(601)?k=e.aspectRatio:l=l||"3"==a.app.N().controlsType;l?l=new g.ph(0,0,b.width,b.height):(c=e.aspectRatio/k,l=new g.ph((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1==c&&g.oz&&(k=l.width-b.height*k,0<k&&(l.width+=k,l.height+=k)));f&&(a.u.style.display="");a.R=!0}else l=-b.height,nl?l*=window.devicePixelRatio:g.nz&&(l-=window.screen.height),
l=new g.ph(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.R=!1;qh(a.G,l)||(a.G=l,g.az(a.app.N())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Mh(a.u,new g.Sd(l.width,l.height)),g.Ah(a.u,new g.Qd(l.left,l.top)),d=!0);b=new g.ph((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);qh(a.w,b)||(a.w=b,d=!0);g.sh(a.u,"transform",1==c?"":"scaleX("+c+")");return d};
wM=function(){this.w=g.ds();this.o=new Set;this.A=new Set;this.u=new Set};
Ika=function(a,b,c,d){a.o.has(b);a.o.add(b);d=Xr(d);b.visualElement=d;var e=g.ds(),f=g.bs();e&&f&&g.ys(e,f,d);g.Ge(c,function(){xM(a,b)})};
Jka=function(a,b,c){a.o.has(b);a.o.add(b);g.Ge(c,function(){xM(a,b)})};
xM=function(a,b){a.o.has(b);a.o["delete"](b);a.A["delete"](b);a.u["delete"](b)};
yM=function(a){if(a.w!=g.ds())if("UNDEFINED_CSN"==a.w)a.w=g.ds();else{var b=g.ds(),c=g.bs();if(b&&c){a.w=b;for(var d=g.q(a.o),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&!e.Ld.trackingParams&&e.Ld.veType&&g.ys(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&!c.Ld.trackingParams&&c.Ld.veType&&g.us(b,c)}};
g.zM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-cast-desktop-on"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
AM=function(){return{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.BM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-back"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{D:"path",O:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.CM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-forward"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},J:[{D:"path",O:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
DM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-clear"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",O:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",O:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
EM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-end"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
FM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-clip-start"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.GM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-close"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
HM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-code"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
IM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-dislike"]}:{D:"svg",O:{viewBox:"0 0 24 24"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
g.JM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-error-exclamation"]}:{D:"svg",O:{fill:"#fff",viewBox:"0 0 48 48"},J:[{D:"path",O:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",O:{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.3"}}]}};
KM=function(){return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{D:"path",O:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",O:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.LM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-like"]}:{D:"svg",O:{viewBox:"0 0 24 24"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
MM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-link"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",O:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
NM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-loop-range"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
OM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-next"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.PM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-notifications-active"]}:{D:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{D:"path",O:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}};
QM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-pause"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
RM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-pip"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
SM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-play"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
TM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-prev"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.UM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-replay"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.VM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-settings"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
WM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-stop"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
XM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-subtitles"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]}};
YM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-high"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{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"}}]}};
ZM=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-low"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{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"}}]}};
$M=function(){return g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-muted"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
aN=function(){};
bN=function(){aN.o||(aN.o=new aN);return aN.o};
Hka=function(){var a={},b=g.Lm();b&&(a.Authorization=b,a["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),a["X-Origin"]=g.L("INNERTUBE_HOST_OVERRIDE",window.location.origin),g.xo("pageid_as_header_web")&&(a["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return Df(a)};
cN=function(){};
dN=function(){};
eN=function(){};
fN=function(){};
gN=function(){};
hN=function(){this.A=new jba;this.u=new kba;this.w=new mba;this.o=new nba};
iN=function(){hN.o||(hN.o=new hN);return hN.o};
Yka=function(a,b,c){var d=b.json();b.redirected?lba(a.u,b.status,c,ld(g.nd(5,b.url))):b.ok?a.w.o.w("/client_streamz/youtube/web/network/one_platform_request_success",c):(a.o.o.w("/client_streamz/youtube/web/network/one_platform_request_failed",b.status,c),d.then(function(e){g.Uq(new Sq("Error: API fetch failed",b.status,b.url,e))}));
return d};
jN=function(a,b,c,d){g.O.call(this);this.w=a;this.U=(0,g.x)(b,null);this.u=0;this.F=!1;this.B=new g.Qd(NaN,NaN);this.o=new g.Gr(this);g.B(this,this.o);b=d?4E3:3E3;this.I=new g.I(g.Qa(this.Tb,1,!1),b,this);g.B(this,this.I);this.P=new g.I(g.Qa(this.Tb,2,!1),b,this);g.B(this,this.P);this.R=new g.I(g.Qa(this.Tb,512,!1),0,this);g.B(this,this.R);this.ba=c&&0<c.bi.length?5E3:3E3;d||(this.A=this.o.L(a,"mouseover",this.Ht),this.o.L(a,"mousemove",this.UI),this.o.L(a,"mouseleave",this.KJ));uh?this.o.L(a,"keypress",
this.iG):this.o.L(a,"focusin",this.LE);this.C=this.o.L(a,"mousedown",this.Lz);this.G=this.o.L(a,"touchstart",this.Nz,void 0,!0);this.V=null;this.Tb(640,!0)};
kN=function(a){a.Tb(4,!1);a.M&&(a.o.bb(a.M),a.M=null,a.A=a.o.L(a.w,"mouseover",a.Ht));a.A&&(a.o.bb(a.A),a.A=a.o.L(a.w,"mouseover",a.Ht))};
g.lN=function(a,b,c,d,e,f){g.A.call(this);this.element=a;this.state=null;c||a.hide();this.w=b;this.A=void 0===d?b:d;this.o=f;this.u=e;this.delay=new g.I(this.eq,0,this);g.B(this,this.delay)};
mN=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
g.nN=function(a){g.R.call(this,{D:"button",Y:["ytp-large-play-button","ytp-button"],O:{"aria-label":"Lire"},J:["{{largePlayButtonChildren}}"]});this.api=a;this.L(a,"videodatachange",this.sa);this.sa()};
oN=function(a){var b=a.N(),c=["ytp-cued-thumbnail-overlay"];(g.P(b.experiments,"web_player_contain_thumbnail")||b.B)&&c.push("ytp-exp-contain-thumbnail");g.R.call(this,{D:"div",Y:c,J:[{D:"div",H:"ytp-cued-thumbnail-overlay-image"}]});b=this.o["ytp-cued-thumbnail-overlay"];c=new g.nN(a);g.B(this,c);c.ca(b);this.B=new g.Gr(this);g.B(this,this.B);this.u=a;this.F=this.o["ytp-cued-thumbnail-overlay-image"];this.C=c;this.A=new g.lN(this,250);g.B(this,this.A);this.w=new g.I(this.Pz,0,this);g.B(this,this.w);
this.Pz();this.L(a,"appresize",this.fJ);this.L(a,"presentingplayerstatechange",this.gJ);this.L(a,"ypcStateChanged",this.NN);Ny(a.N())&&this.L(a,"videoplayerreset",this.KM)};
qN=function(a){g.Gr.call(this);this.o=a;this.w=new Set;this.u=navigator.mediaSession;pN(this,"play",function(){a.playVideo()});
pN(this,"pause",function(){a.pauseVideo()});
pN(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
pN(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.L(a,"videodatachange",this.B);this.L(a,"presentingplayerstatechange",this.A);this.B()};
pN=function(a,b,c){a.u.setActionHandler(b,c?(0,g.x)(c,a):null);a.w.add(b)};
rN=function(a){g.R.call(this,{D:"div",H:"ytp-paid-content-overlay",O:{"aria-live":"assertive","aria-atomic":"true"}});this.I=new g.R({D:"div",Y:["ytp-button","ytp-paid-content-overlay-text"]});g.B(this,this.I);this.I.ca(this.element);this.M=a;this.w=null;this.F=!1;this.B=new g.lN(this.I,250,!1,100);g.B(this,this.B);this.C=this.u=null;this.A={};this.G=0;this.L(a,"videodatachange",this.V);this.L(a,"presentingplayerstatechange",this.U)};
sN=function(a,b){var c=zB(b),d=AB(b);a.u?b.videoId&&b.videoId!=a.w&&(a.u.Pe(),a.w=b.videoId,c=a.A[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.u=new g.I(a.R,d,a),g.B(a,a.u),g.ye(g.ce("ytp-paid-content-overlay-text",a.element),c))};
tN=function(a,b){a.u&&g.V(b,8)&&a.F&&(a.F=!1,a.Qb(),a.u.start())};
g.vN=function(a){g.R.call(this,{D:"div",H:"ytp-gradient-bottom"});this.w=g.oe("CANVAS");this.w.width=1;this.u=this.w.getContext("2d");this.A=NaN;this.B=g.Uy(a.N());g.uN(this,g.QK(a).getPlayerSize().height)};
g.uN=function(a,b){if(a.u){var c=Math.floor(b*(a.B?1:.4));c=Math.max(c,47);var d=c+2;if(a.A!=d){a.A=d;a.w.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.B)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";a.element.style.backgroundImage="url("+a.w.toDataURL()+")"}}};
g.wN=function(a,b,c,d){d=void 0===d?!1:d;g.Ru.call(this,b);this.Z=a;this.da=d;this.I=null;this.G=new g.Gr(this);g.B(this,this.G);this.U=new g.lN(this,c,!0,void 0,void 0,(0,g.x)(this.OE,this));g.B(this,this.U);this.u=null};
xN=function(a){a.u&&(document.activeElement&&g.xe(a.element,document.activeElement)&&(Be(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=null);g.Ir(a.G);a.I=null};
yN=function(a){return a.Ha()&&4!==a.U.state};
zN=function(a){var b={D:"div",H:"ytp-multicam-menu",O:{role:"dialog"},J:[{D:"div",H:"ytp-multicam-menu-header",J:[{D:"div",H:"ytp-multicam-menu-title",J:["Changer l'angle de la cam\u00e9ra",{D:"button",Y:["ytp-multicam-menu-close","ytp-button"],O:{"aria-label":"Fermer"},J:[g.GM()]}]}]},{D:"div",H:"ytp-multicam-menu-items"}]};g.wN.call(this,a,b,250);this.B=new g.Gr(this);g.B(this,this.B);this.L(this.o["ytp-multicam-menu-close"],"click",this.gb);this.w=a;this.C=this.o["ytp-multicam-menu-items"];this.A=
[];this.hide()};
CN=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-multicam-button","ytp-button"],O:{title:"Changer l'angle de la cam\u00e9ra","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-switch-camera"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.C=a;this.A=!1;this.u=b.fb();AN(this.u);this.B=new g.I(this.G,400,this);g.B(this,this.B);this.ka("click",(0,g.x)(c.hf,c,this.element,!1));this.L(a,"presentingplayerstatechange",g.Qa(this.w,!1));this.L(a,"videodatachange",this.F);this.w(!0);g.Ge(this,g.BN(this.u,this.element))};
DN=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.od(window.location.href);e&&d.push(e);e=g.od(a);if(g.$a(d,e)||!e&&cc(a,"/"))if(g.xo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Yc(d,a),a=d.href),a&&(d=pd(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.ds()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+gd(d).toString(36),c=c?g.wd(c):"",g.Mq(d,c,f||5))}else f=b,c="ST-"+gd(d).toString(36),
f=f?g.wd(f):"",g.Mq(c,f,5)};
g.EN=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.yd(a,b)+c;a=a instanceof g.tc?a:g.xc(a);d.href=g.uc(a)};
g.FN=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.L("EVENT_ID");d&&(b.ei||(b.ei=d));b&&DN(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.EN(a))};
g.GN=function(a,b,c){c&&DN(a,c);c=g.wc(a);c=g.uc(c);a!=c&&g.Go(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||gd(a).toString(36))};
HN=function(a){var b=!a.N().pc&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
g.IN=function(a,b,c,d){if((void 0===c||!c)&&g.iM(a))return g.Kp(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");g.FN(a,d,!0);return!1};
g.JN=function(a,b,c){if(hz(b.N())&&2!=b.getPresentingPlayerType()){if(g.iM(c))return b.isFullscreen()&&!b.N().externalFullscreen&&b.toggleFullscreen(),g.Kp(c),!0}else{var d=g.iM(c);d&&b.pauseVideo();g.FN(a,void 0,!0);d&&(g.GN(a),g.Kp(c))}return!1};
KN=function(){return{D:"div",H:"ytp-spinner-container",J:[{D:"div",H:"ytp-spinner-rotator",J:[{D:"div",H:"ytp-spinner-left",J:[{D:"div",H:"ytp-spinner-circle"}]},{D:"div",H:"ytp-spinner-right",J:[{D:"div",H:"ytp-spinner-circle"}]}]}]}};
LN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.MN=function(a,b,c){a=a.N();return g.P(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Xb?g.gM("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.ON=function(a,b,c){if(c){var d="ytp-next-button";var e=OM()}else d="ytp-prev-button",e=TM();g.R.call(this,{D:"a",Y:[d,"ytp-button"],O:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},J:[e]});this.u=a;this.M=b.fb();this.A=c;this.w=this.T=null;this.I=!1;this.F=this.G=this.B=null;this.C=!1;this.L(a,"fullscreentoggled",this.jk);this.L(a,
"videodatachange",this.jk);this.L(a,"onPlaylistUpdate",this.jk);this.A||this.L(a,"appresize",this.Rf);this.L(a,"mdxpreviousnextchange",function(){NN(this);this.Rf()});
this.jk()};
PN=function(a){a.w&&a.w.unsubscribe("shuffle",a.jk,a)};
QN=function(a){return!!a.w&&!a.A&&!!a.T&&!a.T.va&&3<=a.u.getCurrentTime()&&2!=a.u.getPresentingPlayerType()};
RN=function(a){var b=g.RK(g.KK(a.u));return b?a.A?b.hasNext():b.Qy():!1};
NN=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.u.N(),d=!0;g.P(c.experiments,"player_allow_autonav_after_playlist")&&(d=a.w&&a.w.hasNext());d=g.SK(a.u)&&(!a.A||d);var e=a.A&&g.jL(a.u),f=RN(a),k=a.A&&5==a.u.getPresentingPlayerType(),l=g.MN(a.u,"Suivante","SHIFT+n"),m=g.MN(a.u,"Pr\u00e9c\u00e9dente","SHIFT+p");if(k)b.title="D\u00e9marrer la vid\u00e9o";else if(a.C)b.title="Revoir";else if(d){var n=null;a.w&&(n=a.w.ya(a.A?pC(a.w):qC(a.w)));if(n){if(n.videoId){var p=
a.w.listId;b.url=c.getVideoUrl(n.videoId,p?p.toString():void 0)}b.text=n.title;b.duration=n.lengthSeconds?g.hM(n.lengthSeconds):null;b.preview=n.tc("mqdefault.jpg")}b.title=a.A?l:m}else e&&(a.T&&a.T.suggestions&&a.T.suggestions.length&&(c=g.jM(c,a.T.suggestions[0]),b.url=c.kh(),b.text=c.title,b.duration=c instanceof g.aB?g.hM(c.lengthSeconds):null,b.preview=c.tc("mqdefault.jpg")),b.title=l);b.disabled=!e&&!d&&!f&&!k;a.update(b);a.I=!!b.url;e||d||a.C||f||k?a.B||(a.B=g.BN(a.M,a.element),a.G=a.ka("click",
a.iJ,a)):a.B&&(a.B(),a.B=null,a.bb(a.G),a.G=null);SN(a.M)};
TN=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-settings-button"],O:{"aria-haspopup":"true","aria-owns":Lu(),title:"Param\u00e8tres","data-tooltip-target-id":"ytp-settings-button"},J:[g.VM()]});this.A=c;this.u=a;this.B=!0;this.ka("click",this.C);this.L(a,"onPlaybackQualityChange",this.w);this.L(a,"videodatachange",this.w);this.L(a,"webglsettingschanged",this.w);this.L(a,"appresize",this.Rf);g.Ge(this,g.BN(b.fb(),this.element));g.kL(this.u,this.element,this,28663);this.w();this.Rf(g.QK(a).getPlayerSize())};
UN=function(a,b){a.B=!!b;a.Rf(g.QK(a.u).getPlayerSize())};
VN=function(a,b,c,d,e){var f={D:"div",H:"ytp-panel"};if(c){var k="ytp-panel-title";var l={D:"div",H:"ytp-panel-header",J:[{D:"button",Y:["ytp-button",k],J:[c]}]};if(e){var m="ytp-panel-options";l.J.unshift({D:"button",Y:["ytp-button",m],J:[d]})}f.J=[l]}g.Ru.call(this,f);this.aa=b;b.ca(this.element);this.ma=!1;c&&(this.L(this.o[k],"click",this.wa),this.ma=!0,e&&this.L(this.o[m],"click",e));b.subscribe("size-change",this.oa,this);this.L(a,"fullscreentoggled",this.oa)};
g.WN=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.Ru({D:"div",H:"ytp-panel-menu",O:f});VN.call(this,a,b,c,d,e);this.G=b;g.B(this,this.G);this.w=[]};
g.XN=function(a,b,c){if(void 0===c?0:c)a.w.push(b),a.G.element.appendChild(b.element);else{c=g.pb(a.w,b,Zka);if(0<=c)return;c=~c;g.kb(a.w,c,0,b);g.se(a.G.element,b.element,c)}b.subscribe("size-change",a.da,a);a.G.S("size-change")};
g.YN=function(a,b){b.unsubscribe("size-change",a.da,a);a.ea()||(g.db(a.w,b),a.G.element.removeChild(b.element),a.G.S("size-change"))};
g.ZN=function(a){for(var b=g.q(a.w),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.da,a);a.w=[];g.re(a.G.element);a.G.S("size-change")};
Zka=function(a,b){return b.priority-a.priority};
g.$N=function(a,b){g.wN.call(this,a,{D:"div",Y:["ytp-popup",b||null]},100,!0);this.w=[];this.size=new g.Sd(0,0);this.C=this.F=null;this.M=this.R=0;this.ka("keydown",this.hJ)};
bO=function(a){g.Mh(a.element,a.R||"100%",a.M||"100%");var b=aO(a);b.element.style.minWidth="250px";b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.aa.element.style.height="";var c=g.Nh(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.ma&&(d=g.Nh(b.o["ytp-panel-header"]).height);b.aa.element.style.height=c.height-
d+"px";d=b.element;var e=d.scrollWidth-d.clientWidth;0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,b.element.style.width=c.width+"px");a.size=c};
g.dO=function(a,b){var c=a.w[a.w.length-1];a.w.push(b);cO(a,c,b)};
eO=function(a){var b=a.w.pop(),c=a.w[0];a.w=[c];cO(a,b,c,!0)};
cO=function(a,b,c,d){fO(a);aO(a);g.Bn(c.element,"ytp-panel-animate-back")||g.Bn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Ek,a),b.unsubscribe("back",a.Ih,a));c.subscribe("size-change",a.Ek,a);c.subscribe("back",a.Ih,a);if(a.Ha()){g.J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;bO(a);g.Mh(a.element,e);a.F=new g.I(g.Qa(a.HO,b,c,d),20,a);a.F.start()}else c.ca(a.element),
b&&g.Nu(b)};
aO=function(a){return a.w[a.w.length-1]};
fO=function(a){a.F&&g.un(a.F);a.C&&g.un(a.C)};
g.gO=function(a,b){g.Tu.call(this,g.Uu({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",H:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.ka("click",this.onClick)};
hO=function(a,b){g.gO.call(this,"Annotations",5);this.K=a;this.w=b;this.u=!1;this.L(a,"videodatachange",this.sa);this.L(a,"onApiChange",this.sa);this.subscribe("select",this.A,this);this.sa()};
g.iO=function(a,b,c,d,e,f){g.Tu.call(this,g.Uu({"aria-haspopup":"true"}),b,a);this.u=d;this.F=!1;this.A=null;this.options={};this.B=new g.WN(c,void 0,a,e,f);g.B(this,this.B);this.ka("keydown",this.TH);this.ka("click",this.open)};
jO=function(a){if(a.A){var b=a.options[a.A];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.A=null}};
g.kO=function(a,b){g.ZN(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.options[f],l=f===a.A;l&&(d=!0);k&&k.priority===-e?(l=a,g.Su(l.options[f],l.Ze(f,!0)),delete a.options[f]):k=a.Wq(f,-e,l);c[f]=k;g.XN(a.B,k,!0)}d||(a.A=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
lO=function(a,b){g.iO.call(this,"Piste audio",2,a,b);this.K=a;this.tracks={};this.w=new g.R({D:"div",J:[{D:"span",W:"Piste audio"},{D:"span",H:"ytp-menuitem-label-count",W:"{{content}}"}]});g.B(this,this.w);g.Su(this,this.w);this.L(a,"videodatachange",this.sa);this.L(a,"onPlaybackAudioChange",this.sa);this.sa()};
mO=function(a,b){g.gO.call(this,"Lecture automatique",6);this.K=a;this.B=b;this.w=!1;this.u=[];this.L(a,"presentingplayerstatechange",this.A);this.subscribe("select",this.F,this);this.A()};
nO=function(a,b){g.iO.call(this,"Qualit\u00e9",1,a,b);this.K=a;this.C={};this.w="unknown";g.J(this.B.element,"ytp-quality-menu");this.L(a,"videodatachange",this.dm);this.L(a,"videoplayerreset",this.dm);this.L(a,"onPlaybackQualityChange",this.lz);this.dm()};
oO=function(a,b,c){a=a.C[b];var d=g.Xs[b];c={D:"span",Y:c,J:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.J.push(" "),c.J.push({D:"sup",H:"ytp-swatch-color",W:e}));return c};
pO=function(a,b,c,d,e,f,k){g.R.call(this,{D:"div",H:"ytp-slider-section",O:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{D:"div",H:"ytp-slider",J:[{D:"div",H:"ytp-slider-handle"}]}]});this.minimumValue=c;this.maximumValue=d;this.C=this.maximumValue-this.minimumValue;this.M=e;this.R=f;this.V=this.o["ytp-slider-section"];this.w=this.o["ytp-slider"];this.U=this.o["ytp-slider-handle"];this.I=
a;this.G=b;this.u=k?k:c;this.F=new g.Mr(this.w,!0);g.B(this,this.F);this.F.subscribe("dragmove",this.mJ,this);this.L(this.element,"keydown",this.nJ);this.L(this.element,"wheel",this.lJ);this.cj(this.u);this.la("minvalue",this.minimumValue);this.la("maxvalue",this.maximumValue)};
rO=function(a){var b=a.getAvailablePlaybackRates(),c=a.getPlaybackRate();pO.call(this,.05,.05,b[0],b[b.length-1],150,20,c);g.J(this.w,"ytp-speedslider");this.B=a;this.A=g.oe("P");g.J(this.A,"ytp-speedslider-text");a=this.A;b=this.w;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.ba=uaa(this.Z,this);qO(this);this.L(this.B,"onPlaybackRateChange",this.aa)};
qO=function(a){a.A.textContent=sO(a,a.u)+"x"};
sO=function(a,b){var c=parseFloat(g.Md(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!=d&&(e=c-.01*d);return parseFloat(e.toFixed(2))};
tO=function(a){g.Ru.call(this,{D:"div",H:"ytp-speedslider-component"});this.u=new rO(a);g.B(this,this.u);this.element.appendChild(this.u.element)};
uO=function(a){var b=new tO(a);VN.call(this,a,b,"Personnalis\u00e9");g.B(this,b)};
vO=function(a,b){var c=new uO(a);g.iO.call(this,"Vitesse de lecture",4,a,b,"Personnalis\u00e9",function(){g.dO(b,c)});
g.B(this,c);this.K=a;this.C=this.w=this.I=null;this.G=this.K.getAvailablePlaybackRates();this.L(a,"presentingplayerstatechange",this.sa);this.sa()};
xO=function(a,b){var c=wO(b);a.options[c]?a.Db(c):b===a.C&&a.w&&(a.Db(a.w),a.qb(b.toString()))};
zO=function(a){g.kO(a,a.G.map(wO));a.w=null;a.C=null;var b=a.K.getPlaybackRate();a.G.includes(b)||(yO(a,b),g.iO.prototype.fd.call(a,a.w))};
yO=function(a,b){a.C=b;a.w=g.gM("($CURRENT_CUSTOM_SPEED) personnalis\u00e9",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.G.map(wO);c.unshift(a.w);g.kO(a,c)};
wO=function(a){return a.toString()};
AO=function(a){var b=null;try{b=a.toLocaleString("fr",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
CO=function(a,b,c,d){var e=new g.WN(b,void 0,"Remplacer les styles");g.iO.call(this,d.text||"",a,b,c,"Remplacer les styles",function(){g.dO(c,e)});
var f=this;g.J(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.vb(a,this.mz,this);this.G=e;g.B(this,this.G);b=new g.Tu({D:"div",H:"ytp-menuitemtitle",W:"Autoriser l'utilisation d'un style diff\u00e9rent pour la vid\u00e9o"},0);g.B(this,b);g.XN(this.G,b,!0);this.C=new g.Tu({D:"div",H:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},J:[{D:"div",H:"ytp-menuitem-label",W:"Oui"}]},-1);g.B(this,this.C);g.XN(this.G,this.C,!0);this.L(this.C.element,
"click",function(){BO(f,!0)});
this.w=new g.Tu({D:"div",H:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},J:[{D:"div",H:"ytp-menuitem-label",W:"Non"}]},-2);g.B(this,this.w);g.XN(this.G,this.w,!0);this.L(this.w.element,"click",function(){BO(f,!1)});
g.kO(this,(0,g.Cc)(a,this.mz))};
BO=function(a,b){a.S("settingChange",a.setting+"Override",!b);a.u.Ih()};
EO=function(a,b){g.WN.call(this,a,void 0,"Options");var c=this;this.u={};for(var d=0;d<g.DO.length;d++){var e=g.DO[d],f=new CO(-d,a,b,e);g.B(this,f);f.subscribe("settingChange",this.A,this);this.u[e.option.toString()]=f;g.XN(this,f,!0)}d=new g.Tu(g.Uu(),-g.DO.length,"R\u00e9initialiser");g.B(this,d);d.ka("click",function(){c.A("reset",!0)});
g.XN(this,d,!0)};
FO=function(a,b){for(var c=g.q(Object.keys(b)),d=c.next();!d.done;d=c.next()){var e=d.value;if(d=a.u[e]){var f=b[e].toString();e=!!b[e+"Override"];d.options[f]&&(d.Db(f),d.C.element.setAttribute("aria-checked",String(!e)),d.w.element.setAttribute("aria-checked",String(e)))}}};
GO=function(a,b){g.iO.call(this,"Traduire automatiquement",0,a,b);this.languages={}};
$ka=function(a,b){a.languages=g.vb(b,a.w,a);g.kO(a,(0,g.Cc)(b,a.w))};
IO=function(a,b){g.iO.call(this,"Sous-titres",3,a,b,"Options",function(){g.dO(b,c.C)});
var c=this;this.K=a;this.tracks={};this.G=new g.I(function(){HO(c,!1)},3E3);
this.w=new GO(this.K,this.u);this.C=new EO(this.K,this.u);this.I=new g.R({D:"div",J:[{D:"span",W:"Sous-titres"},{D:"span",H:"ytp-menuitem-label-count",W:"{{content}}"}]});g.B(this,this.G);g.B(this,this.I);g.Su(this,this.I);g.B(this,this.w);this.w.subscribe("select",this.WH,this);g.B(this,this.C);this.C.subscribe("settingChange",this.VH,this);b.subscribe("show",this.dN,this);this.L(a,"videodatachange",this.sa);this.L(a,"onApiChange",this.sa);this.L(a,"onCaptionsTrackListChanged",this.sa);this.L(a,
"captionschanged",this.sa);this.sa()};
HO=function(a,b){a.K.setOption("captions","sampleSubtitles",b)};
JO=function(a){g.$N.call(this,a,"ytp-settings-menu");this.B=a;this.A=new g.WN(a);g.B(this,this.A);this.V=null;this.aa=!1;this.hide();g.dO(this,this.A)};
KO=function(a){if(!a.aa){a.aa=!0;var b=new nO(a.B,a);g.B(a,b);b=new IO(a.B,a);g.B(a,b);b=new hO(a.B,a);g.B(a,b);a.B.N().Ia&&(b=new vO(a.B,a),g.B(a,b));a.B.N().nb&&(b=new mO(a.B,a),g.B(a,b));b=new lO(a.B,a);g.B(a,b);UN(a.V,a.A.w.length)}};
ala=function(a,b){a.V=b;a.element.id=b.element.getAttribute("aria-owns")};
LO=function(){g.A.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.rn(this.o,null,this);g.B(this,this.delay)};
MO=function(a,b){if("path"===b.D)return b.O.d;if(b.J)for(var c=0;c<b.J.length;c++){var d=b.J[c];if(d&&"string"!==typeof d&&(d=MO(a,d)))return d}};
QO=function(a,b,c){c=MO(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Lu();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=NO(e),m=NO(c);OO(a,function(n){d.setAttribute("d",PO(l,m,n))},200)};
OO=function(a,b,c){a.u=b;a.startTime=(0,g.N)();a.duration=c;a.o()};
NO=function(a){var b=[];a=a.match(bla);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
PO=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
RO=function(a,b){g.R.call(this,{D:"button",Y:["ytp-size-button","ytp-button"],O:{title:"{{title}}"},W:"{{icon}}"});this.u=a;this.B=b.fb();this.A=null;this.C=new LO;g.B(this,this.C);this.L(a,"sizestylechange",this.w);this.L(a,"fullscreentoggled",this.w);this.L(a,"presentingplayerstatechange",this.w);this.w();this.ka("click",this.F);g.Ge(this,g.BN(this.B,this.element))};
SO=function(a,b){g.R.call(this,{D:"button",Y:["ytp-airplay-button","ytp-button"],O:{title:"AirPlay"},W:"{{icon}}"});this.K=a;this.ka("click",this.onClick);this.L(a,"airplayactivechange",this.sa);this.L(a,"airplayavailabilitychange",this.sa);this.sa();g.Ge(this,g.BN(b.fb(),this.element))};
TO=function(a,b,c){g.R.call(this,{D:"div",Y:["ytp-chapter-container"],J:[{D:"div",H:"ytp-chapter-title",J:[{D:"span",O:{"aria-hidden":"true"},H:"ytp-chapter-title-prefix",W:"\u2022"},{D:"span",W:"{{title}}"}]}]});this.K=a;this.w=c;this.u=""};
UO=function(a,b,c,d,e){var f=b.ip/b.rows,k=Math.min(c/(b.jp/b.columns),d/f),l=b.jp*k,m=b.ip*k;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,t=-b.column*n,u=-b.row*p;e&&45>=f&&(p-=1/k);n-=2/k;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+") "+t+"px "+u+"px/"+l+"px "+m+"px"};
g.VO=function(a){g.R.call(this,{D:"div",H:"ytp-storyboard-framepreview",J:[{D:"div",H:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.o["ytp-storyboard-framepreview-img"];this.w=null;this.A=NaN;this.events=new g.Gr(this);this.u=new g.lN(this,100);g.B(this,this.events);g.B(this,this.u);this.L(this.api,"presentingplayerstatechange",this.F)};
WO=function(a,b){var c=!!a.w;a.w=b;a.w?(c||(a.events.L(a.api,"videodatachange",function(){WO(a,a.api.ue())}),a.events.L(a.api,"progresssync",a.G),a.events.L(a.api,"appresize",a.B)),a.A=NaN,XO(a),a.u.show(200)):(c&&g.Ir(a.events),a.u.hide(),a.u.stop())};
XO=function(a){var b=a.w,c=a.api.getCurrentTime(),d=g.QK(a.api).getPlayerSize(),e=SA(b,d.width);c=XA(b,e,c);c!==a.A&&(a.A=c,UA(b,c,d.width),b=b.ti(c,d.width),UO(a.C,b,d.width,d.height))};
YO=function(a,b){g.R.call(this,{D:"button",Y:["ytp-fullerscreen-edu-button","ytp-button"],J:[{D:"div",Y:["ytp-fullerscreen-edu-text"],W:"Faites d\u00e9filer la page pour afficher plus de d\u00e9tails"},{D:"div",Y:["ytp-fullerscreen-edu-chevron"],J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-chevron-down"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.C=b;this.A=new g.lN(this,250,
void 0,100);this.B=this.w=!1;g.kL(a,this.element,this,61214);this.C=b;g.B(this,this.A);this.L(a,"fullscreentoggled",this.sa);this.L(a,"presentingplayerstatechange",this.sa);this.ka("click",this.onClick);this.sa()};
g.ZO=function(a,b){g.R.call(this,{D:"button",Y:["ytp-fullscreen-button","ytp-button"],O:{title:"{{title}}"},W:"{{icon}}"});this.K=a;this.u=b;this.message=null;this.w=g.BN(this.u.fb(),this.element);this.A=new g.I(this.fE,2E3,this);g.B(this,this.A);this.L(a,"fullscreentoggled",this.jz);this.L(a,"presentingplayerstatechange",this.sa);this.ka("click",this.onClick);if(Cr()){var c=g.QK(this.K);this.L(c,efa(),this.Zt);this.L(c,Fr(document),this.OH)}a.N().da||this.disable();this.sa();this.jz(a.isFullscreen())};
$O=function(a,b){g.R.call(this,{D:"button",Y:["ytp-miniplayer-button","ytp-button"],O:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},J:[RM()]});this.K=a;this.visible=!1;this.ka("click",this.onClick);this.L(a,"fullscreentoggled",this.sa);this.la("title",g.MN(a,"Lecteur r\u00e9duit","i"));g.Ge(this,g.BN(b.fb(),this.element));g.kL(a,this.element,this,62946);this.sa()};
aP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-mute-button","ytp-button"],O:a.N().R?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},W:"{{icon}}"});this.K=a;this.u=null;this.C=this.I=this.F=this.R=NaN;this.U=this.G=null;this.B=[];this.A=[];this.visible=!1;this.w=null;var c=this.K.N();this.la("icon",$M());this.tooltip=b.fb();c.F||(this.u=new g.Mu({D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"defs",J:[{D:"clipPath",O:{id:"ytp-svg-volume-animation-mask"},
J:[{D:"path",O:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",O:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",H:"ytp-svg-volume-animation-mover",O:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",O:{id:"ytp-svg-volume-animation-slash-mask"},J:[{D:"path",H:"ytp-svg-volume-animation-mover",O:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Na:!0,Y:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],O:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
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"}},{D:"path",Na:!0,Y:["ytp-svg-fill","ytp-svg-volume-animation-hider"],O:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]}),g.B(this,this.u),this.G=this.u.o["ytp-svg-volume-animation-speaker"],this.U=this.G.getAttribute("d"),this.B=g.be("ytp-svg-volume-animation-mover",this.u.element),this.A=
g.be("ytp-svg-volume-animation-hider",this.u.element));this.V=new LO;g.B(this,this.V);this.M=new LO;g.B(this,this.M);this.ka("click",this.PL);this.L(a,"appresize",this.kz);this.L(a,"onVolumeChange",this.PH);var d=null;c.R?g.Ge(this,g.BN(b.fb(),this.element)):(d="Votre navigateur ne prend pas en charge les changements de volume. $BEGIN_LINKEn savoir plus$END_LINK".split(/\$(BEGIN|END)_LINK/),d=new g.wN(a,{D:"span",Y:["ytp-popup","ytp-generic-popup"],O:{tabindex:"0"},J:[d[0],{D:"a",O:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.C},W:d[2]},d[4]]},100,!0),g.B(this,d),d.hide(),d.subscribe("show",(0,g.x)(b.nl,b,d)),g.iL(a,d.element,4));this.message=d;g.kL(a,this.element,this,28662);this.kz(g.QK(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
bP=function(a,b){a.R=b;var c=a.U;b&&(c+=PO(dla,ela,b));a.G.setAttribute("d",c)};
cP=function(a,b){a.I=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=$M():e=a.u;for(c=0;c<a.A.length;c++)a.A[c].style.display=0===b?"none":"";e!==a.w&&(a.la("icon",e),a.w=e)};
dP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-pip-button","ytp-button"],O:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},J:[RM()]});this.K=a;this.la("title","Incrustation d'image");this.ka("click",this.onClick);g.Ge(this,g.BN(b.fb(),this.element))};
g.fP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-play-button","ytp-button"],O:{title:"{{title}}","aria-label":"{{label}}"},W:"{{icon}}"});this.K=a;this.u=null;this.transition=new LO;this.tooltip=b.fb();g.B(this,this.transition);this.L(a,"fullscreentoggled",this.w);this.L(a,"presentingplayerstatechange",this.A);this.L(a,"videodatachange",this.w);eP(this,g.PK(a));this.ka("click",this.B,this);g.Ge(this,g.BN(b.fb(),this.element))};
gP=function(a){switch(a){case 1:return SM();case 2:return QM();case 3:return g.UM();case 4:return WM();default:return null}};
eP=function(a,b){var c=g.GB(a.K.getVideoData()),d=!1;if(g.OC(b))var e=c?4:2;else g.V(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.MN(a.K,"Pause","k");break;case 3:c="Revoir";break;case 1:c=g.MN(a.K,"Lire","k");break;case 4:c="Arr\u00eater la lecture en direct"}3===e?a.update({title:c,label:null,icon:gP(e)}):(a.update({title:c,label:c}),(c=gP(e))&&a.u&&3!==a.u&&!a.K.N().F?QO(a.transition,a.element,c):a.la("icon",c));SN(a.tooltip);a.u=e}};
hP=function(a,b){this.u=a;this.o=b};
iP=function(a,b){return a.u+b*a.getLength()};
jP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.u)/a.getLength();return g.Md(a,0,1)};
kP=function(){g.R.call(this,{D:"div",H:"ytp-chapter-hover-container",J:[{D:"div",H:"ytp-progress-bar-padding"},{D:"div",H:"ytp-progress-list",J:[{D:"div",Y:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",H:"ytp-load-progress"},{D:"div",H:"ytp-hover-progress"},{D:"div",H:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.o["ytp-ad-progress-list"];this.A=this.o["ytp-load-progress"];this.B=this.o["ytp-play-progress"];this.w=this.o["ytp-hover-progress"];
this.u=this.o["ytp-chapter-hover-container"]};
lP=function(a,b){g.sh(a.u,"width",b)};
mP=function(a,b){g.sh(a.u,"margin-right",b+"px")};
nP=function(){this.u=this.position=this.A=this.o=this.B=this.w=this.width=NaN};
g.pP=function(a,b){g.Ru.call(this,{D:"div",H:"ytp-progress-bar-container",O:{"aria-disabled":"true"},J:[{D:"div",Y:["ytp-progress-bar",a.N().o?"ytp-mobile":""],O:{tabindex:"0",role:"slider","aria-label":"Barre de lecture","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},J:[{D:"div",H:"ytp-chapters-container"},{D:"div",H:"ytp-marker-crenellation-list"},{D:"div",H:"ytp-clip-start-exclude"},{D:"div",H:"ytp-clip-end-exclude"},
{D:"div",H:"ytp-scrubber-container",J:[{D:"div",Y:["ytp-scrubber-button","ytp-swatch-background-color"],J:[{D:"div",H:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",H:"ytp-bound-time-left",W:"{{boundTimeLeft}}"},{D:"div",H:"ytp-bound-time-right",W:"{{boundTimeRight}}"},{D:"div",H:"ytp-clip-start",O:{title:"{{clipstarttitle}}"},W:"{{clipstarticon}}"},{D:"div",H:"ytp-clip-end",O:{title:"{{clipendtitle}}"},W:"{{clipendicon}}"}]});var c=this;this.api=a;this.Wa=!1;this.B=this.Xb=0;this.Z=1;this.Yb=this.M=
0;this.C=null;this.U=this.Ca=0;this.wa=this.o["ytp-marker-crenellation-list"];this.V={};this.Aa={};this.clipEnd=Infinity;this.ma=this.o["ytp-clip-end"];this.Ia=new g.Mr(this.ma,!0);this.nb=this.o["ytp-clip-end-exclude"];this.pc=this.o["ytp-clip-start-exclude"];this.clipStart=0;this.oa=this.o["ytp-clip-start"];this.Ka=new g.Mr(this.oa,!0);this.F=this.da=0;this.Rb=this.o["ytp-progress-bar"];this.Ea=this.o["ytp-chapters-container"];this.u=[];this.aa=-1;this.Ma=g.Q(this.api.N().experiments,"web_macro_markers_snapping_threshold");
this.ga=this.R=0;this.G=null;this.ac=this.o["ytp-scrubber-button"];this.qc=this.o["ytp-scrubber-container"];this.za=new g.Qd;this.rb=new nP;this.w=new hP(0,0);this.I=null;this.A=this.Ta=!1;this.yb=null;this.tooltip=b.fb();g.Ge(this,function(){g.BN(c.tooltip,c.ma)});
g.B(this,this.Ia);this.Ia.subscribe("hoverstart",this.rA,this);this.Ia.subscribe("hoverend",this.qA,this);this.L(this.ma,"click",this.Dp);g.Ge(this,function(){g.BN(c.tooltip,c.oa)});
g.B(this,this.Ka);this.Ka.subscribe("hoverstart",this.rA,this);this.Ka.subscribe("hoverend",this.qA,this);this.L(this.oa,"click",this.Dp);oP(this);this.api.N().fa("web_wn_macro_markers")&&this.L(a,"resize",this.Wu);this.L(a,"presentingplayerstatechange",this.RH);this.L(a,"videodatachange",this.Sx);this.L(a,"videoplayerreset",this.yF);this.L(a,"cuerangesadded",this.KC);this.L(a,"cuerangesremoved",this.gO);this.L(a,"cuerangemarkersupdated",this.KC);this.L(a,"onLoopRangeChange",this.JC);this.updateVideoData(a.getVideoData(),
!0);this.JC(a.getLoopRange())};
oP=function(a){if(0===a.u.length){var b=new kP;a.u.push(b);g.B(a,b);b.ca(a.Ea,0)}for(;1<a.u.length;)a.u.pop().dispose();lP(a.u[0],"100%");a.u[0].startTime=0;a.u[0].title=""};
qP=function(a){var b=[];a.playerOverlays&&(a=a.playerOverlays.playerOverlayRenderer)&&(a=a.decoratedPlayerBarRenderer)&&(a=a.decoratedPlayerBarRenderer)&&(a=a.playerBar)&&(a=a.chapteredPlayerBarRenderer)&&a.chapters&&(b=a.chapters);return b};
rP=function(a,b){var c=0,d=!1,e=a.u.length,f=1E3*a.w.o;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.B){for(var k=a.B-(a.A?3:2)*a.R,l=0===a.ga?3:k*a.ga,m=g.q(a.u),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.u[c].startTime;c<e-1&&(m=a.u[c+1].startTime-a.u[c].startTime,mP(a.u[c],a.A?3:2));a.api.N().fa("web_wn_macro_markers")&&g.K(a.u[c].u,"ytp-exp-chapter-hover-container",1<a.u.length);n=(0===f?0:m/f*k)+a.u[c].width;if(n>l)a.u[c].width=n;else{a.u[c].width=0;var p=
a,t=c,u=p.u[t-1];void 0!==u&&0<u.width?u.width+=n:t<p.u.length-1&&(p.u[t+1].width+=n);mP(p.u[t],0);b&&(a.R--,m/f>a.ga&&(a.ga=m/f),d=!0)}c++}}return d};
g.tP=function(a){sP(a);var b=a.api.getCurrentTime();(b<a.clipStart||b>a.clipEnd)&&a.Dp()};
sP=function(a){if(a.B){var b=a.api.getProgressState(),c=new hP(b.seekableStart,b.seekableEnd),d=jP(c,b.loaded,0);b=jP(c,b.current,0);var e=a.w.u!==c.u||a.w.o!==c.o;a.w=c;uP(a,b,d);e&&vP(a);wP(a)}};
xP=function(a,b,c){return c>=a.u.length?!1:Math.abs(b-a.u[c].startTime/1E3)/a.w.o*(a.B-(a.A?3:2)*a.R)<a.Ma};
yP=function(a,b,c,d){b=g.Md(b,0,a.A?60:40);a.M=b;var e=a.Z,f=Math.max(a.w.getLength()/a.B,1);a.Z=b/(a.A?60:40)*(f-1)+1;b=a.B*a.Z;a.U=g.Md(d*b-c,0,b-a.B);e!==a.Z&&vP(a)};
vP=function(a){var b=zP(a),c=-b.w/b.o,d=(-b.w+b.width)/b.o,e=ve(a.wa),f=0;if(a.M>.2*(a.A?60:40)){var k=c*(a.w.getLength()/60),l=d*(a.w.getLength()/60);for(k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.oe("DIV"),a.wa.appendChild(m));f++;0===k%60?An(m,"ytp-60m-progress"):0===k%30?An(m,"ytp-30m-progress"):0===k%15?An(m,"ytp-15m-progress"):An(m,"ytp-1m-progress");var n=(60*k/a.w.getLength()-c)*b.o;m.style.left=n+"px"}}b=a.Ta?a.w.o:0;a.update({boundTimeLeft:g.hM(iP(a.w,c)-b),boundTimeRight:g.hM(iP(a.w,d)-
b)});for(c=e.length-1;c>=f;c--)g.te(e[c]);a.element.style.height=a.M+(a.A?8:5)+"px";a.S("height-change",a.M);a.ac.style.height=a.M+(a.A?20:13)+"px";e=g.q(Object.keys(a.V));for(f=e.next();!f.done;f=e.next())AP(a,f.value);BP(a);uP(a,a.F,a.da)};
zP=function(a){var b=a.za.x,c=a.B*a.Z;b=g.Md(b,0,a.B);a.rb.update(b,a.B,-a.U,-(c-a.U-a.B));return a.rb};
uP=function(a,b,c){a.F=b;a.da=c;var d=zP(a),e=a.w.o,f=iP(a.w,a.F),k=g.gM("$PLAY_PROGRESS sur $DURATION",{PLAY_PROGRESS:g.hM(f,!0),DURATION:g.hM(e,!0)});if(a.api.N().fa("web_wn_macro_markers")){var l=CP(a,1E3*f);k=(l=a.u[l].title)?l+" "+k:k}a.update({ariamin:Math.floor(a.w.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:k});e=a.clipStart;f=a.clipEnd;a.I&&2!==a.api.getPresentingPlayerType()&&(e=a.I.startTimeMs/1E3,f=a.I.endTimeMs/1E3);e=jP(a.w,e,0);k=jP(a.w,f,1);f=g.Md(b,e,k);c=g.Md(c,e,
k);k=b*d.o+d.w;if(a.api.N().fa("web_wn_macro_markers")){k=b*a.w.o*1E3;l=-1;for(var m=g.q(a.u),n=m.next();!n.done;n=m.next())n=n.value,k>n.startTime&&0<n.width&&l++;k=b*(d.o-(a.A?3:2)*a.R)+(a.A?3:2)*(0>l?0:l)+d.w}g.sh(a.qc,"transform","translateX("+k+"px)");a.api.N().fa("web_wn_macro_markers")?(DP(a,d,e,f,"PLAY_PROGRESS"),DP(a,d,e,c,"LOAD_PROGRESS")):(EP(a,a.u[0].B,d,e,f),EP(a,a.u[0].A,d,e,c))};
DP=function(a,b,c,d,e){var f=a.u.length;b=b.o-a.R*(a.A?3:2);var k=c*b;b*=d;d=FP(a,k);c=FP(a,b);k=Math.max(k-GP(a,d),0);for(var l=d;l<f;l++)a.u[l].ua(e).style.left=d===l?k+"px":"0";for(f=d;f<c;f++)l=a.u[f].width,HP(a,a.u[f].ua(e),f===d?l-k:l,l);f=a.u[c].width;b=g.Md(b-GP(a,c),0,f);d===c&&(b-=k);HP(a,a.u[c].ua(e),b,f);f=a.u.length;for(c+=1;c<f;c++)HP(a,a.u[c].ua(e),0,a.u[c].width);for(c=0;c<d;c++)HP(a,a.u[c].ua(e),0,a.u[c].width)};
GP=function(a,b){if(b>=a.u.length)return a.B;for(var c=0,d=0;d<b;)c+=a.u[d].width,d++;return c};
HP=function(a,b,c,d,e){e||a.api.N().o?b.style.width=c+"px":g.sh(b,"transform","scalex("+(d?c/d:0)+")")};
FP=function(a,b,c){var d=0;if(void 0===c?0:c){c=b;for(var e=a.u.length,f=0,k=g.q(a.u),l=k.next();!l.done;l=k.next())if(l=l.value,0!==l.width)if(b>l.width)b-=l.width,b-=a.A?3:2,f++;else break;b=c-(f===e?e-1:f)*(a.A?3:2)}c=g.q(a.u);for(e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.u.length?d-1:d};
CP=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
EP=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.w,0)+"px";HP(a,b,g.Md((e-d)*c.o+c.w,0,c.width),c.width,void 0===f?!1:f)};
g.IP=function(a,b,c,d){a.Xb=b;a.B=c;a.A=d;vP(a);a.api.N().fa("web_wn_macro_markers")&&1===a.u.length&&(a.u[0].width=c||0)};
BP=function(a){var b=!!a.I&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.I?(c=a.I.startTimeMs/1E3,d=a.I.endTimeMs/1E3):(e=c>a.w.u,f=0<a.w.o&&d<a.w.o);g.K(a.element,"ytp-loop-range-enabled",b);g.K(a.element,"ytp-clip-start-enabled",e);g.K(a.element,"ytp-clip-end-enabled",f);b=e?jP(a.w,c,0):0;d=f?jP(a.w,d,1):1;a.oa.style.left=Math.round(1E3*b)/10+"%";a.ma.style.left=Math.round(1E3*d)/10+"%";a.pc.style.width=Math.round(1E3*b)/10+"%";a.nb.style.left=Math.round(1E3*d)/10+
"%";a.nb.style.width=Math.round(1E3*(1-d))/10+"%"};
wP=function(a){var b=zP(a);if(a.api.N().fa("web_wn_macro_markers")){DP(a,b,a.F,Math.max(b.u,a.F),"HOVER_PROGRESS");var c=b.o-(a.A?3:2)*a.R,d=FP(a,a.F*c);c=FP(a,b.u*c);for(var e=d;e<=c;)g.K(a.u[e].w,"ytp-hover-progress-light",b.u>a.F),e++;g.K(a.ac,"ytp-scrubber-button-hover",d===c&&1<a.u.length)}else EP(a,a.u[0].w,b,a.F,b.u),g.K(a.u[0].w,"ytp-hover-progress-light",b.u>a.F)};
AP=function(a,b){var c=a.V[b],d=a.Aa[b],e=zP(a),f=jP(a.w,c.start/1E3,0),k=cia(c,a.A)/e.width;var l=jP(a.w,c.end/1E3,1);k!==Number.POSITIVE_INFINITY&&(f=g.Md(f,0,l-k));l=Math.min(l,f+k);c.color&&(d.style.background=c.color);EP(a,d,e,f,l,!0)};
JP=function(a,b){var c=b.getId();a.V[c]===b&&(g.te(a.Aa[c]),delete a.V[c],delete a.Aa[c])};
KP=function(a,b){b?a.G||(a.element.removeAttribute("aria-disabled"),a.G=new g.Mr(a.Rb,!0),a.G.subscribe("hovermove",a.rM,a),a.G.subscribe("hoverend",a.qM,a),a.G.subscribe("dragstart",a.pM,a),a.G.subscribe("dragmove",a.tM,a),a.G.subscribe("dragend",a.sM,a),a.yb=a.ka("keydown",a.SH)):a.G&&(a.element.setAttribute("aria-disabled","true"),a.bb(a.yb),a.G.cancel(),a.G.dispose(),a.G=null)};
g.LP=function(a){var b=2*a.B*g.iz();return 1E3*a.w.getLength()/a.api.getPlaybackRate()/b};
MP=function(a,b,c){g.R.call(this,{D:"button",H:"ytp-button",O:{title:"Regarder sur un t\u00e9l\u00e9viseur","aria-haspopup":"true"},W:"{{icon}}"});this.K=a;this.w=c;this.u=null;this.L(a,"onMdxReceiversChange",this.sa);this.L(a,"presentingplayerstatechange",this.sa);this.L(a,"appresize",this.sa);this.sa();this.ka("click",this.A,this);g.Ge(this,g.BN(b.fb(),this.element))};
NP=function(a,b){g.R.call(this,{D:"button",Y:["ytp-subtitles-button","ytp-button"],O:{"aria-pressed":"{{pressed}}",title:g.MN(a,"Sous-titres","c")},J:[XM()]});this.K=a;this.L(a,"videodatachange",this.sa);this.L(a,"appresize",this.sa);this.L(a,"onApiChange",this.sa);this.L(a,"onCaptionsTrackListChanged",this.sa);this.L(a,"captionschanged",this.sa);this.sa();this.ka("click",this.onClick);g.Ge(this,g.BN(b.fb(),this.element))};
g.OP=function(a,b,c){c=void 0===c?350:c;g.R.call(this,{D:"div",Y:["ytp-time-display","notranslate"],J:[{D:"span",H:"ytp-time-current",W:"{{currenttime}}"},{D:"span",H:"ytp-time-separator",W:" / "},{D:"span",H:"ytp-time-duration",W:"{{duration}}"}]});this.api=a;this.F=c;this.liveBadge=new g.R({D:"button",Y:["ytp-live-badge","ytp-button"],O:{disabled:"true"},W:"{{content}}"});this.u=null;this.w=!1;this.C=null;this.isPremiere=!1;this.B=this.A=null;this.liveBadge.qb("En direct");g.B(this,this.liveBadge);
this.liveBadge.ca(this.element);this.tooltip=b.fb();this.ka("click",this.onClick);this.L(a,"presentingplayerstatechange",this.Fh);this.L(a,"appresize",this.Fh);this.L(a,"videodatachange",this.XH);(a=a.getVideoData())&&this.updateVideoData(a);this.Fh()};
RP=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-volume-panel",O:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},J:[{D:"div",H:"ytp-volume-slider",J:[{D:"div",H:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.w=b;this.G=c;this.I=!1;this.U=this.volume=0;this.M=null;this.B=this.u=this.A=!1;this.w=b;this.G=c;this.C=b.kc();this.R=this.o["ytp-volume-slider"];this.V=this.o["ytp-volume-slider-handle"];this.F=
new g.Mr(this.R,!0);g.B(this,this.F);this.F.subscribe("dragstart",this.hN,this);this.F.subscribe("dragmove",this.aI,this);this.F.subscribe("dragend",this.gN,this);this.L(a,"onVolumeChange",this.cI);this.L(a,"appresize",this.nz);this.L(a,"fullscreentoggled",this.YH);this.L(a,"onShowControls",this.Bw);this.L(a,"onHideControls",this.Bw);this.L(this.element,"keydown",this.bI);this.L(this.element,"focus",function(){PP(d,d.u,d.A,!0,d.w.Oi())});
this.L(this.element,"blur",function(){PP(d,d.u,d.A,!1,d.w.Oi())});
this.nz(g.QK(a).getPlayerSize());QP(this,a.getVolume(),a.isMuted())};
QP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" son d\u00e9sactiv\u00e9":"");c=c?0:b/100;a.la("valuenow",d);a.la("valuetext",e);a.V.style.left=(a.C?60:40)*c+"px";a.volume=b};
PP=function(a,b,c,d,e){var f=a.u||a.A||a.B||a.I;a.u=b;a.A=c;a.B=d;a.I=e;b=a.u||a.A||a.B||a.I;f!==b&&(b?a.M=a.L(a.element,"wheel",a.ZH):(a.bb(a.M),a.M=null),g.K(a.G,"ytp-volume-slider-active",b))};
g.SP=function(a,b){var c=a.N(),d=g.fz(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.Uy(c);f&&e.push("ytp-youtube-music-button");g.R.call(this,{D:"a",Y:e,O:{href:"{{url}}",target:c.C,title:g.gM("Regarder sur $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},J:[f?g.X?{D:"div",Y:["ytp-icon","ytp-icon-youtube-music-logo"]}:{D:"svg",O:{viewBox:"0 0 77 20"},J:[{D:"g",O:{fill:"none"},J:[{D:"path",O:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{D:"path",O:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-logo"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
this.api=a;this.visible=!1;g.kL(a,this.element,this,28666);this.ka("click",this.onClick);this.L(a,"videodatachange",this.u);this.L(a,"onLoopRangeChange",this.u);this.u();g.Ge(this,g.BN(b.fb(),this.element))};
TP=function(a,b,c){g.Gr.call(this);var d=this,e=a.N();this.u=a;this.A=b;this.oa=NaN;this.ma=null;this.ba=c;this.ba.subscribe("autohideupdate",this.Qz,this);c=!g.PK(a).isCued();if(this.u.N().fa("html5_player_bottom_linear_gradient")||!g.Uy(e)&&!g.P(a.N().experiments,"html5_player_dynamic_bottom_gradient"))var f=new g.R({D:"div",H:"ytp-gradient-bottom"});else this.wa=f=new g.vN(a);g.B(this,f);g.iL(a,f.element,8);this.ha=new g.lN(f,250,c,100);g.B(this,this.ha);this.w=new g.R({D:"div",H:"ytp-chrome-bottom",
J:[{D:"div",H:"ytp-chrome-controls"}]});g.B(this,this.w);g.iL(a,this.w.element,8);this.aa=new g.lN(this.w,250,c,100);g.B(this,this.aa);this.R=this.w.element.children[0];this.o=new JO(a);g.Ge(this.o,function(){a.P==d.o&&(a.P=null)});
g.B(this,this.o);a.P=this.o;g.iL(a,this.o.element,6);this.o.subscribe("show",this.YO,this);this.o.subscribe("show",(0,g.x)(b.Iu,b,this.o));this.B=new g.pP(a,b);g.B(this,this.B);this.B.ca(this.w.element,0);c=new g.VO(a);g.B(this,c);g.iL(a,c.element,4);c=new g.Mu({D:"div",H:"ytp-left-controls"});g.B(this,c);c.ca(this.R);f=new g.ON(a,b,!1);g.B(this,f);f.ca(c.element);e.M||(f=new g.fP(a,b),g.B(this,f),f.ca(c.element));f=new g.ON(a,b,!0);g.B(this,f);f.ca(c.element);var k=new g.R({D:"span"});g.B(this,k);
k.ca(c.element);if(!e.wa&&(this.F=new aP(a,b),g.B(this,this.F),this.F.ca(k.element),e.R)){f=new RP(a,b,this.w.element);g.B(this,f);f.ca(k.element);k=new g.Mr(k.element);g.B(this,k);var l=(0,g.x)(f.dC,f,!0);k.subscribe("hoverstart",l);k=new g.Mr(c.element);g.B(this,k);f=(0,g.x)(f.dC,f,!1);k.subscribe("hoverend",f)}this.da=new g.OP(a,b);g.B(this,this.da);this.da.ca(c.element);c=new g.Mu({D:"div",H:"ytp-right-controls"});g.B(this,c);c.ca(this.R);g.P(a.N().experiments,"web_wn_macro_markers")&&(this.V=
new TO(a,b,this.B),g.B(this,this.V),this.V.ca(this.R));this.M=null;g.P(e.experiments,"external_fullscreen_with_edu")&&e.externalFullscreen&&hz(e)&&(this.M=new YO(a,b),g.B(this,this.M),this.M.ca(c.element));f=new NP(a,b);g.B(this,f);f.ca(c.element);f=new TN(a,b,this.o);g.B(this,f);ala(this.o,f);f.ca(c.element);f=new zN(a);g.B(this,f);g.iL(a,f.element,5);f.subscribe("show",(0,g.x)(b.oi,b,f));f=new CN(a,b,f);g.B(this,f);f.ca(c.element);f=a.getVideoData();if(e.Rg||f.lc&&"1"==e.controlsType)this.G=new g.SP(a,
b),g.B(this,this.G),this.G.ca(c.element);e.showMiniplayerButton&&!g.P(a.N().experiments,"web_player_pip")&&(this.C=new $O(a,b),g.B(this,this.C),this.C.ca(c.element));this.U=new dP(a,b);g.B(this,this.U);this.U.ca(c.element);f.Ju||this.U.hide();e.qc||(f=new RO(a,b),g.B(this,f),f.ca(c.element));e.ac&&(f=new MP(a,b,this.o),g.B(this,f),f.ca(c.element));e.Xf&&(e=new SO(a,b),g.B(this,e),e.ca(c.element));this.ga=new g.ZO(a,b);g.B(this,this.ga);this.ga.ca(c.element);this.I=new g.rn(this.qJ,null,this);g.B(this,
this.I);this.P=null;this.L(a,"appresize",this.Pt);this.L(a,"fullscreentoggled",this.Pt);this.L(a,"presentingplayerstatechange",this.Qt);this.L(a,"videodatachange",this.rJ);this.Pt()};
UP=function(a,b){g.PK(a.u).isCued()||b?b&&(a.aa.hide(),a.ha.hide(),a.F&&a.F.Xa(!1),a.G&&a.G.Xa(!1),a.C&&a.C.Xa(!1),a.A.fb().rf(a.ua())):b||(a.aa.show(),a.ha.show(),a.F&&a.F.Xa(!0),a.G&&a.G.Xa(!0),a.C&&a.C.Xa(!0),a.Qz())};
WP=function(a){var b=g.QK(a.u).getPlayerSize().width;return Math.max(b-2*VP(a),100)};
VP=function(a){var b=a.A.kc();return 12*(a.u.getVideoData().lc?0:b?2:1)};
g.XP=function(a){g.R.call(this,{D:"div",Y:["ytp-error"],O:{role:"alert"},J:[{D:"div",H:"ytp-error-content",J:[{D:"div",H:"ytp-error-icon-container",J:[g.JM()]},{D:"div",H:"ytp-error-content-wrap",J:[{D:"div",H:"ytp-error-content-wrap-reason",W:"{{content}}"},{D:"div",H:"ytp-error-content-wrap-subreason",W:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.YP=function(a){a=a.split(fla);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",O:{href:a[c],target:a[c+1]},W:a[c+2]})}return{D:"span",J:b}};
ZP=function(a,b,c,d,e,f,k){d=void 0===d?!1:d;e=void 0===e?!1:e;k=void 0===k?!0:k;e||(e=a.api.N().u);a=a.api.getVideoData();b=g.gM(g.KJ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",W:f});d.push(b[0]);k&&d.push({D:"br"});d.push({D:"a",O:{href:c,target:e?"_blank":null},W:b[2]});d.push(b[4]);return{D:"span",J:d}};
gla=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.L(c[d],"click",b);a.keys.push(e)}};
hla=function(a){for(var b=0;b<a.keys.length;b++)a.bb(a.keys[b]);a.keys=[]};
aQ=function(a){g.R.call(this,{D:"div",H:"ytp-spinner",J:[KN(),{D:"div",H:"ytp-spinner-message",W:"Si la lecture ne commence pas dans quelques secondes, essayez de red\u00e9marrer votre appareil."}]});this.api=a;this.message=this.o["ytp-spinner-message"];this.u=new g.I(this.show,500,this);g.B(this,this.u);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"onFrescaStateChange",this.A);this.L(a,"playbackstalledatstart",this.B);$P(this,g.PK(a))};
$P=function(a,b){if(g.V(b,128))var c=0;else!(c=g.V(b,16))&&(c=g.V(b,1))&&(c=aL(g.KK(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
cQ=function(a){var b=g.At(a.N().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Y:["ytp-unmute-icon"],J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-volume-muted-dark"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{D:"div",Y:["ytp-unmute-text"],W:"R\u00e9activer le son"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Y:["ytp-unmute-box"],J:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.wN.call(this,a,{D:"button",Y:["ytp-unmute","ytp-popup","ytp-button"].concat(c),J:[{D:"div",H:"ytp-unmute-inner",J:d}]},100);this.seen=this.w=!1;this.api=a;g.kL(this.api,this.element,this,51663);this.L(a,"onMutedAutoplayChange",this.C,this);this.L(a,"presentingplayerstatechange",
this.B);this.ka("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.Ly(this.api.N());g.Qu(this,a);a&&bQ(this);this.A=a};
dQ=function(a){a.w||(a.w=!0,g.nL(a.api,a.element))};
bQ=function(a){a.seen||(a.seen=!0,g.oL(a.api,a.element,!0))};
g.eQ=function(a){g.Gr.call(this);var b=this,c=a.N(),d=g.QK(a);this.api=a;this.rd=!1;this.C=null;this.Xb=!1;this.Uc=new g.I(this.pK,0,this);g.B(this,this.Uc);g.Uy(c)||(this.ba=new oN(a),g.B(this,this.ba),g.iL(a,this.ba.element,4));if(ila()){var e=new aQ(a);g.B(this,e);e=e.element;g.iL(a,e,4)}var f=a.getVideoData();this.u=new jN(d,(0,g.x)(this.XI,this),f,c.Wa);g.B(this,this.u);this.u.subscribe("autohideupdate",this.mm,this);var k=new rN(a);g.B(this,k);g.iL(a,k.element,4);this.Ta=new cQ(a);g.B(this,
this.Ta);g.iL(this.api,this.Ta.element,2);this.ac=this.api.isMutedByMutedAutoplay();this.L(a,"onMutedAutoplayChange",this.YI);this.Qa=new g.I(this.Xp,200,this);g.B(this,this.Qa);this.pc=f.videoId;this.B=null;this.Kc=!1;this.Mc=this.Tc=null;this.pd=NaN;this.Jc=this.da=!1;this.wa=0;this.qd=new g.I(function(){b.wa=0},350);
g.B(this,this.qd);this.Ea=new g.I(this.sF.bind(this),350,this);g.B(this,this.Ea);this.Wa=[];f=a.getRootNode();f.setAttribute("aria-label","Lecteur vid\u00e9o YouTube");switch(c.color){case "white":g.J(f,"ytp-color-white")}g.Uy(c)&&g.J(f,"ytp-music-player");!g.P(a.N().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new qN(a),g.B(this,f));this.L(a,"appresize",this.Ti);this.L(a,"presentingplayerstatechange",this.ZI);
this.L(a,"videodatachange",this.Oz);this.L(a,"videoplayerreset",this.kM);this.L(a,"autonavvisibility",this.Mg,this);this.L(a,"sizestylechange",this.Mg,this);this.L(a,"onFrescaStateChange",this.oe,this);this.L(d,"click",this.QM,this);this.L(d,"dblclick",this.RM,this);c.da&&(this.L(d,"gesturechange",this.SM,this),this.L(d,"gestureend",this.TM,this));this.R=[d.A];this.ba&&this.R.push(this.ba.element);e&&this.R.push(e)};
fQ=function(a,b){if(!b)return!1;var c=a.api.app.B;if(c.Ch()&&(c=c.ua())&&g.xe(c,b))return c.controls;for(c=0;c<a.R.length;c++)if(g.xe(a.R[c],b))return!1;return g.Bn(b,"ytp-player-content")||g.Bn(b,"html5-endscreen")||b==a.api.getRootNode()?!1:!0};
hQ=function(a){return!!(2==a.api.getPresentingPlayerType()&&g.QK(a.api).C&&a.api.N().o&&gQ&&11<=UB)};
iQ=function(a,b){return!fQ(a,Hp(b))&&g.iM(b)};
jQ=function(a){a.u.Tb(2,!0);if(!a.api.N().M&&!a.jg()){var b=g.PK(a.api);g.V(b,2)&&MK(a.api)||a.Jt(b);if(!a.api.N().da||b.isCued()||g.V(b,1024)){var c=a.api.app.Ia;g.Rq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,2048);c&&(b.isCued()||d)?(g.Rq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),jla(a)):(!c||b.isCued()&&d||g.Rq("embedsRequestStorageAccessFailedState",{state:b.o}),a.Xp())}else a.Qa.isActive()?(a.no(),a.Qa.stop()):
a.Qa.start()}};
jla=function(a){tL(function(){g.Rq("embedsRequestStorageAccessResult",{resolved:!0});ly(!0);vp();window.location.reload()},function(){g.Rq("embedsRequestStorageAccessResult",{resolved:!1});
a.Xp()})};
kQ=function(a,b){if(g.iM(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2==a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.PK(a.api);!g.V(c,4)||g.V(c,8)||g.V(c,2)||a.Xp();return!0}return!1};
lQ=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
ila=function(){var a=el()&&67<=bl();return!dl("tizen")&&!Jy&&!a&&!0};
mQ=function(a,b){g.Ru.call(this,{D:"div",H:"ytp-ad-persistent-progress-bar-container",J:[{D:"div",H:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.w=b;g.B(this,this.w);this.F=this.o["ytp-ad-persistent-progress-bar"];this.u=-1;this.L(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
nQ=function(a,b){b=void 0===b?2:b;g.O.call(this);this.o=a;this.u=new g.Gr(this);g.B(this,this.u);this.B=kla;this.A=null;this.u.L(this.o,"presentingplayerstatechange",this.tJ);this.A=this.u.L(this.o,"progresssync",this.Sz);this.w=b;1===this.w&&this.Sz()};
g.oQ=function(a){g.R.call(this,{D:"div",J:[{D:"div",H:"ytp-bezel-text-wrapper",J:[{D:"div",H:"ytp-bezel-text",W:"{{title}}"}]},{D:"div",H:"ytp-bezel",O:{role:"status","aria-label":"{{label}}"},J:[{D:"div",H:"ytp-bezel-icon",W:"{{icon}}"}]}]});this.A=new g.I(this.show,10,this);g.B(this,this.A);this.u=new g.I(this.hide,500,this);g.B(this,this.u);this.w=a;this.hide()};
g.qQ=function(a,b){if(b)g.V(g.PK(a.w),64)||pQ(a,SM(),"Lire");else{var c=a.w.getVideoData();c.va&&!c.allowLiveDvr?pQ(a,WM(),"Arr\u00eater la lecture en direct"):pQ(a,QM(),"Pause")}};
rQ=function(a,b,c){if(0>=b){c=$M();b="son d\u00e9sactiv\u00e9";var d=0}else c=c?ZM():YM(),d=Math.floor(b),b=d+"volume";pQ(a,c,b,d+"%")};
sQ=function(a,b){var c=b?g.X?{D:"div",Y:["ytp-icon","ytp-icon-fast-rewind"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{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"}}]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-fast-forward"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.w.getPlaybackRate(),
e=g.gM("Vitesse\u00a0: $RATE",{RATE:String(d)});pQ(a,c,e,d+"x")};
pQ=function(a,b,c,d){d=void 0===d?"":d;a.la("label",void 0===c?"":c);a.la("icon",b);a.u.Pe();a.A.start();a.la("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
uQ=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-cards-button"],O:{"aria-label":"Afficher les fiches","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Ly(a.N()))},J:[{D:"span",H:"ytp-cards-button-icon-default",J:[{D:"div",H:"ytp-cards-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-info-card"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{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"}}]}]},
{D:"div",H:"ytp-cards-button-title",W:"Informations"}]},{D:"span",H:"ytp-cards-button-icon-shopping",J:[{D:"div",H:"ytp-cards-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-shopping-card"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",H:"ytp-svg-shadow",O:{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"}},{D:"path",H:"ytp-svg-fill",O:{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"}},{D:"path",H:"ytp-svg-shadow-fill",O:{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"}}]}]},{D:"div",
H:"ytp-cards-button-title",W:"Shopping"}]}]});this.K=a;this.B=b;this.A=c;this.u=null;this.w=new g.lN(this,250,!0,100);g.B(this,this.w);g.K(this.A,"ytp-show-cards-title",g.Ly(a.N()));this.hide();this.ka("click",this.onClicked);this.ka("mouseover",this.C);tQ(this,!0)};
tQ=function(a,b){b?a.u=g.BN(a.B.fb(),a.element):(a.u=a.u,a.u(),a.u=null)};
vQ=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-cards-teaser",J:[{D:"div",H:"ytp-cards-teaser-box"},{D:"div",H:"ytp-cards-teaser-text",J:[{D:"span",H:"ytp-cards-teaser-label",W:"{{text}}"}]}]});var d=this;this.w=a;this.U=b;this.F=new g.lN(this,250,!1,250);g.B(this,this.F);this.C=c;this.u=null;this.M=new g.I(this.NL,300,this);g.B(this,this.M);this.I=new g.I(this.KL,2E3,this);g.B(this,this.I);this.G=[];this.A=null;this.R=new g.I(function(){d.element.style.margin=0},250);
g.B(this,this.R);this.B=null;this.L(c.element,"mouseover",this.HA);this.L(c.element,"mouseout",this.GA);this.L(a,"cardsteasershow",this.nN);this.L(a,"cardsteaserhide",this.jm);this.L(a,"cardstatechange",this.HC);this.L(a,"presentingplayerstatechange",this.HC);this.L(a,"appresize",this.Kt);this.L(a,"onShowControls",this.Kt);this.L(a,"onHideControls",this.hE);this.ka("click",this.MO);this.ka("mouseenter",this.aJ)};
lla=function(a,b){a.la("text",b.teaserText);a.element.setAttribute("dir",g.Ln(b.teaserText));a.F.show();a.A=new g.I(function(){g.J(this.w.getRootNode(),"ytp-cards-teaser-shown");this.Kt()},0,a);
a.A.start();tQ(a.C,!1);a.u=new g.I(a.jm,580+b.durationMs,a);a.u.start();a.G.push(a.ka("mouseover",a.HA,a));a.G.push(a.ka("mouseout",a.GA,a))};
wQ=function(a,b,c){return b?a.G+"subscription_ajax":c?"/subscription_service":""};
g.yQ=function(a,b,c,d,e,f,k,l,m,n,p,t,u){u=void 0===u?null:u;f&&(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 z=t.N();if(p){c={href:p,"aria-label":"S'abonner \u00e0 la cha\u00eene"};if(g.Ry(z)||g.Ty(z))c.target=z.C;g.R.call(this,{D:"div",Y:["ytp-button","ytp-sb"],J:[{D:"a",H:"ytp-sb-subscribe",O:c,J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},a]},b?{D:"div",H:"ytp-sb-count",W:b}:""]}]});
f&&g.J(this.element,"ytp-sb-classic")}else{p=z.ha&&g.Ry(z)&&!g.P(z.experiments,"subscribe_tooltip_killswitch");g.R.call(this,{D:"div",Y:["ytp-button","ytp-sb"],J:[{D:"div",H:"ytp-sb-subscribe",O:p?{title:g.gM("S'abonner en tant que\u00a0$USER_NAME",{USER_NAME:z.ha}),"aria-label":"S'abonner \u00e0 la cha\u00eene","data-tooltip-image":sz(z),"data-tooltip-opaque":String(g.Ly(z)),tabindex:"0",role:"button"}:{"aria-label":"S'abonner \u00e0 la cha\u00eene"},J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},
a]},b?{D:"div",H:"ytp-sb-count",W:b}:""]},{D:"div",H:"ytp-sb-unsubscribe",O:p?{title:g.gM("Abonn\u00e9 en tant que $USER_NAME",{USER_NAME:z.ha}),"aria-label":"Se d\u00e9sabonner de la cha\u00eene","data-tooltip-image":sz(z),"data-tooltip-opaque":String(g.Ly(z)),tabindex:"0",role:"button"}:{"aria-label":"Se d\u00e9sabonner de la cha\u00eene"},J:[{D:"div",H:"ytp-sb-text",J:[{D:"div",H:"ytp-sb-icon"},c]},d?{D:"div",H:"ytp-sb-count",W:d}:""]}]});var C=this;this.u=k;this.A=u;var D=this.o["ytp-sb-subscribe"],
E=this.o["ytp-sb-unsubscribe"];f&&g.J(this.element,"ytp-sb-classic");if(e){l&&g.J(this.element,"ytp-sb-subscribed");var F=function(){var fa=C.u;if(m||n){var oa=t.N();var kc={c:fa};if(g.P(oa.experiments,"embeds_botguard_with_subscribe_killswitch"))kc="";else{var Rc;$q.o&&(Rc=Ms(kc));kc=Rc||""}g.P(oa.experiments,"web_player_innertube_subscription_update")?(oa=t.getVideoData(),IK(xQ(t.app),oa.subscribeCommand)):g.Eq(wQ(oa,!!m,!!n),m?{method:"POST",Zd:{action_create_subscription_to_channel:1,c:fa},sb:{feature:m,
silo_name:null,r2b:kc},withCredentials:!0}:n?{method:"POST",Zd:{action_subscribe:1},sb:{channel_ids:fa,itct:n}}:{});t.na("SUBSCRIBE",fa)}E.focus();E.removeAttribute("aria-hidden");D.setAttribute("aria-hidden",!0)},G=function(){var fa=C.u;
if(m||n){var oa=t.N();g.P(oa.experiments,"web_player_innertube_subscription_update")?(oa=t.getVideoData(),IK(xQ(t.app),oa.unsubscribeCommand)):g.Eq(wQ(oa,!!m,!!n),m?{method:"POST",Zd:{action_remove_subscriptions:1},sb:{c:fa,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Zd:{action_unsubscribe:1},sb:{channel_ids:fa,itct:n}}:{});t.na("UNSUBSCRIBE",fa)}D.focus();D.removeAttribute("aria-hidden");E.setAttribute("aria-hidden",!0)};
this.L(D,"click",F);this.L(E,"click",G);this.L(D,"keypress",function(fa){13==fa.keyCode&&F(fa)});
this.L(E,"keypress",function(fa){13==fa.keyCode&&G(fa)});
this.L(t,"SUBSCRIBE",this.B);this.L(t,"UNSUBSCRIBE",this.C);this.A&&p&&(this.w=this.A.fb(),AN(this.w),g.Ge(this,g.BN(this.w,D)),g.Ge(this,g.BN(this.w,E)))}else g.J(D,"ytp-sb-disabled"),g.J(E,"ytp-sb-disabled")}};
g.AQ=function(a,b,c){b=zQ(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.Oo("LOGGED_IN",function(d){g.Po(g.L("LOGGED_IN_PUBSUB_KEY",void 0));to("LOGGED_IN",!0);a(d)}),to("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
zQ=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=xd(c,"mode",a));a=xd(d,"next",c);b&&(a=xd(a,"feature",b));return a};
CQ=function(a,b){g.R.call(this,{D:"button",Y:[BQ.BUTTON,BQ.TITLE_NOTIFICATIONS],O:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},J:[{D:"div",H:BQ.TITLE_NOTIFICATIONS_ON,O:{title:"Ne plus recevoir de notifications pour chaque vid\u00e9o mise en ligne","aria-label":"Envoi de notifications aux abonn\u00e9s"},J:[g.PM()]},{D:"div",H:BQ.TITLE_NOTIFICATIONS_OFF,O:{title:"Recevoir une notification pour chaque vid\u00e9o mise en ligne","aria-label":"Envoi de notifications aux abonn\u00e9s"},J:[g.X?
{D:"div",Y:["ytp-icon","ytp-icon-notifications-inactive"]}:{D:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},J:[{D:"path",O:{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.channelId=b;this.u=!1;g.kL(a,this.element,this,36927);this.ka("click",this.onClick,this);this.la("pressed",!1);
this.la("label","Recevoir une notification pour chaque vid\u00e9o mise en ligne")};
DQ=function(a,b){a.u=b;a.element.classList.toggle(BQ.NOTIFICATIONS_ENABLED,a.u);g.Eq("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",sb:{channel_id:a.channelId,receive_all_updates:!a.u}})};
EQ=function(a,b){var c=a.N();g.R.call(this,{D:"div",H:"ytp-title-channel",J:[{D:"div",H:"ytp-title-beacon"},{D:"a",H:"ytp-title-channel-logo",O:{href:"{{channelLink}}",target:c.C,"aria-label":"{{channelLogoLabel}}"}},{D:"div",H:"ytp-title-expanded-overlay",J:[{D:"div",H:"ytp-title-expanded-heading",J:[{D:"h2",H:"ytp-title-expanded-title",J:[{D:"a",W:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:c.C,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",H:"ytp-title-expanded-subtitle",W:"{{expandedSubtitle}}"}]}]}]});
this.u=a;this.ba=b;this.w=this.o["ytp-title-channel"];this.B=this.o["ytp-title-channel-logo"];this.U=this.o["ytp-title-expanded-overlay"];this.F=this.C=this.A=null;this.V=g.Ly(c);g.kL(a,this.B,this,36925);this.V&&mla(this);this.L(a,"videodatachange",this.M);this.L(a,"videoplayerreset",this.M);this.M()};
mla=function(a){var b=a.u.N(),c=a.u.getVideoData();if(!b.aa){var d=b.Nc?null:zQ(),e=new g.yQ("S'abonner",null,"Abonn\u00e9",null,!0,!1,c.Ng,c.subscribed,"channel_avatar",null,d,a.u,a.ba);a.A=e;g.B(a,e);e.ca(a.U);g.kL(a.u,e.element,a,36926);e.hide();a.L(e.element,"click",function(){g.nL(a.u,e.element)});
var f=new CQ(a.u,c.Ng);a.C=f;g.B(a,f);f.ca(a.U);f.hide();a.L(a.u,"SUBSCRIBE",function(){c.zk&&f.show()});
a.L(a.u,"UNSUBSCRIBE",function(){c.zk&&(f.hide(),DQ(f,!1))})}a.la("channelTitleFocusable","-1");
b.o?a.L(a.B,"click",function(k){FQ(a)&&(k.preventDefault(),GQ(a)?a.G():a.I());g.nL(a.u,a.B)}):(a.L(a.w,"mouseenter",a.I),a.L(a.w,"mouseleave",a.G),a.L(a.w,"focusin",a.I),a.L(a.w,"focusout",function(k){a.w.contains(k.relatedTarget)||a.G()}),a.L(a.B,"click",function(){g.nL(a.u,a.B)}));
a.F=new g.I(function(){GQ(a)&&(a.A&&(a.A.hide(),g.oL(a.u,a.A.element,!1)),a.C&&(a.C.hide(),g.oL(a.u,a.C.element,!1)),a.w.classList.remove("ytp-title-expanded"),a.w.classList.add("ytp-title-show-collapsed"))},500);
g.B(a,a.F);a.L(a.w,HQ,function(){IQ(a)});
a.L(a.u,"onHideControls",a.R);a.L(a.u,"appresize",a.R);a.L(a.u,"fullscreentoggled",a.R)};
IQ=function(a){a.w.classList.remove("ytp-title-show-collapsed");a.w.classList.remove("ytp-title-show-expanded")};
FQ=function(a){var b=a.u.getPlayerSize();return a.V&&524<=b.width};
GQ=function(a){return a.w.classList.contains("ytp-title-expanded")};
JQ=function(a){g.R.call(this,{D:"div",H:"ytp-doubletap-ui",J:[{D:"div",H:"ytp-doubletap-static-circle",J:[{D:"div",H:"ytp-doubletap-ripple"}]},{D:"div",H:"ytp-doubletap-overlay-a11y"},{D:"div",H:"ytp-doubletap-seek-info-container",J:[{D:"div",H:"ytp-doubletap-arrows-container",J:[{D:"span",H:"ytp-doubletap-base-arrow"},{D:"span",H:"ytp-doubletap-base-arrow"},{D:"span",H:"ytp-doubletap-base-arrow"}]},{D:"div",H:"ytp-doubletap-tooltip",J:[{D:"div",H:"ytp-doubletap-tooltip-label",W:"{{seekTime}}"}]}]}]});
this.w=a;this.A=new g.I(this.show,10,this);g.B(this,this.A);this.u=new g.I(this.hide,700,this);g.B(this,this.u);this.hide()};
KQ=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.yd("/sharing_services",a);g.cr(d)};
LQ=function(a){var b=g.Uu({"aria-haspopup":"true"});g.Tu.call(this,b,a);this.ka("keydown",this.u)};
MQ=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
PQ=function(a,b,c,d){g.WN.call(this,a);this.u=a;this.U=c;this.Z=d;this.F=new g.gO("Lire en boucle",7);g.B(this,this.F);g.XN(this,this.F,!0);this.F.ka("click",this.vL,this);g.kL(a,this.F.element,this.F,28661);this.C=new LQ(6);g.B(this,this.C);g.XN(this,this.C,!0);this.C.ka("click",this.fL,this);g.kL(a,this.C.element,this.C,28659);this.B=new LQ(5);g.B(this,this.B);g.XN(this,this.B,!0);this.B.ka("click",this.eL,this);g.kL(a,this.B.element,this.B,28660);this.A=new LQ(4);g.B(this,this.A);g.XN(this,this.A,
!0);this.A.ka("click",this.dL,this);g.kL(a,this.A.element,this.A,28658);this.R=new LQ(3);g.B(this,this.R);g.XN(this,this.R,!0);this.R.ka("click",this.cL,this);this.V=new g.Tu(g.Uu({href:"{{href}}",target:a.N().C},void 0,!0),2,"R\u00e9soudre les probl\u00e8mes de lecture");g.B(this,this.V);g.XN(this,this.V,!0);this.V.ka("click",this.GM,this);b=new g.Tu(g.Uu(),1,"Statistiques avanc\u00e9es");g.B(this,b);g.XN(this,b,!0);b.ka("click",this.eN,this);this.M=new g.Ru({D:"div",Y:["ytp-copytext","ytp-no-contextmenu"],
O:{draggable:"false",tabindex:"1"},W:"{{text}}"});g.B(this,this.M);this.M.ka("click",this.KK,this);this.ga=new VN(a,this.M);g.B(this,this.ga);this.I=null;c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.Dt&&g.Kd(43)&&(c=!0);g.hu&&!g.Kd(41)&&(c=!1);c&&(this.I=new g.R({D:"textarea",H:"ytp-html5-clipboard",O:{readonly:""}}),g.B(this,this.I),this.I.ca(this.element));Vu(this.F,g.X?{D:"div",Y:["ytp-icon","ytp-icon-repeat"]}:{D:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},J:[{D:"path",O:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});Vu(this.R,g.X?{D:"div",Y:["ytp-icon","ytp-icon-bug-report"]}:{D:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},J:[{D:"path",O:{"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"}}]});Vu(this.V,g.X?{D:"div",Y:["ytp-icon","ytp-icon-help-outline"]}:{D:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},J:[{D:"path",O:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});Vu(b,KM());this.L(a,"loopchange",this.EA);this.L(a,"videodatachange",this.eJ);NQ(this);OQ(this,this.u.getVideoData())};
QQ=function(a,b){if(a.I){var c=a.I.element;c.value=b;c.select();try{var d=document.execCommand("copy")}catch(e){}}d?a.U.gb():(a.M.qb(b,"text"),g.dO(a.U,a.ga),LN(a.M.element),a.I&&(a.I=null,NQ(a)));return d};
OQ=function(a,b){var c=a.u.N(),d=2==a.u.getPresentingPlayerType(),e=!d||b.isListed;e=!c.P&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.Ba&&(c.fmt=ct(b.Ba)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.De&&(c.partnerid=b.De),c=g.yd("//support.google.com/googleplay/",c));g.Qu(a.A,e&&b.allowEmbed);g.Qu(a.C,e);g.Qu(a.B,e&&!b.va);a.V.qb(c,"href");g.Qu(a.F,
!b.va&&!d)};
NQ=function(a){var b=!!a.I;g.Su(a.R,b?"Copier les informations de d\u00e9bogage":"Obtenir les informations de d\u00e9bogage");MQ(a.R,!b);g.Su(a.A,b?"Copier le code d'int\u00e9gration":"Obtenir le code d'int\u00e9gration");MQ(a.A,!b);g.Su(a.C,b?"Copier l'URL de la vid\u00e9o":"Obtenir l'URL de la vid\u00e9o");MQ(a.C,!b);g.Su(a.B,b?"Copier l'URL de la vid\u00e9o \u00e0 partir de cette s\u00e9quence":"Obtenir l'URL de la vid\u00e9o au minutage actuel");MQ(a.B,!b);Vu(a.A,b?HM():null);Vu(a.C,b?MM():null);
Vu(a.B,b?MM():null)};
g.RQ=function(){g.Gr.apply(this,arguments)};
g.TQ=function(a,b,c){g.$N.call(this,a);this.K=a;this.aa=b;this.V=c;this.B=new g.RQ(this);this.A=null;g.B(this,this.B);g.kL(a,this.element,this,28656);g.J(this.element,"ytp-contextmenu");SQ(this);this.hide()};
SQ=function(a){g.Ir(a.B);"gvn"!==a.K.N().playerStyle&&a.B.L(g.QK(a.K),"contextmenu",a.JK)};
UQ=function(a){a.K.isFullscreen()?g.iL(a.K,a.element,9):a.ca(document.body)};
g.VQ=function(a,b,c,d,e,f){g.Gr.call(this);this.o=a;this.F=c;this.B=d;this.u=e;this.C=f;this.A=new g.I(g.Qa(this.kC,!1),1E3,this);g.B(this,this.A);this.w="";a=g.Qa(this.Fu,!1);this.L(b,"mousedown",a);this.L(c.element,"mousedown",a);this.L(b,"keydown",this.Qx);this.L(c.element,"keydown",this.Qx);this.L(b,"keyup",this.Rx);this.L(c.element,"keyup",this.Rx)};
WQ=function(a,b,c,d){var e=g.zL(g.KK(a.o));if(e&&e.loaded){e=a.o.getSubtitlesUserSettings();for(var f,k=0;k<g.DO.length;k++){var l=g.DO[k];if(l.option==b){f=l.options;break}}var m;for(k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return}else if(m==f.length-1)return;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.o.updateSubtitlesUserSettings(d);a.kC(!0);a.A.start()}};
XQ=function(a,b){a.o.Qc();if(g.V(g.PK(a.o),4)){var c=a.o.getVideoData().Ba;c&&(c=c.video)&&a.o.seekBy(b/(c.fps||30))}};
YQ=function(a,b,c){var d=b.ya(c),e=a.N(),f=d.tc("default.jpg");g.R.call(this,{D:"a",Y:["ytp-video-menu-item","ytp-button"],O:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},J:[{D:"div",H:"ytp-video-menu-item-index",W:String(c+1)},{D:"div",H:"ytp-video-menu-item-now-playing",W:"\u25b6"},{D:"div",H:"ytp-video-menu-item-thumbnail",O:{style:f?"background-image: url("+f+");":void 0}},{D:"div",H:"ytp-video-menu-item-title",W:d.title},{D:"div",
H:"ytp-video-menu-item-author",W:d.author}]});this.api=a;this.index=c;this.ka("click",this.onClick)};
ZQ=function(a){g.wN.call(this,a,{D:"div",H:"ytp-playlist-menu",O:{role:"dialog",id:Lu()},J:[{D:"div",H:"ytp-playlist-menu-header",J:[{D:"div",H:"ytp-playlist-menu-title",J:[{D:"a",H:"ytp-playlist-menu-title-name",O:{href:"{{playlisturl}}"},W:"{{title}}"},{D:"button",Y:["ytp-playlist-menu-close","ytp-button"],O:{"aria-label":"Fermer"},J:[g.GM()]}]},{D:"div",H:"ytp-playlist-menu-subtitle",W:"{{subtitle}}"}]},{D:"div",H:"ytp-playlist-menu-items",O:{role:"menu"}}]},250);this.api=a;this.selected=this.A=
this.playlist=null;this.items=this.o["ytp-playlist-menu-items"];this.w=new g.Gr(this);this.playlistData=[];this.L(this.o["ytp-playlist-menu-close"],"click",this.gb);this.L(this.o["ytp-playlist-menu-title-name"],"click",this.rN);g.B(this,this.w);this.hide()};
$Q=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-playlist-menu-button","ytp-button"],O:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},J:[{D:"div",H:"ytp-playlist-menu-button-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-playlist"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{D:"div",H:"ytp-playlist-menu-button-text",W:"{{text}}"}]});var d=this;this.w=a;this.u=null;this.B=b.fb();this.F=!1;g.kL(a,this.element,this,70344);this.L(a,"videodatachange",this.C);this.L(a,"onPlaylistUpdate",this.C);this.L(a,"presentingplayerstatechange",this.A);this.L(a,"appresize",this.A);this.hide();this.C();g.Ge(this,g.BN(this.B,this.element));this.ka("click",function(){g.nL(a,d.element);c.hf(d.element,!1)})};
aR=function(a,b,c){g.R.call(this,{D:"div",H:"ytp-promotooltip-wrapper",J:[{D:"div",H:"ytp-promotooltip-container",J:[{D:"div",H:"ytp-promotooltip-content",J:[{D:"div",H:"ytp-promotooltip-title",W:"{{title}}"},{D:"div",H:"ytp-promotooltip-details",W:"{{details}}"}]},{D:"div",H:"ytp-promotooltip-buttons",J:[{D:"div",H:"ytp-promotooltip-dismiss-button",W:"{{dismissButtonText}}"},{D:"div",H:"ytp-promotooltip-accept-button",W:"{{acceptButtonText}}"}]}]},{D:"div",H:"ytp-promotooltip-pointer"}]});this.u=
a;this.R=b;this.F=c;this.A=null;this.U=this.o["ytp-promotooltip-title"];this.I=this.o["ytp-promotooltip-details"];this.G=this.o["ytp-promotooltip-accept-button"];this.M=this.o["ytp-promotooltip-dismiss-button"];this.w=!1;g.Qu(this,this.w);this.L(c,"onShowControls",this.C);this.L(c,"onHideControls",this.B)};
g.bR=function(a,b){var c=Lu(),d=a.N();c={D:"div",H:"ytp-share-panel",O:{id:Lu(),role:"dialog","aria-labelledby":c},J:[{D:"div",H:"ytp-share-panel-inner-content",J:[{D:"div",H:"ytp-share-panel-title",O:{id:c},W:"Partager"},{D:"a",Y:["ytp-share-panel-link","ytp-no-contextmenu"],O:{href:"{{link}}",target:d.C,title:"Partager le lien","aria-label":"{{shareLinkWithUrl}}"},W:"{{linkText}}"},{D:"label",H:"ytp-share-panel-include-playlist",J:[{D:"input",H:"ytp-share-panel-include-playlist-checkbox",O:{type:"checkbox",
checked:!0}},"Inclure la playlist"]},{D:"div",H:"ytp-share-panel-loading-spinner",J:[KN()]},{D:"div",H:"ytp-share-panel-service-buttons",W:"{{buttons}}"},{D:"div",H:"ytp-share-panel-error",W:"Une erreur s'est produite lors de la r\u00e9cup\u00e9ration des informations de partage. Veuillez r\u00e9essayer ult\u00e9rieurement."}]},{D:"button",Y:["ytp-share-panel-close","ytp-button"],O:{title:"Fermer"},J:[g.GM()]}]};g.wN.call(this,a,c,250);this.w=a;this.A=b.fb();this.B=[];this.R=this.o["ytp-share-panel-inner-content"];
this.C=this.o["ytp-share-panel-close"];this.L(this.C,"click",this.gb);g.Ge(this,g.BN(this.A,this.C));this.M=this.o["ytp-share-panel-include-playlist-checkbox"];this.L(this.M,"click",this.Mt);this.F=this.o["ytp-share-panel-link"];g.Ge(this,g.BN(this.A,this.F));this.ka("click",this.eM);this.L(a,"videoplayerreset",this.hide);this.L(a,"fullscreentoggled",this.kJ);this.L(a,"onLoopRangeChange",this.Mt);this.hide()};
dR=function(a,b){if(!a.ea()){g.Dn(a.element,"ytp-share-panel-loading");cR(a);for(var c=b.links||b.shareTargets,d=0,e=0;e<c.length&&2>d;e++){var f=c[e];a:switch(f.img||f.iconId){case "facebook":var k=g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-facebook"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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":k=g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-twitter"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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:k=null}k&&(k=new g.R({D:"a",Y:["ytp-share-panel-service-button","ytp-button"],O:{href:f.url,target:"_blank",title:f.sname||f.serviceName},J:[k]}),k.ka("click",g.Qa(a.bN,f.url)),g.Ge(k,g.BN(a.A,k.element)),a.B.push(k),d++)}c=b.more||b.moreLink;d=new g.R({D:"a",Y:["ytp-share-panel-service-button","ytp-button"],J:[{D:"span",H:"ytp-share-panel-service-button-more",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-more"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",
width:"100%"},J:[{D:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",O:{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"}}]}]}],O:{href:c,target:"_blank",title:"Plus"}});d.ka("click",(0,g.x)(a.HL,a,c));g.Ge(d,g.BN(a.A,d.element));a.B.push(d);a.la("buttons",a.B)}};
cR=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,g.Nu(c),g.He(c);a.B=[]};
g.eR=function(a,b,c,d){d=void 0===d?240:d;var e=a.N();g.R.call(this,{D:"button",Y:["ytp-button","ytp-share-button"],O:{title:"Partager","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.Ly(e))},J:[{D:"div",H:"ytp-share-icon",W:"{{icon}}"},{D:"div",H:"ytp-share-title",W:"Partager"}]});this.u=a;this.B=b;this.I=c;this.F=d;this.w=!1;this.C=b.fb();g.kL(a,this.element,this,28664);this.ka("click",this.G);this.L(a,"videodatachange",this.A);this.L(a,"videoplayerreset",this.A);
this.L(a,"appresize",this.A);this.L(a,"presentingplayerstatechange",this.A);this.A();g.K(this.element,"ytp-show-share-title",g.Ly(e)&&!g.Uy(e));g.Ge(this,g.BN(this.C,this.element))};
gR=function(a){g.wN.call(this,a,{D:"button",Y:["ytp-skip-intro-button","ytp-popup","ytp-button"],J:[{D:"div",H:"ytp-skip-intro-button-text",W:"Passer l'intro"}]},100);var b=this;this.w=a;this.F=!1;this.C=new g.I(function(){return b.hide()},5E3);
g.B(this,this.C);this.A=this.B=NaN;this.V=function(){return b.show()};
this.R=function(){return b.hide()};
this.M=this.aa.bind(this);this.L(this.w,"videodatachange",function(c,d){if("dataloaded"==c)if(b.B=d.gy,b.A=d.fy,isNaN(b.B)||isNaN(b.A))b.F&&(g.fR(b.w.app,"intro",void 0),b.w.removeEventListener(g.lC("intro"),b.V),b.w.removeEventListener("crx_intro",b.R),b.w.removeEventListener("onShowControls",b.M),b.hide(),b.F=!1);else{b.w.addEventListener(g.lC("intro"),b.V);b.w.addEventListener("crx_intro",b.R);b.w.addEventListener("onShowControls",b.M);var e=new g.iC(b.B,b.A,{priority:7,namespace:"intro"});g.eL(b.w,
[e]);b.F=!0}});
this.L(this.element,"click",function(){b.w.seekTo(b.A/1E3)});
this.hide()};
g.hR=function(a,b){var c=g.QK(a).getPlayerSize();g.R.call(this,{D:"div",J:[{D:"div",H:"ytp-tooltip-text-wrapper",J:[{D:"div",H:"ytp-tooltip-image"},{D:"div",H:"ytp-tooltip-title",W:"{{title}}"},{D:"span",H:"ytp-tooltip-text",W:"{{text}}"}]},{D:"div",H:"ytp-tooltip-bg",J:[{D:"div",H:"ytp-tooltip-duration",W:"{{duration}}"}]}]});this.U=a;this.wa=b;this.R=a.N();this.oa=this.R.o;this.I=this.o["ytp-tooltip-bg"];this.za=this.o["ytp-tooltip-image"];this.Aa=this.o["ytp-tooltip-text"];this.title=this.o["ytp-tooltip-title"];
this.Z=(0,g.x)(this.JL,this);this.F=(0,g.x)(this.ML,this);this.aa=(0,g.x)(this.zf,this);this.u=null;this.M=new g.lN(this,100);g.B(this,this.M);this.w=null;this.ba=!1;this.A=null;this.C=NaN;this.G="";this.ga=c.width;this.V=!0;this.B=1;this.da=new g.I(this.mG,250,this);g.B(this,this.da);this.ma=new g.I(this.zf,5E3,this);g.B(this,this.ma);Hy&&(c=this.o["ytp-tooltip-text"],c.setAttribute("role","text"),c.setAttribute("aria-live","polite"))};
AN=function(a){a.element.setAttribute("aria-live","polite")};
kR=function(a,b,c,d,e,f,k,l){if(!a.oa){3==a.w&&a.zf();1!=a.w&&(An(a.element,"ytp-tooltip ytp-bottom"),a.w=1,a.V&&a.M.show(),a.A&&a.A.dispose(),a.A=a.U.ue(),a.A&&a.A.subscribe("l",a.BA,a));a.update({text:d,title:k?k:""});g.P(a.U.N().experiments,"web_wn_macro_markers")&&g.K(a.Aa,"ytp-tooltip-text-no-title",1===a.w&&!k);g.K(a.element,"ytp-text-detail",!!e);d=-1;a.A&&(d=SA(a.A,160*a.B),g.P(a.R.experiments,"web_l3_storyboard")&&4==a.A.levels.length&&(d=a.A.levels.length-1),d=XA(a.A,d,c));iR(a,d);if(l)switch(c=
g.Nh(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}jR(a,!!e,b,f)}};
g.lR=function(a){1==a.w&&a.zf()};
g.BN=function(a,b){if(a.oa)return g.Ia;b.addEventListener("mouseover",a.F);g.P(a.R.experiments,"show_tooltip_on_tab_killswitch")||b.addEventListener("focus",a.F);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return(0,g.x)(function(){this.u==b&&this.zf();b.removeEventListener("mouseover",this.F);g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||b.removeEventListener("focus",this.F)},a)};
nR=function(a,b,c){if(a.w)if(3==a.w)a.zf();else return;mR(a,b,3,c)};
mR=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Sq("showElementTooltip_ called with non-element.",b.toString()),g.Tq(a);else{isNaN(a.C)||(a.C=NaN,a.I.style.background="");a.u=b;a.ba=!!d;d?a.G=d:(a.G=b.getAttribute("title"),b.removeAttribute("title"));An(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.za.style.backgroundImage="url("+d+")";g.K(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.K(a.element,"ytp-tooltip-opaque",!!b);a.w=c;a.U.addEventListener("appresize",
a.aa);a.V&&(oR(a),a.M.show(0))}};
oR=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.ba){a.la("text",b);var c=a.u.getAttribute("data-duration");a.update({title:a.G,duration:c});var d=a.u.getAttribute("data-preview"),e=160*a.B,f=90*a.B,k=160*a.B,l=90*a.B;a.I.style.width=e+"px";a.I.style.height=f+"px";a.I.style.backgroundImage=d?"url("+d+")":"";a.I.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.I.style.backgroundSize=k+"px "+l+"px";g.Cn(a.element,["ytp-text-detail","ytp-preview"]);g.K(a.element,"ytp-has-duration",
!!c)}else a.la("text",a.G),g.En(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);jR(a,!!b)};
jR=function(a,b,c,d){a.element.style.maxWidth=b?"":Math.min(a.ga,300*a.B)+"px";a.wa.qk(a.element,a.u,c,1==a.w,d);a.element.style.top?g.J(a.element,"ytp-bottom"):a.element.style.bottom&&g.J(a.element,"ytp-top");3==a.w&&a.ma.start()};
SN=function(a){a.u&&!a.ba&&a.u.hasAttribute("title")&&(a.G=a.u.getAttribute("title"),a.u.removeAttribute("title"),a.V&&oR(a))};
iR=function(a,b){g.K(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.B,d=160*a.B,e=a.A.ti(a.C,c);UO(a.I,e,c,d,!0);a.da.start()}};
pR=function(a){g.R.call(this,{D:"button",Y:["ytp-button","ytp-back-button"],J:[{D:"div",H:"ytp-arrow-back-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-arrow-back"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Na:!0,O:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.K=a;g.Qu(this,a.N().showBackButton);this.ka("click",this.onClick)};
qR=function(a,b){g.R.call(this,{D:"button",Y:["ytp-button","ytp-copylink-button"],O:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Ly(a.N()))},J:[{D:"div",H:"ytp-copylink-icon",W:"{{icon}}"},{D:"div",H:"ytp-copylink-title",W:"Copier le lien",O:{"aria-hidden":"true"}}]});var c=this;this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.fb();var d=a.N();AN(this.tooltip);g.K(this.element,"ytp-show-copylink-title",g.Ly(d)&&!g.Uy(d));g.kL(a,this.element,this,86570);this.ka("click",this.onClick);
this.L(a,"videodatachange",this.sa);this.L(a,"videoplayerreset",this.sa);this.L(a,"appresize",this.sa);this.sa();g.Ge(this,function(){return g.BN(c.tooltip,c.element)})};
nla=function(a){a.la("icon",AM());nR(a.tooltip,a.element,"Lien copi\u00e9 dans le presse-papiers");var b=a.ka("mouseleave",function(){a.bb(b);a.sa();a.tooltip.rf()})};
rR=function(a,b,c){g.R.call(this,{D:"button",Y:["ytp-button","ytp-overflow-button"],O:{title:"Plus","aria-haspopup":"true","aria-owns":c.element.id},J:[{D:"div",H:"ytp-overflow-icon",J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-more-vert"]}:{D:"svg",O:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},J:[{D:"path",O:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.K=
a;this.u=b;this.visible=!1;this.tooltip=this.u.fb();g.kL(a,this.element,this,16499);this.L(a,"appresize",this.sa);this.L(a,"fullscreentoggled",this.sa);this.L(a,"presentingplayerstatechange",this.sa);this.sa();g.Ge(this,g.BN(this.tooltip,this.element));this.ka("click",function(){g.nL(a,d.element);c.hf(d.element,!1)})};
sR=function(a,b){g.wN.call(this,a,{D:"div",H:"ytp-overflow-panel",O:{id:Lu(),role:"dialog"},J:[{D:"div",H:"ytp-overflow-panel-content",J:[{D:"div",H:"ytp-overflow-panel-action-buttons",W:"{{buttons}}"}]},{D:"button",Y:["ytp-overflow-panel-close","ytp-button"],O:{title:"Fermer"},J:[g.GM()]}]},250);var c=this;this.K=a;this.actionButtons=[];this.tooltip=b.fb();this.w=this.o["ytp-overflow-panel-content"];this.closeButton=this.o["ytp-overflow-panel-close"];this.L(this.closeButton,"click",this.gb);g.Ge(this,
function(){return g.BN(c.tooltip,c.closeButton)});
this.ka("click",this.dM);this.L(a,"videoplayerreset",this.hide);this.L(a,"fullscreentoggled",this.QH);this.hide()};
tR=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.la("buttons",a.actionButtons))};
uR=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.Xa(b)};
vR=function(a,b){g.R.call(this,{D:"button",Y:["ytp-replay-button","ytp-button"],O:{title:"Revoir"},J:[g.UM()]});this.K=a;this.L(a,"presentingplayerstatechange",this.u);this.ka("click",this.onClick,this);var c=g.PK(a);g.Qu(this,g.V(c,2));g.BN(b.fb(),this.element)};
xR=function(a){g.R.call(this,{D:"div",H:wR.TITLE,J:[{D:"div",H:wR.TEXT,J:[{D:"a",Y:[wR.LINK,wR.SESSIONLINK],O:{target:a.N().C,href:"{{url}}","data-sessionlink":"feature=player-title"},W:"{{title}}"},{D:"div",H:wR.SUBTEXT,J:[{D:"a",H:wR.CHANNEL_NAME,O:{href:"{{channelLink}}",target:"_blank"},W:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.o[wR.LINK];g.kL(a,this.element,this,23851);this.L(a,"videodatachange",this.sa);this.L(a,"videoplayerreset",this.sa);this.sa()};
yR=function(a){a.la("channelLink","");a.la("channelName","")};
zR=function(){};
BR=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};AR||(GK({lr:{playlistEditEndpoint:fN,subscribeEndpoint:dN,unsubscribeEndpoint:eN,modifyChannelNotificationPreferenceEndpoint:zR}},iN(),bN(),Rea),AR=FK.o);c=IK(AR,c);Jf(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Fc&&
a.Fc({},d)})};
ola=function(a,b,c){g.xo("web_classic_playlist_one_platform_update")?BR(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):CR("add_to_watch_later_list",a,b,c)};
pla=function(a,b,c){g.xo("web_classic_playlist_one_platform_update")?BR(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):CR("delete_from_watch_later_list",a,b,c)};
CR=function(a,b,c,d){g.Eq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Zd:{feature:b.feature||null,authuser:b.Nc||null,pageid:b.pageId||null},sb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.PT||null,add_to_playlists:b.sT||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Fc:b.Fc,withCredentials:!!d})};
g.ER=function(a,b){g.R.call(this,{D:"button",Y:["ytp-watch-later-button","ytp-button"],O:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Ly(a.N()))},J:[{D:"div",H:"ytp-watch-later-icon",W:"{{icon}}"},{D:"div",H:"ytp-watch-later-title",W:"\u00c0 regarder plus tard"}]});this.K=a;this.A=b;this.icon=null;this.visible=this.w=this.u=!1;this.tooltip=b.fb();AN(this.tooltip);g.kL(a,this.element,this,28665);this.ka("click",this.onClick,this);this.L(a,"videoplayerreset",this.JM);
this.L(a,"appresize",this.Zo);this.L(a,"videodatachange",this.Zo);this.L(a,"presentingplayerstatechange",this.Zo);this.Zo();var c=this.K.N(),d=g.Es("yt-player-watch-later-pending");c.u&&d?(jy(),DR(this,d.videoId)):this.sa(2);g.K(this.element,"ytp-show-watch-later-title",g.Ly(c));g.Ge(this,g.BN(b.fb(),this.element))};
FR=function(a,b){g.AQ(function(){jy({videoId:b});window.location.reload()},"wl_button",g.ez(a.K.N()))};
DR=function(a,b){if(!a.w)if(a.w=!0,a.sa(4),g.P(a.K.N().experiments,"web_player_innertube_playlist_update")){var c=a.K.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=xQ(a.K.app),e=a.u?a.lB.bind(a):a.kB.bind(a);IK(d,c).then(e,a.GN.bind(a))}else c=a.K.N(),(a.u?pla:ola)({videoIds:b,Nc:c.Nc,pageId:c.pageId,onError:a.FN,onSuccess:a.u?a.lB:a.kB,context:a},c.G,!0)};
GR=function(a,b){a.sa(5,b);a.K.N().w&&a.K.na("WATCH_LATER_ERROR",b)};
HR=function(a,b){var c=a.K.N(),d=a.A.Rd()&&g.Ly(c);!c.F||2!==b&&3!==b||(b=d?3:2);if(b!==a.icon){switch(b){case 4:var e=KN();break;case 1:e=AM();break;case 2:e=g.X?{D:"div",Y:["ytp-icon","ytp-icon-watch-later"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{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 3:e={D:"div",Y:["ytp-icon","ytp-icon-watch-later-large"]};break;case 5:e=g.P(c.experiments,"watch_later_iconchange_killswitch")?g.X?{D:"div",Y:["ytp-icon","ytp-icon-alert"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:
g.X?{D:"div",Y:["ytp-icon","ytp-icon-warning"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.la("icon",e);a.icon=b}};
IR=function(a){g.eQ.call(this,a);var b=this,c=g.QK(a),d=a.N(),e=a.getVideoData();this.ga=g.Ly(d);this.Rb=48;this.yb=69;this.ga&&(g.J(a.getRootNode(),"ytp-embed"),g.J(a.getRootNode(),"ytp-embed-playlist"),this.Rb=60,this.yb=89);this.wf=e&&e.wf;this.oa=null;this.U=[];this.V=new g.oQ(a);g.B(this,this.V);g.iL(a,this.V.element,4);this.Yb=new JQ(a);g.B(this,this.Yb);g.iL(a,this.Yb.element,4);e=new g.R({D:"div",H:"ytp-gradient-top"});g.B(this,e);g.iL(a,e.element,1);this.Ic=new g.lN(e,250,!0,100);g.B(this,
this.Ic);this.A=new g.R({D:"div",H:"ytp-chrome-top"});g.B(this,this.A);g.iL(a,this.A.element,1);this.Hc=new g.lN(this.A,250,!0,100);g.B(this,this.Hc);this.Ca=[];this.M=new g.hR(a,this);g.B(this,this.M);g.iL(a,this.M.element,4);e=new ZQ(a);g.B(this,e);g.iL(a,e.element,5);e.subscribe("show",(0,g.x)(this.oi,this,e));this.Ca.push(e);this.za=new $Q(a,this,e);g.B(this,this.za);d.showBackButton&&(this.od=new pR(a),g.B(this,this.od),this.od.ca(this.A.element));this.ga||this.za.ca(this.A.element);this.rb=
new EQ(a,this);this.rb.ca(this.A.element);g.B(this,this.rb);this.qc=new xR(a,this);g.B(this,this.qc);this.qc.ca(this.A.element);e=new g.Mu({D:"div",H:"ytp-chrome-top-buttons"});g.B(this,e);e.ca(this.A.element);this.ha=e;this.I=new g.ER(a,this);g.B(this,this.I);this.I.ca(e.element);var f=new g.bR(a,this);g.B(this,f);g.iL(a,f.element,5);f.subscribe("show",(0,g.x)(this.oi,this,f));this.Ca.push(f);this.G=new g.eR(a,this,f);g.B(this,this.G);this.G.ca(e.element);this.F=new qR(a,this);g.B(this,this.F);this.F.ca(e.element);
d.en&&(f=new gR(a),g.B(this,f),g.iL(a,f.element,4));this.ga&&this.za.ca(e.element);this.ma=new uQ(a,this,this.A.element);g.B(this,this.ma);this.ma.ca(e.element);f=new vQ(a,this,this.ma);g.B(this,f);f.ca(e.element);this.w=new sR(a,this);g.B(this,this.w);g.iL(a,this.w.element,5);this.w.subscribe("show",function(){b.oi(b.w,yN(b.w))});
this.Ca.push(this.w);this.Ma=new rR(a,this,this.w);g.B(this,this.Ma);this.Ma.ca(e.element);(this.o="1"==d.controlsType?new TP(a,this,this.u):null)&&g.B(this,this.o);"3"==d.controlsType&&(e=new vR(a,this),g.B(this,e),g.iL(a,e.element,8));this.P=new g.TQ(a,this,this.V);g.B(this,this.P);this.P.subscribe("show",this.FC,this);this.nb=!1;e=new mQ(a,new nQ(a));g.B(this,e);g.iL(a,e.element,4);this.Ka=new g.R({D:"div",O:{tabindex:"0"}});this.Ka.ka("focus",this.ME,this);g.B(this,this.Ka);this.Ia=new g.R({D:"div",
O:{tabindex:"0"}});this.Ia.ka("focus",this.NE,this);g.B(this,this.Ia);(this.aa=d.Wa?null:new g.VQ(a,c,this.P,this.u,this.V,(0,g.x)(this.jg,this)))&&g.B(this,this.aa);this.R.push(this.V.element);this.Aa=null;this.L(a,"fullscreentoggled",this.bJ);this.L(a,"offlineslatestatechange",this.XL,this);this.L(a,"cardstatechange",this.oe,this)};
JR=function(a){var b=a.api.N(),c=g.V(g.PK(a.api),128);return b.u&&c&&!a.api.isFullscreen()};
KR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=xh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=KR(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
g.LR=function(a){g.vL.call(this,a);this.chrome=null;this.load()};
NR=function(a,b,c){g.A.call(this);var d=this;this.api=a;this.G=b;this.u=c;this.C=new Map;this.o=[];this.F=NaN;this.A=this.w=null;this.B=new g.I(function(){MR(d,d.F)});
this.events=new g.Gr(this);this.u.getPlayerType();wka(this.u,this);g.B(this,this.B);g.B(this,this.events);this.events.L(this.api,g.lC("childplayback"),this.I)};
sla=function(a,b,c,d,e){var f=a.u;e=void 0===e?d+c:e;if(d>e)return"";var k=1E3*f.Ab();if(d<k)return"";k=1E3*f.getDuration();if(e>k)return"";k=null;for(var l=g.q(a.o),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Jb&&d<m.Nb||e<=m.Nb&&e>m.Jb||e===m.Jb)return"";d===m.Nb&&(k=m)}l="childplayback_"+qla++;m={Pb:OR(c,!0),Fe:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.P(a.G.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b={Eb:l,playerVars:b,
playerType:2,durationMs:c,Jb:d,Nb:e,Ne:m,playerResponse:n};a.o=a.o.concat(b).sort(function(t,u){return t.Jb-u.Jb});
k?rla(k,{Pb:OR(k.durationMs,!0),Fe:Infinity,target:b}):(d={Pb:OR(d,!1),Fe:d,target:b},a.C.set(d.Pb,d),f.addCueRange(d.Pb));return l};
OR=function(a,b){return new g.iC(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
rla=function(a,b){a.Ne=b};
PR=function(a,b){for(var c=0,d=g.q(a.o),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Jb/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{ji:e,Ui:b-f};c=k-e.Nb/1E3}return{ji:null,Ui:b-c}};
MR=function(a,b){var c=a.A||a.api.kb().getPlayerState();QR(a,!0);var d=PR(a,b).Ui;a.u.seekTo(d);d=a.api.kb();var e=d.getPlayerState();g.OC(c)&&!g.OC(e)?d.playVideo():g.V(c,4)&&!g.V(e,4)&&d.pauseVideo()};
QR=function(a,b){a.F=NaN;a.B.stop();a.w&&b&&cK(a.w);a.A=null;a.w=null};
SR=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.C),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Fe>=d&&l.target&&l.target.Nb<=e&&(a.u.removeCueRange(k),a.C["delete"](k))}d=b;e=c;f=[];k=g.q(a.o);for(l=k.next();!l.done;l=k.next())l=l.value,(l.Jb<d||l.Nb>e)&&f.push(l);a.o=f;d=PR(a,b/1E3);b=d.ji;d=d.Ui;b&&(d*=1E3,RR(b,d,b.Jb+d));PR(a,c/1E3)};
RR=function(a,b,c){a.durationMs=b;a.Nb=c;b={Pb:OR(b,!0),Fe:b,target:null};a.Ne=b};
gja=function(a,b,c){a=PR(a,b).ji;var d=Number(c.split(";")[0]);return a&&a.playerResponse&&a.playerResponse.streamingData&&(c=a.playerResponse.streamingData.adaptiveFormats)&&(c=c.find(function(e){return e.itag===d}))&&c.url?c.url:null};
UR=function(a,b,c){g.A.call(this);var d=this;this.api=a;this.B=b;this.u=c;this.C=new Map;this.o=[];this.w=this.G=null;this.M=NaN;this.F=this.A=null;this.P=new g.I(function(){TR(d,d.M)});
this.I=[];this.R=new g.I(function(){var e=d.I.pop();if(e){var f=e.Eb,k=e.playerVars;e=e.playerType;k.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(k,e,NaN,"",f);d.I.length&&d.R.Ua(4500)}});
this.events=new g.Gr(this);c.getPlayerType();g.B(this,this.P);g.B(this,this.R);g.B(this,this.events);this.events.L(this.api,g.lC("childplayback"),this.LH);this.events.L(this.api,"onQueuedVideoLoaded",this.xM);this.events.L(this.api,"presentingplayerstatechange",this.MH)};
ula=function(a,b,c,d,e){var f=a.u;e=void 0===e?d+c:e;if(d>e)return VR(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var k=1E3*f.Ab();if(d<k)return VR(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+k),"";k=1E3*f.getDuration();if(e>k)return VR(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+k),"";k=null;for(var l=g.q(a.o),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Jb&&d<m.Nb)return VR(a,
"e.overlappingEnter"),"";if(e<=m.Nb&&e>m.Jb)return VR(a,"e.overlappingReturn"),"";if(e===m.Jb)return VR(a,"e.outOfOrder"),"";d===m.Nb&&(k=m)}l="childplayback_"+tla++;m={Pb:WR(c,!0),Fe:Infinity,target:null};var n={Eb:l,playerVars:b,playerType:2,durationMs:c,Jb:d,Nb:e,Ne:m};a.o=a.o.concat(n).sort(function(u,z){return u.Jb-z.Jb});
k?YR(a,k,{Pb:WR(k.durationMs,!0),Fe:a.B.fa("timeline_manager_transition_killswitch")?Infinity:k.Ne.Fe,target:n}):(b={Pb:WR(d,!1),Fe:d,target:n},a.C.set(b.Pb,b),f.addCueRange(b.Pb));b=g.P(a.B.experiments,"html5_gapless_preloading");if(a.u===a.api.kb()&&(f=1E3*f.getCurrentTime(),f>=n.Jb&&f<n.Nb)){var p=a.api.kb().getPlayerState(),t=f-n.Jb;nf(function(){ZR(a,n,t/1E3,p)});
b=!1}b&&(a.I.unshift(n),a.R.Ua(0));return l};
WR=function(a,b){return new g.iC(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
vla=function(a,b,c,d){a.w=d;$R(a.api.app,a.u,c,void 0===b?0:b)};
aS=function(a,b,c,d){a.w=d;d=b.Eb;var e=b.playerVars,f=b.playerType;a.G=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
YR=function(a,b,c){var d=b.Ne;b.Ne=c;bS(a,b)&&(c=a.api.kb(),d.Pb===a.w&&cS(a),c.removeCueRange(d.Pb),c.addCueRange(b.Ne.Pb))};
cS=function(a){a.G=null;a.w=null;!a.api.app.Ka.o||a.api.clearQueue()};
dS=function(a,b){bS(a,b)||VR(a,"e.childPlaybackIsNotPresenting");return b.Nb===b.Jb+b.durationMs?b.Jb+1E3*a.api.kb().getCurrentTime():b.Nb};
eS=function(a,b){for(var c=0,d=g.q(a.o),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Jb/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{ji:e,Ui:b-f};c=k-e.Nb/1E3}return{ji:null,Ui:b-c}};
TR=function(a,b){var c=a.F||a.api.kb().getPlayerState();fS(a,!0);if(g.P(a.B.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b))var d=b;else d=a.u.C,d=d.u?XH(d.u):Infinity;var e=eS(a,d);d=e.ji;e=e.Ui;var f=d&&!bS(a,d)||!d&&a.u!==a.api.kb(),k=1E3*e;k=a.w&&a.w.start<=k&&k<=a.w.end;!f&&k||cS(a);d?ZR(a,d,e,c):gS(a,e,c)};
gS=function(a,b,c){var d=a.u;if(d!==a.api.kb()){var e=d.getPlayerType();g.bM(a.api.app,e)}d.seekTo(b);hS(a,c)};
ZR=function(a,b,c,d){var e=bS(a,b);if(!e){g.bM(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.aB(a.B,b.playerVars);f.Eb=b.Eb;iS(a.api.app,f,b.playerType,void 0)}f=a.api.kb();e||f.addCueRange(b.Ne.Pb);f.seekTo(c);hS(a,d)};
hS=function(a,b){var c=a.api.kb(),d=c.getPlayerState();g.OC(b)&&!g.OC(d)?c.playVideo():g.V(b,4)&&!g.V(d,4)&&c.pauseVideo()};
fS=function(a,b){a.M=NaN;a.P.stop();a.A&&b&&cK(a.A);a.F=null;a.A=null};
bS=function(a,b){var c=a.api.kb();return!!c&&c.getVideoData().Eb===b.Eb};
kS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.C),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Fe>=d&&l.target&&l.target.Nb<=e&&(a.u.removeCueRange(k),a.C["delete"](k))}d=b;e=c;f=[];k=g.q(a.o);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Jb>=d&&l.Nb<=e){var m=a;m.G===l&&cS(m);bS(m,l)&&g.sL(m.api,l.playerType)}else f.push(l);a.o=f;d=eS(a,b/1E3);b=d.ji;d=d.Ui;b&&(d*=1E3,jS(a,b,d,b.Nb===b.Jb+b.durationMs?b.Jb+d:b.Nb));
eS(a,c/1E3)};
jS=function(a,b,c,d){b.durationMs=c;b.Nb=d;d={Pb:WR(c,!0),Fe:c,target:null};YR(a,b,d);bS(a,b)&&1E3*a.api.kb().getCurrentTime()>c&&(b=dS(a,b)/1E3,c=a.api.kb().getPlayerState(),gS(a,b,c))};
VR=function(a,b){a.u.Ra("timelineerror",b)};
xla=function(a){a&&"web"!==a&&wla.includes(a)};
lS=function(a,b,c){this.api=a;this.player=b;this.player.subscribe("localmediacomplete",this.o,this);this.u=c};
nS=function(a,b){ut(b,2);var c=yla(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity});c.subscribe("dataloaded",function(){return void mS(c)});
uJ(a.player,c,a.u);zJ(a.player,!1)};
yla=function(a,b){return new g.aB(a.player.N(),b)};
mS=function(a){if((a=a.getPlayerResponse())&&a.videoDetails&&a.videoDetails.videoId){var b=a.videoDetails;a={videoId:a.videoDetails.videoId,title:b.title,lengthSeconds:b.lengthSeconds,thumbnail:b.thumbnail,viewCount:b.viewCount,author:b.author};wfa(a.videoId,a)}};
oS=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+ct(a)+")":ct(a)};
Ala=function(a,b){if(g.gl())return null;var c=zla();if(!c)return g.TK(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.TK(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.TK(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.OC(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);pS=!1},null)};
pS||(a.addEventListener("presentingplayerstatechange",d),pS=!0)}return new SC(c,b)};
qS=function(a,b,c,d,e){g.R.call(this,{D:"div",H:"ytp-horizonchart"});this.F=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.A=this.w=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.F+"em"};
rS=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.oe("CANVAS"),a.w=c.getContext("2d")}catch(e){}if(a.w){var d=a.u*a.sampleCount;a.A=c;a.A.width=d;a.A.style.width=d+"px";a.element.appendChild(a.A)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.oe("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.w&&(c=1<(window.devicePixelRatio||1)?2:1,a.A.height=a.heightPx*c,a.A.style.height=
a.heightPx+"px",a.w.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.w?a.w.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
sS=function(a){var b=null;b={D:"button",Y:["html5-video-info-panel-close","ytp-button"],O:{title:"close"},W:"[x]"};g.R.call(this,{D:"div",H:"html5-video-info-panel",J:[b,{D:"div",H:"html5-video-info-panel-content",J:[{D:"div",J:[{D:"div",W:"Video ID / sCPN"},{D:"span",W:"{{video_id_and_cpn}}"}]},{D:"div",J:[{D:"div",W:"Viewport / Frames"},{D:"span",W:"{{dims_and_frames}}"}]},{D:"div",J:[{D:"div",W:"Current / Optimal Res"},{D:"span",W:"{{resolution}}"}]},{D:"div",J:[{D:"div",W:"Volume / Normalized"},
{D:"span",W:"{{volume}}"}]},{D:"div",J:[{D:"div",W:"Codecs"},{D:"span",W:"{{codecs}}"}]},{D:"div",O:{style:"{{shader_info_style}}"},J:[{D:"div",W:"Shader Info"},{D:"span",W:"{{shader_info}}"}]},{D:"div",O:{style:"{{color_style}}"},J:[{D:"div",W:"Color"},{D:"span",W:"{{color}}"}]},{D:"div",O:{style:"{{drm_style}}"},J:[{D:"div",W:"Protected"},{D:"span",W:"{{drm}}"}]},{D:"div",O:{style:"{{bandwidth_style}}"},J:[{D:"div",W:"Connection Speed"},{D:"span",J:[{D:"span",W:"{{bandwidth_chart}}"},{D:"span",
W:"{{bandwidth_kbps}}"}]}]},{D:"div",O:{style:"{{network_activity_style}}"},J:[{D:"div",W:"Network Activity"},{D:"span",J:[{D:"span",W:"{{network_activity_chart}}"},{D:"span",W:"{{network_activity_bytes}}"}]}]},{D:"div",J:[{D:"div",W:"Buffer Health"},{D:"span",J:[{D:"span",W:"{{buffer_health_chart}}"},{D:"span",W:"{{buffer_health_seconds}}"}]}]},{D:"div",O:{style:"{{live_latency_style}}"},J:[{D:"div",W:"Live Latency"},{D:"span",J:[{D:"span",W:"{{live_latency_chart}}"},{D:"span",W:"{{live_latency_secs}}"}]}]},
{D:"div",O:{style:"{{live_mode_style}}"},J:[{D:"div",W:"Live Mode"},{D:"span",W:"{{live_mode}}"}]},{D:"div",O:{style:"{{playback_categories_style}}"},J:[{D:"div",W:"Playback Categories"},{D:"span",W:"{{playback_categories}}"}]},{D:"div",J:[{D:"div",W:"Mystery Text"},{D:"span",W:"{{debug_info}}"}]},{D:"div",O:{style:"{{release_style}}"},J:[{D:"div",W:"Player Release"},{D:"span",W:"{{release_name}}"}]}]}]});b&&this.L(this.o["html5-video-info-panel-close"],"click",this.hide);b=[0,18750,37500,81250,128E3,
256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.u=new qS(300,1,150,b,c);g.B(this,this.u);this.la("bandwidth_chart",this.u);this.A=new qS(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.B(this,this.A);this.la("live_latency_chart",this.A);this.w=new qS(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.B(this,this.w);this.la("buffer_health_chart",this.w);this.B=new qS(300,1,150,d,c);g.B(this,this.B);this.la("network_activity_chart",this.B);this.delay=new g.I(this.sa,
500,this);g.B(this,this.delay);this.C=a};
zS=function(a,b,c){g.A.call(this);var d=this;this.za=ffa(b||{});this.Rb=c;b=this.za.args||{};this.o=new cz(b,c);g.B(this,this.o);g.P(this.o.experiments,"html5_vp9_new_mime")&&void 0!=navigator.mediaCapabilities&&(Tx=!0);Ux=tS(this,"html5_vp9_mime_full_range_flag");g.P(this.o.experiments,"html5_disable_subtract_cuepoint_offset")&&(eE=!0);g.P(this.o.experiments,"html5_log_opus_oboe_killswitch")&&(Sv=!1);g.P(this.o.experiments,"html5_skip_empty_load")&&(uS=!0);vS=g.P(this.o.experiments,"html5_ios_force_seek_to_zero_on_stop");
wS=g.P(this.o.experiments,"html5_ios7_force_play_on_stall");xS=g.P(this.o.experiments,"html5_ios4_seek_above_zero");g.P(this.o.experiments,"html5_mediastream_applies_timestamp_offset")&&(aE=!0);this.pe=S(Ny(this.o)&&!0,b.enablesizebutton);this.Ic=S(!1,b.player_wide);this.I=new eI;g.B(this,this.I);this.aa=!1;this.setIsExternalPlaylist(b.external_list);this.V=new g.Gr(this);g.B(this,this.V);this.ba=null;this.da=new g.Tn;g.B(this,this.da);this.ma=new g.Tn;g.B(this,this.ma);this.oa=new wM;this.qc=null;
this.u=new JK(this);g.B(this,this.u);this.G=new nM(this);g.B(this,this.G);this.Z=1;this.Xb={};this.R=this.o.Mc?Iga():{volume:100,muted:this.o.mute};this.qd=this.o.w?new fC(this,1):new WB(this,1);g.B(this,this.qd);this.B=null;this.Kc={};c={};this.Yb=(c.internalvideodatachange=this.iK,c.playbackready=this.kK,c.playbackstarted=this.lK,c.statechange=this.HG,c.signatureexpired=this.fN,c);this.A=Bla(this);this.Jc=new g.Gr(this);g.B(this,this.Jc);this.P=new BI(this.o,this.A);this.w=Cla(this);c={};this.rd=
(c.airplayactivechange=this.aK,c.airplayavailabilitychange=this.bK,c.beginseeking=this.sK,c.endseeking=this.XK,c.internalAbandon=this.hL,c.internalaudioformatchange=this.nK,c.internalvideodatachange=this.Ws,c.internalvideoformatchange=this.BN,c.liveviewshift=this.oL,c.playbackstalledatstart=this.lN,c.progresssync=this.uM,c.onLoadProgress=this.pL,c.SEEK_COMPLETE=this.ZM,c.SEEK_TO=this.aN,c.onVideoProgress=this.LG,c.onLoadedMetadata=this.rL,c.onDompaused=this.QK,c.playbackready=this.jM,c.statechange=
this.jB,c.connectionissue=this.IK,c.newelementrequired=this.KA,c.heartbeatparams=this.IG,c.videoelementevent=this.KG,c.drmoutputrestricted=this.WK,c.requestmediasource=this.HM,c);this.wa=new g.Gr(this);g.B(this,this.wa);this.C=null;c=10;g.$y(this.o)&&(c=3);kz(this.o)&&(c=g.Q(this.o.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Wa=new eM(c,function(e){e!=g.W(d,e.getPlayerType())&&(BA("prefetch_"+e.getVideoData().videoId),e.dispose())});
g.B(this,this.Wa);this.ac=this.pc=-1;this.yb=new g.I(this.G.ke,16,this.G);g.B(this,this.yb);this.rb=!1;this.Ea=!0;this.Ma=this.nb=this.F=null;this.Tc=!1;this.Hc=this.od=null;this.Ca=0;this.Qa=this.Ta=!1;this.ga=null;this.Uc=!1;this.pd=!0;this.Ia=void 0;Dla(this);this.Aa=new UR(this.u,this.o,this.w);this.U=g.P(this.o.experiments,"web_player_halftime_dai")?new NR(this.u,this.o,this.w):null;this.Md=null;this.Ka=new ZL(this.u);g.B(this,this.Ka);xla(this.o.deviceParams.c);this.V.L(this.u,g.lC("appapi"),
this.gK);this.V.L(this.u,"crx_appapi",this.hK);this.V.L(this.u,g.lC("appad"),this.jA);this.V.L(this.u,"crx_appad",this.jA);this.V.L(this.u,"crx_applooprange",this.xu);this.V.L(this.u,"presentingplayerstatechange",this.JG);this.V.L(this.u,"resize",this.LM);this.G.ca($d(document,a));this.V.L(this.u,"offlineslatestatechange",this.WL);this.Mc=Ela(this,this.G.element);g.B(this,this.Mc);this.M=null;g.X=this.o.F;this.o.za&&(g.KL.ux=g.LR);Fla(this);this.P.tick("fs");Gla(this);this.o.za&&Oka(this.A);g.Uy(this.A.o.N())&&
this.A.sd("music");g.Ly(this.A.o.N())&&this.A.sd("embed");tS(this,"web_player_sentinel_is_uniplayer")||g.Go(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.qe=Hla(this);this.ha=null;tS(this,"mweb_hoffline")&&(this.ha=new lS(this.u,yS(this,1),function(){return d.Wc()}))};
Hla=function(a){function b(c){if(-1!==c.stack.indexOf("player"))(a.C||a.w).B.onError("player.exception",Ps({n:c.name,m:c.message}))}
Eo.push(b);return function(){var c=Eo.indexOf(b);-1!==c&&Eo.splice(c,1)}};
BS=function(a,b,c){var d=this;try{var e="string"===typeof a?a:"player"+g.Pa(a),f=AS[e];if(f){try{f.dispose()}catch(l){g.M(l)}AS[e]=null}var k=new zS(a,b,c);g.Ge(k,function(){AS[e]=null;d.qe&&d.qe()});
return AS[e]=k}catch(l){throw g.M(l),l.stack;}};
Cla=function(a){var b=new kJ(a.o,1,a.P,a.G,(0,g.x)(a.da.S,a.da),(0,g.x)(a.u.getVisibilityState,a.u),a.I);b.setPlaybackRate(a.o.u?1:CS(a,parseFloat(g.Es("yt-player-playback-rate"))||1));Jr(b,a.Yb,a);return b};
xQ=function(a){a.qc||(GK({lr:{subscribeEndpoint:dN,unsubscribeEndpoint:eN,playlistEditEndpoint:fN,webPlayerShareEntityServiceEndpoint:gN}},iN(),bN(),g.M),a.qc=FK.o);return a.qc};
Bla=function(a){var b="",c=mM(a);0==c.indexOf("//")&&(c=a.o.protocol+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Go(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new yL(a.u,b);c={};a=(c.destroyed=(0,g.x)(a.fK,a),c);b.C=a;return b};
ES=function(a,b){var c=a.isVideoInfoVisible();a.ba||(a.ba=new sS(a.u),g.B(a,a.ba),g.iL(a.u,a.ba.element,4));g.Qu(a.ba,b);DS(a)&&c!=b&&g.RK(a.A).CG();c=a.C;b&&c&&c.Ra("sfn","1",!0)};
GS=function(a){var b=FS.getTag(!0,!a.o.deviceHasDisplay);a.B=new g.ML(b);g.B(a,a.B);a.C&&PJ(a.C,a.B);try{a.o.wa?(a.Ma&&a.V.bb(a.Ma),a.Ma=a.V.L(a.B,"volumechange",a.GL)):tS(a,"web_player_mute_then_volume_killswitch")?(a.B.setVolume(a.R.volume/100),a.B.Rh(a.R.muted)):(a.B.Rh(a.R.muted),a.B.setVolume(a.R.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));g.jJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.Ir(a.wa);Ila(a);c=a.G;c.u=b;c.C=!1;c.u.parentNode||
g.se(c.A,c.u,0);c.G=new g.ph(0,0,0,0);vM(c);uM(c);g.J(c.u,"video-stream");g.J(c.u,g.lM.MAIN_VIDEO);b=c.app.N();b.pc&&c.u.setAttribute("data-no-fullscreen",!0);b.Vf&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Hn&&c.u&&c.L(c.u,"click",c.u.play,c.u);try{a.B.ak()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),g.jJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
HS=function(a){if(a.B){a.Ma&&(a.V.bb(a.Ma),a.Ma=null);g.Ir(a.wa);a.C&&OJ(a.C,!0);oM(a.G);a.B.Ch()&&FS.releaseTag(a.B.ua());if(!tS(a,"html5_unset_src_on_remove_killswitch"))try{a.B.Ep()}catch(b){}a.B=null}};
g.bM=function(a,b){var c=g.W(a,b);c||(c=yS(a,b),IS(a,c));qL(a,c)};
qL=function(a,b){if(a.C!=b){var c=null;a.C&&(c=a.C.getPlayerState(),FL(a.A,3),JS(a,"cuerangesremoved",qF(a.C.R)||[]),a.Ka&&!b.isGapless()&&a.C.isGapless()&&a.B&&a.B.stopVideo(),rL(a));IS(a,b);a.C=b;a.B&&PJ(b,a.B);Jr(b,a.rd,a);a.Ws("newdata",b,b.getVideoData());c&&!g.NC(c,b.getPlayerState())&&a.jB(new g.$G(b.getPlayerState(),c));b.Z.isFinished()&&a.Ws("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().Ba)&&c.video)&&a.u.na("onPlaybackQualityChange",c.quality);JS(a,"cuerangesadded",qF(a.C.R)||
[]);c=b.getPlayerState();g.V(c,2)?KS(a):g.V(c,8)&&b.playVideo()}};
KS=function(a){if(a.F&&g.Ry(a.o)&&g.LS(a)){var b=g.P(a.o.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);b=!0}else b=!1;b||((b=a.w.o)&&b.ol(),MS(a,RC(OK(a))))};
Ila=function(a){var b=a.B;Ft()?a.wa.L(b,"webkitpresentationmodechanged",a.WM):Gt()&&(a.wa.L(b,"enterpictureinpicture",function(){fI(a.I,!0)}),a.wa.L(b,"leavepictureinpicture",function(){fI(a.I,!1)}));
Sy&&(a.wa.L(b,"webkitbeginfullscreen",function(){NS(a,3)}),a.wa.L(b,"webkitendfullscreen",function(){NS(a,0)}))};
IS=function(a,b){if(b!=a.w){var c=b.getPlayerType();a.Kc[c]=b}};
rL=function(a){var b;if(b=a.ga)b=a.B,b=!!b&&b===a.ga.w;b&&(HS(a),GS(a));a.C&&(OJ(a.C),Kr(a.C,a.rd,a));a.C=null};
g.W=function(a,b){return b?1==b?a.w:a.Kc[b]||null:a.C};
yS=function(a,b){var c=a.P;2==b&&(c=new BI(a.o));return new kJ(a.o,b,c,a.G,(0,g.x)(a.da.S,a.da),(0,g.x)(a.u.getVisibilityState,a.u),a.I)};
OS=function(a,b){return a.Mb(b)?a.w:b};
PS=function(a,b){var c=a.C;return c&&b==a.w&&a.Mb(b)&&a.Mb(c)?c:b};
RS=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.A,e;for(e in QS){var f=QS[e];switch(f){case "embed":case "kids":case "remote":case "miniplayer":case "music":case "unplugged":d.sd(f);break;case "attribution":case "fresca":case "ypc":case "ypc_clickwrap":case "yto":case "visualizer":case "webgl":d.sd(f,void 0,!1,!0);break;case "captions":d.sd(f,void 0,!0)}}d.Fw();d.B&&c?g.fL(d.o,"endscreen"):d.sd("endscreen");d.B&&c?(g.fL(d.o,"annotations_module"),g.fL(d.o,"creatorendscreen")):(d.qr(),
d.sd("creatorendscreen",void 0,!0));d.Hw();EL(d);c&&NB(b)?a.Jc.L(a.u,"presentingplayerstatechange",a.mM):DL(a.A);a.u.S("videoready",b)};
SS=function(a){return a.w.getVideoData()};
g.TS=function(a,b){var c=g.W(a,1);c&&hJ(c,b)};
US=function(a){a=SS(a);a.isValid();return NB(a)};
Fla=function(a){var b=new g.aB(a.o,a.za.args);g.Fs()&&b.Rc.push("remote");b.isValid()&&(uJ(a.w,b,(0,g.x)(a.Wc,a)),!g.P(a.o.experiments,"html5_delay_initial_loading")&&US(a)&&(a.o.Tc||a.o.Uc)&&zJ(a.w))};
Gla=function(a){Jla(a);var b=a.za.args;GS(a);var c=SS(a);a.u.na("onVolumeChange",a.R);if(b&&oC(b)){var d=hz(a.o);d&&!a.aa&&(b.fetch=0);VS(a,b);d&&!a.aa?WS(a):c.isValid()||tC(a.F,(0,g.x)(a.np,a))}qL(a,a.w);g.V(a.w.getPlayerState(),128)||(b=Efa(a.o.deviceHasDisplay),"fmt.noneavailable"==b?g.jJ(a.w,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"==b?g.jJ(a.w,b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&US(a)&&(a.o.Tc||a.o.Uc)?XS(a):
g.Es("yt-player-playback-on-reload")?(g.Rq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.o.Nc}),ly(!1),XS(a)):g.rz(a.o)||YS(a),tS(a,"web_player_inline_botguard")&&(g.jz(a.o)?(Sp(function(){ZS(a)}),Sp(function(){br()})):(ZS(a),br())))};
ZS=function(a){var b=g.L("BG_I",null),c=g.L("BG_IU",null),d=g.L("BG_P",null),e=a.getVideoData().He||"";a=a.o.qd;e=e?"c1b"in g.kq(e):!1;d&&($q.wc?0:!Ls||72E5<(0,g.N)()-Ls)&&(b||c)&&$q.initialize(b,c,d,lfa,a,e)};
YS=function(a){a.u.S("initializingmode");g.$S(a,2);a.A.sd("remote");g.P(a.o.experiments,"player_cued_miniplayer_module_killswitch")||a.A.sd("miniplayer")};
XS=function(a){if(g.V(a.w.getPlayerState(),128))return!1;US(a)&&a.o.Uc&&(FS.hasTags(void 0)&&a.Qa?(ZB(a,{muted:!1,volume:a.R.volume},!1),aT(a,!1)):FS.hasTags(void 0)||a.R.muted||(ZB(a,{muted:!0,volume:a.R.volume},!1),aT(a,!0)));bT(a,1,a.w.getVideoData(),!1);a.u.S("initializingmode");qL(a,a.w);g.$S(a,3);var b;if(!(b=!a.o.Yh)){if(b=a.ga)b=a.B,b=!!b&&b===a.ga.w;b=b&&a.Tc}b&&(HS(a),GS(a),PJ(a.w,a.B));DJ(a.w);if(g.V(a.w.getPlayerState(),128))return!1;MS(a,3);return a.Tc=!0};
DS=function(a){a=g.RK(a.A);return!!a&&a.loaded};
cT=function(a,b){a.C==a.w&&xK(a.C)!=b&&(a.C.setLoop(b),a.u.S("loopchange",b))};
dT=function(a,b){if(!a.M)return!1;var c=.001*a.M.startTimeMs,d=.001*a.M.endTimeMs;return Pd(b,c)||Pd(b,d)||b>=c&&b<=d};
CS=function(a,b){var c=a.u.getAvailablePlaybackRates();b=parseFloat(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0==d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
eT=function(a,b){var c=g.W(a,b);return c?a.Mb(c)?(c=OS(a,c),oK(c)-c.getCurrentTime()+a.getCurrentTime(b)):oK(c):0};
fT=function(a,b,c){if(a.Mb(c)){c=c.getVideoData();if(a.U){a=a.U;for(var d=g.q(a.o),e=d.next();!e.done;e=d.next())if(e=e.value,c.Eb===e.Eb){b+=e.Jb/1E3;break}d=b;a=g.q(a.o);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Eb===e.Eb)break;var f=e.Jb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Nb/1E3;else break}c=d}else{a=a.Aa;d=g.q(a.o);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Eb===e.Eb){b+=e.Jb/1E3;break}d=b;a=g.q(a.o);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Eb===e.Eb)break;f=e.Jb/1E3;if(f<
b)d+=e.durationMs/1E3+f-e.Nb/1E3;else break}c=d}return c}return b};
Jla=function(a){var b=a.G;b.ea();var c=b.app.N();c.Yh||b.km("tag-pool-enabled");c.B&&b.km(g.lM.HOUSE_BRAND);"gvn"==c.playerStyle&&(b.km("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ma&&(b.I=g.Oo("yt-dom-content-change",b.ke,b));g.P(c.experiments,"web_player_ios_mweb_resizing")&&b.L(window,"orientationchange",b.ke,b);b.L(window,"resize",b.ke,b);b=a.qd;b.A=a.G.element;for(var d in b.w)b.A[d]=b.w[d];(d=Fr(a.G.element))&&a.V.L(a.G,d,a.bL);a.V.L(window,"resize",a.MM)};
OK=function(a,b){return 3==a.getPresentingPlayerType()?g.RK(a.A).I:g.W(a,b).getPlayerState()};
gT=function(a,b){return 3==a.getPresentingPlayerType()?RC(g.RK(a.A).I):2!=b||a.Mb()?a.pc:a.ac};
iT=function(a){hT(a);cT(a,!1);a.setLoopRange(null);a.Xb={};var b=a.P;if(b.o){var c=b.o;c.A={};c.w={}}b.u=!1;a.U?(b=a.U,a=a.w,a.getPlayerType(),QR(b,!1),SR(b),b.u=a):(b=a.Aa,a=a.w,1!==a.getPlayerType()&&VR(b,"e.invalidParentVideoPlayerType"),fS(b,!1),kS(b),b.u=a)};
WS=function(a){var b=jT();if(b)if(b.list){if(a.F&&a.F.getPlaylistId()==b.list)if(0<=b.index){var c=b.video;a.u.isFullscreen()&&((c=c[a.F.index])&&c.encrypted_id!=a.F.ya().videoId||(b.index=a.F.index));sC(a.F,b);a.nb&&kT(a,a.nb)}else a.nb=null}else a.Bn()};
VS=function(a,b){a.F&&(a.F.unsubscribe("error",a.Bn,a),g.He(a.F),a.F=null);b&&(a.aa&&(b.fetch=0),a.F=new g.nC(a.o,b),a.F.subscribe("error",a.Bn,a))};
lT=function(a,b,c,d){b in a.Xb||(c=new g.iC(c,d,{id:b,priority:1,namespace:"appad"}),a.w.addCueRange(c),a.Xb[b]=c)};
mT=function(a,b){if(!(b in a))return!1;var c=a[b];Array.isArray(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=Mw(Ow(d,Kla,null),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Mw(Ow(d,Lla,null),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var k=void 0===k?!1:k;f=Mw(Ow(d,Mla,null),d,k,"Nielsen OCR URL")}g.cr(d,void 0,f)});
return!0};
g.$S=function(a,b){b!=a.Z&&(2==b&&1==a.getPresentingPlayerType()&&(MS(a,-1),MS(a,5)),a.Z=b,a.u.S("appstatechange",b))};
MS=function(a,b){if(a.C){var c=a.C.getPlayerType();if(2==c&&!a.Mb()){a.ac!=b&&(a.ac=b,a.u.na("onAdStateChange",b));return}if(2==c&&a.Mb()||5==c||6==c||7==c)if(-1==b||0==b||5==b)return}a.pc!=b&&(a.pc=b,a.u.na("onStateChange",b))};
nT=function(a){var b=g.W(a,void 0);if(b){a=OS(a,b);b=bK(a);var c=a.getCurrentTime(),d;(d=!a.T.va)||(d=a.C,d=!(d.u&&d.u.A));a=d||vI(a.C)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
$R=function(a,b,c,d){d=void 0===d?0:d;var e=g.W(a);e&&(OS(a,e).Rg=!0);Vka(a.Ka,b,c,d).then(function(){a.u.na("onQueuedVideoLoaded")},function(){})};
bT=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Eb;var f=a.Wa.get(e);if(!f)return null;a.Wa.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f==g.W(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!=c.oauthToken)return null;d||aM(a,f);return f};
aM=function(a,b){var c=b.getPlayerType();b!=g.W(a,c)&&(1==b.getPlayerType()?(b.getVideoData().autonavState=a.w.getVideoData().autonavState,Kr(a.w,a.Yb,a),c=a.w.getPlaybackRate(),a.w.dispose(),a.w=b,a.w.setPlaybackRate(c),Jr(b,a.Yb,a),iT(a)):(c=g.W(a,c))&&c.dispose(),a.C.getPlayerType()==b.getPlayerType()?qL(a,b):IS(a,b))};
iS=function(a,b,c,d){LA("_start",a.P.timerName)||(CA("p",a.P.timerName),a.P.info("srt",0));var e=bT(a,c||a.C.getPlayerType(),b,!1);e&&HA("pfp",void 0,"prefetch_"+b.videoId);if(!e){e=g.W(a,c);if(!e)return!1;a.yb.stop();oT(a,4,c);uJ(e,b,(0,g.x)(a.Wc,a),d)}e==a.w&&(a.o.yb=b.oauthToken);if(!wJ(e))return!1;a.rb&&(e.Ta=!1,a.rb=!1);if(e==a.w)return g.$S(a,1),XS(a);DJ(e);return!0};
pT=function(a,b,c){c=g.W(a,c);b&&c==a.w&&(c.getVideoData().sh=!0)};
qT=function(a,b,c){var d=g.W(a,c);if(d){oT(a,4,c);uJ(d,b,(0,g.x)(a.Wc,a));if(2==c&&a.w&&(c=a.w.B,c.o)){c=c.o;var e=b.clientPlaybackNonce,f=b.xm||"";b=b.breakType||0;g.gH(c,g.WG(c.o),"ad_playback",[e,f,b])}d==a.w&&(g.$S(a,1),YS(a))}};
g.rT=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(Ny(a.o)||g.lz(a.o))return c=c||{},c.lact=bq(),c.vis=a.u.getVisibilityState(),a.u.na("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.P;c.o&&(f=c.o,f.A={},f.w={});c.u=!1;a.P.reset();b={video_id:b};e&&(b.autoplay="1");e&&(b.autonav="1");d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1);return!0};
g.LS=function(a){if(a.u.isMutedByMutedAutoplay())return!1;if(3==a.getPresentingPlayerType())return!0;hz(a.o)&&!a.aa&&WS(a);return!(!a.F||!a.F.hasNext())};
kT=function(a,b){var c=g.w(b);if(c){var d=jT();d&&d.list&&c();a.nb=null}else a.nb=b};
jT=function(){var a=g.w("yt.www.watch.lists.getState");return a?a():null};
g.sT=function(a){if(!a.B||!a.B.Ch())return null;var b=a.B;if(a.ga){var c=a.ga;c.w?c.w!==b&&(g.UC(c),c.w=b,c.u=null):c.w=b}else a.ga=Ala(a.u,b),a.ga&&g.B(a,a.ga);return a.ga};
tT=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"==f?(b.style=hC.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"==f?b.style=hC.AD_MARKER:(b.style=hC.TIME_MARKER,b.color=e),b.visible=!0);dL(a,[new g.iC(1E3*c,1E3*d,b)],1);return!0};
dL=function(a,b,c){var d=g.W(a,c);d&&(d=d.R,d.u(),nF(d.o,b),d.A=NaN,d.u(),c&&a.getPresentingPlayerType()!=c||JS(a,"cuerangesadded",b))};
g.uT=function(a,b,c){var d=g.W(a,c);d&&(pF(d.R,b),c&&a.getPresentingPlayerType()!=c||JS(a,"cuerangesremoved",b))};
g.fR=function(a,b,c){var d=g.W(a,c);d&&(b=rF(d.R,b),c&&a.getPresentingPlayerType()!=c||JS(a,"cuerangesremoved",b))};
vT=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
ZB=function(a,b,c){a.o.R&&(a.R=b,b.muted||aT(a,!1),c&&a.o.Mc&&!a.o.wa&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Ds("yt-player-volume",c),g.Ds("yt-player-volume",c,2592E3))),wT(a),c=g.Dt&&a.B&&!a.B.Xc(),!a.o.wa||c)&&(b=g.Pb(b),a.o.Mc||(b.unstorable=!0),a.u.na("onVolumeChange",b))};
wT=function(a){var b=a.getVideoData();if(!b.fi){b=a.o.wa?1:PB(b);var c=a.B;tS(a,"web_player_mute_then_volume_killswitch")?(c.setVolume(a.R.volume*b/100),c.Rh(a.R.muted)):(c.Rh(a.R.muted),c.setVolume(a.R.volume*b/100))}};
aT=function(a,b){b!=a.Qa&&(a.Qa=b,a.u.na("onMutedAutoplayChange",b))};
xT=function(a){var b=Dr(!tS(a,"web_player_fullscreen_shadow_killswitch"));return b&&(b==a.G.element||a.B&&b==a.B.ua())?b:null};
zT=function(a,b){var c=window.screen&&window.screen.orientation;if(g.P(a.o.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.Dt||!yT))if(b){var d=0==c.type.indexOf("portrait"),e=a.G.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ta||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.Ia);a.Ta=!0}}else a.Ta&&(a.Ta=!1,c.unlock())};
NS=function(a,b){var c=!!b,d=!!a.I.w!=c,e=a.I;e.w!=b&&(e.w=b,e.Qi());tS(a,"html5_media_fullscreen")&&!c&&a.B&&xT(a)==a.B.ua()&&a.B.ol();a.G.ke();d&&a.P.tick("fsc");d&&(a.u.S("fullscreentoggled",c),d=SS(a),c={fullscreen:c,videoId:d.gv||d.videoId,time:a.getCurrentTime()},a.u.getPlaylistId()&&(c.listId=a.u.getPlaylistId()),a.u.na("onFullscreenChange",c))};
JS=function(a,b,c){a.u.S(b,c);var d=g.$y(a.o)||g.az(a.o)||mz(a.o);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.u.na(e,c)}};
oT=function(a,b,c){os(a.Ca);a.Ca=0;var d=g.W(a,c);d&&1!=a.Z&&2!=a.Z&&(d==a.C&&FL(a.A,b),1==c&&(g.P(a.o.experiments,"html5_stop_video_in_cancel_playback")&&d.stopVideo(),hT(a)),g.LJ(d),JS(a,"cuerangesremoved",qF(d.R)||[]),d.R.reset(),a.Ka&&d.isGapless()&&(OJ(d,!0),PJ(d,a.B)))};
AT=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.W(a,e);if(!k||(2!=k.getPlayerType()||a.Mb(k)||f)&&!g.GB(k.getVideoData()))3==a.getPresentingPlayerType()?g.RK(a.A).Wl("control_seek",b,c):(k==a.w&&a.M&&!dT(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
BT=function(a,b,c,d){if(!a.rb){c&&(HS(a),GS(a));a.rb=!0;c=g.W(a);c.Ta=!0;c.Ra("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.va?qB(e)&&g.lz(a.o)&&(f.live_utc_start=oK(c),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.ae&&(f.vvt=e.ae);e.Wh&&(f.vss_credentials_token=e.Wh,f.vss_credentials_token_type=e.Xh);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.Jf+1;f.reload_reason=b;e.Ck&&(f.unplugged_partner_opt_out=e.Ck);
a.loadVideoByPlayerVars(f,void 0,d)}};
CT=function(a,b){SS(a).autonavState=b;g.Ds("yt-player-autonavstate",b);a.u.S("autonavchange",b)};
DT=function(a){var b=a.getVideoData().fi,c=a.o.Wg,d=a.B;b||c?d.ur():(d.yr(),ZB(a,a.R))};
Ela=function(a,b){return g.P(a.o.experiments,"html5_enable_embedded_player_visibility_signals")&&a.o.u?new kM(b):null};
hT=function(a){(a=GL(a.A))&&a.created&&a.destroy()};
tS=function(a,b){return g.P(a.o.experiments,b)};
ET=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=xh(a,d);b.hidden=!!a.hidden};
Dla=function(a){var b=a.o,c=document.requestStorageAccess&&document.hasStorageAccess;g.P(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.oz&&c&&b.u?ol()||b.aa?(g.Rq("embedsStorageAccessNotChecked",{isIosWebview:ol(),isPemPlayer:b.aa}),a.Ia=!1):document.hasStorageAccess().then(function(d){g.Rq("embedsHasStorageAccessResult",{hasCookieAccess:d,resultedInError:!1});a.Ia=!d},function(d){g.Rq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Go(Error("Embeds ITP Error: "+d));a.Ia=!1}):a.Ia=!1};
FT=function(a,b){var c=void 0;if(g.$y(a.o)&&sq(b)&&rq(b)){var d=a.getVideoData().Qd();d&&(c={Authorization:"Bearer "+d})}g.cr(b,void 0,void 0,c)};
GT=function(a,b){b.forEach(function(c){FT(a,c)})};
mM=function(a){return a.Rb?a.Rb.jsUrl:a.za.assets&&a.za.assets.js?a.za.assets.js:""};
HT=function(a){a=(a=cC(a.A))?a.chrome:null;return a?(a=a.Dx())?a.M:null:null};
IT=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
Nla=function(){};
JT=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Ola=function(){var a=null;tr().then(function(b){return a=b},function(b){return a=JT(b)});
return a};
Pla=function(){var a=Vf(1E3,"NO_BID");return Jf(Lf(Hf([tr(),a]),JT),function(){return a.cancel()})};
KT=function(a){this.o=a;this.A=g.Q(a.N().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.w=this.u=1};
LT=function(a,b,c,d){c=void 0===c?{}:c;var e=c.mi,f=c.Pb,k=void 0===c.Bk?0:c.Bk;d=void 0===d?"":d;c=a.o.getVideoData(1);var l=a.o.N().od,m={AD_BLOCK:a.u++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:a.o.N().nb?yr(wr.getInstance(),140)?3:2:1,CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*nT(a.o.app),LACT:bq(),LIVE_INDEX:e?a.w++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.o.getVisibilityState(),
TSLA:k,P_H:g.QK(a.o).getPlayerSize().height,P_W:g.QK(a.o).getPlayerSize().width,YT_REMOTE:l?l.join(","):""},n=uq(tq);Object.keys(n).forEach(function(t){null!=n[t]&&(m[t.toUpperCase()]=n[t].toString())});
""!==d&&(m.BISCOTTI_ID=d);l={};var p=a.o.N().Ka;p&&sq(b)&&(l.forced_experiments=p);g.P(a.o.N().experiments,"get_midroll_info_wexit")&&(d=Qla(a,b,d,{mi:e,Pb:f,Bk:k}),l.rpc_data=JSON.stringify(d));b=pq(g.dn(b,m),l);d=b.split("?");if(2!=d.length)return Ef(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;f=e.next().value;e={};c.oauthToken&&rq()&&(e.Authorization="Bearer "+c.oauthToken);c=g.kq(f);f=a.o.N();return g.P(f.experiments,"get_midroll_info_wexit")?g.hr(b,{Br:!0,format:"RAW",headers:e,
method:"POST",sb:c,timeout:a.A,withCredentials:!0}):g.lz(f)?g.hr(d,{Br:!0,format:"RAW",headers:e,method:"POST",sb:c,timeout:a.A,withCredentials:!0}):g.hr(b,{Br:!0,format:"RAW",headers:e,method:"GET",timeout:a.A,withCredentials:!0})};
Qla=function(a,b,c,d){var e=d.mi,f=d.Pb,k=void 0===d.Bk?0:d.Bk;d=bq().toString();var l=Nq("dkv");f=f?Math.round(f.start):0;var m=1E3*(e?e.durationSecs:0);k=0>=k||g.P(a.o.N().experiments,"stop_use_time_since_last_ad_service")?0:Math.ceil(k);var n=a.u,p=g.QK(a.o).getPlayerSize().height,t=g.QK(a.o).getPlayerSize().width,u=e&&e.context||"",z=nT(a.o.app)?1E3*nT(a.o.app):0,C=a.o.N().od;C=C?C.join(","):"";e=e?a.w:1;var D=a.o.getVideoData(1).clientPlaybackNonce,E=b.match(/[&\?]token=(\w*)/);E=null!=E&&2<=
E.length?E[1]:"";var F=b.match(/[&\?]video_id=(\w*)/);F=null!=F&&2<=F.length?F[1]:"";var G=b.match(/[&\?]mt=(\d*)/);G=null!=G&&2<=G.length?Number(G[1]):0;G=isNaN(G)?0:G;var fa=g.ez(a.o.N()),oa=new Nla;oa.clientName=a.o.N().vg.Mj.toString();oa.host=fa;oa.o=void 0;var kc=Rla.includes(fa)?void 0:Nq("PREF"),Rc=EK(),tb=qq(b);b=Sla(b,"X-YouTube-Ad-Signals");c=tb||b?jq(vq(c)):void 0;return{adBreakRequest:{videoId:F,adBlock:n,params:E,breakIndex:e,breakLengthMs:m.toString(),breakPositionMs:f.toString(),clientPlaybackNonce:D,
driftFromHeadMs:z.toString(),liveTargetingParams:u,topLevelDomain:fa,isProxyAdTagRequest:!1,context:Rc,adSignalsInfo:c},adsCookie:l,clientInfo:oa,lact:d,mediaTimeMs:G,timeSinceLastAdSeconds:k,vis:a.o.getVisibilityState(),playerHeightPixels:p,playerWidthPixels:t,ytRemote:C,prefCookie:kc}};
MT=function(a,b,c){this.w=a;this.td=null;this.u=b;this.o=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0};
NT=function(a,b,c,d,e){g.iC.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.o=!1;this.w=null};
OT=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
PT=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Tla=function(a){return a.end-a.start};
QT=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Qn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Qn(Math.max(0,b.w-b.o),0x7ffffffffffff):new Qn(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.w);if(c&&(d=a,a=Math.max(0,a-b.o),a==d))break;return new Qn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return a=
b.td,d=1E3*a.startSecs,c?d<b.u?new Qn(d-4E3,d):new Qn(Math.floor(b.u+Math.random()*Math.max(0,d-b.u-1E4)),d):new Qn(d,d+(0<a.durationSecs?1E3*a.durationSecs:5E3))}return null};
ST=function(a,b,c){b=void 0===b?null:b;c=void 0===c?{}:c;this.id=RT(a);this.componentType=a;this.macros=c;this.renderer=b};
RT=function(a){return a+(":"+(po.getInstance().o++).toString(36))};
TT=function(a,b,c){this.id=c;this.content=a;this.actionType=b};
VT=function(){g.A.call(this);var a=this;this.o={};UT(this,"commandExecutorCommand",function(b,c,d){b.commands&&Ula(a,b.commands,c,d)});
UT(this,"clickTrackingParams",function(){})};
Vla=function(a,b){return UT(a,b.o(),function(c,d,e){b.Fa(c,d,e)})};
UT=function(a,b,c){a.ea();if(a.o[b])return g.M(Error("Extension name "+b+" already registered")),function(){};
a.o[b]=c;return function(){delete a.o[b]}};
Ula=function(a,b,c,d){d=void 0===d?{}:d;a.ea();b.forEach(function(e){return a.executeCommand(e,c,d)})};
WT=function(a,b,c,d,e){e=void 0===e?{}:e;if(a=a.o[b])try{a(c[b],d,e)}catch(f){g.M(f)}else c=Error("Unhandled field"),c.params=b,g.M(c)};
XT=function(a,b,c){this.u=a;this.A=b;this.w=c};
ZT=function(a){this.u=a};
$T=function(a){this.u=a};
aU=function(a){this.K=a};
bU=function(a){this.u=a};
cU=function(a){this.o=a;rq()};
dU=function(a){this.u=a};
eU=function(a){this.u=a};
fU=function(){};
gU=function(){};
hU=function(a){g.A.call(this);this.o=a;this.u=Wla(this)};
Wla=function(a){var b=new VT;g.B(a,b);[new XT(a.o.TD,a.o.UD,a.o.Kb),new ZT(a.o.VD),new $T(a.o.XD),new aU(a.o.K),new dU(a.o.Kh),new eU(a.o.MJ),new bU(a.o.gE),new fU,new gU].forEach(function(c){return Vla(b,c)});
["adInfoDialogEndpoint","adFeedbackEndpoint"].forEach(function(c){return UT(b,c,function(){})});
return b};
iU=function(a){this.u=a;this.o=null};
Xla=function(a){return jU(a).then(function(){return new zf(function(b,c){var d=kU();(d=d?lU(d):null)&&"adSizes"in d[0]?b((0,g.Cc)(d[0].adSizes,function(e){return new g.Sd(e.adWidth,e.adHeight)})):c(Error("No slots registered with GPT services"))})})};
Yla=function(a){!mU()&&a.o?a.o.cancel():jU(a).then(function(){return nU(null,300,60)})};
jU=function(a){if(null==a.o){var b=a.u/200,c=function(d){if(!mU()){if(0>=d)throw Error("Timed out while waiting for GPT services");return Vf(200).then(function(){return c(d-1)})}};
a.o=Df().then(function(){return c(b)})}return a.o};
nU=function(a,b,c){var d=Vf(5E3).then(function(){throw Error("Timed out while waiting for GPT set companion");}),e=new zf(function(f,k){var l=kU();
if(l){var m=lU(l);if(m&&0!=m.length){var n={};n.slotId=m[0].slotId;n.adContent="<div></div>";n.adWidth=b;n.adHeight=c;n.friendlyIframeRendering=!1;n.onAdContentSet=function(p){if(void 0!==p.firstElementChild)var t=p.firstElementChild;else for(t=p.firstChild;t&&1!=t.nodeType;)t=t.nextSibling;t||(t=g.oe("div"),p.appendChild(t));a&&t.appendChild(a);f()};
(l=l.googleSetCompanionAdContents)?l([n]):k(Error("Missing googleSetCompanionAdContents API"))}else k(Error("No slots registered with GPT services"))}else k(Error("Failed to find GPT services"))});
return Hf([e,d])};
mU=function(){var a=kU();if(!a)return!1;a=lU(a);return Array.isArray(a)&&0!=a.length?null!=$d(document,"google_companion_ad_div"):!1};
kU=function(){var a=ke();return g.w("googletag.cmd",a)?a:null};
lU=function(a){a=void 0!==a.googleGetCompanionAdSlots?Fo(a.googleGetCompanionAdSlots)():void 0;return void 0!==a&&0<a.length?a:null};
Zla=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
oU=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
pU=function(a,b){this.u=a;this.o=b};
$la=function(a){return a.o?Xla(a.o):Ef("GPT is not enalbed")};
ama=function(a){var b=new pU(a.K,Yy(a.K.N())&&!a.eG?new iU(a.mF):null);return{VE:function(){return b}}};
qU=function(a,b){this.o=a;this.Z=b||{};this.F=String(Math.floor(1E9*Math.random()));this.G={};this.M=0};
bma=function(a){this.w=a;this.u={};this.o=ih()?500:g.$y(a.N())?1E3:2500};
dma=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.u||(a.u[d.mimeType]=a.w.canPlayType(d.mimeType));return a.u[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return cma(a,c)};
cma=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,k=e.maxBitrate;f>a.o||k<a.o||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,k=e.minBitrate,f>a.o||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&k<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,k=e.maxBitrate,f<a.o||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&k>c.maxBitrate&&(c=e));return c};
rU=function(a,b){this.o=a;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c;this.w=null};
sU=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
ema=function(a){return(a=a.pings)?Object.fromEntries(sU(a)):{}};
tU=function(a,b,c){qU.call(this,a,ema(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.aa=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.A=new rU(0,[]);this.C=this.V=null;this.ha=b;this.U=[];this.w={};this.ba=null;this.u=0;this.I=this.P=this.B=null;b=this.o.skipOffsetMilliseconds||0;0<b&&(this.ba=b);this.w=g.kq(this.o.playerVars||"");if(b=this.o.external)this.U=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=b/1E3,this.w.length_seconds=this.u.toString()),(b=dma(this.ha,
this.U))?(this.P=b.uri,b=b.mimeType,this.w.url_encoded_third_party_media="url="+encodeURIComponent(this.P)+"&type="+encodeURIComponent(b)):this.I=Error("Nonplayable third party ad media file.");else if(this.B=this.w.video_id,this.V=this.w.ucid||null,this.u=Cy(this.u,this.w.length_seconds),this.w.cta_conversion_urls)try{this.w.cta_conversion_urls=JSON.parse(this.w.cta_conversion_urls)}catch(d){g.M(d)}this.C=this.o.clickthroughEndpoint||null;this.A=new rU(0,[this.u])};
uU=function(a){var b=a.w||{};1<a.A.u&&(b.slot_pos=a.A.o);b.autoplay="1";return b};
vU=function(a){return 0<a.u&&7.05>=a.u};
wU=function(){qU.apply(this,arguments)};
xU=function(){this.o=[];this.w=null;this.u=0};
yU=function(a,b){b&&a.o.push(b)};
zU=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
AU=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
BU=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
CU=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
fma=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=zU(a.impressionCommands)||[];b.error=zU(a.errorCommands)||[];b.mute=zU(a.muteCommands)||[];b.unmute=zU(a.unmuteCommands)||[];b.pause=zU(a.pauseCommands)||[];b.rewind=zU(a.rewindCommands)||[];b.resume=zU(a.resumeCommands)||[];b.skip=zU(a.skipCommands)||[];b.close=zU(a.closeCommands)||[];b.clickthrough=zU(a.clickthroughCommands)||[];b.fullscreen=zU(a.fullscreenCommands)||[];b.active_view_viewable=zU(a.activeViewViewableCommands)||
[];b.active_view_measurable=zU(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=zU(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=zU(a.endFullscreenCommands)||[];b.channel_clickthrough=zU(a.channelClickthroughCommands)||[];b.abandon=zU(a.abandonCommands)||[];b.progress=AU(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=AU(a.progressCommands.filter(function(c){return CU(c)&&Pd(BU(c),0)}));
b.first_quartile=AU(a.progressCommands.filter(function(c){return CU(c)&&Pd(BU(c),.25)}));
b.midpoint=AU(a.progressCommands.filter(function(c){return CU(c)&&Pd(BU(c),.5)}));
b.third_quartile=AU(a.progressCommands.filter(function(c){return CU(c)&&Pd(BU(c),.75)}));
b.complete=AU(a.progressCommands.filter(function(c){return CU(c)&&Pd(BU(c),1)}));
return b};
DU=function(a){qU.call(this,a,fma(a));this.u=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
EU=function(a,b,c,d){this.id=b;this.P=a.placementStartPings||[];this.I=a.placementEndPings||[];this.u=d.td;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.w=(this.C=e.getAdBreakUrl||"")?0:2;d.o=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=QT(b,d);if(null==f)d=new NT(b,new Qn(-1,-1),!1,"adcuerange:invalid",
2),d.o=!0,d=[null,d];else{e=":"+(po.getInstance().o++).toString(36);var k=d.daiEnabled||d.td;f=new NT(b,f,d.visible&&!k,"adcuerange:"+e,2);k=null;if(d.td||0<d.o)if(d=QT(b,d,!0))k=new NT(b,d,!1,"prefetch:"+e,3),f.w=k,k.w=f;d=[k,f]}this.R=d[0];this.M=d[1];this.o=c;this.F=!1;this.B={};this.G={};this.A=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
FU=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.xb().u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.xb().u};
GU=function(a){return"AD_PLACEMENT_KIND_START"==a.xb().u};
IU=function(a){var b={};gma(a,b);hma(b);b.LACT=HU(function(){return bq().toString()});
b.VIS=HU(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=HU(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
JU=function(a){var b=Object.assign({},{});b.MIDROLL_POS=FU(a)?HU(wb(Math.round(a.xb().start/1E3).toString())):HU(wb("0"));return b};
KU=function(a){var b={};if(!a.kind)return g.Tq(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Tq(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=HU(wb(Math.round(g.hd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=HU(wb("0"));return b};
LU=function(){var a=Object.assign({},{});a.FINAL=HU(wb("1"));a.SLOT_POS=HU(wb("0"));return a};
ima=function(a){var b={};b.SLOT_POS=HU(wb(a.A.o.toString()));return b};
MU=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
HU=function(a){return{toString:function(){return a()}}};
NU=function(a){for(var b={},c=g.q(jma),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
OU=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ea(b)));return c};
kma=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=k(n))}
if(!b||g.Mb(b))return a;var f=Object.assign({},a),k=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
gma=function(a,b){b.CPN=HU(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.Uq(Error("Video data is null.")),c=null);return c});
b.AD_MT=HU(function(){return PU(a,2)});
b.MT=HU(function(){return PU(a,1)});
b.P_H=HU(function(){return g.QK(a).getPlayerSize().height.toString()});
b.P_W=HU(function(){return g.QK(a).getPlayerSize().width.toString()});
b.PV_H=HU(function(){return g.QK(a).getVideoContentRect().height.toString()});
b.PV_W=HU(function(){return g.QK(a).getVideoContentRect().width.toString()})};
PU=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
hma=function(a){a.CONN=HU(wb("0"));a.WT=HU(function(){return Date.now().toString()})};
lma=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"j";case "measurable_impression":return"e";case "overlay_unmeasurable_impression":return"k";case "overlay_unviewable_impression":return"l";case "overlay_viewable_end_of_session_impression":return"m";case "overlay_viewable_immediate_impression":return"n";case "viewable_impression":return"s";default:return null}};
QU=function(){g.O.call(this);var a=this;this.o={};g.Ge(this,function(){return Object.keys(a.o).forEach(function(b){return delete a.o[b]})})};
SU=function(){if(null===RU){RU=new QU;Cm.getInstance().o="b";var a=Cm.getInstance(),b="h"==jm(a)||"b"==jm(a),c=!(Di.getInstance(),!1);b&&c&&(a.B=!0,a.C=new Dca)}return RU};
mma=function(a,b,c){a.o[b]=c};
TU=function(){};
UU=function(a){this.o=a};
VU=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Ge(this,function(){return b.o=null})};
XU=function(a){return WU(a)&&1==a.getPlayerState(2)};
WU=function(a){a=a.kb();return void 0!==a&&2==a.getPlayerType()};
YU=function(a){a=a.N();return Yy(a)&&!g.lz(a)&&"desktop-polymer"==a.playerStyle};
ZU=function(a,b){var c=a.N();Qy(c)||"3"!=c.controlsType||(c=g.QK(a),Qy(c.app.N()),c.C=!b,uM(c))};
$U=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
nma=function(a){this.o=a;var b=Cm.getInstance();a=a.Mb();b.A!==a&&((b.A=a)||lda(b))};
aV=function(a,b,c,d,e,f,k){f=void 0===f?new cU(new UU(d.getVideoData(1))):f;k=void 0===k?!1:k;g.A.call(this);this.u=a;this.I=b;this.w=c;this.o=d;this.G=e;this.C=f;this.F=Array.from(this.u.Z.progress||[]);this.F.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.A={yv:.25,Mv:.5,Rv:.75};this.B=null;this.P=k};
gV=function(a,b,c){!bV(a)&&0<c&&(cV(a,b),dV(a)?eV(a,b,c):fV(a,b,c))};
kV=function(a){if(dV(a)){var b=a.o.getCurrentTime(2,!1);hV(a,"impression",b,0)}else iV(a,"impression");iV(a,"start");bV(a)||a.o.isFullscreen()&&jV(a,"fullscreen")};
lV=function(a,b){bV(a)||(dV(a)?(cV(a,0,!0),eV(a,b,b)):(cV(a,0,!0),fV(a,0,0,!0)),iV(a,"complete"))};
oma=function(a,b){b&&b.forEach(function(c){c.baseUrl&&a.C.send(c.baseUrl,mV(a),{})})};
cV=function(a,b,c){for(c=void 0===c?!1:c;a.u.M<a.F.length;){var d=nV(a,"progress"),e=a.F[a.u.M];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&a.C.send(e,mV(a),d),a.u.M++;else break}};
fV=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.A.yv||d)&&iV(a,"first_quartile");(b>=c*a.A.Mv||d)&&iV(a,"midpoint");(b>=c*a.A.Rv||d)&&iV(a,"third_quartile")};
hV=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;iV(a,b)};
eV=function(a,b,c){if(0<c&&0<b){var d=g.PK(a.o,a.o.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(hV(a,"first_quartile",b,c*a.A.yv),hV(a,"midpoint",b,c*a.A.Mv),hV(a,"third_quartile",b,c*a.A.Rv))}a.B=b};
jV=function(a,b){for(var c=nV(a,b),d=g.q(a.u.Z[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&a.C.send(e,mV(a),c);a.u.G[b]=!0};
iV=function(a,b){a.u.G.hasOwnProperty(b)||jV(a,b)};
oV=function(a,b){return a.u.G.hasOwnProperty(b)};
mV=function(a){for(var b={},c=IU(a.o),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.w)};
nV=function(a,b){var c=a.I;var d=a.u;if(d.Kl()){var e=$U(b);if(null==e)d={};else{var f;(f=d.R()())||(f=(f=c.o)&&f.kb?(f=f.kb())&&2==f.getPlayerType()?vJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.o.isFullscreen()},d=Hm(e,d.F,c)):d={}}}else d={};return d?Object.assign({},d):{}};
pV=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.o.getPresentingPlayerType())a.o.sendVideoStatsEngageEvent(1,void 0,2);else if(a.G){var c=a.G.o;c&&c()}else g.M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
dV=function(a){return!g.P(a.o.N().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.P};
bV=function(a){return dV(a)&&!oV(a,"impression")};
qV=function(a){return dV(a)&&oV(a,"seek")};
pma=function(a){this.o=a};
Y=function(a,b,c,d,e,f){f=void 0===f?0:f;g.O.call(this);this.K=a;this.o=d;this.w=e;this.w.o[b.F]=this;this.w.subscribe("e",this.DB,this);this.w.subscribe("j",this.EB,this);this.w.subscribe("k",this.FB,this);this.w.subscribe("l",this.GB,this);this.w.subscribe("m",this.HB,this);this.w.subscribe("n",this.IB,this);this.w.subscribe("s",this.JB,this);this.F=b;this.V=[];this.macros=c;this.G=!1;a=new pma(this.K.N());0==f||1==f&&(a.o.o||g.lz(a.o)||g.$y(a.o)||bz(a.o)||!g.oz)?f=!0:(f=g.ce("video-ads"),f=null!=
f&&"none"!=xh(f,"display"));this.ba=!f};
rV=function(a){a.ba?a.Wb("ui_unstable"):a.dc()};
tV=function(a,b){ib(a.V,b);sV(a,b,1)};
uV=function(a){a=a.o;a.w=OU(a.w,MU(0,"No playable media files can be selected"));iV(a,"error")};
sV=function(a,b,c){0!=b.length&&(b=(0,g.Cc)(b,function(d){return new TT(d,c,d.id)}),a.S("onAdUxUpdate",b))};
vV=function(a){return(a=a.K.getVideoData(2))&&a.clientPlaybackNonce||""};
wV=function(){qU.apply(this,arguments)};
xV=function(a,b){ST.call(this,"action-companion",a,b)};
yV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=null};
zV=function(a,b){var c=b.renderer;return c&&c.adVideoId==a.videoId};
AV=function(a,b,c){if(!g.P(a.K.N().experiments,"populate_companion_metadata_from_vms_html5")){if(!c.renderer.actionButton&&!b.isListed)return;var d=c.renderer,e=d.iconImage&&d.iconImage.thumbnail&&d.iconImage.thumbnail.thumbnails||null;e&&e.length&&g.ec(g.fd(e[0].url))&&(e[0].url=b.Id);(e=d.bannerImage&&d.bannerImage.thumbnail&&d.bannerImage.thumbnail.thumbnails||null)&&e.length&&g.ec(g.fd(e[0].url))&&(e[0].url=b.channelBanner);e=d.headline;null!=e&&g.ec(g.fd(e.text))&&(e.text=b.author);c.renderer.actionButton||
(d.description&&(d.description.text=b.videoCountText),d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d.navigationEndpoint.urlEndpoint.url=b.sf))}tV(a,[c])};
qma=function(a){var b={};b.abandon=a.abandonCommands&&zU(a.abandonCommands.commands)||[];return b};
BV=function(a){qU.call(this,a,qma(a))};
CV=function(a,b){ST.call(this,"ad-action-interstitial",a,b)};
DV=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e,1);this.A=b;this.u=b.o.durationMilliseconds||0;this.Ga=null;this.B=f};
EV=function(a,b){ST.call(this,"ad-choice-interstitial",a,b)};
FV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.u=b};
GV=function(a){qU.call(this,a);this.u=g.kq(this.o.playerVars||"")};
HV=function(){qU.apply(this,arguments)};
IV=function(){qU.apply(this,arguments)};
rma=function(a){a=a.impressionUrls;var b={};a&&(b.impression=a);return b};
JV=function(a){qU.call(this,a,rma(a))};
KV=function(){qU.apply(this,arguments)};
LV=function(){qU.apply(this,arguments)};
MV=function(){qU.apply(this,arguments)};
NV=function(){qU.apply(this,arguments)};
OV=function(){qU.apply(this,arguments)};
PV=function(){qU.apply(this,arguments)};
QV=function(a,b,c,d,e,f,k,l,m,n,p,t,u,z,C){this.ba=a;this.G=b;this.F=c;this.M=d;this.R=e;this.P=f;this.u=k;this.I=l;this.o=m;this.V=n;this.U=p;this.w=t;this.B=u;this.A=z;this.C=C};
RV=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);var k=this;this.B=b;this.u=new g.I(function(){k.Wb("load_timeout")},1E4);
g.B(this,this.u);this.C=f;this.A=new g.Gr(this);g.B(this,this.A)};
SV=function(a){ST.call(this,"ad-message",a)};
TV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);var f=this;this.B=b;this.C=b.o.durationMs||0;this.A=this.u=0;this.I=function(){var k=f.K.getProgressState().current;k<f.u?f.Ac():k>f.A&&f.Zc()}};
UV=function(a,b){ST.call(this,"ads-engagement-panel",a,b)};
VV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
WV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
XV=function(a,b){ST.call(this,"invideo-overlay",a,b)};
YV=function(a,b){ST.call(this,"invideo-overlay-as-cta",a,b)};
ZV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=b};
$V=function(a,b){ST.call(this,"persisting-overlay",a,b)};
aW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.u=b};
bW=function(a){return a?g.T(a):null};
cW=function(a){if(!a)return[];a=a.loggingUrls;if(!a)return[];a=a.map(function(b){return b.baseUrl});
return 0===a.length?[]:a};
sma=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
dW=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
eW=function(a,b,c,d,e,f){this.u=a;this.w=b;this.o=IU(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.o[b]=f[b];this.A=c;this.C=d;this.B=e};
gW=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?fW(a,e):a.A.nh()};
b.skipShown=function(){fW(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
hW=function(a,b,c){if(c.button&&c.button.buttonRenderer&&(!c.button.buttonRenderer.command||!c.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&c.button.buttonRenderer.serviceEndpoint&&c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var d=c.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;d&&d.adInfoDialogRenderer&&(tma(a,b,d.adInfoDialogRenderer),b.whyThisAdInfo.menuTitle=bW(c.hoverText)||"",d.adInfoDialogRenderer.muteAdRenderer&&(c=d.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
uma(a,b,c))}};
fW=function(a,b){if(b){var c=iW(a);Array.isArray(b)?b.forEach(function(d){return a.u.executeCommand(d,c)}):a.u.executeCommand(b,c)}};
tma=function(a,b,c){var d=bW(c.confirmLabel)||"",e=bW(c.title)||"",f=c.adReasons?c.adReasons.map(function(k){return bW(k)||""}):[];
b.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};b.whyThisAdClicked=function(){fW(a,c.impressionEndpoints)};
b.whyThisAdClosed=function(){fW(a,c.confirmServiceEndpoint)}};
uma=function(a,b,c){if(c.navigationEndpoint&&c.navigationEndpoint.adFeedbackEndpoint&&c.navigationEndpoint.adFeedbackEndpoint.content){var d=c.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(d){var e={goneText:"",questionText:"",undoText:"",hoverText:bW(c.text)||"",surveyOptions:[]};b.muteAdInfo=e;c=cW(c.navigationEndpoint);var f=dW(c[1]),k=[dW(c[0])];(c=sma(d))&&k.push(c);var l=!1;b.muteAdClicked=function(){l=!0;fW(a,f)};
b.muteAd=function(){l||fW(a,f);l=!1;fW(a,k)};
vma(b,d)}}};
vma=function(a,b){a.muteAdInfo.goneText=bW(b.title)||"";a.muteAdInfo.questionText=bW(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=bW(b.undoRenderer.buttonRenderer.text)||"");for(var c=a.muteAdInfo.surveyOptions,d=g.q(b.reasons||[]),e=d.next();!e.done;e=d.next()){var f=e.value;e=bW(f.reason)||"";f=cW(f.endpoint);c.push({label:e,url:f[0]})}};
iW=function(a){if(g.P(a.C.N().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.w;for(var b={},c=g.q(Object.keys(a.o)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.o[d].toString();return Object.assign(b,a.w)};
jW=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1}};
wma=function(a,b,c,d,e,f,k){this.o=c;this.u=new eW(a,b,d,e,f);this.w=k};
xma=function(a,b,c){var d=jW();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){fW(a.u,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":gW(a.u,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":hW(a.u,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=vU(a.o)&&!d.isSkippable;d.isPostroll=a.o.isPostroll;a.o.isSkippable();b=a.o.B;c=a.o.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.o.C)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.u.sendAdsPing(e)};
d.daiEnabled=a.w;return d};
kW=function(a,b){ST.call(this,"pla-shelf",a,b)};
lW=function(a,b,c,d,e){Y.call(this,a,b,OU(c,{TRIGGER_TYPE:"YOUTUBE_SHELF_SHOW"}),d,e);this.u=b};
mW=function(a,b){ST.call(this,"shopping-companion",a,b)};
nW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
zma=function(a,b,c,d,e,f){this.o=new eW(a,b,c,d,e,yma(f))};
Bma=function(a,b){var c=jW();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){fW(a.o,e)};
var d=Ama(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":gW(a.o,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":hW(a.o,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.o.sendAdsPing(e)};
return c};
Ama=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
yma=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=HU(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=HU(a);return b};
qW=function(a,b,c){g.O.call(this,!0);var d=this;this.C=b;this.B=c;this.u=a;this.Ga=new g.Tf(200);this.Ga.ka("tick",function(){var e=Date.now(),f=e-d.A;d.A=e;d.o+=f;d.o>=d.u&&(d.o=d.u,d.Ga.stop());e=d.o/1E3;d.B&&oW(d.B,e);pW(d,{current:e,duration:d.u/1E3})});
g.B(this,this.Ga);this.o=0;this.w=null;g.Ge(this,function(){d.w=null});
this.A=0};
pW=function(a,b){a.C.na("onAdPlaybackProgress",b);a.w=b};
rW=function(a){ST.call(this,"survey",a)};
Cma=function(a,b,c){var d=b.N();return g.P(b.N().experiments,"enable_external_player_ad_playback_progress_html5")&&g.$y(d)?new qW(1E3*a.u,b,c):null};
sW=function(a,b,c,d,e,f,k){Y.call(this,a,b,c,d,e,1);var l=this;this.B=b;this.A=new g.Gr;g.B(this,this.A);this.A.L(this.K,"resize",function(){450>g.QK(l.K).getPlayerSize().width&&(g.Ir(l.A),l.Ac())});
this.P=f;this.C=0;this.I=k(this,function(){return""+(Date.now()-l.C)});
if(this.u=Cma(b,a,f))g.B(this,this.u),this.A.L(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.B.o,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,fW(l.I.o,m&&m.timeoutCommands)):g.Tq(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
tW=function(a,b){ST.call(this,"survey-interstitial",a,b)};
uW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.u=b};
vW=function(a){ST.call(this,"ad-text-interstitial",a)};
wW=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);this.A=b;this.u=b.o.durationMilliseconds||0;this.Ga=null;this.B=f};
xW=function(a,b){g.A.call(this);this.A=Math.max(0,a);this.w=this.u=0;this.B=b;this.o=null};
yW=function(a){a.o&&(a.o.stop(),a.o.dispose(),a.o=null)};
zW=function(){ST.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adVideoId=this.adBreakEndSeconds=null};
AW=function(a){a=void 0===a?null:a;ST.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
BW=function(a){a=void 0===a?null:a;ST.call(this,"ad-title");this.videoTitle=a};
CW=function(a){a=void 0===a?null:a;ST.call(this,"advertiser-name");this.channelName=a};
DW=function(a){ST.call(this,"player-overlay",a)};
EW=function(a){ST.call(this,"skip-button",a)};
FW=function(a){ST.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Pb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Consulter le site de l'annonceur"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
GW=function(a,b,c,d,e,f,k,l,m,n,p){Y.call(this,a,b,c,d,e,1);var t=this;this.R=n;this.u=b;this.B=k;this.Z=new g.Gr(this);g.B(this,this.Z);this.I=new g.I(function(){t.Wb("load_timeout")},g.P(a.N().experiments,"use_variable_load_timeout")?g.Q(a.N().experiments,"variable_load_timeout_ms"):1E4);
g.B(this,this.I);this.A=null;g.P(a.N().experiments,"enable_bulleit_buffer_timer")&&(this.A=new xW(g.P(a.N().experiments,"use_variable_buffer_timeout")?g.Q(a.N().experiments,"variable_buffer_timeout_ms"):15E3,function(){t.Wb("buffer_timeout")}),g.B(this,this.A));
this.ga=!g.P(a.N().experiments,"bulleit_unstarted_event_killswitch");this.M=!1;this.da=m(this);this.ha=f;this.P=l;this.C=p;this.U=this.aa=!1};
JW=function(a,b){HW(a)&&a.U&&(a.U=!1,Dma(a.R,IW(a),b))};
HW=function(a){return null!==a.R&&(KW(a.C)||LW(a.C)||MW(a.C)||NW(a.C))};
OW=function(a){return(a=a.K.getVideoData(2))?a.clientPlaybackNonce:""};
IW=function(a){if(a=a.u.o.elementId)return a;g.Tq(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
PW=function(a){var b=new zW;b.adBadgeText="Annonce";var c=a.u.A;1<c.u&&(b.adPodPositionInfoString=g.gM("$AD_INDEX sur $ADS_COUNT",{AD_INDEX:String(c.o+1),ADS_COUNT:String(c.u)}));b.adBreakLengthSeconds=c.adBreakLengthSeconds;b.adBreakRemainingLengthSeconds=c.adBreakRemainingLengthSeconds;b.adPodPosition=c.o+1;b.adPodLength=c.u;null!==c.w&&(b.adBreakEndSeconds=c.w/1E3);if(a=a.u.B)b.adVideoId=a;return b};
SW=function(a){var b=a.u.o,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.K.N();if(g.lz(d)&&!c.skipOrPreviewRenderer){var e=a.K.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.lz(d)&&g.Tq(new Sq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!vU(a.u)?d.skipAdRenderer=QW(a):d.adPreviewRenderer=RW(a,!1,vU(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Mb(c.skipOrPreviewRenderer)&&
g.Tq(new Sq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
QW=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=RW(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Ignorer l'annonce";a.skipButtonRenderer=c;return b};
RW=function(a,b,c){var d=a.K.getVideoData(1),e={};if(b||c){var f={},k={};c=c?g.gM("La vid\u00e9o commence dans $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.gM("Vous pourrez passer \u00e0 la vid\u00e9o dans $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});k.text=c;k.isTemplated=!0;f.templatedAdText=k;e.templatedCountdown=f}else f={},k=g.gM("Vid\u00e9o visible apr\u00e8s annonce",{NEW_LINE:"\n"}),f.text=k,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=
5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=gz(a.K.N(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
TW=function(a){return g.P(a.experiments,"disable_ad_info_event_for_music_web")?g.$y(a):mz(a)||g.$y(a)};
Ema=function(a){function b(E,F){return OU(a.TN,NU(LU()),F)}
function c(E){return null==E?{create:function(){return null}}:{create:function(F,G){var fa=b(F,G),oa=a.Om(F,fa);
fa=E(F,fa,oa);g.B(fa,oa);return fa}}}
var d=c(function(E,F,G){return new ZV(a.K,E,F,G,a.Vc)}),e=c(function(E,F,G){return new WV(a.K,E,F,G,a.Vc)}),f=c(function(E,F,G){return new nW(a.K,E,F,G,a.Vc)}),k=c(function(E,F,G){return new lW(a.K,E,F,G,a.Vc)}),l=c(function(E,F,G){return new DV(a.K,E,F,G,a.Vc,a.ra)}),m=c(function(E,F,G){return new aW(a.K,E,F,G,a.Vc)}),n=c(function(E,F,G){return new yV(a.K,E,F,G,a.Vc)}),p=c(function(E,F,G){return new wW(a.K,E,F,G,a.Vc,a.ra)}),t=c(function(E,F,G){return new uW(a.K,E,F,G,a.Vc)}),u=c(function(E,F,G){return new FV(a.K,
E,F,G,a.Vc)}),z=c(function(E,F,G){return new TV(a.K,E,F,G,a.Vc,a.ra)}),C=c(function(E,F,G){return new RV(a.K,E,F,G,a.Vc,a.ra)}),D=c(function(E,F,G){return new VV(a.K,E,F,G,a.Vc)});
this.o=new QV({create:function(E,F){var G=OU(b(E,F),NU(ima(E))),fa=a.Om(E,G),oa=new GW(a.K,E,G,fa,a.Vc,a.jE,a.ra,a.daiEnabled,function(kc){return new wma(a.ra,G,E,kc,a.K,a.Kh,a.daiEnabled)},a.Ag,a.Kb);
g.B(oa,fa);return oa}},d,e,f,{create:function(E,F){var G=a.Om(E,F),fa=new sW(a.K,E,F,G,a.Vc,a.ra,function(oa,kc){return new zma(a.ra,F,oa,a.K,a.Kh,kc)});
g.B(fa,G);return fa}},k,l,m,n,p,t,u,z,C,D)};
UW=function(a){this.u=a;this.o={}};
VW=function(){this.o=[]};
WW=function(a,b,c){var d=g.pb(a.o,b);if(0<=d)return b;b=-d-1;return b>=a.o.length||a.o[b]>c?null:a.o[b]};
Fma=function(a){this.u=new VW;this.o=new UW(a.tE)};
XW=function(){qU.apply(this,arguments)};
Gma=function(a,b,c){this.w=a;this.o=b;this.u=c;this.A=a.getCurrentTime()};
Ima=function(a,b){var c=void 0===c?Date.now():c;if(a.u)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,k=a.o;YW({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Hma(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.o,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:k}});"unknown"===e.event&&ZW("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.o);e=e.startSecs+e.o/1E3;e>a.A&&a.w.getCurrentTime()>e&&ZW("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.o)}};
Jma=function(a,b,c){a.u&&YW({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.o}})};
$W=function(a,b){a.u&&YW({driftRecoveryInfo:{contentCpn:a.o,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.Ay-b.qB).toString(),driftFromHeadMs:Math.round(1E3*nT(a.w.app)).toString()}})};
Kma=function(a,b){a.u&&YW({adTrimmingInfo:{contentCpn:a.o,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.aE}})};
ZW=function(a,b){YW({daiStateTrigger:{errorType:a,contentCpn:b}})};
YW=function(a){g.Rq("adsClientStateChange",a)};
Hma=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}};
aX=function(a){this.u=a;this.Z=(a=!g.P(this.u.N().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.u.N().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.aa=a?this.u.N().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.V=a?this.u.N().deviceParams.cbrand:"";this.ba=a?this.u.N().deviceParams.cmodel:"";this.P="AD_PLACEMENT_KIND_UNKNOWN";this.B=this.I=this.C=this.F=null;this.o="unknown_type";this.M=!0;this.R=this.w=this.G=!1;this.U="vod";this.A=null};
bX=function(a){a.F=null;a.C=null;a.I=null;a.B=null;a.A=null;a.P="AD_PLACEMENT_KIND_UNKNOWN";a.o="unknown_type";a.G=!1;a.w=!1};
cX=function(a){a.w=!1;FA("ad_to_video",["pbresume"],void 0)};
Lma=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
dX=function(a){this.o=a};
eX=function(a){a=[a,a.w].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.o=!0;return a};
gX=function(a,b){var c=a.o;g.uf(function(){return fX(c,b,1)})};
hX=function(a,b,c,d,e,f,k,l){g.O.call(this);this.xc=a;this.K=b;this.o=d;this.B=this.o.o instanceof qU?this.o.o:null;this.u=null;this.M=!1;this.F=c;this.P=(a=b.getVideoData(1))&&a.va||!1;this.U=0;this.V=!1;this.ba=g.P(b.N().experiments,"abort_ad_on_browser_autoplay_blocked");this.Le=e;this.vj=f;this.Sg=k;this.R=!1;this.daiEnabled=l};
iX=function(a){if(WU(a.K)){var b=a.K.getVideoData(2);(b=a.o.G[b.Eb]||null)?(!a.u||a.u&&a.u.F!==b)&&a.dc(b):a.hp()}else 1===a.K.getPresentingPlayerType()&&a.u&&a.hp()};
jX=function(a){(a=a.baseUrl)&&g.cr(a,void 0,cn(a))};
kX=function(a,b){var c=a.F,d=a.o.xb().u,e=a.fx(),f=a.hx();var k=a.isLiveStream()?"live":"vod";bX(c);var l=c.u.getVideoData(1),m=c.u.getVideoData(2);l&&(c.F=l.clientPlaybackNonce,c.I=l.videoId);m&&(c.C=m.clientPlaybackNonce,c.B=m.videoId,c.A=m.adFormat);c.P=d;0>=f?bX(c):(c.o=c.M?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.U=k,c.R=e+1==f,c.G=!0,c.G&&(GA("c",c.Z,c.o),GA("cver",c.aa,c.o),g.P(c.u.N().experiments,"html5_ad_csi_tracker_initialization_killswitch")||(GA("cbrand",c.V,c.o),GA("cmodel",
c.ba,c.o)),GA("yt_pt","html5",c.o),GA("yt_pre","2",c.o),GA("yt_abt",Lma(c.P),c.o),c.F&&GA("cpn",c.F,c.o),c.I&&GA("docid",c.I,c.o),c.C&&GA("ad_cpn",c.C,c.o),c.B&&GA("ad_docid",c.B,c.o),GA("yt_vst",c.U,c.o),c.A&&GA("ad_at",c.A,c.o)))};
mX=function(a,b){b=void 0===b?!1:b;lX(a.xc,a.o.xb(),a);b||ur("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.daiEnabled&&!a.o.F&&(Mma(a,a.ix()),a.o.F=!0)};
Mma=function(a,b){for(var c=nX(a),d=a.o.xb().start,e=[],f=g.q(b),k=f.next();!k.done;k=f.next()){k=k.value;if(c<=d)break;var l=oX(k);e.push({externalVideoId:k.B,originalMediaDurationMs:(1E3*k.u).toString(),trimmedMediaDurationMs:(parseInt(k.o.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);k.A.w=c;if(!Nma(a,k,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+oX(p)},0);
Jma(a.Le,Tla(a.o.xb()),c);Kma(a.Le,{cueIdentifier:a.o.u&&a.o.u.identifier,aE:e})};
oX=function(a){var b=1E3*a.u;return 0<parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.o.trimmedMaxNonSkippableAdDurationMs,10):b};
nX=function(a){var b=a.o.xb().end;a=WW(a.vj,a.o.xb().start,b);return Math.min(b,null===a?Infinity:a)};
Nma=function(a,b,c,d){var e=a.Sg.create(b,NU(JU(a.o)));c=e.Uw(c,d);g.He(e);if(!c)return!1;a.o.G[c]=b;return!0};
Oma=function(a){if(a.V)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor((0,g.H)()/1E3)-a.U;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
pX=function(a,b,c,d){this.o=a;this.u=b;this.w=c;this.A=d};
rX=function(){this.o=new Map;if(g.xo("c3_client_side_screens")){var a=Xr(49980),b=Xr(49981);g.Ga("historyVes",{backButtonVe:a,forwardButtonVe:b},void 0);qX(this,a);qX(this,b)}};
sX=function(){rX.o||(rX.o=new rX);return rX.o};
uX=function(a,b){tX(a,g.Wr(b))};
qX=function(a,b){a.o.set(b,void 0);"UNDEFINED_CSN"===g.ds(void 0)||tX(a,b)};
tX=function(a,b){var c=g.ds(void 0),d=g.bs(void 0);c&&d&&g.ts(a.client,c,d,[b])};
vX=function(a,b,c,d,e){g.O.call(this);this.u=a;this.w=b;this.B=c;this.o=d;this.A=e;Pma(this)};
Qma=function(a,b){var c=null,d={isEmpty:!0,my:!1,Tg:[]};try{c=JSON.parse(b.response)}catch(f){return b.response&&(c=b.response,c.startsWith("GIF89")||(f.params=c.substr(0,256),g.Go(f))),d}if(!c)return d;g.P(a.w.N().experiments,"html5_enable_visual_element_logging_for_deferred_ads")&&c&&c.trackingParams&&uX(sX(),c.trackingParams);if(c&&c.adThrottled)return d.my=!0,d;c=c.playerAds;if(!c||!c.length)return d;c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.ab(c))return d;if(0<a.o.xb().end){var e=a.o.xb().end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}d.Tg=c;
d.isEmpty=!1;return d};
Pma=function(a){[a.o.R,a.o.xb()].filter(function(b){return null!=b}).forEach(function(b){lX(a.u,b,a)});
ur("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
wX=function(a,b,c){g.R.call(this,a);this.K=b;this.A=c;this.B=Rma(this)};
xX=function(a,b){b=void 0===b?null:b;a.ea();if(b){var c=a.B;b.forEach(function(d){return a.A.executeCommand(d,c)})}};
Rma=function(a){var b=a.K;if(b){a=function(d){return{toString:function(){return d()}}};
var c={};c.AD_MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(2))).toString()});
c.MT=a(function(){return Math.round(Math.max(0,1E3*b.getCurrentTime(1))).toString()});
c.P_H=a(function(){return b.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=a(function(){return b.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=a(function(){return(0,g.H)().toString()});
c.LACT=a(function(){return bq().toString()});
c.VIS=a(function(){return b.getVisibilityState().toString()});
c.VOL=a(function(){return b.getVolume().toString()});
return c}return{}};
yX=function(a){g.A.call(this);this.G=a};
zX=function(a){yX.call(this,!0);this.o=a};
AX=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.ga});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return bq().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
BX=function(a,b){g.A.call(this);var c=this;this.w=[];this.F=!1;this.u=0;this.B=this.C=this.A=!1;this.P=null;var d=(0,g.x)(a,b);this.o=new g.I(function(){return d(c.P)},300);
g.B(this,this.o);this.I=this.G=Infinity};
CX=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.w.includes(d.identifier))return!0}return!1};
Z=function(a,b,c,d,e){e=void 0===e?null:e;g.Ru.call(this,c);this.api=a;this.ra=b;this.macros={};this.componentType=d;this.F=null;this.za=e;this.da=null;this.Ca=new zX(this.element);g.B(this,this.Ca);this.wa=this.L(this.element,"click",this.onClick);this.U=[];this.R=new BX(this.onClick,this);g.B(this,this.R);this.Ia=!1;this.G=null};
DX=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Go(Error("Got null or undefined adText object")),"";var c=g.fd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Go(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
EX=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ab(a.thumbnails)||null==a.thumbnails[0].url)?"":g.fd(a.thumbnails[0].url)};
Sma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ab(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Sd(0,0):new g.Sd(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
FX=function(a,b,c){g.lL(a.api,b,a);g.mL(a.api,b,c)};
GX=function(a,b,c){g.pL(a.api,b)&&g.oL(a.api,b,c)};
HX=function(a,b){b=void 0===b?null:b;var c=a.api.N();!(0<a.U.length)&&c.o&&g.P(a.api.N().experiments,"use_touch_events_for_bulleit_mweb")&&(Jy?0:"ontouchstart"in document.documentElement&&(ih()||hh()))&&(a.bb(a.wa),b&&a.bb(b),a.U=[a.L(a.element,"touchstart",a.wJ,a),a.L(a.element,"touchmove",a.vJ,a),a.L(a.element,"touchend",a.uJ,a)])};
IX=function(){g.A.call(this);var a=this;this.o=new Map;this.u=g.Np(document.body,"click",function(b){if(b.target&&(b=a.o.get(b.target))&&b)for(var c=0;c<b.length;c++)g.cr(b[c],void 0,void 0)},"ytp-ad-has-logging-urls")};
KX=function(){null==JX&&(JX=new IX);return JX};
MX=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=LX(c);if(d){c=g.ne("SPAN",null,d);break a}}c=g.pe(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Tma(e,b))}return 1==c.length?c[0]:g.ne("SPAN",null,c)};
Tma=function(a,b){var c=null,d=a.text;b&&(d=LX(d)||d);a.bold&&(c=g.ne("B",null,c||d));a.italics&&(c=g.ne("I",null,c||d));a.strikethrough&&(c=g.ne("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.ne("A",null,c||d);g.Yc(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),KX().register(c,e),g.J(c,"ytp-ad-has-logging-urls")}return c||g.ne("SPAN",
null,d)};
LX=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(g.ne("BR")),b.push(a[c]);return b}return null};
NX=function(a){yX.call(this,a);this.C=new g.O;g.B(this,this.C)};
OX=function(a,b,c){g.A.call(this);this.o=a;this.A=b;this.view=c();g.B(this,this.view);this.P=null;this.I=[];this.macros={};this.R=!1;this.hide()};
QX=function(a,b){var c=PX(a);b.forEach(function(d){return a.A.executeCommand(d,c)})};
PX=function(a){for(var b={},c=g.q(Object.entries(AX(a.o,a.A))),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;b[d]=e.toString()}Object.assign(b,a.macros);return b};
RX=function(a){g.O.call(this);this.A=a;this.u=new g.R({D:"div",H:"ytp-ad-info-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-info-dialog-confirm-button",W:"{{content}}"}]});g.B(this,this.u);this.u.hide();this.w=new g.R({D:"div",H:"ytp-ad-info-dialog-title",W:"{{content}}"});g.B(this,this.w);this.w.hide();this.o=new g.R({D:"div",H:"ytp-ad-info-dialog-relative-container",J:[{D:"div",H:"ytp-ad-info-dialog-form",J:[this.w,{D:"ul",H:"ytp-ad-info-dialog-ad-reasons"},{D:"div",H:"ytp-ad-info-dialog-message",
W:"{{content}}"},this.u]}]});g.B(this,this.o);this.o.hide();this.B=new g.Gr(this);g.B(this,this.B)};
SX=function(a){return a.o.o["ytp-ad-info-dialog-ad-reasons"]};
TX=function(a){return a?MX(a):null};
UX=function(a){NX.call(this,!1);var b=this;this.o=new RX(a.ua());g.B(this,this.o);a={};for(var c=g.q(Object.values(Uma)),d=c.next();!d.done;a={Xm:a.Xm},d=c.next())a.Xm=d.value,this.o.subscribe(a.Xm,function(e){return function(){return b.dispatchEvent({type:e.Xm})}}(a))};
VX=function(a,b,c){OX.call(this,a,b,function(){return new Vma.hD(c)});
this.w=new g.Gr(this);g.B(this,this.w);this.u=null;Wma(this)};
Wma=function(a){function b(e){return a.onClick(e)}
for(var c=g.q(Xma),d=c.next();!d.done;d=c.next())a.w.L(a.view,d.value,b)};
WX=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-out-of-player-ad-info",J:[{D:"div",H:"ytp-out-of-player-hover-container"},{D:"div",H:"ytp-out-of-player-ad-info-button-container",J:[{D:"button",Y:["ytp-out-of-player-ad-info-button"],J:[{D:"span",H:"ad-info-icon"}]}]}]},"watch-ad-info-hover-button");this.u=this.o["ytp-out-of-player-hover-container"];this.B=this.o["ytp-out-of-player-ad-info-button-container"];this.C=this.o["ytp-out-of-player-ad-info-button"];this.w=new VX(this.api,this.ra,new zX(this.B));
g.B(this,this.w);this.A=new g.Gr(this);g.B(this,this.A);this.qs();(new zX(this.element)).append(this.w.view);this.A.L(this.C,"mouseenter",this.iH);this.A.L(this.C,"mouseleave",this.qs);this.A.L(this.B,"click",this.hH);this.hide()};
XX=function(a,b,c){wX.call(this,{D:"div",H:"videowall-companion-container",J:[{D:"iframe",H:"videowall-companion",O:{marginwidth:"0",marginheight:"0",hspace:"0",vspace:"0",frameborder:"0",scrolling:"no",src:c.iframeUrl}}]},a,b);var d=this;this.w=c;var e=this.o["videowall-companion"];g.Mh(e,c.iframeWidth||300,c.iframeHeight||250);this.u=new WX(a,b);g.B(this,this.u);this.u.ca(this.element,0);this.w.adInfoRenderer&&this.w.adInfoRenderer.adHoverTextButtonRenderer?this.u.init(RT("watch-ad-info-hover-button"),
this.w.adInfoRenderer.adHoverTextButtonRenderer,{}):g.M(Error("VideowallIframeCompanionAdRenderer has no ad info renderer."));e&&this.L(e,"load",function(){xX(d,c.impressionCommands);var f=Yma(e);f&&d.L(f,"click",function(k){d.ea();g.xe(d.u.element,k.target)||(xX(d,d.w.onClickCommands),d.K.onAdUxClicked("videowall-companion"))})})};
Yma=function(a){try{var b=a.contentDocument||a.contentWindow.document;return b&&b.body}catch(c){return g.M(c),null}};
YX=function(){XW.apply(this,arguments)};
ZX=function(a){return a.length?(0,g.Cc)(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
$X=function(a,b,c,d,e,f,k){Y.call(this,b,d.o,e,f,k);this.P=c;this.B=d;this.u=d.o;this.I=a;this.A=this.C=null;a=this.B.xb();a.visible=!1;lX(this.I,a,this);ur("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
bY=function(a,b,c,d,e,f,k,l){hX.call(this,a,b,c,d,e,f,k,l);this.A=d.o;this.C=-1;this.G=this.w=null;this.I=aY(this.ao())};
cY=function(a){a.C++;var b=a.ao();b?a.dc(b):a.bh()};
aY=function(a){return a?Zma.some(function(b){return a instanceof b}):!1};
$ma=function(a){this.o=new pX(function(b){b=new hX(a.xc,a.K,a.Jw(),b,a.Le,a.vj,a.Sg,a.daiEnabled);mX(b);return b},function(b){return new vX(a.xc,a.K,a.Mq,b,a.Le)},function(b){var c=a.Om(b.o);
b=new $X(a.xc,a.K,a.kE,b,a.JO,c,a.Vc);g.B(b,c);return b},function(b){b=new bY(a.xc,a.K,a.Jw(),b,a.Le,a.vj,a.Sg,a.daiEnabled);
mX(b);return b})};
dY=function(a,b,c,d){d=ana(c,d);var e={D:"div"};d&&(e={D:"div",H:"image-companion",J:[{D:"img",O:{src:d.url,border:"0",style:"cursor:pointer;"}}]});wX.call(this,e,a,b);this.u=c;this.w=new WX(a,b);g.B(this,this.w);this.w.ca(this.element,0);this.u.adInfoRenderer&&this.u.adInfoRenderer.adHoverTextButtonRenderer?this.w.init(RT("watch-ad-info-hover-button"),this.u.adInfoRenderer.adHoverTextButtonRenderer,{}):g.M(Error("ImageCompanionAdRenderer has no ad info renderer."));if(a=this.o["image-companion"])void 0!==
d.width&&void 0!==d.height&&g.Mh(a,d.width,d.height),this.ka("click",this.C,this),xX(this,c.impressionCommands)};
ana=function(a,b){if(!a.image||!a.image.thumbnail)return null;var c=a.image.thumbnail;return null==c.thumbnails?null:g.Xa(c.thumbnails||[],function(d){return d.width==b.width&&d.height==b.height})};
eY=function(a){XW.call(this,a);this.u=(0,g.Cc)((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.Sd(b.width,b.height)})};
fY=function(a,b){xU.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Rq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),yU(this,new HV(a.adStart.adMessageRenderer)));if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),yU(this,e),c.push(e.u)):e.adActionInterstitialRenderer?(e=new BV(e.adActionInterstitialRenderer),yU(this,e)):e.adIntroRenderer&&(e=new GV(e.adIntroRenderer),
yU(this,e),this.u=1),this.o.filter(function(f){return f instanceof tU}).forEach(function(f,k){if(f instanceof tU){var l=new rU(k,c);
f.A=l}})};
gY=function(a,b){xU.call(this);if(a.renderers){for(var c=[],d=g.q(a.renderers),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer&&(e=b(e.instreamVideoAdRenderer),yU(this,e),c.push(e.u));this.o.forEach(function(f,k){if(f instanceof tU){var l=new rU(k,c);f.A=l}})}};
hY=function(a,b){xU.call(this);var c=a.persistingOverlay;this.w=c&&c.persistingAdOverlayRenderer?new LV(c.persistingAdOverlayRenderer):null;yU(this,bna(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new DU(c.instreamSurveyAdRenderer);break a}}c=null}yU(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.u=1,c=new BV(c.adActionInterstitialRenderer)):c=null:c=null;yU(this,c)};
bna=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new BV(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new PV(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Rq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new HV(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new OV(b.surveyTextInterstitialRenderer):null};
iY=function(a,b){this.u=a;this.o=b};
cna=function(a){var b=new UU(a.mE),c=new cU(b);return{QE:function(){return b},
Qr:function(){return c}}};
jY=function(a,b){this.u=a;this.o=b};
kY=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,k=e?a.u.create(e,f):null;return new EU(b,c,k,d)}catch(l){g.M(l)}};
dna=function(a){var b=new jY(a.RD,a.Kb);return{ex:function(){return b}}};
lY=function(a){g.A.call(this);this.o=a;this.w=new nma(a.K);this.u=new VU(a.K);g.B(this,this.u)};
ena=function(a){return function(){return new aX(a.o.K)}};
mY=function(a){return function(b,c){return new aV(b,a.w,c,a.o.K,a.u,a.o.Kh,a.o.daiEnabled)}};
nY=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Ge(this,function(){return b.o=null});
var c=Fr(a);if(c){var d=function(){b.o&&b.o(!!Dr())};
this.u.addEventListener(c,d);g.Ge(this,function(){b.u.removeEventListener(c,d)})}};
oY=function(a){g.A.call(this);this.o=a};
fna=function(a){var b=window.document;return g.lz(a.N())?new nY(b):new oY(a)};
pY=function(a){g.A.call(this);this.o=new Gma(a.K,a.contentCpn,a.daiEnabled)};
qY=function(a){this.u=a;this.o=-1};
rY=function(a){g.P(a.u.N().experiments,"stop_use_time_since_last_ad_service")||(a.o=(0,g.H)()/1E3,g.cr(a.u.N().G+"mac_204?action_fcts=1"))};
sY=function(a){return g.P(a.u.N().experiments,"stop_use_time_since_last_ad_service")?0:0<a.o?Math.ceil((0,g.H)()/1E3-a.o):0};
uY=function(a){tY=a&&a.data};
wY=function(a){vY=a&&a.data};
yY=function(a){xY=a&&a.data};
AY=function(a){zY=a&&a.data};
BY=function(){zY=xY=tY=null};
CY=function(a){a.addEventListener("updateKevlarOrC3Companion",uY);a.addEventListener("onPlaShelfInfoCardsReady",wY);a.addEventListener("updateEngagementPanelAction",yY);a.addEventListener("changeEngagementPanelVisibility",AY);window.addEventListener("yt-navigate-start",BY)};
FY=function(a,b,c,d){g.O.call(this);var e=this;this.o=a;this.ga=null;this.Ma=b;this.oa=d.WD;this.Ka=d.SD;this.F=d.Kb;b=this.o.getVideoData(1).getPlayerResponse()||{};this.w=!DY(this.F)&&b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;this.Ea=ama({mF:3E4,eG:YU(a),K:a}).VE();this.A=null;this.R=taa(function(){e.o.ea()||g.fL(e.o,"ad",1)});
this.u=null;this.C=new Map;b=this.o.N().experiments;var f=cna({mE:a.getVideoData(1)}),k=new lY({Kh:f.Qr(),K:a,daiEnabled:this.w});g.B(this,k);this.G=new Set;this.Z=-1;this.ba=[];this.I=null;this.M=new Map;this.aa=c;this.U=new Set;this.B=new g.Gr(this);g.B(this,this.B);this.P=new g.Gr(this);g.B(this,this.P);this.ha=this.Ca=this.da=!1;this.V=g.lz(a.N());c=new hU({experiments:b,TD:this,UD:this.Ka,VD:f.QE(),XD:this,gE:this,MJ:this,Kh:f.Qr(),K:this.o,Kb:this.F});g.B(this,c);this.Ta=c.u;c=new pY({contentCpn:EY(this).clientPlaybackNonce,
uT:this,daiEnabled:this.w,K:this.o});g.B(this,c);this.Ia=c.o;c=new Fma({tE:this});this.wa=c.o;this.za=c.u;var l=Tb(NU(IU(this.o)));d=new Ema({ra:this,jE:k.u,Vc:SU(),Kh:f.Qr(),K:this.o,TN:l,Om:mY(k),daiEnabled:this.w,Ag:d.Ag,Kb:this.F});this.Qa=(new $ma({Mq:this.Ma,Sg:d.o,xc:this,kE:this.Ea,Vc:SU(),Jw:ena(k),Le:this.Ia,vj:this.za,K:this.o,JO:l,Om:function(m){return mY(k)(m,l)},
daiEnabled:this.w})).o;this.ma=dna({RD:new iY(new bma(a),b),Kb:this.F}).ex();this.Aa=fna(this.o);g.B(this,this.Aa);this.Wa=g.rz(this.o.N())?g.P(this.o.N().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.P(this.o.N().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
gna=function(a){return a&&a.adPlacements?a.adPlacements.map(function(b){return b.adPlacementRenderer}).filter(function(b){return b&&null!=b.renderer}):[]};
GY=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.w&&g.lz(a.o.N())&&EY(a).Ef()||(a.I=c),!1):!0})};
HY=function(a,b){a.M=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.M.set(c.elementId,c),!1):!0})};
hna=function(a,b){return b.every(function(c){c=a.C.get(c);return null==c?(g.M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof vX?!1:c instanceof hX?!c.Si():!0})};
JY=function(a){var b=ina(a);if(0<b.length){hna(a,b)&&a.R();var c=g.Q(a.o.N().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.V&&g.$y(a.o.N())?(c=new g.I(function(){IY(a,b)},c),g.B(a,c),c.start()):g.uf(function(){IY(a,b)})}else a.R()};
jna=function(a,b){if(!b)return{};var c=!!a.u&&a.u||null;c?(c=c.u,c=c.F.Kl()?nV(c.o,b):{}):c={};return c};
ina=function(a){for(var b=[],c=g.q(a.G),d=c.next();!d.done;d=c.next())d=d.value,OT(d)&&b.push(d);c=g.q(b);for(d=c.next();!d.done;d=c.next())a.G["delete"](d.value);return b};
lna=function(a,b,c){c=void 0===c?null:c;b=a.ma.create(b,kna(a),a.ba.length,c);a.ba=a.ba.concat(b);return b};
IY=function(a,b){if(!a.ea())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.gm(d.value)};
KY=function(a,b,c){c=void 0===c?null:c;mna(b);b=lna(a,b,c);return 0==b.length?null:b.map(function(d){return a.Qa.create(d)})};
NY=function(a,b){b.Qj()?(g.He(a.A),a.A=b):((b.uh()||b.im())&&a.A&&a.A.xb().start<b.xb().start&&LY(a),b.ly()&&MY(a,b))};
LY=function(a){var b=a.Ea;if(b.o)b.o&&Yla(b.o);else{var c=b.u.getVideoData(1);b.u.na("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})}g.He(a.A);a.A=null};
MY=function(a,b){a.u&&OY(a,a.w);a.u=b;b.Si()&&PY(a)};
PY=function(a){a.da||(a.P.L(a.o,"presentingplayerstatechange",a.RI),a.P.L(a.o,"internalAbandon",a.RJ),a.P.L(a.o,"progresssync",a.CN),a.P.L(a.o,"onVolumeChange",a.DN),a.P.L(a.Aa,"fullscreentoggled",a.QI),a.da=!0);g.J(a.o.getRootNode(),"ad-showing");a.w||(g.J(a.o.getRootNode(),"ad-interrupting"),g.P(a.o.N().experiments,"enable_html5_teal_ad_badge")&&YU(a.o)&&g.J(a.o.getRootNode(),"ad-teal-design"),g.bM(a.o.app,2))};
OY=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Si()&&(WU(a.o)||a.w);d=b&&d&&d.reset()||null;a.u&&QY(a,a.u);a.u=null;a.Z=-1;e&&nna(a,c);a.ha||a.R();b&&d&&(d.xb().o=!1,mX(d,!0))};
nna=function(a,b){g.Ir(a.P);a.da=!1;g.Dn(a.o.getRootNode(),"ad-showing");a.w||(a.Wa?(a.ha||a.R(),ona(a),a.o.cueVideoByPlayerVars({},2)):(a.o.cueVideoByPlayerVars({},2),ona(a)),g.Dn(a.o.getRootNode(),"ad-interrupting"),g.P(a.o.N().experiments,"enable_html5_teal_ad_badge")&&g.Dn(a.o.getRootNode(),"ad-teal-design"));b&&b(a.o)};
ona=function(a){if(a.Ca)!a.V&&g.$y(a.o.N())&&(g.P(a.o.N().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.P(a.o.N().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.sL(a.o,2);else if(g.sL(a.o,2),!a.V){var b=g.PK(a.o,1);g.V(b,4)&&!g.V(b,2)&&a.o.playVideo()}};
lX=function(a,b,c){if(b instanceof NT){if(a.V&&PT(b)&&g.V(g.PK(a.o,1),64)&&!a.w){var d=1E3*a.o.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&(b.o=!0)}a.C.has(b)?g.M(Error(b.toString()+" has already been seen")):(a.G.add(b),a.C.set(b,c),OT(b)||g.eL(a.o,[b],1))}else g.M(Error("Should use AdCueRange instead of CueRange"))};
kna=function(a){var b=1E3*a.o.getDuration(1);return new MT(b,1E3*a.o.getCurrentTime(1)||0,g.P(a.o.N().experiments,"enable_upg_processed_dvr_dai")?a.w:EY(a).Ef())};
fX=function(a,b,c){g.uT(a.o.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.G["delete"](c),a.C["delete"](c)};
EY=function(a){return a.o.getVideoData(1)};
QY=function(a,b){for(var c=a.C,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.He(b)};
RY=function(a,b){var c=a.o.app;1==b&&(c.P.tick("vr"),c.Ca||(c.Ca=ps(QA,c.tA,c)),rK(c.C),CI(c.P,c.C.getVideoData(),vT(c)));var d=c.o;(g.rz(d)&&d.w||g.az(d))&&(c.Mb()||c.u.na("onAdStateChange",b));switch(b){case 1:a.Z=1;break;case 0:a.Z=0}};
oW=function(a,b){if(a.u){var c=a.u;c.u&&(c=c.u,c.G&&gV(c.o,b,c.getDuration()))}};
mna=function(a){for(var b=0;b<a.length;b++)ur("ADS_CLIENT_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
SY=function(a){return a&&a.thumbnails&&!g.ab(a.thumbnails||null)&&a.thumbnails[0].url?g.fd(a.thumbnails[0].url):""};
TY=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{D:"img",H:"ytp-ad-image"},"ad-image",void 0===c?null:c);this.u=d;this.hide()};
UY=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},J:[{D:"path",O:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",O:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return g.X?{D:"div",Y:["ytp-icon","ytp-icon-check-box"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return g.X?{D:"div",Y:["ytp-icon","ytp-icon-check-box-outline-blank"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},
{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.GM();case "INFO_OUTLINE":return KM();case "REMOVE_CIRCLE":return{D:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",O:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return OM();case "LIKE":return g.LM();case "DISLIKE":return IM();default:return g.Uq(new Sq("Unexpected icon:",
a)),null}};
VY=function(a,b,c,d,e,f){c=void 0===c?[]:c;e=void 0===e?!1:e;c={D:"button",Y:["ytp-ad-button"].concat(c)};null!=f&&(c.O={tabindex:f});Z.call(this,a,b,c,void 0===d?"button":d);this.u=this.w=this.B=null;this.C=e;this.hide()};
pna=function(a){var b=null;null!=a.u&&(b=[a.u.serviceEndpoint,a.u.navigationEndpoint].filter(function(c){return null!=c}),a.u.command&&(b=b.concat(a.u.command)));
return b||[]};
WY=function(a,b,c,d,e){Z.call(this,a,b,c,d);this.u=e;g.B(this,this.u);this.Z=this.B=-1};
XY=function(a){a.u&&-1===a.B&&(a.B=a.u.subscribe("b",a.Nh,a),a.Z=a.u.subscribe("a",a.aj,a),a.Nh())};
YY=function(a){null!=a.u&&-1!==a.B&&(a.u.Eh(a.B),a.u.Eh(a.Z),a.Z=-1,a.B=-1)};
ZY=function(a,b,c,d){d=void 0===d?!1:d;WY.call(this,a,b,{D:"div",H:"ytp-ad-timed-pie-countdown-container",J:[{D:"svg",H:"ytp-ad-timed-pie-countdown",O:{viewBox:"0 0 20 20"},J:[{D:"circle",H:"ytp-ad-timed-pie-countdown-background",O:{r:10,cx:"10",cy:"10"}},{D:"circle",H:"ytp-ad-timed-pie-countdown-inner",O:{r:5,cx:"10",cy:"10"}},{D:"circle",H:"ytp-ad-timed-pie-countdown-outer",O:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c);this.A=this.o["ytp-ad-timed-pie-countdown-inner"];this.w=Math.ceil(10*
Math.PI);this.C=d;this.hide()};
$Y=function(a,b,c,d){Z.call(this,a,b,{D:"div",H:"ytp-ad-text"},void 0===d?"ad-text":d,void 0===c?null:c);this.u=null;this.hide()};
aZ=function(a,b){b&&g.ye(a.element,DX(a.u,b))};
bZ=function(a,b,c,d){WY.call(this,a,b,{D:"div",H:"ytp-ad-preview-slot"},"ad-preview",c);var e=this;this.ga=-1;this.w=new g.Ru({D:"span",H:"ytp-ad-preview-container"});g.B(this,this.w);this.A=new $Y(this.api,this.ra,"ytp-ad-preview-text");g.B(this,this.A);this.A.ca(this.w.element);this.I=new g.Ru({D:"span",H:"ytp-ad-preview-image"});g.B(this,this.I);this.C=new TY(this.api,this.ra);g.B(this,this.C);this.C.ca(this.I.element);this.I.ca(this.w.element);this.w.ca(this.element);this.M=new g.lN(this.w,400,
!1,100,function(){return e.hide()});
g.B(this,this.M);this.V=0;this.aa=!1;this.ma=d;this.hide()};
cZ=function(a){a.M.show(100);a.show()};
dZ=function(a,b,c,d,e){e=void 0===e?0:e;g.A.call(this);this.w=a;this.u=!1;this.I=d;this.C=!1;this.o=null;0<b&&(this.o=new g.I(this.hw,b,this),g.B(this,this.o));this.A=new g.I(this.hw,c,this);g.B(this,this.A);this.G=Hn(this.w,e,1,d);g.B(this,this.G);this.F=Hn(this.w,0,d,1);g.B(this,this.F);this.B=new g.Gr;g.B(this,this.B)};
rna=function(){this.o=qna};
sna=function(){this.o=new rna};
una=function(a,b,c,d){d=void 0===d?0:d;var e=!1;Wda({measure:function(){if(!e){var f=[];b.hidden&&f.push("hidden");"none"===xh(b,"display")&&f.push("display:none");var k=xh(b,"visibility");"hidden"!==k&&"collapse"!==k||f.push("visibility:"+k);k=b.getBoundingClientRect();k.width||k.height||f.push("boundingClientRect:0");k=0;for(var l=b;l;){if("0"===xh(l,"opacity")){f.push("opacity:0@level"+k);break}if(g.Bn(l,"video-ads")||g.Bn(l,"ytp-ad-module"))break;k+=1;l=l.parentElement}if(0<f.length&&(k=d,f=f.join(","),
a.o.o().o.w("/client_streamz/youtube/video_ads/visibility_error",c,f),0<k&&Math.random()<k)){k=["id","class","style","hidden","aria-hidden"];l=[];for(var m=b;m;){for(var n={tagName:m.tagName},p={},t=g.q(k),u=t.next();!u.done;u=t.next())u=u.value,m.hasAttribute(u)&&(p[u]=m.getAttribute(u));g.Mb(p)||(n.attributes=p);l.push(n);m=m.parentElement}k=tna(l);g.M(Error("vis_check_error_reason: "+f+", dump: "+k))}}}})();
return function(){return e=!0}};
tna=function(a){return JSON.stringify(a.map(function(b){var c=[b.tagName];b.attributes&&c.push(b.attributes);return c}))};
wna=function(a,b,c){c=void 0===c?0:c;return una(vna(),a,b,c)};
eZ=function(a,b,c){WY.call(this,a,b,{D:"div",H:"ytp-ad-skip-button-slot"},"skip-button",c);var d=this;this.I=null;this.ga=!1;this.A=new g.Ru({D:"span",Y:["ytp-ad-skip-button-container"]});g.B(this,this.A);this.A.ca(this.element);this.w=this.C=null;this.ma=new g.lN(this.A,500,!1,100,function(){return d.hide()});
g.B(this,this.ma);this.V=new dZ(this.A.element,15E3,5E3,.5,.5);g.B(this,this.V);this.aa=new g.I(function(){var e=d.api.N().experiments;g.P(e,"enable_visibility_check_for_skip_button_in_bulleit")&&(d.M=wna(d.w.element,"skip-button-ad-text",g.Q(e,"visibility_error_html_dump_sample_rate")))},3E3);
g.B(this,this.aa);this.M=null;this.hide()};
xna=function(a){a=a.I&&a.I.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
fZ=function(a,b){g.O.call(this);this.B=b;this.C=new g.Gr(this);g.B(this,this.C);this.u=a;this.Ga=new g.Tf(100);g.B(this,this.Ga);this.C.L(this.Ga,"tick",this.sJ);this.A={seekableStart:0,seekableEnd:a/1E3,current:0};this.w=!1;this.o=0;this.start()};
gZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-action-interstitial",O:{tabindex:"0"},J:[{D:"div",H:"ytp-ad-action-interstitial-background-container"},{D:"div",H:"ytp-ad-action-interstitial-slot",J:[{D:"div",H:"ytp-ad-action-interstitial-card",J:[{D:"div",H:"ytp-ad-action-interstitial-image-container"},{D:"div",H:"ytp-ad-action-interstitial-headline-container"},{D:"div",H:"ytp-ad-action-interstitial-description-container"},{D:"div",H:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial");this.oa=this.o["ytp-ad-action-interstitial-image-container"];this.I=new TY(this.api,this.ra,"ytp-ad-action-interstitial-image");g.B(this,this.I);this.I.ca(this.oa);this.ma=this.o["ytp-ad-action-interstitial-headline-container"];this.Z=new $Y(this.api,this.ra,"ytp-ad-action-interstitial-headline");g.B(this,this.Z);this.Z.ca(this.ma);this.ga=this.o["ytp-ad-action-interstitial-description-container"];this.V=new $Y(this.api,this.ra,"ytp-ad-action-interstitial-description");g.B(this,
this.V);this.V.ca(this.ga);this.Ea=this.o["ytp-ad-action-interstitial-background-container"];this.M=new TY(this.api,this.ra,"ytp-ad-action-interstitial-background",!0);g.B(this,this.M);this.M.ca(this.Ea);this.Aa=this.o["ytp-ad-action-interstitial-action-button-container"];this.w=this.B=this.A=this.u=null;this.C=new g.Gr;g.B(this,this.C);this.aa=null;this.hide()};
yna=function(a){var b=g.ce("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
hZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-choice-interstitial",J:[{D:"div",H:"ytp-ad-choice-interstitial-main-content",J:[{D:"div",H:"ytp-ad-choice-interstitial-head-title"},{D:"div",H:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial");this.B=this.A=this.u=this.w=null;this.C=new g.lN(this,0,!1,0);g.B(this,this.C);this.hide()};
zna=function(a,b){var c=SY(b)||"";g.ec(c)?g.Go(Error("Found ThumbnailDetails without valid image URL")):g.sh(a,"backgroundImage","url("+c+")")};
Ana=function(a){switch(a){case 0:case 1:return a;default:return g.M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
Cna=function(a,b,c,d){if(2!==b.length)return!1;a.u=Bna(a,b[0],c,0===d);a.u.show();a.A=Bna(a,b[1],c,1===d);a.A.show();return!0};
Bna=function(a,b,c,d){var e=a.o["ytp-ad-choice-interstitial-button-container"],f=d?1:2,k=["ytp-ad-choice-interstitial-button"],l=g.P(a.api.N().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.P(a.api.N().experiments,"self_podding_highlight_non_default_button");d&&k.push("ytp-ad-choice-interstitial-button-default");d===!m&&k.push(l);d=new VY(a.api,a.ra,k,"button",!1,f);g.B(a,d);d.init(RT("button"),
b,a.macros);d.ca(e);d.element.style.width=8*c+32+"px";return d};
Dna=function(a,b){var c=8*b+32,d=a.o["ytp-ad-choice-interstitial-button-container"];190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
Ena=function(a,b,c,d){a.w=new fZ(d);a.w.subscribe("a",function(){a.C.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.ra.executeCommand(f.value,c)});
g.B(a,a.w)};
Fna=function(a,b,c){var d=a.o["ytp-ad-choice-interstitial"];a.B=new ZY(a.api,a.ra,a.w,!0);g.B(a,a.B);a.B.init(RT("timed-pie-countdown"),b,c);a.B.ca(d)};
iZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-text-interstitial"},"ad-text-interstitial");this.w=this.o["ytp-ad-text-interstitial"];this.u=new $Y(this.api,this.ra,"ytp-ad-text-interstitial-message");g.B(this,this.u);this.u.ca(this.w);this.hide()};
Gna=function(a){var b=g.ce("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
jZ=function(a,b,c,d,e,f){d=void 0===d?!1:d;e=void 0===e?[]:e;Z.call(this,a,b,{D:"span",Y:["ytp-ad-hover-text-button"].concat(e)},void 0===f?"ad-hover-text-button":f);this.button=this.w=null;this.C=d;this.B=c;this.hide()};
kZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-feedback-dialog-background",J:[{D:"div",H:"ytp-ad-feedback-dialog-container",J:[{D:"div",H:"ytp-ad-feedback-dialog-form",O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-feedback-dialog-title",J:[{D:"span",W:"{{title}}"}]},{D:"span",H:"ytp-ad-info-dialog-feedback-options-title",W:"{{reasonsTitle}}"},{D:"div",H:"ytp-ad-info-dialog-feedback-options"},{D:"div",H:"ytp-ad-feedback-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-feedback-dialog-cancel-button",
W:"{{cancelLabel}}"},{D:"button",H:"ytp-ad-feedback-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog");this.A=[];this.u=null;this.B=this.o["ytp-ad-feedback-dialog-cancel-button"];this.I=this.o["ytp-ad-feedback-dialog-confirm-button"];this.M=this.o["ytp-ad-info-dialog-feedback-options"];this.V=this.o["ytp-ad-feedback-dialog-title"];this.C=this.w=null;this.hide()};
Kna=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new VY(a.api,a.ra,["ytp-ad-feedback-dialog-close-button"],"button"),g.B(a,a.u),a.u.init(RT("button"),c,a.macros),a.u.ka("click",a.Vz,a),a.u.ca(a.element));b.title&&(c=g.T(b.title),a.la("title",c));b.reasonsTitle&&(c=g.T(b.reasonsTitle),a.la("reasonsTitle",c));b.reasons&&Hna(a,b.reasons);b.cancelLabel&&(c=g.T(b.cancelLabel),a.la("cancelLabel",c),g.Ep(a.B,"click",function(){return a.Vz()}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.la("confirmLabel",c),g.Ep(a.I,"click",function(){return Ina(a)}));
b.undoRenderer&&Jna(a,b.undoRenderer)};
Hna=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Go(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Go(Error("AdFeedbackReason.endpoint was not set.")):(d=new lZ(d,e),g.B(a,d),a.M.appendChild(d.ua()),a.A.push(d)))}};
Jna=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.w=new VY(a.api,a.ra,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.B(a,a.w),a.w.init(RT("ad-feedback-undo-mute-button"),c,a.macros),a.w.ka("click",a.xN,a),a.w.ca(a.V)):g.Go(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Ina=function(a){var b=a.A.filter(function(c){return c.isChecked()});
0!==b.length&&(a.ra.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.S("w"),a.hide())};
lZ=function(a,b){this.u=b;this.o=new g.Ru({D:"label",H:"ytp-ad-feedback-dialog-reason-label",J:[{D:"input",H:"ytp-ad-feedback-dialog-reason-input",O:{type:"radio",name:"feedback-reason-group"}},{D:"span",H:"ytp-ad-feedback-dialog-reason-text",W:g.T(a)}]});this.w=this.o.o["ytp-ad-feedback-dialog-reason-input"]};
mZ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"confirm-dialog":d;Z.call(this,a,b,{D:"div",Y:["ytp-ad-confirm-dialog-background"],J:[{D:"div",H:"ytp-ad-confirm-dialog-container",J:[{D:"div",Y:["ytp-ad-confirm-dialog"].concat(c),O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-confirm-dialog-title",W:"{{title}}"},{D:"div",H:"ytp-ad-confirm-dialog-messages"},{D:"div",H:"ytp-ad-confirm-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-confirm-dialog-cancel-button",W:"{{cancelLabel}}"},{D:"button",
H:"ytp-ad-confirm-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]},{D:"button",Y:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],J:[{D:"span",H:"ytp-ad-button-icon",J:[g.GM()]}]}]},d);this.C=this.o["ytp-ad-confirm-dialog-close-overlay-button"];this.B=this.o["ytp-ad-confirm-dialog-cancel-button"];this.M=this.o["ytp-ad-confirm-dialog-confirm-button"];this.I=this.o["ytp-ad-confirm-dialog-messages"];this.A=null;this.u=new g.Gr;g.B(this,this.u);this.w=null;this.hide()};
Lna=function(a,b){if(b.title){var c=g.T(b.title);a.la("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=MX(d.value),a.I.appendChild(d)}b.cancelLabel&&(c=g.T(b.cancelLabel),a.la("cancelLabel",c),a.u.L(a.B,"click",function(e){return a.Vt(e)}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.la("confirmLabel",c),a.u.L(a.M,"click",function(e){return a.Xt(e)}));
a.u.L(a.C,"click",function(e){return a.Wt(e)})};
nZ=function(a,b){mZ.call(this,a,b,[],"ad-mute-confirm-dialog")};
oZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-info-dialog-background",J:[{D:"div",H:"ytp-ad-info-dialog-container",J:[{D:"div",H:"ytp-ad-info-dialog-form",O:{role:"dialog",tabindex:"-1"},J:[{D:"div",H:"ytp-ad-info-dialog-title",W:"{{title}}"},{D:"ul",H:"ytp-ad-info-dialog-ad-reasons"},{D:"div",H:"ytp-ad-info-dialog-message"},{D:"div",H:"ytp-ad-info-dialog-mute-container"},{D:"div",H:"ytp-ad-info-dialog-confirm-container",J:[{D:"button",H:"ytp-ad-info-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog");this.u=this.w=null;this.I=this.o["ytp-ad-info-dialog-confirm-button"];this.ma=this.o["ytp-ad-info-dialog-mute-container"];this.ga=this.o["ytp-ad-info-dialog-message"];this.V=this.o["ytp-ad-info-dialog-ad-reasons"];this.B=this.A=null;this.aa=c;this.C=null;this.Z=!1;this.M=null;this.hide()};
Mna=function(a){(a.C&&a.C.impressionEndpoints||[]).forEach(function(b){return a.ra.executeCommand(b,a.macros)})};
Nna=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.w=new kZ(a.api,a.ra),g.B(a,a.w),a.w.init(RT("ad-feedback-dialog"),c,a.macros),a.w.ca(a.aa),a.w.subscribe("w",function(){return a.S("y")}))};
Ona=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.B=new nZ(a.api,a.ra),g.B(a,a.B),a.B.init(RT("ad-mute-confirm-dialog"),c,a.macros),a.B.ca(a.aa),a.B.subscribe("x",function(){return a.S("y")}))};
Pna=function(a){a.u&&a.u.ka("click",a.Wz,a);g.Ep(a.I,"click",function(){return a.Wz()})};
pZ=function(a,b,c,d){jZ.call(this,a,b,void 0===d?!0:d,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.A=c;this.hide()};
Qna=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new oZ(a.api,a.ra,a.A),g.B(a,a.u),a.u.init(RT("ad-info-dialog"),b,c),a.u.ca(a.A),a.u.subscribe("z",function(){return a.S("B")}),a.u.subscribe("y",function(){return a.S("A")}))};
Rna=function(a,b,c){null==a.button?g.M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.w&&g.J(a.w.element,"ytp-ad-info-hover-text-long"):(Qna(a,b,c),a.w&&g.J(a.w.element,"ytp-ad-info-hover-text-short"),a.button.ka("click",function(){a.u&&!a.u.Ha()&&(a.u.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
qZ=function(a,b){Z.call(this,a,b,{D:"div",Y:["ytp-ad-player-overlay-flyout-cta","ytp-ad-overlay-as-flyout-cta"],J:[{D:"div",Y:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{D:"div",H:"ytp-flyout-cta-icon-container"},{D:"div",H:"ytp-flyout-cta-body",J:[{D:"div",H:"ytp-flyout-cta-text-container",J:[{D:"div",H:"ytp-flyout-cta-headline-container"},{D:"div",H:"ytp-flyout-cta-description-container"},{D:"div",H:"ytp-flyout-cta-url-container"}]},{D:"div",H:"ytp-flyout-cta-action-container",J:[{D:"div",
H:"ytp-flyout-cta-ad-controls-container",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{O:{title:"Close"},D:"button",H:"ytp-ad-overlay-close-button",J:[UY(Sna)]}]}]},{D:"div",H:"ytp-ad-overlay-as-flyout-cta-action-button-container"}]}]}]}]},"invideo-overlay-as-cta");var c=this;(this.V="tall"===g.At(this.api.N().experiments,"render_enhanced_overlays_as_ctas_for_desktop_style"))&&g.J(this.element,"ytp-flyout-cta-body-tall");this.A=null;this.u=
g.ce("ytp-flyout-cta",this.element);this.ga=new TY(this.api,this.ra,"ytp-flyout-cta-icon");g.B(this,this.ga);this.ga.ca(this.o["ytp-flyout-cta-icon-container"]);this.aa=new $Y(this.api,this.ra,"ytp-flyout-cta-headline");g.B(this,this.aa);this.aa.ca(this.o["ytp-flyout-cta-headline-container"]);this.C=null;this.V&&(this.C=new $Y(this.api,this.ra,"ytp-flyout-cta-description"),g.B(this,this.C),this.C.ca(this.o["ytp-flyout-cta-description-container"]));this.oa=new $Y(this.api,this.ra,"ytp-flyout-cta-description");
g.B(this,this.oa);this.oa.ca(this.o["ytp-flyout-cta-url-container"]);this.w=new VY(this.api,this.ra,["ytp-flyout-cta-action-button"]);g.B(this,this.w);this.w.ca(this.o["ytp-ad-overlay-as-flyout-cta-action-button-container"]);this.Ka=g.ce("ytp-flyout-cta-ad-controls-container",this.element);this.M=this.I=null;this.Z=!1;this.B=null;this.Ma=g.ce("ytp-ad-overlay-close-container",this.u);this.Aa=new g.I(function(){g.Dn(c.u,"ytp-flyout-cta-inactive")},1E3);
this.ma=0;this.Ea=[];this.hide()};
Una=function(a,b,c){if(!b.image||!b.image.thumbnail)return g.M(Error("InvideoOverlayAdRenderer has no image.")),!1;var d=DX(b.title);if(!b.title||g.ec(d))return g.M(Error("InvideoOverlayAdRenderer has no title AdText.")),!1;if(a.V&&!b.description)return g.M(Error("Tall InvideoOverlayAdRenderer has no description AdText.")),!1;if(!b.displayUrl)return g.M(Error("InvideoOverlayAdRenderer has no displayUrl AdText.")),!1;d=b.navigationEndpoint||b.imageNavigationEndpoint;if(!d)return g.M(Error("InvideoOverlayAdRenderer has no valid navigation endpoint.")),
!1;a.Ea=g.gb([d].concat(a.A&&a.A.onClickCommands||[]));a.B=g.ce("ytp-ad-overlay-ad-info-button-container",a.u);Tna(a,c);a.ga.init(RT("ad-image"),b.image,a.macros);a.aa.init(RT("ad-text"),b.title,a.macros);a.V&&a.C&&b.description&&a.C.init(RT("ad-text"),b.description,a.macros);a.oa.init(RT("ad-text"),b.displayUrl,a.macros);a.w.init(RT("button"),{text:{simpleText:"VISIT SITE"}},a.macros);a.L(a.u,"mouseover",function(){a.ma++});
a.L(a.Ma,"click",a.AJ);FX(a,a.u,b.trackingParams||null);GX(a,a.u,!0);return!0};
Tna=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.ce("video-ads ytp-ad-module")||null;if(null==d)g.M(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.I=new g.Ru({D:"div",H:"ytp-ad-overlay-ad-info-dialog-container"}),g.B(a,a.I),a.I.ca(d),d=new pZ(a.api,a.ra,a.I.element,!1),g.B(a,d),d.init(RT("ad-info-hover-text-button"),c,a.macros),a.B){d.ca(a.B,
0);d.subscribe("B",a.yJ,a);d.subscribe("A",a.BJ,a);a.L(a.B,"click",a.zJ);var e=g.ce("ytp-ad-button",d.element);a.L(e,"click",a.xJ);a.M=d;c.hoverText&&(c=g.T(c.hoverText),ee(a.M.element,{title:c}))}else g.M(Error("Ad info button container within overlay ad was not present."))}}else g.Go(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Vna=function(a){return a.A&&a.A.closeButton&&a.A.closeButton.buttonRenderer&&(a=a.A.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Wna=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
rZ=function(a){return g.P(a.N().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
sZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-overlay-slot",J:[{D:"div",H:"ytp-ad-overlay-container"}]},"invideo-overlay");this.I=[];this.B=this.ma=null;var c=this.o["ytp-ad-overlay-container"];this.aa=new dZ(c,45E3,6E3,.3,.4);g.B(this,this.aa);rZ(this.api)||(this.V=new g.I(this.clear,45E3,this),g.B(this,this.V));this.A=Xna(this);g.B(this,this.A);this.A.ca(c);this.w=Yna(this);g.B(this,this.w);this.w.ca(c);this.u=Zna(this);g.B(this,this.u);this.u.ca(c);this.oa=this.Z=null;this.ga=!1;this.C=null;
this.M=0;this.hide()};
Xna=function(a){var b=new g.Ru({D:"div",H:"ytp-ad-text-overlay",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[UY(tZ)]}]},{D:"div",H:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",H:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",Y:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],W:"{{displayUrl}}"}]});a.L(b.o["ytp-ad-overlay-title"],"click",function(c){return uZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-link"],"click",function(c){return uZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.Rt);b.hide();return b};
Yna=function(a){var b=new g.Ru({D:"div",Y:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[UY(tZ)]}]},{D:"div",H:"ytp-ad-overlay-text-image",J:[{D:"img",O:{src:"{{imageUrl}}"}}]},{D:"div",H:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",H:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",Y:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
W:"{{displayUrl}}"}]});a.L(b.o["ytp-ad-overlay-title"],"click",function(c){return uZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-link"],"click",function(c){return uZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.Rt);a.L(b.o["ytp-ad-overlay-text-image"],"click",a.oN);b.hide();return b};
Zna=function(a){var b=new g.Ru({D:"div",H:"ytp-ad-image-overlay",J:[{D:"div",H:"ytp-ad-overlay-ad-info-button-container"},{D:"div",H:"ytp-ad-overlay-close-container",J:[{D:"button",H:"ytp-ad-overlay-close-button",J:[UY(tZ)]}]},{D:"div",H:"ytp-ad-overlay-image",J:[{D:"img",O:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.L(b.o["ytp-ad-overlay-image"],"click",function(c){return uZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.Rt);b.hide();return b};
vZ=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.ce("video-ads ytp-ad-module")||null;null==d?g.M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.Z=new g.Ru({D:"div",H:"ytp-ad-overlay-ad-info-dialog-container"}),g.B(a,a.Z),a.Z.ca(d),d=new pZ(a.api,a.ra,a.Z.element,!1),g.B(a,d),d.init(RT("ad-info-hover-text-button"),c,a.macros),a.C?(d.ca(a.C,0),
d.subscribe("B",a.DJ,a),d.subscribe("A",a.GJ,a),a.L(a.C,"click",a.EJ),c=g.ce("ytp-ad-button",d.element),a.L(c,"click",a.CJ),a.oa=d):g.M(Error("Ad info button container within overlay ad was not present.")))}}else g.Go(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
$na=function(a){return a.B&&a.B.closeButton&&a.B.closeButton.buttonRenderer&&(a=a.B.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
aoa=function(a,b){if(wZ(a,xZ)||a.api.app.I.o)return!1;var c=DX(b.title),d=DX(b.description);if(g.ec(c)||g.ec(d))return!1;FX(a,a.A.element,b.trackingParams||null);a.A.la("title",DX(b.title));a.A.la("description",DX(b.description));a.A.la("displayUrl",DX(b.displayUrl));b.navigationEndpoint&&ib(a.I,b.navigationEndpoint);a.A.show();a.aa.start();GX(a,a.A.element,!0);rZ(a.api)||(a.L(a.api,"resize",function(){wZ(a,xZ)&&a.clear()}),a.L(a.api,"minimized",a.FJ));
a.L(a.A.element,"mouseover",function(){a.M++});
return!0};
boa=function(a,b){if(wZ(a,xZ)||a.api.app.I.o)return!1;var c=DX(b.title),d=DX(b.description);if(g.ec(c)||g.ec(d))return!1;FX(a,a.w.element,b.trackingParams||null);a.w.la("title",DX(b.title));a.w.la("description",DX(b.description));a.w.la("displayUrl",DX(b.displayUrl));a.w.la("imageUrl",EX(b.image));b.navigationEndpoint&&ib(a.I,b.navigationEndpoint);a.ma=b.imageNavigationEndpoint||null;a.w.show();a.aa.start();GX(a,a.w.element,!0);rZ(a.api)||a.L(a.api,"resize",function(){wZ(a,xZ)&&a.clear()});
a.L(a.w.element,"mouseover",function(){a.M++});
return!0};
coa=function(a,b){if(a.api.app.I.o)return!1;var c=Sma(b.image),d=c;c.width<xZ.width&&(d=xZ);if(0==c.width||0==c.height||wZ(a,d))return!1;FX(a,a.u.element,b.trackingParams||null);a.u.la("imageUrl",EX(b.image));a.u.la("width",c.width);a.u.la("height",c.height);b.navigationEndpoint&&ib(a.I,b.navigationEndpoint);g.sh(a.u.o["ytp-ad-image-overlay"],"max-width",c.width+"px");a.u.show();GX(a,a.u.element,!0);rZ(a.api)||(a.V.start(),a.L(a.api,"resize",function(){wZ(a,c)&&a.clear()}));
a.L(a.u.element,"mouseover",function(){a.M++;rZ(a.api)?a.api.S("aduxmouseover","invideo-overlay"):a.V.stop()});
a.L(a.u.element,"mouseout",function(){rZ(a.api)?a.api.S("aduxmouseout","invideo-overlay"):a.V.start()});
return!0};
wZ=function(a,b){var c=g.QK(a.api).getPlayerSize();return b.width>c.width||b.height>c.height};
uZ=function(a,b,c){var d=g.Pb(a.macros),e=g.Nh(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ih(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.M.toString()}};
a.I.forEach(function(k){return a.ra.executeCommand(k,d)});
a.api.pauseVideo()};
doa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
yZ=function(a,b,c){WY.call(this,a,b,{D:"div",H:"ytp-ad-message-overlay",J:[{D:"div",H:"ytp-ad-message-slot"}]},"ad-message",c);var d=this;this.V=-1;this.aa=this.o["ytp-ad-message-slot"];this.A=new g.Ru({D:"span",H:"ytp-ad-message-container"});this.A.ca(this.aa);g.B(this,this.A);this.w=new $Y(this.api,this.ra,"ytp-ad-message-text");g.B(this,this.w);this.w.ca(this.A.element);this.I=new g.lN(this.A,400,!1,100,function(){return d.hide()});
g.B(this,this.I);this.C=0;this.M=!1;this.hide()};
eoa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
zZ=function(a,b,c){WY.call(this,a,b,{D:"div",H:"ytp-ad-skip-ad-slot"},"skip-ad",c);this.I=!1;this.C=0;this.A=this.w=null;this.hide()};
AZ=function(a,b){if(!a.I)if(a.I=!0,a.w&&(b?a.w.M.hide():a.w.hide()),b){var c=a.A;c.ma.show();c.show()}else a.A.show()};
BZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-persisting-overlay",J:[{D:"div",H:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay");this.w=this.o["ytp-ad-persisting-overlay-skip"];this.u=c;g.B(this,this.u);this.hide()};
CZ=function(a,b,c){WY.call(this,a,b,{D:"span",H:"ytp-ad-duration-remaining"},"ad-duration-remaining",c);this.w=null;this.hide()};
DZ=function(a,b){$Y.call(this,a,b,"ytp-video-ad-top-bar-title","ad-title")};
EZ=function(a,b,c){WY.call(this,a,b,{D:"div",Y:["ytp-flyout-cta","ytp-flyout-cta-inactive"],J:[{D:"div",H:"ytp-flyout-cta-icon-container"},{D:"div",H:"ytp-flyout-cta-body",J:[{D:"div",H:"ytp-flyout-cta-text-container",J:[{D:"div",H:"ytp-flyout-cta-headline-container"},{D:"div",H:"ytp-flyout-cta-description-container"}]},{D:"div",H:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c);this.I=new TY(this.api,this.ra,"ytp-flyout-cta-icon");g.B(this,this.I);this.I.ca(this.o["ytp-flyout-cta-icon-container"]);
this.C=new $Y(this.api,this.ra,"ytp-flyout-cta-headline");g.B(this,this.C);this.C.ca(this.o["ytp-flyout-cta-headline-container"]);this.A=new $Y(this.api,this.ra,"ytp-flyout-cta-description");g.B(this,this.A);this.A.ca(this.o["ytp-flyout-cta-description-container"]);this.w=new VY(this.api,this.ra,["ytp-flyout-cta-action-button"]);g.B(this,this.w);this.w.ca(this.o["ytp-flyout-cta-action-button-container"]);this.M=null;this.V=0;this.hide()};
FZ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"toggle-button":d;var e=RT("ytp-ad-toggle-button-input");Z.call(this,a,b,{D:"div",Y:["ytp-ad-toggle-button"].concat(c),J:[{D:"label",H:"ytp-ad-toggle-button-label",O:{"for":e},J:[{D:"span",H:"ytp-ad-toggle-button-icon",O:{role:"button","aria-label":"{{tooltipText}}"},J:[{D:"span",H:"ytp-ad-toggle-button-untoggled-icon",W:"{{untoggledIconTemplateSpec}}"},{D:"span",H:"ytp-ad-toggle-button-toggled-icon",W:"{{toggledIconTemplateSpec}}"}]},{D:"input",
H:"ytp-ad-toggle-button-input",O:{id:e,type:"checkbox"}},{D:"span",H:"ytp-ad-toggle-button-text",W:"{{buttonText}}"},{D:"span",H:"ytp-ad-toggle-button-tooltip",W:"{{tooltipText}}"}]}]},d);this.A=this.o["ytp-ad-toggle-button"];this.u=this.o["ytp-ad-toggle-button-input"];this.M=this.o["ytp-ad-toggle-button-icon"];this.C=this.o["ytp-ad-toggle-button-untoggled-icon"];this.B=this.o["ytp-ad-toggle-button-toggled-icon"];this.Z=this.o["ytp-ad-toggle-button-text"];this.w=null;this.I=!1;this.V=null;this.hide()};
GZ=function(a){a.I&&(a.isToggled()?(g.Oh(a.C,!1),g.Oh(a.B,!0)):(g.Oh(a.C,!0),g.Oh(a.B,!1)))};
foa=function(a,b){var c=null;a.w&&(c=(b?[a.w.defaultServiceEndpoint,a.w.defaultNavigationEndpoint]:[a.w.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
HZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",void 0===c?null:c);var d=this;this.u=null;this.A=new FZ(this.api,this.ra,["ytp-ad-instream-user-sentiment-like-button"]);g.B(this,this.A);this.A.ca(this.element);this.w=new FZ(this.api,this.ra,["ytp-ad-instream-user-sentiment-dislike-button"]);g.B(this,this.w);this.w.ca(this.element);this.B=new g.lN(this,400,!1,500,function(){return d.hide()});
g.B(this,this.B);this.C=null;this.hide()};
goa=function(a,b){a.A.init(RT("toggle-button"),a.u.likeButton.toggleButtonRenderer,b);a.w.init(RT("toggle-button"),a.u.dislikeButton.toggleButtonRenderer,b);a.C=a.L(a.element,"change",a.Uz)};
IZ=function(a,b){VY.call(this,a,b,["ytp-ad-visit-advertiser-button"],"visit-advertiser");this.A=null};
JZ=function(a,b,c){c=void 0===c?!1:c;Z.call(this,a,b,{D:"span",H:"ytp-ad-simple-ad-badge"},"simple-ad-badge");this.u=c;this.hide()};
KZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-player-overlay",J:[{D:"div",H:"ytp-ad-player-overlay-flyout-cta"},{D:"div",H:"ytp-ad-player-overlay-instream-info"},{D:"div",H:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",H:"ytp-ad-player-overlay-progress-bar"},{D:"div",H:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay");this.C=this.o["ytp-ad-player-overlay-flyout-cta"];this.w=this.o["ytp-ad-player-overlay-instream-info"];this.A=null;if(hoa(this)){a=g.ne("div");g.J(a,"ytp-ad-player-overlay-top-bar-gradients");
b=this.w;b.parentNode&&b.parentNode.insertBefore(a,b);if((b=this.api.getVideoData(2))&&b.isListed&&b.title){var d=new DZ(this.api,this.ra);d.ca(a);d.init(RT("ad-title"),{text:b.title},this.macros);g.B(this,d)}this.A=a}this.B=this.o["ytp-ad-player-overlay-skip-or-preview"];this.M=this.o["ytp-ad-player-overlay-progress-bar"];this.I=this.o["ytp-ad-player-overlay-instream-user-sentiment"];this.u=c;g.B(this,this.u);this.hide()};
hoa=function(a){a=a.api.N();return mz(a)&&a.o};
LZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-answer"},"survey-answer");this.w=this.o["ytp-ad-survey-answer"];this.u=null;this.A="";this.hide()};
MZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above");this.w=this.o["ytp-ad-survey-none-of-the-above"];this.u=null;this.hide()};
NZ=function(a,b){VY.call(this,a,b,["ytp-ad-survey-submit-button"],"survey-submit")};
OZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-player-overlay",J:[{D:"div",H:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",H:"ytp-ad-survey-player-overlay-skip-preview-submit",J:[{D:"div",H:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",H:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",H:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay");this.C=this.o["ytp-ad-survey-player-overlay-instream-info"];this.w={};this.I=this.o["ytp-ad-survey-player-overlay-skip-or-preview"];
this.u=null;this.M=this.o["ytp-ad-survey-player-overlay-submit"];this.A=null;this.B=c;g.B(this,this.B);this.hide()};
PZ=function(a,b,c){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-question",J:[{D:"div",Y:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Y:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Y:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",H:"ytp-ad-survey-question-background"}]},c);this.question=this.o["ytp-ad-survey-question"];this.aa=this.o["ytp-ad-survey-question-background"];this.V=this.o["ytp-ad-survey-question-text"];
this.answers=this.o["ytp-ad-survey-answers"];this.M=this.o["ytp-ad-survey-question-player-overlay"];this.C=null;this.A=[];this.u=null;this.B=(0,g.H)()};
ioa=function(a,b,c){var d=new LZ(a.api,a.ra);d.ca(a.answers);d.init(RT("survey-answer"),b,c);a.A.push(d)};
koa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&SY(c)||"",g.ec(c)?g.Go(Error("Found ThumbnailDetails without valid image URL")):g.sh(a.aa,"backgroundImage","url("+c+")"));joa(a,b)}else g.M(Error("addCommonComponents() needs to be called before starting countdown."))};
joa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=(0,g.H)();a.u=new fZ(b.durationMilliseconds,a.ra);g.B(a,a.u);if(b.timeoutCommands){var c=b.timeoutCommands;a.u.subscribe("a",function(){c.forEach(function(e){return a.ra.executeCommand(e,a.macros)})})}if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new OZ(a.api,a.ra,a.u);
d.ca(a.M);d.init(RT("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.B(a,d);a.PB()}catch(e){g.M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new mQ(a.api,a.u),d.ca(a.M),g.B(a,d)):g.M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
loa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(0,g.H)()-a.B})};
QZ=function(a,b){PZ.call(this,a,b,"survey-question-multi-select");this.w=null;this.Z=[];this.I=null;this.hide()};
moa=function(a,b,c){a.w=new MZ(a.api,a.ra);a.w.ca(a.answers);a.w.init(RT("survey-none-of-the-above"),b,c)};
noa=function(a){a.A.forEach(function(b){b.u.toggleButton(!1)});
RZ(a,!0)};
RZ=function(a,b){var c=a.C,d=ooa(a),e=b;e=void 0===e?!1:e;c.u&&(d?c.u.hide():c.u.show(),e&&c.u instanceof zZ&&!c.u.I&&AZ(c.u,!1));c.A&&(d?c.A.show():c.A.hide())};
ooa=function(a){return a.A.some(function(b){return b.u.isToggled()})||a.w.u.isToggled()};
SZ=function(a,b){PZ.call(this,a,b,"survey-question-single-select");this.hide()};
TZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey",J:[{D:"div",H:"ytp-ad-survey-questions"}]},"survey");this.u=this.o["ytp-ad-survey-questions"];this.w=[];this.hide()};
UZ=function(a,b){Z.call(this,a,b,{D:"div",H:"ytp-ad-survey-interstitial",J:[{D:"div",H:"ytp-ad-survey-interstitial-contents",J:[{D:"div",H:"ytp-ad-survey-interstitial-logo",J:[{D:"div",H:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",H:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial");this.B=this.o["ytp-ad-survey-interstitial"];this.C=this.o["ytp-ad-survey-interstitial-contents"];this.u=null;this.M=this.o["ytp-ad-survey-interstitial-text"];this.I=this.o["ytp-ad-survey-interstitial-logo-image"];
this.A=null;this.w=new g.lN(this,500,!1,300);g.B(this,this.w)};
poa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.B;b=a.u.element.contains(b.target);if(d||b)a.w.hide(),d&&c.forEach(function(e){return a.ra.executeCommand(e,a.macros)})};
qoa=function(a,b){var c=b&&SY(b)||"";if(g.ec(c))g.Go(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.he&&10>document.documentMode)d=new zc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.oe("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=dea(e.style)}c=Gaa(d,Fc({"background-image":'url("'+c+'")'}));a.style.cssText=Ac(c)}};
roa=function(a){var b=g.ce("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
VZ=function(a,b){Z.call(this,a,b,{D:"div",H:"iv-website-companion",J:[{D:"div",H:"iv-website-companion-block",J:[{D:"div",H:"iv-website-companion-icon"},{D:"div",H:"iv-website-companion-text",J:[{D:"div",H:"iv-website-companion-desc",J:[{D:"span",Y:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"}]}]}]}]},"action-companion");this.Z=this.o["iv-website-companion"];this.A=new TY(this.api,this.ra,"iv-website-companion-banner");g.B(this,this.A);this.A.ca(this.Z,0);this.ga=new TY(this.api,this.ra);g.B(this,
this.A);this.ga.ca(this.o["iv-website-companion-icon"]);this.M=new $Y(this.api,this.ra,"iv-website-companion-header");g.B(this,this.M);this.M.ca(this.o["iv-website-companion-text"],0);this.C=new $Y(this.api,this.ra,"iv-website-companion-domain");g.B(this,this.C);this.C.ca(this.o["iv-website-companion-desc"]);this.w=new VY(this.api,this.ra,["iv-website-companion-action","yt-uix-button-size-default","yt-uix-button-primary"]);g.B(this,this.w);this.w.ca(this.o["iv-website-companion-block"]);this.B=new WX(this.api,
this.ra);g.B(this,this.B);this.B.ca(this.Z,0);this.V=null;this.aa=[];this.I=new g.Gr;g.B(this,this.I);this.ma=new iU(3E4);this.u=null;this.hide()};
WZ=function(){g.R.call(this,{D:"div",H:"ad-carousel",J:[{D:"div",H:"ad-carousel-clip",J:[{D:"ul",Y:["ad-carousel-list","ad-carousel-list-animation"]}]}]});var a=this.o["ad-carousel"];this.B=new g.R({D:"button",Y:["ad-carousel-nav-button","ad-carousel-nav-prev"],O:{type:"button",onclick:"return false;"},J:[{D:"span",Y:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],O:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.B(this,this.B);this.B.ka("click",this.G,this);this.B.ca(a);this.A=new g.R({D:"button",
Y:["ad-carousel-nav-button","ad-carousel-nav-next"],O:{type:"button",onclick:"return false;"},J:[{D:"span",Y:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],O:{"data-tooltip-text":"Next",title:"Next"}}]});g.B(this,this.A);this.A.ka("click",this.F,this);this.A.ca(a);this.C=this.o["ad-carousel-list"];this.w=0;this.u=[]};
YZ=function(a){a.C&&g.sh(a.C,"left",(2>a.u.length?0:-a.w*a.u[1].element.clientWidth)+"px");g.Qu(a.B,0<a.w);g.Qu(a.A,a.w<a.u.length-XZ(a))};
XZ=function(a){return 2>a.u.length?1:Math.round((a.element.clientWidth-a.u[0].element.clientWidth)/a.u[1].element.clientWidth)+1};
ZZ=function(){NX.call(this,!0);this.o=new WZ};
$Z=function(){NX.call(this,!1);this.u=new g.R({D:"div",H:"iv-btp-card",J:[{D:"a",H:"iv-btp-card-content",J:[{D:"div",W:"{{cards}}"}]}]});g.B(this,this.u);var a={D:"div",H:"iv-btp-card-merchant",J:[{D:"span",H:"iv-btp-card-merchant-text",W:"{{merchant}}"}]};this.A=new g.Mu({D:"div",Y:["iv-btp-small-card","yt-uix-hovercard-target"],O:{"data-position":"bottomright","data-orientation":"vertical"},J:[{D:"div",Y:["iv-btp-card-image","yt-uix-hovercard-anchor"],W:"{{image}}"},{D:"div",H:"iv-btp-card-info",
J:[{D:"span",H:"iv-btp-card-action",W:"{{price}}"},a]},{D:"div",Y:["yt-uix-hovercard-content","iv-btp-hovercard"],W:"{{hovercard}}"}]});g.B(this,this.A);this.o=new g.Mu({D:"div",H:"iv-btp-large-card",J:[{D:"div",H:"iv-btp-card-image",J:[{D:"span"},{D:"div",H:"iv-btp-card-image-aligned",W:"{{image}}"}]},{D:"div",H:"iv-btp-card-info",J:[{D:"div",H:"iv-btp-card-text-box",J:[{D:"div",H:"iv-btp-card-text-valign",J:[{D:"div",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],W:"{{headline}}"}]}]},
{D:"span",H:"iv-btp-card-action",W:"{{price}}"},a,{D:"div",W:"{{review}}"}]}]});g.B(this,this.o);this.w=new g.Mu({D:"div",H:"iv-btp-hovercard-text-box",J:[{D:"a",J:[{D:"div",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],W:"{{headline}}"}]},{D:"div",H:"iv-btp-hovercard-info",J:[{D:"span",H:"iv-btp-hovercard-action",W:"{{price}}"},a]},{D:"div",W:"{{review}}"}]});g.B(this,this.w);this.B=new g.Mu({D:"div",H:"iv-btp-card-review",J:[{D:"div",H:"iv-btp-card-rating",J:[{D:"span",H:"iv-btp-card-rating-bg",
J:[{D:"span",H:"iv-btp-card-rating-fg"}]}]},{D:"span",H:"iv-btp-card-reviews",W:"{{reviewText}}"}]});g.B(this,this.B);this.A.la("hovercard",this.w);this.u.la("cards",[this.A,this.o]);soa(this)};
soa=function(a){a.u.ka("click",function(){a.dispatchEvent({type:"offerclick"})});
for(var b=g.q((a.u.element||document).getElementsByTagName("A")),c=b.next();!c.done;c=b.next())a.u.L(c.value,"click",function(){a.dispatchEvent({type:"offernavclick"})})};
a_=function(a,b,c){c=c?MX(c):null;a.la(b,c)};
b_=function(a,b){OX.call(this,a,b,function(){return new toa.Cq});
this.u=null;uoa(this)};
uoa=function(a){for(var b=g.q(Object.values(voa)),c=b.next();!c.done;c=b.next())a.view.addEventListener(c.value,function(d){return a.onClick(d)})};
c_=function(){g.A.call(this);this.w=this.A=this.u=this.B=this.o=null};
xoa=function(a,b){return woa(a).then(function(c){c&&g.Ma(c.promotionShelfShow)&&c.promotionShelfShow(b)})};
yoa=function(a){woa(a).then(function(b){b&&g.Ma(b.promotionShelfClear)&&b.promotionShelfClear()})};
zoa=function(){return g.w("yt.www.watch.ads")};
woa=function(a){if(a.ea())throw Error("Object is disposed");if(!a.o){var b=zoa();a.o=b?Df(b):(new zf(function(c){a.B=qea(c)})).then(zoa)}return a.o};
d_=function(){NX.call(this,!0);this.o=new g.R({D:"div",H:"iv-btp-companion",J:[{D:"div",H:"iv-btp-block-clicks"},{D:"div",H:"iv-btp-attribution",J:[{D:"span",H:"iv-btp-title",W:"{{shopText}}"},{D:"div",H:"ad-info-container",J:[{D:"span",H:"iv-btp-sponsored",W:"{{sponsoredText}}"},{D:"button",H:"ad-info-icon"}]}]}]});g.B(this,this.o);this.w=this.o.o["iv-btp-block-clicks"];this.u=new c_;g.B(this,this.u);this.A=xoa(this.u,this.o.element);Aoa(this)};
Aoa=function(a){a.o.ka("click",function(b){g.xe(a.o.o["ad-info-icon"],b.target)&&a.dispatchEvent({type:"adinfoclick"})})};
f_=function(a,b){OX.call(this,a,b,function(){return new e_.HD});
this.M=new g.Gr(this);g.B(this,this.M);this.F=[];this.u=null;this.w=new e_.yq;g.B(this,this.w);this.view.append(this.w);this.C=new e_.gD(a,b,new zX(this.view.o.o["ad-info-icon"]));g.B(this,this.C);this.view.append(this.C.view);Boa(this)};
Boa=function(a){a.M.L(a.o,"appresize",a.U);a.M.L(a.view,"adinfoclick",function(b){return a.onClick(b)})};
Coa=function(a){var b=a.view;g.Oh(b.w,!0);Hf([a.u,Vf(1E3)]).then(function(){g.Oh(b.w,!1)})};
g_=function(){NX.call(this,!0);var a=this;this.A=this.u=0;this.o=new g.R({D:"div",H:"iv-cards-slider",J:[{D:"div",H:"iv-cards-slider-body",J:[{D:"ul",H:"iv-cards-slider-list"}]},{D:"button",Y:["iv-cards-slider-button","iv-cards-slider-prev"],O:{type:"button",onclick:";return false;"},J:[{D:"span",Y:["iv-cards-slider-prev-icon","yt-sprite"]}]},{D:"button",Y:["iv-cards-slider-button","iv-cards-slider-next"],O:{type:"button",onclick:";return false;"},J:[{D:"span",Y:["iv-cards-slider-next-icon","yt-sprite"]}]}]});
this.F=g.ce("iv-cards-slider-list",this.o.element);if(this.w=g.ce("iv-cards-slider-prev",this.o.element))this.o.L(this.w,"click",function(){a.dispatchEvent({type:"prevbuttonclick"})}),g.Oh(this.w,!1);
(this.B=g.ce("iv-cards-slider-next",this.o.element))&&this.o.L(this.B,"click",function(){a.dispatchEvent({type:"nextbuttonclick"})});
g.B(this,this.o)};
h_=function(a){a.F.style.left=125*-a.u+"px";a.w&&g.Oh(a.w,0<a.u);a.B&&g.Oh(a.B,a.u<a.A-3)};
i_=function(){NX.call(this,!0);this.o=new g.R({D:"div",H:"iv-cards-companion",J:[{D:"div",H:"iv-cards-attribution",J:[{D:"span",Y:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"},{D:"a",H:"ad-companion-clickthrough",O:{target:"_blank"},W:"{{shopText}}"}]},{D:"div",W:"{{content}}"}]});g.B(this,this.o);this.u=new iU(3E4);this.w=this.u.showCompanion(this.o.element,300,250);Doa(this)};
Doa=function(a){a.o.ka("click",function(){a.dispatchEvent({type:"companionclick"})});
var b=g.ce("ad-companion-clickthrough",a.o.element);b&&a.o.L(b,"click",function(){a.dispatchEvent({type:"shoptextclick"})})};
j_=function(){NX.call(this,!1);this.o=new g.R({D:"li",H:"iv-cards-slider-item",J:[{D:"div",H:"iv-cards-slider-unit",J:[{D:"a",J:[{D:"div",H:"iv-cards-slider-image",W:"{{image}}"},{D:"span",Y:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-cards-slider-text"],W:"{{headline}}"},{D:"span",H:"iv-cards-slider-action",W:"{{price}}"}]}]}]});g.B(this,this.o);Eoa(this)};
Eoa=function(a){a.o.ka("click",function(){a.dispatchEvent({type:"offerclick"})})};
k_=function(a,b){OX.call(this,a,b,function(){return new Foa.Cq});
var c=this;this.u=null;this.view.addEventListener("offerclick",function(){return c.onClick()})};
m_=function(a,b){OX.call(this,a,b,function(){return new l_.oD});
this.V=new g.Gr(this);g.B(this,this.V);this.U=[];this.M=null;this.C=[];this.w=null;this.u=new l_.yq;g.B(this,this.u);this.view.append(this.u);this.F=new WX(a,b);g.B(this,this.F);g.se(this.view.ua(),this.F.element,0);Goa(this)};
Goa=function(a){function b(c){return a.onClick(c)}
a.view.addEventListener("shoptextclick",b);a.view.addEventListener("companionclick",b);a.u.addEventListener("nextbuttonclick",b);a.u.addEventListener("prevbuttonclick",b)};
Hoa=function(a,b,c){switch(a){case "invideo-overlay":a=new sZ(b,c);break;case "invideo-overlay-as-cta":a=new qZ(b,c);break;case "persisting-overlay":a=new BZ(b,c,new nQ(b));break;case "player-overlay":a=new KZ(b,c,new nQ(b));break;case "pla-shelf":a=new f_(b,c);break;case "shopping-companion":a=new m_(b,c);break;case "survey":a=new TZ(b,c);break;case "ad-action-interstitial":a=new gZ(b,c);break;case "action-companion":a=new VZ(b,c);break;case "ad-text-interstitial":a=new iZ(b,c);break;case "survey-interstitial":a=
new UZ(b,c);break;case "ad-choice-interstitial":a=new hZ(b,c);break;case "ad-message":a=new yZ(b,c,new nQ(b,1));break;default:return null}return a};
n_=function(a){g.Gr.call(this);this.o=a;this.L(this.o,"onAdUxUpdate",this.F)};
o_=function(a,b){n_.call(this,a);this.A=b;this.u=new Map;g.B(this,KX())};
Ioa=function(a,b){ST.call(this,"image-companion",a,b)};
p_=function(a){n_.call(this,a)};
q_=function(a,b){n_.call(this,a);this.A=a;this.C=b;this.u={};var c=new g.R({D:"div",Y:["video-ads","ytp-ad-module"]});g.B(this,c);Jy&&g.J(c.element,"ytp-ads-tiny-mode");this.B=new zX(c.element);g.B(this,this.B);g.iL(this.A,c.element,4);g.B(this,KX())};
Joa=function(a,b){var c=a.u;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Go(Error("Component not found for element id: "+b.id));return c||null};
r_=function(a,b,c,d){d=void 0===d?{}:d;a=a instanceof Error?a:new Sq(a);d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.ab:"");c&&(d.layout=c?"layout: "+c.layoutType:"");Sea(a,d);g.Tq(a)};
s_=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Ge(this,function(){g.He(b.o);b.o=null})};
t_=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ja.o.has(c.value))return!1;return!0};
Koa=function(a){switch(a){case 0:return!0;case 1:return!1;case 2:return!1;default:return!1}};
u_=function(a){var b=new Map;a.forEach(function(c){b.set(c.o(),c)});
this.o=b};
v_=function(a,b){var c=a.o.get(b);if(void 0!==c)return c.get()};
w_=function(a){return Array.from(a.o.keys())};
x_=function(a){g.A.call(this);this.Kb=a;this.o=.1>Math.random();this.eventCount=0};
Moa=function(a){var b;return(null===(b=Loa.get(a))||void 0===b?void 0:b.Tp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
z_=function(a,b,c){y_(a,b,void 0,void 0,c)};
A_=function(a,b,c,d){y_(a,b,void 0,void 0,c,d?d:void 0)};
Noa=function(a,b,c,d){g.P(a.Kb.K.N().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&y_(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,b,d?d:void 0,c)};
C_=function(a,b,c,d,e,f,k,l){a=a.o||Ooa(a.Kb);return{adClientDataEntry:{slotData:B_(a,{slotId:b,ab:c,wb:d,ld:e,Jg:[],Ig:[],Ja:new u_([])}),layoutData:Poa(a,{layoutId:f,layoutType:k,wb:l,Ae:[],We:[],Ve:[],jf:new Map,Ja:new u_([]),rh:{}})}}};
y_=function(a,b,c,d,e,f,k){if(g.P(a.Kb.K.N().experiments,"html5_enable_ads_client_monitoring_log")&&!g.P(a.Kb.K.N().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var l=a.o||Ooa(a.Kb);b={eventType:b,eventOrder:++a.eventCount};var m=g.Q(a.Kb.K.N().experiments,"html5_experiment_id_label");m=0<m?{html5ExperimentContext:{ytExperimentId:m}}:void 0;if(c||e||f||m){var n={};e&&(n.slotData=B_(l,e));f&&(n.layoutData=Poa(l,f));k&&(e={type:Qoa.get(k.trigger.triggerType)||
"TRIGGER_TYPE_UNSPECIFIED",category:Roa.get(k.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},n.triggerData=e);c&&(n.opportunityData=Soa(a,l,c,d));m&&(n.externalContext=m);b.adClientData=n}g.Rq("adsClientStateChange",{adsClientEvent:b})}};
B_=function(a,b){var c={type:Toa.get(b.ab)||"SLOT_TYPE_UNSPECIFIED",controlFlowManagerLayer:Uoa.get(b.wb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};if(a){c.debugData={slotId:b.slotId};c.debugData.entryTriggerData=[];for(var d=g.q(b.ld),e=d.next();!e.done;e=d.next()){e=e.value;var f={type:Qoa.get(e.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===e.triggerType&&(f.layoutIdEnteredTriggerData={enteredLayoutId:e.u});c.debugData.entryTriggerData.push(f)}}return c};
Poa=function(a,b){var c={type:Voa.get(b.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:Uoa.get(b.wb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Soa=function(a,b,c,d){c={opportunityType:Woa.get(c)||"OPPORTUNITY_TYPE_UNSPECIFIED"};b&&d&&(c.debugData={slots:(0,g.Cc)(d,function(e){return B_(b,e)},a)});
return c};
D_=function(a,b,c){g.A.call(this);this.u=b;this.Sa=c;this.o=a(this,this,this,this,this);g.B(this,this.o);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.B(this,b.value)};
Xoa=function(a,b,c){A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.u);for(b=a.next();!b.done;b=a.next())b.value.Xi(c)};
F_=function(a,b,c){if(null!=E_(a.o,b)){A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d.value.Hi(b,c)}};
Yoa=function(a,b,c){A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.u);for(var d=a.next();!d.done;d=a.next())d.value.Hi(b,c)};
I_=function(a,b,c,d){if(null!=E_(a.o,b)){A_(a.Sa,Moa(d),b,c);d=E_(a.o,b);null!=d.layout&&d.layout.layoutId===c.layoutId&&("rendering_stop_requested"!==d.o&&G_(d.slot,d.o,"onLayoutExited"),d.o="entered");d=g.q(a.u);for(var e=d.next();!e.done;e=d.next())e.value.Ii(b,c);(d=H_(a.o,b))&&c.layoutId===d.layoutId&&Zoa(a,b,!1)}};
$oa=function(a,b,c,d){A_(a.Sa,Moa(d),b,c);a=g.q(a.u);for(d=a.next();!d.done;d=a.next())d.value.Ii(b,c)};
K_=function(a,b,c,d){r_(d,b,c);J_(a,b,!0)};
M_=function(a,b){if(null!=E_(a.o,b)){E_(a.o,b).rj=!1;var c=L_,d=E_(a.o,b),e=[].concat(g.ea(d.F));bb(d.F);c(a,e)}};
L_=function(a,b){b.sort(function(k,l){return k.category===l.category?k.trigger.o.localeCompare(l.trigger.o):k.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=E_(a.o,e.slot))if(E_(a.o,e.slot).rj)E_(a.o,e.slot).F.push(e);else{Noa(a.Sa,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q((new Map([[0,"normal"],[1,"skipped"],[2,"muted"]])).entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&apa(a,e,f);(d=c.get(3))&&bpa(a,d);(d=c.get(4))&&cpa(a,d);(c=c.get(5))&&dpa(a,c)};
apa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&N_(a.o,d.slot)&&epa(a,d.slot,d.layout,c)};
bpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())J_(a,d.value.slot,!1)};
cpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(E_(a.o,d.slot).B){case "not_filled":var e=!0;break a;default:e=!1}e&&(z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.o.Gr(d.slot))}};
dpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);try{var e=a.o,f=d.slot,k=E_(e,f);if(!k)throw new O_("Got enter request for unknown slot");if(!k.w)throw new O_("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==k.o)throw new O_("Tried to enter a slot from stage: "+k.o);if(P_(k))throw new O_("Got enter request for already active slot");for(var l=g.q(Q_(e,f.ab).values()),m=l.next();!m.done;m=l.next()){var n=
m.value;if(k!==n&&P_(n))throw new O_("Trying to enter a slot when a slot of same type is already active. Its status: "+n.o);}}catch(z){r_(z,d.slot,d.layout);J_(a,d.slot,!0);continue}d=E_(a.o,d.slot);"scheduled"!==d.o&&G_(d.slot,d.o,"enterSlot");d.o="enter_requested";var p=d.w;d=p.Fb;p=p.slot;if(null!=E_(d.o,p)){z_(d.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);var t=E_(d.o,p);"enter_requested"!==t.o&&G_(t.slot,t.o,"onSlotEntered");t.o="entered";t=g.q(d.u);for(var u=t.next();!u.done;u=t.next())u.value.Wj(p);
fpa(d,p)}}};
fpa=function(a,b){var c;if(null!=E_(a.o,b)&&P_(E_(a.o,b))&&H_(a.o,b)&&!N_(a.o,b)){A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=H_(a.o,b))&&void 0!==c?c:void 0);var d=E_(a.o,b);"entered"!==d.o&&G_(d.slot,d.o,"enterLayoutForSlot");d.o="rendering";d.u.startRendering(d.layout)}};
epa=function(a,b,c,d){if(null!=E_(a.o,b)){var e=a.Sa,f;var k=(null===(f=Loa.get(d))||void 0===f?void 0:f.Fp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";A_(e,k,b,c);a=E_(a.o,b);"rendering"!==a.o&&G_(a.slot,a.o,"exitLayout");a.o="rendering_stop_requested";a.u.fj(c,d)}};
J_=function(a,b,c){if(null!=E_(a.o,b)){if(a.o.Fs(b)||a.o.Ds(b))if(E_(a.o,b).A=!0,!c)return;if(P_(E_(a.o,b)))E_(a.o,b).A=!0,Zoa(a,b,c);else{if(a.o.Gs(b)){E_(a.o,b).A=!0;if(null!=E_(a.o,b)){z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b);var d=E_(a.o,b).C,e=d.Fb,f=d.slot;d=new O_("Got CancelSlotFulfilling request for "+d.slot.ab+" in DirectFulfillmentAdapter.");r_(d,f);J_(e,f,!0)}if(!c)return}c=H_(a.o,b);z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);e=E_(a.o,b);f=
g.q(b.ld);for(d=f.next();!d.done;d=f.next()){d=d.value;var k=e.M.get(d.o);k&&(k.lf(d),e.M["delete"](d.o))}f=g.q(b.Jg);for(d=f.next();!d.done;d=f.next())if(d=d.value,k=e.I.get(d.o))k.lf(d),e.I["delete"](d.o);f=g.q(b.Ig);for(d=f.next();!d.done;d=f.next())if(d=d.value,k=e.G.get(d.o))k.lf(d),e.G["delete"](d.o);void 0!==e.layout&&(f=e.layout,R_(e,f.Ae),R_(e,f.We),R_(e,f.Ve));e.C=void 0;e.w=void 0;void 0!==e.u&&(e.u.Po(),e.u=void 0);e=a.o;E_(e,b)&&(e=Q_(e,b.ab))&&e["delete"](b.slotId);z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.q(a.u);for(e=a.next();!e.done;e=a.next())e=e.value,e.nk(b),c&&e.lk(b,c)}}};
Zoa=function(a,b,c){if(null!=E_(a.o,b)&&P_(E_(a.o,b))){var d=H_(a.o,b);if(d&&N_(a.o,b))epa(a,b,d,c?"error":"abandoned");else{z_(a.Sa,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=E_(a.o,b);if(!e)throw new O_("Cannot exit slot it is unregistered");"enter_requested"!==e.o&&"entered"!==e.o&&"rendering"!==e.o&&G_(e.slot,e.o,"exitSlot");e.o="exit_requested";if(void 0===e.w)throw e.o="scheduled",new O_("Cannot exit slot because adapter is not defined");var f=e.w,k=f.Fb,l=f.slot;if(null!=E_(k.o,
l)){z_(k.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);var m=E_(k.o,l);"exit_requested"!==m.o&&G_(m.slot,m.o,"onSlotExited");m.o="scheduled";for(var n=g.q(k.u),p=n.next();!p.done;p=n.next())p.value.Xj(l);null!=E_(k.o,l)&&E_(k.o,l).A&&J_(k,l,!1)}}catch(t){r_(t,b)}}}};
S_=function(a){this.slot=a;this.M=new Map;this.I=new Map;this.G=new Map;this.P=new Map;this.u=this.layout=this.w=this.C=void 0;this.rj=this.A=!1;this.F=[];this.o="not_scheduled";this.B="not_filled"};
P_=function(a){return"enter_requested"===a.o||a.isActive()};
T_=function(a){Ta.call(this,"Layout error: "+a)};
O_=function(a){Ta.call(this,"Slot error: "+a)};
U_=function(a,b,c,d,e){g.A.call(this);this.Jd=a;this.w=b;this.B=c;this.A=d;this.u=e;this.o=new Map};
Q_=function(a,b){var c=a.o.get(b);return c?c:new Map};
E_=function(a,b){return Q_(a,b.ab).get(b.slotId)};
gpa=function(a){var b=[];a.o.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
N_=function(a,b){var c=E_(a,b),d;if(d=void 0!==c.layout)a:switch(c.o){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
H_=function(a,b){var c=E_(a,b);return void 0!==c.layout?c.layout:null};
V_=function(a,b,c){if(g.ab(c))throw new O_("No "+hpa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Jd.lj.get(d.triggerType))throw new O_("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
W_=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Jd.lj.get(d.triggerType))throw new T_("No trigger adapter registered for "+hpa.get(b)+" trigger of type: "+d.triggerType);};
X_=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Jd.lj.get(e.triggerType);f.cf(c,e,b.slot,b.layout?b.layout:null);b.P.set(e.o,f)}};
R_=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.P.get(d.o);e&&(e.lf(d),a.P["delete"](d.o))}};
G_=function(a,b,c){r_("Slot stage was "+b+" when calling method "+c,a)};
ipa=function(a){return Y_(a.ON).concat(Y_(a.lj)).concat(Y_(a.Ir)).concat(Y_(a.Ku)).concat(Y_(a.Ms))};
Y_=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Nj&&b.push(c);return b};
kpa=function(a){g.A.call(this);this.o=a;this.u=jpa(this)};
jpa=function(a){var b=new D_(function(c,d,e,f){return new U_(a.o.Jd,c,d,e,f)},new Set(ipa(a.o.Jd).concat(a.o.listeners)),a.o.Sa);
g.B(a,b);return b};
Z_=function(a){this.value=a};
$_=function(a){this.value=a};
a0=function(a){this.value=a};
b0=function(){Z_.apply(this,arguments)};
c0=function(a){this.value=a};
d0=function(a){this.value=a};
e0=function(a){this.value=a};
f0=function(){Z_.apply(this,arguments)};
g0=function(a){this.value=a};
h0=function(a){this.value=a};
i0=function(a){this.value=a};
j0=function(a){this.value=a};
k0=function(a){this.value=a};
l0=function(a){this.value=a};
m0=function(a){this.value=a};
n0=function(a){this.value=a};
o0=function(a){this.value=a};
p0=function(a){this.value=a};
q0=function(a){this.value=a};
r0=function(a){this.value=a};
lpa=function(a,b){this.Fb=a;this.slot=b};
mpa=function(){};
npa=function(){};
s0=function(a,b,c,d){g.O.call(this);this.Fb=a;this.slot=b;this.layout=c;this.o=d;this.u=[]};
t0=function(a,b,c,d,e,f){this.w=a;this.Cb=b;this.oc=d;this.layoutId=e;this.o=new Set;this.u={adPlacementConfig:c,yG:void 0===f?null:f}};
u0=function(){return["metadata_type_ad_placement_config"]};
v0=function(a,b){var c=opa(a.oc,a.layoutId,b);a.w.has(b)&&a.w.get(b)&&a.w.get(b).forEach(function(d){if(d=d.baseUrl){var e=a.Cb;e.Kh.send(d,ppa(e,a.u),c)}});
a.o.add(b)};
w0=function(a,b){a.o.has(b)||v0(a,b)};
x0=function(a,b,c,d,e,f,k,l,m,n,p){s0.call(this,a,b,c,d);this.Cb=e;this.A=f;this.Gd=k;this.F=l;this.G=m;this.C=n;this.Nj=!0;this.w=null;this.I=v_(this.layout.Ja,"metadata_type_ad_video_id");a=this.A;a.u.add(this);g.B(a,this);a=v_(this.layout.Ja,"metadata_type_ad_placement_config");this.B=new t0(c.jf,e,a,p,c.layoutId)};
qpa=function(a,b){return t_(b,["metadata_type_ad_video_id"],["layout_type_media"])&&a.I===v_(b.Ja,"metadata_type_ad_video_id")?!0:!1};
y0=function(a,b,c,d,e,f,k,l){x0.call(this,a,b,c,d,e,f,k,"metadata_type_action_companion_ad_renderer",function(m,n){return new xV(m,n)},"action-companion",l)};
rpa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];u0().forEach(function(b){a.push(b)});
return{tf:a,xh:["layout_type_companion_with_action_button"]}};
spa=function(a,b,c,d,e,f,k,l){x0.call(this,a,b,c,d,e,f,k,"metadata_type_image_companion_ad_renderer",function(m,n){return new Ioa(m,n)},"image-companion",l)};
tpa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];u0().forEach(function(b){a.push(b)});
return{tf:a,xh:["layout_type_companion_with_image"]}};
upa=function(a,b,c,d,e,f,k,l){x0.call(this,a,b,c,d,e,f,k,"metadata_type_shopping_companion_carousel_renderer",function(m,n){return new mW(m,n)},"shopping-companion",l)};
vpa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];u0().forEach(function(b){a.push(b)});
return{tf:a,xh:["layout_type_companion_with_shopping"]}};
z0=function(a,b){return t_(a,b.tf,b.xh)?!0:!1};
wpa=function(a,b,c,d,e){this.Ge=a;this.Cb=b;this.u=c;this.Gd=d;this.oc=e};
xpa=function(a,b,c,d,e,f){this.Fb=a;this.slot=b;this.layout=c;this.Cb=d;this.rm=e;a=v_(this.layout.Ja,"metadata_type_ad_placement_config");this.o=new t0(c.jf,this.Cb,a,f,c.layoutId)};
ypa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];u0().forEach(function(b){a.push(b)});
return{tf:a,xh:["layout_type_forecasting"]}};
zpa=function(a,b,c){this.Cb=a;this.rm=b;this.oc=c};
Apa=function(a,b,c,d,e){this.Ge=a;this.Cb=b;this.u=c;this.Gd=d;this.oc=e};
Bpa=function(a,b,c,d,e,f,k,l,m,n){this.Fb=a;this.slot=b;this.layout=c;this.hd=d;this.Fg=e;this.vf=f;this.ob=k;this.w=l;this.Cb=m;this.u=n;this.o=null;this.driftRecoveryMs=v_(c.Ja,"metadata_type_drift_recovery_ms")||null};
A0=function(a){var b=v_(a.layout.Ja,"metadata_type_layout_enter_ms");return a.u.reduce(function(c,d){return c+1E3*v_(d.layout.Ja,"metadata_type_video_length_seconds")},b)};
Cpa=function(a){var b=v_(a.layout.Ja,"metadata_type_layout_enter_ms"),c=A0(a);a=WW(a.vf.u,b,c);return Math.min(c,null!==a?a:Infinity)};
Dpa=function(a,b){return null==b?null:a.u.find(function(c){return c.layout.layoutId===b})||null};
B0=function(a,b){var c,d={driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.hd.bl)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.rh.adClientDataEntry},b)};g.Rq("adsClientStateChange",d)};
Epa=function(a,b,c,d,e,f,k,l,m){this.Fb=a;this.slot=b;this.layout=c;this.Fg=d;this.o=e;this.ob=f;this.kj=k;this.oc=l;this.hd=m;this.u=null};
Fpa=function(a,b,c,d){var e=v_(a.layout.Ja,"metadata_type_video_length_seconds");0>=e||0>=c||g.V(b,16)||g.V(b,32)||(C0(c,.25*e,d)&&w0(a.o,"first_quartile"),C0(c,.5*e,d)&&w0(a.o,"midpoint"),C0(c,.75*e,d)&&w0(a.o,"third_quartile"))};
C0=function(a,b,c){return a<b?!1:null!==c?c<=b:a<=b+1};
Gpa=function(a,b,c,d,e,f,k){this.hd=a;this.Fg=b;this.ob=c;this.Cb=d;this.kj=e;this.vf=f;this.oc=k};
Hpa=function(a,b){this.slot=a;this.layout=b};
Ipa=function(){var a=["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback"];u0().forEach(function(b){a.push(b)});
return{tf:a,xh:["layout_type_media_layout_player_overlay"]}};
Jpa=function(){};
D0=function(a,b,c,d,e,f,k){s0.call(this,a,b,c,d);this.ob=e;this.Cb=f;this.Gd=k;this.w=!1;this.A=v_(this.layout.Ja,"metadata_type_linked_player_bytes_layout_id")};
Kpa=function(a,b,c,d){this.Ge=a;this.ob=b;this.Cb=c;this.Gd=d};
Lpa=function(a){this.w=a.hG?new Jpa:new Kpa(a.Ge,a.ob,a.Cb,a.Gd);this.o=new wpa(a.Ge,a.Cb,a.bw,a.Gd,a.oc);this.A=new Apa(a.Ge,a.Cb,a.bw,a.Gd,a.oc);this.u=new zpa(a.Cb,a.rm,a.oc);this.B=new Gpa(a.hd,a.Fg,a.ob,a.Cb,a.kj,a.vf,a.oc)};
E0=function(a,b,c,d){g.A.call(this);this.B=a;this.A=b;this.opportunityType=c;this.Sa=d};
F0=function(a,b){y_(a.Sa,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a.opportunityType,void 0);var c=a.B.A(b);y_(a.Sa,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a.opportunityType,c);if(c.length){var d=a.A();c=g.q(c);for(var e=c.next();!e.done;e=c.next())a:{var f=d;e=e.value;z_(f.Sa,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",e);try{var k=f.o;if(g.ec(e.slotId))throw new O_("Slot ID was empty");if(E_(k,e))throw new O_("Duplicate registration for slot.");if(!k.Jd.Ir.has(e.ab))throw new O_("No fulfillment adapter factory registered for slot of type: "+
e.ab);if(!k.Jd.Ku.has(e.ab))throw new O_("No SlotAdapterFactory registered for slot of type: "+e.ab);V_(k,5,e.ld);V_(k,4,e.Jg);V_(k,3,e.Ig);var l=f.o,m=Q_(l,e.ab);if(E_(l,e))throw new O_("Duplicate slots not supported");m.set(e.slotId,new S_(e));l.o.set(e.ab,m)}catch(Pk){r_(Pk,e);break a}f.o.rj(e);try{for(var n=f.o,p=E_(n,e),t=g.q(e.ld),u=t.next();!u.done;u=t.next()){var z=u.value,C=n.Jd.lj.get(z.triggerType);C&&(C.cf(5,z,e,null),p.M.set(z.o,C))}for(var D=g.q(e.Jg),E=D.next();!E.done;E=D.next()){var F=
E.value,G=n.Jd.lj.get(F.triggerType);G&&(G.cf(4,F,e,null),p.I.set(F.o,G))}for(var fa=g.q(e.Ig),oa=fa.next();!oa.done;oa=fa.next()){var kc=oa.value,Rc=n.Jd.lj.get(kc.triggerType);Rc&&(Rc.cf(3,kc,e,null),p.G.set(kc.o,Rc))}var tb=void 0,nb=void 0;n.Jd.Ir.get(e.ab).get();var Yd=n.w,qf=e,Kh={tf:["metadata_type_fulfilled_layout"]};b:{var Lh=Kh.ab;if(Lh&&Lh!==qf.ab)nb=!1;else{for(var ag=g.q(Kh.tf),Qk=ag.next();!Qk.done;Qk=ag.next())if(!qf.Ja.o.has(Qk.value)){nb=!1;break b}nb=!0}}if(nb)tb=new lpa(Yd,qf);
else throw new O_("Unsupported slot with type: "+qf.ab+" and client metadata: "+w_(qf.Ja)+" in DefaultFulfillmentAdapterFactory.");p.C=tb;n.Jd.Ku.get(e.ab).get();p.w=new Mpa(n.B,e)}catch(Pk){r_(Pk,e);J_(f,e,!0);break a}z_(f.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);tb=E_(f.o,e);"not_scheduled"!==tb.o&&G_(tb.slot,tb.o,"onSlotScheduled");tb.o="scheduled";tb=g.q(f.u);for(nb=tb.next();!nb.done;nb=tb.next())nb.value.Yj(e);M_(f,e)}}};
G0=function(a,b,c){E0.call(this,a,b,"opportunity_type_ad_placement_renderers_response_received",c)};
Npa=function(a,b,c,d){this.Fb=a;this.Kb=c;this.w=d;this.u=new Map;this.o=function(e){return function(f){return C_(b,e.slotId,e.ab,e.wb,e.ld,f.layoutId,f.layoutType,f.wb)}}};
Qpa=function(a,b,c){if(b=Opa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Ppa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.ro=c)}else r_("InstreamVideoAdRenderer without externalVideoId")}};
H0=function(a,b,c,d,e,f){a=Ppa(a,d);a.Oq=b;a.ai=c;a.Nq=e;a.Zk=f};
Ppa=function(a,b){a.u.has(b)||a.u.set(b,{instreamVideoAdRenderer:void 0,ro:void 0,ai:void 0,adVideoId:b,Nq:void 0,Oq:void 0,Zk:void 0});return a.u.get(b)};
Rpa=function(a,b){return void 0===a.Zk?!1:void 0===a.instreamVideoAdRenderer?(r_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1):void 0===a.Nq?(r_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1):void 0===a.ro||void 0===a.ai||a.ro!==a.ai&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==a.ai?!1:void 0===a.instreamVideoAdRenderer.elementId?(r_("InstreamVideoAdRenderer has no elementId, kind: "+(a.ro+", matching APSR kind: "+
a.ai+". APR count: "+b.Tg.length+". isAdBreakResponse: "+b.so)),!1):"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.ai&&void 0===a.Oq?(r_("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1):!0};
Opa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;return c?(b.push(c),b):a.instreamVideoAdRenderer?(b.push(a.instreamVideoAdRenderer),b):a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds?(a.linearAdSequenceRenderer.linearAds.forEach(function(d){d.instreamVideoAdRenderer&&b.push(d.instreamVideoAdRenderer)}),b):null};
Spa=function(a){var b,c,d,e=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig,f=null===(d=null===(c=a.config)||void 0===c?void 0:c.adPlacementConfig)||void 0===d?void 0:d.kind;a=a.renderer;return!!(e&&f&&a)};
Tpa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
Wpa=function(a,b){var c=a.config.adPlacementConfig,d=(c.adTimeOffset||{}).offsetStartMilliseconds;if(void 0===d)throw new TypeError("Expected start offset");d=Number(d);if(isNaN(d))throw new TypeError("Expected valid start offset");var e=(a.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===e||void 0===e||!e.length)throw new TypeError("Expected linear ads");var f=d,k=0;e=e.map(function(l){var m=l.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");
l=g.kq(m.playerVars);var n=Number(l.length_seconds);if(isNaN(n))throw new TypeError("Expected valid length seconds in player vars");var p=f,t=k,u=Number(m.trimmedMaxNonSkippableAdDurationMs);n=isNaN(u)?n:Math.min(n,u/1E3);f+=1E3*n;k++;m=m.pings?sU(m.pings):new Map;u=Tr();var z={layoutId:u,layoutType:"layout_type_media",wb:"adapter"};return{layoutId:u,layoutType:"layout_type_media",jf:m,Ae:[],We:[],Ve:[],wb:"adapter",Ja:new u_([new l0(n),new m0(l),new n0(p),new o0(t)]),rh:b(z)}});
return Upa(d,e,c,new Map([["ad_placement_start",a.placementStartPings||[]],["ad_placement_end",a.placementEndPings||[]]]),Vpa(a),b)};
Vpa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
I0=function(a,b,c,d,e,f,k,l){E0.call(this,a,b,"opportunity_type_live_stream_break_signal",c);var m=this;this.hd=d;this.u=e;this.vf=f;this.ob=k;this.w=l;this.o=null;d.addListener(this);g.Ge(this,function(){d.removeListener(m)});
f.addListener(this);g.Ge(this,function(){f.removeListener(m)})};
Zpa=function(a,b,c){var d=a.ob.K.getCurrentTime(1,!1);d=Xpa(c,d);a.w.schedule({contentCpn:b.contentCpn,JE:new Qn(1E3*d.start,1E3*d.end),aO:null,execute:function(){return Ypa(a,b,c)}})};
Ypa=function(a,b,c){var d=b.contentCpn,e=b.adPlacementRenderer.renderer.adBreakServiceRenderer.getAdBreakUrl,f=b.Yk;return mh(a,function l(){var m=this,n,p;return Aa(l,function(t){if(1==t.o)return g.ta(t,m.u.fetch({bP:e,mi:c,rE:$pa(c)}),2);n=t.u;2<=n.length&&r_("Unexpected "+n.length+" ad placement renderers");n.length||r_("Expected ad placement renderer");p={Tg:n,Pq:n,contentCpn:d,Yk:f,so:!0,daiEnabled:!0};F0(m,p);t.o=0})})};
Xpa=function(a,b){var c=a.startSecs+a.durationSecs;return a.startSecs<=b?new Qn(a.startSecs-4,c):new Qn(Math.floor(b+Math.random()*Math.max(0,a.startSecs-b-10)),c)};
$pa=function(a){var b=1E3*a.startSecs;return new g.iC(b,b+1E3*a.durationSecs)};
J0=function(a,b){g.A.call(this);var c=this;this.Ke=a;this.o=new Map;b.addListener(this);g.Ge(this,function(){b.removeListener(c)})};
K0=function(a,b,c,d,e){E0.call(this,a,c,"opportunity_type_player_bytes_media_layout_entered",e);this.o=b;this.Kb=d;this.Nj=!0};
L0=function(a,b){this.Sa=a;this.Zk=b};
M0=function(){g.A.apply(this,arguments);this.Nj=!0;this.o=new Map};
Mpa=function(a,b){this.Fb=a;this.slot=b};
aqa=function(){};
N0=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_layout_id_entered"};
O0=function(a,b){this.o=a;this.B=b;this.triggerType="trigger_type_layout_id_exited"};
P0=function(a,b){this.o=a;this.B=b;this.ab="slot_type_player_bytes";this.layoutType="layout_type_media";this.triggerType="trigger_type_on_different_layout_id_entered"};
Q0=function(a){this.o=Tr();this.w=a;this.triggerType="trigger_type_slot_id_entered"};
R0=function(a){this.o=Tr();this.B=a;this.triggerType="trigger_type_slot_id_exited"};
S0=function(a){this.o=Tr();this.A=a;this.triggerType="trigger_type_slot_id_scheduled"};
T0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
U0=function(a){g.A.call(this);this.o=a;this.Nj=!0;this.u=new Map;this.B=new Set;this.A=new Set;this.C=new Set;this.w=new Set};
bqa=function(a,b){this.o=a;this.layoutId=b;this.triggerType="trigger_type_close_requested"};
V0=function(){g.A.call(this);this.o=new Map};
cqa=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_before_content_video_id_started"};
W0=function(a,b){g.A.call(this);var c=this;this.w=a;this.o=new Map;b.addListener(this);g.Ge(this,function(){b.removeListener(c)})};
dqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.u===b&&c.push(e);return c};
X0=function(a){this.o=Tr();this.visible=a;this.triggerType="trigger_type_after_content_video_id_ended"};
Y0=function(a,b,c){this.o=a;this.u=b;this.visible=c;this.triggerType="trigger_type_media_time_range"};
Z0=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_not_in_media_time_range"};
$0=function(a,b){g.A.call(this);this.u=a;this.Ke=b;this.o=new Map};
a1=function(a,b,c,d,e,f,k,l,m){a.o.set(c.o,{bundle:new T0(b,c,d,e),Kw:f});a.Ke.addCueRange(f,k,l,m,a)};
eqa=function(a,b){for(var c=g.q(a.o.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.Kw)return d}return""};
fqa=function(){this.o=Tr();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"};
gqa=function(){this.o=Tr();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"};
b1=function(a,b){var c;g.A.call(this);var d=this;this.A=a;this.u=new Map;this.w=new Map;this.o=null;b.addListener(this);g.Ge(this,function(){b.removeListener(d)});
this.o=(null===(c=b.bl)||void 0===c?void 0:c.slotId)||null};
hqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
c1=function(a){this.o=Tr();this.layoutId=a;this.triggerType="trigger_type_on_layout_self_exit_requested"};
d1=function(a,b){this.o=a;this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested"};
e1=function(a){g.A.call(this);this.A=a;this.Nj=!0;this.w=new Map;this.u=this.o=null};
iqa=function(a,b){for(var c=[],d=g.q(a.w.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof c1&&e.trigger.layoutId===b&&Koa(e.category)&&c.push(e);c.length&&L_(a.A(),c)};
f1=function(a,b){this.o=a;this.contentVideoId=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id"};
g1=function(a,b){g.A.call(this);var c=this;this.u=a;this.hd=b;this.o=new Map;b.addListener(this);g.Ge(this,function(){b.removeListener(c)})};
h1=function(a){this.o=Tr();this.durationMs=45E3;this.layoutId=a;this.triggerType="trigger_type_time_relative_to_layout_enter"};
i1=function(a){g.A.call(this);this.A=a;this.Nj=!0;this.u=new Map;this.o=new Map;this.w=new Map};
jqa=function(a){g.A.call(this);this.A=new U0(a.Uh);g.B(this,this.A);this.o=new e1(a.Uh);g.B(this,this.o);this.w=new b1(a.Uh,a.hd);g.B(this,this.w);this.F=new g1(a.Uh,a.hd);g.B(this,this.F);this.C=new W0(a.Uh,a.lE);g.B(this,this.C);this.u=new $0(a.Uh,a.Ke);g.B(this,this.u);this.G=new i1(a.Uh);g.B(this,this.G);this.B=new V0(a.Uh);g.B(this,this.B)};
kqa=function(){};
j1=function(a,b,c,d,e,f,k){var l=Tr(),m={layoutId:l,layoutType:a,wb:"core"},n=new Map;f?(0===f.length&&r_("Companion Ad Renderer with no impression Pings"),n.set("impression",f)):r_("Companion Ad Renderer without impression Pings field");return{layoutId:l,layoutType:a,jf:n,Ae:[new c1(l),new P0(Tr(),d)],We:[],Ve:[],wb:"core",Ja:new u_([b,new f0(c),new e0(e)]),rh:k(m)}};
k1=function(a,b,c,d,e,f){var k={layoutId:a,layoutType:b,wb:"core"};return{layoutId:a,layoutType:b,jf:new Map,Ae:f?[f]:[],We:[new bqa(Tr(),a)],Ve:[],wb:"core",Ja:new u_([new b0(c),new e0(d)]),rh:e(k)}};
Upa=function(a,b,c,d,e,f){b.every(function(m){return t_(m,[],["layout_type_media"])})||r_("Unexpect subLayout type for DAI composite layout");
var k=Tr(),l={layoutId:k,layoutType:"layout_type_composite_player_bytes",wb:"core"};return{layoutId:k,layoutType:"layout_type_composite_player_bytes",jf:d,Ae:[new fqa],We:[],Ve:[],wb:"core",Ja:new u_([new n0(a),new k0(b),new e0(c),new q0(e)]),rh:f(l)}};
lqa=function(a,b,c){var d=Tr();b=[new N0(Tr(),b)];var e={slotId:d,ab:"slot_type_in_player",wb:"core",ld:b};return{slotId:d,ab:"slot_type_in_player",ld:b,Jg:[new Q0(d)],Ig:[new f1(Tr(),a),new R0(d)],wb:"core",Ja:new u_([new r0(c(e))])}};
nqa=function(a,b,c){var d=mqa(a,b);if(d){var e=d instanceof Y0?new Z0(Tr(),d.u):null;a=Tr();d=[d];if(c=c({slotId:a,ab:"slot_type_in_player",wb:"core",ld:d},e))return{slotId:a,ab:"slot_type_in_player",ld:d,Jg:[new Q0(a)],Ig:[new f1(Tr(),b),new R0(a)],wb:"core",Ja:new u_([new r0(c)])}}};
pqa=function(a,b,c,d){var e=Tr();return oqa(e,a,new N0(Tr(),c),b,d)};
qqa=function(a,b,c,d){return oqa(b,a,new d1(Tr(),b),c,d)};
rqa=function(a,b){var c=Tr(),d=[new gqa],e={slotId:c,ab:"slot_type_player_bytes",wb:"core",ld:d};return{slotId:c,ab:"slot_type_player_bytes",ld:d,Jg:[new S0(c)],Ig:[new f1(Tr(),a)],wb:"core",Ja:new u_([new r0(b(e))])}};
sqa=function(a,b,c){var d=Tr();if(a=mqa(a,b)){a=[a];var e={slotId:d,ab:"slot_type_forecasting",wb:"core",ld:a};return{slotId:d,ab:"slot_type_forecasting",ld:a,Jg:[new Q0(d)],Ig:[new R0(d),new f1(Tr(),b)],wb:"core",Ja:new u_([new r0(c(e))])}}};
mqa=function(a,b){var c,d,e=!a.hideCueRangeMarker;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new cqa(Tr(),b);case "AD_PLACEMENT_KIND_MILLISECONDS":if(null===(c=a.adTimeOffset)||void 0===c||!c.offsetStartMilliseconds){r_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");break}if(null===(d=a.adTimeOffset)||void 0===d||!d.offsetEndMilliseconds){r_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");break}var f=Number(a.adTimeOffset.offsetStartMilliseconds),k=Number(a.adTimeOffset.offsetEndMilliseconds);
if(isNaN(f)||isNaN(k)||f>=k){r_("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be > startMs.");break}return new Y0(Tr(),new Qn(f,k),e);case "AD_PLACEMENT_KIND_END":return new X0(e);default:r_("Cannot construct entry trigger from AdPlacementKind: "+(a.kind+"."))}};
oqa=function(a,b,c,d,e){c=[c];var f={slotId:a,ab:b,wb:"core",ld:c};return{slotId:a,ab:b,ld:c,Jg:[new Q0(a)],Ig:[new f1(Tr(),d),new R0(a)],wb:"core",Ja:new u_([new r0(e(f))])}};
tqa=function(){this.o=new Map};
l1=function(a,b,c){g.A.call(this);this.w=a;this.Ag=b;this.Sa=c;this.o=this.u=null;this.Ag.addListener(this)};
uqa=function(a){g.A.call(this);this.o=new l1(a.IE,a.kG,a.Sa);g.B(this,this.o)};
vqa=function(a,b,c){this.Mq=a;this.o=b;this.Kb=c};
wqa=function(a,b,c){var d=null;try{d=JSON.parse(a.response)}catch(f){return a.response&&(b=a.response,b.startsWith("GIF89")||(f.params=b.substr(0,256),g.Uq(f))),[]}if(!d)return[];a=d;g.P(c.K.N().experiments,"html5_enable_visual_element_logging_for_deferred_ads")&&a&&a.trackingParams&&uX(sX(),a.trackingParams);if(a.adThrottled)return[];c=a.playerAds;if(!c||!c.length)return[];c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return[];if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}return c};
m1=function(a){g.A.call(this);this.K=a;this.listeners=[];this.o=new g.Gr(this);g.B(this,this.o);this.o.L(this.K,"aduxclicked",this.onAdUxClicked);this.o.L(this.K,"aduxmouseover",this.lH);this.o.L(this.K,"aduxmouseout",this.kH);this.o.L(this.K,"muteadaccepted",this.YJ)};
xqa=function(a,b,c){b=(0,g.Cc)(b,function(d){return new TT(d,c,d.id)});
a.K.na("onAdUxUpdate",b)};
n1=function(a){this.o=a;this.listeners=[]};
o1=function(a,b){g.A.call(this);var c=this;this.K=a;this.listeners=[];this.o=new Set;this.w=[];this.A=new UW(this);this.u=new VW;b.addListener(this);g.Ge(this,function(){b.removeListener(c)});
yqa(this)};
yqa=function(a){var b,c=a.K.getVideoData(1);c.subscribe("cuepointupdated",a.ez,a);a.o.clear();c=(null===(b=c.ia)||void 0===b?void 0:Vx(b,0))||[];var d=g.q(c);for(c=d.next();!c.done;c=d.next())a.o.add(c.value);a.w.length=0;d=g.q(a.o);for(c=d.next();!c.done;c=d.next())a.A.reduce(c.value)};
p1=function(a){g.A.call(this);this.K=a;this.o=new Map;this.u=new g.Gr(this);g.B(this,this.u);this.u.L(this.K,g.lC("ad"),this.w,this);this.u.L(this.K,"crx_ad",this.A,this)};
zqa=function(a,b,c,d){g.iC.call(this,b,c,{id:a,namespace:"ad",priority:2,visible:d})};
Aqa=function(a){this.K=a};
LW=function(a){return g.P(a.K.N().experiments,"html5_enable_companion_with_action_on_above_feed_slot")};
MW=function(a){return g.P(a.K.N().experiments,"html5_enable_companion_with_image_on_above_feed_slot")};
NW=function(a){return g.P(a.K.N().experiments,"html5_enable_companion_with_shopping_on_above_feed_slot")};
q1=function(a){return g.P(a.K.N().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
KW=function(a){var b=(g.jz(a.K.N())||a.K.N().o||"WEB_EMBEDDED_PLAYER"==a.K.N().deviceParams.c||bz(a.K.N()))&&g.P(a.K.N().experiments,"html5_enable_video_overlay_on_inplayer_slot");a=g.$y(a.K.N())&&g.P(a.K.N().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
Ooa=function(a){return g.P(a.K.N().experiments,"html5_force_debug_data_for_client_tmp_logs")};
DY=function(a){return g.P(a.K.N().experiments,"html5_pacf_enable_dai")};
r1=function(a){return g.P(a.K.N().experiments,"html5_enable_forecasting_in_pacf")};
s1=function(){this.listeners=[]};
Bqa=function(a,b,c,d,e){a.listeners.forEach(function(f){if(f.o)r_(f.o.layoutId===b?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var k=Tr();f.u={slotId:k,ab:"slot_type_player_bytes",ld:[],Jg:[],Ig:[],wb:"surface",Ja:new u_([])};var l=[],m=c.B||"";m&&l.push(new f0(m));(m=(m=c.o)&&m.playerOverlay&&m.playerOverlay.instreamAdPlayerOverlayRenderer)&&l.push(new h0(m));c.o.adNextParams&&l.push(new a0(c.o.adNextParams||""));l.push(new g0(d));l.push(new j0(e));
l.push(new e0(c.aa));f.o={layoutId:b,layoutType:"layout_type_media",jf:new Map,Ae:[],We:[],Ve:[],wb:"surface",Ja:new u_(l),rh:C_(f.Sa,k,"slot_type_player_bytes","surface",[],b,"layout_type_media","surface")};Xoa(f.w(),f.u,f.o);Yoa(f.w(),f.u,f.o)}})};
Dma=function(a,b,c){a.listeners.forEach(function(d){if(d.o&&d.o.layoutId===b){var e="c"===c?"abandoned":"normal";$oa(d.w(),d.u,d.o,e);d.u=null;d.o=null}else r_("Received AD_ENDED for unknown layout")})};
t1=function(a,b){this.ob=a;this.K=b;this.o=new Map;SU().subscribe("e",this.w,this);SU().subscribe("j",this.u,this);SU().subscribe("s",this.A,this)};
Cqa=function(a,b,c,d){d=void 0===d?null:d;a.o.has(b)?r_("Unexpected registration of layout in LidarApi"):(a.o.set(b,d),mma(SU(),b,{ul:function(){return{currentTime:a.ob.K.getCurrentTime(2,!1),duration:c,eb:2===a.ob.getPresentingPlayerType()&&1===g.PK(a.ob.K,2),zT:!1,AT:!0,volume:a.ob.isMuted()?0:a.ob.getVolume()/100}}}))};
opa=function(a,b,c){if(!a.o.has(b))return{};if("seek"===c)return a=g.P(a.K.N().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Im(b,a),{};c=$U(c);if(null===c)return{};var d=a.K.kb();d=d&&2===d.getPlayerType()&&vJ(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.ob.isFullscreen()};return Hm(c,b,a)};
u1=function(a){this.o=a};
Dqa=function(a){var b=void 0===b?new cU(new u1(function(){var c=a.getVideoData(1);return c?c.Qd():""})):b;
this.K=a;this.Kh=b};
Eqa=function(a){if(a=a.K.kb())if(a=QH(a.B))return a;return function(){}};
ppa=function(a,b){var c={},d={},e={};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},NU(IU(a.K))),(c.FINAL="1",c)),NU(KU(b.adPlacementConfig))),(d.SLOT_POS=(b.yG||0).toString(),d)),void 0!==b.adCpn?(e.AD_CPN=b.adCpn,e):{})};
w1=function(a,b){g.A.call(this);this.K=a;this.kj=b;this.listeners=[];var c=new g.RQ(this);g.B(this,c);c.L(a,"videodatachange",this.zN);this.bl=v1(this);this.contentCpn=v1(this,1).clientPlaybackNonce};
v1=function(a,b){var c=a.K.getVideoData(b);return c?a.on(c):null};
x1=function(a){g.A.call(this);this.K=a;this.listeners=[];var b=new g.Gr(this);g.B(this,b);b.L(a,"progresssync",this.vM);b.L(a,"presentingplayerstatechange",this.nM);b.L(a,"fullscreentoggled",this.mH);b.L(a,"minimized",this.nH);b.L(a,"resize",this.oH)};
Iqa=function(a,b,c){function d(){return u}
g.A.call(this);var e=new m1(a);g.B(this,e);var f=new x1(a);g.B(this,f);var k=new Dqa(a);this.Ag=new s1;this.u=new Aqa(a);var l=new tqa,m=new w1(a,l);g.B(this,m);var n=new o1(a,m);g.B(this,n);b=new vqa(b,c,this.u);c=new p1(a);g.B(this,c);var p=new t1(f,a);this.Sa=new x_(this.u);g.B(this,this.Sa);this.C=new M0;g.B(this,this.C);var t=new kqa,u=null,z=new Npa({Yt:function(E){D.Yt(E)}},this.Sa,this.u,a.N().o?"slot_type_below_player":"slot_type_above_feed"),C=new J0(c,m),D=new I0(z,d,this.Sa,m,b,n,f,C);
g.B(this,D);this.G=g.$y(a.N())?new K0(new L0(this.Sa,t.o),Fqa,d,this.u,this.Sa):new K0(new L0(this.Sa,t.o),Gqa,d,this.u,this.Sa);g.B(this,this.G);this.A=new G0(z,d,this.Sa);g.B(this,this.A);this.B=new n1(this.A);this.o=new jqa({Uh:d,hd:m,lE:this.B,Ke:c});g.B(this,this.o);this.w=new Lpa({hG:g.$y(a.N()),Ge:e,ob:f,Cb:k,bw:d,Gd:this.C,rm:this.o.o,hd:m,Fg:a,kj:l,vf:n,oc:p});this.F=new kpa({Jd:Hqa(this,D),listeners:[this.C],Sa:this.Sa,HT:this.B,BT:y1(this)});g.B(this,this.F);u=this.F.u;a=new uqa({kG:this.Ag,
IE:d,Sa:this.Sa});g.B(this,a)};
y1=function(a){return{WD:a.A,SD:a.o.o,Ag:a.Ag,Kb:a.u}};
Hqa=function(a,b){var c=new s_(function(){return new aqa}),d=new s_(function(){return new npa}),e=a.o.A;
return{ON:new Map([["opportunity_type_player_bytes_media_layout_entered",a.G],["opportunity_type_ad_placement_renderers_response_received",a.A],["opportunity_type_live_stream_break_signal",b]]),Ir:new Map([["slot_type_in_player",d],["slot_type_above_feed",d],["slot_type_below_player",d],["slot_type_forecasting",d],["slot_type_player_bytes",d]]),lj:new Map([["trigger_type_on_layout_self_exit_requested",a.o.o],["trigger_type_on_element_self_enter_requested",a.o.o],["trigger_type_on_new_playback_after_content_video_id",
a.o.F],["trigger_type_slot_id_entered",e],["trigger_type_slot_id_exited",e],["trigger_type_slot_id_scheduled",e],["trigger_type_layout_id_entered",e],["trigger_type_layout_id_exited",e],["trigger_type_on_different_layout_id_entered",e],["trigger_type_before_content_video_id_started",a.o.C],["trigger_type_media_time_range",a.o.u],["trigger_type_after_content_video_id_ended",a.o.u],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",a.o.w],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",a.o.w],["trigger_type_close_requested",
a.o.B],["trigger_type_time_relative_to_layout_enter",a.o.G]]),Ku:new Map([["slot_type_in_player",c],["slot_type_above_feed",c],["slot_type_below_player",c],["slot_type_forecasting",c],["slot_type_player_bytes",c]]),Ms:new Map([["slot_type_in_player",new s_(function(){return a.w.w})],
["slot_type_above_feed",new s_(function(){return a.w.o})],
["slot_type_below_player",new s_(function(){return a.w.A})],
["slot_type_forecasting",new s_(function(){return a.w.u})],
["slot_type_player_bytes",new s_(function(){return a.w.B})]])}};
z1=function(a){g.vL.call(this,a);var b=this;this.o=null;this.w=new KT(this.player);this.A=new qY(this.player);this.u=new Iqa(this.player,this.w,this.A);g.B(this,this.u);this.created=!1;var c=a.N();!Yy(c)||g.az(c)||bz(c)||(c=function(){return b.o},g.B(this,new q_(a,c)),g.B(this,YU(a)?new p_(a,c):new o_(a,c)))};
Jqa=function(a,b){if(null!==a.o){var c=a.o;switch(b){case "control_play":c.u&&(c=c.u,c.uh()?c.K.kb().playVideo():c.im()&&c.u.sg());break;case "control_pause":c.u&&(c=c.u,c.uh()?c.K.kb().pauseVideo():c.im()&&c.u.mh())}}};
Lqa=function(a,b){var c={pn:[],vp:[]};if(!a||!a.adPlacements)return c;var d=a.adPlacements.map(function(k){return k.adPlacementRenderer}),e=a.playerConfig&&a.playerConfig.daiConfig&&a.playerConfig.daiConfig.enableDai||!1;
d=g.q(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&null!=f.renderer&&(Kqa(f.renderer,b,e)?c.vp.push(f):c.pn.push(f));return c};
Kqa=function(a,b,c){return null!=a.actionCompanionAdRenderer?LW(b):null!=a.imageCompanionAdRenderer?MW(b):null!=a.shoppingCompanionCarouselRenderer?NW(b):null!=a.invideoOverlayAdRenderer?q1(b):null!=a.clientForecastingAdRenderer?r1(b):null!=a.adBreakServiceRenderer?DY(b)&&c:!1};
g.A1=function(a){if(!Mqa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Nqa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
Oqa=function(){if(!g.he)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.B1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;fh();a=Vc(a,null);return b.parseFromString(g.Qc(a),"application/xml")}if(Pqa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.C1=function(a){g.A.call(this);this.u=a;this.o={}};
Qqa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)Qqa(a,b,c[k],d,e,f);else{b=Se(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.o[b.key]=b}return a};
g.Rqa=function(a){g.zb(a.o,function(b,c){this.o.hasOwnProperty(c)&&bf(b)},a);
a.o={}};
D1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
E1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aa=[];ha="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b};
if("function"==typeof Object.setPrototypeOf)F1=Object.setPrototypeOf;else{var G1;a:{var Sqa={a:!0},Tqa={};try{Tqa.__proto__=Sqa;G1=Tqa.a;break a}catch(a){}G1=!1}F1=G1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=F1,la="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;
a[b]=c.value;return a},ka=aaa(this);
ma("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.o=e;la(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.o};
var d=0;return b});
qa.prototype.F=function(a){this.u=a};
qa.prototype["return"]=function(a){this.A={"return":a};this.o=this.G};
ma("Promise",function(a){function b(k){this.u=0;this.w=void 0;this.o=[];var l=this.A();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.o=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.u=function(k){if(null==this.o){this.o=[];var l=this;this.w(function(){l.B()})}this.o.push(k)};
var e=ka.setTimeout;c.prototype.w=function(k){e(k,0)};
c.prototype.B=function(){for(;this.o&&this.o.length;){var k=this.o;this.o=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.A(n)}}}this.o=null};
c.prototype.A=function(k){this.w(function(){throw k;})};
b.prototype.A=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.P),reject:k(this.B)}};
b.prototype.P=function(k){if(k===this)this.B(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.M(k);else{a:switch(typeof k){case "object":var l=null!=k;break a;case "function":l=!0;break a;default:l=!1}l?this.I(k):this.C(k)}};
b.prototype.I=function(k){var l=void 0;try{l=k.then}catch(m){this.B(m);return}"function"==typeof l?this.R(l,k):this.C(k)};
b.prototype.B=function(k){this.F(2,k)};
b.prototype.C=function(k){this.F(1,k)};
b.prototype.F=function(k,l){if(0!=this.u)throw Error("Cannot settle("+k+", "+l+"): Promise already settled in state"+this.u);this.u=k;this.w=l;this.G()};
b.prototype.G=function(){if(null!=this.o){for(var k=0;k<this.o.length;++k)f.u(this.o[k]);this.o=null}};
var f=new c;b.prototype.M=function(k){var l=this.A();k.xn(l.resolve,l.reject)};
b.prototype.R=function(k,l){var m=this.A();try{k.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(k,l){function m(u,z){return"function"==typeof u?function(C){try{n(u(C))}catch(D){p(D)}}:z}
var n,p,t=new b(function(u,z){n=u;p=z});
this.xn(m(k,n),m(l,p));return t};
b.prototype["catch"]=function(k){return this.then(void 0,k)};
b.prototype.xn=function(k,l){function m(){switch(n.u){case 1:k(n.w);break;case 2:l(n.w);break;default:throw Error("Unexpected state: "+n.u);}}
var n=this;null==this.o?f.u(m):this.o.push(m)};
b.resolve=d;b.reject=function(k){return new b(function(l,m){m(k)})};
b.race=function(k){return new b(function(l,m){for(var n=g.q(k),p=n.next();!p.done;p=n.next())d(p.value).xn(l,m)})};
b.all=function(k){var l=g.q(k),m=l.next();return m.done?d([]):new b(function(n,p){function t(C){return function(D){u[C]=D;z--;0==z&&n(u)}}
var u=[],z=0;do u.push(void 0),z++,d(m.value).xn(t(u.length-1),p),m=l.next();while(!m.done)})};
return b});
ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ca(this,b,c).Xx}});
ma("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
ma("Array.prototype.find",function(a){return a?a:function(b,c){return Ca(this,b,c).PC}});
ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,k=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&k<e;)if(d[k++]!=b[l++])return!1;return l>=f}});
ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ma("WeakMap",function(a){function b(m){this.o=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ea(m,k)){var n=new c;la(m,k,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p["delete"](m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(t){return!1}}())return a;
var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ea(m,k))throw Error("WeakMap key fail: "+m);m[k][this.o]=n;return this};
b.prototype.get=function(m){return d(m)&&Ea(m,k)?m[k][this.o]:void 0};
b.prototype.has=function(m){return d(m)&&Ea(m,k)&&Ea(m[k],this.o)};
b.prototype["delete"]=function(m){return d(m)&&Ea(m,k)&&Ea(m[k],this.o)?delete m[k][this.o]:!1};
return b});
ma("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.o;return pa(function(){if(n){for(;n.head!=l.o;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++k,f.set(m,n)):n="p_"+m;var p=l.u[n];if(p&&Ea(l.u,n))for(var t=0;t<p.length;t++){var u=p[t];if(m!==m&&u.key!==u.key||m===u.key)return{id:n,list:p,index:t,Cd:u}}return{id:n,list:p,index:-1,Cd:void 0}}
function e(l){this.u={};this.o=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(t){return!1}}())return a;
na();var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.u[n.id]=[]);n.Cd?n.Cd.value=m:(n.Cd={next:this.o,previous:this.o.previous,head:this.o,key:l,value:m},n.list.push(n.Cd),this.o.previous.next=n.Cd,this.o.previous=n.Cd,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.Cd&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.u[l.id],l.Cd.previous.next=l.Cd.next,l.Cd.next.previous=l.Cd.previous,l.Cd.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.u={};this.o=this.o.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Cd};
e.prototype.get=function(l){return(l=d(this,l).Cd)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
ma("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ma("Set",function(a){function b(c){this.o=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.o.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
na();b.prototype.add=function(c){c=0===c?0:c;this.o.set(c,c);this.size=this.o.size;return this};
b.prototype["delete"]=function(c){c=this.o["delete"](c);this.size=this.o.size;return c};
b.prototype.clear=function(){this.o.clear();this.size=0};
b.prototype.has=function(c){return this.o.has(c)};
b.prototype.entries=function(){return this.o.entries()};
b.prototype.values=function(){return this.o.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.o.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ma("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});
var Uqa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ea(d,e)&&(a[e]=d[e])}return a};
ma("Object.assign",function(a){return a||Uqa});
ma("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ma("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ma("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;k<f;k++)e.push(c.call(d,b[k],k));return e}});
ma("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push([d,b[d]]);return c}});
ma("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ma("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var k=d[f];if(k===b||Object.is(k,b))return!0}return!1}});
ma("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Da(this,b,"includes").indexOf(b,c||0)}});
var Vqa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ha(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}();
ma("Reflect.construct",function(){return Vqa});
ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});
ma("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Da(this,null,"padStart"),e=b-d.length,f=void 0!==c?String(c):" ";return(0<e&&f?f.repeat(Math.ceil(e/f.length)).substring(0,e):"")+d}});
ma("Object.fromEntries",function(a){return a?a:function(b){var c={};na();if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ma("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ma("WeakSet",function(a){function b(c){this.o=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e["delete"](c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.o.set(c,!0);return this};
b.prototype.has=function(c){return this.o.has(c)};
b.prototype["delete"]=function(c){return this.o["delete"](c)};
return b});
ma("Number.parseInt",function(a){return a||parseInt});
ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.H1=g.H1||{};g.v=this||self;daa=/^[\w+/_-]+[=]{0,2}$/;Zc=null;Oa="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.H=Date.now||function(){return+new Date};g.Sa(Ta,Error);Ta.prototype.name="CustomError";var Xd;g.Sa(Ua,Ta);Ua.prototype.name="AssertionError";var Za,kj;Za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.Wqa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.y=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.ue=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Cc=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
g.ui=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.y)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
kj=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.ti=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Rb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Xqa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};Wb.prototype.ug=!0;Wb.prototype.xe=function(){return this.o};
var Vb={},Ub={};var gea,fea,eea,hea;gea=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.Yqa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Zqa=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.Kn=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");fea=/^http:\/\/.*/;eea=/\s+/;hea=/[\d\u06f0-\u06f9]/;ac.prototype.ug=!0;ac.prototype.xe=function(){return this.u.toString()};
ac.prototype.ts=!0;ac.prototype.o=function(){return 1};
var waa=/%{(\w+)}/g,vaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,$b={},Zb={};var oc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},fc=/&/g,gc=/</g,hc=/>/g,ic=/"/g,jc=/'/g,lc=/\x00/g,yaa=/[\x00&<>"']/;g.tc.prototype.ug=!0;g.tc.prototype.xe=function(){return this.u.toString()};
g.tc.prototype.ts=!0;g.tc.prototype.o=function(){return 1};
var Aaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,zaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,vc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,sc={},rc={};zc.prototype.ug=!0;var yc={};zc.prototype.xe=function(){return this.o};
var Ec=Bc(""),Caa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Hc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Gc=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),Daa=/\/\*/;a:{var $qa=g.v.navigator;if($qa){var ara=$qa.userAgent;if(ara){g.Ic=ara;break a}}g.Ic=""};Pc.prototype.ts=!0;Pc.prototype.o=function(){return this.w};
Pc.prototype.ug=!0;Pc.prototype.xe=function(){return this.u.toString()};
var bra=/^[a-zA-Z0-9-]+$/,cra={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},dra={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Oc={},I1=new Pc;I1.u=g.v.trustedTypes&&g.v.trustedTypes.emptyHTML?g.v.trustedTypes.emptyHTML:"";I1.w=0;var Uc=I1;var Kaa=yb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.Qc(Uc);return!b.parentElement});var Laa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var md=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Bd=/#|$/,Naa=/[?&]($|#)/;Gd[" "]=g.Ia;var uh,MG,yT,era,fra,gra,Hy,Jy,J1;g.vh=Jc("Opera");g.he=Jc("Trident")||Jc("MSIE");g.wu=Jc("Edge");g.nz=g.wu||g.he;uh=Jc("Gecko")&&!(nc(g.Ic,"WebKit")&&!Jc("Edge"))&&!(Jc("Trident")||Jc("MSIE"))&&!Jc("Edge");g.je=nc(g.Ic,"WebKit")&&!Jc("Edge");MG=Jc("Macintosh");yT=Jc("Windows");g.Iy=Jc("Android");era=Ed();fra=Jc("iPad");gra=Jc("iPod");Hy=Fd();Jy=nc(g.Ic,"KaiOS");
a:{var K1="",L1=function(){var a=g.Ic;if(uh)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.wu)return/Edge\/([\d\.]+)/.exec(a);if(g.he)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.je)return/WebKit\/(\S+)/.exec(a);if(g.vh)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
L1&&(K1=L1?L1[1]:"");if(g.he){var M1=Id();if(null!=M1&&M1>parseFloat(K1)){J1=String(M1);break a}}J1=K1}var Jd=J1,Paa={},N1;if(g.v.document&&g.he){var hra=Id();N1=hra?hra:parseInt(Jd,10)||void 0}else N1=void 0;var Raa=N1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Saa=!g.he||g.Ld(9),Uaa=!uh&&!g.he||g.he&&g.Ld(9)||uh&&g.Kd("1.9.1");g.he&&g.Kd("9");var Vaa=g.he||g.vh||g.je;g.Qd.prototype.clone=function(){return new g.Qd(this.x,this.y)};
g.Qd.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.Qd.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.Qd.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.h=g.Sd.prototype;g.h.clone=function(){return new g.Sd(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!Ud(this)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var de={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=Vd.prototype;g.h.ua=function(a){return $d(this.o,a)};
g.h.getElementsByTagName=function(a,b){return(b||this.o).getElementsByTagName(String(a))};
g.h.createElement=function(a){return le(this.o,a)};
g.h.appendChild=g.qe;g.h.append=function(a,b){me(Wd(a),a,arguments,1)};
g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.te;g.h.contains=g.xe;g.h=Ee.prototype;g.h.wO=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.sj.set(this.wx(c),[new Waa(a)])};
g.h.kx=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.wx(b);return this.sj.has(b)?this.sj.get(b):void 0};
g.h.UE=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.kx(b))&&b.length?b[0]:void 0};
g.h.clear=function(){this.sj.clear()};
g.h.wx=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.r(Fe,Ee);Fe.prototype.w=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.UE(c);e&&(d=e.ww);this.wO(d+a,c)};g.A.prototype.ub=!1;g.A.prototype.ea=function(){return this.ub};
g.A.prototype.dispose=function(){this.ub||(this.ub=!0,this.X())};
g.A.prototype.X=function(){if(this.Wi)for(;this.Wi.length;)this.Wi.shift()()};g.Je.prototype.stopPropagation=function(){this.o=!0};
g.Je.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ke={};var $e=!g.he||g.Ld(9),ira=g.he&&!g.Kd("9");!g.je||g.Kd("528");uh&&g.Kd("1.9b")||g.he&&g.Kd("8")||g.vh&&g.Kd("9.5")||g.je&&g.Kd("528");uh&&!g.Kd("8")||g.he&&g.Kd("9");var aba=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.v.addEventListener("test",g.Ia,b),g.v.removeEventListener("test",g.Ia,b)}catch(c){}return a}();var HQ;HQ=g.je?"webkitAnimationEnd":g.vh?"oanimationend":"animationend";g.Sa(Le,g.Je);var jra={2:"touch",3:"pen",4:"mouse"};
Le.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?uh&&(Hd(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:jra[a.pointerType]||"";this.state=a.state;this.u=a;a.defaultPrevented&&this.preventDefault()};
Le.prototype.stopPropagation=function(){Le.Gb.stopPropagation.call(this);this.u.stopPropagation?this.u.stopPropagation():this.u.cancelBubble=!0};
Le.prototype.preventDefault=function(){Le.Gb.preventDefault.call(this);var a=this.u;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ira)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Me="closure_listenable_"+(1E6*Math.random()|0),Yaa=0;Pe.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.o++);var k=Re(a,b,d,e);-1<k?(b=a[k],c||(b.vn=!1)):(b=new Zaa(b,this.src,f,!!d,e),b.vn=c,a.push(b));return b};
Pe.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Re(e,b,c,d);return-1<b?(Oe(e[b]),g.cb(e,b),0==e.length&&(delete this.listeners[a],this.o--),!0):!1};
Pe.prototype.wl=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Re(a,b,c,d));return-1<e?a[e]:null};var Xe="closure_lm_"+(1E6*Math.random()|0),cf={},Ze=0,ff="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Sa(g.gf,g.A);g.gf.prototype[Me]=!0;g.h=g.gf.prototype;g.h.addEventListener=function(a,b,c,d){Te(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){af(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.aa;if(b){var c=[];for(var d=1;b;b=b.aa)c.push(b),++d}b=this.ga;d=a.type||a;if("string"===typeof a)a=new g.Je(a,b);else if(a instanceof g.Je)a.target=a.target||b;else{var e=a;a=new g.Je(d,b);g.Sb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.o&&0<=f;f--){var k=a.currentTarget=c[f];e=hf(k,d,!0,a)&&e}a.o||(k=a.currentTarget=b,e=hf(k,d,!0,a)&&e,a.o||(e=hf(k,d,!1,a)&&e));if(c)for(f=0;!a.o&&f<c.length;f++)k=a.currentTarget=c[f],e=hf(k,d,!1,a)&&e;return e};
g.h.X=function(){g.gf.Gb.X.call(this);if(this.u){var a=this.u,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Oe(d[e]);delete a.listeners[c];a.o--}}this.aa=null};
g.h.ka=function(a,b,c,d){return this.u.add(String(a),b,!1,c,d)};
g.h.Ns=function(a,b,c,d){return this.u.add(String(a),b,!0,c,d)};
g.h.bb=function(a,b,c,d){this.u.remove(String(a),b,c,d)};
g.h.wl=function(a,b,c,d){return this.u.wl(String(a),b,c,d)};jf.prototype.get=function(){if(0<this.u){this.u--;var a=this.o;this.o=a.next;a.next=null}else a=this.w();return a};var mf,cba=g.xb;var wf=new jf(function(){return new pf},function(a){a.reset()});
of.prototype.add=function(a,b){var c=wf.get();c.set(a,b);this.u?this.u.next=c:this.o=c;this.u=c};
of.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.u=null),a.next=null);return a};
pf.prototype.set=function(a,b){this.ng=a;this.scope=b;this.next=null};
pf.prototype.reset=function(){this.next=this.scope=this.ng=null};var rf,sf=!1,tf=new of;Af.prototype.reset=function(){this.context=this.onRejected=this.w=this.o=null;this.u=!1};
var Bf=new jf(function(){return new Af},function(a){a.reset()});
zf.prototype.then=function(a,b,c){return Kf(this,g.Ma(a)?a:null,g.Ma(b)?b:null,c)};
zf.prototype.$goog_Thenable=!0;zf.prototype.cancel=function(a){if(0==this.o){var b=new Qf(a);g.uf(function(){Mf(this,b)},this)}};
zf.prototype.I=function(a){this.o=0;yf(this,2,a)};
zf.prototype.P=function(a){this.o=0;yf(this,3,a)};
zf.prototype.G=function(){for(var a;a=Nf(this);)Of(this,a,this.o,this.F);this.C=!1};
var Sf=lf;g.Sa(Qf,Ta);Qf.prototype.name="cancel";g.Sa(g.Tf,g.gf);g.h=g.Tf.prototype;g.h.enabled=!1;g.h.Ga=null;g.h.setInterval=function(a){this.Ad=a;this.Ga&&this.enabled?(this.stop(),this.start()):this.Ga&&this.stop()};
g.h.md=function(){if(this.enabled){var a=(0,g.H)()-this.uy;0<a&&a<.8*this.Ad?this.Ga=this.Nm.setTimeout(this.lw,this.Ad-a):(this.Ga&&(this.Nm.clearTimeout(this.Ga),this.Ga=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Ga||(this.Ga=this.Nm.setTimeout(this.lw,this.Ad),this.uy=(0,g.H)())};
g.h.stop=function(){this.enabled=!1;this.Ga&&(this.Nm.clearTimeout(this.Ga),this.Ga=null)};
g.h.X=function(){g.Tf.Gb.X.call(this);this.stop();delete this.Nm};Xf.prototype.F=function(){var a=this.A.values();a=[].concat(g.ea(a)).filter(function(b){return b.sj.size});
a.length&&this.P.flush(a);iba(a);this.B=0;this.u.enabled&&this.u.stop()};
Xf.prototype.o=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.A.has(a)||this.A.set(a,new Fe(a,c))};
Xf.prototype.w=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.I.apply(this,[a,1].concat(g.ea(c)))};
Xf.prototype.I=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.G.has(a)?void 0:this.A.get(a))&&e instanceof Fe&&(e.w(b,d),this.u.enabled||this.u.start(),this.B++,this.B>=this.C&&this.F())};var Sy,TB;g.hu=Kc();Sy=Ed()||Jc("iPod");TB=Jc("iPad");g.Ky=g.Nc();g.Dt=Lc();g.oz=Mc()&&!Fd();var $f={},fg=null;var zg=0,Ag=0;var ig=[];hg.prototype.clone=function(){return jg(this.u,this.A,this.w-this.A)};
hg.prototype.clear=function(){this.u=null;this.o=this.w=this.A=0;this.B=!1};
hg.prototype.reset=function(){this.o=this.A};mg.prototype.reset=function(){this.o.reset();this.u=this.w=-1};rg.prototype.length=function(){return this.o.length};
rg.prototype.end=function(){var a=this.o;this.o=[];return a};ug.prototype.reset=function(){this.w=[];this.o.end();this.u=0};var Jg="function"==typeof Uint8Array,Kg=[];Ig.prototype.toString=function(){return this.Fd.toString()};
Ig.prototype.clone=function(){return new this.constructor(Xg(this.Fd))};var Ij;Ij=["av.key","js","unreleased"].slice(-1)[0];var Rh=document,hi=window;g.h=Yg.prototype;g.h.isEnabled=function(){return navigator.cookieEnabled};
g.h.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.ST;d=c.sO||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.Dy}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";k=k?";path="+k:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.H)()+1E3*l)).toUTCString();this.o.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+
e:"")};
g.h.get=function(a,b){for(var c=a+"=",d=(this.o.cookie||"").split(";"),e=0,f;e<d.length;e++){f=oc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{Dy:0,path:b,domain:c});return d};
g.h.te=function(){return Zg(this).keys};
g.h.Ed=function(){return Zg(this).values};
g.h.isEmpty=function(){return!this.o.cookie};
g.h.clear=function(){for(var a=Zg(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Lq=new Yg("undefined"==typeof document?null:document);var sba=yb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});g.O1={wv:["BC","AD"],vv:["Before Christ","Anno Domini"],Hv:"JFMAMJJASOND".split(""),Ov:"JFMAMJJASOND".split(""),Aq:"January February March April May June July August September October November December".split(" "),Fq:"January February March April May June July August September October November December".split(" "),Dq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Gq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Kq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Iq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Eq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Hq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),BD:"SMTWTFS".split(""),Pv:"SMTWTFS".split(""),Nv:["Q1","Q2","Q3","Q4"],Lv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],xq:["AM","PM"],Zm:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Jq:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],qv:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Nk:6,Sv:[5,6],Ok:5};
g.O1={wv:["av. J.-C.","ap. J.-C."],vv:["avant J\u00e9sus-Christ","apr\u00e8s J\u00e9sus-Christ"],Hv:"JFMAMJJASOND".split(""),Ov:"JFMAMJJASOND".split(""),Aq:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),Fq:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),Dq:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),Gq:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),
Kq:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),Iq:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),Eq:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),Hq:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),BD:"DLMMJVS".split(""),Pv:"DLMMJVS".split(""),Nv:["T1","T2","T3","T4"],Lv:["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],xq:["AM","PM"],Zm:["EEEE d MMMM y","d MMMM y","d MMM y","dd/MM/y"],Jq:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],qv:["{1} '\u00e0' {0}",
"{1} '\u00e0' {0}","{1} '\u00e0' {0}","{1} {0}"],Nk:0,Sv:[5,6],Ok:3};g.h=g.eh.prototype;g.h.Zw=g.O1.Nk;g.h.bx=g.O1.Ok;g.h.clone=function(){var a=new g.eh(this.date);a.Zw=this.Zw;a.bx=this.bx;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.add=function(a){if(a.o||a.months){var b=this.getMonth()+a.months+12*a.o,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.days&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),dh(this,a.getDate()))};
g.h.toString=function(){return[this.getFullYear(),g.ed(this.getMonth()+1,2),g.ed(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};var fh=g.Ia;var vba=/https?:\/\/[^\/]+/,tba={FP:"allow-forms",GP:"allow-modals",HP:"allow-orientation-lock",IP:"allow-pointer-lock",JP:"allow-popups",KP:"allow-popups-to-escape-sandbox",LP:"allow-presentation",MP:"allow-same-origin",NP:"allow-scripts",OP:"allow-top-navigation",PP:"allow-top-navigation-by-user-activation"},yba=yb(function(){return uba()});var Pba={oS:1,hT:2,OR:3};g.h=nh.prototype;g.h.Yc=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new nh(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof nh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};g.h=g.ph.prototype;g.h.clone=function(){return new g.ph(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Qd?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var th={};var Ph=!!window.google_async_iframe_id,Qh=Ph&&window.parent||window;Xb(g.Yb("//fonts.googleapis.com/css"));var kca={NONE:0,DQ:1};Vh.prototype.isVisible=function(){return this.Ci?.3<=this.vb:.5<=this.vb};var Ci={lv:0,NQ:1},Qba={lv:0,nR:1,oR:2},lca={lv:0,AQ:1,HQ:2,wS:3},Oba={NONE:0,xR:1,UQ:2};Wh.prototype.getValue=function(){return this.u};
g.r(Xh,Wh);Xh.prototype.setValue=function(a){if(null!==this.u||!g.Jb(this.w,a))return!1;this.u=a;return!0};
g.r(Yh,Wh);Yh.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
g.r(Zh,Wh);Zh.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};$h.prototype.disable=function(){this.u=!1};
$h.prototype.enable=function(){this.u=!0};
$h.prototype.isEnabled=function(){return this.u};
$h.prototype.reset=function(){this.o={};this.u=!0;this.w={}};g.Zj=!g.he&&!Mc();ei.prototype.now=function(){return 0};
ei.prototype.u=function(){return 0};
ei.prototype.w=function(){return 0};
ei.prototype.o=function(){return 0};g.r(gi,ei);gi.prototype.now=function(){return fi()&&hi.performance.now?hi.performance.now():ei.prototype.now.call(this)};
gi.prototype.u=function(){return fi()&&hi.performance.memory?hi.performance.memory.totalJSHeapSize||0:ei.prototype.u.call(this)};
gi.prototype.w=function(){return fi()&&hi.performance.memory?hi.performance.memory.usedJSHeapSize||0:ei.prototype.w.call(this)};
gi.prototype.o=function(){return fi()&&hi.performance.memory?hi.performance.memory.jsHeapSizeLimit||0:ei.prototype.o.call(this)};ji.prototype.isVisible=function(){return 1===ii(Rh)};var Fba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;ni.prototype.jc=function(a,b,c,d){a=a+"//"+b+c;var e=Hba(this)-c.length-d.length;if(0>e)return"";this.o.sort(function(p,t){return p-t});
c=null;b="";for(var f=0;f<this.o.length;f++)for(var k=this.o[f],l=this.u[k],m=0;m<l.length;m++){if(!e){c=null==c?k:c;break}var n=qi(l[m],this.w,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.w;break}this.A&&(b=e,n[b-1]==this.w&&--b,a+=n.substr(0,b),b=this.w,e=0);c=null==c?k:c}}f="";null!=c&&(f=b+"trn="+c);return a+f+d};vi.prototype.setInterval=function(a,b){return hi.setInterval(a,b)};
vi.prototype.clearInterval=function(a){hi.clearInterval(a)};
vi.prototype.setTimeout=function(a,b){return hi.setTimeout(a,b)};
vi.prototype.clearTimeout=function(a){hi.clearTimeout(a)};
Ja(vi);zi.prototype.getContext=function(){if(!this.o){if(!hi)throw Error("Context has not been set and window is undefined.");this.o=vi.getInstance()}return this.o};
Ja(zi);g.Sa(Ai,Ig);Di.prototype.iu=function(a){if("string"===typeof a&&0!=a.length){var b=this.Ya;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.o[e])&&e.setValue(d)}}}};
Ja(Di);var P1=null;var Ki=g.v.performance,kra=!!(Ki&&Ki.mark&&Ki.measure&&Ki.clearMarks),Ii=yb(function(){var a;if(a=kra){var b;if(null===P1){P1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(P1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=P1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Ji.prototype.disable=function(){this.o=!1;this.events!=this.u.google_js_reporting_queue&&(Ii()&&(0,g.y)(this.events,Li),this.events.length=0)};
Ji.prototype.start=function(a,b){if(!this.o)return null;var c=Hi()||Gi();c=new Sba(a,b,c);var d="goog_"+c.label+"_"+c.uniqueId+"_start";Ki&&Ii()&&Ki.mark(d);return c};
Ji.prototype.end=function(a){if(this.o&&"number"===typeof a.value){var b=Hi()||Gi();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Ki&&Ii()&&Ki.mark(b);!this.o||2048<this.events.length||this.events.push(a)}};Oi.prototype.u=function(a,b,c,d,e){e=e||this.A;try{var f=new ni;f.A=!0;ri(f,1,"context",a);b.error&&b.meta&&b.id||(b=new Pi(Qi(b)));b.msg&&ri(f,2,"msg",b.msg.substring(0,512));var k=b.meta||{};if(this.o)try{this.o(k)}catch(m){}if(d)try{d(k)}catch(m){}b=[k];f.o.push(3);f.u[3]=b;var l=mi();l.u&&ri(f,4,"top",l.u.url||"");ri(f,5,"url",l.o.url||"");Ei(this.B,e,f,!1,c)}catch(m){try{Ei(this.B,e,{context:"ecmserr",rctx:a,msg:Qi(m),url:l&&l.o.url},!1,c)}catch(n){}}return this.w};
g.r(Pi,Fi);var Ni,Si,Mi=new Ji;(function(){Ni=new Rba;Si=new Oi;var a=Sh();a&&a.document&&("complete"==a.document.readyState?Ui():Mi.o&&ah(a,"load",function(){Ui()}))})();var Uba=Date.now(),bj=-1,$i=-1,Gk,cj=-1,aj=!1;var om={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Ck={FD:"start",sD:"firstquartile",zD:"midpoint",ID:"thirdquartile",lD:"complete",yD:"metric",PAUSE:"pause",DD:"resume",ED:"skip",LD:"viewable_impression",AD:"mute",JD:"unmute",tD:"fullscreen",rD:"exitfullscreen",kD:"bufferstart",jD:"bufferfinish",uD:"fully_viewable_audible_half_duration_impression",xD:"measurable_impression",fD:"abandon",qD:"engagedview",vD:"impression",mD:"creativeview",wD:"loaded",rS:"progress",CLOSE:"close",
pQ:"collapse",YR:"overlay_resize",ZR:"overlay_unmeasurable_impression",aS:"overlay_unviewable_impression",cS:"overlay_viewable_immediate_impression",bS:"overlay_viewable_end_of_session_impression",nD:"custom_metric_viewable"},yda="start firstquartile midpoint thirdquartile resume loaded".split(" "),zda=["start","firstquartile","midpoint","thirdquartile"],Bca=["abandon"],Il={UNKNOWN:-1,FD:0,sD:1,zD:2,ID:3,lD:4,yD:5,PAUSE:6,DD:7,ED:8,LD:9,AD:10,JD:11,tD:12,rD:13,uD:14,xD:15,fD:16,qD:17,vD:18,mD:19,
wD:20,nD:21,kD:22,jD:23};var Wba={CP:"addEventListener",WQ:"getMaxSize",XQ:"getScreenSize",YQ:"getState",ZQ:"getVersion",xS:"removeEventListener",AR:"isViewable"};if(Rh&&Rh.URL){var lra,lh=Rh.URL;lra=!!lh&&0<xba().length;Si.w=!lra};lj.prototype.update=function(a){a&&a.document&&(this.F=Uh(!1,a,this.isMobileDevice),this.o=Uh(!0,a,this.isMobileDevice),nj(this,a),mj(this,a))};
Ja(lj);var mra=new nh(0,0,0,0);sj.prototype.ua=function(){return this.G};tj.prototype.cancel=function(){wi().clearTimeout(this.o);this.o=null};
tj.prototype.schedule=function(){var a=this;this.o=wi().setTimeout(Bi(Di.getInstance().u.o,Wi(143,function(){a.u++;a.w.Gy()})),Vba())};g.h=uj.prototype;g.h.bz=function(){return this.Wo()};
g.h.Wo=function(){return!1};
g.h.initialize=function(){return this.I=!0};
g.h.zj=function(){return this.o.U};
g.h.El=function(){return this.o.P};
g.h.getName=function(){return this.o.aa};
g.h.fh=function(){return this.o.sx()};
g.h.sx=function(){return{}};
g.h.qg=function(){return this.o.F};
g.h.Zy=function(){var a=lj.getInstance();a.o=Uh(!0,this.Bd,a.isMobileDevice)};
g.h.az=function(){mj(lj.getInstance(),this.Bd)};
g.h.jH=function(){nj(lj.getInstance(),this.Bd)};
g.h.Ex=function(){return this.w.o};
g.h.Gy=function(){};
g.h.isActive=function(){return this.o.B};
g.h.Hj=function(a){var b=this.o,c=a.qg();this.o=c>=this.F?a:this;b!==this.o?(this.B=this.o.B,vj(this)):this.B!==this.o.B&&(this.B=this.o.B,vj(this))};
g.h.oh=function(a){if(a.u===this.o){var b;if(!(b=this.Z)){b=this.w;var c=this.G;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.w==a.w)b=b.o,c=a.o,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.w=a;b&&Aj(this)}};
g.h.Mf=function(){return this.G};
g.h.dispose=function(){this.ub=!0};
g.h.ea=function(){return this.ub};g.h=Bj.prototype;g.h.Zs=function(){return!0};
g.h.Zl=function(){};
g.h.tn=function(){if(this.element){var a=this.element,b=this.u.o.Bd;try{try{var c=hj(a.getBoundingClientRect())}catch(n){c=new nh(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Gh(a,b),k=f.x,l=f.y;var m=new nh(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=mra.clone()}this.o=m}};
g.h.nw=function(){this.B=this.u.w.o};
g.h.dg=function(){this.tn();this.A=new sj(this.u.w,this.element,this.o,this.A.B,this.A.o,this.A.A,Zi(),this.A.w)};
g.h.dispose=function(){if(!this.ea()){var a=this.u;g.db(a.A,this);a.G&&this.Mf()&&zj(a);this.Zl();this.ub=!0}};
g.h.ea=function(){return this.ub};
g.h.fh=function(){return this.u.fh()};
g.h.qg=function(){return this.u.qg()};
g.h.zj=function(){return this.u.zj()};
g.h.El=function(){return this.u.El()};
g.h.Hj=function(){};
g.h.oh=function(){this.dg()};
g.h.Mf=function(){return this.P};g.h=Cj.prototype;g.h.qg=function(){return this.o.qg()};
g.h.zj=function(){return this.o.zj()};
g.h.El=function(){return this.o.El()};
g.h.create=function(a,b,c){var d=null;this.o&&(d=this.Oo(a,b,c),xj(this.o,d));return d};
g.h.Hy=function(){return this.Tl()};
g.h.Tl=function(){return!1};
g.h.init=function(a){return this.o.initialize()?(xj(this.o,this),this.A=a,!0):!1};
g.h.Hj=function(a){0==a.qg()&&this.A(a.zj(),this)};
g.h.oh=function(){};
g.h.Mf=function(){return!1};
g.h.dispose=function(){this.ub=!0};
g.h.ea=function(){return this.ub};
g.h.fh=function(){return{}};Fj.prototype.add=function(a,b,c){++this.w;var d=this.w/4096;this.o.push(cca(new Dj(a,b,c),d));this.u=!0;return this};Jj.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Hj(this.o);0<b.length&&(a+="?"+b);return a};Ja(Mj);Nj.prototype.update=function(a,b,c){a&&(this.o+=b,this.u+=b,this.A+=b,this.w=Math.max(this.w,this.A));if(void 0===c?!a:c)this.A=0};var hca=[1,.75,.5,.3,0];Oj.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var k=this.u[e],l=0<b&&b>=k;k=!(0<a&&a>=k)||c;this.o[e].update(f&&l,d,!f||k)}};Xj.prototype.update=function(a,b,c,d){this.F=-1!=this.F?Math.min(this.F,b.vb):b.vb;this.M=Math.max(this.M,b.vb);this.R=-1!=this.R?Math.min(this.R,b.Wd):b.Wd;this.V=Math.max(this.V,b.Wd);this.ma.update(b.Wd,c.Wd,b.o,a,d);this.u.update(b.vb,c.vb,b.o,a,d);c=d||c.Ci!=b.Ci?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.o;this.aa.update(c,a,b)};
Xj.prototype.Ei=function(){return this.aa.w>=this.ga};var jca=new nh(0,0,0,0);g.r(ak,g.A);g.h=ak.prototype;g.h.X=function(){this.Nd.o&&(this.li.Tt&&(bh(this.Nd.o,"mouseover",this.li.Tt),this.li.Tt=null),this.li.St&&(bh(this.Nd.o,"mouseout",this.li.St),this.li.St=null));this.Km&&this.Km.dispose();this.Ib&&this.Ib.dispose();delete this.Ko;delete this.Rs;delete this.EC;delete this.Nd.Ah;delete this.Nd.o;delete this.li;delete this.Km;delete this.Ib;delete this.Ya;g.A.prototype.X.call(this)};
g.h.ih=function(){return this.Ib?this.Ib.o:this.position};
g.h.iu=function(a){Di.getInstance().iu(a)};
g.h.Mf=function(){return!1};
g.h.Zn=function(){return new Xj};
g.h.Pd=function(){return this.Ko};
g.h.zx=function(a){return dk(this,a,1E4)};
g.h.sa=function(a,b,c,d,e,f,k){this.Rj||(this.In&&(a=this.Vq(a,c,e,k),d=d&&this.ie.vb>=(this.Ci()?.3:.5),this.Zu(f,a,d),this.Nl=b,0<a.vb&&-1===this.rC&&(this.rC=b),-1==this.sC&&this.Ei()&&(this.sC=b),-2==this.Qs&&(this.Qs=pj(this.ih())?a.vb:-1),this.ie=a),this.Rs(this))};
g.h.Zu=function(a,b,c){this.Pd().update(a,b,this.ie,c)};
g.h.Pr=function(){return new Vh};
g.h.Vq=function(a,b,c,d){c=this.Pr();c.o=b;b=wi().u;b=0===ii(Rh)?-1:b.isVisible()?0:1;c.u=b;c.vb=this.mr(a);c.Ci=this.Ci();c.Wd=d;return c};
g.h.Gx=function(a,b){if(-1==this.Nl)return 0;var c=a-this.Nl;return c>b?0:c};
g.h.Vr=function(a){return this.Gx(a,1E4)};
g.h.mr=function(a){return 0===this.opacity&&1===ci(this.Ya,"opac")?0:a};
g.h.Ci=function(){return!1};
g.h.Np=function(){return!1};
g.h.xf=function(){return 0};
g.h.Ei=function(){return this.Ko.Ei()};var fk="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};ek.prototype.next=function(){throw fk;};
ek.prototype.Zf=function(){return this};g.r(ik,Vh);mk.prototype.getValue=function(){return this.u};
mk.prototype.update=function(a,b){32<=a||(this.o&1<<a&&!b?this.u&=~(1<<a):this.o&1<<a||!b||(this.u|=1<<a),this.o|=1<<a)};g.r(nk,Xj);
nk.prototype.update=function(a,b,c,d){if(!b.paused){Xj.prototype.update.call(this,a,b,c,d);var e=jk(b)&&jk(c),f=.5<=(d?Math.min(b.vb,c.vb):c.vb);jj(b.volume)&&(this.A=-1!=this.A?Math.min(this.A,b.volume):b.volume,this.C=Math.max(this.C,b.volume));f&&(this.U+=a,this.I+=e?a:0);this.o.update(b.vb,c.vb,b.o,a,d,e);this.w.update(!0,a);this.B.update(e,a);this.P.update(c.fullscreen,a);this.oa.update(e&&!f,a);a=Math.floor(b.w/1E3);this.ba.update(a,b.isVisible());this.da.update(a,1<=b.vb);this.ha.update(a,jk(b))}};g.r(pk,vca);pk.prototype.w=function(){return!0};
pk.prototype.B=function(){return!1};
pk.prototype.getId=function(){var a=this,b=Kb(Ck,function(c){return c==a.A});
return Il[b].toString()};
pk.prototype.toString=function(){var a="";this.B()&&(a+="c");this.o&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.r(sk,Bj);sk.prototype.jy=function(a){var b=1==ci(this.Ya,"od");return aca(a,this.B,this.element,b)};
sk.prototype.ow=function(){if(1===ci(this.Ya,"osddt")||"mraid"===this.getName()||"iem"===this.getName()||"omid"===this.getName())this.timestamp=Zi();else{var a=this.u.w;this.timestamp=-1===a.time?Zi():a.time}};
sk.prototype.dg=function(){this.ow();this.tn();this.nw();var a=this.o;var b=this.B;a=a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new nh(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left)):new nh(0,0,0,0);b=a.top>=a.bottom||a.left>=a.right?new nh(0,0,0,0):a;a=this.u.w;var c=0,d=0,e=0;0<(this.o.bottom-this.o.top)*(this.o.right-this.o.left)&&(this.jy(b)?b=new nh(0,0,0,0):(c=lj.getInstance().A,e=new nh(0,c.height,c.width,0),c=qj(b,
this.o),d=qj(b,lj.getInstance().o),e=qj(b,e)));b=b.top>=b.bottom||b.left>=b.right?new nh(0,0,0,0):oh(b,-this.o.left,-this.o.top);oj()||(d=c=0);this.A=new sj(a,this.element,this.o,b,c,d,this.timestamp,e)};
sk.prototype.getName=function(){return this.u.getName()};var nra=new nh(0,0,0,0);g.r(tk,sk);g.h=tk.prototype;g.h.Zs=function(){this.w();return!0};
g.h.oh=function(){sk.prototype.dg.call(this)};
g.h.ow=function(){};
g.h.tn=function(){};
g.h.dg=function(){this.w();sk.prototype.dg.call(this)};
g.h.Hj=function(a){a=a.isActive();a!==this.F&&(a?this.w():(lj.getInstance().o=new nh(0,0,0,0),this.o=new nh(0,0,0,0),this.B=new nh(0,0,0,0),this.timestamp=-1));this.F=a};var Q1={},Aca=(Q1.firstquartile=0,Q1.midpoint=1,Q1.thirdquartile=2,Q1.complete=3,Q1);g.r(uk,ak);g.h=uk.prototype;g.h.Mf=function(){return!0};
g.h.zx=function(a){return dk(this,a,Math.max(1E4,this.w/3))};
g.h.Vr=function(a){return 2==this.Cc?0:ak.prototype.Gx.call(this,a,Math.max(1E4,this.w/3))};
g.h.sa=function(a,b,c,d,e,f,k){var l=this,m=this.P(this)||{};g.Sb(m,e);this.w=m.duration||this.w;this.G=m.isVpaid||this.G;this.Z=m.isYouTube||this.Z;e=wca(this,b);1===yk(this)&&(f=e);ak.prototype.sa.call(this,a,b,c,d,m,f,k);this.Gi&&this.Gi.o&&(0,g.y)(this.C,function(n){n.o||(n.o=rk(n,l))})};
g.h.Zu=function(a,b,c){ak.prototype.Zu.call(this,a,b,c);xk(this).update(a,b,this.ie,c);this.ga=jk(this.ie)&&jk(b);-1==this.V&&this.da&&(this.V=this.Pd().w.o);this.yc.w=0;a=this.Ei();b.isVisible()&&kk(this.yc,"vs");a&&kk(this.yc,"vw");jj(b.volume)&&kk(this.yc,"am");jk(b)&&kk(this.yc,"a");this.Kj&&kk(this.yc,"f");-1!=b.u&&(kk(this.yc,"bm"),1==b.u&&kk(this.yc,"b"));jk(b)&&b.isVisible()&&kk(this.yc,"avs");this.ga&&a&&kk(this.yc,"avw");0<b.vb&&kk(this.yc,"pv");zk(this,this.Pd().w.o,!0)&&kk(this.yc,"gdr");
2E3<=Uj(this.Pd().u,1)&&kk(this.yc,"pmx")};
g.h.Zn=function(){return new nk};
g.h.Pd=function(){return this.Ko};
g.h.Pr=function(){return new ik};
g.h.Vq=function(a,b,c,d){a=ak.prototype.Vq.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Kj;a.paused=2==this.Cc;a.volume=c.volume;jj(a.volume)||(this.ma++,b=this.ie,jj(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.w=void 0!==c&&0<=c?c:-1;return a};
g.h.mr=function(a){return lj.getInstance(),this.Kj?1:ak.prototype.mr.call(this,a)};
g.h.xf=function(){return 1};
g.h.getDuration=function(){return this.w};var ora=(0,g.H)();var Lk={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Kca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Mk.prototype.reset=function(){this.o=[];this.u=[]};
Ja(Mk);var Rk=Mk.getInstance();Ja(Vk);g.r(Xk,Cj);g.h=Xk.prototype;g.h.getName=function(){return(this.u?this.u:this.o).getName()};
g.h.fh=function(){return(this.u?this.u:this.o).fh()};
g.h.qg=function(){return(this.u?this.u:this.o).qg()};
g.h.init=function(a){var b=!1;(0,g.y)(this.w,function(c){c.initialize()&&(b=!0)});
b&&(this.A=a,xj(this.o,this));return b};
g.h.dispose=function(){(0,g.y)(this.w,function(a){a.dispose()});
Cj.prototype.dispose.call(this)};
g.h.Hy=function(){return kj(this.w,function(a){return a.bz()})};
g.h.Tl=function(){return kj(this.w,function(a){return a.Wo()})};
g.h.Oo=function(a,b,c){return new sk(a,this.o,b,c)};
g.h.oh=function(a){this.u=a.u};g.r(Yk,sk);g.h=Yk.prototype;g.h.Zs=function(){var a=this;this.I||(this.I=Zi());if(Vi(298,function(){return Rca(a)}))return!0;
wj(this.u,"msf");return!1};
g.h.tn=function(){};
g.h.jy=function(){return!1};
g.h.nw=function(){};
g.h.fh=function(){var a={};return Object.assign(this.u.fh(),(a.niot_obs=this.I,a.niot_cbk=this.G,a))};var Qca={threshold:[0,.3,.5,.75,1]};g.r($k,Yk);$k.prototype.getName=function(){return"nio"};
$k.prototype.Zl=function(){if(this.w&&this.element)try{this.w.unobserve(this.element),this.F?(this.F.unobserve(this.element),this.F=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
$k.prototype.dg=function(){var a=al(this);0<a.length&&Zk(this,a);Yk.prototype.dg.call(this)};var nl=Sy||TB;g.r(ql,Cj);ql.prototype.getName=function(){return"nio"};
ql.prototype.Tl=function(){return g.gl()?!1:!lj.getInstance().u&&null!=this.o.o.Bd.IntersectionObserver};
ql.prototype.Oo=function(a,b,c){return new $k(a,this.o,b,c)};g.r(sl,uj);sl.prototype.Ex=function(){return lj.getInstance().o};
sl.prototype.Wo=function(){var a=rl();this.F!==a&&(this.o!=this&&a>this.o.F&&(this.o=this,vj(this)),this.F=a);return 2==a};
Ja(sl);Ja(tl);ul.prototype.Gy=function(){xl(this,Sk(),!1)};
ul.prototype.A=function(){var a=oj(),b=Zi();a?(aj||(bj=b,(0,g.y)(Rk.o,function(c){var d=c.Pd();d.Z=ok(d,b,1!=c.Cc)})),aj=!0):(this.F=zl(this,b),aj=!1,Gk=b,(0,g.y)(Rk.o,function(c){c.In&&(c.Pd().G=b)}));
xl(this,Sk(),!a)};
Ja(ul);var vl=ul.getInstance();var Al=null,hm="",gm=!1;var R1=Gl([void 0,1,2,3,4,8,16]),S1=Gl([void 0,4,8,16]),pra={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Fl("p0",S1),p1:Fl("p1",S1),p2:Fl("p2",S1),p3:Fl("p3",S1),tos:"tos",mtos:"mtos",mtos1:El("mtos1",[0,2,4],!1,S1),mtos2:El("mtos2",[0,2,4],!1,S1),mtos3:El("mtos3",[0,2,4],!1,S1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Fl("a0",S1),a1:Fl("a1",S1),a2:Fl("a2",S1),a3:Fl("a3",S1),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm",std:"std",
efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Fl("c0",S1),c1:Fl("c1",S1),c2:Fl("c2",S1),c3:Fl("c3",S1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Fl("qmtos",R1),qnc:Fl("qnc",R1),qmv:Fl("qmv",R1),qnv:Fl("qnv",R1),raf:"raf",rafc:"rafc",lte:"lte",
ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Fl("ss0",S1),ss1:Fl("ss1",S1),ss2:Fl("ss2",S1),ss3:Fl("ss3",S1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},qra={c:Bl("c"),at:"at",atos:El("atos",
[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:Dl(),j:"dom",mtos:El("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Bl("ss"),vsv:wb("w2"),t:"t"},rra={atos:"atos",amtos:"amtos",avt:El("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Bl("ss"),t:"t"},sra={a:"a",tos:Dl(),at:"at",c:Bl("c"),mtos:El("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:wb("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},tra={tos:Dl(),at:"at",c:Bl("c"),mtos:El("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:wb("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:El("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return(0,g.Cc)(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Yca={PQ:"visible",UP:"audible",US:"time",VS:"timetype"},Ll={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.r(Ml,pk);Ml.prototype.getId=function(){return this.F};
Ml.prototype.B=function(){return!0};
Ml.prototype.w=function(a){var b=a.Pd(),c=a.getDuration();return kj(this.C,function(d){if(void 0!=d.o)var e=$ca(d,b);else b:{switch(d.B){case "mtos":e=d.u?b.B.w:b.w.o;break b;case "tos":e=d.u?b.B.o:b.w.o;break b}e=0}0==e?d=!1:(d=-1!=d.w?d.w:void 0!==c&&0<c?d.A*c:-1,d=-1!=d&&e>=d);return d})};g.r(Nl,pk);Nl.prototype.w=function(a){var b=Sj(a.Pd().o,1);return zk(a,b)};g.r(Ol,pk);Ol.prototype.w=function(a){return a.Pd().Ei()};g.r(Rl,ada);Rl.prototype.o=function(a){var b=new Pl;b.o=Ql(a,pra);b.w=Ql(a,rra);return b};g.r(Sl,tk);Sl.prototype.w=function(){var a=g.w("ima.admob.getViewability"),b=ci(this.Ya,"queryid");g.Ma(a)&&b&&a(b)};
Sl.prototype.getName=function(){return"gsv"};g.r(Tl,Cj);Tl.prototype.getName=function(){return"gsv"};
Tl.prototype.Tl=function(){var a=lj.getInstance();Di.getInstance();return a.u&&!1};
Tl.prototype.Oo=function(a,b,c){return new Sl(this.o,b,c)};g.r(Ul,tk);Ul.prototype.w=function(){var a=this,b=g.w("ima.bridge.getNativeViewability"),c=ci(this.Ya,"queryid");g.Ma(b)&&c&&b(c,function(d){g.Mb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.o=ij(d.opt_nativeViewBounds||{});var k=a.u.w;k.o=f?nra.clone():ij(e);a.timestamp=d.opt_nativeTime||-1;lj.getInstance().o=k.o;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Ul.prototype.getName=function(){return"nis"};g.r(Vl,Cj);Vl.prototype.getName=function(){return"nis"};
Vl.prototype.Tl=function(){var a=lj.getInstance();Di.getInstance();return a.u&&!1};
Vl.prototype.Oo=function(a,b,c){return new Ul(this.o,b,c)};g.r(Wl,uj);g.h=Wl.prototype;g.h.Wo=function(){return null!=this.u.af};
g.h.sx=function(){var a={};this.V&&(a.mraid=this.V);this.R&&(a.mlc=1);a.mtop=this.u.GO;this.C&&(a.mse=this.C);this.ba&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.h.Qh=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.u.af[a].apply(this.u.af,c)}catch(e){Yi(538,e,.01,function(f){f.method=a})}};
g.h.initialize=function(){var a=this;if(this.I)return!this.El();this.I=!0;if(2===this.u.compatibility)return this.C="ng",wj(this,"w"),!1;if(1===this.u.compatibility)return this.C="mm",wj(this,"w"),!1;lj.getInstance().G=!0;this.Bd.document.readyState&&"complete"==this.Bd.document.readyState?$l(this):fj(this.Bd,"load",function(){wi().setTimeout(Wi(292,function(){return $l(a)}),100)},292);
return!0};
g.h.Zy=function(){var a=lj.getInstance(),b=cm(this,"getMaxSize");a.o=new nh(0,b.width,b.height,0)};
g.h.az=function(){lj.getInstance().A=cm(this,"getScreenSize")};
g.h.dispose=function(){am(this);uj.prototype.dispose.call(this)};
Ja(Wl);g.h=dm.prototype;g.h.il=function(a){bk(a,!1);Mca(a)};
g.h.co=function(){};
g.h.zm=function(a,b,c,d){var e=this;this.u||(this.u=this.Iw());b=c?b:-1;a=null==this.u?new uk(hi,a,b,7):new uk(hi,a,b,7,new pk("measurable_impression",this.u),gda(this));a.jd=d;Cba(a.Ya);bi(a.Ya,"queryid",a.jd);a.iu("");oca(a,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Px.apply(e,g.ea(k))},function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];
return e.FF.apply(e,g.ea(k))});
(d=Vk.getInstance().o)&&ck(a,d);a.Nd.Ah&&tl.getInstance();return a};
g.h.Hj=function(a){switch(a.qg()){case 0:if(a=Vk.getInstance().o)a=a.o,g.db(a.A,this),a.G&&this.Mf()&&zj(a);fm();break;case 2:wl()}};
g.h.oh=function(){};
g.h.Mf=function(){return!1};
g.h.FF=function(a,b){a.Rj=!0;switch(a.xf()){case 1:lm(this,a,b);break;case 2:this.uu(a)}this.Bu()};
g.h.NF=function(a){Bk(a,0);return Ek(a,"start",oj())};
g.h.Dk=function(a,b,c){xl(vl,[a],!oj());return this.jh(a,b,c)};
g.h.jh=function(a,b,c){return Ek(a,c,oj())};
g.h.IF=function(a){return mm(a,"firstquartile",1)};
g.h.KF=function(a){a.da=!0;return mm(a,"midpoint",2)};
g.h.OF=function(a){return mm(a,"thirdquartile",3)};
g.h.GF=function(a){var b=mm(a,"complete",4);vk(a);return b};
g.h.WB=function(a,b,c){b=oj();2!=a.Cc||b||(a.Pd().G=Zi());xl(vl,[a],!b);2==a.Cc&&(a.Cc=1);return Ek(a,c,b)};
g.h.MF=function(a,b){var c=this.Dk(a,b||{},"skip");vk(a);return c};
g.h.JF=function(a,b){bk(a,!0);return this.Dk(a,b||{},"fullscreen")};
g.h.HF=function(a,b){bk(a,!1);return this.Dk(a,b||{},"exitfullscreen")};
g.h.fu=function(a,b,c){b=a.Pd();b.Z=ok(b,Zi(),1!=a.Cc);xl(vl,[a],!oj());1==a.Cc&&(a.Cc=2);return Ek(a,c,oj())};
g.h.LF=function(a){xl(vl,[a],!oj());return a.u()};
g.h.ls=function(a){xl(vl,[a],!oj());this.SB(a);vk(a);return a.u()};
g.h.Px=function(){};
g.h.uu=function(){};
g.h.SB=function(){};
g.h.Yy=function(){};
g.h.Bu=function(){};
g.h.Iw=function(){};var rm=(0,g.H)(),tm=!1,um=!1,vm=!1,nda=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return sm(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return sm(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return sm(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return sm(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return sm(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return um},
function(){return vm},
function(){return sm(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return sm(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||qm(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return qm(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return sm(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return qm(a.CSS.supports)},
function(){return qm(Intl.Collator)},
function(a){return qm(a.document.createElement("dialog").show)},
function(){return sm(8)},
function(a){return qm(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return qm(a.document.createElement("div").animate)},
function(a){return qm(a.document.documentElement.webkitRequestFullScreen)},
function(a){return qm(a.navigator.getBattery)},
function(a){return qm(a.navigator.permissions.query)},
function(){return!1},
function(){return sm(9)},
function(){return qm(webkitRequestAnimationFrame)},
function(a){return qm(a.BroadcastChannel.call)},
function(a){return qm(a.FontFace)},
function(a){return qm(a.Gamepad)},
function(){return sm(10)},
function(a){return qm(a.MutationEvent)},
function(a){return qm(a.MutationObserver)},
function(a){return qm(a.crypto.getRandomValues)},
function(a){return qm(a.document.body.createShadowRoot)},
function(a){return qm(a.document.body.webkitCreateShadowRoot)},
function(a){return qm(a.fetch)},
function(){return sm(11)},
function(a){return qm(a.navigator.serviceWorker.register)},
function(a){return qm(a.navigator.webkitGetGamepads)},
function(a){return qm(a.speechSynthesis.speak)},
function(a){return qm(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return sm(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return sm(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return sm(14)},
function(a){return"undefined"==typeof a.navigator.ZT},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],oda=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],pda=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Sa(wm,rda);wm.prototype.reset=function(){this.o[0]=1732584193;this.o[1]=4023233417;this.o[2]=2562383102;this.o[3]=271733878;this.A=this.w=0};
wm.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.u,d=this.B,e=this.w,f=0;f<b;){if(0==e)for(;f<=c;)xm(this,a,f),f+=this.u;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.u){xm(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.u){xm(this,d);e=0;break}}this.w=e;this.A+=b};
wm.prototype.digest=function(){var a=Array((56>this.w?this.u:2*this.u)-this.w);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.A;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.o[b]>>>d&255;return a};g.r(ym,Rl);ym.prototype.o=function(a){var b=Rl.prototype.o.call(this,a);var c=rm=(0,g.H)();var d=sm(5);c=(um?!d:d)?c|2:c&-3;d=sm(2);c=(vm?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=qda());b.B=this.u;b.C=Ql(a,qra,c,"h",zm("kArwaWEsTs"));b.A=Ql(a,sra,{},"h",zm("b96YPMzfnx"));b.u=Ql(a,tra,{},"h",zm("yb8Wev6QDg"));return b};Am.prototype.o=function(){return g.w(this.u)};g.r(Bm,Am);Bm.prototype.o=function(a){if(!a.pk)return Am.prototype.o.call(this,a);var b=this.A[a.pk];if(b)return function(c,d,e){b.u(c,d,e)};
Yi(393,Error());return null};g.r(Cm,dm);g.h=Cm.prototype;g.h.co=function(a,b){var c=this,d=Vk.getInstance();if(null!=d.o)switch(d.o.getName()){case "nis":var e=vda(this,a,b);break;case "gsv":e=uda(this,a,b);break;case "exc":e=wda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=jda(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.xf()&&(e.P==g.Ia&&(e.P=function(f){return c.Yy(f)}),tda(this,e,b));
return e};
g.h.Yy=function(a){a.u=0;a.U=0;if("h"==a.A||"n"==a.A){var b;Di.getInstance();if(a.pk&&Fm(this)){var c=this.G[a.pk];c?b=function(e){return c.o(e)}:null!==c&&Yi(379,Error())}else b=g.w("ima.common.getVideoMetadata");
if(g.Ma(b))try{var d=b(a.jd)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.A)if(b=g.w("ytads.bulleit.getVideoMetadata"),g.Ma(b))try{d=b(a.jd)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.A)if(b=g.w("ima.common.getVideoMetadata"),g.Ma(b))try{d=b(a.jd)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===d?a.u|=8:null===d?a.u|=16:g.Mb(d)?a.u|=32:null!=d.errorCode&&(a.U=d.errorCode,a.u|=64));null==d&&(d={});kda(d,a);jj(d.volume)&&jj(void 0)&&(d.volume*=NaN);return d};
g.h.Iw=function(){if(Fm(this))return new Bm("ima.common.triggerExternalActivityEvent",this.w,this.G);var a=xda(this);return null!=a?new Am(a,this.w):null};
g.h.uu=function(a){!a.o&&a.Rj&&km(this,a,"overlay_unmeasurable_impression")&&(a.o=!0)};
g.h.SB=function(a){a.gC&&(a.Ei()?km(this,a,"overlay_viewable_end_of_session_impression"):km(this,a,"overlay_unviewable_impression"),a.gC=!1)};
g.h.Px=function(){};
g.h.Bu=function(){};
g.h.zm=function(a,b,c,d){a=dm.prototype.zm.call(this,a,b,c,d);this.B&&(b=this.C,null==a.B&&(a.B=new qca),b.o[a.jd]=a.B,a.B.B=ora);return a};
g.h.il=function(a){a&&1==a.xf()&&this.B&&delete this.C.o[a.jd];return dm.prototype.il.call(this,a)};
Ja(Cm);var Dm=new Pl;Dm.B="stopped";Dm.o="stopped";Dm.w="stopped";Dm.C="stopped";Dm.A="stopped";Dm.u="stopped";Object.freeze(Dm);var ura=Ti(193,Hm,nm);g.Ga("Goog_AdSense_Lidar_sendVastEvent",ura,void 0);var vra=Wi(194,function(a,b){b=void 0===b?{}:b;var c=Em(Cm.getInstance(),a,b);return Gm(c)});
g.Ga("Goog_AdSense_Lidar_getViewability",vra,void 0);var wra=Ti(195,function(){return yi()},void 0);
g.Ga("Goog_AdSense_Lidar_getUrlSignalsArray",wra,void 0);var xra=Wi(196,function(){return g.Jk(yi())});
g.Ga("Goog_AdSense_Lidar_getUrlSignalsList",xra,void 0);var Hea=(new Date).getTime();g.h=g.Mm.prototype;g.h.Ed=function(){Om(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.u[this.o[b]]);return a};
g.h.te=function(){Om(this);return this.o.concat()};
g.h.isEmpty=function(){return 0==this.w};
g.h.clear=function(){this.u={};this.Vh=this.w=this.o.length=0};
g.h.remove=function(a){return Nm(this.u,a)?(delete this.u[a],this.w--,this.Vh++,this.o.length>2*this.w&&Om(this),!0):!1};
g.h.get=function(a,b){return Nm(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Nm(this.u,a)||(this.w++,this.o.push(a),this.Vh++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.te(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new g.Mm(this)};
g.h.Zf=function(a){Om(this);var b=0,c=this.Vh,d=this,e=new ek;e.next=function(){if(c!=d.Vh)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw fk;var f=d.o[b++];return a?f:d.u[f]};
return e};g.Pm.prototype.toString=function(){var a=[],b=this.B;b&&a.push(Wm(b,yra,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(Wm(b,yra,!0),"@"),a.push(bd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.A,null!=c&&a.push(":",String(c));if(c=this.u)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(Wm(c,"/"==c.charAt(0)?zra:Ara,!0));(c=this.w.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Wm(c,Bra));return a.join("")};
g.Pm.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.Qm(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Rm(b,a.o):c=null!=a.A;var d=a.u;if(c)g.Sm(b,a.A);else if(c=!!a.u){if("/"!=d.charAt(0))if(this.o&&!this.u)d="/"+d;else{var e=b.u.lastIndexOf("/");-1!=e&&(d=b.u.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=cc(e,"/");e=e.split("/");for(var f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&k==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.u=d:c=""!==a.w.toString();c?Tm(b,a.w.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Pm.prototype.clone=function(){return new g.Pm(this)};
var yra=/[#\/\?@]/g,Ara=/[#\?:]/g,zra=/[#\?]/g,Dda=/[#\?@]/g,Bra=/#/g;g.h=Vm.prototype;g.h.add=function(a,b){Ym(this);this.w=null;a=Zm(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.h.remove=function(a){Ym(this);a=Zm(this,a);return Nm(this.o.u,a)?(this.w=null,this.u=this.u-this.o.get(a).length,this.o.remove(a)):!1};
g.h.clear=function(){this.o=this.w=null;this.u=0};
g.h.isEmpty=function(){Ym(this);return 0==this.u};
g.h.forEach=function(a,b){Ym(this);this.o.forEach(function(c,d){(0,g.y)(c,function(e){a.call(b,e,d,this)},this)},this)};
g.h.te=function(){Ym(this);for(var a=this.o.Ed(),b=this.o.te(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.Ed=function(a){Ym(this);var b=[];if("string"===typeof a)$m(this,a)&&(b=g.fb(b,this.o.get(Zm(this,a))));else{a=this.o.Ed();for(var c=0;c<a.length;c++)b=g.fb(b,a[c])}return b};
g.h.set=function(a,b){Ym(this);this.w=null;a=Zm(this,a);$m(this,a)&&(this.u=this.u-this.o.get(a).length);this.o.set(a,[b]);this.u=this.u+1;return this};
g.h.get=function(a,b){if(!a)return b;var c=this.Ed(a);return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.w)return this.w;if(!this.o)return"";for(var a=[],b=this.o.te(),c=0;c<b.length;c++){var d=b[c],e=bd(d);d=this.Ed(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+bd(d[f]));a.push(k)}}return this.w=a.join("&")};
g.h.clone=function(){var a=new Vm;a.w=this.w;this.o&&(a.o=this.o.clone(),a.u=this.u);return a};var bn="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Fda=/\bocr\b/;var Gda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.Sa(en,Ig);g.Sa(fn,Ig);var Hda=[1];g.Sa(gn,Ig);g.Sa(hn,Ig);g.Sa(jn,Ig);g.Sa(kn,Ig);g.Sa(ln,Ig);g.Sa(nn,Ig);g.Sa(pn,Ig);var Kda=[3,6,4],Lda=[[1,2]],Mda=[1],mn=[[1,2,3]],on=[[1,2,3]];qn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.u[a]!=b&&(this.u[a]=b,this.o=-1)};
qn.prototype.get=function(a){return!!this.u[a]};g.Sa(g.rn,g.A);g.h=g.rn.prototype;g.h.start=function(){this.stop();this.A=!1;var a=sn(this),b=tn(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.o=Te(this.u,"MozBeforePaint",this.w),this.u.mozRequestAnimationFrame(null),this.A=!0):this.o=a&&b?a.call(this.u,this.w):this.u.setTimeout(saa(this.w),20)};
g.h.Ua=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=sn(this),b=tn(this);a&&!b&&this.u.mozRequestAnimationFrame?bf(this.o):a&&b?b.call(this.u,this.o):this.u.clearTimeout(this.o)}this.o=null};
g.h.Pe=function(){this.isActive()&&(this.stop(),this.Hx())};
g.h.isActive=function(){return null!=this.o};
g.h.Hx=function(){this.A&&this.o&&bf(this.o);this.o=null;this.C.call(this.B,(0,g.H)())};
g.h.X=function(){this.stop();g.rn.Gb.X.call(this)};g.Sa(g.I,g.A);g.h=g.I.prototype;g.h.Al=0;g.h.X=function(){g.I.Gb.X.call(this);this.stop();delete this.o;delete this.u};
g.h.start=function(a){this.stop();this.Al=g.Uf(this.w,void 0!==a?a:this.Ad)};
g.h.Ua=function(a){this.isActive()||this.start(a)};
g.h.stop=function(){this.isActive()&&g.v.clearTimeout(this.Al);this.Al=0};
g.h.Pe=function(){this.isActive()&&g.un(this)};
g.h.isActive=function(){return 0!=this.Al};
g.h.Ix=function(){this.Al=0;this.o&&this.o.call(this.u)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!g.v.requestAnimationFrame;++c)g.v.requestAnimationFrame=g.v[b+"RequestAnimationFrame"],g.v.cancelAnimationFrame=g.v[b+"CancelAnimationFrame"]||g.v[b+"CancelRequestAnimationFrame"];if(!g.v.requestAnimationFrame){var d=0;g.v.requestAnimationFrame=function(e){var f=(new Date).getTime(),k=Math.max(0,16-(f-d));d=f+k;return g.v.setTimeout(function(){e(f+k)},k)};
g.v.cancelAnimationFrame||(g.v.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var vn=[[],[]],wn=0,xn=!1,Uda=0;g.Sa(g.Fn,g.gf);g.h=g.Fn.prototype;g.h.eb=function(){return 1==this.o};
g.h.mp=function(){this.re("begin")};
g.h.pm=function(){this.re("end")};
g.h.Fc=function(){this.re("finish")};
g.h.re=function(a){this.dispatchEvent(a)};var Cra=yb(function(){if(g.he)return g.Kd("10.0");var a=g.oe("DIV"),b=g.je?"-webkit":uh?"-moz":g.he?"-ms":g.vh?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!bra.test("div"))throw Error("");if("DIV"in dra)throw Error("");c=null;var d="";if(b)for(k in b){if(!bra.test(k))throw Error("");var e=b[k];if(null!=e){var f=k;if(e instanceof Wb)e=Xb(e);else if("style"==f.toLowerCase()){if(!g.Na(e))throw Error("");e instanceof zc||(e=Fc(e));e=Ac(e)}else{if(/^on/i.test(f))throw Error("");
if(f.toLowerCase()in cra)if(e instanceof ac)e=bc(e).toString();else if(e instanceof g.tc)e=g.uc(e);else if("string"===typeof e)e=g.wc(e).xe();else throw Error("");}e.ug&&(e=e.xe());f=f+'="'+mc(String(e))+'"';d+=" "+f}}var k="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===Xqa.div?k+=">":(c=Iaa(d),k+=">"+g.Qc(c).toString()+"</div>",c=c.o());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Vc(k,c);g.Xc(a,b);return""!=g.wh(a.firstChild,"transition")});g.Sa(Gn,g.Fn);g.h=Gn.prototype;g.h.play=function(){if(this.eb())return!1;this.mp();this.re("play");this.startTime=(0,g.H)();this.o=1;if(Cra())return g.sh(this.w,this.G),this.B=g.Uf(this.RN,void 0,this),!0;this.Wr(!1);return!1};
g.h.RN=function(){g.Nh(this.w);Xda(this.w,this.F);g.sh(this.w,this.A);this.B=g.Uf((0,g.x)(this.Wr,this,!1),1E3*this.C)};
g.h.stop=function(){this.eb()&&this.Wr(!0)};
g.h.Wr=function(a){g.sh(this.w,"transition","");g.v.clearTimeout(this.B);g.sh(this.w,this.A);this.endTime=(0,g.H)();this.o=0;a?this.re("stop"):this.Fc();this.pm()};
g.h.X=function(){this.stop();Gn.Gb.X.call(this)};
g.h.pause=function(){};var Yda={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};var bea=In("getPropertyValue"),cea=In("setProperty");var aea={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Mn.prototype.clone=function(){return new g.Mn(this.o,this.B,this.w,this.C,this.A,this.F,this.u,this.G)};g.On.prototype.u=0;g.On.prototype.reset=function(){this.o=this.w=this.A;this.u=0};
g.On.prototype.getValue=function(){return this.w};Qn.prototype.clone=function(){return new Qn(this.start,this.end)};
Qn.prototype.getLength=function(){return this.end-this.start};(function(){if(yT){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ic))?a[1]:"0"}return MG?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Ic))?a[0].replace(/_/g,"."):"10"):g.Iy?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ic))?a[1]:""):era||fra||gra?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ic))?a[1].replace(/_/g,"."):""):""})();var iea=function(){if(g.hu)return Rn(/Firefox\/([0-9.]+)/);if(g.he||g.wu||g.vh)return Jd;if(g.Dt)return Fd()?Rn(/CriOS\/([0-9.]+)/):Rn(/Chrome\/([0-9.]+)/);if(g.oz&&!Fd())return Rn(/Version\/([0-9.]+)/);if(Sy||TB){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ic);if(a)return a[1]+"."+a[2]}else if(g.Ky)return(a=Rn(/Android\s+([0-9.]+)/))?a:Rn(/Version\/([0-9.]+)/);return""}();g.Sa(g.Tn,g.A);g.h=g.Tn.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.B;this.o[e]=a;this.o[e+1]=b;this.o[e+2]=c;this.B=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.o;if(a=g.Xa(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Ai(a)}return!1};
g.h.Ai=function(a){var b=this.o[a];if(b){var c=this.u[b];0!=this.A?(this.w.push(a),this.o[a+1]=g.Ia):(c&&g.db(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
g.h.S=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.C)for(e=0;e<c.length;e++){var k=c[e];jea(this.o[k+1],this.o[k+2],d)}else{this.A++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.o[k+1].apply(this.o[k+2],d)}finally{if(this.A--,0<this.w.length&&0==this.A)for(;c=this.w.pop();)this.Ai(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&((0,g.y)(b,this.Ai,this),delete this.u[a])}else this.o.length=0,this.u={}};
g.h.X=function(){g.Tn.Gb.X.call(this);this.clear();this.w.length=0};g.Un.prototype.set=function(a,b){void 0===b?this.o.remove(a):this.o.set(a,g.Jk(b))};
g.Un.prototype.get=function(a){try{var b=this.o.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Un.prototype.remove=function(a){this.o.remove(a)};g.Sa(Vn,g.Un);Vn.prototype.set=function(a,b){Vn.Gb.set.call(this,a,Xn(b))};
Vn.prototype.u=function(a){a=Vn.Gb.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Vn.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Sa(Yn,Vn);Yn.prototype.set=function(a,b,c){if(b=Xn(b)){if(c){if(c<(0,g.H)()){Yn.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.H)()}Yn.Gb.set.call(this,a,b)};
Yn.prototype.u=function(a,b){var c=Yn.Gb.u.call(this,a);if(c)if(!b&&g.Zn(c))Yn.prototype.remove.call(this,a);else return c};g.Sa(g.$n,Yn);g.Sa(ao,kea);ao.prototype.clear=function(){var a=pca(this.Zf(!0)),b=this;(0,g.y)(a,function(c){b.remove(c)})};g.Sa(bo,ao);g.h=bo.prototype;g.h.isAvailable=function(){if(!this.o)return!1;try{return this.o.setItem("__sak","1"),this.o.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.o.setItem(a,b)}catch(c){if(0==this.o.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.o.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.o.removeItem(a)};
g.h.Zf=function(a){var b=0,c=this.o,d=new ek;d.next=function(){if(b>=c.length)throw fk;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){this.o.clear()};
g.h.key=function(a){return this.o.key(a)};g.Sa(co,bo);g.Sa(eo,bo);g.Sa(go,ao);var lea={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},fo=null;g.h=go.prototype;g.h.isAvailable=function(){return!!this.o};
g.h.set=function(a,b){this.o.setAttribute(ho(a),b);io(this)};
g.h.get=function(a){a=this.o.getAttribute(ho(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.o.removeAttribute(ho(a));io(this)};
g.h.Zf=function(a){var b=0,c=this.o.XMLDocument.documentElement.attributes,d=new ek;d.next=function(){if(b>=c.length)throw fk;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.h.clear=function(){for(var a=this.o.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);io(this)};g.Sa(jo,ao);jo.prototype.set=function(a,b){this.u.set(this.o+a,b)};
jo.prototype.get=function(a){return this.u.get(this.o+a)};
jo.prototype.remove=function(a){this.u.remove(this.o+a)};
jo.prototype.Zf=function(a){var b=this.u.Zf(!0),c=this,d=new ek;d.next=function(){for(var e=b.next();e.substr(0,c.o.length)!=c.o;)e=b.next();return a?e.substr(c.o.length):c.u.get(e)};
return d};lo.prototype.getValue=function(){return this.u};
lo.prototype.clone=function(){return new lo(this.o,this.u)};g.h=mo.prototype;g.h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)bb(a);else{a[0]=a.pop();a=0;b=this.o;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2;f=k<d&&b[k].o<b[f].o?k:f;if(b[f].o>e.o)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.Ed=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.te=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].o);return b};
g.h.clone=function(){return new mo(this)};
g.h.isEmpty=function(){return g.ab(this.o)};
g.h.clear=function(){bb(this.o)};g.Sa(g.oo,mo);Ja(po);po.prototype.o=0;g.Sa(qo,Ig);g.Sa(ro,Ig);var mea=[2,13,14];var so=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ga("yt.config_",so,void 0);var Do={};var Eo=[];var Dra=g.w("ytPubsubPubsubInstance")||new g.Tn;g.Tn.prototype.subscribe=g.Tn.prototype.subscribe;g.Tn.prototype.unsubscribeByKey=g.Tn.prototype.Ai;g.Tn.prototype.publish=g.Tn.prototype.S;g.Tn.prototype.clear=g.Tn.prototype.clear;g.Ga("ytPubsubPubsubInstance",Dra,void 0);var Lo=g.w("ytPubsubPubsubSubscribedKeys")||{};g.Ga("ytPubsubPubsubSubscribedKeys",Lo,void 0);var No=g.w("ytPubsubPubsubTopicToKeys")||{};g.Ga("ytPubsubPubsubTopicToKeys",No,void 0);g.Mo=g.w("ytPubsubPubsubIsSynchronous")||{};
g.Ga("ytPubsubPubsubIsSynchronous",g.Mo,void 0);var rea=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,sea=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Vo={};var Era={lS:"PLAYBACK_TYPE_UNKNOWN",fS:"PLAYBACK_TYPE_APPLICATION",eS:"PLAYBACK_TYPE_ADS",jS:"PLAYBACK_TYPE_REMOTE",kS:"PLAYBACK_TYPE_SECONDARY_CAMERA",iS:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",hS:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",gS:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var T1;T1=window;g.N=T1.ytcsi&&T1.ytcsi.now?T1.ytcsi.now:T1.performance&&T1.performance.timing&&T1.performance.now&&T1.performance.timing.navigationStart?function(){return T1.performance.timing.navigationStart+T1.performance.now()}:function(){return(new Date).getTime()};var vea=yo("initial_gel_batch_timeout",1E3),ip=Math.pow(2,16)-1,jp=null,hp=0,Yo=void 0,Wo=0,Xo=0,dq=0,dp=!0,ap=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ga("ytLoggingTransportLogPayloadsQueue_",ap,void 0);var $o=g.w("ytLoggingTransportGELQueue_")||new Map;g.Ga("ytLoggingTransportGELQueue_",$o,void 0);var fp=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",fp,void 0);var Bea=yo("initial_gel_batch_timeout",1E3),qp=Math.pow(2,16)-1,rp=null,sp=0,yea={log_event:"events",log_interaction:"interactions"},zea=new Set(["log_event"]),np={},kp=0,lp=0,eq=0,tp=!0,mp=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ga("ytLoggingTransportLogPayloadsQueue_",mp,void 0);var pp=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};g.Ga("ytLoggingTransportTokensToCttTargetIds_",pp,void 0);var Fra=0,wp=g.je?"webkit":uh?"moz":g.he?"ms":g.vh?"o":"",Gra=g.w("ytDomDomGetNextId")||function(){return++Fra};
g.Ga("ytDomDomGetNextId",Gra,void 0);var Cea={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};zp.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
zp.prototype.iy=function(){return this.event?!1===this.event.returnValue:!1};
zp.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
zp.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Bp=g.w("ytEventsEventsListeners")||{};g.Ga("ytEventsEventsListeners",Bp,void 0);var Cp=g.w("ytEventsEventsCounter")||{count:0};g.Ga("ytEventsEventsCounter",Cp,void 0);var Hra=yb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Dp=yb(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var ry=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Sa(Qp,g.A);Qp.prototype.M=function(a){void 0===a.o&&Ap(a);var b=a.o;void 0===a.u&&Ap(a);this.o=new g.Qd(b,a.u)};
Qp.prototype.ih=function(){return this.o||new g.Qd};
Qp.prototype.F=function(){if(this.o){var a=ry();if(0!=this.B){var b=this.C,c=this.o,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.u[this.w]=.5<Math.abs((d-this.A)/this.A)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.I();this.A=d}this.B=a;this.C=this.o;this.w=(this.w+1)%4}};
Qp.prototype.X=function(){window.clearInterval(this.P);g.Fp(this.G)};g.r(Up,Fea);Up.prototype.start=function(){var a=g.w("yt.scheduler.instance.start");a&&a()};
Up.prototype.pause=function(){var a=g.w("yt.scheduler.instance.pause");a&&a()};
Ja(Up);Up.getInstance();var aq={};var cq=g.w("ytLoggingGelSequenceIdObj_")||{};g.Ga("ytLoggingGelSequenceIdObj_",cq,void 0);var tq=new function(){var a=window.document;this.o=window;this.u=a};
g.Ga("yt.ads_.signals_.getAdSignalsString",function(a){return jq(vq(a))},void 0);(0,g.H)();var wq=void 0!==XMLHttpRequest?function(){return new XMLHttpRequest}:void 0!==ActiveXObject?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;var zq={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Kea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" "),
Gq=!1,Sla=Aq;Pq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.o)try{this.o.set(a,b,(0,g.H)()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Jk(b))}catch(f){return}else e=escape(b);g.Mq(a,e,c,this.u)};
Pq.prototype.get=function(a,b){var c=void 0,d=!this.o;if(!d)try{c=this.o.get(a)}catch(e){d=!0}if(d&&(c=Nq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Pq.prototype.remove=function(a){this.o&&this.o.remove(a);g.Oq(a,"/",this.u)};new Pq;g.Qq.prototype.isReady=function(){!this.o&&Jq()&&(this.o=Kq());return!!this.o};g.r(Sq,Error);var Xq=new Set,Vq=0;Yq.prototype.initialize=function(a,b,c,d,e,f){var k=this;f=void 0===f?!1:f;b?(this.wc=!0,g.To(b,function(){k.wc=!1;if(window.botguard)Zq(k,c,d,f);else{var l=Uo(b),m=document.getElementById(l);m&&(So(l),m.parentNode.removeChild(m));g.Uq(new Sq("Unable to load Botguard","from "+b))}},e)):a&&(eval(a),window.botguard?Zq(this,c,d,f):g.Uq(Error("Unable to load Botguard from JS")))};
Yq.prototype.dispose=function(){this.o=null};var Uea=[],ar=!1;var fr={},Xea=0;g.r(gr,Ta);jr.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.o),xf(a)?a:lr(a)):2===this.u&&b?(a=b.call(c,this.o),xf(a)?a:kr(a)):this};
jr.prototype.getValue=function(){return this.o};
jr.prototype.$goog_Thenable=!0;g.r(nr,Ta);nr.prototype.name="BiscottiError";g.r(mr,Ta);mr.prototype.name="BiscottiMissingError";var pr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},or=null;var Zea=g.xo("html5_disable_client_tmp_logs");var vr=g.w("ytglobal.prefsUserPrefsPrefs_")||{};g.Ga("ytglobal.prefsUserPrefsPrefs_",vr,void 0);g.h=wr.prototype;g.h.get=function(a,b){Ar(a);zr(a);var c=void 0!==vr[a]?vr[a].toString():null;return null!=c?c:b?b:""};
g.h.set=function(a,b){Ar(a);zr(a);if(null==b)throw Error("ExpectedNotNull");vr[a]=b.toString()};
g.h.remove=function(a){Ar(a);zr(a);delete vr[a]};
g.h.save=function(){g.Mq(this.o,this.dump(),63072E3)};
g.h.clear=function(){g.Nb(vr)};
g.h.dump=function(){var a=[],b;for(b in vr)a.push(b+"="+encodeURIComponent(String(vr[b])));return a.join("&")};
Ja(wr);var afa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),dfa={"/youtuberedoriginals":!0,"/originals":!0},cfa=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.r(g.Gr,g.A);g.Gr.prototype.L=function(a,b,c,d,e){c=Fo((0,g.x)(c,d||this.Md));c={target:a,name:b,Fb:c};var f;e&&Hra()&&(f={passive:!0});a.addEventListener(b,c.Fb,f);this.Z.push(c);return c};
g.Gr.prototype.bb=function(a){for(var b=0;b<this.Z.length;b++)if(this.Z[b]==a){this.Z.splice(b,1);a.target.removeEventListener(a.name,a.Fb);break}};
g.Gr.prototype.X=function(){g.Ir(this);g.A.prototype.X.call(this)};g.Sa(g.O,g.A);g.O.prototype.subscribe=function(a,b,c){return this.ea()?0:this.Oh.subscribe(a,b,c)};
g.O.prototype.unsubscribe=function(a,b,c){return this.ea()?!1:this.Oh.unsubscribe(a,b,c)};
g.O.prototype.Eh=function(a){return this.ea()?!1:this.Oh.Ai(a)};
g.O.prototype.S=function(a,b){return this.ea()?!1:this.Oh.S.apply(this.Oh,arguments)};g.r(g.Mr,g.O);g.h=g.Mr.prototype;g.h.cancel=function(){this.A&&(this.A=!1,this.S("dragend",0,0,null));this.u&&(this.u=!1,this.S("hoverend",0,0,null),g.Ir(this.o),Lr(this))};
g.h.Ty=function(a){g.Ir(this.o);Nr(this,Or("move"),this.Ry);Nr(this,Or("out"),this.Sy);Nr(this,"touchstart",this.Vs);this.w&&Nr(this,Or("down"),this.Us);var b=g.Gp(a);a=Jp(a);this.u=!0;this.S("hoverstart",a.x,a.y,b);this.S("hovermove",a.x,a.y,b)};
g.h.Ry=function(a){var b=g.Gp(a);a=Jp(a);if(this.B){var c=this.B;this.B=null;if(Ip(c)==b&&Rd(Jp(c),a))return}this.S("hovermove",a.x,a.y,b)};
g.h.Sy=function(a){var b=Jp(a),c=Ip(a);try{if(c&&g.xe(this.C,c)){this.B=a;this.S("hovermove",b.x,b.y,c);return}}catch(d){}g.Ir(this.o);Lr(this);this.u=!1;this.S("hoverend",b.x,b.y,c)};
g.h.JJ=function(a){this.Ty(a);this.Us(a)};
g.h.Us=function(a){if("number"!==typeof a.button||0==a.button){g.Ir(this.o);this.o.L(document,Or("move"),this.IJ);this.o.L(document,Or("up"),this.GG);var b=g.Gp(a);if(g.je)Nr(this,"dragstart",this.xE);else if(g.Kp(a),(g.nz||uh)&&b)a:{for(var c=b;c;){if(Be(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.A=!0;a=Jp(a);this.S("dragstart",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)}};
g.h.xE=function(a){g.Kp(a)};
g.h.IJ=function(a){var b=g.Gp(a);b==document&&(b=null);a=Jp(a);this.S("hovermove",a.x,a.y,b);this.S("dragmove",a.x,a.y,b)};
g.h.GG=function(a){g.Ir(this.o);this.A=!1;var b=Hp(a),c=g.Gp(a);a=Jp(a);b&&g.xe(this.C,b)?(Nr(this,Or("move"),this.Ry),Nr(this,Or("out"),this.Sy),Nr(this,Or("down"),this.Us),Nr(this,"touchstart",this.Vs),this.S("dragend",a.x,a.y,c)):(Lr(this),this.u=!1,this.S("dragend",a.x,a.y,c),this.S("hoverend",a.x,a.y,c))};
g.h.Vs=function(a){var b=a.changedTouches[0];b&&(g.Ir(this.o),Nr(this,"touchmove",this.QO),Nr(this,"touchend",this.Uy),Nr(this,"touchcancel",this.Uy),this.F=b.identifier,a=g.Gp(a),this.u||(this.u=!0,this.S("hoverstart",b.pageX,b.pageY,a)),this.S("hovermove",b.pageX,b.pageY,a),this.w&&(this.A=!0,this.S("dragstart",b.pageX,b.pageY,a),this.S("dragmove",b.pageX,b.pageY,a)))};
g.h.QO=function(a){var b=Pr(this,a);b&&(this.w&&g.Kp(a),a=g.Gp(a),this.S("hovermove",b.pageX,b.pageY,a),this.w&&this.S("dragmove",b.pageX,b.pageY,a))};
g.h.Uy=function(a){var b=Pr(this,a);if(b){g.Ir(this.o);Lr(this);this.u=!1;var c=g.Gp(a);this.w&&(this.G||g.Kp(a),this.A=!1,this.S("dragend",b.pageX,b.pageY,c));this.S("hoverend",b.pageX,b.pageY,c)}};
g.h.X=function(){this.w&&(g.je&&this.C.removeAttribute("draggable"),this.C.style.touchAction="");g.Ir(this.o);g.O.prototype.X.call(this)};Qr.prototype.clone=function(){var a=new Qr,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==Ka(c)?a[b]=g.Pb(c):a[b]=c}return a};var Rr=(0,g.H)().toString();var fs=g.w("ytLoggingDocDocumentNonce_")||Tr();g.Ga("ytLoggingDocDocumentNonce_",fs,void 0);Wf.prototype.flush=function(a){a=void 0===a?[]:a;if(g.xo("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new gn;c=Qg(c,1,b.A);for(var d=b,e=[],f=0;f<d.o.length;f++)e.push(d.o[f].kg);c=Qg(c,3,e||[]);d=[];e=[];f=g.q(b.sj.keys());for(var k=f.next();!k.done;k=f.next())e.push(k.value.split(","));for(f=0;f<e.length;f++){k=e[f];var l=b.u;for(var m=b.kx(k)||[],n=[],p=0;p<m.length;p++){var t=m[p];t=t&&t.ww;var u=new pn;switch(l){case 3:Sg(u,1,on[0],Number(t));
break;case 2:Sg(u,2,on[0],Number(t))}n.push(u)}l=n;for(m=0;m<l.length;m++){p=l[m];n=new ln;n.o||(n.o={});t=p?p.Fd:p;n.o[2]=p;n=Qg(n,2,t);p=k;t=[];u=b;for(var z=[],C=0;C<u.o.length;C++)z.push(u.o[C].lg);u=z;for(z=0;z<u.length;z++){C=u[z];var D=p[z],E=new nn;switch(C){case 3:Sg(E,1,mn[0],String(D));break;case 2:Sg(E,2,mn[0],Number(D));break;case 1:Sg(E,3,mn[0],"true"==D)}t.push(E)}Wg(n,1,t);d.push(n)}}Wg(c,4,d);d=b=new ug;e=Og(c,1);null!=e&&Fg(d,1,e);e=Og(c,5);null!=e&&Cg(d,5,e);e=Tg(c,hn,2);null!=
e&&Gg(d,2,e,Pda);e=Og(c,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Fg(d,3,e[f]);e=Og(c,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Cg(d,6,e[f]);e=Vg(c,ln,4);0<e.length&&Hg(d,4,e,Sda);b=xg(b);b={serializedIncrementBatch:g.bg(b)};g.Rq("streamzIncremented",b)}}};var gfa=1;Vr.prototype.toString=function(){return JSON.stringify(g.Yr(this))};g.Ga("yt_logging_screen.getRootVeType",as,void 0);g.Ga("yt_logging_screen.getCurrentCsn",g.ds,void 0);g.Ga("yt_logging_screen.getCttAuthInfo",g.es,void 0);g.Ga("yt_logging_screen.setCurrentScreen",gs,void 0);is.prototype.toString=function(){return this.topic};var Ira=g.w("ytPubsub2Pubsub2Instance")||new g.Tn;g.Tn.prototype.subscribe=g.Tn.prototype.subscribe;g.Tn.prototype.unsubscribeByKey=g.Tn.prototype.Ai;g.Tn.prototype.publish=g.Tn.prototype.S;g.Tn.prototype.clear=g.Tn.prototype.clear;g.Ga("ytPubsub2Pubsub2Instance",Ira,void 0);var ls=g.w("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ga("ytPubsub2Pubsub2SubscribedKeys",ls,void 0);var ns=g.w("ytPubsub2Pubsub2TopicToKeys")||{};g.Ga("ytPubsub2Pubsub2TopicToKeys",ns,void 0);
var ms=g.w("ytPubsub2Pubsub2IsAsync")||{};g.Ga("ytPubsub2Pubsub2IsAsync",ms,void 0);g.Ga("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.r(qs,hs);var jfa=new is("screen-created",qs),ws=[],xs=0;var As;g.Bs=yb(function(){var a=new co;return a.isAvailable()?new g.$n(a):null});
g.Cs=yb(function(){var a=new eo;return a.isAvailable()?new g.$n(a):null});var $q=new Yq,Ls=0;var Sha={zQ:1,GQ:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};Rs.prototype.getName=function(){return this.name};
Rs.prototype.getId=function(){return this.id};
Rs.prototype.getIsDefault=function(){return this.isDefault};
Rs.prototype.toString=function(){return this.name};
Rs.prototype.getName=Rs.prototype.getName;Rs.prototype.getId=Rs.prototype.getId;Rs.prototype.getIsDefault=Rs.prototype.getIsDefault;g.h=g.Ss.prototype;g.h.getId=function(){return this.id};
g.h.getName=function(){return this.name};
g.h.isServable=function(){return this.o};
g.h.jc=function(){return this.url};
g.h.toString=function(){return this.languageCode+": "+g.Ts(this)+" - "+this.vssId};
g.h.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};Us.prototype.getLanguageInfo=function(){return this.tb};
Us.prototype.toString=function(){return this.tb.name};
Us.prototype.getLanguageInfo=Us.prototype.getLanguageInfo;var iu={name:"width",video:!0,valid:640,Se:99999},ju={name:"height",video:!0,valid:360,Se:99999},ku={name:"framerate",video:!0,valid:30,Se:9999},lu={name:"bitrate",video:!0,valid:3E5,Se:2E9},gu={name:"eotf",video:!0,valid:"bt709",Se:"catavision"},ou={name:"channels",video:!1,valid:2,Se:99},mu={name:"cryptoblockformat",video:!0,valid:"subsample",Se:"invalidformat"},nu={name:"decode-to-texture",video:!0,valid:"false",Se:"nope"},vu={name:"codecs",video:!0,valid:"av01.0.05M.08",Se:"av99.0.05M.08"},pu=
{name:"experimental",video:!0,valid:"allowed",Se:"invalid"},qu={nT:iu,hR:ju,SQ:ku,bQ:lu,JQ:gu,nQ:ou,sQ:mu,wQ:nu,ZP:vu,OQ:pu};var sfa={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",214:"h",216:"h",374:"h",375:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",598:"9",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",353:"9",355:"9",271:"9",313:"9",272:"9",302:"9",303:"9",407:"9",
408:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",171:"v",338:"so",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",
394:"1",395:"1",396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var Kfa={XP:"auto",WS:"tiny",FR:"light",LS:"small",LR:"medium",DR:"large",fR:"hd720",bR:"hd1080",cR:"hd1440",dR:"hd2160",eR:"hd2880",mR:"highres",UNKNOWN:"unknown"};var U1;U1={};g.Xs=(U1.auto=0,U1.tiny=144,U1.light=144,U1.small=240,U1.medium=360,U1.large=480,U1.hd720=720,U1.hd1080=1080,U1.hd1440=1440,U1.hd2160=2160,U1.hd2880=2880,U1.highres=4320,U1);var at="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");dt.prototype.ya=function(){return this.video};
dt.prototype.Bc=function(){return 2==this.containerType};
dt.prototype.uo=function(){return!!this.zc};
dt.prototype.isVideo=function(){return!!this.video};var lt=null,pt=null;g.h=It.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.u,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.u)};
g.h.iP=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Ffa:this.o.webkitSourceBuffered(this.u)};
g.h.kP=function(){return this.w};
g.h.oP=function(a){this.w=a;this.o.webkitSourceTimestampOffset(this.u,a)};g.h=Jt.prototype;g.h.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.o.removeEventListener(a,b,c)};
g.h.NI=function(){return this.o.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.w++).toString();this.o.webkitSourceAddId(b,a);a=new It(this.o,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.o.webkitSourceRemoveId(a.u);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.lP=function(){switch(this.o.webkitSourceState){case this.o.SOURCE_CLOSED:return"closed";case this.o.SOURCE_OPEN:return"open";case this.o.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.o.webkitSourceEndOfStream(this.o.EOS_NO_ERROR)};
g.h.mP=function(){bb(this.sourceBuffers)};
g.h.jP=function(){return this.u};
g.h.nP=function(a){this.u=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};Kt.prototype.start=function(){return 0};
Kt.prototype.end=function(){return Infinity};g.h=Lt.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};var aE=!1;g.r(Ut,g.O);g.h=Ut.prototype;g.h.appendBuffer=function(a,b,c){this.u=!1;c&&(this.w=c);b&&(b.uo()&&(this.P=this.w),this.B=b);this.supports(0)?this.o.appendBuffer(a):this.o.append(a)};
g.h.abort=function(){try{this.o.abort()}catch(a){}this.w=this.B=null};
g.h.remove=function(a,b){this.u=!1;this.o.remove(a,b)};
g.h.Un=function(){return aE&&this.G?this.M:this.o.appendWindowStart};
g.h.Jr=function(){return this.o.appendWindowEnd};
g.h.Cu=function(a,b){aE&&this.G?(this.M=a,this.o.appendWindowEnd=b):a>this.Un()?(this.o.appendWindowEnd=b,this.o.appendWindowStart=a):(this.o.appendWindowStart=a,this.o.appendWindowEnd=b)};
g.h.Sr=function(){return this.C};
g.h.Mp=function(a){aE?this.C=a:this.supports(1)&&(this.o.timestampOffset=a)};
g.h.Bb=function(){return aE?this.C:this.supports(1)?this.o.timestampOffset:0};
g.h.ud=function(a){if(void 0===a?0:a)return this.u||this.Sd()||(this.F=this.ud(!1),this.u=!0),this.F;try{return this.o.buffered}catch(b){return Mt([],[])}};
g.h.Sd=function(){return this.o.updating};
g.h.vi=function(){return this.w};
g.h.Vn=function(){return this.P};
g.h.Xu=function(a,b){this.I!=a&&(this.supports(4),this.o.changeType(b));this.I=a};
g.h.Or=function(){return this.B};
g.h.isView=function(){return!1};
g.h.supports=function(a){switch(a){case 1:return void 0!=this.o.timestampOffset;case 0:return!!this.o.appendBuffer;case 2:return!!this.o.remove;case 3:return!(!this.o.addEventListener||!this.o.removeEventListener);case 4:return!!this.o.changeType;default:return!1}};
g.h.Xq=function(){return!this.Sd()};
g.h.isLocked=function(){return!1};
g.h.Za=function(a){a.to=""+this.o.timestampOffset;a.up=""+ +this.Sd();a.aw=(this.o.appendWindowStart||0).toFixed(3)+"-"+(this.o.appendWindowEnd||Infinity).toFixed(3);try{a.bu=Nt(this.o.buffered)}catch(b){}return Ps(a)};
g.h.X=function(){this.supports(3)&&(this.o.removeEventListener("updateend",this.A),this.o.removeEventListener("error",this.A));g.O.prototype.X.call(this)};g.r(Vt,g.O);g.h=Vt.prototype;g.h.appendBuffer=function(a,b,c){if(this.o.Un()!=this.C+this.u||this.o.Jr()!=this.B+this.u||this.o.Bb()!=this.A+this.u)this.o.supports(1),this.o.Cu(this.C+this.u,this.B+this.u),this.o.Mp(this.A+this.u);this.o.appendBuffer(a,b,c)};
g.h.abort=function(){this.o.abort()};
g.h.remove=function(a,b){this.o.remove(a+this.u,b+this.u)};
g.h.Cu=function(a,b){this.C=a;this.B=b};
g.h.Sr=function(){return this.A+this.u};
g.h.Un=function(){return this.C};
g.h.Jr=function(){return this.B};
g.h.Mp=function(a){this.A=a};
g.h.Bb=function(){return this.A};
g.h.ud=function(a){a=this.o.ud(void 0===a?!1:a);return Tt(a,this.u,this.G)};
g.h.Sd=function(){return this.o.Sd()};
g.h.vi=function(){return this.o.vi()};
g.h.Vn=function(){return this.o.Vn()};
g.h.Xu=function(a,b){return this.o.Xu(a,b)};
g.h.supports=function(a){return this.o.supports(a)};
g.h.Or=function(){return this.o.Or()};
g.h.isView=function(){return!0};
g.h.Xq=function(){return this.o.Xq()?this.w:!1};
g.h.isLocked=function(){return this.F&&!this.w};
g.h.Za=function(a){return this.o.Za(a)+(";vw."+this.u+"-"+this.G)};
g.h.X=function(){Kr(this.o,this.I);g.O.prototype.X.call(this)};
g.h.isActive=function(){return this.w};
g.h.setActive=function(a){this.w=a;this.F=this.F||this.w};Wt.prototype.dispose=function(){if(!this.ea){if(this.u)try{URL.revokeObjectURL(this.o)}catch(a){}this.w=!0}};
Wt.prototype.ea=function(){return this.w};
Wt.prototype.toString=function(){return"MediaResource {"+this.o+"}"};g.r(Xt,g.A);g.h=Xt.prototype;g.h.getDuration=function(){return this.w.duration};
g.h.isView=function(){return this.C};
g.h.Sd=function(){return!!(this.o&&this.o.Sd()||this.u&&this.u.Sd())};
g.h.kN=function(){!this.ea()&&Yt(this)&&this.A&&(this.A(this),this.A=null)};
g.h.jN=function(){this.dispose()};var Jra={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},V1;a:{var W1=g.Ic;W1=W1.toLowerCase();if(-1!=W1.indexOf("android")){var Kra=W1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Kra){var Lra=parseFloat(Kra[1]);if(100>Lra){V1=Lra;break a}}var Mra=W1.match("("+g.Gb(Jra).join("|")+")");V1=Mra?Jra[Mra[0]]:0}else V1=void 0}var Py=V1,Oy=0<=Py;eu.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;nl?c=c||Nra[b]:2.2==Py?c=c||Ora[b]:el()&&(c=c||Pra[b]);return!!c};
eu.prototype.disableAv1=function(){this.G=!0};
var Ora={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Pra={"application/x-mpegURL":"maybe"},Nra={"application/x-mpegURL":"maybe"};g.h=xu.prototype;g.h.ge=function(){return this.og};
g.h.em=function(){return null};
g.h.nx=function(){var a=this.em();return a?+g.mq(a.o).expire:NaN};
g.h.zu=function(){};
g.h.getHeight=function(){return this.og.ya().height};zu.prototype.isLocked=function(){return this.w&&!!this.u&&this.u==this.o};
zu.prototype.A=function(a){return a.video?Gu(this,a.video.quality):!1};
var UJ=Bu("auto","hd1080",!1,"l"),zG=Bu("auto","large",!1,"l"),Du=Bu("auto","auto",!1,"p");Bu("small","auto",!1,"p");var QS={BP:"ad",SP:"annotations_module",TP:"attribution",rQ:"creatorendscreen",EQ:"embed",IQ:"endscreen",TQ:"fresca",gR:"heartbeat",BR:"kids",KR:"remote",MR:"miniplayer",QR:"music",SUBTITLES:"captions",KD:"unplugged",eT:"ux",iT:"visualizer",jT:"webgl",oT:"ypc",pT:"ypc_clickwrap",qT:"yto",cT:""};var X1={},Qra=(X1["api.invalidparam"]=2,X1.auth=150,X1["drm.auth"]=150,X1["heartbeat.net"]=150,X1["heartbeat.servererror"]=150,X1["heartbeat.stop"]=150,X1["html5.unsupportedads"]=5,X1["fmt.noneavailable"]=5,X1["fmt.decode"]=5,X1["fmt.unplayable"]=5,X1["html5.missingapi"]=5,X1["html5.unsupportedlive"]=5,X1["drm.unavailable"]=5,X1);var sM=16/9,Rra=[.25,.5,.75,1,1.25,1.5,1.75,2],Sra=Rra.concat([3,4,5,6,7,8,9,10,15]);var Ku=1;g.r(g.Mu,g.A);g.h=g.Mu.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.D;var c=a.H,d=a.Y;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.nz&&(a.O||(a.O={}),a.O.focusable="false")}else e=g.oe(a.D);if(c){if(c=Ou(this,e,"class",c))Pu(this,e,"class",c),this.o[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.o[f.value]=e;Pu(this,e,"class",d.join(" "))}d=a.W;c=a.J;if(d)d=Ou(this,e,"child",d),void 0!==d&&e.appendChild(g.pe(d));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=Ou(this,e,"child",f),null!=f&&e.appendChild(g.pe(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Na&&(k=Lu(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.se(e,f,d++))}if(d=a.O)for(c=e,f=g.q(Object.keys(d)),k=f.next();!k.done;k=f.next()){k=k.value;var l=d[k];Pu(this,c,k,"string"===
typeof l?Ou(this,c,k,l):l)}return e};
g.h.ca=function(a,b){"number"===typeof b?g.se(a,this.element,b):a.appendChild(this.element)};
g.h.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.la(c,a[c])};
g.h.la=function(a,b){var c=this.Qa["{{"+a+"}}"];c&&Pu(this,c[0],c[1],b)};
g.h.X=function(){this.o={};this.Qa={};g.Nu(this);g.A.prototype.X.call(this)};g.r(g.R,g.Mu);g.h=g.R.prototype;g.h.qb=function(a,b){this.la(b||"content",a)};
g.h.show=function(){this.ha||(g.sh(this.element,"display",""),this.ha=!0)};
g.h.hide=function(){this.ha&&(g.sh(this.element,"display","none"),this.ha=!1)};
g.h.Xa=function(a){this.P=a};
g.h.Ha=function(){return this.ha};
g.h.ka=function(a,b,c){return this.L(this.element,a,b,c)};
g.h.L=function(a,b,c,d){c=(0,g.x)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.h.bb=function(a){var b=this;this.listeners.forEach(function(c,d){if(c===a){var e=b.listeners.splice(d,1)[0];e.target.removeEventListener(e.type,e.listener)}})};
g.h.focus=function(){Be(this.element);this.element.focus()};
g.h.X=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.Mu.prototype.X.call(this)};g.r(g.Ru,g.R);g.Ru.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.Ru.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.Ru.prototype.Eh=function(a){return this.ba.Eh(a)};
g.Ru.prototype.S=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ba.S.apply(this.ba,[a].concat(g.ea(c)))};g.r(g.Tu,g.Ru);g.Tu.prototype.la=function(a,b){g.Ru.prototype.la.call(this,a,b);this.S("size-change")};g.h=g.Xu.prototype;g.h.pz=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.mg(a))?a.duration:0};
g.h.mx=function(a){return this.getDuration(a)};
g.h.Qe=function(){return this.segments.length?this.segments[0].La:-1};
g.h.qt=function(a){return(a=this.mg(a))?a.ingestionTime:NaN};
g.h.jb=function(){return this.segments.length?this.segments[this.segments.length-1].La:-1};
g.h.gh=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.Ab=function(){return this.segments[0].startTime};
g.h.Cj=function(){return this.segments.length};
g.h.bp=function(){return 0};
g.h.Re=function(a){return(a=this.rl(a))?a.La:-1};
g.h.Rr=function(a){return(a=this.mg(a))?a.u:""};
g.h.gd=function(a){return(a=this.mg(a))?a.startTime:0};
g.h.bo=ba(1);g.h.Hb=function(){return 0<this.segments.length};
g.h.mg=function(a){a=g.pb(this.segments,new Wu(a,0,0,0,""),function(b,c){return b.La-c.La});
return 0<=a?this.segments[a]:null};
g.h.rl=function(a){a=g.pb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.append=function(a){if(0!=a.length)if(a=g.gb(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Va(this.segments).endTime:0,c=a[0].La-this.jb();1<c&&bb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}};
g.h.yx=function(){return 0};Zu.prototype.skip=function(a){this.o+=a};
Zu.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var eE=!1;var Y1={},Tra=(Y1.predictStart="predictStart",Y1.start="start",Y1["continue"]="continue",Y1.stop="stop",Y1),Dia={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var Sv=!0;Xv.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};aw.prototype.M=function(){return this.A};
aw.prototype.uo=function(){return this.o.info.uo()};
aw.prototype.isVideo=function(){return!!this.o.info.video};
aw.prototype.hh=function(){return this.o.hh(this)};g.h=kw.prototype;g.h.getLength=function(){return this.totalLength};
g.h.append=function(a){if(lw(this,a)){var b=this.o[this.o.length-1];this.o[this.o.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);nw(this)}else this.o.push(a);this.totalLength+=a.length};
g.h.split=function(a){for(var b=new kw,c=new kw,d=g.q(this.o),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{mo:b,ij:c}};
g.h.isFocused=function(a){return a>=this.w&&a<this.w+this.o[this.u].length};
g.h.focus=function(a){if(!this.isFocused(a)){for(a<this.w&&nw(this);this.w+this.o[this.u].length<=a&&this.u<this.o.length;)this.w+=this.o[this.u].length,this.u+=1;this.A=void 0}};ww.prototype.verify=function(a){if(this.info.Oa!=this.o.getLength())return a.slength=this.info.Oa.toString(),a.range=this.o.getLength().toString(),!1;if(1==this.info.o.info.containerType){if(8>this.info.Oa||4==this.info.type)return!0;var b=xw(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2==this.info.type)return c==this.info.Oa&&1936286840==b;if(3==this.info.type&&0==this.info.w)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.o.info.containerType){if(4>this.info.Oa||4==this.info.type)return!0;c=xw(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.w)return 524531317==c||440786851==c}return!0};var Kw={Ru:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
qz:function(a){a.reverse()},
OM:function(a,b){a.splice(0,b)}};var Kla=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,Pw=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[0-9a-f]{1,63}\.sslproxy\.corp\.google\.com\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/,
Lla=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,$fa=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,
yja=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,Yfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
Mla=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Zfa=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,Xfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/,
Nga=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
Mga=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com\/storage\/management|^https:\/\/www\.gstatic\.com\/aog_howto|^https:\/\/www\.gstatic\.com\/narrative_cast_receiver\/news|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|plus\.google\.com|currents\.google\.com|books\.googleusercontent\.com|play\-books\-autopush\-sandbox\.googleusercontent\.com|play\-books\-canary\-sandbox\.googleusercontent\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|play\-books\-staging\-sandbox\.googleusercontent\.com|blogger\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|jamboard\.google\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com)(:[0-9]+)?(\/|$)|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
Ura=/^(https\:\/\/play\.google\.com|https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/talkgadget\.google\.com|https\:\/\/jamboard\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*youtube\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com$|^https:\/\/(books|play-books-(autopush|canary|internal|staging)-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?daily\.alpha|(www\.)?weekly\.alpha|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*c\.googlers\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))$|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?$|docs\.google\.com$)/,
Vra=/^(https\:\/\/googleads\.g\.doubleclick\.net)$/;var Nw=!1;Xw.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.url="")};
Xw.prototype.get=function(a){Yw(this);return this.o[a]||null};
Xw.prototype.jc=function(){this.url||(this.url=aga(this));return this.url};
Xw.prototype.clone=function(){var a=new Xw(this.u);a.w=this.w;a.path=this.path;a.A=this.A;a.o=g.Pb(this.o);a.url=this.url;return a};fx.prototype.set=function(a,b){this.Ie.get(a);this.o[a]=b;this.url=""};
fx.prototype.get=function(a){return this.o[a]||this.Ie.get(a)};
fx.prototype.jc=function(){this.url||(this.url=dga(this));return this.url};lx.prototype.ee=function(){return bw(this.o[0])};g.h=qx.prototype;g.h.ce=function(){};
g.h.Ll=function(){};
g.h.cd=function(){return!!this.o&&this.index.Hb()};
g.h.Cg=function(){};
g.h.Vy=function(){return!1};
g.h.Bj=function(){};
g.h.Li=function(){};
g.h.hh=function(){};
g.h.pg=function(){};
g.h.ho=function(){};
g.h.Wy=function(a){return[a]};
g.h.Ip=function(a){return[a]};
g.h.xp=function(){};
g.h.Wn=function(){};g.r(rx,qx);g.h=rx.prototype;g.h.ce=function(){return!1};
g.h.Ll=function(){return!1};
g.h.Vy=function(){return this.F};
g.h.Bj=function(){if(this.F)return[];var a=new aw(1,this,this.initRange,"getMetadataRequestInfos");return[new lx([a],this.R)]};
g.h.Li=function(){return null};
g.h.hh=function(a){this.Cg(a);return this.Ni(a.A?a.u+1:a.u,!1)};
g.h.pg=function(a,b){b=void 0===b?!1:b;var c=this.index.Re(a);b&&(c=Math.min(this.index.jb(),c+1));return this.Ni(c,!0)};
g.h.ho=function(a){this.o=new Uint8Array(xw(a).buffer)};
g.h.Cg=function(a){return 0==a.Oa?!0:this.index.jb()>a.u&&this.index.Qe()<=a.u+1};
g.h.update=function(a,b,c){this.index.append(a);Yu(this.index,c);this.G=b};
g.h.cd=function(){return this.F?!0:qx.prototype.cd.call(this)};
g.h.Ni=function(a,b){var c=this.index.Rr(a),d=this.index.gd(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.o?this.info.o*e:1E3;var k=!b,l=f;f=a==this.index.jb()&&!this.G&&0<f;d=new aw(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,k);return new lx([d],c)};
g.h.Wn=function(){return this.F?0:this.initRange.length};
g.h.xp=function(){return!1};g.r(vx,g.Xu);g.h=vx.prototype;g.h.Qe=function(){return this.u?this.segments.length?this.rl(this.Ab()).La:-1:g.Xu.prototype.Qe.call(this)};
g.h.Ab=function(){if(this.F)return 0;if(!this.u)return g.Xu.prototype.Ab.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Va(this.segments).endTime-this.C,0);return 0<this.B&&this.rl(a).La<this.B?this.mg(this.B).startTime:a};
g.h.gh=function(){if(!this.segments.length)return g.Xu.prototype.gh.call(this);var a=this.jb();if(!this.u||a<=this.segments[this.segments.length-1].La)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new Wu(a,Math.max(0,b.startTime-(b.La-a)*this.o),this.o,0,"sq/"+a,void 0,void 0,!0)}return null!=this.A&&a.pending&&3==this.A?this.F?Math.min(this.C,a.startTime):a.startTime:this.F?Math.min(this.C,a.endTime):a.endTime};
g.h.Cj=function(){return this.u?this.segments.length?this.jb()-this.Qe()+1:0:g.Xu.prototype.Cj.call(this)};
g.h.jb=function(){return Math.min(this.I,Math.max(g.Xu.prototype.jb.call(this),this.w))};
g.h.Aj=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.pz=function(a){var b=wx(this,a.La);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.G&&0==a.La%(300/this.o)){var c=this.segments[0].La,d=Math.floor(this.G/this.o);a=a.La-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.rl=function(a){if(!this.u)return g.Xu.prototype.rl.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].La-Math.ceil((this.segments[0].startTime-a)/this.o));else if(a>=b.endTime)b=b.La+Math.floor((a-b.endTime)/this.o+1);else{b=qb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.La-b.La-1))+1)+b.La}return this.mg(b)};
g.h.mg=function(a){if(!this.u)return g.Xu.prototype.mg.call(this,a);if(!this.segments.length)return null;var b=wx(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.o;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].La-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.La-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.La-d.La-1)*(a-d.La-1));return new Wu(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.r(yx,rx);g.h=yx.prototype;g.h.Ll=function(){return!0};
g.h.cd=function(){return!0};
g.h.Cg=function(a){if(a.C)return!1;if(this.U&&-1<this.index.w&&0<this.M){var b=a.u<this.index.w,c=this.M>a.B;return!a.M||b&&c}return!0};
g.h.Bj=function(){return[]};
g.h.pg=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new aw(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ee,void 0,this.Ee*this.info.o);return new lx([c],"")}return rx.prototype.pg.call(this,a,b)};
g.h.Ni=function(a,b){var c=void 0===c?!1:c;if(xx(this.index,a))return rx.prototype.Ni.call(this,a,b);var d=this.index.gd(a),e=b?0:this.Ee*this.info.o,f=!b;c=new aw(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.jb()&&!this.G&&0<e,f);return new lx([c],0<=a?"sq/"+a:"")};Dx.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Dx,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+zx(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+zx(a,"startNumber")||0;d.F=k;var m=k;var n=+zx(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(Cx(zx(a,"yt:segmentIngestTime")))/1E3;d.w="SegmentTemplate"==a.parentNode.tagName;d.w&&(d.C=zx(a,"media"));var p=c?l-c.La:1;d.B=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=
e.next()){p=p.value;for(var t=+p.getAttribute("d")/f,u=(+p.getAttribute("yt:sid")||0)/f,z=+p.getAttribute("r")||0,C=0;C<=z;C++)if(c&&l<=c.La)l++;else{var D=new hga(l,m,t,n+u,k);d.o.push(D);var E=D.startSecs;D=p.getAttribute("yt:cuepointTimeOffset");var F=p.getAttribute("yt:cuepointDuration");if(D&&F){D=parseFloat(D);E=(eE?+D/f:-D/f)+E;F=parseFloat(F)/f;var G=p.getAttribute("yt:cuepointContext")||null,fa=p.getAttribute("yt:cuepointIdentifier");var oa=p.getAttribute("yt:cuepointEvent");oa=Tra[oa]||
"unknown";D=new gv(E,F,G,fa,oa,D)}else D=null;D&&d.A.push(D);l++;m+=t;k+=t;n+=t+u}}d.o.length&&(d.u=g.Va(d.o))}this.B=d.B;this.u=d.u||this.u;ib(this.o,d.o);ib(this.A,d.A);this.w=d.w;this.C=d.C;this.F=d.getStreamTimeOffset()};
Dx.prototype.getStreamTimeOffset=function(){return this.F};g.r(Ex,qx);g.h=Ex.prototype;g.h.ce=function(){return!1};
g.h.Ll=function(){return!1};
g.h.Bj=function(){if(this.F){var a=new aw(1,this,null,"otfInit");return[new lx([a],this.F)]}a=new aw(1,this,this.initRange,"otfInitInfo");var b=new aw(2,this,this.indexRange,"otfIndexInfo");return[new lx([a,b])]};
g.h.Li=function(){return null};
g.h.hh=function(a){this.Cg(a);return Fx(this,fw(a),!1)};
g.h.pg=function(a,b){b=void 0===b?!1:b;var c=this.index.Re(a);b&&(c=Math.min(this.index.jb(),c+1));return Fx(this,c,!0)};
g.h.ho=function(a){if(1==a.info.type)this.o||(this.o=tw(a.o)),a.u&&"http://youtube.com/streaming/otf/durations/112015"==a.u.uri&&pga(this,a.u);else if(2==a.info.type)if(g.gt(this.info)){if(!this.index.Hb()&&(a=g.mv(xw(a),0,1936286840))){var b=[],c=wv(a);a=c.tu.length;var d=c.Wp,e=c.tu,f=c.Sp;c=this.indexRange.end+c.ax+1;for(var k=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new Wu(l,k,m,NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(b)}}else if(this.info.Bc()&&this.o&&(d=new Cv(new DataView(this.o.buffer)),
b=Rv(d))&&(d=new Cv(xw(a)),a=Tv(d,b.Bm,this.indexRange.end))){d=[];e=b.Ou/b.Pu;f=a.length-1;for(c=0;c<f;c++)k=a[c],l=a[c+1],m=k.Gn*e,d.push(new Wu(c,m,l.Gn*e-m,NaN,"range/"+k.ki+"-"+(l.ki-1)));c=a[f].Gn*e;d.push(new Wu(f,c,b.duration*e-c,NaN,"range/"+a[f].ki+"-"+(b.yu+b.Bm)));this.index.append(d)}};
g.h.Cg=function(a){return 0==a.Oa?!0:this.index.jb()>a.u&&this.index.Qe()<=a.u+1};
g.h.Wn=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.h.xp=function(){return!1};g.h=g.Gx.prototype;g.h.bp=function(a){return this.u[a]};
g.h.gd=function(a){return this.w[a]/this.B};
g.h.bo=ba(0);g.h.qt=function(){return NaN};
g.h.getDuration=function(a){a=this.mx(a);return 0<=a?a/this.B:-1};
g.h.mx=function(a){return a+1<this.o||this.A?this.w[a+1]-this.w[a]:-1};
g.h.Qe=function(){return 0};
g.h.jb=function(){return this.o-1};
g.h.gh=function(){return this.A?this.w[this.o]/this.B:NaN};
g.h.Ab=function(){return 0};
g.h.Cj=function(){return this.o};
g.h.Rr=function(){return""};
g.h.Re=function(a){a=g.pb(this.w.subarray(0,this.o),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Hb=function(){return 0<=this.jb()};
g.h.yx=function(a,b){if(a>=this.jb())return 0;for(var c=0,d=this.gd(a)+b,e=a;e<this.jb()&&d>this.gd(e);e++)c=Math.max(c,(e+1<this.o||this.A?this.u[e+1]-this.u[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){Hx(this);this.A=!0;this.w[this.o]=b;this.u[this.o]=a};g.r(Ix,qx);g.h=Ix.prototype;g.h.Bj=function(a){var b=new aw(1,this,this.initRange,"initInfo"),c=new aw(2,this,this.indexRange,"indexInfo"),d=[],e=[b];dw(b,c)?e.push(c):(d.push(new lx([c])),a=0);isNaN(this.F)&&(a=0);b=e[e.length-1];a=Math.min(a,this.F-(b.range.end-e[0].range.start+1));0<a&&(a=Zv(b.range.end+1,a),e.push(new aw(4,this,a,"tbdRange")));d.push(new lx(e));return d};
g.h.ho=function(a){if(1==a.info.type){if(this.o)return;this.o=tw(a.o)}else if(2==a.info.type){if(this.G||0<=this.index.jb())return;if(g.gt(this.info)){var b=this.index,c=xw(a);a=a.info.range.start;var d=g.mv(c,0,1936286840);c=wv(d);b.B=c.Wp;var e=c.zE;b.u[0]=c.ax+a+d.size;b.w[0]=e;b.A=!0;a=c.Sp.length;for(d=0;d<a;d++){e=b;var f=c.tu[d],k=c.Sp[d];e.o++;Hx(e);e.u[e.o]=e.u[e.o-1]+f;e.w[e.o]=e.w[e.o-1]+k}}else this.G=xw(a)}if(this.info.Bc()&&this.o&&this.G){c=new DataView(this.o.buffer);b=this.index;
a=this.G;d=this.indexRange.end;e=new Cv(c);c=Rv(e);if(null!=c&&(b.B=c.Pu/c.Ou,e=new Cv(a),a=Tv(e,c.Bm,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.ki,f=f.Gn,Hx(d),d.u[d.o]=e,d.w[d.o]=f,d.o++;b.cap(c.yu+c.Bm,c.duration)}this.G=null}};
g.h.Wy=function(a){for(var b=this.Ip(a.info),c=a.info.range.start+a.info.w,d=a.w,e=[],f=0;f<b.length;f++){var k=b[f].Oa;k=a.o.split(b[f].range.start+b[f].w-c).ij.split(k).mo;e.push(new ww(b[f],k,d));d=!1}return e};
g.h.Ip=function(a){for(var b=a.range.start+a.w,c=0;c<this.index.jb()&&b>=this.index.bp(c+1);)c++;return Jx(this,c,b,a.Oa).o};
g.h.Cg=function(a){return this.cd()?!0:isNaN(this.F)?!1:a.range.end+1<this.F};
g.h.Li=function(a,b){this.Cg(a);if(!this.cd()){var c=Zv(a.range.end+1,b);c.end+1>this.F&&(c=new Xv(c.start,this.F-1));c=[new aw(4,a.o,c,"getNextRequestInfoByLength")];return new lx(c)}4==a.type&&(c=this.Ip(a),a=c[c.length-1]);c=0;var d=a.range.start+a.w+a.Oa;3==a.type&&(c=a.u,d==a.range.end+1&&(c+=1));return Jx(this,c,d,b)};
g.h.hh=function(){return null};
g.h.pg=function(a,b){var c=this.index.Re(a);b&&(c=Math.min(this.index.jb(),c+1));return Jx(this,c,this.index.bp(c),0)};
g.h.ce=function(){return!0};
g.h.Ll=function(){return!1};
g.h.Wn=function(){return this.indexRange.length+this.initRange.length};
g.h.xp=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};g.r(Mx,g.O);g.h=Mx.prototype;g.h.yg=function(){return Cb(this.o,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.zg=function(){return Cb(this.o,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.tg=function(){return Cb(this.o,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.Oj=function(){return Cb(this.o,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.QN=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Ef=this.w=!0;this.B||(this.B=new jga);nga(this.B,a,this.ga);this.S("refresh");for(a=0;a<b.length;a++){var c=Yx(this,b[a]),d=this.isLive&&g.gt(c)&&this.ma;if(!this.o[c.id]){var e=Rx(Ax(b[a],"BaseURL").textContent),f=Ax(b[a],"Initialization"),k=zx(f,"sourceURL");f=Yv(zx(f,"range"));d&&(k="",f=void 0);this.o[c.id]=new rx(e,c,k,null===
f?void 0:f)}c=this.o[c.id];e=zx(b[a],"id","AdaptationSet");e=""!=e?e:zx(b[a],"mimetype","AdaptationSet");k=this.B;e=k.w[c.info.id]||k.u[e]||k.o||null;k=e.o;!this.U&&e.getStreamTimeOffset()&&(this.U=e.getStreamTimeOffset());if(e.w)for(d=[],k=g.q(k),f=k.next();!f.done;f=k.next()){f=f.value;for(var l=c.info.id,m=8*c.info.o,n=f.La,p=f.startSecs,t=e.C.split("$$"),u=0;u<t.length;u++)t[u]=t[u].replace("$RepresentationID$",l),t[u]=t[u].replace("$Number$",n.toString()),t[u]=t[u].replace("$Bandwidth$",m.toString()),
t[u]=t[u].replace("$Time$",p.toString());d.push(new Wu(f.La,f.startSecs,f.durationSecs,f.o,t.join("$"),null,f.u))}else{e=jb(Ax(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.B);f=[];for(l=0;l<e.length;l++)f.push(Aga(e[l],k[l],d));d=f}c.update(d,this.isLive,this.ba)}oga(this.B);return!0}this.duration=Bx(zx(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=Yx(this,k);e=Ax(k,"BaseURL");d=Rx(e.textContent);f=Ax(k,"SegmentBase");k=Yv(f.attributes.indexRange.value);f=Yv(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(Wx(this,"contentLength")),10);c=new Ix(d,c,f,k,e,NaN);if(!c){b=!1;break a}Px(this,c)}b=!0}return b};
g.h.qF=function(a){if(this.ea())return this;this.R=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.F=1E3*Bx(zx(a,"minimumUpdatePeriod"))||Infinity;if(!this.V){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"===a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.aa=b}this.isLive=Infinity>this.F&&this.oa;this.ba=parseInt(zx(a,Wx(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse(Cx(zx(a,Wx(this,"mpdResponseTime")))))this.G=((0,g.H)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.ti)(a.getElementsByTagName("Period"),this.QN,this);this.C=2;this.S("loaded");ay(this);return this};
g.h.tF=function(a){this.R=a.Ji.status;this.C=3;this.S("loaderror");return Ef(a.Ji)};
g.h.refresh=function(){if(1!=this.C&&!this.ea()){var a=g.yd(this.sourceUrl,{start_seq:Bga(this).toString()});Lf(Zx(this,a),function(){})}};
g.h.resume=function(){ay(this)};
g.h.sc=function(){var a=this.o,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],k=f.index;k.Hb()&&(f.w&&(b=!0),k=k.gh(),f.info.audio&&(isNaN(c)||k<c)?c=k:f.info.isVideo()&&(isNaN(d)||k<d)&&(d=k))}return b||isNaN(d)?c:Math.min(c,d)};
g.h.Ab=function(){var a=this.o,b;for(b in a){var c=a[b].index;if(c.Hb())return c.Ab()}return 0};
g.h.getStreamTimeOffset=function(){return this.U};
var Sx=null,Tx=!1,Ux=!1,Xx={commentary:1,alternate:2,dub:3,main:4};var Oga={EP:"adunit",xQ:"detailpage",CQ:"editpage",FQ:"embedded",ER:"leanback",pS:"previewpage",qS:"profilepage",KD:"unplugged",mS:"playlistoverview",NS:"sponsorshipsoffer"};var Wy={GR:1,HR:2,IR:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.r(dy,g.O);dy.prototype.add=function(a,b){!this.o[a]&&(b.zn||b.An||b.Pm)&&(this.o[a]=Tb(b),this.S("vast_info_card_add",a))};
dy.prototype.remove=function(a){var b=this.get(a);delete this.o[a];return b};
dy.prototype.get=function(a){return this.o[a]||null};
dy.prototype.isEmpty=function(){return g.Mb(this.o)};var Pga={RED:"red",lT:"white"};ny.prototype.w=function(a,b){var c=Math.pow(this.alpha,a);this.u=b*(1-c)+c*this.u;this.A+=a};
ny.prototype.o=function(){return this.u/(1-Math.pow(this.alpha,this.A))};py.prototype.w=function(a,b){var c=Math.min(this.u,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.u&&(this.A=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.u;this.C=!0};
py.prototype.o=function(){return this.F?(qy(this,this.B-this.F)+qy(this,this.B)+qy(this,this.B+this.F))/3:qy(this,this.B)};var Lga=/^([0-9\.]+):([0-9\.]+)$/;var Gy="area120-boutique blogger books docs duo google-live google-one play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.r(cz,g.A);g.h=cz.prototype;g.h.fa=function(a){return g.P(this.experiments,a)};
g.h.Kd=function(a,b){b=void 0===b?!1:b;this.Ea=Dy(this.Ea,a.video_id);this.rb=Dy(this.rb,a.eventid);var c=[],d;for(d in Wra){var e=Wra[d],f=a[e];void 0!=f&&(f!=this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.kn&&(c.sort(),g.Uq(new Sq("Player client parameters changed after startup",c)));this.userAge=Cy(this.userAge,a.user_age);this.U=Dy(this.U,a.user_display_image);g.Sw(this.U)||(this.U="");this.ha=Dy(this.ha,a.user_display_name);this.pe=Dy(this.pe,a.user_gender);this.pd=
Dy(this.pd,a.csi_page_type);this.Rb=Dy(this.Rb,a.csi_service_name);this.Kc=S(this.Kc,a.enablecsi);this.pageId=Dy(this.pageId,a.pageid);if(c=a.enabled_engage_types)this.rd=new Set(c.split(","))};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.fz(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.az(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,nl&&(a=gq())&&(b.ebc=a));return g.yd(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.fz(this)+"/embed/"+a;c&&(a=g.yd(a,{list:c}));c=b.width;b=b.height;a=g.dd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.h.supportsGaplessAudio=function(){return g.Dt&&!nl&&74<=bl()||g.hu&&g.Kd(68)?!0:!1};
var Wra={cQ:"cbrand",dQ:"cbr",eQ:"cbrver",tR:"c",wR:"cver",vR:"ctheme",uR:"cplayer",NR:"cmodel",RR:"cnetwork",WR:"cos",XR:"cosver",dS:"cplatform"},Qga=["www.youtube-nocookie.com","youtube.googleapis.com"];vz.prototype.clone=function(a){return new vz(this.flavor,a,this.u,this.B)};
vz.prototype.Za=function(){return{flavor:this.flavor,keySystem:this.o}};
vz.prototype.ge=function(){switch(this.o){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.o}};
var Z1={},Dz=(Z1.playready=["com.youtube.playready","com.microsoft.playready"],Z1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],Z1);Ez.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.r(Iz,g.A);Iz.prototype.I=function(){(this.F=!this.F&&"widevine"==this.u[this.o[0]].flavor)||this.o.shift();Jz(this)};
Iz.prototype.P=function(a,b){this.ea()||(a.keySystemAccess=b,aha(this,a),this.w.push(a),g.P(this.B,"html5_drm_fallback_to_playready_on_retry")||this.G?(this.o.shift(),Jz(this)):this.C(this.w))};g.r(Nz,xu);Nz.prototype.nx=function(){return this.w};
Nz.prototype.em=function(){if(!this.o||this.o.ea()){var a=this.u;fha(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.o)var d=a.o;else{d="";for(var e=g.q(a.w),f=e.next();!f.done;f=e.next())if(f=f.value,f.tb){if(f.tb.getIsDefault()){d=f.tb.getId();break a}d||(d=f.tb.getId())}}e=g.q(a.w);for(f=e.next();!f.done;f=e.next())f=f.value,f.tb&&f.tb.getId()!==d||(c[f.itag]=f);d=g.q(a.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.audioItag&&b.push(eha(a,c[e.audioItag],e));d=g.q(a.u);for(e=d.next();!e.done;e=
d.next())if(e=e.value,e.audioItag){f=a;var k=c[e.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Lz(k,e)+'",CLOSED-CAPTIONS=NONE'));b.push(Kz(f,e.url,""))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.o=new Wt(a)}return this.o};g.r(Pz,xu);Pz.prototype.em=function(){return new Wt(this.o.jc())};
Pz.prototype.zu=function(){this.o=bx(this.o)};g.r(Qz,xu);Qz.prototype.em=function(){return new Wt(this.o)};var Sz={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Vz={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var $1={},hC=($1.AD_MARKER="ytp-ad-progress",$1.CHAPTER_MARKER="ytp-chapter-marker",$1.TIME_MARKER="ytp-time-marker",$1);var a2={},mha=(a2.ALWAYS=1,a2.BY_REQUEST=3,a2),b2={},Eha=(b2.COLOR_PRIMARIES_BT709="bt709",b2.COLOR_PRIMARIES_BT2020="bt2020",b2),c2={},Fha=(c2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",c2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",c2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",c2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",c2),d2={},cA=(d2.FAIRPLAY="fairplay",d2.PLAYREADY="playready",d2.WIDEVINE="widevine",d2),e2={},Jha=(e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN=
"UNKNOWN",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",e2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",e2),f2={},Bha=(f2.UNKNOWN=0,f2.RECTANGULAR=1,f2.EQUIRECTANGULAR=2,f2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=3,f2.MESH=4,f2),g2={},Dha=(g2.SPATIAL_AUDIO_TYPE_NONE=0,g2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,g2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,g2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,g2),h2={},Cha=(h2.STEREO_LAYOUT_UNKNOWN=
0,h2.STEREO_LAYOUT_LEFT_RIGHT=1,h2.STEREO_LAYOUT_TOP_BOTTOM=2,h2),i2={},Aha=(i2.FORMAT_STREAM_TYPE_UNKNOWN=0,i2.FORMAT_STREAM_TYPE_OTF=3,i2);var j2;var Xra=g.Ic,Yra=Xra.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Yra||2>Yra.length)j2=void 0;else{var k2=Xra.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);j2=k2&&6==k2.length?Number(k2[5].replace("_",".")):0}var UB=j2,gQ=0<=UB;gQ&&0<=g.Ic.search("Safari")&&g.Ic.search("Version");g.r(fA,hs);g.r(gA,hs);var Mha=new is("aft-recorded",fA),QA=new is("timing-sent",gA);var l2=window,MA=l2.performance||l2.mozPerformance||l2.msPerformance||l2.webkitPerformance||new Lha;var pA=!1,Nha=(0,g.x)(MA.clearResourceTimings||MA.webkitClearResourceTimings||MA.mozClearResourceTimings||MA.msClearResourceTimings||MA.oClearResourceTimings||g.Ia,MA);var wA=g.w("ytLoggingLatencyUsageStats_")||{};g.Ga("ytLoggingLatencyUsageStats_",wA,void 0);uA.prototype.tick=function(a,b,c){xA(this,"tick_"+a+"_"+b)||g.Rq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
uA.prototype.info=function(a,b){var c=Object.keys(a).join("");xA(this,"info_"+c+"_"+b)||(a.clientActionNonce=b,g.Rq("latencyActionInfo",a))};
uA.prototype.span=function(a,b){var c=Object.keys(a).join("");xA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Rq("latencyActionSpan",a))};var m2={},DA=(m2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",m2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",m2.app_startup="LATENCY_ACTION_APP_STARTUP",m2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",m2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",m2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",m2.browse="LATENCY_ACTION_BROWSE",m2.channels="LATENCY_ACTION_CHANNELS",m2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",m2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
m2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",m2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",m2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",m2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",m2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",m2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",m2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",m2.chips="LATENCY_ACTION_CHIPS",m2["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",m2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",m2.embed="LATENCY_ACTION_EMBED",m2.home="LATENCY_ACTION_HOME",m2.library="LATENCY_ACTION_LIBRARY",m2.live="LATENCY_ACTION_LIVE",m2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",m2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",m2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",m2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",m2.prebuffer=
"LATENCY_ACTION_PREBUFFER",m2.prefetch="LATENCY_ACTION_PREFETCH",m2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",m2.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",m2.results="LATENCY_ACTION_RESULTS",m2.search_ui="LATENCY_ACTION_SEARCH_UI",m2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",m2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",m2.settings="LATENCY_ACTION_SETTINGS",m2.tenx="LATENCY_ACTION_TENX",m2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",m2.watch="LATENCY_ACTION_WATCH",
m2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",m2["watch,watch7"]="LATENCY_ACTION_WATCH",m2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",m2["watch,watch7ad"]="LATENCY_ACTION_WATCH",m2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",m2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",m2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",m2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",m2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",m2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
m2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",m2["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",m2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",m2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",m2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",m2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",m2),n2={},IA=(n2.ad_allowed="adTypesAllowed",n2.yt_abt="adBreakType",n2.ad_cpn="adClientPlaybackNonce",
n2.ad_docid="adVideoId",n2.yt_ad_an="adNetworks",n2.ad_at="adType",n2.browse_id="browseId",n2.p="httpProtocol",n2.t="transportProtocol",n2.cpn="clientPlaybackNonce",n2.ccs="creatorInfo.creatorCanaryState",n2.cseg="creatorInfo.creatorSegment",n2.csn="clientScreenNonce",n2.docid="videoId",n2.GetHome_rid="requestIds",n2.GetSearch_rid="requestIds",n2.GetPlayer_rid="requestIds",n2.GetWatchNext_rid="requestIds",n2.GetBrowse_rid="requestIds",n2.GetLibrary_rid="requestIds",n2.is_continuation="isContinuation",
n2.is_nav="isNavigation",n2.b_p="kabukiInfo.browseParams",n2.is_prefetch="kabukiInfo.isPrefetch",n2.is_secondary_nav="kabukiInfo.isSecondaryNav",n2.prev_browse_id="kabukiInfo.prevBrowseId",n2.query_source="kabukiInfo.querySource",n2.voz_type="kabukiInfo.vozType",n2.yt_lt="loadType",n2.mver="creatorInfo.measurementVersion",n2.yt_ad="isMonetized",n2.nr="webInfo.navigationReason",n2.nrsu="navigationRequestedSameUrl",n2.ncnp="webInfo.nonPreloadedNodeCount",n2.pnt="performanceNavigationTiming",n2.prt=
"playbackRequiresTap",n2.plt="playerInfo.playbackType",n2.pis="playerInfo.playerInitializedState",n2.paused="playerInfo.isPausedOnLoad",n2.yt_pt="playerType",n2.fmt="playerInfo.itag",n2.yt_pl="watchInfo.isPlaylist",n2.yt_pre="playerInfo.preloadType",n2.yt_ad_pr="prerollAllowed",n2.pa="previousAction",n2.yt_red="isRedSubscriber",n2.rce="mwebInfo.responseContentEncoding",n2.scrh="screenHeight",n2.scrw="screenWidth",n2.st="serverTimeMs",n2.aq="tvInfo.appQuality",n2.br_trs="tvInfo.bedrockTriggerState",
n2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",n2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",n2.label="tvInfo.label",n2.is_mdx="tvInfo.isMdx",n2.preloaded="tvInfo.isPreloaded",n2.upg_player_vis="playerInfo.visibilityState",n2.query="unpluggedInfo.query",n2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",n2.yt_vst="videoStreamType",n2.vph="viewportHeight",n2.vpw="viewportWidth",n2.yt_vis="isVisible",n2.rcl="mwebInfo.responseContentLength",n2.GetSettings_rid="requestIds",
n2.GetTrending_rid="requestIds",n2.GetMusicSearchSuggestions_rid="requestIds",n2.REQUEST_ID="requestIds",n2),Oha="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),o2={},JA=(o2.ccs="CANARY_STATE_",o2.mver="MEASUREMENT_VERSION_",
o2.pis="PLAYER_INITIALIZED_STATE_",o2.yt_pt="LATENCY_PLAYER_",o2.pa="LATENCY_ACTION_",o2.yt_vst="VIDEO_STREAM_TYPE_",o2),Pha="all_vc ap c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");if(g.xo("overwrite_polyfill_on_logging_lib_loaded")){var p2=window;p2.ytcsi&&(p2.ytcsi.info=GA,p2.ytcsi.tick=HA)};g.r(RA,g.O);RA.prototype.ti=function(a,b){for(var c=SA(this,b);0<=c;){var d=this.levels[c];if(d.Hb(Math.floor(a/(d.columns*d.rows)))&&(d=d.ti(a)))return d;c--}return this.levels[0].ti(a)};
RA.prototype.I=function(a,b){null!==this.o&&(this.o=this.o.onload=null);var c=this.levels[a];c.loaded.add(b);TA(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Lr()-1);e=[e,c];this.S("l",e[0],e[1])};
RA.prototype.X=function(){this.o&&(this.o=this.o.onload=null);g.O.prototype.X.call(this)};g.h=g.VA.prototype;g.h.Yc=function(){return this.width};
g.h.getHeight=function(){return this.height};
g.h.tx=ba(2);g.h.Lr=function(){return this.w};
g.h.isDefault=function(){return-1!==this.A.indexOf("default")};
g.h.Hb=function(a){return this.loaded.has(a)};
g.h.jc=function(a){var b=this.B;b=b.replace("$N",this.A);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.yd(b,{sigh:this.signature}));return Ww(b)};
g.h.ti=function(a){a>=this.nt()&&this.cm();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.cm()+1-c*b;if(e<this.columns){var f=e;c=1}else f=this.columns,c=e<c?Math.ceil(e/this.columns):this.rows;return{url:this.jc(b),column:a,columns:f,row:d,rows:c,jp:this.width*f,ip:this.height*c}};
g.h.Yo=function(a){var b=this.Lr()-1;return g.Md(0===this.o?Math.round(a*this.w/this.videoLength):Math.round(1E3*a/this.o),0,b)};
g.h.cm=function(){return this.w-1};
g.h.nt=function(){return this.w?0:-1};
g.h.iz=function(){};g.r(WA,RA);WA.prototype.u=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.B(f-1,e,d[f],b);(this.G||180>k.getHeight())&&c.push(k)}return c};
WA.prototype.B=function(a,b,c,d){return new g.VA(a,b,c,d)};g.r(YA,g.VA);g.h=YA.prototype;g.h.Lr=function(){return this.u.Cj()};
g.h.Yo=function(a){var b=this.rows*this.columns*this.C,c=this.u,d=c.jb();a=c.Re(a);return a>d-b?-1:a};
g.h.cm=function(){return this.u.jb()};
g.h.nt=function(){return this.u.Qe()};
g.h.iz=function(a){this.u=a};g.r(ZA,WA);ZA.prototype.u=function(a,b){return WA.prototype.u.call(this,"$N|"+a,b)};
ZA.prototype.B=function(a,b,c){return new YA(a,b,c,this.isLive)};g.r(g.aB,g.O);g.h=g.aB.prototype;g.h.Kd=function(a,b){b?($A(this,a),EB(this)&&uB(this)):(a=a||{},dB(this,a),cB(this,a),this.S("dataupdated"))};
g.h.N=function(){return this.Pa};
g.h.fa=function(a){return g.P(this.Pa.experiments,a)};
g.h.Qc=function(){return!this.va||this.allowLiveDvr};
g.h.lo=function(){return!!(this.xa&&this.xa.videoInfos&&this.xa.videoInfos.length)};
g.h.jG=function(a){for(var b=g.q(a),c=b.next();!c.done;c=b.next())switch(c=c.value,c.flavor){case "fairplay":c.Oe=this.Oe;c.Mn=this.Mn;c.Ln=this.Ln;break;case "widevine":c.Rm=this.Rm}this.rk=a;0<this.rk.length&&(this.uc=this.rk[0]);uB(this)};
g.h.MK=function(a){this.ea()||(oB(this,a),a.w&&a.subscribe("refresh",this.wA,this),HA("mrc"),Nx(a)&&(this.Sj=!0),uB(this))};
g.h.LK=function(a){this.ea()||(this.wc=!1,this.S("dataloaderror",new Os("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.wA=function(){this.ea()||(this.ia.w||this.ia.unsubscribe("refresh",this.wA,this),this.Aw())};
g.h.Aw=function(){if(this.fa("html5_disable_fairplay_dai_killswitch")||!this.va||!this.uc||"fairplay"!=this.uc.flavor){var a=Vx(this.ia,this.Js);0<a.length&&(this.S("cuepointupdated",a),this.Js+=a.length)}};
g.h.on=function(a){var b=this;if(this.ea())return kr();this.Gg=this.me=this.xa=null;var c=this.Pa.deviceParams.c;this.fa("disable_rqs")||(this.xg=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||SB(this));return $ha(this,a).then(void 0,(0,g.x)(this.uG,this,a)).then(void 0,(0,g.x)(this.wG,this)).then(void 0,(0,g.x)(this.vG,this)).then(function(){if(b.fa("html5_probe_media_capabilities")&&b.xa)return kha(b.xa).then(b.Hu,void 0,b)})};
g.h.uG=function(a){if(a&&this.hlsvp)return kr();if(this.hlsFormats){a=nB(this.hlsFormats);if(nl||ll()||hl()){var b=Mz(a);if(b){var c=[],d={};for(l in b)for(var e=g.q(b[l]),f=e.next();!f.done;f=e.next()){var k=f.value;k.tb&&(f=k.tb.getId(),d[f]||(k=new Us(f,k.tb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.oo=l;l=this.fa("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return iha(this.Pa,this.isAd(),a,this.qh,l).then(this.Gu,void 0,this)}return kr()};
g.h.wG=function(){if(this.Ak&&this.oy){var a=this.Pa;var b=this.isAd(),c=jha(this.Ak);a=yu(a.A,c,dz(a,b)).then(this.Gu,void 0,this)}else a=kr();return a};
g.h.vG=function(){var a=nB(this.Gk,this.Hr);if(this.hlsvp){var b=this.hlsvp;var c=this.qh,d={cpn:this.clientPlaybackNonce};-1===b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.yd(b,d),type:"application/x-mpegURL",quality:"auto",itag:"93"};a.push(b)}b=this.Pa;c=this.isAd();d={cpn:this.clientPlaybackNonce,c:this.Pa.deviceParams.c,cver:this.Pa.deviceParams.cver};this.wp&&(d.ptk=this.wp,d.oid=this.oB,d.ptchn=this.nB,d.pltype=this.pB);var e=[];a=g.q(a);for(var f=a.next();!f.done;f=a.next()){var k=
f.value;if(k.url){f=new Xw(k.url);if(k.s){var l=k.sp,m=Lw(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}for(var n in d)f.set(n,d[n]);k=kt(k.type,k.quality,k.itag,k.width,k.height);e.push(new Pz(k,f))}}return yu(b.A,e,dz(b,c)).then(this.Gu,void 0,this)};
g.h.Hu=function(a){this.xa=a;a=this.getAvailableAudioTracks();a=a.concat(this.fl);for(var b=0;b<this.Yq.length;b++)for(var c=this.Yq[b],d=0;d<a.length;d++){var e=a[d],f=e.tb.id==c.audioTrackId;if(e.tb.isDefault&&b==this.pw||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];void 0!==c.defaultCaptionTrackIndex&&(e.sr=this.captionTracks[c.defaultCaptionTrackIndex]);void 0!==c.forcedCaptionTrackIndex&&(e.Pn=this.captionTracks[c.forcedCaptionTrackIndex]);
e.dr=c.visibility||"UNKNOWN"}}if(!this.fa("html5_playbackmanager_infocheck_killswitch")&&this.uc&&this.xa&&this.xa.videoInfos&&!(0>=this.xa.videoInfos.length)&&(a=ht(this.xa.videoInfos[0]),a!=("fairplay"==this.uc.flavor)))for(b=g.q(this.rk),c=b.next();!c.done;c=b.next())if(c=c.value,a==("fairplay"==c.flavor)){this.uc=c;break}};
g.h.Gu=function(a){this.Gg=a;this.Hu(new Ez((0,g.Cc)(this.Gg,function(b){return b.ge()})))};
g.h.Wc=function(){var a={};this.Ba&&(a.fmt=ct(this.Ba),this.Vb&&ct(this.Vb)!=ct(this.Ba)&&(a.afmt=ct(this.Vb)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.fi&&(a.infringe=1);this.sh&&(a.splay=1);var b=BB(this);b&&(a.live=b);this.Lh&&(a.autoplay=1);this.Cp&&(a.sdetail=this.Cp);this.De&&(a.partnerid=this.De);this.osid&&(a.osid=this.osid);this.Zh&&(a.als=this.Zh);return a};
g.h.ue=function(){var a=g.lz(this.Pa)||this.fa("web_l3_storyboard");if(!this.Ik)if(this.Da&&this.Da.storyboards){var b=this.Da.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Ik=new WA(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ia&&(c=Eb(this.ia.o).index)&&(this.Ik=new ZA(b.spec,this.ia.isLive,c,a))}else this.Qp?this.Ik=new WA(this.Qp,this.lengthSeconds,void 0,!1,a):this.Do&&this.ia&&(b=Eb(this.ia.o).index)&&(this.Ik=new ZA(this.Do,this.ia.isLive,
b,a));return this.Ik};
g.h.getStoryboardFormat=function(){if(this.Da&&this.Da.storyboards){var a=this.Da.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Qp||this.Do};
g.h.sc=function(){return this.ia&&!isNaN(this.ia.sc())?this.ia.sc():qB(this)?0:this.lengthSeconds};
g.h.Ab=function(){return this.ia&&!isNaN(this.ia.Ab())?this.ia.Ab():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.ia&&this.Ba){var b=this.ia.o[this.Ba.id];if(!b)return null;var c=b.index.Re(a);b=b.index.gd(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.ea()&&!(!this.videoId&&!this.Ak)};
g.h.Hb=function(){return EB(this)&&!this.di&&!this.Sj};
g.h.tc=function(a){if(30==this.De)return(a=this.gf["default.jpg"])?a:this.videoId?g.yd("//docs.google.com/vt",{id:this.videoId,authuser:this.Nc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.gf[a];return b||this.Pa.P||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:gz(this.Pa,this.videoId,a)};
g.h.Ef=function(){return this.va||this.ze||this.yo||!(!this.liveUtcStartSeconds||!this.Ql)};
g.h.Ml=function(){return!!this.ia&&(this.ia.Ml||!this.ze&&!this.va&&this.ia.w)};
g.h.getAvailableAudioTracks=function(){return this.xa?0<this.xa.getAvailableAudioTracks().length?this.xa.getAvailableAudioTracks():this.oo||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.Vb&&!ht(this.Vb))return g.Xa(this.getAvailableAudioTracks(),function(d){return d.id==a.Vb.id})||this.fl;
if(this.oo){if(!this.Cm)for(var b=g.q(this.oo),c=b.next();!c.done;c=b.next())if(c=c.value,c.tb.getIsDefault()){this.Cm=c;break}return this.Cm||this.fl}return this.fl};
g.h.getPlayerResponse=function(){return this.Da};
g.h.getPlaylistId=function(){return null};
g.h.ya=function(){return this};
g.h.kh=function(){return this.Pa.getVideoUrl(this.videoId)};
g.h.yg=function(){return!!this.ia&&this.ia.yg()};
g.h.zg=function(){return!!this.ia&&this.ia.zg()};
g.h.tg=function(){return!!this.ia&&this.ia.tg()};
g.h.Oj=function(){return!!this.ia&&this.ia.Oj()};
g.h.isAd=function(){return!!this.adFormat};
g.h.ri=function(){if(this.isAd()&&this.videoId!=this.Pa.Ea)return this.Pa.Ea};
g.h.Qd=function(){return this.oauthToken||this.Pa.yb};
g.h.hy=function(){return!!(this.Da&&this.Da.playerConfig&&this.Da.playerConfig.daiConfig&&this.Da.playerConfig.daiConfig.enableDai)};
g.h.Fm=function(){return this.oj};
g.h.useInnertubeDrmService=function(){if(!(this.uc&&this.Da&&this.Da.playerConfig&&this.Da.playerConfig.webDrmConfig))return!1;var a="playready"===this.uc.flavor&&this.Da.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.uc.flavor&&this.Da.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.uc.flavor&&this.Da.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};g.r(WB,g.A);g.h=WB.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.G[a],f=d;if(e)if(c&&Ow(c,Ura,Vra))f=this.fa("web_player_tapi_split_killswitch")&&d?d:e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.N();d.an&&!this.M.has(a)&&(this.M.add(a),g.Rq("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Uq(Error('Dangerous call to "'+
a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.C[a]?!0:!!(this.G[a]&&b&&Ow(b,Ura,Vra))};
g.h.getBandwidthEstimate=function(){return wy(this.app.N().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.W(this.app);b&&(a={gpu:(0,g.yJ)(),d:a},b.Ki(new Os("feedback",!1,a)))};
g.h.getApiInterface=function(){return this.I.slice()};
g.h.getInternalApiInterface=function(){return g.Gb(this.w)};
g.h.addEventListener=function(a,b){if("string"===typeof b){var c=function(){g.w(b).apply(window,arguments)};
this.F[b]=c}else c=b;this.app.ma.subscribe(a,c)};
g.h.GE=function(a,b){var c=this,d="string"===typeof b?a+b:a+g.Pa(b);if(!this.B[d]){var e;"string"===typeof b?e=function(){g.w(b).apply(window,arguments)}:e=b;
var f=function(k){e({target:c.u,data:k})};
this.B[d]=f;this.app.ma.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if("string"===typeof b){var c=this.F[b],d=this.F;b in d&&delete d[b];b=c}this.app.ma.unsubscribe(a,b)};
g.h.HE=function(a,b){var c="string"===typeof b?a+b:a+g.Pa(b),d=this.B[c];d&&(this.app.ma.unsubscribe(a,d),d=this.B,c in d&&delete d[c])};
g.h.getPlayerState=function(){return gT(this.app)};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.h.seekTo=function(a,b,c){this.o&&pT(this.app,!0,this.playerType);AT(this.app,a,b,c,this.playerType)};
g.h.seekToStreamTime=function(a,b,c){this.o&&pT(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var k=g.W(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.Bb()&&(l=k.getStreamTimeOffset());AT(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.W(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=this.getVideoData();c&&(c.va||c.isLive)&&AT(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=eT(this.app,this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.R.volume};
g.h.setVolume=function(a){$B(this,a)};
g.h.isMuted=function(){return this.app.R.muted};
g.h.mute=function(){aC(this)};
g.h.unMute=function(){bC(this)};
g.h.playVideo=function(){this.o&&pT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!=a||this.app.Mb()?3==a?g.RK(this.app.A).Wl("control_play"):this.app.playVideo(a):(a=GL(this.app.A))&&Jqa(a,"control_play")};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!=a||this.app.Mb()?3==a?g.RK(this.app.A).Wl("control_pause"):this.app.pauseVideo(a):(a=GL(this.app.A))&&Jqa(a,"control_pause")};
g.h.stopVideo=function(){var a=this.app;a.o.ma&&a.u.S("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.W(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.N();a.Ia?(a=a.u||a.fa("web_player_admin_origin_killswitch")?a.Hc[0]:window.location.origin,a="https://admin.youtube.com"==a||"https://viacon.corp.google.com"==a?Sra:Rra):a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.W(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.W(this.app,this.playerType);return a?(a=(0,g.Cc)(TJ(a),function(b){return b.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.setSize=function(){this.app.G.ke()};
g.h.channelSubscribed=function(){this.na("SUBSCRIBE",SS(this.app).Ng)};
g.h.channelUnsubscribed=function(){this.na("UNSUBSCRIBE",SS(this.app).Ng)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.W(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.W(this.app).getPlaylistSequenceForTime(a)};
g.h.forceFrescaUpdate=function(){var a=aL(this.app.A);a&&a.PE()};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=HT(this.app);b&&(b.w=a,b.sa())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=HT(this.app);b&&(g.K(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.B&&(b.element.setAttribute("title","Faites d\u00e9filer la page pour afficher plus de d\u00e9tails"),g.Ge(b,g.BN(b.C.fb(),b.element)),b.B=!0))};
g.h.confirmYpcRental=function(){var a=g.W(this.app,this.playerType);a&&MJ(a,"ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.N().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.N().od=a};
g.h.setLivingRoomAppMode=function(a){this.app.N().livingRoomAppMode=a};
g.h.setEnablePrivacyFilter=function(a){this.app.N().enablePrivacyFilter=a};
g.h.isPictureInPictureAllowed=function(){return SS(this.app).Qq};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"==a&&(a=g.zL(this.app.A))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"==a&&(a=g.zL(this.app.A))&&a.loaded&&a.VO()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(Hu(a,b,c),this.playerType),this.o&&pT(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(Hu(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=Iu(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.o&&pT(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=Iu(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.N();if(a.P)return"";var b=SS(this.app),c=void 0;b.va||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.N();return a.P?"":a.getVideoEmbedCode(SS(this.app).videoId,this.app.G.getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return tT(this.app,a,b,c)};
g.h.removeCueRange=function(a){a:{for(var b=this.app,c=qF(b.w.R)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.w.removeCueRange(e);JS(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.o&&pT(this.app,!0,this.playerType)};
g.h.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.h.nextVideo=function(){this.app.nextVideo();this.o&&pT(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.o&&pT(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.o&&pT(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.h.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.h.getPlaylist=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.ya(c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.h.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.A;return"captions"==a?(a=g.zL(d))&&a.Oc(b,c):null};
g.h.getOption=function(a,b,c){var d=g.W(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.N().u?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;return"captions"==a?(b=g.zL(b))&&b.getOptions():a?null:(a=[],g.zL(b)&&a.push("captions"),a)};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.W(this.app,a)){a=a.getVideoData();if(a.isPrivate&&!this.fa("embeds_prevent_metadata_leaking_killswitch"))return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.Ba&&a.Ba.video){b.video_quality=a.Ba.video.quality;a=a.Ba.video;var c=[];32<a.fps&&c.push("hfr");$s(a)&&c.push("hdr");"bt2020"==a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.h.showVideoInfo=function(){ES(this.app,!0)};
g.h.hideVideoInfo=function(){ES(this.app,!1)};
g.h.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.h.getAdState=function(){return this.app.getAdState()};
g.h.isNotServable=function(a){if(a!=this.app.za.args.video_id)return!1;var b=(a=(a=g.W(this.app,1))?a.getPlayerState():null)?a.u:null;return!!(a&&b&&g.V(a,128)&&5==Qra[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.VK(this.app.A);return a?2==this.playerType?{}:a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!=this.playerType){var b=g.VK(this.app.A);b&&b.setSphericalProperties(a,!0)}};
g.h.supportsGaplessAudio=function(){return this.app.N().supportsGaplessAudio()};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.destroy=function(){this.app.dispose()};
g.h.sendAbandonmentPing=function(){var a=g.W(this.app);a&&a.sendAbandonmentPing()};
g.h.deleteLocalMediaById=function(a){return zt(a)};
g.h.deleteAllLocalMedia=function(){return Cfa()};
g.h.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.h.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.h.fetchLocalMediaById=function(a){this.app.fetchLocalMediaById(a)};
g.h.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.h.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.h.setAutonavState=function(a){CT(this.app,a)};
g.h.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.h.setLoopRange=function(a){this.app.setLoopRange(a)};
g.h.getLoopRange=function(){return this.app.getLoopRange()};
g.h.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.h.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.h.getAppState=function(){return this.app.getAppState()};
g.h.addInfoCardXml=function(a,b,c){this.app.N().I.add(a,{An:b,Pm:c})};
g.h.updateLastActiveTime=function(){Yp()};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.h.setUserEngagement=function(a){this.app.N().Md!=a&&(this.app.N().Md=a,(a=g.W(this.app,this.playerType))&&WJ(a))};
g.h.updateSubtitlesUserSettings=function(a){g.zL(this.app.A).MC(a,!0)};
g.h.setFauxFullscreen=function(a){Cr();NS(this.app,a?2:0)};
g.h.setUseFastSizingOnWatch=function(a){this.app.G.setUseFastSizingOnWatch(a)};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2==a&&this.app.Mb()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.W(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.ue();if(!c)return null;c=c.levels[b];return c?(c=c.ti(a))?{column:c.column,columns:c.columns,height:c.ip,row:c.row,rows:c.rows,url:c.url,width:c.jp}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.ue();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.Bb();return c.Yo(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.ue();return b?(b=b.levels[a])?{index:a,intervalMs:b.o,maxFrameIndex:b.cm(),minFrameIndex:b.nt()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.ue();return a?a.levels.length:0};
g.h.EE=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.W(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().fl};
g.h.setAudioTrack=function(a){3==this.getPresentingPlayerType()&&g.RK(this.app.A).Wl("control_set_audio_track",a);var b=g.W(this.app,this.playerType);if(b&&!b.ea()&&!g.V(b.u,128))if(b.T.xa.o)b.w.setAudioTrack(a);else{a:{var c=b.T;if(c.Vb&&!ht(c.Vb)||a==c.Cm||!c.Gg||0>=c.Gg.length)c=!1;else{for(var d=g.q(c.Gg),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof Nz)){c=!1;break a}var f=a.tb.getId();e.u&&(e.u.o=f,e.o=null)}c.Cm=a;c=!0}}c&&(b.S("internalaudioformatchange",b.T,!0),BJ(b)&&b.Ra("hlsaudio",
a.id))}};
g.h.FE=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.W(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.W(this.app,this.playerType);return a&&a.getVideoData().Ba?Fu(a.P?LG(a.U,a.P,SJ(a)):Du):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.W(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.zL(this.app.A);return a?a.hF():null};
g.h.resetSubtitlesUserSettings=function(){g.zL(this.app.A).oO()};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setGlobalCrop=function(a){this.app.G.setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.app.N();a=this.app.I.o&&!g.P(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Mi(),this.isFullscreen()||Qy(this.app.N()),a,this.isInline(),this.app.I.B,this.app.I.A)};
g.h.isMutedByMutedAutoplay=function(){return this.app.Qa};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.G.setInternalSize(new g.Sd(a,b))};
g.h.Bb=function(){var a=g.W(this.app,void 0);return a?a.Bb():0};
g.h.Mi=function(){var a=g.W(this.app,this.playerType);return!!a&&a.M.u};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.setSafetyMode=function(a){this.app.N().enableSafetyMode=a};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!=a.list)if(this.fa("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!=b.ya().videoId||(a.index=b.index)):VS(this.app,{list:a.list,index:a.index,playlist_length:d.length});sC(this.app.getPlaylist(),a);this.na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.W(this.app,this.playerType||1);c&&c.getVideoData().Kd(a,b)};
g.h.updateEnvironmentData=function(a){this.app.N().Kd(a,!1)};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.XK(this.app.A);d&&d.Vl()&&d.setCardsVisible(a,b,c)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.isAtLiveHead=function(a){return this.app.isAtLiveHead(void 0,void 0===a?!0:a)};
g.h.getVideoAspectRatio=function(){return this.app.G.getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.W(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.W(this.app,this.playerType);if(c){var d=Bu(a,b||a,!0,"m");c.T.gq=d;if(c.P){var e=c.P;if(e.xa.o){var f=g.Xs[gy()];e=e.xa.videoInfos[0].ya().fc;f>e&&0!=e&&d.o==e||g.Ds("yt-player-quality",Fu(d),2592E3)}}WJ(c)}};
g.h.onAdUxClicked=function(a){this.S("aduxclicked",a)};
g.h.S=function(a,b){for(var c=1;c<arguments.length;++c);this.app.N().w&&("videodatachange"==a||"resize"==a||"cardstatechange"==a)&&this.app.ma.S.apply(this.app.ma,arguments);this.app.da.S.apply(this.app.da,arguments)};
g.h.na=function(a,b){this.app.ma.S.apply(this.app.ma,arguments);this.app.da.S.apply(this.app.da,arguments)};
g.h.fa=function(a){return g.P(this.app.N().experiments,a)};
g.h.X=function(){if(this.A){for(var a in this.w)this.A[a]=null;this.A=null}this.B={};this.F={};g.A.prototype.X.call(this)};g.r(fC,WB);g.h=fC.prototype;g.h.addCueRange=function(a,b,c,d,e){return tT(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return gT(this.app,a)};
g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.h.previousVideo=function(a){this.app.previousVideo(a)};
g.h.seekBy=function(a,b,c){AT(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){AT(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b=WB.prototype.getVideoData.call(this,a)||{};if(a=g.W(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.va,b.isWindowedLive=a.yo,b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.Af,b.ypcOriginalItct=a.qP,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=zB(a),b.paidContentOverlayDurationMs=AB(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds),
a.ia&&Ox(a.ia)&&(b.usingLocalMedia="true");return b};
g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):WB.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):WB.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3==this.getPresentingPlayerType())return g.RK(this.app.A).getProgressState();var b=this.app.getVideoData(),c=(g.W(this.app,a)||g.W(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=eT(this.app,c),f=this.app.isAtLiveHead(c);var k=this.app;var l=g.W(k,void 0);if(l){l=PS(k,l);var m=NaN;l.o&&(m=zC(l.o));m=0<=m?m:l.getCurrentTime();k=fT(k,m,l)}else k=0;l=this.app.Ab(c);m=this.app;(c=g.W(m,c))?(c=OS(m,c),c=fT(m,vK(c),c)):c=0;return{allowSeeking:this.app.Qc(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:k,seekableStart:l,seekableEnd:c}};
g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.getCurrentBroadcastId=function(){var a=aL(this.app.A);return a?a.jx():null};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.dC(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.dC(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.dC(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.dC(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.G.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.toggleFullscreen=function(){var a=this.app.N();a.externalFullscreen?this.isFullscreen()?Er(window.document.documentElement):Br(window.document.documentElement):Cr()?this.isFullscreen()?Er(Dr()):"3"==a.controlsType?(a=this.app.B.ua())&&Br(a):Br(this.app.G.element):this.na("onFullscreenToggled",this.isFullscreen())};
g.h.cancelPlayback=function(){var a=GL(this.app.A);a&&a.created&&a.destroy();(a=g.W(this.app))&&a.stopVideo();(a=this.app.A.u.get("endscreen"))&&a.aG()&&g.NK(this.app.u,!0)};
g.h.stopVideo=function(){var a=this.app.N();!g.P(a.experiments,"disable_new_pause_state3")&&hz(a)&&"blazer"!=a.playerStyle?this.cancelPlayback():WB.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.W(this.app,this.playerType).Za(!0)};
g.h.toggleSubtitles=function(){var a=g.zL(this.app.A);a&&a.PO()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.VK(this.app.A);b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.VK(this.app.A);return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){$B(this,a,b)};
g.h.mute=function(a){aC(this,a)};
g.h.unMute=function(a){bC(this,a)};
g.h.mutedAutoplay=function(){this.fa("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.h.loadModule=function(a){if("annotations_module"==a){var b=g.XK(this.app.A);b&&!b.loaded&&b.load()}WB.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"==a){var b=g.XK(this.app.A);b&&b.loaded&&b.unload()}WB.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.A;switch(a){case "ad":return(a=GL(d))&&a.Oc&&a.Oc(b,c);case "kids":return(a=HL(d))&&a.Oc(b,c);case "remote":return(a=g.RK(d))&&a.Oc(b,c);case "unplugged":return(a=IL(d))&&a.Oc(b,c);case "annotations_module":return(a=g.XK(d))&&a.Oc(b,c);case "creatorendscreen":return(a=JL(d))&&a.Oc(b,c)}return WB.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;switch(a){case "ad":return(b=GL(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.RK(b))&&b.getOptions();case "annotations_module":return(b=g.XK(b))&&b.getOptions();case "creatorendscreen":return(b=JL(b))&&b.getOptions();case "unplugged":return(b=IL(b))&&b.getOptions();case "kids":return(b=HL(b))&&b.getOptions()}if(!a){a=WB.prototype.getOptions.call(this);if(!a)return a;GL(b)&&a.push("ad");g.RK(b)&&a.push("remote");g.XK(b)&&a.push("annotations_module");
JL(b)&&a.push("creatorendscreen");IL(b)&&a.push("unplugged");HL(b)&&a.push("kids");return a}return WB.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.G.getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.dC(this);a&&a.At()};
g.h.setCenterCrop=function(a){this.app.G.setCenterCrop(a)};
var gC="BASE_URL BASE_YT_URL abd adformat allow_embed authuser autohide autoplay c can_watch_later cbr cbrver cc3_module cc_load_policy controls cos cosver cpn cr csi_page_type cver cyc dash dashmpd disable_native_context_menu disablekb docid el enable_cardio enablecastapi enablecsi enablejsapi enablepostapi end external_fullscreen external_list fmt_list fmt_stream_map forcenewui fs gapi_hint_params height hl hlsdvr hlsvp host_language innertube_api_key innertube_api_version innertube_context_client_version invite iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl markedForQuality no_get_video_log origin osig override_hl pageid partnerid pipable player_response_parsed player_wide playerapiid playsinline plid postid profile_picture ps public rel reportabuseurl show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality t timestamp title tkn token transparent_background ttsurl ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark width wmode x_glive".split(" ");g.iC.prototype.getId=function(){return this.id};
g.iC.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+jC(this.start)+", "+jC(this.end)+"]"};
g.iC.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var bia=1;g.iC.prototype.getId=g.iC.prototype.getId;g.mC.prototype.toString=function(){return this.type+this.id};g.r(g.nC,g.O);g.h=g.nC.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.ya=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.aB(this.u,a),g.B(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.w++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.w++}this.S("shuffle")};
g.h.tc=function(a){a=a||"hqdefault.jpg";var b=this.gf[a];if(b||this.u.P||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.A.length)return gz(this.u,this.A[0],a)};
g.h.getLength=function(){return this.length};
g.h.loadPlaylist=function(a,b){var c=this;this.B&&g.Eq(g.yd(a,b),{format:"JSON",onSuccess:function(d,e){sC(c,e)},
onError:function(){return c.S("error")}})};
g.h.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.kh=function(){return this.u.getVideoUrl(this.ya().videoId,this.getPlaylistId())};
g.h.X=function(){this.o=null;g.Ie(this.items);g.O.prototype.X.call(this)};var Zra=gQ&&4>UB?.1:0,Pka=new uC;uC.prototype.o=null;uC.prototype.getDuration=function(){return this.duration||0};
uC.prototype.getCurrentTime=function(){return this.currentTime||0};
uC.prototype.u=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.r(g.vC,g.A);g.h=g.vC.prototype;g.h.Gp=function(){};
g.h.gj=ba(5);g.h.Uo=function(){return this.w};
g.h.ak=function(a){var b="";a&&(xC(this,a),b=a.o);this.Xc()&&""==b||(b&&this.Xc()!=b&&this.Lp(b),uS||a&&a.u||this.load(),this.F||(this.addEventListener("volumechange",this.Cw),this.F=!0))};
g.h.To=function(){var a=this.ua();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Jt(a);a=new Xt(a);this.ak(a.Sl);return a};
g.h.playVideo=function(){this.Bf()&&this.seekTo(0);!this.Xc()&&this.w&&(g.M(Error("playVideo without src")),this.Lp(this.w.o),this.w.u||this.load());var a=this.play();!a&&wS&&gQ&&7<=UB&&g.Op(this,"playing",(0,g.x)(function(){g.Ho((0,g.x)(this.dx,this,this.getCurrentTime(),0),500)},this));
return a};
g.h.dx=function(a,b){this.Dh()||this.getCurrentTime()>a||10<b||(this.play(),g.Ho((0,g.x)(this.dx,this,this.getCurrentTime(),b+1),500))};
g.h.seekTo=function(a){0<this.je()&&(xS&&gQ&&4>UB&&(a=Math.max(.1,a)),this.Kp(a))};
g.h.stopVideo=function(){this.Xc()&&(vS&&nl&&0<this.getCurrentTime()&&this.seekTo(0),this.Ep(),this.load(),xC(this,null))};
g.h.Za=function(){try{var a=this.ck();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Nt(this.Dj(),",",3),vbu:Nt(this.Dd()),vpa:""+ +this.Dh(),vsk:""+ +this.Yl(),ven:""+ +this.Bf(),vpr:""+this.getPlaybackRate(),vrs:""+this.je(),vns:""+this.Yn(),vec:""+this.Ye(),vemsg:this.bk(),vvol:""+this.getVolume(),vdom:""+ +this.zs(),vsrc:""+ +!!this.Xc(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.B.ka(a,b,!1,this);this.zr(a)};
g.h.removeEventListener=function(a,b){this.B.bb(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.yr=function(){this.C=!1};
g.h.ur=function(){this.C=!0;this.Rh(!0)};
g.h.Cw=function(){this.C&&!this.Xn()&&this.Rh(!0)};
g.h.X=function(){this.F&&this.removeEventListener("volumechange",this.Cw);g.A.prototype.X.call(this)};
var uS=!1,vS=!0,wS=!0,xS=!0;g.r(DC,g.Je);DC.prototype.preventDefault=function(){g.Je.prototype.preventDefault.call(this);this.u&&this.u.preventDefault()};
DC.prototype.stopPropagation=function(){g.Je.prototype.stopPropagation.call(this);this.u&&this.u.stopPropagation()};var zka,q2,hia;
zka={QP:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",VP:"AUTHENTICATION_MALFORMED",WP:"AUTHENTICATION_MISSING",aQ:"BAD_REQUEST",gQ:"CAST_SESSION_DEVICE_MISMATCHED",hQ:"CAST_SESSION_VIDEO_MISMATCHED",iQ:"CAST_TOKEN_EXPIRED",jQ:"CAST_TOKEN_FAILED",kQ:"CAST_TOKEN_MALFORMED",lQ:"CGI_PARAMS_MALFORMED",mQ:"CGI_PARAMS_MISSING",yQ:"DEVICE_FALLBACK",KQ:"GENERIC_WITH_LINK_AND_CPN",LQ:"LICENSE",MQ:"VIDEO_UNAVAILABLE",RQ:"FORMAT_UNAVAILABLE",VQ:"GEO_FAILURE",pR:"HTML5_AUDIO_RENDERER_ERROR",qR:"GENERIC_WITHOUT_LINK",
rR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",sR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",yR:"INVALID_DRM_MESSAGE",tS:"PURCHASE_NOT_FOUND",uS:"PURCHASE_REFUNDED",yS:"RENTAL_EXPIRED",AS:"RETRYABLE_ERROR",ES:"SERVER_ERROR",PS:"STOPPED_BY_ANOTHER_PLAYBACK",QS:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",RS:"STREAMING_NOT_ALLOWED",SS:"STREAM_LICENSE_NOT_FOUND",YS:"TOO_MANY_REQUESTS",ZS:"TOO_MANY_REQUESTS_WITH_LINK",aT:"TOO_MANY_STREAMS_PER_ENTITLEMENT",bT:"TOO_MANY_STREAMS_PER_USER",dT:"UNSUPPORTED_DEVICE",
fT:"VIDEO_FORBIDDEN",gT:"VIDEO_NOT_FOUND"};q2={};
g.KJ=(q2.ALREADY_PINNED_ON_A_DEVICE="Vous avez d\u00e9j\u00e0 t\u00e9l\u00e9charg\u00e9 cette vid\u00e9o sur le nombre maximal d'appareils autoris\u00e9 par le titulaire des droits d'auteur. Avant de pouvoir la lire ici, vous devez la retirer d'un autre appareil.",q2.DEVICE_FALLBACK="D\u00e9sol\u00e9, cette vid\u00e9o n'est pas disponible sur cet appareil.",q2.GENERIC_WITH_LINK_AND_CPN="Une erreur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement. (ID de lecture\u00a0: $CPN) $BEGIN_LINKEn savoir plus$END_LINK",q2.LICENSE=
"D\u00e9sol\u00e9, une erreur s'est produite lors de la mise sous licence de la vid\u00e9o.",q2.VIDEO_UNAVAILABLE="Vid\u00e9o non disponible",q2.FORMAT_UNAVAILABLE="Cette vid\u00e9o n'est pas disponible dans la qualit\u00e9 s\u00e9lectionn\u00e9e. Veuillez r\u00e9essayer plus tard.",q2.GEO_FAILURE="Cette vid\u00e9o n'est pas disponible dans votre pays.",q2.HTML5_AUDIO_RENDERER_ERROR="Erreur de moteur de rendu audio. Veuillez red\u00e9marrer votre ordinateur.",q2.GENERIC_WITHOUT_LINK="Une erreur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement.",
q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="Ce format de vid\u00e9o n'est pas compatible.",q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Votre navigateur ne reconna\u00eet aucun des formats vid\u00e9o disponibles. $BEGIN_LINKCliquez ici pour consulter notre FAQ sur les vid\u00e9os\u00a0HTML5$END_LINK.",q2.INVALID_DRM_MESSAGE="Le message propre au syst\u00e8me de gestion des droits num\u00e9riques (DRM, Digital Rights Management) n'est pas valide.",q2.PURCHASE_NOT_FOUND="Cette vid\u00e9o est payante.",
q2.PURCHASE_REFUNDED="Cette vid\u00e9o vous a \u00e9t\u00e9 rembours\u00e9e.",q2.RENTAL_EXPIRED="La location de cette vid\u00e9o a expir\u00e9.",q2.CAST_SESSION_DEVICE_MISMATCHED="L'appareil de la session de diffusion ne correspond pas \u00e0 celui requis.",q2.CAST_SESSION_VIDEO_MISMATCHED="La vid\u00e9o de la session de diffusion ne correspond pas \u00e0 celle requise.",q2.CAST_TOKEN_FAILED="Session de diffusion non disponible. Veuillez actualiser la page ou r\u00e9essayer ult\u00e9rieurement.",
q2.CAST_TOKEN_EXPIRED="La session de diffusion a expir\u00e9. Veuillez actualiser la page.",q2.CAST_TOKEN_MALFORMED="Session de diffusion non valide. Veuillez actualiser la page ou r\u00e9essayer ult\u00e9rieurement.",q2.SERVER_ERROR="Une erreur interne de serveur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement.",q2.STOPPED_BY_ANOTHER_PLAYBACK="Cette vid\u00e9o est lue via votre compte depuis un autre emplacement. Veuillez actualiser cette page pour reprendre la lecture.",q2.STREAM_LICENSE_NOT_FOUND=
"La lecture de la vid\u00e9o a \u00e9t\u00e9 interrompue. Veuillez r\u00e9essayer.",q2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Vous avez utilis\u00e9 un trop grand nombre d'appareils/adresses\u00a0IP en 24\u00a0heures.",q2.STREAMING_NOT_ALLOWED="La lecture n'est pas autoris\u00e9e, car la vid\u00e9o est s\u00e9lectionn\u00e9e sur un autre appareil.",q2.RETRYABLE_ERROR="Une erreur temporaire de serveur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement.",q2.TOO_MANY_REQUESTS="Veuillez vous connecter pour regarder cette vid\u00e9o.",
q2.TOO_MANY_REQUESTS_WITH_LINK="Veuillez $BEGIN_LINKcliquer ici$END_LINK pour regarder cette vid\u00e9o sur YouTube.",q2.TOO_MANY_STREAMS_PER_USER="La lecture a \u00e9t\u00e9 interrompue, car trop de vid\u00e9os provenant du m\u00eame compte sont visionn\u00e9es.",q2.TOO_MANY_STREAMS_PER_ENTITLEMENT="La lecture a \u00e9t\u00e9 interrompue, car cette vid\u00e9o a \u00e9t\u00e9 lue sur un trop grand nombre d'appareils.",q2.UNSUPPORTED_DEVICE="La lecture n'est pas autoris\u00e9e sur cet appareil.",q2.VIDEO_FORBIDDEN=
"L'acc\u00e8s \u00e0 cette vid\u00e9o n'est pas autoris\u00e9.",q2.VIDEO_NOT_FOUND="Vid\u00e9o introuvable.",q2);
hia={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var r2={},s2=(r2.BUFFERING="buffering-mode",r2.CUED="cued-mode",r2.ENDED="ended-mode",r2.PAUSED="paused-mode",r2.PLAYING="playing-mode",r2.SEEKING="seeking-mode",r2.UNSTARTED="unstarted-mode",r2);g.HC.prototype.eb=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.HC.prototype.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.HC.prototype.isError=function(){return g.V(this,128)};
g.HC.prototype.toString=function(){return"PSt."+this.o.toString(16)};SC.prototype.ea=function(){return this.B};
SC.prototype.dispose=function(){this.B=!0;g.UC(this);this.u=null};WC.prototype.then=function(a,b){return this.o.then(a,b)};
WC.prototype.resolve=function(a){this.w(a)};
WC.prototype.reject=function(a){this.u(a)};g.h=aD.prototype;g.h.dd=function(a){return"content-type"===a?this.yh.get("type"):""};
g.h.abort=function(){};
g.h.Ij=function(){return!0};
g.h.tl=function(){return this.range.length};
g.h.Qo=function(){return this.loaded};
g.h.ko=function(){return!!this.o.getLength()};
g.h.Te=function(){return!!this.o.getLength()};
g.h.Ro=function(){var a=this.o;this.o=new kw;return a};
g.h.Ss=function(){return this.o};
g.h.Up=function(){return!0};
g.h.ru=function(){return!!this.error};
g.h.Zj=function(){return this.error};var wia=0;g.h=nD.prototype;g.h.start=function(a){var b={method:this.method,credentials:this.credentials};this.headers&&(b.headers=new Headers(this.headers));this.body&&(b.body=this.body);this.A&&(b.signal=this.A.signal);a=new Request(a,b);fetch(a).then(this.bO.bind(this),this.onError.bind(this)).then(void 0,g.M)};
g.h.bO=function(a){this.status=a.status;a.ok?(this.w=a.body.getReader(),this.ea()?this.w.cancel("Cancelling"):(this.F=a.headers,this.U(),oD(this))):qD(this)};
g.h.BK=function(a){if(!this.ea()){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=Date.now(),d=a.value?a.value:void 0;this.B&&(this.o.append(this.B),this.B=void 0);a.done?(this.w=void 0,qD(this)):(this.u+=d.length,pD(this)?this.o.append(d):this.B=d,this.R(c,this.u,b),oD(this))}};
g.h.onError=function(a){this.errorMessage=String(a);this.C=!0;qD(this)};
g.h.dd=function(a){return this.F?this.F.get(a):null};
g.h.Ij=function(){return!!this.F};
g.h.Qo=function(){return this.u};
g.h.tl=function(){return+this.dd("content-length")};
g.h.ko=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.Te=function(){if(this.I)return!!this.o.getLength();var a=this.policy.u;if(a&&this.G+a>Date.now())return!1;a=this.tl()||0;a=Math.max(16384,.125*a);this.P||(a=Math.max(a,16384));this.policy.nd&&tx(this)&&(a=1);return this.o.getLength()>=a};
g.h.Ro=function(){this.Te();this.G=Date.now();this.P=!0;var a=this.o;this.o=new kw;return a};
g.h.Ss=function(){this.Te();return this.o};
g.h.ea=function(){return this.aborted};
g.h.abort=function(){this.w&&this.w.cancel("Cancelling");this.A&&this.A.abort();this.aborted=!0};
g.h.Up=function(){return!0};
g.h.ru=function(){return this.C};
g.h.Zj=function(){return this.errorMessage};g.h=rD.prototype;g.h.Ij=function(){return 2<=this.o.readyState};
g.h.dd=function(a){try{return this.o.getResponseHeader(a)}catch(b){return g.M(b),""}};
g.h.tl=function(){return+this.dd("content-length")};
g.h.Qo=function(){return this.u};
g.h.ko=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Te=function(){return this.w&&!!this.response&&!!this.response.byteLength};
g.h.Ro=function(){this.Te();var a=this.response;this.response=void 0;return new kw([new Uint8Array(a)])};
g.h.Ss=function(){this.Te();return new kw([new Uint8Array(this.response)])};
g.h.abort=function(){this.ea=!0;this.o.abort()};
g.h.Up=function(){return!1};
g.h.ru=function(){return!1};
g.h.Zj=function(){return""};g.h=sD.prototype;g.h.jc=function(){return this.A?this.A.jc():""};
g.h.start=function(a){AD(this,2);this.R=++sD.o;this.w?(this.M=gga(this.info,this.w.u,this.w.length),this.A=g.ox(this.info,this.u,this.Z,this.M)):(this.M=this.info.range,this.A=g.ox(this.info,this.u,this.Z));var b=!1;if(this.u.Ka&&2>this.info.u.u&&this.I){var c=this.A.get("aitags");if(c&&(nx(this.info)||this.info.ee())&&this.aa&&"auto"==gy()&&ky()){var d=cd(c).split(","),e=[];(0,g.y)(this.aa,function(f){g.$a(d,f)&&e.push(f)});
0<e.length&&(this.A.set("altitags",bd(e.join(","))),b=!0)}}b||(this.I=!1);this.A.set("rn",this.R.toString());0<=a&&this.A.set("rbuf",(1E3*a).toFixed().toString());this.ha&&this.A.set("smb","1");a=this.A.jc();try{this.o=zia(this,a)}catch(f){g.Go(f);this.B="net.ssl";BD(this);return}0<this.u.P&&this.V.start()};
g.h.LN=function(){this.F=0;this.info.u.B=(0,g.N)();var a=vD(this);a.A=(0,g.N)();a.started+=1;a=this.timing;a.o=(0,g.H)();a.A=a.o;a.u=0;a.ba=a.o;a.M=0;a.B&&(a.B=[]);a.Z=!1;a.ha=!1;a.w=0;a.snapshot=yy(a.schedule);a.C=Infinity;a.G=Infinity;kD(a);mD(a,a.o);a.R=(a.I-a.o)/1E3;a.F=NaN;a.aa=void 0};
g.h.fI=function(a,b,c){if(!this.ea()&&this.o){this.C=this.o.status;this.u.ga||xD(this,!1);var d=this.timing;a=a>d.o&&4E12>a?a:(0,g.H)();iD(d,a,b);50>a-d.A&&jD(d)&&3!==cD(d)||gD(d,a,b,c);b=this.timing;b.u>b.oa&&dD(b,b.u)&&4>this.state?AD(this,4):FD(this)&&HD(this)&&AD(this,Math.max(3,this.state))}};
g.h.KN=function(){if(!this.ea()&&this.o){if(!this.U&&this.o.Ij()&&this.o.dd("X-Walltime-Ms")){var a=parseInt(this.o.dd("X-Walltime-Ms"),10);this.U=((0,g.H)()-a)/1E3}this.o.Ij()&&this.o.dd("X-Restrict-Formats-Hint")&&this.u.Bv&&!ky()&&g.Ds("yt-player-headers-readable",!0,2592E3);if(a=parseInt(this.o.dd("X-Head-Seqnum"),10))this.ba=a}};
g.h.eI=function(){var a=this.o;!this.ea()&&a&&(this.V.stop(),this.C=a.status,a=yia(this,a),7==a?BD(this):AD(this,a))};
g.h.kO=function(){if(!this.ea()){var a=(0,g.H)(),b=!1;jD(this.timing)?(a=this.timing.I,mD(this.timing),this.timing.I-a>=.8*this.u.P?(this.F++,b=5<=this.F):this.F=0):(b=this.timing,b.Gf&&lD(b,(0,g.H)()),a-=b.P,this.u.qd&&0<a&&(this.F+=1),b=a>1E3*this.u.Ic);this.F&&this.G&&this.G(this);b?ED(this,!1):this.V.start()}};
g.h.ea=function(){return-1==this.state};
g.h.dispose=function(){this.info.ee()&&6!=this.state&&(this.info.o[0].o.B=!1);AD(this,-1);this.G=null;this.V.dispose();this.u.pc||DD(this)};
sD.DEBUG=!1;sD.o=0;var zD=-1;LD.prototype.skip=function(a){this.offset+=a};g.r(OD,g.O);OD.prototype.getDuration=function(){return this.w.index.gh()};gE.prototype.getDuration=function(){return this.o.index.gh()};HE.prototype.setPlaybackRate=function(a){this.w=Math.max(1,a)};
HE.prototype.getPlaybackRate=function(){return this.w};g.r(ME,g.O);ME.prototype.seek=function(a){a!=this.A&&(this.C=0);this.A=a;var b=this.u.u,c=this.o.u,d=this.o.F,e=OE(this.u,a,this.u.F);d=OE(this.o,this.I.ha?a:e,d);a=Math.max(a,e,d);this.w=!0;this.B.u&&(NE(this.u,b),NE(this.o,c));return a};
var Fia=2/24;SE.prototype.ya=function(){this.md("gv")};
SE.prototype.md=function(a,b){this.B[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};g.r(TE,g.O);TE.prototype.G=function(a,b){var c=this.C.o.index.jb()<=b,d=this.F.u&&this.B.Qa;this.o={td:a,La:b};this.B.Qa&&this.A&&this.u&&(this.A=!1,"continue"!=a.event&&"stop"!=a.event||UE(this,this.u));this.u&&this.u.La==b&&(this.u=null);if(c||d)this.B.yb&&(a.startSecs+=isNaN(this.w)?0:this.w),c=this.F,c.M.push(a),c.S("cuepointsadded")};dF.prototype.send=function(){g.Eq(this.o,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Fc:this.u,Ud:this.u,context:this});this.w=(0,g.N)()};
dF.prototype.u=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.N)()-this.w)/1E3).toFixed(3),shost:g.od(this.o),trigger:this.C};204==a.status||a.response?this.A&&this.A(Ps(b)):this.B(new Os("pathprobe.net",!1,b))};g.r(eF,g.O);g.r(oF,g.A);oF.prototype.reset=function(){this.started=!1;this.B.stop();this.o.o=[];this.w=[];this.u()};
oF.prototype.u=function(){this.C=!0;if(!this.F){for(var a=3;this.C&&a;)this.C=!1,this.F=!0,Zia(this),this.F=!1,a--;this.G().eb()&&(a=mF(this.o,this.A),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.A)/this.R(),this.B.start(a)))}};
oF.prototype.X=function(){this.w=[];this.o.o=[];g.A.prototype.X.call(this)};g.r(yF,g.O);g.h=yF.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.S("videoformatchange",Oia(this.F));if(this.B.u){if(this.o.po){b=ux(this.o);for(var d in this.B.o)this.B.o[d].index.A=b}dja(this)}this.G&&fF(this.G,this.u.o);this.o.aa&&sx()&&this.Dc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.C)?0:this.C;this.C=this.B.u?d:a;c?(this.o.Uc?(this.nb=c,AF(this,c)):AF(this,!1),this.Ia.Ua()):(a=0==this.C,WF(this,this.u,this.u.o,a),WF(this,this.A,this.A.o,a),Lf(this.seek(this.C),function(){}),this.da.ya());
(this.B.Hd||this.B.Bg)&&this.Dc("minMaxSq","minSq."+this.B.Hd+";maxSq"+this.B.Bg)};
g.h.resume=function(){if(this.ba||this.ha)this.za=this.ha=this.ba=!1,this.Hf()};
g.h.setAudioTrack=function(a){if(!this.ea()){var b=this.F;b.w=b.C.o[a.id];b.P=b.w;this.S("audioformatchange",new VC(b.P,b.B,"m"));this.S("reattachrequired")}};
g.h.setPlaybackRate=function(a){a!=this.P.getPlaybackRate()&&this.P.setPlaybackRate(a)};
g.h.IM=function(a){if(3!=a.state||!this.o.Xb||!(!this.w||this.ba||wE(a.info.o[0].o.info.video?this.u:this.A,this.C)>this.o.Xb)){var b=this.o.qd;if(!(!(b&&2<=a.state)||5<=a.state||a.F<b||ix(a.info.u,this.o,this.ga))){b=this.ga;var c=Zw(hx(a.info.u));b=Jw(b,c);b.o||b.u||b.started||OF(this,a,!0)}if(!this.ea()&&3<=a.state){b=this.da;var d=a.info.o[0].o;c=!b.A&&d.info.video;d=!b.o&&d.info.audio;5==a.state?c?b.md("vrr"):d&&b.md("arr"):6==a.state?c?(b.A=a.jc(),Xp(4)):d&&(b.o=a.jc()):4==a.state&&c&&Xp(4);
5<=a.state&&(this.o.oa&&(b=bD(a.timing),c=a.timing,this.Dc("rqs",Ps({rn:a.R.toString(),rt:b.rt,pt:b.pt,stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes,strm:""+ +(a.o?a.o.Up():GD(a)),d:c.B?c.B.join(""):""}))),a.da&&this.Dc("sbwe3","1",!0));if(5==a.state)a.start(Math.max(0,a.info.o[0].G-this.C));else if(5<=a.state&&5==a.info.o[0].type)6==a.state&&(b=(a.info.o[0].o.info.video?this.u:this.A).A[0]||null)&&b.F&&ED(b,!0),a.dispose();else{if(this.o.Ka&&a.I&&4<=a.state&&5!=a.state)if(b=a.o?a.o.dd("X-Response-Itag"):
null){b=Qia(this.F,b);c=a.info.range.length-b.Wn();b.B=!0;a.info.o[0].o.B=!1;d=b.Bj(c)[0];a.info=d;if(a.w){c=a.w;d=d.o;c.w=d;var e=d[0].range,f=rw(c.o[0].o);rw(g.Va(c.o).o);for(var k=0;k<c.o.length;k++){c.o[k].info=d[k];var l=d[k].range;c.o[k].o=new kw([new Uint8Array(f.buffer,l.start-e.start,l.length)])}}a.I=!1;c=this.u;c.o!=b&&(c.o=b);c=this.u;c.u&&(c.u.o=b);this.S("constraint",b.info.ya().quality);(c=a.o?a.o.dd("X-Segment-Lmt"):null)&&b instanceof Ix&&(isNaN(b.lastModified)||b.lastModified==c||
zE(this.u,a))}else a.I=!1;if(6==a.state)NF(this,a);else if(!this.o.aa||!HD(a)||5<=a.state)7==a.state&&(b=a.info.o[0].o,CD(a)?(c=(b.info.video&&1<b.u.u||410==a.C||500==a.C||503==a.C)&&!aF(this.F),d=uD(a),e=b.info.video?this.u:this.A,c&&(d.stun="1"),EF(this,!1,a.B,d),this.ea()||(c&&$E(this.F,b),this.o.rd&&1==a.info.o.length&&0<a.info.o[0].w&&b!=e.o&&this.ha?this.S("reattachrequired"):(zE(e,a),this.Hf()))):(EF(this,!1,a.B,uD(a)),a.info.ee()?(b.C=a.B,this.Hf()):EF(this,!0,"net.retryexhausted",{err:a.B,
rn:a.R.toString()})));else if(!NF(this,a))return;this.Hf();a:if(this.o.Ma&&5<=a.state&&CD(a)&&ix(a.info.u,this.o,this.ga)){b=this.ga;c=Zw(a.info.u.o);b=Jw(b,c);c=b.started+b.w;if(this.o.pd)c+=b.o*this.o.pd;else if(b.o)break a;b.A+this.o.Ma*Math.pow(1.6,c)>(0,g.N)()||OF(this,a,!1)}}}}};
g.h.Hf=function(){FF(this);if(this.w&&Yt(this.w)&&!this.w.Sd()){var a=iE(this.u);a=this.o.gn&&a&&a.C;this.B.isLive&&!a?isNaN(this.M)?(this.M=this.C+3600,Zt(this.w,this.M)):this.M<=this.C+1800&&(this.M=Math.max(this.M+1800,this.C+3600),Zt(this.w,this.M)):this.w.isView()||(a=Math.max(this.A.getDuration(),this.u.getDuration()),(!isFinite(this.M)||this.M!=a)&&0<a&&(Zt(this.w,a),this.M=a))}if(!this.ea())if($x(this.B)&&3==this.B.C)EF(this,!0,"manifest.net.retryexhausted",{rc:this.B.R.toString()});else if(!this.B.w||
!EE(this.u)&&!EE(this.A)||(this.u.B||this.A.B)&&this.o.R?a=!1:(CF(this),this.S("seekplayerrequired",Infinity),a=!0),!a&&(FF(this),kE(this.u),!this.ea()&&(kE(this.A),!this.ea()))){this.B.u&&(FE(this.u),FE(this.A),RE(this.I),(a=mE(this.u))&&a.u&&(a=a.u.A&&!this.o.gg,this.Dc(a==this.o.A.nd?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.o.A.nd?"1":"0")+";dfs."+(this.o.gg?"1":"0"),!0)));if(this.w)SF(this);else if(this.o.F){if(a=mE(this.u)){var b=this.u;b.w.u.shift();nE(b,a)}if(b=mE(this.A)){var c=
this.A;c.w.u.shift();nE(c,b)}sE(this.u)&&sE(this.A)||(a||b)&&this.aa.Ua()}zF(this);WF(this,this.u,this.u.o,!1);WF(this,this.A,this.A.o,!1);a=this.A.o.C;b=this.u.o.C;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";EF(this,!0,c,{metadata:"1",video:this.u.o.C||"",audio:this.A.o.C||""})}else KF(this,this.u,this.A),KF(this,this.A,this.u),this.o.sy&&this.ma&&!this.ba&&Ay(this.R)&&(a=this.ma,b=(0,g.x)(this.S,this,"error"),(new dF(a,"cms",null,b)).send(),
this.ma=""),this.G&&(a=this.G,a.B?(b=a.G+a.o.Vf,a.A||(b=Math.min(b,a.C+a.o.rb)),a=Math.max(0,1E3*b-(0,g.H)())):a=NaN,isNaN(a)||this.rb.Ua(a)),this.Qa.Ua()}};
g.h.dI=function(a){this.o.wa&&this.w&&this.Dc("sbu",a.Za({a:""+ +(a==this.w.o)}));this.Hf()};
g.h.jK=function(a){if(this.w){a=iE(a==this.w.o?this.A:this.u);var b=void 0;a&&(b=gw(a));EF(this,!0,"fmt.unplayable",b)}};
g.h.AL=function(a){EF(this,!0,"fmt.unparseable",a)};
g.h.PJ=function(a){this.S("needkeyinfo",a)};
g.h.BL=function(a){this.A.o.w=a;this.w&&PF(this,this.w.o,a)};
g.h.zL=function(a){EF(this,!1,"qoe.avsync",a)};
g.h.DL=function(a,b){this.B.u&&VF(this,b,a==this.u)};
g.h.EL=function(a,b){if(this.B.u){var c=this.B,d=b.La,e=a==this.u,f;for(f in c.o){var k=jt(c.o[f].info.mimeType)||c.o[f].info.isVideo();if(e==k){k=c.o[f].index;var l=wx(k,d);0<=l&&k.segments.splice(l,1)}}}};
g.h.FL=function(a,b){this.B.u&&VF(this,b,a==this.u)};
g.h.CL=function(){this.S("localmediacomplete",{videoId:this.o.w,isBackground:this.o.F})};
g.h.seek=function(a){if(this.ea())return Ef();if(this.u.G||this.A.G)return this.o.TC?Df():Ef("seeking to head");FF(this);this.Ea=(0,g.N)();zF(this,a);this.w&&this.w.o&&this.w.u&&(this.w.o.isLocked()||this.w.u.isLocked())&&this.S("reattachrequired");this.C=this.I.seek(a);a=this.V;a.u=null;a.A=!1;this.aa.Ua();return Df(this.C)};
g.h.getCurrentTime=function(){return this.C};
g.h.X=function(){this.V.unsubscribe("ctmp",this.Dc,this);DF(this);xE(this.A);xE(this.u);g.O.prototype.X.call(this)};
g.h.Za=function(){var a=iE(this.A),b=iE(this.u);a={lct:this.C.toFixed(3),lsk:this.I.w,lmf:bF(this.F),lbw:vy(this.R).toFixed(3),lhd:ty(this.R).toFixed(3),lst:(1E9*(this.R.o.o()||0)).toFixed(3),laa:a?hw(a):"",lva:b?hw(b):"",lar:this.A.u?hw(this.A.u):"",lvr:this.u.u?hw(this.u.u):""};this.w&&!au(this.w)&&this.w.o&&this.w.u&&(a.lab=Nt(this.w.o.ud()),a.lvb=Nt(this.w.u.ud()));return a};
g.h.Dc=function(a,b,c){this.S("ctmp",a,b,void 0===c?!1:c)};
g.h.ew=function(a,b){var c=a/b;isNaN(this.Z)&&(this.Z=c-Math.min(c,this.o.Jc),this.V.w=this.Z,this.S("timestamp",this.Z));return(c-this.Z)*b};
var LF=2/24;g.r(ZF,g.O);g.r($F,ZF);$F.prototype.C=function(a,b){if(a&&b){var c=1*Cd(a,"cpi")+1;isNaN(c)||0>=c||c<this.w?(this.A.stop(),this.u.stop(),this.w=-1,this.o={}):(c>this.w&&(this.w=c,g.Mb(this.o)||(this.o={},this.A.stop(),this.u.stop())),this.o[b]=a,this.u.Ua())}};
$F.prototype.B=function(){for(var a in this.o)this.S("rotated_need_key_info_ready",new JD(pja(this.o[a],this.w,a),"fairplay",!0));this.o={}};var t2={},$ra=(t2.DRM_TRACK_TYPE_AUDIO="AUDIO",t2.DRM_TRACK_TYPE_SD="SD",t2.DRM_TRACK_TYPE_HD="HD",t2.DRM_TRACK_TYPE_UHD1="UHD1",t2);g.r(dG,g.A);dG.prototype.B=function(a){this.ea()||(0!=a.status&&a.response?(HA("drm_net_r"),a=new Uint8Array(a.response),(a=cG(a))?this.w(a):this.o(this,"drm.net","t.p")):this.A(a))};
dG.prototype.A=function(a){this.ea()||this.o(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
dG.prototype.F=function(a){if(!this.ea()){HA("drm_net_r");var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;if(a.license)try{c=g.eg(a.license)}catch(n){}if(0!=b||c){c=new bG(b,c);0!=b&&a.reason&&(c.errorMessage=a.reason);if(a.authorizedFormats){b={};for(var d=[],e={},f=g.q(a.authorizedFormats),k=f.next();!k.done;k=f.next())if(k=k.value,k.trackType&&k.keyId){var l=$ra[k.trackType];if(l){"HD"==l&&a.isHd720&&(l="HD720");b[l]||(d.push(l),b[l]=!0);var m=null;try{m=g.eg(k.keyId)}catch(n){}m&&(e[g.bg(m,
4)]=l)}}c.o=d;c.u=e}a.nextFairplayKeyId&&(c.nextFairplayKeyId=a.nextFairplayKeyId);a=c}else a=null;a?this.w(a):this.o(this,"drm.net","t.p;p.i")}};
dG.prototype.C=function(a){this.ea()||(a=a.error,this.o(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.r(eG,g.A);g.h=eG.prototype;g.h.kI=function(a){if(this.C){var b=a.messageType||"license-request";this.C.call(this.w,new Uint8Array(a.message),b)}};
g.h.lI=function(){this.I&&this.I.call(this.w,this.o.keyStatuses)};
g.h.lA=function(a,b){g.M(b);if(this.A){var c=a;b instanceof DOMException&&(c+=";n."+b.name+";m."+b.message);this.A.call(this.w,c)}};
g.h.GK=function(){this.ea()||dl("xboxone")&&this.A&&this.A.call(this.w,"closed")};
g.h.SA=function(a){this.C&&this.C.call(this.w,a.message,"license-request")};
g.h.RA=function(a){if(this.A){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.A.call(this.w,"t.prefixedKeyError;c."+b+";sc."+a)}};
g.h.QA=function(){this.G&&this.G.call(this.w)};
g.h.update=function(a){if(this.o)return this.o.update(a).then(null,Fo((0,g.x)(this.lA,this,"t.update")));this.u?this.u.update(a):this.F.addKey?this.F.addKey(this.M.o,a,this.P,this.sessionId):this.F.webkitAddKey(this.M.o,a,this.P,this.sessionId);return lr()};
g.h.X=function(){this.o&&this.o.close();this.F=null;g.A.prototype.X.call(this)};g.r(gG,g.A);g.h=gG.prototype;g.h.createSession=function(a,b){var c=a.initData;if(this.o.keySystemAccess){b&&b("createsession");var d=this.C.createSession();"com.youtube.fairplay"==this.o.o&&(c=iG(c,this.o.Oe));b&&b("genreq");c=d.generateRequest(a.contentType,c);d=new eG(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Fo((0,g.x)(d.lA,d,"t.generateRequest")));
return d}if(xz(this.o))return uja(this,c);if(Az(this.o))return tja(this,c);this.u.generateKeyRequest?this.u.generateKeyRequest(this.o.o,c):this.u.webkitGenerateKeyRequest(this.o.o,c);return this.A=new eG(this.u,this.o,c,null,null)};
g.h.oI=function(a){var b=jG(this,a);b&&b.SA(a)};
g.h.nI=function(a){var b=jG(this,a);b&&b.RA(a)};
g.h.mI=function(a){var b=jG(this,a);b&&b.QA(a)};
g.h.X=function(){g.A.prototype.X.call(this);delete this.u};var u2={},Bja=(u2.widevine="DRM_SYSTEM_WIDEVINE",u2.fairplay="DRM_SYSTEM_FAIRPLAY",u2.playready="DRM_SYSTEM_PLAYREADY",u2);g.r(lG,g.O);g.h=lG.prototype;
g.h.iI=function(a,b){if(!this.ea()){kG(this,"onkmtyp"+b);if(!g.P(this.w.experiments,"html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":Aja(this,a);return;default:this.S("ctmp","message_type","t."+b+";l."+a.byteLength)}this.P||(HA("drm_gk_f"),this.P=!0,this.S("newsession",this));if(yz(this.u)){var c=nG(a);if(!c)return;a=c}Bz(this.u)&&!this.T.useInnertubeDrmService()&&(a=Av(g.bg(a)));c=new dG(a,++this.U,
(0,g.x)(this.mL,this),(0,g.x)(this.lL,this));g.B(this,c);pG(this,c)}};
g.h.gI=function(){this.ea()||(kG(this,"onkyadd"),this.F||(this.S("sessionready"),this.F=!0))};
g.h.jI=function(a){var b=this;this.ea()||0>=a.size||(a.forEach(function(c,d){var e=yz(b.u)?d:c,f=new Uint8Array(yz(b.u)?c:d);yz(b.u)&&sG(f);var k=g.bg(f,4);sG(f);f=g.bg(f,4);b.o[k]?b.o[k].status=e:b.o[f]?b.o[f].status=e:b.o[k]={type:"",status:e}}),kG(this,"onkeystatuschange"),this.S("keystatuseschange",this))};
g.h.hI=function(a){this.ea()||mG(this,"drm.keyerror",!0,a)};
g.h.mL=function(a){var b=this;if(!this.ea())if(kG(this,"onlcsrsp"),0!=a.statusCode)mG(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0);else{HA("drm_kr_s");if(g.P(this.w.experiments,"outertube_streaming_data_always_use_staging_license_service")&&a.heartbeatParams&&a.heartbeatParams.url){var c=this.u.u.match(/(.*)youtube.com/g);c&&(a.heartbeatParams.url=c[0]+a.heartbeatParams.url)}a.heartbeatParams&&this.S("newlicense",a.heartbeatParams);a.o&&(this.C=a.o,this.M=kj(this.C,function(d){return d.includes("HDR")}));
a.u&&(this.o=Bb(a.u,function(d){return{type:d,status:"unknown"}}));
Az(this.u)&&(a.message=g.eg(Bv(a.message)));this.A&&(kG(this,"updtks"),this.A.update(a.message).then(function(){HA("drm_kr_f");if(!oG(b))if(kG(b,"ksApiUnsup"),zz(b.u)){var d=qG(b.C);480<g.Xs[d]&&b.S("hdentitled",b)}else b.S("keystatuseschange",b)}));
this.F&&(this.R=(0,g.N)());Bz(this.u)&&this.S("fairplay_next_need_key_info",this.G,a.nextFairplayKeyId)}};
g.h.lL=function(a,b,c){if(!this.ea()){var d=!1;if(3<=a.u.u||this.V&&36E4<(0,g.N)()-this.R)d=!0,b="drm.net.retryexhausted";kG(this,"onlcsrqerr"+b+c);mG(this,b,d,c);(this.V&&this.F?0:!d&&this.U==a.number)&&Cja(this,a)}};
g.h.X=function(){g.O.prototype.X.call(this)};
g.h.Za=function(){var a={requestedKeyIds:this.ha,cryptoPeriodIndex:this.cryptoPeriodIndex};this.A&&(a.keyStatuses=this.o);return a};
g.h.ge=function(){var a=this.C.join();if(oG(this)){var b=[],c;for(c in this.o)"usable"!=this.o[c].status&&b.push(this.o[c].type);a+="/UKS:"+b}return a+="/"+this.cryptoPeriodIndex};g.r(wG,g.A);wG.prototype.C=function(a){if(!this.ea()){var b=new Uint8Array(a.initData);a=new JD(b,a.initDataType);var c=aG(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){return null});
e&&(g.B(this,e),this.A.push(e),fG(e,function(f){tG(f,e.o,c,d,"fairplay")},function(){},function(){},function(){},this))}};
wG.prototype.X=function(){this.A=[];this.o&&this.o.parentNode&&this.o.parentNode.removeChild(this.o);g.A.prototype.X.call(this)};xG.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
xG.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
xG.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
xG.prototype.findIndex=function(a){return g.Ya(this.keys,function(b){return g.sb(a,b)})};g.r(yG,ZF);yG.prototype.B=function(a){var b=(0,g.H)(),c;if(!(c=this.A)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.w.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.o,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.o.push({time:b+c,info:a});this.u.Ua(c)};g.r(BG,g.O);g.h=BG.prototype;g.h.ua=function(){return this.P};
g.h.pI=function(a){AG(this,"onecpt");EG(this,new Uint8Array(a.initData),a.initDataType)};
g.h.TL=function(a){AG(this,"onndky");EG(this,a.initData,a.contentType)};
g.h.yL=function(){var a=this;if(!this.ea())if(!g.P(this.u.experiments,"html5_drm_set_server_cert")||g.$y(this.u)&&!g.gl())HG(this);else{var b=sja(this.M);b?b.then(Fo(function(c){SB(a.T)&&a.S("ctmp","ssc",c)}),Fo(function(c){a.S("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Fo(function(){return HG(a)})):HG(this)}};
g.h.mK=function(a){if(!this.ea()){g.M(a);var b="t.a";a instanceof DOMException&&(b+=";n."+a.name+";m."+a.message);this.S("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.Zv=function(a){this.A.push(a);DG(this)};
g.h.MA=function(a){this.ea()||(AG(this,"onnelcswhb"),a&&!this.ga&&(this.ga=a,this.S("heartbeatparams",a)))};
g.h.OA=function(){this.ea()||(AG(this,"newlcssn"),this.A.shift(),this.R=!1,DG(this))};
g.h.dB=function(){if(xz(this.o)&&(AG(this,"onsnrdy"),this.ma--,0==this.ma)){var a=this.B;a.u.msSetMediaKeys(a.w)}};
g.h.rz=function(a){this.ea()||(AG(this,"onksch"),GG(this,rG(a,this.aa)),this.S("keystatuseschange",a))};
g.h.CA=function(){this.ea()||this.Z||!zz(this.o)||(AG(this,"onhdet"),this.U=UJ,this.S("hdproberequired"),this.S("qualitychange"))};
g.h.pA=function(a,b){this.ea()||this.S("ctmp",a,b)};
g.h.zA=function(a,b){this.ea()||this.S("fairplay_next_need_key_info",a,b)};
g.h.sz=function(a,b,c,d){this.ea()||this.S("licenseerror",a,b,c,d)};
g.h.X=function(){this.o.keySystemAccess&&this.P.setMediaKeys(null);this.P=null;this.A=[];for(var a=g.q(this.w.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.pA,this),b.unsubscribe("hdentitled",this.CA,this),b.unsubscribe("keystatuseschange",this.rz,this),b.unsubscribe("licenseerror",this.sz,this),b.unsubscribe("newlicense",this.MA,this),b.unsubscribe("newsession",this.OA,this),b.unsubscribe("sessionready",this.dB,this),b.unsubscribe("fairplay_next_need_key_info",this.zA,
this),b.dispose();a=this.w;a.keys=[];a.values=[];this.ha&&(this.ha.dispose(),this.ha=null);g.O.prototype.X.call(this)};
g.h.Za=function(){for(var a={systemInfo:this.o.Za(),sessions:[]},b=g.q(this.w.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Za());return a};
g.h.ge=function(){return 0>=this.w.values.length?"no session":this.w.values[0].ge()+(this.F?"/KR":"")};g.r(JG,g.O);JG.prototype.setPlaybackRate=function(a){this.G=a};TG.prototype.isEmpty=function(){return this.endTime===this.startTime};UG.prototype.fa=function(a){return g.P(this.o.experiments,a)};
var XG={other:1,none:2,wifi:3,cellular:7};g.r(cH,g.A);cH.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(asa)?this.U++:this.V++)};
cH.prototype.C=function(){if(!(this.I||0>this.w)){eH(this);var a=g.WG(this.u)-this.w,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.o.u;this.o.isError()?b=c&&"auth"==c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.o,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.o,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.o,16)||g.V(this.o,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.o,1)&&g.V(this.o,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.o,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":
g.V(this.o,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.o,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=BB(this.u.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"==d?c="LIVE_STREAM_MODE_LIVE":"dvr"==d&&(c="LIVE_STREAM_MODE_DVR");d=fH(this.u);var e=0>this.A?a:this.A-this.w;a=this.u.o.oa+36E5<(0,g.N)();b={started:0<=this.A,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.F,rebufferTimeSecs:this.G,seekCount:this.M,networkErrorCount:this.U,nonNetworkErrorCount:this.V,playerCanaryType:d,isAd:this.u.videoData.isAd(),
liveMode:c,hasDrm:!!g.yB(this.u.videoData),isGapless:this.u.videoData.Df};!a&&this.u.fa("html5_health_to_gel")&&g.Rq("html5PlayerHealthEvent",b);this.u.fa("html5_health_to_qoe")&&(b.muted=a,this.ba(Ps(b)));this.I=!0;this.dispose()}};
cH.prototype.X=function(){this.I||this.C();g.A.prototype.X.call(this)};
var asa=/\bnet\b/;g.yJ=yb(function(){var a="";try{var b=g.oe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.r(hH,g.A);g.h=hH.prototype;g.h.DF=function(){var a=g.WG(this.o);jH(this,a)};
g.h.uk=function(a){if(!this.ea()&&(a=0<=a?a:g.WG(this.o),-1<["PL","B","S"].indexOf(this.w)&&(!g.Mb(this.u)||a>=this.C+30)&&(g.gH(this,a,"vps",[this.w]),this.C=a),!g.Mb(this.u)))if(7E3==this.V&&g.Uq(Error("Sent over 7000 pings")),7E3<=this.V)this.u={};else{lH(this,a);var b=a,c=this.o.C(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.wa,k=e&&!this.Ca;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else(0<f||k)&&g.gH(this,b,"df",[f]);
this.wa=d;this.Ca=e;!g.P(this.o.o.experiments,"disable_webgl_reporting")&&0<this.F&&(g.gH(this,a,"glf",[this.F]),this.F=0);a={event:"streamingstats"};this.o.videoData.Ba&&(a.fmt=ct(this.o.videoData.Ba),(b=this.o.videoData.Vb)&&ct(b)!=a.fmt&&(a.afmt=ct(b)));a.cpn=this.o.videoData.clientPlaybackNonce;a.ei=this.o.videoData.eventId;a.el=MB(this.o.videoData);a.docid=this.o.videoData.videoId;a.content_v=this.o.videoData.ri();a.ns=this.o.o.V;a.fexp=this.o.o.experiments.experimentIds.toString();a.cl="311992182";
this.o.videoData.adFormat&&(a.adformat=this.o.videoData.adFormat);(b=BB(this.o.videoData))&&(a.live=b);xB(this.o.videoData)&&(a.drm=1);rq()&&this.o.videoData.Wh&&(a.ctt=this.o.videoData.Wh,a.cttype=this.o.videoData.Xh,this.o.videoData.mdxEnvironment&&(a.mdx_environment=this.o.videoData.mdxEnvironment));a.seq=this.V++;g.Sb(a,this.o.o.deviceParams);b=g.yd("//"+this.o.o.Qk+"/api/stats/qoe",a);a=c="";for(var l in this.u)null==this.u[l]?g.Uq(new Sq("Stats report key has invalid value",l)):(d="&"+l+"="+
this.u[l].join(","),100<d.length?a+=d:c+=d);l=b+c;a=a.replace(/ /g,"%20");b=this.o.videoData.Qd();c=this.o.videoData.visitorData;d=b&&rq();e=c&&this.o.o.sendVisitorIdHeader;d||e?(f={},d&&(f.Authorization="Bearer "+b),e&&(f["X-Goog-Visitor-Id"]=c),g.Eq(l,{headers:f,withCredentials:!0,method:"POST",postBody:a})):er(l,void 0,a);this.u={}}};
g.h.cC=function(){if(this.o.videoData.uc){var a=this.o.videoData.uc;pH(this,"drm-"+a.flavor);pH(this,"eme-"+(a.keySystemAccess?"final":xz(a)?"ms":"com.youtube.fairplay"==a.o?"ytfp":Az(a)?"safarifp":"nonfinal"))}};
g.h.onError=function(a,b){var c=g.WG(this.o);nH(this,c,a,b);lH(this,c);mH(this)};
g.h.X=function(){g.A.prototype.X.call(this);window.clearInterval(this.ma)};
var Pja=g.Ia,v2={},Nja=(v2[5]="N",v2[-1]="N",v2[3]="B",v2[0]="EN",v2[2]="PA",v2[1]="PL",v2);qH.prototype.update=function(){if(this.P){var a=this.u.u()||0,b=g.WG(this.u);if(a!=this.o||uH(this,a,b)){var c;if(!(c=a<this.o||a-this.o>b-this.F+2||uH(this,a,b))){var d=this.u.Wc();c=d.volume;var e=c!=this.R;d=d.muted;d!=this.M?(this.M=d,c=!0):(!e||0<=this.C||(this.R=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(rH(this),this.w=a);this.F=b;this.o=a}}};xH.prototype.send=function(a){if(!this.aa){var b=AH(this);b=g.yd(this.I,b);if(this.V)this.P&&(a=yH(this)||{},a.method="POST",a.sb={atr:this.P},g.Eq(b,a));else{var c=yH(this,a);this.ga.fa("web_player_logging_net_killswitch")?c?g.Eq(b,c):g.cr(b,a):wH(b,c,{token:this.B,uC:this.R,mdxEnvironment:this.mdxEnvironment},a)}this.aa=!0}};
xH.prototype.o=function(a){void 0==a&&(a=NaN);return(1*a.toFixed(3)).toString()};var Rja=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);g.r(EH,g.A);EH.prototype.aa=function(a,b){if(!this.ea()){this.C=NaN;this.u.update();var c=tH(this.u),d=HH(this,c);b&&(d.A=a);var e=this.o.fa("html5_expanded_max_vss_pings")?1E3:400;e=this.P>e;!(1<c.length)&&c[0].isEmpty()||e||(d.u=FH(this,!0,a));d.send();this.P++}};
EH.prototype.F=function(a){var b=this.o.o,c=this.o.videoData,d={ns:b.V,el:MB(c),eurl:b.Qa,fmt:c.Ba?ct(c.Ba):0,html5:1,list:c.playlistId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.o.u(),video_id:c.videoId,metric:a};OB(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=sH(this.u));g.Ra(d,b.deviceParams);JH(this,g.yd(g.P(b.experiments,"cardio_base_url_killswitch")?(b.o?b.protocol+"://www.youtube.com/":b.G)+"live_204":b.G+"live_204",d))};
EH.prototype.X=function(){g.A.prototype.X.call(this);g.Jo(this.C);this.C=NaN;var a=this.u;window.clearInterval(a.G);a.G=NaN;g.Jo(this.A)};
EH.prototype.Za=function(){return AH(GH(this,"playback"))};g.r(OH,g.A);OH.prototype.onError=function(a,b){if(this.o)this.o.onError(a,b);if(this.w)this.w.onError(a)};
OH.prototype.Za=function(){return this.u?this.u.Za():{}};RH.prototype.add=function(a){this.o=(this.o+1)%this.data.length;this.data[this.o]=a};
RH.prototype.forEach=function(a){for(var b=this.o+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.o;b++)a(this.data[b]||0)};
RH.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.o=this.data.length-1};g.r(UH,g.O);g.r(eI,g.O);g.h=eI.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:aI()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.setMinimized=function(a){this.o!=a&&(this.o=a,this.Qi())};
g.h.setInline=function(a){this.C!=a&&(this.C=a,this.Qi())};
g.h.setImmersivePreview=function(a){this.A!=a&&(this.A=a,this.Qi())};
g.h.isFullscreen=function(){return 0!=this.w};
g.h.isInline=function(){return this.C};
g.h.isBackground=function(){return aI()};
g.h.Qi=function(){this.S("visibilitychange");var a=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A);a!=this.G&&this.S("visibilitystatechange");this.G=a};
g.h.X=function(){dI(this.F);g.O.prototype.X.call(this)};g.r(iI,g.A);iI.prototype.V=function(){var a=this;if(this.w){var b=this.w,c=b.getCurrentTime(),d=8==this.A.o&&c>this.o,e=iia(this.A);kI(this,this.ha,e,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.o)&&0<this.o&&fia(b,this.o);var f=!c||10<Math.abs(c-this.o);kI(this,this.da,e&&f,d,"qoe.slowseek",function(){return b.seekTo(a.o)},"set_cmt");
f=e&&Pt(b.Dd(),this.o);e=!this.u||!this.u.o.Z;kI(this,this.Z,f&&e,d,"qoe.slowseek",function(){return b.seekTo(a.o+.001)},"jiggle_cmt");
e=function(){return a.G("newmediaelementrequired")};
kI(this,this.aa,f,d,"qoe.slowseek",e,"new_elem");(d=b.Xl().totalVideoFrames)&&!this.U.isBackground()&&(f=d==this.I,kI(this,this.M,c>this.P&&f,!f,"qoe.longrebuffer",e,"decoder_freeze"),this.I=d);this.P=c;d=PC(this.A);f=g.QC(this.A);c=d&&f&&Pt(b.Dd(),c+5);kI(this,this.ba,c,d&&!f,"qoe.longrebuffer",e,"new_elem_nnr");kI(this,this.R,d&&f,d&&!f,"qoe.longrebuffer",function(){},"timeout");
this.F.start()}};
gI.prototype.reset=function(){this.o=this.u=this.w=0;this.C=!1};
gI.prototype.Za=function(){var a={},b=(0,g.N)();this.w&&(a.wsd=(b-this.w).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.o&&(a.wssd=(b-this.o).toFixed());return a};g.r(pI,g.O);g.h=pI.prototype;g.h.getCurrentTime=function(){return!isNaN(this.w)&&isFinite(this.w)?this.w:this.o&&zI(this)?this.o.getCurrentTime()+this.A:this.F||0};
g.h.isAtLiveHead=function(a){if(!this.u)return!1;void 0==a&&(a=this.getCurrentTime());return YH(this.u,a)};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.CC?!1:c.CC,e=void 0===c.DC?0:c.DC,f=void 0===c.Fl?!1:c.Fl;c=void 0===c.Qu?0:c.Qu;var k=a,l=!isFinite(k)||(this.u?YH(this.u,k):k>=this.sc())||!g.GB(this.T);l||this.S("ctmp","seeknotallowed",k+";"+this.sc());if(!l)return this.C&&(this.C=null,xI(this)),Df(this.getCurrentTime());if(a==this.w&&this.R)return this.G;this.R&&qI(this);this.G||(this.G=new WC);a&&!isFinite(a)&&sI(this,!1);k=a;(wI(this)&&!(this.o&&0<this.o.je()&&0<wC(this.o))||qB(this.T)&&
this.Ab()==this.sc(!1)?0:isFinite(k)||!qB(this.T))&&(a=yI(this,a,f));a&&!isFinite(a)&&sI(this,!1);this.F=a;this.za=c;this.w=a;this.u&&(f=this.u,c=a,ZH(f,c,!1),$H(f,c));this.S("seekto",a,!d);this.G&&(d?e&&this.da.start(e):(this.R=!0,nI(this)));return this.G};
g.h.sc=function(a){if(!this.T.va)return this.T.sc();if(this.T.xa&&this.T.xa.o){if(!a&&this.u)return XH(this.u);a=this.T.sc();this.V.u&&this.o&&(a=Math.max(a,AC(this.o)));return a+this.A}this.o?hl()?(a=this.o.Vo().getTime(),a=isNaN(a)?0:Math.max(((0,g.H)()-a)/1E3-30,0)):a=wC(this.o)+this.A||this.A:a=this.A;return a};
g.h.Ab=function(){return this.T?this.T.Ab()+this.A:this.A};
g.h.X=function(){tI(this,null);this.P.dispose();g.O.prototype.X.call(this)};
g.h.tO=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Bb(),{Fl:b})};
g.h.Za=function(){var a={};this.B&&Object.assign(a,this.B.Za());this.o&&Object.assign(a,this.o.Za());return a};
g.h.BO=function(a){this.A=a};
g.h.AO=function(a){this.oa=a};
g.h.getStreamTimeOffset=function(){return qB(this.T)?this.oa:this.T.ia?this.T.ia.getStreamTimeOffset():0};
g.h.Bb=function(){return this.A};
g.h.OI=function(a){this.I&&(this.I.o=a.audio.index)};var oJ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},pJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},qJ=/^(\d*)_((\d*)_?(\d*))$/;AI.prototype.isFinished=function(){return this.o};
AI.prototype.start=function(){this.started=!0};
AI.prototype.reset=function(){this.o=this.started=!1};BI.prototype.reset=function(){AA(this.timerName)};
BI.prototype.tick=function(a,b){HA(a,b,this.timerName)};
BI.prototype.info=function(a,b){GA(a,b,this.timerName)};g.r(DI,g.A);DI.prototype.start=function(){this.u.start()};
DI.prototype.stop=function(){this.u.stop()};
DI.prototype.clear=function(){for(var a=g.q(Object.keys(this.o)),b=a.next();!b.done;b=a.next())this.o[b.value].clear()};
DI.prototype.A=function(){for(var a=g.q(Object.keys(this.w)),b=a.next();!b.done;b=a.next())b=b.value,this.o[b].update(this.w[b]());this.u.start()};
EI.prototype.update=function(a){this.u?(this.buffer.add(a-this.o||0),this.o=a):this.buffer.add(a)};
EI.prototype.clear=function(){this.buffer.clear();this.o=0};JI.prototype.encrypt=function(a){var b=this,c;return g.Ba(function(d){if(1==d.o)return g.ta(d,II(b.o.o,a,b.u),2);c=d.u;return d["return"](c)})};
JI.prototype.decrypt=function(a,b){var c=this,d;return g.Ba(function(e){if(1==e.o)return g.ta(e,II(c.o.o,a,b),2);d=e.u;return e["return"](d)})};QI.prototype.o=function(){var a=new KI;OI(a,1,this.u);OI(a,2,this.C);OI(a,6,this.B);OI(a,15,this.F);var b=this.w;MI(a,128);MI(a,b);OI(a,17,this.A);return PI(a)};RI.prototype.o=function(){var a=new KI;NI(a,2,this.w);NI(a,5,this.u);NI(a,6,this.B);NI(a,7,this.A);MI(a,80);MI(a,1);return PI(a)};SI.prototype.o=function(){var a=new KI;OI(a,1,"Content-Type");OI(a,2,"application/x-protobuf");return PI(a)};TI.prototype.o=function(){var a=new KI;NI(a,1,this.u.o());return PI(a)};YI.prototype.o=function(){var a=new KI;NI(a,1,this.u.o());OI(a,2,this.w);return PI(a)};ZI.prototype.o=function(){var a=new KI;OI(a,1,this.w);for(var b=g.q(this.u),c=b.next();!c.done;c=b.next())NI(a,2,c.value.o());NI(a,3,this.A.o());return PI(a)};$I.prototype.o=function(){var a=new KI;NI(a,3,this.u.o());return PI(a)};bJ.prototype.feed=function(a){mw(this.o,a);cJ(this)};dJ.prototype.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,t,u,z;return g.Ba(function(C){switch(C.o){case 1:return a.B.start(),a.u.tick("ogpd"),C.B=2,g.ta(C,lka(a),4);case 4:b=C.u;ua(C,3);break;case 2:return c=va(C),c instanceof Os?eJ(a,c):(d=new Os("onesie.request",!1),eJ(a,d)),C["return"](a.w);case 3:a.u.tick("osor");e=Hw(a.T.N());f=b.o();k={method:"POST",body:f,headers:{"Content-Type":"text/plain"}};l=g.Ia;m=function(){fJ(a)};
n=function(){fJ(a);var D;a.o.Zj()?D=new Os("onesie.net",!1,{msg:a.o.Zj()}):400<=a.o.status?D=new Os("onesie.net.badstatus",!1):a.o.ko()?a.C||(D=new Os("onesie.response.noplayerresponse",!1)):D=new Os(204===a.o.status?"onesie.net.nocontent":"onesie.net.connect",!1);D?eJ(a,D):a.u.tick("orf")};
p=g.Ia;t=ika(a.T);if(!t)return u={url:"0"},z=new Os("onesie.unavailable.hotconfig",!1,u),eJ(a,z),C["return"](a.w);a.u.tick("ocs");a.o=new nD(t,l,m,n,p,e,k);return C["return"](a.w)}})};
dJ.prototype.I=function(){eJ(this,new Os("onesie.request",!1,{timeout:"1"}))};g.r(kJ,g.O);g.h=kJ.prototype;g.h.X=function(){window.clearInterval(this.Xb);dI(this.rb);this.M.unsubscribe("visibilitystatechange",this.rb);mJ(this);nJ(this);g.Wp(this.ga);OJ(this);delete this.P;g.He(this.T);this.ba=null;this.wa=!1;this.Ea=0;g.O.prototype.X.call(this)};
g.h.getVideoData=function(){return this.T};
g.h.N=function(){return this.A};
g.h.jr=function(){if(this.T.Hb())0<g.Q(this.A.experiments,"html5_player_min_build_cl")&&311992182<g.Q(this.A.experiments,"html5_player_min_build_cl")&&lK(this,"oldplayer"),yka(this);else if(this.T.di||this.T.Sj){if(!this.ma||!xJ(this))if(this.T.di)Zha(this.T);else{var a=this.B;a.o&&(a=a.o,pH(a,"protected"),a.o.videoData.uc?a.cC():a.o.videoData.subscribe("dataloaded",a.cC,a));a=this.T;a.Oe||a.ia&&Nx(a.ia);var b={};a.ia&&(b=Fz(jB(a),a.Pa.A,a.ia));var c=a.Pa.experiments,d=a.hC;var e=a.useCobaltWidevine?
a.fa("html5_enable_tvos_widevine")&&hl()?pB(a):iB(a,"html5_enable_androidtv_cobalt_widevine")&&dl("cobalt")&&dl("android")?!0:!1:!1;b=new Iz(b,c,d,e);g.B(a,b);a.Sj=!1;a.wc=!0;a=(0,g.x)(a.jG,a);b.C=a;b.w=[];Cz(b.B)?Jz(b):cha(b)}}else!this.T.wc&&this.qc&&vka(this)};
g.h.hM=function(a){var b=this;if(!this.ea()&&!a.videoData.ea()&&(this.P=a,$ja(this.C,this.P),!this.T.va||0<this.T.ph&&!qB(this.T)||(this.seekTo(bK(this)),FJ(this,"playbackData")),this.T.xa.o&&(this.w?g.Uq(Error("Duplicated Loader")):$J(this)),WJ(this),XJ(this,"html5_nonblocking_media_capabilities"))){var c=Date.now();Jja(a).then(function(){b.Ra("mclatency",(Date.now()-c).toString())})}};
g.h.iM=function(a){this.ea()||(a=Qs(a),this.M.isBackground()?(uK(this,"vp_none_avail"),this.za=null,this.Z.reset()):(this.Z.o=!0,g.jJ(this,a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ps(a.details))))};
g.h.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.S("internalAbandon"),this.Au(!0),mJ(this),g.Wp(this.ga))};
g.h.getPlayerState=function(){return this.u};
g.h.getPlayerType=function(){return this.Ka};
g.h.getPreferredQuality=function(){if(this.P){var a=this.U;var b=this.P,c=Eu(b.videoData.gq,b.videoData.mw);"auto"!=gy()||OG(a,"html5_restore_perf_cap_redux")||(c=Eu(c,SG(a,b)));a=Fu(c)}else a="auto";return a};
g.h.isGapless=function(){return!!this.o&&this.o.isView()};
g.h.playVideo=function(){var a=this,b,c,d,e;return g.Ba(function(f){if(1==f.o){if(g.V(a.u,128))return f["return"]();if(a.pd)return a.pd=!1,jK(a),f["return"]();var k=a.B;k.w&&dH(k.w);k.o&&oH(k.o);DJ(a);g.V(a.u,64)&&tJ(a,KC(a.u,8));a.aa.isFinished()&&a.o?a.P||!a.za?(f.o=2,f=void 0):f=g.ta(f,a.za,2):f=f["return"]();return f}if(!a.T.xa)return b=a.T.va&&!g.uu(a.A.A,!0)?"html5.unsupportedlive":xB(a.T)?"fmt.unplayable":"fmt.noneavailable",g.Uq(Error("selectableFormats")),g.jJ(a,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1"),f["return"]();if(a.M.u&&a.T.xa.o)return AJ(a),f["return"]();if(a.T.va){c=a.getCurrentTime()<a.Ab()-15;d=g.GB(a.T)&&g.V(a.u,4);e=!XJ(a,"html5_dompaused_unpause_killswitch")&&g.V(a.u,1024);e||!c&&!d||(d?(a.seekTo(Infinity),FJ(a,"unpauseLiveOnly")):(a.seekTo(a.Ab()),FJ(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&vI(a.C)&&(a.seekTo(Infinity),FJ(a,"peggedToLive"));if(k=g.V(a.u,256)&&a.T.se)k=a.C,k=k.R&&!isFinite(k.w);if(k)return tJ(a,MC(a.u,8,4)),f["return"]()}XJ(a,"html5_sync_seeking_state")&&
g.V(a.u,4)&&g.V(a.u,16)&&tJ(a,MC(a.u,9,4));if(BJ(a))return!XJ(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.o&&a.o.Mi()&&(a.Wa=(0,g.N)()),a.A.Nn?g.Ho((0,g.x)(a.gu,a),0):a.gu(),f["return"]();a.gu();f.o=0})};
g.h.nO=function(){QJ(this);var a=this.T.ia&&Nx(this.T.ia),b=this.o&&this.o.isView();a||b?(this.w&&(a=this.w,a.o.Z=!1,a.w&&SF(a)),dK(this)):(tJ(this,KC(this.u,16)),BJ(this),g.OC(this.u)&&this.playVideo())};
g.h.getUserPlaybackQualityPreference=function(){return this.T.xa&&!this.T.xa.o?Fu(this.T.gq):gy()};
g.h.getAvailableAudioTracks=function(){return this.T.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){return this.T.getAudioTrack()};
g.h.SG=function(){var a=this.B;a.A.o.Ma||3==a.A.getVisibilityState()||(a.A.o.Ma=!0);g.PH(a);if(a.w){var b=a.w;b.R&&0>b.w&&3!=b.u.getVisibilityState()&&dH(b)}a.o&&(a=a.o,a.o.fa("html5_qoe_user_intent_match_health")&&a.ga&&0>a.B&&a.o.o.Ma&&oH(a));g.Q(this.A.experiments,"html5_background_quality_cap")&&this.w&&YJ(this);this.A.gn&&!this.T.backgroundable&&this.o&&!this.M.u&&(this.M.isBackground()&&this.o.Uo()?(this.Ra("bgmobile","suspend"),g.LJ(this,!0)):this.M.isBackground()||BJ(this)&&this.Ra("bgmobile",
"resume"))};
g.h.UL=function(a,b){this.NA(new JD(b,a))};
g.h.NA=function(a){this.Aa.set(a.initData,a);this.F&&(FG(this.F,a),XJ(this,"html5_eme_loader_sync")||this.Aa.remove(a.initData))};
g.h.FA=function(){g.wu&&this.da&&this.da.o&&this.F&&(Gja(this.F,this.da.o),this.da=null)};
g.h.yN=function(a){this.T.OC=Bu("auto",a,!1,"u");YJ(this)};
g.h.PG=function(a){IJ(this,a.reason,a.video.info,a.audio.info)};
g.h.sL=function(a){GJ(this,a.reason,a.audio.info)};
g.h.tL=function(a){this.S("localmediacomplete",a)};
g.h.Ki=function(a){var b=this;Cka(this,a);if("fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!gK(this,a.errorCode,a.details)){var c=/^pp/.test(this.T.clientPlaybackNonce);if(Bka(a)){var d=18400;this.A.fa("ipp_signature_cipher_killswitch")||(d=g.L("STS",void 0)?g.L("STS",void 0):d);a.details.sts=""+d;if(iK(this)){g.V(this.u,4)||g.V(this.u,512)?(this.pd=!0,nJ(this)):(a.o&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.o=!1),this.B.onError(a.errorCode,Ps(a.details)),jK(this));return}6048E5<
(0,g.N)()-this.A.oa&&lK(this,"signature")}if(XJ(this,"html5_disable_codec_on_platform_errors")){if(d=this.T.Ba,(mK(a)||"fmt.decode"===a.errorCode||"fmt.unplayable"===a.errorCode)&&d&&("1"==d.u||et(d))){a.details.e=a.errorCode;a.details.cfall=d.u;this.B.onError("qoe.restart",Ps(a.details));this.A.A.I.add(d.u);dK(this,!0);return}}else if(mK(a)&&this.T.xa&&this.T.xa.u){this.B.onError(a.errorCode,Ps(a.details));this.Ra("highrepfallback","1",!0);!XJ(this,"html5_hr_logging_killswitch")&&/^hr/.test(this.T.clientPlaybackNonce)&&
btoa&&this.Ra("afmts",btoa(this.T.adaptiveFormats),!0);aia(this.T);lJ(this);nJ(this);fK(this);this.playVideo();return}if(a.o){c=this.w?this.w.F.A:null;if(mK(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.A.B&&"auth"==a.errorCode&&429==a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}g.jJ(this,a.errorCode,e,Ps(a.details),f)}else this.B.onError(a.errorCode,Ps(a.details)),c&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.T.clientPlaybackNonce+"&t="+
(0,g.N)(),(new dF(a,"manifest",function(k){b.Yh=!0;b.Ra("pathprobe",k)},function(k){return b.B.onError(k.errorCode,Ps(k.details))})).send())}};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.u,64)||g.V(this.u,2))&&!a)if(g.V(this.u,8))tJ(this,MC(this.u,4,8));else return;g.V(this.u,128)||(a?tJ(this,KC(this.u,256)):tJ(this,MC(this.u,4,8)));this.o&&this.o.pause();g.GB(this.T)&&this.w&&RJ(this,!1)};
g.h.stopVideo=function(){this.pauseVideo();this.w&&(RJ(this,!1),CF(this.w))};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.u,2)&&BJ(this);this.C.seekTo(a,b)};
g.h.getCurrentTime=function(){return this.C.getCurrentTime()};
g.h.getPlaylistSequenceForTime=function(a){return this.T.getPlaylistSequenceForTime(a-this.Bb())};
g.h.getDuration=function(){return this.T.lengthSeconds?this.T.lengthSeconds+this.Bb():bK(this)?bK(this):0};
g.h.eF=function(){var a=new bja;if(this.w){var b=this.A.schedule;a.w=b.G;a.B=b.M;a.bandwidthEstimate=wy(b);a.o="d."+ty(b).toFixed(2)+";st."+(1E9*(b.o.o()||0)).toFixed(2)+";bw."+b.u.o().toFixed(0)+";abw."+b.I.o().toFixed(0)+";v50."+qy(b.w,.5).toFixed(2)+";v92."+qy(b.w,.92).toFixed(2)+";v96."+qy(b.w,.96).toFixed(2)+";v98."+qy(b.w,.98).toFixed(2);b=this.w;if(b.w&&!au(b.w)&&(a.u=wE(b.u,b.C),a.A=wE(b.A,b.C),b.o.oa)){var c=vE(b.u),d=vE(b.A),e=Nt(b.w.u.ud(),"_"),f=Nt(b.w.o.ud(),"_");a.o=(a.o||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=KE(b.P)}else this.o&&(a.u=yC(this.o));a.C=this.xx();return a};
g.h.Za=function(a){var b={};if(void 0===a?0:a){g.Ra(b,this.B.Za());this.o&&(g.Ra(b,this.o.Za()),g.Ra(b,this.Ur()));this.w&&g.Ra(b,this.w.Za());this.F&&(b.drm=this.F.Za());b.state=this.u.o.toString(16);g.V(this.u,128)&&(b.debug_error=this.u.u);EJ(this)&&(b.prerolls=this.V.join(","));this.T.qh&&(b.ismb=this.T.qh);"UNKNOWN"!=this.T.latencyClass&&(b.latency_class=this.T.latencyClass);this.T.isLowLatencyLiveStream&&(b.lowlatency="1");this.T.va&&(this.T.ia&&by(this.T.ia)&&(b.segduration=by(this.T.ia)),
a=this.C,b.lat=a.I?SH(a.I.A):0,b.liveutcstart=this.T.liveUtcStartSeconds);b.relative_loudness=this.T.Am.toFixed(3);if(a=g.HJ(this))b.optimal_format=a.ya().qualityLabel;b.user_qual=gy()}b.debug_videoId=this.T.videoId;return b};
g.h.addCueRange=function(a){var b=this.R;a=[a];b.u();nF(b.o,a);b.A=NaN;b.u()};
g.h.removeCueRange=function(a){pF(this.R,[a])};
g.h.AN=function(){sJ(this)};
g.h.togglePictureInPicture=function(){this.o&&this.o.togglePictureInPicture()};
g.h.QG=function(a){this.rd.stop();var b=a.target.Xc();if(this.o&&this.o.Xc()&&this.o.Xc()==b){AK(this,a.type);switch(a.type){case "error":var c=CC(this.o)||"";if("capability.changed"==c){AJ(this);return}if(0<this.o.Ye()&&gK(this,c,{msg:this.o.bk()}))return;if(this.M.isBackground()&&4==this.o.Ye()){g.LJ(this);uK(this,"unplayable");return}break;case "durationchange":c=this.o.getDuration();(!this.G||isFinite(c)&&0<c)&&1!=c&&this.T.lengthSeconds!=c&&(this.T.lengthSeconds=c,sJ(this));break;case "ratechange":this.w&&
this.w.setPlaybackRate(this.o.getPlaybackRate());c=this.R;c.started=!0;c.u();var d=this.B;c=this.getPlaybackRate();if(d.o){d=d.o;var e=g.WG(d.o);c&&c!=d.Aa&&(g.gH(d,e,"rate",[c]),d.Aa=c);d.uk(e)}break;case "loadedmetadata":BK(this),this.S("onLoadedMetadata");case "loadstart":window.clearInterval(this.Xb);this.ir()||(this.Xb=Io((0,g.x)(this.ir,this),100));break;case "progress":case "suspend":nK(this);this.S("onLoadProgress",this,this.o?g.GB(this.T)?1:HB(this.T)?this.isAtLiveHead()||vI(this.C)?1:cka(this.C):
BC(this.o):0);break;case "playing":this.I.tick("plev");qK(this);OA("plev");this.od&&(this.od=!1,this.isAtLiveHead()||(this.seekTo(Infinity),FJ(this,"onPlaying")));break;case "timeupdate":qK(this);c=this.o&&!this.o.getCurrentTime();d=this.o&&0==this.o.je();if(c&&(!this.Ma||d))return;this.Ma=this.Ma||!!this.o.getCurrentTime();this.ir();nK(this);if(!this.o||this.o.Xc()!=b)return;this.S("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.o.Dj().length&&0==this.o.Dd().length&&
0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.w)return;break;case "resize":BK(this);this.T.Ba&&"auto"==this.T.Ba.ya().quality&&this.S("internalvideoformatchange",this.T,!1);break;case "pause":if(this.Md&&g.V(this.u,8)&&!g.V(this.u,1024)&&0==this.getCurrentTime()&&g.oz){uK(this,"safari_autoplay_disabled");return}}if(this.o&&this.o.Xc()==b){this.S("videoelementevent",a);b=this.u;if(!g.V(b,128)){c=this.Ia;e=this.o;var f=this.A.experiments;d=b.o;e=e?e:a.target;var k=e.getCurrentTime();if(!g.V(b,
64)||"ended"!=a.type&&"pause"!=a.type){var l=e.Bf()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"==a.type||"waiting"==a.type||"timeupdate"==a.type&&!g.V(b,4)&&!EC(c,k);if("pause"==a.type&&e.Bf()||l&&k)0<e.Yn()&&e.Xc()&&(d=14);else switch(a.type){case "error":CC(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.P(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);EC(c,e.getCurrentTime())&&
(d&=-2);g.V(b,1)&&IC(c,e)&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);IC(c,e);break;case "timeupdate":f=g.V(b,16),l=g.V(b,4),(g.V(b,8)||f)&&!l&&EC(c,e.getCurrentTime())&&(d=8),IC(c,e)&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=CC(d))?(f="GENERIC_WITHOUT_LINK",l=d.Za(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.bk())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.KJ[f]||"",Ar:f,LB:Ps(l)}):d=null);b=JC(b,c,d)}!g.V(this.u,
1)&&g.V(b,1)&&zK(this,"evt_"+a.type);tJ(this,b)}}};
g.h.qN=function(){this.Ra("misstimeupdate","");pK(this)&&!g.V(this.u,2)&&hJ(this,!0,!1)};
g.h.cK=function(a){a="available"==a.u.availability;a!=this.Ic&&(this.Ic=a,this.S("airplayavailabilitychange"))};
g.h.dK=function(){var a=this,b=(0,g.N)();if(isNaN(this.Wa)||!(2E3>b-this.Wa)){var c=this.o.Mi();this.Wa=b;c!=this.M.u&&(Xja(this.M,c),AJ(this).then(function(){return BJ(a)}));
this.S("airplayactivechange")}};
g.h.ir=function(){var a=this.o;a&&this.Ma&&!this.T.se&&!LA("vfp",this.I.timerName)&&2<=a.je()&&!a.Bf()&&0<Rt(a.Dd())&&this.I.tick("vfp");return(a=this.o)&&!this.T.se&&0<a.getDuration()&&(!LA("pbp",this.I.timerName)&&a.Dh()&&2<=a.je()&&0<Rt(a.Dd())&&this.I.tick("pbp"),a=a.getCurrentTime(),EC(this.Ia,a))?(sK(this),!0):!1};
g.h.BF=function(){if(this.o&&!g.V(this.u,128)){this.T.xg&&g.Q(this.A.experiments,"html5_log_rebuffer_events")&&AK(this,"pfx");var a=this.getCurrentTime(),b=yC(this.o),c=g.V(this.u,8),d=EC(this.Ia,a),e=FC(this.Ia,a,(0,g.N)(),b);c&&d?tJ(this,LC(this.u,1)):c&&e?(c=this.getDuration(),d=this.T.va,(XJ(this,"html5_set_ended_in_pfx_live")||!d)&&c&&1.1>Math.abs(c-a)?(this.Ra("setended","ct."+a+";bh."+b+";dur."+c+";live."+ +d),d&&XJ(this,"html5_set_ended_in_pfx_live_cfl")||(this.o.So()?this.seekTo(0):hJ(this))):
(g.QC(this.u)||zK(this,"progress_fix"),tJ(this,KC(this.u,1)))):(c&&!d&&!e&&0<a&&(c=(Date.now()-this.nb)/1E3,d=this.getDuration().toFixed(2),a>d-1&&this.Ra("misspg","t:"+a.toFixed(2)+";d:"+d+";r:"+c.toFixed(2)+";bh:"+b.toFixed(2))),g.V(this.u,4)&&g.QC(this.u)&&5<yC(this.o)&&tJ(this,LC(this.u,1)));nK(this)}};
g.h.TE=function(){return this.w?KE(this.w.P):wy(this.A.schedule)};
g.h.bF=function(){return this.A.schedule.G};
g.h.xx=function(){return this.isAtLiveHead()&&this.u.eb()?this.Bx():NaN};
g.h.Bx=function(){if(!this.T.va||!this.T.ia||!this.w)return NaN;var a=qB(this.T)?this.w.oa.o()||0:this.T.ia.G;return(0,g.H)()/1E3-oK(this)-a};
g.h.rF=function(){this.T.va||this.S("connectionissue")};
g.h.gu=function(){var a=this;this.o&&(this.Qa=this.o.playVideo());if(this.Qa){var b=this.Qa;b.then(void 0,function(c){if(!(g.V(a.u,4)||g.V(a.u,256)||a.Qa!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{tJ(a,KC(a.u,2048))}catch(e){}uK(a,d);a.Md=!0}})}};
g.h.OG=function(a,b,c,d){var e=this;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"==a&&this.F&&1<this.F.w.keys.length&&96>this.pe)a="drm.sessionlimitexhausted",b=!1;else if(XJ(this,"html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"==a&&2>this.qe&&(this.qe++,lJ(this),1<this.T.rk.length&&(this.T.uc=this.T.rk[1]),gK(this,a,{detail:c})))return;if(b)this.T.Ba&&$s(this.T.Ba.ya())?(this.A.A.w=!1,this.B.onError("qoe.restart",Ps({e:a,detail:c,r:"hdr"})),AJ(this).then(function(){return BJ(e)})):
g.jJ(this,a,d,c);
else this.B.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Ra("retrydrm","s"),this.pe++,yK(this))};
g.h.kL=function(){var a=this,b=g.Q(this.A.experiments,"html5_license_constraint_delay"),c=pl();b&&c?(b=new g.I(function(){WJ(a);sJ(a)},b),g.B(this,b),b.start()):(WJ(this),sJ(this))};
g.h.jL=function(){var a=this;g.wu&&(this.da=Ega(this.T.ia))&&(this.da.o?g.uf(function(){a.FA()}):nja(this.w,this.da))};
g.h.MG=function(a){this.S("heartbeatparams",a)};
g.h.NG=function(a){this.Ra("keystatuses",Dja(a));var b="auto";this.T.Ba&&(b=this.T.Ba.ya().quality);!uG(a,b,!1)||vG(a,"AUDIO")&&vG(a,"SD")?this.T.Ba&&$s(this.T.Ba.ya())&&(!a.M||uG(a,b,!0))&&Eka(this):this.Uc?this.S("drmoutputrestricted"):(this.Uc=!0,this.Ra("retrydrm","o"),VJ(this),yK(this))};
g.h.qL=function(){if(!this.T.se&&this.o&&!this.M.isBackground()){var a="0";0<this.o.je()&&5<=yC(this.o)&&this.T.xa&&this.T.xa.o&&(tJ(this,KC(this.u,1)),zK(this,"load_soft_timeout"),this.S("playbackstalledatstart"),a="1");tK(this);if(XJ(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},EJ(this)&&(a.prerolls=this.V.join(",")),this.w&&g.Ra(a,this.w.Za()),this.o&&g.Ra(a,this.o.Za());else{var b=this.T.xa;a={restartmsg:a,mfmt:this.T.lo()?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].zc&&!this.F?"1":"0",mfmtinfo:this.T.Ba?"0":"1",prerolls:EJ(this)?this.V.join(","):"0"};b=[this.w,this.o].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Ra(a,c.value.Za())}this.B.onError("qoe.start15s",Ps(a));this.S("loadsofttimeout")}};
g.h.iN=function(){g.V(this.u,128)||this.G&&$t(this.G)||(this.B.onError("qoe.restart",Ps({detail:"bufferattach"})),this.Qg++,dK(this))};
g.h.Au=function(a){var b=this;a=void 0===a?!1:a;if(!this.wa){var c=new nfa(this.T,XJ(this,"web_player_inline_botguard"));if("c1a"in c.o&&!Ns(c)&&(2==this.Ea&&.01>Math.random()&&g.Uq(Error("Botguard not available after 2 attempts")),!a&&5>this.Ea)){this.pc.Ua();this.Ea++;return}if("c1b"in c.o){var d=Uja(this.B);d&&qfa(c).then(function(e){e&&!b.wa&&d&&(d(e),b.wa=!0)})}else if(a=ofa(c))Tja(this.B,a),this.wa=!0}};
g.h.Ab=function(){return this.C.Ab()};
g.h.Bb=function(){return this.C?this.C.Bb():0};
g.h.getStreamTimeOffset=function(){return this.C?this.C.getStreamTimeOffset():0};
g.h.setPlaybackRate=function(a){var b=this.T.xa&&this.T.xa.videoInfos&&32<this.T.xa.videoInfos[0].ya().fps&&g.$y(this.A);this.yb!=a&&b&&(this.U.setPlaybackRate(a),VJ(this));this.yb=a;this.o&&this.o.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.yb};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.T.Ba&&(a=this.T.Ba.ya().quality,"auto"==a&&this.o)){var b=vJ(this);b&&0<b.videoHeight&&(a=Ws(b.videoWidth,b.videoHeight))}return a};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.B;c.u?(c=GH(c.u,"engage"),c.C=a,c.send(b)):b&&b()};
g.h.isAtLiveHead=function(a,b){return this.T.va&&(this.Hc||(void 0===b?0:b))?this.C.isAtLiveHead(a):!1};
g.h.Ur=function(){return this.o?this.o.Xl():{}};
g.h.setLoop=function(a){this.Kc=a;this.o&&this.o.setLoop(a)};
g.h.sG=function(a){XJ(this,"html5_unrewrite_timestamps")&&this.Ra("timestamp",a.toString())};
g.h.Ra=function(a,b,c){var d=this.B;d.o&&iH(d.o,a,b,void 0===c?!1:c)};
g.h.dO=function(a,b){this.B.onError(a,Ps(b))};var HK={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};DK.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.o[d.value.encryptedTokenJarContents];CK(this,b)};g.r(JK,fC);g.h=JK.prototype;g.h.getRootNode=function(){return g.QK(this).element};
g.h.N=function(){return this.app.N()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){return(a=g.W(this.app,a))&&a.getVideoData()};
g.h.ue=function(a){return this.app.ue(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.playVideo=function(a){try{if(3==this.getPresentingPlayerType()){g.RK(this.app.A).Wl("control_play");return}if(2===this.getPresentingPlayerType()){var b=GL(this.app.A),c;if(c=b){if(null===b.o)var d=0;else{var e=b.o;d=WU(e.o)&&!!e.u&&e.u.im()}c=d}if(c)return}}catch(f){g.Tq(f)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.W(this.app,a).stopVideo()};
g.h.addEventListener=function(a,b){this.app.da.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.da.unsubscribe(a,b)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.va||(k=Math.floor(this.getCurrentTime(e)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.setCardsVisible=function(a,b,c){var d=g.XK(g.KK(this));d&&d.setCardsVisible(a,b,c)};
g.h.Qc=function(){if(this.N().M)return!1;var a=g.W(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.GB(b)||2==this.getPresentingPlayerType()&&!this.app.Mb()||EJ(a)&&3!=this.getPresentingPlayerType()?!1:!0};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.Md(a,0,100);ZB(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){ZB(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){ZB(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.getBandwidthEstimate=function(){return wy(this.N().schedule)};
g.h.kb=function(){return g.W(this.app)};
g.h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.Mb=function(){return this.app.Mb()};var Lka=new Set("BASE_URL BASE_YT_URL abd adformat allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd disable_native_context_menu docid el enable_cardio enablecastapi enablepostapi end errorcode fmt_list fmt_stream_map forcenewui hl hlsdvr hlsrange hlsvp html5 invite iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid pipable playsinline plid postid ps public reason rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid videoId wmode".split(" "));g.r(g.vL,g.O);g.h=g.vL.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Oc=function(){};
g.h.Pf=function(){return!0};
g.h.X=function(){this.loaded&&this.unload();g.O.prototype.X.call(this)};
g.h.Za=function(){return{}};
g.h.getOptions=function(){return[]};g.KL={};g.r(yL,g.A);g.h=yL.prototype;g.h.sd=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=this.u.get(a);if(!e||d){b||(b=this.sd.bind(this,a,void 0,c,d));if(!(d=e))a:{e=Nka(this,a);try{if(e){var f=g.KL[a];if(f){d=new f(this.o);break a}"creatorendscreen"==a?LL(this,"annotations_module",b):LL(this,a,b)}else g.fL(this.o,a)}catch(k){g.fL(this.o,a),g.Tq(k)}d=null}if(e=d)this.u.set(a,e),e.create(),c&&this.o.na("onApiChange")}};
g.h.Fm=function(){return this.o.getVideoData().Fm()};
g.h.Hw=function(){var a=this.u.get("heartbeat");this.sd("heartbeat",this.Hw,!1,!0);!a&&this.u.has("heartbeat")&&this.o.S("offlineslatestatechange")};
g.h.qr=function(){this.sd("annotations_module",this.qr,!0);var a=this.u.get("annotations_module");if(a)for(var b in this.C){var c=b;a.subscribe(c,this.C[c])}};
g.h.Fw=function(){if(!this.u.get("ad"))try{AL(this)?this.sd("ad",this.Fw,!1,!0):g.fL(this.o,"ad")}catch(a){g.fL(this.o,"ad"),g.Tq(a)}};
g.h.X=function(){g.A.prototype.X.call(this);FL(this,1,!0)};g.r(g.ML,g.vC);g.h=g.ML.prototype;g.h.Ch=function(){return!0};
g.h.isView=function(){return!1};
g.h.Gp=function(){return!1};
g.h.ua=function(){return this.o};
g.h.Xc=function(){return this.o.src};
g.h.Lp=function(a){var b=this.getPlaybackRate();this.o.src=a;this.setPlaybackRate(b)};
g.h.Ep=function(){this.o.removeAttribute("src")};
g.h.getPlaybackRate=function(){try{return 0<=this.o.playbackRate?this.o.playbackRate:1}catch(a){return 1}};
g.h.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.o.playbackRate=a);return a};
g.h.So=function(){return this.o.loop};
g.h.setLoop=function(a){this.o.loop=a};
g.h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
g.h.Dh=function(){return this.o.paused};
g.h.Yl=function(){return this.o.seeking};
g.h.Bf=function(){return this.o.ended};
g.h.Xn=function(){return this.o.muted};
g.h.Rh=function(a){Ht();this.o.muted=a};
g.h.Dj=function(){return this.o.played||Mt([],[])};
g.h.Dd=function(){try{var a=this.o.buffered}catch(b){}return a||Mt([],[])};
g.h.yl=function(){return this.o.seekable||Mt([],[])};
g.h.Vo=function(){return this.o.getStartDate?this.o.getStartDate():null};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.Kp=function(a){this.o.currentTime=a};
g.h.getDuration=function(){return this.o.duration};
g.h.load=function(){var a=this.o.playbackRate;this.o.load&&this.o.load();this.o.playbackRate=a};
g.h.pause=function(){this.o.pause()};
g.h.play=function(){var a=this.o.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.je=function(){return this.o.readyState};
g.h.Yn=function(){return this.o.networkState};
g.h.Ye=function(){return this.o.error?this.o.error.code:null};
g.h.bk=function(){return this.o.error?this.o.error.message:""};
g.h.Xl=function(){var a={};if(this.o){if(this.o.getVideoPlaybackQuality)return this.o.getVideoPlaybackQuality();this.o.webkitDecodedFrameCount&&(a.totalVideoFrames=this.o.webkitDecodedFrameCount,a.droppedVideoFrames=this.o.webkitDroppedFrameCount)}return a};
g.h.Mi=function(){return!!this.o.webkitCurrentPlaybackTargetIsWireless};
g.h.Ys=function(){return!!this.o.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){Gt()?this.o!=window.document.pictureInPictureElement?this.o.requestPictureInPicture():window.document.exitPictureInPicture():Ft()&&this.o.webkitSetPresentationMode("picture-in-picture"==this.o.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.ih=function(){return Bh(this.o)};
g.h.ck=function(){return g.Nh(this.o)};
g.h.setSize=function(a){return g.Mh(this.o,a)};
g.h.getVolume=function(){return this.o.volume};
g.h.setVolume=function(a){Ht();this.o.volume=a};
g.h.zr=function(a){if(!this.u[a]){var b=(0,g.x)(this.fH,this);this.o.addEventListener(a,b);this.u[a]=b}};
g.h.fH=function(a){this.dispatchEvent(new DC(this,a.type,a))};
g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
g.h.Sk=ba(7);g.h.Lm=ba(9);g.h.gj=ba(4);g.h.Xk=ba(11);g.h.ol=function(){Er(this.o)};
g.h.zl=function(a){return g.wh(this.o,a)};
g.h.zs=function(){return g.xe(document.body,this.o)};
g.h.X=function(){for(var a in this.u)this.o.removeEventListener(a,this.u[a]);g.vC.prototype.X.call(this)};Ja(NL);var FS=g.w("ytPlayerUtilsVideoTagPoolInstance")||NL.getInstance();g.Ga("ytPlayerUtilsVideoTagPoolInstance",FS,void 0);g.h=NL.prototype;g.h.Yw=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++)PL(this)}};
g.h.gF=function(a,b){if(this.o.length)return this.o.pop();var c=PL(this,a,b);a||g.db(this.o,c);return c};
g.h.eO=function(a){a&&g.$a(this.u,a)&&(a.src&&(nl&&0<a.readyState&&(a.currentTime=Math.max(Zra,0)),a.removeAttribute("src"),a.load(),a.o&&a.o.u&&(a.o&&a.o.dispose(),a.o=null)),Pp(a),g.db(this.u,a),g.db(this.w,a))};
g.h.RF=function(a){return this.o.length>=(a||1)};
g.h.PD=function(){for(var a=this.w.length-1;0<=a;a--)OL(this,this.w[a]);this.o.length==this.u.length&&4<=this.o.length||(4>this.u.length?this.Yw(4):(this.o=[],(0,g.y)(this.u,function(b){OL(this,b)},this)))};
NL.prototype.fillPool=NL.prototype.Yw;NL.prototype.getTag=NL.prototype.gF;NL.prototype.releaseTag=NL.prototype.eO;NL.prototype.hasTags=NL.prototype.RF;NL.prototype.activateTags=NL.prototype.PD;g.r(g.QL,g.vC);g.h=g.QL.prototype;g.h.isView=function(){return!0};
g.h.Gp=function(){var a=this.o.getCurrentTime();if(a<this.u)try{var b=this.o.Dd(),c=Qt(b,a);return!(this.u<c)}catch(d){}return!1};
g.h.Dj=function(){return Tt(this.o.Dj(),this.u,this.A)};
g.h.Dd=function(){return Tt(this.o.Dd(),this.u,this.A)};
g.h.yl=function(){return Tt(this.o.yl(),this.u,this.A)};
g.h.getCurrentTime=function(){return this.o.getCurrentTime()-this.u};
g.h.Kp=function(a){this.o.Kp(a+this.u)};
g.h.getDuration=function(){return isFinite(this.A)&&!this.G?this.A-this.u:this.o.getDuration()-this.u};
g.h.play=function(){if(this.Gp()){this.o.getCurrentTime();try{this.o.Kp(this.u)}catch(a){}}return this.o.play()};
g.h.Za=function(){var a=g.vC.prototype.Za.call(this);a.view=this.u+"-"+this.A;return a};
g.h.addEventListener=function(a,b){this.o.addEventListener(a,b)};
g.h.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};
g.h.Uo=function(){return this.o.Uo()};
g.h.ak=function(a){this.o.ak(a)};
g.h.To=function(){return this.o.To()};
g.h.playVideo=function(){return this.o.playVideo()};
g.h.yr=function(){this.o.yr()};
g.h.ur=function(){this.o.ur()};
g.h.Ch=function(){return this.o.Ch()};
g.h.ua=function(){return this.o.ua()};
g.h.Xc=function(){return this.o.Xc()};
g.h.Lp=function(a){this.o.Lp(a)};
g.h.Ep=function(){this.o.Ep()};
g.h.getPlaybackRate=function(){return this.o.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.o.setPlaybackRate(a)};
g.h.So=function(){return this.o.So()};
g.h.setLoop=function(a){this.o.setLoop(a)};
g.h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
g.h.Dh=function(){return this.o.Dh()};
g.h.Yl=function(){return this.o.Yl()};
g.h.Bf=function(){return this.o.Bf()};
g.h.Xn=function(){return this.o.Xn()};
g.h.Rh=function(a){this.o.Rh(a)};
g.h.Vo=function(){return this.o.Vo()};
g.h.load=function(){this.o.load()};
g.h.pause=function(){this.o.pause()};
g.h.je=function(){return this.o.je()};
g.h.Yn=function(){return this.o.Yn()};
g.h.Ye=function(){return this.o.Ye()};
g.h.bk=function(){return this.o.bk()};
g.h.Xl=function(){return this.o.Xl()};
g.h.Mi=function(){return this.o.Mi()};
g.h.Ys=function(){return this.o.Ys()};
g.h.togglePictureInPicture=function(){this.o.togglePictureInPicture()};
g.h.ih=function(){return this.o.ih()};
g.h.ck=function(){return this.o.ck()};
g.h.setSize=function(a){return this.o.setSize(a)};
g.h.getVolume=function(){return this.o.getVolume()};
g.h.setVolume=function(a){this.o.setVolume(a)};
g.h.setAttribute=function(a,b){this.o.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.o.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.o.hasAttribute(a)};
g.h.Sk=ba(6);g.h.Lm=ba(8);g.h.gj=ba(3);g.h.Xk=ba(10);g.h.ol=function(){this.o.ol()};
g.h.zl=function(a){return this.o.zl(a)};
g.h.zs=function(){return this.o.zs()};
g.h.stopVideo=function(){this.o.stopVideo()};
g.h.zr=function(a){this.o.zr(a)};g.r(SL,g.A);g.h=SL.prototype;g.h.isFinished=function(){return 6==this.w.status};
g.h.getStatus=function(){return this.w};
g.h.ci=function(){var a=this.o.getVideoData(),b=this.u.getVideoData(),c;if((c=a.xa)&&!(c=!a.ia)){c=a.ia;for(var d=!1,e=!1,f=g.q(Object.values(c.o)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.Hb()&&(d=!0),k.info.video&&k.index.Hb()&&(e=!0);c.o["0"]&&(e=!0);c=d&&e}if(c)if(this.o.o){k=Ska(this.R,this.o,this.u,this.F);f=TL(this);c=f.vE;e=f.dA;d=f.uE;f=f.cA;if(!this.I){var l=1E3*this.u.getCurrentTime(),m=this.o.getCurrentTime();m=1E3*(d-c-m);k&&"in-the-past"==k&&(m=0);a=a.isAd();var n=
this.u.B;n.o&&(n=n.o,n.P={pO:iH(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a),eA:l,fO:m,isAd:a});this.I=!0}k?RL(this,"cannot_apply_"+k+";transitionTimeMs."+this.F):2==this.w.status?YL(this):(a=this.o.G)&&$t(a)&&(!Yt(a)&&g.gl()?RL(this,"mse_closed"):b.ia&&Nx(b.ia)&&a.u&&!a.u.Vn()?RL(this,"encr_upgrade"):(b=this.o.o,b.Bf()?RL(this,"elem_ended"):0>e?RL(this,"next_player_future"):(this.G=d,this.A=du(a,c,d,!0),this.B=du(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.o.Ra("gaplessPrep",
"cpn."+a),hK(this.o,this.A),PJ(this.o,UL(b,c,d,!this.o.getVideoData().isAd())),VL(this,2),YL(this))))}else RL(this,"no-elem")};
g.h.hk=function(a){var b=XL(this),c=a==b.fC;b=c?this.A.o:this.A.u;c=c?this.B.o:this.B.u;if(b.isActive()&&!c.isActive()){var d=this.G;Pt(a.ud(),d-.01)&&(VL(this,4),b.setActive(!1),this.u.Ra("sbh","1"),c.setActive(!0));a=this.B.u;this.B.o.isActive()&&a.isActive()&&VL(this,5)}};
g.h.LA=function(){4<=this.w.status&&6>this.w.status&&RL(this,"player-reload-after-handoff")};
g.h.X=function(){WL(this);this.o.unsubscribe("newelementrequired",this.LA,this);if(this.A){var a=this.A.u;this.A.o.o.unsubscribe("updateend",this.hk,this);a.o.unsubscribe("updateend",this.hk,this)}g.A.prototype.X.call(this)};
g.h.Ez=function(a){g.bH(a,128)&&RL(this,"player-error-event")};g.r(ZL,g.A);ZL.prototype.clearQueue=function(){this.B&&this.B.reject("Queue cleared");$L(this)};
ZL.prototype.X=function(){$L(this);g.A.prototype.X.call(this)};g.r(eM,g.A);eM.prototype.get=function(a){cM(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
eM.prototype.set=function(a,b,c){this.remove(a,!0);cM(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.N)()+c);for(this.data.push(a);this.data.length>this.w;)(c=this.data.shift())&&fM(this,c,!0);dM(this)};
eM.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(fM(this,c,b),g.eb(this.data,function(d){return d.key===a}),dM(this))};
eM.prototype.X=function(){var a=this;g.A.prototype.X.call(this);this.data.forEach(function(b){fM(a,b,!0)});
this.data=[]};g.r(kM,g.A);kM.prototype.w=function(a){this.u=a[a.length-1].intersectionRatio};
kM.prototype.X=function(){g.A.prototype.X.call(this);this.u=null;this.o&&this.o.disconnect()};var w2;w2={};g.lM=(w2.STOP_EVENT_PROPAGATION="html5-stop-propagation",w2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",w2.IV_DRAWER_OPEN="ytp-iv-drawer-open",w2.MAIN_VIDEO="html5-main-video",w2.VIDEO_CONTAINER="html5-video-container",w2.HOUSE_BRAND="house-brand",w2);g.r(nM,g.R);g.h=nM.prototype;g.h.PF=function(){this.G=new g.ph(0,0,0,0);this.w=new g.ph(0,0,0,0)};
g.h.km=function(a){g.Cn(this.element,arguments)};
g.h.ke=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.w;b=!g.Td(a,new g.Sd(b.width,b.height));var c=vM(this);b&&(this.w.width=a.width,this.w.height=a.height);a=this.app.N();(c||b||a.ma)&&this.app.u.S("resize",this.getPlayerSize())}}};
g.h.cJ=function(a,b){this.updateVideoData(b)};
g.h.QF=function(a){a.getVideoData()&&this.updateVideoData(a.getVideoData())};
g.h.updateVideoData=function(a){if(this.u){var b=this.app.N();nl&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));wB(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.zo&&a.videoId&&(this.u.poster=a.tc("default.jpg"));g.P(b.experiments,"html5_send_origin_for_progressive")&&a.xa&&!a.xa.o&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.CB(a,"yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.U=Ey(g.CB(a,"yt:stretch"));this.V=Ey(g.CB(a,"yt:crop"),!0);g.K(this.element,"ytp-dni",a.lc);this.ke()};
g.h.setGlobalCrop=function(a){this.M=Ey(a,!0);this.ke()};
g.h.setCenterCrop=function(a){this.da=a;this.ke()};
g.h.getPlayerSize=function(){var a=this.app.N(),b=this.app.u.isFullscreen();if(b&&el())return new g.Sd(window.outerWidth,window.outerHeight);if(b||a.fn){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.F&&this.F.media==a||(this.F=window.matchMedia(a));var c=this.F&&this.F.matches}if(c)return new g.Sd(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.B.width)&&!isNaN(this.B.height))return this.B.clone();if(this.aa&&this.Z&&!this.app.isWidescreen())for(a=
0;a<this.aa.length;a++)if(b=this.aa[a],b.query.matches)return new g.Sd(b.size.width,b.size.height)}return new g.Sd(this.element.clientWidth,this.element.clientHeight)};
g.h.getVideoAspectRatio=function(){return isNaN(this.U)?qM(this):this.U};
g.h.getVideoContentRect=function(a){var b=this.getPlayerSize();a=rM(this,b,this.getVideoAspectRatio(),a);return new g.ph((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.AF=function(){this.u&&uM(this);tM(this)!=this.R&&this.ke()};
g.h.dJ=function(){uM(this)};
g.h.setUseFastSizingOnWatch=function(a){this.Z!=a&&(this.Z=a,this.ke())};
g.h.setInternalSize=function(a){g.Td(this.B,a)||(this.B=a,this.ke())};
g.h.X=function(){this.I&&g.Po(this.I);oM(this);g.R.prototype.X.call(this)};wM.prototype.click=function(a){this.o.has(a);this.u.has(a);var b=g.ds();b&&a.visualElement&&g.zs(b,a.visualElement)};cN.prototype.w=function(){};g.r(dN,cN);dN.prototype.w=function(){return{}};
dN.prototype.u=function(a){return a.subscribeEndpoint};
dN.prototype.o=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.r(eN,cN);eN.prototype.w=function(){return{}};
eN.prototype.u=function(a){return a.unsubscribeEndpoint};
eN.prototype.o=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.r(fN,cN);fN.prototype.u=function(a){return a.playlistEditEndpoint};
fN.prototype.o=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.r(gN,cN);gN.prototype.u=function(a){return a.webPlayerShareEntityServiceEndpoint};
gN.prototype.o=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity)};hN.prototype.fetch=function(a,b){var c=this,d=new Request(a,b),e=ld(g.nd(5,Dd(d.url,"key")));this.A.o.w("/client_streamz/youtube/web/network/one_platform_requests",e);return Df(fetch(d).then(function(f){return Yka(c,f,e)})["catch"](function(f){g.Uq(f)}))};g.r(jN,g.O);g.h=jN.prototype;g.h.UI=function(a){a=Jp(a);if(!Rd(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.Tb(b,!0)}};
g.h.KJ=function(){this.F&&this.Tb(8,!0);this.Tb(2,!1)};
g.h.Ht=function(a){var b=Jp(a);Rd(b,this.B)||(this.B=b,(a=g.Gp(a))&&this.U(a)&&(this.Tb(4,!0),this.o.bb(this.A),this.A=this.o.L(this.w,"mouseover",this.Mz),this.M=this.o.L(this.w,"mouseout",this.Mz)))};
g.h.Mz=function(a){a=Ip(a);a&&this.U(a)||(this.B=new g.Qd(NaN,NaN),kN(this))};
g.h.iG=function(){this.Tb(1,!0)};
g.h.LE=function(a){a=g.Gp(a);a instanceof Element&&!(0<a.tabIndex)||this.Tb(1,!0)};
g.h.Lz=function(){this.F=!0;this.o.bb(this.C);this.C=this.o.L(document,"mouseup",this.VI)};
g.h.VI=function(){this.F=!1;this.Tb(8,!1);this.o.bb(this.C);this.C=this.o.L(this.w,"mousedown",this.Lz)};
g.h.Nz=function(a){if(a=(a=a.changedTouches)&&a[0])this.V=a.identifier,this.o.bb(this.G),this.G=this.o.L(this.w,"touchend",this.WI,void 0,!0),this.Tb(1024,!0)};
g.h.WI=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.V){var d=c;break}}d&&(this.o.bb(this.G),this.G=this.o.L(this.w,"touchstart",this.Nz,void 0,!0),this.Tb(1024,!1))};
g.h.Tb=function(a,b){this.ea();var c=!this.u;b?(this.u|=a,a&1&&this.I.start(),a&2&&this.P.start()):(this.u&=~a,a&1&&this.I.stop(),a&2&&this.P.stop(),a&512&&this.R.stop());this.u&512&&!(this.u&128)&&this.R.Ua(this.ba);var d=!this.u;c!=d&&this.S("autohideupdate",d)};
g.h.toString=function(){return g.O.prototype.toString.call(this)};g.r(g.lN,g.A);g.h=g.lN.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.eq(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.o&&this.o()):this.element.Ha()||(mN(this,!0),this.state=1,a?this.delay.start(a):this.eq()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ha()&&(mN(this,!0),this.state=4,this.delay.start(this.A)))};
g.h.eq=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:mN(this,!1);this.state=3;this.delay.start(this.w);break;case 3:this.state=null;this.o&&this.o();break;case 4:this.element.hide();mN(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.h.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.eq()};
g.h.X=function(){this.element.ea()||this.element.element.removeAttribute("aria-hidden");g.A.prototype.X.call(this)};g.r(g.nN,g.R);
g.nN.prototype.sa=function(){var a=this.api.getVideoData(),b=this.api.N();if(a.lc&&a.hg)var c=b.F?[{D:"div",H:"ytp-large-play-button-circle",O:{style:"background-color: "+a.hg}},g.X?{D:"div",Y:["ytp-icon","ytp-icon-dni-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},J:[{D:"path",O:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-dni-large-lozenge-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-dni-large-play-button-bg",O:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.F&&!b.B?
c=[g.X?{D:"div",Y:["ytp-icon","ytp-icon-large-play-button-hover"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},
{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:(g.K(this.element,"ytp-touch-device",b.o),c=[b.B?g.X?{D:"div",Y:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",O:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-large-play-button"]}:{D:"svg",O:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},J:[{D:"path",H:"ytp-large-play-button-bg",O:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{D:"path",O:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]);this.la("largePlayButtonChildren",
c);a.lc&&a.hg&&!b.F&&this.o["ytp-dni-large-play-button-bg"].setAttribute("fill",a.hg)};g.r(oN,g.R);g.h=oN.prototype;g.h.show=function(){var a=this;this.Ha()||(this.B.L(this.u,"videodatachange",function(){return a.w.Ua()}),this.B.L(this.u,"videoplayerreset",function(){return a.w.Ua()}));
g.R.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.Ir(this.B);g.R.prototype.hide.call(this)};
g.h.fJ=function(){this.w.Ua()};
g.h.gJ=function(a){var b=this.u.N();g.P(b.experiments,"disable_new_pause_state3")&&hz(b)&&(a=a.state.isCued()&&!a.Jh.isCued()||g.SK(this.u)&&g.V(a.state,2),g.sh(this.element,"transition-delay",a?"2s":""));this.w.Ua()};
g.h.NN=function(){this.w.Ua()};
g.h.KM=function(){this.A.stop();this.hide();this.w.Ua()};
g.h.Pz=function(){var a=g.PK(this.u);if(3==this.u.getPresentingPlayerType()&&(a.eb()||g.V(a,4)))var b=!0;else(b=g.KK(this.u).u.get("ypc"))&&b.G?b=!0:(b=this.u.N(),b=g.V(a,2)&&MK(this.u)&&b.Ta?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!=this.u.getPresentingPlayerType()?b=!0:(b=!g.P(this.u.N().experiments,"disable_new_pause_state3"),b=!(!g.V(a,2)||MK(this.u)||b&&g.LS(this.u.app))||g.V(a,1024)?!0:!1));b?(this.A.show(),a=this.u.getVideoData(),this.XO(this.u.getPlaylist(),a)):(this.A.hide(),
g.V(a,1)||this.A.stop())};
g.h.XO=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.aB&&!c.videoId)){var d=g.QK(this.u).getPlayerSize();var e=g.iz(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.tc("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.tc("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.tc("sddefault.jpg")||c.tc("hqdefault.jpg")||c.tc("mqdefault.jpg"))break;if(d=c.tc("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.r(qN,g.Gr);qN.prototype.B=function(){this.A();var a=this.o.getVideoData();if(a.isValid()){var b=[];this.o.N().P||b.push({src:a.tc("mqdefault.jpg"),sizes:"320x180"});this.u.metadata=new MediaMetadata({title:a.title,artist:a.author,artwork:b});b=a=null;g.SK(this.o)&&(this.w["delete"]("nexttrack"),this.w["delete"]("previoustrack"),a=(0,g.x)(function(){this.o.nextVideo()},this),b=(0,g.x)(function(){this.o.previousVideo()},this));
pN(this,"nexttrack",a);pN(this,"previoustrack",b)}};
qN.prototype.A=function(){var a=g.PK(this.o);a=a.isError()?"none":g.OC(a)?"playing":"paused";this.u.playbackState=a};
qN.prototype.X=function(){this.u.playbackState="none";this.u.metadata=null;for(var a=g.q(this.w),b=a.next();!b.done;b=a.next())pN(this,b.value,null);g.Gr.prototype.X.call(this)};g.r(rN,g.R);rN.prototype.V=function(a,b){sN(this,b);this.C&&tN(this,this.C)};
rN.prototype.U=function(a){var b=this.M.getVideoData();this.w!=b.videoId&&sN(this,b);this.u&&tN(this,a.state);this.C=a.state};
rN.prototype.Qb=function(){this.B.show();this.G=(0,g.H)()};
rN.prototype.R=function(){this.B.hide();this.w&&(this.A[this.w]=(this.A[this.w]||0)+((0,g.H)()-this.G));this.G=0};g.r(g.vN,g.R);g.vN.prototype.X=function(){this.u=null;g.R.prototype.X.call(this)};g.r(g.wN,g.Ru);g.h=g.wN.prototype;g.h.show=function(){var a=yN(this);g.Ru.prototype.show.call(this);this.da&&(this.G.L(window,"blur",this.gb),this.G.L(document,"click",this.jJ));a||this.S("show",!0)};
g.h.hide=function(){var a=yN(this);g.Ru.prototype.hide.call(this);xN(this);a&&this.S("show",!1)};
g.h.Qb=function(a,b){this.u=a;this.U.show();b?(this.I||(this.I=this.G.L(this.Z,"appresize",this.cw)),this.cw()):this.I&&(this.G.bb(this.I),this.I=null)};
g.h.OE=function(){this.u&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded",!0),g.P(this.Z.N().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.xe(this.u,document.activeElement)&&this.focus():this.focus())};
g.h.cw=function(){g.dC(this.Z).qk(this.element,this.u)};
g.h.gb=function(){var a=yN(this);xN(this);this.U.hide();a&&this.S("show",!1)};
g.h.hf=function(a,b){yN(this)?this.gb():this.Qb(a,b)};
g.h.jJ=function(a){var b=Hp(a);b&&(g.xe(this.element,b)||this.u&&g.xe(this.u,b)||!g.iM(a))||this.gb()};g.r(zN,g.wN);g.h=zN.prototype;g.h.show=function(){var a=this.Ha();g.wN.prototype.show.call(this);a||(this.B.L(this.w,"presentingplayerstatechange",this.Lt),this.B.L(this.w,"videodatachange",this.Lt),this.Lt())};
g.h.hide=function(){this.B&&(g.Ir(this.B),g.wN.prototype.hide.call(this))};
g.h.Lt=function(){var a=this.w.getVideoData(),b=a.bi,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.R({D:"button",Y:["ytp-multicam-menu-item","ytp-button"],O:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},J:[{D:"div",H:"ytp-multicam-menu-item-title",W:"{{cameraName}}"}]}),d.ka("click",g.Qa(this.FK,c),this),d.ca(this.C),this.A[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=gz(this.w.N(),f,"default.jpg"));d.element.style.backgroundImage=
k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.A.length;)this.A.pop().dispose();c=g.PK(this.w);a=b.length||!a.Hb();g.OC(c)||g.V(c,4)||a||!yN(this)||this.hf()};
g.h.FK=function(a){var b=this.w.getVideoData(),c=this.w;a=b.bi[a];b=g.W(c.app,1).getVideoData();var d=c.getCurrentTime();a.id==b.videoId?g.W(c.app)!=g.W(c.app,1)&&(g.bM(c.app,1),b.va||c.seekTo(d)):(g.bM(c.app,4),c.app.loadVideoByPlayerVars({videoId:a.id,title:b.title,start:b.va?null:d,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:b.Yz}}}},4))};
g.h.focus=function(){for(var a=this.w.getVideoData(),b=a.bi,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.X=function(){g.Ie(this.A);g.wN.prototype.X.call(this)};g.r(CN,g.R);CN.prototype.F=function(a){this.w("newdata"==a)};
CN.prototype.w=function(a){var b=this.C.getVideoData(),c=b.bi,d=g.PK(this.C);d=(g.OC(d)||g.V(d,4))&&0<c.length;g.Qu(this,d);a&&(this.A=!0);if(d){this.A&&this.B.Ua();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.gM("Vid\u00e9o $CAMERA_INDEX sur $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.tc("default.jpg")});SN(this.u)}else this.B.stop()};
CN.prototype.G=function(){nR(this.u,this.element,"Autres cam\u00e9ras disponibles");this.A=!1};g.r(g.ON,g.R);g.h=g.ON.prototype;g.h.jk=function(){PN(this);this.F&&(this.bb(this.F),this.F=null);this.T=this.u.getVideoData(1);if(this.w=this.u.getPlaylist())this.w.subscribe("shuffle",this.jk,this),this.F=this.L(this.u,"progresssync",this.CF);this.C=QN(this);NN(this);this.Rf(g.QK(this.u).getPlayerSize())};
g.h.Rf=function(a){a=void 0===a?g.QK(this.u).getPlayerSize():a;var b=g.SK(this.u)||this.A&&g.jL(this.u)||RN(this);g.Qu(this,b&&(this.A||400<=a.width))};
g.h.iJ=function(a){var b=!0;this.I?b=g.IN(a,this.u):g.Kp(a);b&&(this.A&&5==this.u.getPresentingPlayerType()?this.u.S("ytoprerollinternstitialnext"):this.A?this.u.nextVideo(!0):this.C?this.u.seekTo(0):this.u.previousVideo(!0))};
g.h.CF=function(){var a=QN(this);a!=this.C&&(this.C=a,NN(this))};
g.h.X=function(){this.B&&(this.B(),this.B=null);PN(this);g.R.prototype.X.call(this)};g.r(TN,g.R);TN.prototype.Rf=function(a){a=this.B&&400<=a.width;g.Qu(this,a);g.oL(this.u,this.element,a)};
TN.prototype.C=function(){if(this.A.Ha())this.A.gb();else{var a=g.zL(g.KK(this.u));a&&!a.loaded&&(a.Oc("tracklist",{includeAsr:!0}).length||a.load());g.nL(this.u,this.element);this.A.Qb(this.element)}};
TN.prototype.w=function(){var a=(a=g.W(this.u.app))?!!(a.T.Ba&&a.T.Ba.video&&$s(a.T.Ba.video)):!1;var b=this.u.getPresentingPlayerType(),c=2!=b&&3!=b,d=g.WK(this.u),e=c&&!!g.VK(g.KK(this.u));b=e&&1==d.displayMode;d=e&&2==d.displayMode;c=(e=b||d)||!c?null:this.u.getPlaybackQuality();g.K(this.element,"ytp-hdr-quality-badge",a);g.K(this.element,"ytp-hd-quality-badge",!a&&("hd1080"==c||"hd1440"==c));g.K(this.element,"ytp-4k-quality-badge",!a&&"hd2160"==c);g.K(this.element,"ytp-5k-quality-badge",!a&&"hd2880"==
c);g.K(this.element,"ytp-8k-quality-badge",!a&&"highres"==c);g.K(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.K(this.element,"ytp-3d-badge",!a&&e&&d)};g.r(VN,g.Ru);VN.prototype.oa=function(){this.S("size-change")};
VN.prototype.focus=function(){this.aa.focus()};
VN.prototype.wa=function(){this.S("back")};g.r(g.WN,VN);g.WN.prototype.da=function(){this.G.S("size-change")};
g.WN.prototype.focus=function(){for(var a=0,b=0;b<this.w.length;b++)if("true"==this.w[b].element.getAttribute("aria-checked")){a=b;break}this.w[a].focus()};g.r(g.$N,g.wN);g.h=g.$N.prototype;g.h.show=function(){g.wN.prototype.show.call(this);this.Ek()};
g.h.hide=function(){g.wN.prototype.hide.call(this);1<this.w.length&&eO(this)};
g.h.Ek=function(){fO(this);this.Ha()&&(bO(this),g.Mh(this.element,this.size))};
g.h.Ih=function(){var a=this.w.pop(),b=aO(this);cO(this,a,b,!0)};
g.h.HO=function(a,b,c){this.F.dispose();this.F=null;g.J(this.element,"ytp-popup-animating");c?(g.J(a.element,"ytp-panel-animate-forward"),g.Dn(b.element,"ytp-panel-animate-back")):(g.J(a.element,"ytp-panel-animate-back"),g.Dn(b.element,"ytp-panel-animate-forward"));g.Mh(this.element,this.size);this.C=new g.I(g.Qa(this.eK,a,b),250,this);this.C.start()};
g.h.eK=function(a){g.Dn(this.element,"ytp-popup-animating");g.Nu(a);g.En(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.C.dispose();this.C=null};
g.h.hJ=function(a){if(!g.Lp(a))switch(g.Mp(a)){case 27:this.gb();g.Kp(a);break;case 37:1<this.w.length&&this.Ih();g.Kp(a);break;case 39:g.Kp(a)}};
g.h.focus=function(){aO(this).focus()};
g.h.X=function(){g.wN.prototype.X.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.r(g.gO,g.Tu);g.gO.prototype.onClick=function(){this.setValue(!this.checked);this.S("select",this.checked)};
g.gO.prototype.getValue=function(){return this.checked};
g.gO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.r(hO,g.gO);hO.prototype.Hb=function(){var a=g.XK(g.KK(this.K));return void 0!==a&&a.loaded};
hO.prototype.sa=function(){void 0!==g.XK(g.KK(this.K))&&3!==this.K.getPresentingPlayerType()?this.u||(this.w.Bh(this),this.u=!0):this.u&&(this.w.Td(this),this.u=!1);this.setValue(this.Hb())};
hO.prototype.A=function(a){this.Hb();a?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module")};
hO.prototype.X=function(){this.u&&this.w.Td(this);g.gO.prototype.X.call(this)};g.r(g.iO,g.Tu);g.h=g.iO.prototype;g.h.open=function(){g.dO(this.u,this.B)};
g.h.Db=function(a){jO(this);this.options[a].element.setAttribute("aria-checked","true");this.qb(this.Ze(a));this.A=a};
g.h.Wq=function(a,b,c){var d=this;b=new g.Tu({D:"div",Y:["ytp-menuitem"],O:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},J:[{D:"div",Y:["ytp-menuitem-label"],W:"{{label}}"}]},b,this.Ze(a,!0));b.ka("click",function(){d.fd(a)});
return b};
g.h.enable=function(a){this.F?a||(this.F=!1,this.fk(!1)):a&&(this.F=!0,this.fk(!0))};
g.h.fk=function(a){a?this.u.Bh(this):this.u.Td(this)};
g.h.fd=function(a){this.S("select",a)};
g.h.Ze=function(a){return a.toString()};
g.h.TH=function(a){g.Lp(a)||39!==g.Mp(a)||(this.open(),g.Kp(a))};
g.h.X=function(){this.F&&this.u.Td(this);g.Tu.prototype.X.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.r(lO,g.iO);lO.prototype.sa=function(){var a=this.K.getAvailableAudioTracks();1<a.length?(g.kO(this,(0,g.Cc)(a,this.C)),this.tracks=g.vb(a,this.C,this),this.w.qb(a.length?" ("+a.length+")":""),this.S("size-change"),this.Db(this.C(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)};
lO.prototype.fd=function(a){g.iO.prototype.fd.call(this,a);this.K.setAudioTrack(this.tracks[a]);this.u.Ih()};
lO.prototype.C=function(a){return a.toString()};g.r(mO,g.gO);mO.prototype.A=function(){var a=this.K.getPresentingPlayerType();if(2!==a&&3!==a&&g.jL(this.K))this.w||(this.B.Bh(this),this.w=!0,this.u.push(this.L(this.K,"videodatachange",this.A)),this.u.push(this.L(this.K,"videoplayerreset",this.A)),this.u.push(this.L(this.K,"onPlaylistUpdate",this.A)),this.u.push(this.L(this.K,"autonavchange",this.C)),a=this.K.getVideoData(),this.C(a.autonavState));else if(this.w){this.B.Td(this);this.w=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.bb(b.value)}};
mO.prototype.C=function(a){this.setValue(1!==a)};
mO.prototype.F=function(a){var b=this.K;a=a?2:1;b.app.u.na("onAutonavChangeRequest",1!=a);a&&CT(b.app,a)};
mO.prototype.X=function(){this.w&&this.B.Td(this);g.gO.prototype.X.call(this)};g.r(nO,g.iO);g.h=nO.prototype;g.h.dm=function(){var a=this.K.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=g.UK(this.K),a=this.K.getAvailableQualityLevels(),g.gL(this.K)&&g.hL(this.K)&&a.unshift("missing-qualities"),Kka(this.K)&&a.unshift("inline-survey"),g.kO(this,a),a.length)){this.lz();this.enable(!0);return}this.enable(!1)};
g.h.lz=function(){var a=this.K.getPreferredQuality();this.options[a]&&(this.w=this.K.getPlaybackQuality(),this.Db(a),"auto"===a&&this.qb(this.Ze(a)))};
g.h.fd=function(a){"missing-qualities"!==a&&(g.iO.prototype.fd.call(this,a),this.K.setPlaybackQuality(a),this.u.gb(),this.dm())};
g.h.Wq=function(a,b,c){var d=this;if("inline-survey"!==a)return g.iO.prototype.Wq.call(this,a,b,c);a=[{D:"span",W:"La qualit\u00e9 est-elle bonne\u00a0?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Ym:c.Ym},f=e.next())c.Ym=f.value,f=new g.R({D:"span",H:"ytp-menuitem-inline-survey-response",J:[c.Ym?g.LM():IM()],O:{tabindex:"0",role:"button"}}),f.ka("click",function(k){return function(){var l=g.W(d.K.app);l&&(l.Ra("iqsr",""+ +k.Ym),l.getVideoData().ay=!0);d.u.gb();d.dm()}}(c)),a.push(f);
return new g.Tu({D:"div",H:"ytp-menuitem",O:{"aria-disabled":"true"},J:[{D:"div",Y:["ytp-menuitem-label"],J:a}]},b)};
g.h.Ze=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{D:"a",O:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.N().C},W:"Options manquantes\u00a0?"};if("inline-survey"===a)return"";var c=[oO(this,a)],d=this.K.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(oO(this,this.w,["ytp-menu-label-secondary"])));return{D:"div",J:c}};g.r(pO,g.R);g.h=pO.prototype;g.h.nJ=function(a){if(!g.Lp(a)){switch(g.Mp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.cj(this.u+b);g.Kp(a)}};
g.h.lJ=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.G:this.G;this.cj(b);g.Kp(a)};
g.h.mJ=function(a){a=(a-g.Eh(this.w).x)/this.M*this.C+this.minimumValue;this.cj(a)};
g.h.cj=function(a,b){b=void 0===b?"":b;var c=g.Md(a,this.minimumValue,this.maximumValue);""==b&&(b=c.toString());this.la("valuenow",c);this.la("valuetext",b);this.U.style.left=(c-this.minimumValue)/this.C*(this.M-this.R)+"px";this.u=c};
g.h.focus=function(){this.V.focus()};g.r(rO,pO);rO.prototype.Z=function(){this.B.setPlaybackRate(this.u,!0)};
rO.prototype.cj=function(a){pO.prototype.cj.call(this,a,sO(this,a).toString());this.A&&(qO(this),this.ba())};
rO.prototype.aa=function(){var a=this.B.getPlaybackRate();sO(this,this.u)!=a&&(this.cj(a),qO(this))};g.r(tO,g.Ru);tO.prototype.focus=function(){this.u.focus()};g.r(uO,VN);g.r(vO,g.iO);g.h=vO.prototype;g.h.Ze=function(a){return"1"===a?"Normale":a.toLocaleString()};
g.h.sa=function(){var a=this.K.getPresentingPlayerType();this.enable(2!==a&&3!==a);zO(this)};
g.h.fk=function(a){g.iO.prototype.fk.call(this,a);a?(this.I=this.L(this.K,"onPlaybackRateChange",this.UH),zO(this),xO(this,this.K.getPlaybackRate())):(this.bb(this.I),this.I=null)};
g.h.UH=function(a){var b=this.K.getPlaybackRate();this.G.includes(b)||yO(this,b);xO(this,a)};
g.h.fd=function(a){g.iO.prototype.fd.call(this,a);a===this.w?this.K.setPlaybackRate(this.C,!0):this.K.setPlaybackRate(Number(a),!0);this.u.Ih()};var bsa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(bsa).reduce(function(a,b){a[bsa[b]]=b;return a},{});
var csa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(csa).reduce(function(a,b){a[csa[b]]=b;return a},{});
var dsa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(dsa).reduce(function(a,b){a[dsa[b]]=b;return a},{});var x2,esa;x2=[{option:"#fff",text:"Blanc"},{option:"#ff0",text:"Jaune"},{option:"#0f0",text:"Vert"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Bleu"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rouge"},{option:"#080808",text:"Noir"}];esa=[{option:0,text:AO(0)},{option:.25,text:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}];
g.DO=[{option:"fontFamily",text:"Famille de polices",options:[{option:1,text:"Serif monospace"},{option:2,text:"Serif proportionnelle"},{option:3,text:"Sans Serif monospace"},{option:4,text:"Sans Serif proportionnelle"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Petites majuscules"}]},{option:"color",text:"Couleur de la police",options:x2},{option:"fontSizeIncrement",text:"Taille de police",options:[{option:-2,text:AO(.5)},{option:-1,text:AO(.75)},{option:0,text:AO(1)},{option:1,
text:AO(1.5)},{option:2,text:AO(2)},{option:3,text:AO(3)},{option:4,text:AO(4)}]},{option:"background",text:"Couleur de l'arri\u00e8re-plan",options:x2},{option:"backgroundOpacity",text:"Opacit\u00e9 de l'arri\u00e8re-plan",options:esa},{option:"windowColor",text:"Couleur de la fen\u00eatre",options:x2},{option:"windowOpacity",text:"Opacit\u00e9 de la fen\u00eatre",options:esa},{option:"charEdgeStyle",text:"Style de bordure des caract\u00e8res",options:[{option:0,text:"Aucun"},{option:4,text:"Ombre projet\u00e9e"},
{option:1,text:"Sur\u00e9lev\u00e9"},{option:2,text:"Surbaiss\u00e9"},{option:3,text:"Soulign\u00e9"}]},{option:"textOpacity",text:"Opacit\u00e9 de la police",options:[{option:.25,text:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}]}];g.r(CO,g.iO);g.h=CO.prototype;g.h.Db=function(a){g.iO.prototype.Db.call(this,a)};
g.h.mz=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.settings[a]};
g.h.Ze=function(a){return this.getOption(a).text||""};
g.h.fd=function(a){g.iO.prototype.fd.call(this,a);this.S("settingChange",this.setting,this.settings[a].option)};g.r(EO,g.WN);EO.prototype.A=function(a,b){this.S("settingChange",a,b)};g.r(GO,g.iO);GO.prototype.w=function(a){return a.languageCode};
GO.prototype.Ze=function(a){return this.languages[a].languageName||""};
GO.prototype.fd=function(a){this.S("select",a);eO(this.u)};g.r(IO,g.iO);g.h=IO.prototype;g.h.ot=function(a){return g.Mb(a)?"__off__":a.displayName};
g.h.Ze=function(a){return"__off__"===a?"D\u00e9sactiv\u00e9s":"__translate__"===a?"Traduire automatiquement":"__contribute__"===a?"Ajouter des sous-titres":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.fd=function(a){"__translate__"===a?this.w.open():"__contribute__"===a?(this.K.pauseVideo(),this.K.isFullscreen()&&this.K.toggleFullscreen(),a=g.CH(this.K.N(),this.K.getVideoData()),g.GN(a)):(this.K.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.iO.prototype.fd.call(this,a),this.u.Ih())};
g.h.sa=function(){var a=this.K.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.K.getVideoData();b=b&&b.yn;var c={};if(a||b){if(a){var d=this.K.getOption("captions","track");c=this.K.getOption("captions","tracklist",{includeAsr:!0});var e=this.K.getOption("captions","translationLanguages");this.tracks=g.vb(c,this.ot,this);var f=(0,g.Cc)(c,this.ot);if(e.length&&!g.Mb(d)){var k=d.translationLanguage;if(k&&k.languageName){var l=k.languageName;k=e.findIndex(function(m){return m.languageName===
l});
raa(e,k)}$ka(this.w,e);f.push("__translate__")}e=this.ot(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.kO(this,f);this.Db(e);d&&d.translationLanguage?this.w.Db(this.w.w(d.translationLanguage)):jO(this.w);a&&FO(this.C,this.K.getSubtitlesUserSettings());this.I.qb(c&&c.length?" ("+c.length+")":"");this.S("size-change");this.enable(!0)}else this.enable(!1)};
g.h.WH=function(a){var b=this.K.getOption("captions","track");b=g.Pb(b);b.translationLanguage=this.w.languages[a];this.K.setOption("captions","track",b)};
g.h.VH=function(a,b){if("reset"===a)this.K.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.K.updateSubtitlesUserSettings(c)}HO(this,!0);this.G.start();FO(this.C,this.K.getSubtitlesUserSettings())};
g.h.dN=function(a){a||this.G.Pe()};
g.h.X=function(){this.G.Pe();g.iO.prototype.X.call(this)};g.r(JO,g.$N);g.h=JO.prototype;g.h.Bh=function(a){KO(this);g.XN(this.A,a);UN(this.V,this.A.w.length)};
g.h.Td=function(a){this.Ha()&&1>=this.A.w.length&&this.hide();g.YN(this.A,a);UN(this.V,this.A.w.length)};
g.h.Qb=function(a){KO(this);0<this.A.w.length&&g.$N.prototype.Qb.call(this,a)};
g.h.show=function(){g.$N.prototype.show.call(this);g.J(this.B.getRootNode(),"ytp-settings-shown")};
g.h.hide=function(){g.$N.prototype.hide.call(this);g.Dn(this.B.getRootNode(),"ytp-settings-shown")};g.r(LO,g.A);LO.prototype.o=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Nn(fsa,a));1>a&&this.delay.start()};
var fsa=new g.Mn(0,0,.4,0,.2,1,1,1),bla=/[0-9.-]+|[^0-9.-]+/g;g.r(RO,g.R);RO.prototype.F=function(){var a=this.u.app;a.u.na("SIZE_CLICKED",!a.Ic)};
RO.prototype.w=function(){g.Qu(this,this.u.app.pe&&!this.u.isFullscreen()&&3!=this.u.getPresentingPlayerType());if(this.Ha()){var a=this.u.isWidescreen();if(this.A!=a){var b=a?g.X?{D:"div",Y:["ytp-icon","ytp-icon-default-view"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-theater-mode"]}:{D:"svg",O:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.u.N().F||null==this.A?this.la("icon",b):QO(this.C,this.element,b);this.A=a;b=g.MN(this.u,"Affichage par d\u00e9faut","t");var c=g.MN(this.u,"Mode cin\u00e9ma","t");this.la("title",a?b:c);SN(this.B)}}};g.r(SO,g.R);SO.prototype.onClick=function(){var a=g.W(this.K.app);a&&a.o&&a.o.Ys()};
SO.prototype.sa=function(){var a=g.W(this.K.app);g.Qu(this,!!a&&a.Ic);this.la("icon",this.K.Mi()?g.X?{D:"div",Y:["ytp-icon","ytp-icon-airplay-on"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
g.X?{D:"div",Y:["ytp-icon","ytp-icon-airplay-off"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.r(TO,g.R);g.r(g.VO,g.R);g.VO.prototype.F=function(a){g.V(a.state,32)?WO(this,this.api.ue()):this.Ha()&&(g.V(a.state,16)||g.V(a.state,1))||this.u.hide()};
g.VO.prototype.G=function(){var a=g.PK(this.api);(g.V(a,32)||g.V(a,16))&&XO(this)};
g.VO.prototype.B=function(){this.A=NaN;XO(this)};
g.VO.prototype.hide=function(){this.w&&WO(this,null);g.R.prototype.hide.call(this)};g.r(YO,g.R);YO.prototype.onClick=function(){g.nL(this.u,this.element);this.u.na("onFullerscreenEduClicked")};
YO.prototype.sa=function(){this.u.isFullscreen()?this.w?this.A.hide():this.A.show():this.hide();g.oL(this.u,this.element,this.u.isFullscreen()&&!this.w)};g.r(g.ZO,g.R);g.h=g.ZO.prototype;g.h.onClick=function(){if(this.K.N().da)try{this.K.toggleFullscreen()}catch(a){"fullscreen error"===a.message?g.Uq(a):g.Tq(a),this.Zt()}else this.message.hf(this.element,!0)};
g.h.Zt=function(){this.disable();this.message.Qb(this.element,!0)};
g.h.OH=function(){Dr()===this.K.getRootNode()?this.A.start():(this.A.stop(),this.message&&this.message.hide())};
g.h.fE=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.Zt()}};
g.h.disable=function(){if(!this.message){var a=(null!=yp(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Le mode plein \u00e9cran n'est pas disponible. $BEGIN_LINKEn savoir plus$END_LINK":"Votre navigateur n'est pas compatible avec le mode plein \u00e9cran. $BEGIN_LINKEn savoir plus$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.wN(this.K,{D:"div",Y:["ytp-popup","ytp-generic-popup"],O:{role:"alert",tabindex:"0"},J:[a[0],{D:"a",
O:{href:"https://support.google.com/youtube/answer/6276924",target:this.K.N().C},W:a[2]},a[4]]},100,!0);this.message.hide();g.B(this,this.message);this.message.subscribe("show",(0,g.x)(this.u.nl,this.u,this.message));g.iL(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.w)();this.w=null}};
g.h.sa=function(){g.Qu(this,HN(this.K))};
g.h.jz=function(a){if(a){var b=g.X?{D:"div",Y:["ytp-icon","ytp-icon-full-screen-close"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"g",H:"ytp-fullscreen-button-corner-2",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-3",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-0",J:[{D:"path",Na:!0,H:"ytp-svg-fill",
O:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-1",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.MN(this.K,"Quitter le mode plein \u00e9cran","f");document.activeElement===this.element&&this.K.getRootNode().focus()}else b=g.X?{D:"div",Y:["ytp-icon","ytp-icon-full-screen"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"g",H:"ytp-fullscreen-button-corner-0",J:[{D:"path",Na:!0,
H:"ytp-svg-fill",O:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-1",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-2",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",H:"ytp-fullscreen-button-corner-3",J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.MN(this.K,"Plein \u00e9cran",
"f");this.la("icon",b);this.la("title",this.message?null:a);SN(this.u.fb())};
g.h.X=function(){this.message||((0,this.w)(),this.w=null);g.R.prototype.X.call(this)};g.r($O,g.R);$O.prototype.onClick=function(){this.K.na("onCollapseMiniplayer");g.nL(this.K,this.element)};
$O.prototype.sa=function(){this.visible=!this.K.isFullscreen();g.Qu(this,this.visible);g.oL(this.K,this.element,this.visible&&this.P)};
$O.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.K,this.element,this.visible&&a)};g.r(aP,g.R);g.h=aP.prototype;g.h.kz=function(a){this.visible=300<=a.width;g.Qu(this,this.visible);g.oL(this.K,this.element,this.visible&&this.P)};
g.h.PL=function(){this.K.N().R?this.K.isMuted()?this.K.unMute():this.K.mute():this.message.hf(this.element,!0);g.nL(this.K,this.element)};
g.h.PH=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.K.N();if(e.F)d=0===d?$M():0<d&&.5>d?ZM():YM(),d!==this.w&&(this.la("icon",d),this.w=d);else{var f=0===d?1:50<a?1:0;if(this.F!==f){var k=this.R;isNaN(k)?bP(this,f):OO(this.V,function(m){bP(c,k+(c.F-k)*m)},250);
this.F=f}d=0===d?1:0;if(this.C!==d){var l=this.I;isNaN(l)?cP(this,d):OO(this.M,function(m){cP(c,l+(c.C-l)*m)},250);
this.C=d}}e.R&&(e=g.MN(this.K,"D\u00e9sactiver le son","m"),d=g.MN(this.K,"Activer le son","m"),e=b?d:e,this.la("title",e),this.la("label",e),SN(this.tooltip))};
g.h.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.K,this.element,this.visible&&a)};
var dla=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],ela=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.r(dP,g.R);dP.prototype.onClick=function(){this.K.togglePictureInPicture()};g.r(g.fP,g.R);g.fP.prototype.A=function(a){eP(this,a.state)};
g.fP.prototype.w=function(){g.K(this.element,"ytp-play-button-playlist",g.SK(this.K))};
g.fP.prototype.B=function(){g.OC(g.PK(this.K))?this.K.pauseVideo():this.K.playVideo()};hP.prototype.getLength=function(){return this.o-this.u};g.r(kP,g.R);kP.prototype.ua=function(a){return"PLAY_PROGRESS"===a?this.B:"LOAD_PROGRESS"===a?this.A:this.w};nP.prototype.update=function(a,b,c,d){this.width=b;this.w=c;this.B=d;this.o=b-c-d;this.position=g.Md(a,c,c+this.o);this.A=this.position-c;this.u=this.A/this.o};g.r(g.pP,g.Ru);g.h=g.pP.prototype;g.h.Wu=function(){this.R=this.u.length-1;this.ga=0;rP(this,!0)&&rP(this,!1);for(var a=0,b=0;b<this.u.length;b++)if(0===this.u[b].width){if(b===this.u.length-1)for(var c=this.u.length-1;0<=c;c--)if(0<this.u[c].width){mP(this.u[c],0);lP(this.u[c],Math.floor(this.u[c].width)+"px");break}lP(this.u[b],"0")}else b===this.u.length-1?lP(this.u[b],Math.floor(this.u[b].width+a)+"px"):(a=this.u[b].width+a,c=Math.round(a),a-=c,lP(this.u[b],c+"px"));sP(this)};
g.h.SH=function(a){if(!g.Lp(a)){var b=!1;switch(g.Mp(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Kp(a)}};
g.h.Sx=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.yF=function(){this.Sx("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Ta=c&&a.allowLiveDvr;KP(this,this.api.Qc());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,BP(this),uP(this,this.F,this.da)):this.Dp(),g.lR(this.tooltip));if(this.api.N().fa("web_wn_macro_markers")&&a){var d=a.Og;if(d&&0<qP(d).length){c=0;d=g.q(qP(d));for(var e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){var f=e.chapterRenderer;e={startTime:NaN,title:null};var k=f.title;k&&k.simpleText&&
(e.title=k.simpleText);f=f.timeRangeStartMillis;null!=f&&(e.startTime=f);0===c&&0!==e.startTime&&(this.u[c].startTime=0,this.u[c].title="",c++);this.u.length<=c&&(f=new kP,this.u.push(f),g.B(this,f),f.ca(this.Ea,this.Ea.children.length));this.u[c].startTime=e.startTime;this.u[c].title=e.title?e.title:""}c++}for(;c<this.u.length;)this.u.pop().dispose();this.Wu()}else oP(this)}sP(this)};
g.h.RH=function(a){this.G&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.G.cancel()};
g.h.JC=function(a){(this.I=a)?(this.la("clipstarticon",NM()),this.la("clipendicon",NM()),this.la("clipstarttitle",null),this.la("clipendtitle",null)):(this.la("clipstarticon",FM()),this.la("clipendicon",EM()),this.la("clipstarttitle","Regarder l'int\u00e9gralit\u00e9 de la vid\u00e9o"),this.la("clipendtitle","Regarder l'int\u00e9gralit\u00e9 de la vid\u00e9o"));BP(this);uP(this,this.F,this.da)};
g.h.rM=function(a,b,c){var d=g.Eh(this.element),e=zP(this).o,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=jP(this.w,Number(c.getAttribute("data-position")),0)*e+g.Eh(this.Rb).x);this.za.x=a-d.x;this.za.y=b-d.y;a=zP(this);d=iP(this.w,a.u);b=f||g.hM(this.Ta?d-this.w.o:d);c=a.position+this.Xb;d-=this.api.Bb();if(this.api.N().fa("web_wn_macro_markers")){if(1<this.u.length){e=FP(this,this.za.x,!0);
k=ve(this.wa)&&0<ve(this.wa).length;for(var m=0;m<this.u.length;)g.K(this.u[m].u,"ytp-exp-chapter-hover-effect",m===e&&!k),m++}k=this.tooltip.B;l=(isNaN(l)?0:l)-45*k;e=CP(this,1E3*d);(e=this.u[e].title)||(l+=16*k);.6===this.tooltip.B&&(l=e?110:126);k=CP(this,1E3*d);this.aa=xP(this,d,k)?k:xP(this,d,k+1)?k+1:-1;g.K(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.aa&&1<this.u.length);k=320*this.tooltip.B;m=e.length*(this.A?8.55:5.7);k=m<=k?m:k;m=k<160*this.tooltip.B;var n=3;!m&&k/2>a.position&&
(n=1);!m&&k/2>this.B-a.position&&(n=2);kR(this.tooltip,c,d,b,!!f,l,e,n)}else kR(this.tooltip,c,d,b,!!f,l);g.K(this.api.getRootNode(),"ytp-progress-bar-hover",!g.V(g.PK(this.api),64));wP(this)};
g.h.qM=function(){g.lR(this.tooltip);g.Dn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.h.pM=function(a,b){this.C&&(this.C.dispose(),this.C=null);this.Yb=b;this.api.N().fa("web_wn_macro_markers")&&1<this.u.length&&0<this.Ma&&-1!==this.aa?this.api.seekTo(this.u[this.aa].startTime/1E3,!1):this.api.seekTo(iP(this.w,zP(this).u),!1);g.J(this.element,"ytp-drag");(this.Wa=g.OC(g.PK(this.api)))&&this.api.pauseVideo()};
g.h.sM=function(){var a=this;this.Ca=0;g.Dn(this.element,"ytp-pull-ui");g.Dn(this.element,"ytp-pulling");this.C&&(this.C.dispose(),this.C=null);0<this.M&&(this.C=new g.rn(function(){var b=(0,g.N)(),c=a.M,d=zP(a).position;b=1-Math.pow(1-((0,g.N)()-b)/200,3);d+=b*(a.F*a.B-d);if(0>b||1<b)b=1;yP(a,(1-b)*c,d,a.F);1>b&&a.C.start()}),this.C.start());
if(g.V(g.PK(this.api),32)||3===this.api.getPresentingPlayerType())this.api.N().fa("web_wn_macro_markers")&&1<this.u.length&&0<this.Ma&&-1!==this.aa?this.api.seekTo(this.u[this.aa].startTime/1E3):this.api.seekTo(iP(this.w,zP(this).u)),g.Dn(this.element,"ytp-drag"),this.Wa&&!g.V(g.PK(this.api),2)&&this.api.playVideo()};
g.h.tM=function(a,b){var c=this,d=!1,e=!1,f=zP(this);3600<=this.w.getLength()&&(yP(this,this.Yb-b-10,f.position,f.u),e=!0,d=this.M>.1*(this.A?60:40),f=zP(this));g.K(this.element,"ytp-pull-ui",e);d&&g.J(this.element,"ytp-pulling");d=0;f.w&&0>=f.position?d=-1:f.B&&f.position>=f.width&&(d=1);this.Ca!==d&&(this.Ca=d,this.C&&(this.C.dispose(),this.C=null),d&&(this.C=new g.rn(function(){var k=(0,g.N)(),l=c.B*(c.Z-1);c.U=g.Md(c.U+c.Ca*((0,g.N)()-k)*.3,0,l);vP(c);c.api.seekTo(iP(c.w,zP(c).u),!1);0<c.U&&c.U<
l&&c.C.start()}),this.C.start()));
this.api.seekTo(iP(this.w,f.u),!1)};
g.h.rA=function(){this.I||(this.la("clipstarticon",DM()),this.la("clipendicon",DM()),g.J(this.element,"ytp-clip-hover"))};
g.h.qA=function(){this.I||(this.la("clipstarticon",FM()),this.la("clipendicon",EM()),g.Dn(this.element,"ytp-clip-hover"))};
g.h.Dp=function(){this.clipStart=0;this.clipEnd=Infinity;BP(this);uP(this,this.F,this.da)};
g.h.KC=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.V[c]){var d=g.oe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.V[c]=b;this.Aa[c]=d;An(d,b.style);AP(this,c);g.P(this.api.N().experiments,"disable_ad_markers_on_content_progress_bar")||this.u[0].C.appendChild(d)}}else JP(this,b)};
g.h.gO=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())JP(this,b.value)};
g.h.X=function(){KP(this,!1);g.Ru.prototype.X.call(this)};g.r(MP,g.R);MP.prototype.isActive=function(){return!!this.K.getOption("remote","casting")};
MP.prototype.sa=function(){var a=!1;this.K.getOptions().includes("remote")&&(a=1<this.K.getOption("remote","receivers").length);g.Qu(this,a&&400<=g.QK(this.K).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.la("icon",g.X?{D:"div",Y:["ytp-icon","ytp-icon-cast-desktop-off"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,O:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.la("icon",g.zM())}g.K(this.element,"ytp-remote-button-active",this.isActive())}};
MP.prototype.A=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var a=this.w,b=this.element;if(yN(a))a.gb();else{KO(a);a:{var c=g.q(a.A.w);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0==d.priority){c=d;break a}c=null}c&&(c.open(),a.Qb(b));a.Qb(b)}}};g.r(NP,g.R);NP.prototype.onClick=function(){this.K.toggleSubtitles()};
NP.prototype.isEnabled=function(){return!!this.K.getOption("captions","track").displayName};
NP.prototype.sa=function(){var a=null!=g.zL(g.KK(this.K));g.Qu(this,a&&300<=g.QK(this.K).getPlayerSize().width);a&&this.la("pressed",this.isEnabled())};g.r(g.OP,g.R);g.h=g.OP.prototype;
g.h.Fh=function(){var a=g.QK(this.api).getPlayerSize().width,b=a>=this.F&&(!this.w||!g.V(g.PK(this.api),64));g.Qu(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.hM(g.P(this.api.N().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.A!==c&&(this.la("currenttime",c),this.A=c);b=g.hM(g.P(this.api.N().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.B!==b&&(this.la("duration",b),this.B=b)}this.w&&(a=a.isAtLiveHead,this.C!==a&&(this.C=a,this.Fh(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.qb(this.isPremiere?"Premi\u00e8re":"En direct"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Acc\u00e9der directement \u00e0 la diffusion en direct",this.u=g.BN(this.tooltip,this.liveBadge.element))))};
g.h.XH=function(a,b){this.updateVideoData(b);this.Fh()};
g.h.updateVideoData=function(a){this.w=a.va&&!a.wg;this.isPremiere=a.isPremiere;g.K(this.element,"ytp-live",this.w)};
g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.h.X=function(){this.u&&this.u();g.R.prototype.X.call(this)};g.r(RP,g.R);g.h=RP.prototype;g.h.YH=function(){var a=this.w.kc();this.C!==a&&(this.C=a,QP(this,this.api.getVolume(),this.api.isMuted()))};
g.h.nz=function(a){g.Qu(this,350<=a.width)};
g.h.bI=function(a){if(!g.Lp(a)){var b=g.Mp(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Md(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Kp(a))}};
g.h.ZH=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Md(b/10,-10,10));g.Kp(a)};
g.h.hN=function(){PP(this,this.u,!0,this.B,this.w.Oi());this.U=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.aI=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Eh(this.R).x;this.api.setVolume(100*g.Md((a-c/2)/(b-c),0,1))};
g.h.gN=function(){PP(this,this.u,!1,this.B,this.w.Oi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.U))};
g.h.cI=function(a){QP(this,a.volume,a.muted)};
g.h.Bw=function(){PP(this,this.u,this.A,this.B,this.w.Oi())};
g.h.dC=function(a){g.K(this.element,"ytp-volume-control-hover",a);PP(this,a,this.A,this.B,this.w.Oi())};
g.h.X=function(){g.R.prototype.X.call(this);g.Dn(this.G,"ytp-volume-slider-active")};g.r(g.SP,g.R);g.SP.prototype.u=function(){this.visible=!!this.api.getVideoData().videoId;g.Qu(this,this.visible);g.oL(this.api,this.element,this.visible&&this.P);if(this.visible){var a=this.api.getVideoUrl(!0,!1,!1,!0);this.la("url",a)}};
g.SP.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.iM(a),!1,!0,!0);g.Ly(this.api.N())&&(b=g.yd(b,g.DH({},"emb_logo")));g.JN(b,this.api,a);g.nL(this.api,this.element)};
g.SP.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.api,this.element,this.visible&&a)};g.r(TP,g.Gr);g.h=TP.prototype;g.h.Ot=function(){g.tP(this.B);this.da.Fh();if(g.P(this.u.N().experiments,"web_wn_macro_markers")){var a=this.V,b="",c=a.w.u;1<c.length&&(b=1E3*a.K.getProgressState().current,b=CP(a.w,b),b=c[b].title,null==b&&(b=""));b!==a.u&&(a.update({title:b}),a.u=b);b?a.show():a.hide()}};
g.h.Qz=function(){this.Qt();this.ba.u?this.Ot():g.lR(this.B.tooltip)};
g.h.qJ=function(){this.Ot();this.I.start()};
g.h.Qt=function(){var a=!this.u.N().o&&300>g.LP(this.B)&&g.PK(this.u).eb()&&!!window.requestAnimationFrame,b=!a;this.ba.u||(a=b=!1);b?this.P||(this.P=this.L(this.u,"progresssync",this.Ot)):this.P&&(this.bb(this.P),this.P=null);a?this.I.isActive()||this.I.start():this.I.stop()};
g.h.YO=function(a){var b=this.A.fb();a=!a;if(null!=b.w)if(a)switch(b.w){case 3:case 2:oR(b);b.M.show();break;default:b.M.show()}else b.M.hide();b.V=a};
g.h.Pt=function(){var a=this.A.kc(),b=g.QK(this.u).getPlayerSize(),c=VP(this),d=Math.max(b.width-2*c,100);if(this.oa!=b.width||this.ma!=a){this.oa=b.width;this.ma=a;var e=WP(this);this.w.element.style.width=e+"px";this.w.element.style.left=c+"px";g.IP(this.B,c,e,a);this.A.fb().ga=e}c=this.o;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.kc()?72:50))));c.R=Math.min(570*(a?1.5:1),d);c.M=e;c.Ek();this.Qt();!this.u.N().fa("html5_player_bottom_linear_gradient")&&g.P(this.u.N().experiments,"html5_player_dynamic_bottom_gradient")&&
g.uN(this.wa,b.height)};
g.h.rJ=function(){var a=this.u.getVideoData();this.R.style.background=a.lc?a.hg:"";g.Qu(this.U,a.Ju)};
g.h.ua=function(){return this.w.element};g.r(g.XP,g.R);g.XP.prototype.u=function(){};
g.XP.prototype.A=function(a){var b=this;hla(this);var c=a.Ar,d=this.api.N();"GENERIC_WITHOUT_LINK"!==c||d.B?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.qb(ZP(this,"TOO_MANY_REQUESTS_WITH_LINK",d.kh(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.B?this.qb(g.YP(a.errorMessage)):this.qb(ZP(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.yd(c,
{hl:a})),this.qb(ZP(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.ma&&!d.u&&gla(this,function(e){if(g.IN(e,b.api,!hz(b.api.N()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var fla=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.r(aQ,g.R);aQ.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.R.prototype.hide.call(this)};
aQ.prototype.w=function(a){$P(this,a.state)};
aQ.prototype.A=function(){$P(this,g.PK(this.api))};
aQ.prototype.B=function(){this.message.style.display="block"};g.r(cQ,g.wN);cQ.prototype.C=function(a){if(this.api.N().F||this.A)a?(bQ(this),this.Qb()):(this.seen&&dQ(this),this.gb())};
cQ.prototype.B=function(a){this.api.isMutedByMutedAutoplay()&&g.bH(a,2)&&this.gb()};
cQ.prototype.onClick=function(){this.api.unMute();dQ(this)};g.r(g.eQ,g.Gr);g.h=g.eQ.prototype;g.h.init=function(){var a=g.PK(this.api);this.xk(a);this.Mg();this.Ti()};
g.h.Oz=function(a,b){if(this.pc!=b.videoId){this.pc=b.videoId;var c=this.u;c.ba=b&&0<b.bi.length?5E3:3E3;c.Tb(512,!0);this.Mg();g.P(this.api.N().experiments,"web_player_nitrate_promo_tooltip")&&this.jC()}};
g.h.kM=function(){this.Oz("newdata",this.api.getVideoData())};
g.h.Sh=function(){var a=g.YK(this.api)&&g.ZK(this.api);bL(this.api);return this.Xb||a||bL(this.api)||this.ac};
g.h.oe=function(){var a=!this.Sh();g.K(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.XI=function(a){if(!g.xe(this.api.getRootNode(),a))return!1;for(;a&&!Be(a);)a=a==this.api.getRootNode()?null:g.we(a);return!!a};
g.h.mm=function(a){var b=this.api.getRootNode();g.K(b,"ytp-autohide",a);g.K(b,"ytp-autohide-active",!0);this.Uc.start(a?250:100);a&&(this.Kc=!1,g.Dn(b,"ytp-touch-mode"));b=this.api;a=!a;b.na("onVideoAreaChange");b.na(a?"onShowControls":"onHideControls")};
g.h.pK=function(){var a=this.api.getRootNode();g.K(a,"ytp-autohide-active",!1)};
g.h.UM=function(){this.Jc=!0};
g.h.sF=function(){this.Jc||jQ(this)};
g.h.VM=function(a){g.P(this.api.N().experiments,"player_doubletap_to_seek")&&(this.Jc=!1,this.Mc&&this.bb(this.Mc),0==this.wa&&iQ(this,a)?(this.no(),this.Ea.start(),this.Mc=this.L(g.QK(this.api),"touchmove",this.UM,void 0,!0)):this.Ea.stop());hQ(this)&&iQ(this,a)&&jQ(this);var b=yN(this.Ta);if(Hy&&kQ(this,a))b&&g.Kp(a);else if(this.u.u||fQ(this,Hp(a))||yN(this.Ta)||(g.PK(this.api).isCued(),g.Kp(a)),this.Kc=!0,g.J(this.api.getRootNode(),"ytp-touch-mode"),this.u.Tb(2,!0),g.P(this.api.N().experiments,
"player_doubletap_to_seek")&&(b=g.PK(this.api),this.api.Qc()&&(!g.V(b,2)||!MK(this.api)))){b=Date.now()-this.pd;this.wa+=1;if(350>=b){this.da=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.wa-1);0<d&&d<b?(this.It(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.It(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Kp(a)}this.pd=Date.now();
this.qd.start()}};
g.h.QM=function(a){kQ(this,a)||(hQ(this)||!iQ(this,a)||this.Ea.isActive()||(jQ(this),g.Kp(a)),this.da&&(this.da=!1))};
g.h.no=function(){};
g.h.Jt=function(){};
g.h.It=function(){};
g.h.jC=function(){};
g.h.Xp=function(){var a=g.PK(this.api);g.V(a,2)&&MK(this.api)||(g.OC(a)?this.api.pauseVideo():(this.api.app.Uc=!0,this.api.playVideo(),this.ba&&document.activeElement==this.ba.C&&this.api.getRootNode().focus()))};
g.h.RM=function(a){var b=this.api.getPresentingPlayerType();fQ(this,Hp(a))||(a=this.api.N(),g.P(a.experiments,"player_doubletap_to_seek")&&this.da?this.da=!1:(a.da||g.P(a.experiments,"player_fullscreen_disabled_killswitch"))&&3!=b&&this.api.toggleFullscreen())};
g.h.SM=function(a){lQ(this,.3,a.scale);g.Kp(a)};
g.h.TM=function(a){lQ(this,.1,a.scale)};
g.h.Ti=function(){var a=g.QK(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;g.Dt&&kN(this.u);g.K(b,"ytp-fullscreen",this.api.isFullscreen());g.K(b,"ytp-large-width-mode",c);g.K(b,"ytp-small-mode",this.Rd());g.K(b,"ytp-big-mode",this.kc());this.B&&this.B.u(a)};
g.h.ZI=function(a){this.xk(a.state);this.Mg()};
g.h.Mr=function(){var a=!!this.pc&&!g.LK(this.api),b=2==this.api.getPresentingPlayerType(),c=this.api.N();if(b){if(fra&&g.P(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=GL(g.KK(this.api));a&&(null===b.o?a=!1:(a=b.o,a=(b=a.o.getVideoData(2))?b.isListed&&!a.V:!1));return a}return a&&(c.Qg||this.api.isFullscreen()||c.qc)};
g.h.Mg=function(){var a=this.Mr();this.C!=a&&(this.C=a,g.K(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.xk=function(a){var b;(b=a.isCued())||(b=((b=g.W(this.api.app,void 0))?EJ(b):!0)&&3!=this.api.getPresentingPlayerType());b!=this.isCued&&(this.isCued=b,this.Tc&&this.bb(this.Tc),this.Tc=this.L(g.QK(this.api),"touchstart",this.VM,void 0,b));var c=a.eb()&&!g.V(a,32)||cL(this.api);this.u.Tb(128,!c);c=3==this.api.getPresentingPlayerType();this.u.Tb(256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[s2.ENDED];else d=[],g.V(a,8)?d.push(s2.PLAYING):g.V(a,4)&&d.push(s2.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(s2.BUFFERING),
g.V(a,32)&&d.push(s2.SEEKING),g.V(a,64)&&d.push(s2.UNSTARTED);g.sb(this.Wa,d)||(g.En(c,this.Wa),this.Wa=d,g.Cn(c,d));d=this.api.N();var e=g.V(a,2);g.K(c,"ytp-hide-controls",("3"==d.controlsType?!e:"1"!=d.controlsType)||b);g.K(c,"ytp-native-controls","3"==d.controlsType&&!b&&!e&&!this.ac);g.V(a,128)&&!g.Ly(d)?(this.B||(this.B=new g.XP(this.api),g.B(this,this.B),g.iL(this.api,this.B.element,4)),this.B.A(a.u),this.B.show()):this.B&&(this.B.dispose(),this.B=null)};
g.h.jg=function(){return g.YK(this.api)&&g.ZK(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.LK(this.api)?(g.NK(this.api,!0),!0):!1};
g.h.YI=function(a){this.ac=a;this.oe()};
g.h.kc=function(){return!1};
g.h.Rd=function(){return!this.kc()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.Oi=function(){return this.Kc};
g.h.fm=function(){return null};
g.h.xt=function(){var a=g.QK(this.api).getPlayerSize();return new g.ph(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.qk=function(){};
g.h.showControls=function(a){if(void 0!=a){var b=g.QK(this.api);Qy(b.app.N());b.C=!a;uM(b)}};
g.h.At=function(){};
g.h.Dx=function(){return null};var kla={seekableStart:0,seekableEnd:1,current:0};g.r(mQ,g.Ru);mQ.prototype.B=function(){var a=this.w.getProgressState();a=jP(new hP(a.seekableStart,a.seekableEnd),a.current,0);this.F.style.width=100*a+"%"};
mQ.prototype.C=function(){g.az(this.A.N())||(2==this.A.getPresentingPlayerType()?-1===this.u&&(this.show(),this.u=this.w.subscribe("b",this.B,this),this.B()):-1!==this.u&&(this.hide(),this.w.Eh(this.u),this.u=-1))};g.r(nQ,g.O);g.h=nQ.prototype;g.h.Rz=function(){return 1E3*this.o.getDuration(this.w)};
g.h.stop=function(){this.A&&this.u.bb(this.A)};
g.h.Sz=function(){var a=this.o.getProgressState(this.w);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.P(this.o.N().experiments,"halftime_ux_killswitch")?a.current:this.o.getCurrentTime(this.w,!1)};this.S("b")};
g.h.getProgressState=function(){return this.B};
g.h.tJ=function(a){g.bH(a,2)&&this.S("a")};g.r(g.oQ,g.R);g.oQ.prototype.show=function(){g.R.prototype.show.call(this);this.u.Ua()};
g.oQ.prototype.hide=function(){this.A.stop();g.R.prototype.hide.call(this)};g.r(uQ,g.R);uQ.prototype.Qb=function(){this.w.show();g.Qo("iv-button-shown")};
uQ.prototype.X=function(){this.u&&this.u();g.R.prototype.X.call(this)};
uQ.prototype.C=function(){g.Qo("iv-button-mouseover")};
uQ.prototype.onClicked=function(a){g.YK(this.K);var b=g.Bn(this.K.getRootNode(),"ytp-cards-teaser-shown");g.Qo("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.K.setCardsVisible(!g.ZK(this.K),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.r(vQ,g.R);g.h=vQ.prototype;g.h.HC=function(){g.YK(this.w)&&g.ZK(this.w)&&this.Ha()&&4!==this.F.state&&this.jm()};
g.h.MO=function(){this.jm();g.Qo("iv-teaser-clicked",!!this.u);this.w.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.aJ=function(){g.Qo("iv-teaser-mouseover");this.u&&this.u.stop()};
g.h.nN=function(a){this.u||!a||g.ZK(this.w)||this.A&&this.A.isActive()||(lla(this,a),g.Qo("iv-teaser-shown"))};
g.h.Kt=function(){if(g.Ly(this.w.N())&&this.Ha()){var a=this.C.element.offsetLeft,b=g.ce("ytp-cards-button-icon"),c=this.w.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.C.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.hE=function(){g.Ly(this.w.N())&&this.U.Rd()&&this.Ha()&&this.R.start()};
g.h.HA=function(){this.I.stop();this.u&&this.u.isActive()&&this.M.start()};
g.h.GA=function(){this.M.stop();this.u&&!this.u.isActive()&&this.I.start()};
g.h.NL=function(){this.u&&this.u.stop()};
g.h.KL=function(){this.jm()};
g.h.jm=function(){!this.u||this.B&&this.B.isActive()||(g.Qo("iv-teaser-hidden"),this.F.hide(),g.Dn(this.w.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.I(function(){for(var a=g.q(this.G),b=a.next();!b.done;b=a.next())this.bb(b.value);this.G=[];this.u&&(this.u.dispose(),this.u=null);tQ(this.C,!0)},330,this),this.B.start())};
g.h.X=function(){var a=this.w.getRootNode();a&&g.Dn(a,"ytp-cards-teaser-shown");g.Ie(this.A,this.B,this.u);g.R.prototype.X.call(this)};g.r(g.yQ,g.R);g.yQ.prototype.B=function(){g.J(this.element,"ytp-sb-subscribed")};
g.yQ.prototype.C=function(){g.Dn(this.element,"ytp-sb-subscribed")};g.Ga("yt.pubsub.publish",g.Qo,void 0);var y2={},BQ=(y2.BUTTON="ytp-button",y2.TITLE_NOTIFICATIONS="ytp-title-notifications",y2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",y2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",y2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",y2);g.r(CQ,g.R);
CQ.prototype.onClick=function(){g.nL(this.api,this.element);var a=!this.u;this.la("label",a?"Ne plus recevoir de notifications pour chaque vid\u00e9o mise en ligne":"Recevoir une notification pour chaque vid\u00e9o mise en ligne");this.la("pressed",a);DQ(this,a)};g.r(EQ,g.R);EQ.prototype.R=function(){IQ(this);this.w.classList.remove("ytp-title-expanded")};
EQ.prototype.I=function(){if(FQ(this)&&!GQ(this)){this.la("channelTitleFocusable","0");this.F&&this.F.stop();this.A&&(this.A.show(),g.oL(this.u,this.A.element,!0));var a=this.u.getVideoData();this.C&&a.zk&&a.subscribed&&(this.C.show(),g.oL(this.u,this.C.element,!0));this.w.classList.add("ytp-title-expanded");this.w.classList.add("ytp-title-show-expanded")}};
EQ.prototype.G=function(){this.la("channelTitleFocusable","-1");this.F&&this.F.start()};
EQ.prototype.M=function(){var a=this.u.getVideoData(),b=this.u.N(),c=!1;2===this.u.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.sf&&!!a.Id:g.Ly(b)&&(c=!!a.videoId&&!!a.sf&&!!a.Id);b=g.tz(this.u.N())+a.sf;g.Ly(this.u.N())&&(b=g.yd(b,g.DH({},"emb_ch_name_ex")));var d=a.sf,e=a.Id,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.tz(this.u.N())+d,this.B.style.backgroundImage="url("+e+")",this.la("channelLink",d),this.la("channelLogoLabel",g.gM("Photo de $CHANNEL_NAME",
{CHANNEL_NAME:f})),g.J(this.u.getRootNode(),"ytp-title-enable-channel-logo")):g.Dn(this.u.getRootNode(),"ytp-title-enable-channel-logo");g.oL(this.u,this.B,c&&this.P);this.A&&(this.A.u=a.Ng);this.la("expandedTitle",a.pl);this.la("channelTitleLink",b);this.la("expandedSubtitle",a.expandedSubtitle)};g.r(JQ,g.R);JQ.prototype.show=function(){g.R.prototype.show.call(this);this.u.Ua()};
JQ.prototype.hide=function(){this.A.stop();g.R.prototype.hide.call(this)};g.r(LQ,g.Tu);LQ.prototype.u=function(a){g.Lp(a)||39!==g.Mp(a)||(this.element.click(),g.Kp(a))};g.r(PQ,g.WN);g.h=PQ.prototype;g.h.KK=function(){LN(this.M.element)};
g.h.cL=function(){QQ(this,this.u.getDebugText(!0))&&pQ(this.Z,AM())};
g.h.dL=function(){QQ(this,this.u.getVideoEmbedCode())&&pQ(this.Z,HM());g.nL(this.u,this.A.element);KQ("EMBED",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.fL=function(){QQ(this,this.u.getVideoUrl(!0,!0))&&pQ(this.Z,MM());g.nL(this.u,this.C.element);KQ("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.eL=function(){QQ(this,this.u.getVideoUrl(!1,!0))&&pQ(this.Z,MM());g.nL(this.u,this.B.element);KQ("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.EA=function(a){this.F.setValue(a)};
g.h.vL=function(){var a=this.F.getValue();cT(this.u.app,a);this.U.gb();g.nL(this.u,this.F.element)};
g.h.GM=function(a){this.u.reportPlaybackIssue();if(g.IN(a,this.u,!hz(this.u.N()))){a=this.u;var b={as3:!1,html5:!0,player:!0};b=b||{};var c=a.getVideoStats().debug_error;c&&(b.player_error=c.errorCode,b.player_error_details=c.errorDetail);b.debug_text=a.getDebugText(!0);a.na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.U.gb()};
g.h.eN=function(){this.u.showVideoInfo();this.U.gb()};
g.h.eJ=function(a,b){OQ(this,b)};
g.h.Xa=function(a){g.WN.prototype.Xa.call(this,a);g.oL(this.u,this.A.element,a);g.oL(this.u,this.C.element,a);g.oL(this.u,this.B.element,a);g.oL(this.u,this.F.element,a)};g.r(g.RQ,g.Gr);g.RQ.prototype.L=function(a,b,c){return g.Gr.prototype.L.call(this,a,b,c)};g.r(g.TQ,g.$N);g.h=g.TQ.prototype;g.h.show=function(){this.A||(this.A=new PQ(this.K,this.aa,this,this.V),g.B(this,this.A),g.dO(this,this.A));this.A.EA(xK(this.K.app.C));g.$N.prototype.show.call(this);g.oL(this.K,this.element,!0);this.A.Xa(!0)};
g.h.hide=function(){SQ(this);g.$N.prototype.hide.call(this);g.oL(this.K,this.element,!1);this.A&&this.A.Xa(!1)};
g.h.JK=function(a){var b=Hp(a);if(!(this.Ha()||b&&(g.De(b,"a")||g.De(b,null,"ytp-no-contextmenu",void 0)))){g.Kp(a);UQ(this);b=this.K.getVideoData();g.K(this.element,"ytp-dni",b.lc);this.element.style.left="";this.element.style.top="";a=Jp(a);a.x++;a.y++;this.Qb();var c=document.body;b=new nh(0,Infinity,Infinity,0);var d=Zd(c);for(var e=d.o.body,f=d.o.documentElement,k=ge(d.o);c=Dh(c);)if(!(g.he&&0==c.clientWidth||g.je&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=yh(c,"overflow")){var l=g.Eh(c),
m=new g.Qd(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=k.scrollLeft;k=k.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,k);d=d.o;d=fe(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,k+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();
d&&(k=a,e=b,f=5,65==(f&65)&&(k.x<d.left||k.x>=d.right)&&(f&=-2),132==(f&132)&&(k.y<d.top||k.y>=d.bottom)&&(f&=-5),k.x<d.left&&f&1&&(k.x=d.left),f&16&&(c=k.x,k.x<d.left&&(k.x=d.left),k.x+e.width>d.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.y<d.top&&f&4&&(k.y=d.top),f&32&&(c=k.y,k.y<d.top&&(k.y=d.top),k.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,
0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.ph(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ah(this.element,new g.Qd(d.left,d.top));g.Ir(this.B);this.B.L(document,"contextmenu",this.PK);this.B.L(this.K,"fullscreentoggled",this.NH);this.B.L(this.K,"pageTransition",this.aM)}};
g.h.PK=function(a){if(!g.Lp(a)){var b=Hp(a);g.xe(this.element,b)||this.gb();this.K.N().cn&&g.Kp(a)}};
g.h.NH=function(){this.gb();UQ(this)};
g.h.aM=function(){this.gb()};g.r(g.VQ,g.Gr);g.h=g.VQ.prototype;
g.h.Qx=function(a){var b=!1,c=g.Mp(a),d=Hp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.o.N();g.Lp(a)?(e=!1,k=!0):l.Xb&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==c?
d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.o.getVolume()+5,100);rQ(this.u,f,!1);this.o.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.o.getVolume()-5,0);rQ(this.u,f,!0);this.o.setVolume(f);k=f=!0;break;case 36:this.o.Qc()&&(this.o.seekTo(0),k=f=!0);break;
case 35:this.o.Qc()&&(this.o.seekTo(Infinity),k=f=!0)}}b&&this.Fu(!0);(b||k)&&this.B.Tb(2,!0);(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Kp(a);l.w&&(a={keyCode:g.Mp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Lp(a),fullscreen:this.o.isFullscreen()},this.o.na("onKeyPress",a))};
g.h.Rx=function(a){this.handleGlobalKeyUp(g.Mp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.VK(g.KK(this.o));c&&(c=c.u)&&c.Ha()&&(c.Ox(a),b=!0);9==a&&(this.Fu(!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){d=!1;c=this.o.N();if(c.Xb)return d;if((e=g.VK(g.KK(this.o)))&&(e=e.u)&&e.Ha())switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:d=e.Nx(a)}c.B||d||(f=f||String.fromCharCode(a).toLowerCase(),this.w+=f,0=="awesome".indexOf(this.w)?(d=!0,7==this.w.length&&(f=this.o.getRootNode(),e=!g.Bn(f,"ytp-color-party"),g.K(f,"ytp-color-party",e))):(this.w=f,d=0=="awesome".indexOf(this.w)));if(!d){switch(a){case 80:b&&!c.M&&(pQ(this.u,TM(),
"Pr\u00e9c\u00e9dente"),this.o.previousVideo(),d=!0);break;case 78:b&&!c.M&&(pQ(this.u,OM(),"Suivante"),this.o.nextVideo(),d=!0);break;case 74:this.o.Qc()&&(pQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.o.seekBy(-10*this.o.getPlaybackRate()),d=!0);break;case 76:this.o.Qc()&&(pQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.o.seekBy(10*this.o.getPlaybackRate()),d=!0);break;case 37:this.o.Qc()&&(pQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.o.seekBy(-5*this.o.getPlaybackRate()),d=!0);break;case 39:this.o.Qc()&&(pQ(this.u,g.X?{D:"div",Y:["ytp-icon","ytp-icon-forward-five-seconds"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.o.seekBy(5*this.o.getPlaybackRate()),d=!0);break;case 77:this.o.isMuted()?(this.o.unMute(),rQ(this.u,this.o.getVolume(),!1)):(this.o.mute(),rQ(this.u,0,!0));d=!0;break;case 32:case 75:c.M||(b=!g.OC(g.PK(this.o)),g.qQ(this.u,b),b?this.o.playVideo():this.o.pauseVideo(),d=!0);break;case 190:b?c.Ia&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b+.25,!0),sQ(this.u,!1),d=!0):this.o.Qc()&&(XQ(this,1),d=!0);break;case 188:b?c.Ia&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b-.25,!0),sQ(this.u,
!0),d=!0):this.o.Qc()&&(XQ(this,-1),d=!0);break;case 70:HN(this.o)&&(this.o.toggleFullscreen(),d=!0);break;case 27:this.C()&&(d=!0)}if("3"!=c.controlsType)switch(a){case 67:g.zL(g.KK(this.o))&&(b=this.o.getOption("captions","track"),this.o.toggleSubtitles(),b=!b||b&&!b.displayName?"Sous-titres activ\u00e9s":"Sous-titres d\u00e9sactiv\u00e9s",pQ(this.u,XM(),b),d=!0);break;case 79:WQ(this,"textOpacity");break;case 87:WQ(this,"windowOpacity");break;case 187:case 61:WQ(this,"fontSizeIncrement",!1,!0);
break;case 189:case 173:WQ(this,"fontSizeIncrement",!0,!0)}var k;48<=a&&57>=a?k=a-48:96<=a&&105>=a&&(k=a-96);null!=k&&this.o.Qc()&&(a=this.o.getProgressState(),this.o.seekTo(k/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),d=!0);d&&this.B.Tb(2,!0)}return d};
g.h.Fu=function(a){g.K(this.o.getRootNode(),"ytp-probably-keyboard-focus",a);g.K(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.kC=function(a){g.zL(g.KK(this.o))&&this.o.setOption("captions","sampleSubtitles",a)};
g.h.X=function(){this.A.Pe();g.Gr.prototype.X.call(this)};g.r(YQ,g.R);YQ.prototype.Db=function(a){this.element.setAttribute("aria-checked",String(a))};
YQ.prototype.onClick=function(a){g.IN(a,this.api)&&this.api.playVideoAt(this.index)};g.r(ZQ,g.wN);g.h=ZQ.prototype;g.h.show=function(){g.wN.prototype.show.call(this);this.w.L(this.api,"videodatachange",this.cu);this.w.L(this.api,"onPlaylistUpdate",this.cu);this.cu()};
g.h.hide=function(){g.wN.prototype.hide.call(this);g.Ir(this.w);this.updatePlaylist(null)};
g.h.cu=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.Hp=function(){var a=this.playlist,b=a.w;if(b===this.A)this.selected.Db(!1),this.selected=this.playlistData[a.index];else{for(var c=g.q(this.playlistData),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.playlistData=[];for(d=0;d<c;d++){var e=new YQ(this.api,a,d);this.playlistData.push(e);e.ca(this.items)}this.selected=this.playlistData[a.index];this.A=b}this.selected&&this.selected.Db(!0)};
g.h.rN=function(a){var b=this.api.getVideoUrl(!0);g.JN(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Hp,this),this.playlist=a,this.A=null,a){a.subscribe("shuffle",this.Hp,this);var b=a.author,c=b?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.gM(c,d),playlisturl:this.api.getVideoUrl(!0)});this.Hp()}else this.Ha()&&
this.hide();else this.playlist&&this.Hp()};
g.h.focus=function(){this.selected.focus()};
g.h.X=function(){this.hide();g.wN.prototype.X.call(this)};g.r($Q,g.R);$Q.prototype.A=function(){var a=g.Ly(this.w.N());g.K(this.element,"ytp-playlist-menu-button-tiny",400>g.QK(this.w).getPlayerSize().width&&!a);this.u&&2!=this.w.getPresentingPlayerType()?(this.update({text:g.gM("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.u.index+1),PLAYLIST_LENGTH:String(this.u.getLength())}),title:g.gM("Playlist\u00a0: $PLAYLIST_NAME",{PLAYLIST_NAME:this.u.title})}),this.Ha()||(this.show(),SN(this.B)),this.F=!0):this.Ha()&&(this.hide(),SN(this.B))};
$Q.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.w,this.element,this.F&&a)};
$Q.prototype.C=function(){this.u&&this.u.unsubscribe("shuffle",this.A,this);(this.u=this.w.getPlaylist())&&this.u.subscribe("shuffle",this.A,this);this.A()};g.r(aR,g.R);
aR.prototype.C=function(a){if(a){this.u=a;a=this.u.text;var b=!1;a&&(this.update({title:a}),b=!0);g.Oh(this.U,b);a=this.u.detailsText;b=!1;a&&(this.update({details:a}),b=!0);g.Oh(this.I,b);a=this.u.acceptButton;b=!1;a&&a.buttonRenderer&&(this.update({acceptButtonText:a.buttonRenderer.text}),b=!0);g.Oh(this.G,b);a=this.u.dismissButton;b=!1;a&&a.buttonRenderer&&(this.update({dismissButtonText:a.buttonRenderer.text}),b=!0);g.Oh(this.M,b)}a=document.querySelectorAll('[data-tooltip-target-id="'+this.u.targetId+
'"]');this.A=0<a.length?a[0]:null;this.w=!0;g.Qu(this,this.w);this.A?(a=g.Nh(this.A),a.width&&a.height?(this.R.qk(this.element,this.A),b=g.QK(this.F).getPlayerSize().height-g.Nh(this.element).height-a.height-12,this.element.style.top=b+"px",b=this.o["ytp-promotooltip-pointer"],a=g.Ih(this.A,this.F.getRootNode()).x-parseInt(this.element.style.left,10)+a.width/2-12,b.style.left=a+"px"):this.B()):this.B()};
aR.prototype.B=function(){this.w=!1;g.Qu(this,this.w)};g.r(g.bR,g.wN);g.h=g.bR.prototype;g.h.eM=function(a){a=Hp(a);g.xe(this.R,a)||g.xe(this.C,a)||this.hf()};
g.h.gb=function(){g.wN.prototype.gb.call(this);this.A.rf(this.element)};
g.h.show=function(){var a=this.Ha();g.wN.prototype.show.call(this);this.Mt();a||this.w.na("onSharePanelOpened")};
g.h.Mt=function(){var a=this;g.J(this.element,"ytp-share-panel-loading");g.Dn(this.element,"ytp-share-panel-fail");var b=this.w.getVideoData(),c=this.w.getPlaylistId(),d=c&&this.M.checked;g.K(this.element,"ytp-share-panel-has-playlist",!!c);var e=this.w.N();g.P(e.experiments,"web_player_innertube_share_panel")?IK(xQ(this.w.app),b.getSharePanelCommand).then(function(f){dR(a,f)}):(b={action_get_share_info:1,
video_id:b.videoId},e.Nc&&(b.authuser=e.Nc),e.pageId&&(b.pageid=e.pageId),g.Ly(e)&&g.DH(b,"emb_share"),d&&(b.list=c),g.Eq(e.G+"share_ajax",{method:"GET",onError:(0,g.x)(this.iC,this),onSuccess:(0,g.x)(function(f,k){k?dR(this,k):this.iC(null,null)},this),
Zd:b,withCredentials:!0}));c=this.w.getVideoUrl(!0,!0,!1,!0);this.la("link",c);this.la("linkText",c);this.la("shareLinkWithUrl",g.gM("Partager le lien $URL",{URL:c}));LN(this.F)};
g.h.iC=function(){g.Dn(this.element,"ytp-share-panel-loading");g.J(this.element,"ytp-share-panel-fail")};
g.h.bN=function(a,b){if(g.iM(b)){var c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";c||(c={});var d=window;var e=a instanceof g.tc?a:g.wc("undefined"!=typeof a.href?a.href:String(a));var f=c.target||a.target,k=[];for(l in c)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+c[l]);break;case "target":case "noopener":case "noreferrer":break;default:k.push(l+"="+(c[l]?1:0))}var l=k.join(",");if(Fd()&&d.navigator&&d.navigator.standalone&&
f&&"_self"!=f)l=g.oe("A"),g.Yc(l,e),l.setAttribute("target",f),c.noreferrer&&l.setAttribute("rel","noreferrer"),c=document.createEvent("MouseEvent"),c.initMouseEvent("click",!0,!0,d,1),l.dispatchEvent(c),d={};else if(c.noreferrer){if(d=ad("",d,f,l),c=g.uc(e),d&&(g.nz&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.Wc(g.Yb("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.dd(c)+'">'),e=d.document))e.write(g.Qc(c)),
e.close()}else(d=ad(e,d,f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.Kp(b)}};
g.h.HL=function(a,b){g.JN(a,this.w,b)&&this.w.na("SHARE_CLICKED")};
g.h.kJ=function(a){!a&&yN(this)&&this.hf()};
g.h.focus=function(){this.F.focus()};
g.h.X=function(){g.wN.prototype.X.call(this);cR(this)};g.r(g.eR,g.R);g.eR.prototype.G=function(){var a=this.u.N(),b=this.u.getVideoData(),c=this.u.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);navigator.share?navigator.share({title:b.title,url:a}):(this.B.jg(),this.I.hf(this.element,!1));g.nL(this.u,this.element)};
g.eR.prototype.A=function(){var a=this.u.N(),b=this.u.getVideoData(),c=this.B.Rd()&&g.Ly(a),d=g.Ly(a)&&g.SK(this.u)&&g.V(g.PK(this.u),128);this.la("icon",c&&a.F?{D:"div",Y:["ytp-icon","ytp-icon-sharrow-large"]}:g.X?{D:"div",Y:["ytp-icon","ytp-icon-sharrow"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
a=a.disableSharing&&2!=this.u.getPresentingPlayerType()||!b.showShareButton||b.Jm||d;c=g.QK(this.u).getPlayerSize().width;this.w=!!b.videoId&&c>=this.F&&!a;g.K(this.element,"ytp-share-button-visible",this.w);g.Qu(this,this.w);SN(this.C);g.oL(this.u,this.element,this.w&&this.P)};
g.eR.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.u,this.element,this.w&&a)};
g.eR.prototype.X=function(){g.R.prototype.X.call(this);g.Dn(this.element,"ytp-share-button-visible")};g.r(gR,g.wN);gR.prototype.show=function(){g.wN.prototype.show.call(this);this.C.start()};
gR.prototype.hide=function(){g.wN.prototype.hide.call(this);this.C.stop()};
gR.prototype.aa=function(){var a=this.w.getCurrentTime();a>this.B/1E3&&a<this.A/1E3&&this.show()};g.r(g.hR,g.R);g.h=g.hR.prototype;g.h.ML=function(a){3==this.w&&this.zf();(a=a.currentTarget)&&1==a.nodeType&&!this.w&&(a.removeEventListener("mouseover",this.F),a.addEventListener("mouseout",this.Z),g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.F),a.addEventListener("blur",this.Z)),mR(this,a,2))};
g.h.JL=function(a){(a=Ip(a))&&g.xe(this.u,a)||this.zf()};
g.h.BA=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;iR(this,c)}};
g.h.mG=function(){UA(this.A,this.C,160*this.B)};
g.h.zf=function(){switch(this.w){case 2:this.u.removeEventListener("mouseout",this.Z),this.u.addEventListener("mouseover",this.F),g.P(this.R.experiments,"show_tooltip_on_tab_killswitch")||(this.u.removeEventListener("blur",this.Z),this.u.addEventListener("focus",this.F));case 3:3==this.w&&this.ma.stop();this.U.removeEventListener("appresize",this.aa);this.ba||this.u.setAttribute("title",this.G);this.G="";this.u=null;break;case 1:this.A&&(this.A.unsubscribe("l",this.BA,this),this.A=null),this.U.removeEventListener("videoready",
this.aa),this.da.stop()}this.w=null;this.V&&this.M.hide()};
g.h.rf=function(a){if(this.u)for(var b=0;b<arguments.length;b++)g.xe(arguments[b],this.u)&&this.zf()};
g.h.X=function(){null!=this.w&&this.zf();this.A&&this.A.dispose();g.R.prototype.X.call(this)};g.r(pR,g.R);pR.prototype.onClick=function(){this.K.na("BACK_CLICKED")};g.r(qR,g.R);
qR.prototype.onClick=function(){var a=this.api.N(),b=this.api.getVideoData(),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);b=!1;c=g.oe("TEXTAREA");c.value=a;c.setAttribute("readonly","");document.body.appendChild(c);if(nl){var d=window.getSelection();d.removeAllRanges();var e=document.createRange();e.selectNodeContents(c);d.addRange(e);c.setSelectionRange(0,a.length)}else c.select();try{b=document.execCommand("copy")}catch(f){}document.body.removeChild(c);b&&nla(this);g.nL(this.api,
this.element)};
qR.prototype.sa=function(){var a=this.api.N(),b=this.api.getVideoData();this.u.Rd()&&g.Ly(a)&&a.F?this.la("icon",{D:"div",Y:["ytp-icon","ytp-icon-share-copylink-large"]}):this.la("icon",g.X?{D:"div",Y:["ytp-icon","ytp-icon-share-copylink"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});
this.la("title-attr","Copier le lien");a=g.QK(this.api).getPlayerSize().width;this.visible=!!b.videoId&&240<=a&&b.Jm;g.K(this.element,"ytp-copylink-button-visible",this.visible);g.Qu(this,this.visible);SN(this.tooltip);g.oL(this.api,this.element,this.visible&&this.P)};
qR.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.api,this.element,this.visible&&a)};
qR.prototype.X=function(){g.R.prototype.X.call(this);g.Dn(this.element,"ytp-copylink-button-visible")};g.r(rR,g.R);rR.prototype.sa=function(){var a=g.Ly(this.K.N())&&g.SK(this.K)&&g.V(g.PK(this.K),128),b=this.K.getPlayerSize();this.visible=this.u.Rd()&&!a&&240<=b.width;g.K(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&SN(this.tooltip);g.oL(this.K,this.element,this.visible&&this.P)};
rR.prototype.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.K,this.element,this.visible&&a)};
rR.prototype.X=function(){g.R.prototype.X.call(this);g.Dn(this.element,"ytp-overflow-button-visible")};g.r(sR,g.wN);g.h=sR.prototype;g.h.dM=function(a){a=Hp(a);g.xe(this.element,a)&&(g.xe(this.w,a)||g.xe(this.closeButton,a)||this.hf())};
g.h.gb=function(){g.wN.prototype.gb.call(this);this.tooltip.rf(this.element)};
g.h.show=function(){this.Ha()&&this.K.S("OVERFLOW_PANEL_OPENED");g.wN.prototype.show.call(this);uR(this,!0)};
g.h.hide=function(){g.wN.prototype.hide.call(this);uR(this,!1)};
g.h.QH=function(a){!a&&yN(this)&&this.hf()};
g.h.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ha()){b.focus();break}};g.r(vR,g.R);vR.prototype.u=function(a){g.Qu(this,g.V(a.state,2))};
vR.prototype.onClick=function(){g.PK(this.K);this.K.playVideo()};var z2={},wR=(z2.CHANNEL_NAME="ytp-title-channel-name",z2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",z2.LINK="ytp-title-link",z2.SESSIONLINK="yt-uix-sessionlink",z2.SUBTEXT="ytp-title-subtext",z2.TEXT="ytp-title-text",z2.TITLE="ytp-title",z2);g.r(xR,g.R);xR.prototype.onClick=function(a){g.nL(this.api,this.element);var b=this.api.getVideoUrl(!g.iM(a),!1,!0);g.Ly(this.api.N())&&(b=g.yd(b,g.DH({},"emb_title")));g.JN(b,this.api,a)};
xR.prototype.sa=function(){var a=this.api.getVideoData(),b=this.api.N();this.la("title",a.title);yR(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.sf&&c.Id?(this.la("channelLink",c.sf),this.la("channelName",c.author)):yR(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.qc;g.K(this.link,wR.FULLERSCREEN_LINK,c);b.P||!a.videoId||c?this.u&&(this.la("url",null),this.bb(this.u),this.u=null):(this.la("url",this.api.getVideoUrl(!0)),
this.u||(this.u=this.L(this.link,"click",this.onClick)))};g.r(zR,cN);zR.prototype.u=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
zR.prototype.o=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};var AR;g.r(g.ER,g.R);g.h=g.ER.prototype;g.h.Zo=function(){var a=this.K.getPlayerSize(),b=this.K.N(),c=this.K.getVideoData(),d=g.Ly(b)&&g.SK(this.K)&&g.V(g.PK(this.K),128);this.visible=b.Th&&240<=a.width&&!c.isAd()&&c.Th&&!d;g.Qu(this,this.visible);this.icon&&HR(this,this.icon);g.oL(this.K,this.element,this.visible&&this.P)};
g.h.kB=function(){this.u=!0;this.w=!1;this.sa(1);this.K.N().o&&nR(this.tooltip,this.element);this.K.N().w&&this.K.na("WATCH_LATER_VIDEO_ADDED")};
g.h.oz=function(){return this.K.getVideoData().videoId};
g.h.onClick=function(){var a=this;g.nL(this.K,this.element);var b=this.K.N(),c=this.oz();b.Nc?DR(this,c):this.K.app.Ia?tL(function(){g.Rq("embedsItpWatchLaterResult",{accepted:!0});vp();FR(a,c)},function(){g.Rq("embedsItpWatchLaterResult",{accepted:!1});
GR(a,"D\u00e9sol\u00e9, l'enregistrement a \u00e9chou\u00e9, car votre navigateur bloque les cookies.")}):FR(this,c)};
g.h.FN=function(a,b){this.w=!1;var c="Une erreur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);GR(this,c)};
g.h.GN=function(){this.w=!1;GR(this,"Une erreur s'est produite. Veuillez r\u00e9essayer ult\u00e9rieurement.")};
g.h.lB=function(){this.w=this.u=!1;this.sa(2);this.K.N().w&&this.K.na("WATCH_LATER_VIDEO_REMOVED")};
g.h.JM=function(){this.w=this.u=!1;this.sa(2)};
g.h.sa=function(a,b){var c=this.K.N();HR(this,a);if(b)this.update({title:b,image:null});else if(c.ha){var d={USER_NAME:c.ha};this.update({title:this.u?g.gM("Ajout\u00e9e avec le compte $USER_NAME",d):g.gM("Regarder plus tard en tant que $USER_NAME",d),image:sz(c)})}else this.update({title:"\u00c0 regarder plus tard",image:null});SN(this.tooltip)};
g.h.Xa=function(a){g.R.prototype.Xa.call(this,a);g.oL(this.K,this.element,this.visible&&a)};g.r(IR,g.eQ);g.h=IR.prototype;g.h.fb=function(){return this.M};
g.h.Dx=function(){return this.o};
g.h.oi=function(a,b){b?this.oa=a:this.oa=null;this.oe()};
g.h.nl=function(a,b){if(b)this.U.push(a);else for(var c=this.U.length;0<=c;c--)if(this.U[c]==a){this.U.splice(c,1);break}this.u.Tb(64,0<this.U.length)};
g.h.Sh=function(){g.YK(this.api)&&g.ZK(this.api);bL(this.api);return!!this.oa||JR(this)||g.eQ.prototype.Sh.call(this)};
g.h.oe=function(){var a=!this.Sh(),b=a&&g.YK(this.api)&&!g.V(g.PK(this.api),2),c=this.ga&&g.SK(this.api)&&g.V(g.PK(this.api),128);a||c?(this.Hc.show(),this.Ic.show()):(this.Hc.hide(),this.Ic.hide(),this.M.rf(this.A.element));b?this.ma.Qb():(b=this.ma,g.Qo("iv-button-hidden"),b.w.hide());this.o&&UP(this.o,!a);g.eQ.prototype.oe.call(this)};
g.h.qk=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Nh(a);d=d||this.o&&g.xe(this.o.ua(),b);if(null==c||!d){var k=g.Nh(b);var l=g.Ih(b,this.api.getRootNode());null==c&&(c=l.x+k.width/2)}c-=f.width/2;d?(k=VP(this.o),l=WP(this.o),b=g.QK(this.api).getPlayerSize().height,c=g.Md(c,k,k+l-f.width),f=b-(this.o.A.kc()?72:50)-f.height):g.xe(this.A.element,b)?(k=g.QK(this.api).getPlayerSize().width,c=g.Md(c,12,k-f.width-12),f=this.kc()?this.yb:this.Rb,"gvn"==this.api.N().playerStyle&&
(f+=20),this.ga&&(f-=this.kc()?26:18)):(b=g.QK(this.api).getPlayerSize(),c=g.Md(c,12,b.width-f.width-12),f=l.y>(b.height-k.height)/2?l.y-f.height-12:l.y+k.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.h.mm=function(a){a&&(this.M.rf(this.A.element),this.o&&this.M.rf(this.o.ua()));g.eQ.prototype.mm.call(this,a)};
g.h.xt=function(a,b){var c=g.QK(this.api).getPlayerSize();c=new g.ph(0,0,c.width,c.height);if(a||this.u.u&&!this.Sh()){if(this.api.N().Qg||b){var d=this.kc()?this.yb:this.Rb;c.top+=d;c.height-=d}this.o&&(c.height-=this.o.A.kc()?72:50)}return c};
g.h.bJ=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Lecteur vid\u00e9o YouTube en plein \u00e9cran"),this.api.N().externalFullscreen||(b.parentElement.insertBefore(this.Ka.element,b),b.parentElement.insertBefore(this.Ia.element,b.nextSibling))):g.M(Error("Player not in DOM.")):(b.setAttribute("aria-label","Lecteur vid\u00e9o YouTube"),g.Nu(this.Ka),g.Nu(this.Ia));this.Ti();this.Mg()};
g.h.kc=function(){return this.api.isFullscreen()||!1};
g.h.showControls=function(a){this.Xb=!a;this.oe()};
g.h.Ti=function(){var a=this.kc();this.M.B=a?1.5:1;this.P&&g.K(this.P.element,"ytp-big-mode",a);this.oe();if(this.Rd()&&this.w)this.I&&tR(this.w,this.I),this.G&&tR(this.w,this.G),this.F&&tR(this.w,this.F);else{if(this.w){a=this.w;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())g.Nu(c.value);a.actionButtons=[]}this.I&&!g.xe(this.ha.element,this.I.element)&&this.I.ca(this.ha.element);this.G&&!g.xe(this.ha.element,this.G.element)&&this.G.ca(this.ha.element);this.F&&!g.xe(this.ha.element,
this.F.element)&&this.F.ca(this.ha.element)}this.Mg();g.eQ.prototype.Ti.call(this)};
g.h.Mr=function(){if(JR(this)&&!g.SK(this.api))return!1;var a=this.api.getVideoData();return!g.Ly(this.api.N())||2==this.api.getPresentingPlayerType()||!this.wf||((a=this.wf||a.wf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.eQ.prototype.Mr.call(this):!1};
g.h.Mg=function(){g.eQ.prototype.Mg.call(this);g.oL(this.api,this.qc.element,!!this.C);this.za&&this.za.Xa(!!this.C);this.rb.Xa(!!this.C);this.Ma&&this.Ma.Xa(this.Rd()&&!!this.C);this.G&&this.G.Xa(!this.Rd()&&!!this.C);this.I&&this.I.Xa(!this.Rd()&&!!this.C);this.F&&this.F.Xa(!this.Rd()&&!!this.C);if(!this.C){this.M.rf(this.A.element);for(var a=0;a<this.Ca.length;a++){var b=this.Ca[a];yN(b)&&b.gb()}}};
g.h.xk=function(a){this.o&&UP(this.o,this.Sh());this.oe();g.eQ.prototype.xk.call(this,a)};
g.h.XL=function(){cL(this.api)&&this.u.Tb(128,!1)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.aa?this.aa.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.aa?this.aa.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.jg=function(){return this.P.Ha()?(this.P.gb(),!0):this.U.length?(this.U[this.U.length-1].gb(),!0):this.oa?(this.oa.gb(),!0):g.eQ.prototype.jg.call(this)};
g.h.Iu=function(a,b){this.rd=b;this.nl(a,b);this.FC()};
g.h.FC=function(){var a=this.rd||yN(this.P);this.nb!=a&&(this.nb=a,this.api.na("onAutonavPauseRequest",this.nb))};
g.h.ME=function(){KR(this,this.api.getRootNode(),!0).focus()};
g.h.NE=function(){KR(this,this.api.getRootNode(),!1).focus()};
g.h.fm=function(){return this.o&&this.o.o};
g.h.At=function(){this.u.Tb(2,!0)};
g.h.no=function(){this.V.hide()};
g.h.Jt=function(a){g.qQ(this.V,!g.OC(a))};
g.h.It=function(a,b,c,d){var e=this.Yb;e.u.Pe();e.A.start();e.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.QK(e.w).getPlayerSize().height;var k=g.QK(e.w).getPlayerSize();k=k.width/3-3*k.height;var l=e.o["ytp-doubletap-static-circle"];l.style.width=f+"px";l.style.height=f+"px";1===a?(l.style.left="",l.style.right=k+"px"):-1===a&&(l.style.right="",l.style.left=k+"px");var m=2.5*f;f=m/2;l=e.o["ytp-doubletap-ripple"];l.style.width=m+"px";l.style.height=m+"px";1===a?(a=g.QK(e.w).getPlayerSize().width-
b+Math.abs(k),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(k)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=e.o["ytp-doubletap-ripple"])c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");d=g.gM("$TOTAL_SEEK_TIME\u00a0secondes",{TOTAL_SEEK_TIME:d.toString()});e.la("seekTime",d)};
g.h.jC=function(){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.Aa||(this.Aa=new aR(a.tooltipRenderer,this,this.api),g.B(this,this.Aa),g.iL(this.api,this.Aa.element,8)),this.Aa.C(a.tooltipRenderer))};g.r(g.LR,g.vL);g.LR.prototype.Pf=function(){return!1};
g.LR.prototype.create=function(){var a=this.player.N();mz(a)&&a.o?this.chrome=new g.eQ(this.player):this.chrome=new IR(this.player);g.B(this,this.chrome);this.chrome.init();g.fL(this.player,"ux")};g.r(NR,g.A);NR.prototype.I=function(){};
NR.prototype.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)MR(this,a);else{b=this.api.kb();var d=b===this.w?this.A:null;QR(this,!1);this.F=a;null!=c&&this.B.start(c);b&&(this.A=d||b.getPlayerState(),aK(b),this.w=b)}};
NR.prototype.X=function(){QR(this,!1);SR(this);g.A.prototype.X.call(this)};
var qla=0;g.r(UR,g.A);g.h=UR.prototype;g.h.LH=function(a){if(this.u===this.api.kb()){var b=this.C.get(a);b||VR(this,"e.unexpectedCueRangeTriggered");aS(this,b.target,b.Fe,a)}else{b=this.o.find(function(e){return e.Ne.Pb===a});
var c=b.Ne,d=c.target;c=c.Fe;d?aS(this,d,c,a):vla(this,b.Nb,c,a)}};
g.h.xM=function(){var a=this.G;cS(this);a&&(bS(this,a)||VR(this,"e.unexpectedPresentingPlayer"),this.api.kb().addCueRange(a.Ne.Pb))};
g.h.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)TR(this,a);else{b=this.api.kb();var d=b===this.A?this.F:null;fS(this,!1);this.M=a;null!=c&&this.P.start(c);b&&(this.F=d||b.getPlayerState(),aK(b),this.A=b)}};
g.h.MH=function(a){var b=this;if(g.bH(a,128)){var c=this.o.find(function(d){return bS(b,d)});
c&&(cS(this),a=new g.HC(8),c=dS(this,c)/1E3,gS(this,c,a))}};
g.h.X=function(){fS(this,!1);kS(this);g.A.prototype.X.call(this)};
var tla=0;var wla="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");lS.prototype.getLocalMediaInfoById=function(a){return mh(this,function c(){return Aa(c,function(d){return d["return"](Afa(a))})})};
lS.prototype.getAllLocalMediaInfo=function(){return mh(this,function b(){return Aa(b,function(c){return c["return"](Bfa())})})};
lS.prototype.o=function(a){this.api.na("localmediacomplete",a);0===tt(2).length&&(a=tt(3),0<a.length&&nS(this,a[0]))};var zla=yb(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),pS=!1;g.r(qS,g.R);
qS.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;var d=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.w)this.w.fillStyle=this.C[c],this.w.fillRect(a*this.u,0,this.u,this.heightPx),this.w.fillStyle=this.C[c+1],this.w.fillRect(a*this.u,this.heightPx*(1-d),this.u,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.C[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.C[c]}};g.r(sS,g.R);g.h=sS.prototype;g.h.show=function(){g.R.prototype.show.call(this);this.sa()};
g.h.hide=function(){g.R.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.sa()};
g.h.sa=function(){var a=(0,g.N)(),b=this.C.getStatsForNerds();rS(this.u,b.bandwidth_samples);rS(this.B,b.network_activity_samples);rS(this.A,b.live_latency_samples);rS(this.w,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.delay.start(a)};g.r(zS,g.A);g.h=zS.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return this.I.getVisibilityState(a,b,c,d,e,f)};
g.h.isVideoInfoVisible=function(){return!(!this.ba||!this.ba.Ha())};
g.h.setIsExternalPlaylist=function(a){this.aa=S(!1,a)};
g.h.kK=function(){DS(this)||g.$S(this,5)};
g.h.jM=function(a){DS(this)||(wT(this),g.OC(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return Ct(a)};
g.h.N=function(){return this.o};
g.h.getVideoData=function(){return this.C.getVideoData()};
g.h.getVideoLoadedFraction=function(a){a=g.W(this,a);if(!a)return 0;var b=a.getVideoData();if(b.ia&&b.Ba&&b.Vb){var c=b.ia.o;b=!!c[b.Ba.id]&&$w(c[b.Ba.id].u.o)&&!!c[b.Vb.id]&&$w(c[b.Vb.id].u.o)}else b=!1;return b?1:(a=a.o)?BC(a):0};
g.h.Wc=function(){var a={},b=g.zL(this.A);b&&g.Ra(a,b.DG());a.fs=this.u.isFullscreen();a.volume=Math.round(this.u.getVolume());a.mos=this.u.isMuted()?1:0;if(g.P(this.o.experiments,"html5_enable_embedded_player_visibility_signals")&&this.o.u&&(this.Mc&&(b=this.Mc,b=null==b.u?null:Math.round(100*b.u)/100,null!=b&&(a.inview=b)),b=this.G.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.iz();1<c&&b.push(c);a.size=b.join(":")}!tS(this,"web_player_clips_vss_killswitch")&&
this.C==this.w&&this.M&&(a.clipid=this.M.postId);return a};
g.h.setLoopRange=function(a){var b=!1;!!this.M!==!!a?b=!0:this.M&&a&&(b=this.M.startTimeMs!==a.startTimeMs||this.M.endTimeMs!==a.endTimeMs||this.M.postId!==a.postId);b&&(rF(this.w.R,"applooprange"),a?(b=new g.iC(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.w.addCueRange(b)):SS(this).tj=void 0,this.M=a,this.u.na("onLoopRangeChange",a),this.C==this.w&&(this.M&&!dT(this,this.w.getCurrentTime())&&this.xu(),g.PH(this.C.B)))};
g.h.getLoopRange=function(){return this.M};
g.h.xu=function(){this.w.seekTo(.001*this.M.startTimeMs)};
g.h.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=CS(this,a);this.w.getPlaybackRate()!=c&&(this.w.setPlaybackRate(c),b&&!this.o.u&&g.Ds("yt-player-playback-rate",c),this.u.na("onPlaybackRateChange",c))}};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==this.getPresentingPlayerType())return g.RK(this.A).getCurrentTime();var c=g.W(this,a);return c?b?(c=PS(this,c),fT(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.h.getDuration=function(a,b){var c=g.W(this,a);return c?void 0===b||b?(c=OS(this,c),fT(this,c.getDuration(),c)):c.getDuration():0};
g.h.Ab=function(a){a=g.W(this,a);if(!a)return 0;a=OS(this,a);return fT(this,a.Ab(),a)};
g.h.getDebugText=function(a){var b=this.w.Za(a);if(this.C&&this.C!=this.w&&(b=IT(b,this.C.Za(a),"ad_"),a)){var c=b;var d={};var e=$d(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.ce("video-ads");f?(ET(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.ce("videoAdUiSkipContainer"),l=g.ce("ytp-ad-skip-button-container"),m=k||l;m?(ET(m,f),f.ima=k?1:0,f.bulleit=l?1:0):f.missing=1;k={};k.player=d;k.videoAds=e;k.skipButton=f;d=JSON.stringify(k);c.ad_skipBtnDbgInfo=
d}a&&this.B&&(b["0sz"]=0==Ud(this.B.ck()),b.op=this.B.zl("opacity"),c=this.B.ih().y+this.B.ck().height,b.yof=0>=c,b.dis=this.B.zl("display"));(a=a?(0,g.yJ)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.u.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=aL(this.A))&&(b=IT(b,a.Za(),"fresca_"));return JSON.stringify(b,null,2)};
g.h.getPresentingPlayerType=function(){return 1==this.Z?1:DS(this)?3:g.W(this).getPlayerType()};
g.h.getAppState=function(){return this.Z};
g.h.KG=function(a){switch(a.type){case "loadedmetadata":LA("fvb",this.P.timerName)||this.P.tick("fvb");OA("fvb");this.yb.start();break;case "loadstart":LA("gv",this.P.timerName)||this.P.tick("gv");OA("gv");break;case "progress":case "timeupdate":!LA("l2s",this.P.timerName)&&2<=Rt(a.target.Dd())&&this.P.tick("l2s");break;case "playing":g.nz&&this.yb.start();if(g.$y(this.o))a=!1;else{var b=g.VK(this.A);a="none"==this.B.zl("display")||0==Ud(this.B.ck());var c=tM(this.G),d=this.C.getVideoData(),e=mz(this.o)||
g.Uy(this.o);d=hB(d);b=!c||b||e||d||this.o.Wg;a=a&&!b}a&&(this.C.Ra("hidden","1",!0),this.getVideoData().Jf||(tS(this,"html5_new_elem_on_hidden")?(this.getVideoData().Jf=1,this.KA(null),this.C.playVideo()):BT(this,"hidden",!0)))}};
g.h.pL=function(a,b){this.u.na("onLoadProgress",b)};
g.h.lN=function(){this.u.S("playbackstalledatstart")};
g.h.LG=function(a,b){var c=PS(this,a);b=fT(this,c.getCurrentTime(),c);this.u.na("onVideoProgress",b)};
g.h.QK=function(){this.u.na("onDompaused")};
g.h.uM=function(){this.u.S("progresssync")};
g.h.HG=function(a){if(1==this.getPresentingPlayerType()){g.bH(a,1)&&!g.V(a.state,64)&&SS(this).va&&this.w.isAtLiveHead()&&1<this.u.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.bH(a,2)&&KS(this);if(g.V(a.state,128)){var b=a.state;oT(this,5);b=b.u;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.u.na("onError",Qra[b.errorCode]||5);this.u.na("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,DT:b.Ar});6048E5<(0,g.N)()-this.o.oa&&this.u.na("onReloadRequired")}b=
{};if(a.state.eb()&&!g.QC(a.state)&&!LA("pbresume","ad_to_video")&&LA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);KA(b,"ad_to_video");HA("pbresume",void 0,"ad_to_video")}this.u.S("applicationplayerstatechange",a)}};
g.h.jB=function(a){3!=this.getPresentingPlayerType()&&this.u.S("presentingplayerstatechange",a)};
g.h.JG=function(a){MS(this,RC(a.state));g.V(a.state,1024)&&this.u.isMutedByMutedAutoplay()&&(ZB(this,{muted:!1,volume:this.R.volume},!1),aT(this,!1))};
g.h.mM=function(a){a.state.eb()&&!g.QC(a.state)&&(DL(this.A),g.Ir(this.Jc))};
g.h.iK=function(a,b,c){"newdata"==a&&iT(this);(a=c.tj)&&null!=a.startTimeMs&&null!=a.endTimeMs&&this.setLoopRange({startTimeMs:parseInt(a.startTimeMs,10),endTimeMs:parseInt(a.endTimeMs,10),postId:a.postId})};
g.h.nK=function(){this.u.na("onPlaybackAudioChange",this.u.getAudioTrack().tb.name)};
g.h.BN=function(a){var b=this.C.getVideoData();a==b&&this.u.na("onPlaybackQualityChange",a.Ba.ya().quality)};
g.h.Ws=function(a,b,c){b==this.w&&(this.o.yb=c.oauthToken);if("newdata"==a)FL(this.A,2),this.u.S("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(this.C==this.w){if(c.Pa.Kd(c.sB),!this.w.getPlayerState().isError()){var d=DS(this);SS(this).Hb();d&&g.$S(this,6);RS(this);d||(d=GL(this.A))&&!d.created&&AL(this.A)&&d.create()}}else RS(this);1==b.getPlayerType()&&(this.o.R&&DT(this),this.getVideoData().va&&!this.o.Tn&&g.jJ(this.w,"html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),
c.Hb()&&(c.tm||c.yp||c.zp||c.Pc.focEnabled||c.Pc.rmktEnabled||this.getVideoData().Xv)&&(d=this.getVideoData(),lT(this,"part2viewed",1,0x8000000000000),lT(this,"engagedview",Math.max(1,1E3*d.Me),0x8000000000000),d.va||(d=1E3*d.lengthSeconds,lT(this,"videoplaytime25",.25*d,d),lT(this,"videoplaytime50",.5*d,d),lT(this,"videoplaytime75",.75*d,d),lT(this,"videoplaytime100",d,0x8000000000000),lT(this,"conversionview",d,0x8000000000000))));this.u.S("videodatachange",a,c,b.getPlayerType())}this.o.w&&this.u.na("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});b==this.w&&this.M&&!dT(this,this.w.getCurrentTime())&&this.xu();a=c.clientScreenNonce;c=c.Jp;a&&c?(b=this.oa,a!=g.ds()&&(gs(a,c),yM(b))):yM(this.oa)};
g.h.Bn=function(){VS(this,null);this.u.na("onPlaylistUpdate")};
g.h.jA=function(a){var b=a.getId(),c=SS(this);if("part2viewed"==b)c.xB&&g.cr(c.xB),c.yp&&FT(this,c.yp),c.zp&&GT(this,c.zp);else if("conversionview"==b){var d=this.w.B;d.u&&KH(d.u)}else"engagedview"==b&&g.cr(c.tm);if(c.yB){d=c.yB;var e={label:a.getId()};if(g.P(this.o.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.oq(d,e);g.cr(d)}switch(b){case "videoplaytime25":c.lu&&FT(this,c.lu);c.mu&&GT(this,c.mu);c.AB&&g.cr(c.AB);
break;case "videoplaytime50":c.nu&&FT(this,c.nu);c.ou&&GT(this,c.ou);c.BB&&g.cr(c.BB);break;case "videoplaytime75":c.pu&&FT(this,c.pu);c.qu&&GT(this,c.qu);c.CB&&g.cr(c.CB);break;case "videoplaytime100":c.ju&&FT(this,c.ju),c.ku&&GT(this,c.ku),c.zB&&g.cr(c.zB)}(b=this.getVideoData().Xv)&&mT(b,a.getId())&&mT(b,a.getId()+"gaia");this.w.removeCueRange(a)};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.W(this,a);if(!c)return!1;var d=OS(this,c);c=PS(this,c);return d!=c?d.isAtLiveHead(fT(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.h.seekTo=function(a,b,c,d){b=0!=b;if(d=g.W(this,d))2==this.Z&&XS(this),this.Mb(d)?this.U?this.U.seekTo(a,b,c):this.Aa.seekTo(a,b,c):d.seekTo(a,{CC:!b,DC:c})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.ZM=function(){this.u.na("SEEK_COMPLETE")};
g.h.aN=function(a,b){var c=a.getVideoData();if(1==this.Z||2==this.Z)c.startSeconds=b;2==this.Z?XS(this):this.u.na("SEEK_TO",b)};
g.h.aK=function(){this.u.S("airplayactivechange")};
g.h.bK=function(){this.u.S("airplayavailabilitychange")};
g.h.sK=function(){this.u.S("beginseeking")};
g.h.XK=function(){this.u.S("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.W(this,a))?OS(this,a).getVideoData().getStoryboardFormat():null};
g.h.ue=function(a){return(a=g.W(this,a))?OS(this,a).getVideoData().ue():null};
g.h.Mb=function(a){if(a=a||this.C){a=a.getVideoData();if(this.U)a:{var b=this.U;if(a===b.u.getVideoData()&&b.o.length)a=!0;else{b=g.q(b.o);for(var c=b.next();!c.done;c=b.next())if(a.Eb===c.value.Eb){a=!0;break a}a=!1}}else a:if(b=this.Aa,a===b.u.getVideoData()&&b.o.length)a=!0;else{b=g.q(b.o);for(c=b.next();!c.done;c=b.next())if(a.Eb===c.value.Eb){a=!0;break a}a=!1}if(a)return!0}return!1};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Mb();a=new g.aB(this.o,a);d&&(a.Eb=d);if(!g.P(this.o.experiments,"html5_report_dai_ad_playback_killswitch")&&2==b&&this.w&&(d=this.w.B,d.o)){d=d.o;var e=a.clientPlaybackNonce,f=a.xm||"",k=a.breakType||0;g.gH(d,g.WG(d.o),"ad_playback",[e,f,k])}c=void 0===c?Infinity:c;b=b||this.C.getPlayerType();var l;g.P(this.o.experiments,"html5_gapless_preloading")&&(l=bT(this,b,a,!0));l||(l=yS(this,b),uJ(l,a,(0,g.x)(this.Wc,
this)));$R(this,l,c)};
g.h.clearQueue=function(){this.Ka.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.o.B&&uL(a);var e=new g.aB(this.o,a);c||(a&&oC(a)?(hz(this.o)&&!this.aa&&(a.fetch=0),VS(this,a)):this.F&&VS(this,null),a&&this.setIsExternalPlaylist(a.external_list),hz(this.o)&&!this.aa&&WS(this));return iS(this,e,b,d)};
g.h.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=b+"_"+Fy(a)+"_"+e;var f;if(!(f=this.Wa.get(d))&&(f=this.C)){f=this.C.getPlayerType();var k=this.C.getVideoData().videoId,l=this.C.getVideoData().Eb;f=d==f+"_"+k+"_"+l}f||(this.o.B&&uL(a),a=new g.aB(this.o,a),e&&(a.Eb=e),e=b+"_"+a.videoId+"_"+a.Eb,a.Zi=!0,d=yS(this,b),uJ(d,a,(0,g.x)(this.Wc,this)),!g.P(this.o.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1==b&&kz(this.o)||zJ(d,!0),this.Wa.set(e,
d,c||3600),c="prefetch_"+a.videoId,FA("prefetch",["pfp"],c),KA({playerInfo:{playbackType:Era[b]},videoId:a.videoId},c))};
g.h.setMinimized=function(a){this.I.setMinimized(a);a=this.A;(a=a.o.N().showMiniplayerUiWhenMinimized?a.u.get("miniplayer"):null)&&(this.I.o?a.load():a.unload());this.u.S("minimized")};
g.h.setInline=function(a){this.I.setInline(a)};
g.h.setImmersivePreview=function(a){this.I.setImmersivePreview(a)};
g.h.WM=function(){"picture-in-picture"==this.B.ua().webkitPresentationMode?fI(this.I,!0):fI(this.I,!1)};
g.h.togglePictureInPicture=function(){var a=g.W(this);a&&a.togglePictureInPicture()};
g.h.cueVideoByPlayerVars=function(a,b){this.o.B&&uL(a);if(a&&oC(a)){this.Ea=!0;VS(this,a);var c=this.F.ya();c&&c.isValid()?qT(this,c,b):tC(this.F,(0,g.x)(this.np,this))}else b||(b=this.getPresentingPlayerType()),1==b&&this.Bn(),qT(this,new g.aB(this.o,a),b)};
g.h.cuePlaylist=function(a,b,c,d){this.Ea=!0;VS(this,Ju(a,b,c,d));tC(this.F,(0,g.x)(this.np,this))};
g.h.loadPlaylist=function(a,b,c,d){this.Ea=!1;VS(this,Ju(a,b,c,d));tC(this.F,(0,g.x)(this.np,this))};
g.h.np=function(){var a=this.F.ya();if(a){var b=this.getVideoData();b.Lh||!this.Ea?(b=b.sh,a=iS(this,a),b&&pT(this,a)):qT(this,a)}this.u.na("onPlaylistUpdate")};
g.h.nextVideo=function(a,b){var c=this,d=this.w.getVideoData().suggestions;if(g.jL(this.u)&&d){d=(0,g.Cc)(d,function(f){return g.jM(c.o,f)});
d=d[0];var e=b?d.Tw:d.Ob;g.rT(this,d.ya().videoId,e,d.getPlaylistId(),b)}else this.aa?this.u.na("onPlaylistNext"):3==this.getPresentingPlayerType()?g.RK(this.A).nextVideo():this.F&&(hz(this.o)&&!this.u.isFullscreen()?kT(this,"yt.www.watch.lists.next"):(this.F.hasNext(a)&&rC(this.F,pC(this.F)),this.F.loaded?(d=b&&g.P(this.o.experiments,"html5_player_autonav_logging"),iS(this,this.F.ya(void 0,b,d),1)):this.Ea=!1))};
g.h.previousVideo=function(a){if(this.aa)this.u.na("onPlaylistPrevious");else if(3==this.getPresentingPlayerType())g.RK(this.A).BG();else if(this.F)if(hz(this.o)&&!this.u.isFullscreen())kT(this,"yt.www.watch.lists.prev");else{var b=this.F;(b.loop||a||0<=b.index-1)&&rC(this.F,qC(this.F));this.F.loaded?iS(this,this.F.ya(),1):this.Ea=!1}};
g.h.playVideoAt=function(a){this.aa?this.u.na("onPlaylistIndex",a):this.F&&(this.F.loaded?iS(this,this.F.ya(a),1):this.Ea=!1,rC(this.F,a))};
g.h.getPlaylist=function(){return this.F};
g.h.gK=function(a){this.u.na("onCueRangeEnter",a.getId())};
g.h.hK=function(a){this.u.na("onCueRangeExit",a.getId())};
g.h.lK=function(){var a=this;this.getPresentingPlayerType();this.Ca||(this.Ca=ps(QA,this.tA,this));CI(this.P,this.C.getVideoData(),vT(this));US(this)&&this.o.u&&"embedded"==MB(SS(this))&&this.pd&&.01>Math.random()&&g.Rq("autoplayTriggered",{intentional:this.Uc});this.pd=!1;var b=g.ds(this.Md||(this.I.o?3:0));if(b){var c={cpn:this.getVideoData().clientPlaybackNonce,csn:b};if(g.P(this.o.experiments,"web_playback_associated_ve")&&null!=this.getVideoData().Af){var d=g.Wr(this.getVideoData().Af);g.us(b,
d);c.playbackVe=g.Yr(d)}g.P(this.o.experiments,"kevlar_playback_associated_queue")&&this.getVideoData().queueInfo&&(c.queueInfo=this.getVideoData().queueInfo);g.Rq("playbackAssociated",c)}tS(this,"web_player_inline_botguard")&&(b=this.getVideoData().botguardData)&&(to("BG_I",b.interpreterScript),to("BG_IU",b.interpreterUrl),to("BG_P",b.program),g.jz(this.o)?Sp(function(){ZS(a)}):ZS(this))};
g.h.hL=function(){this.u.S("internalAbandon");tS(this,"html5_ad_module_cleanup_killswitch")||hT(this)};
g.h.tA=function(a){a=a.o;if(!isNaN(a)&&0<a&&this.w){var b=this.w.B;b.o&&0<a&&(b.o.u.aft=[a])}};
g.h.fK=function(){this.o.w&&this.C?this.u.na("onApiChange",this.C.getPlayerType()):this.u.na("onApiChange")};
g.h.GL=function(){var a=this.B;a={volume:g.Md(Math.floor(100*a.getVolume()),0,100),muted:a.Xn()};a.muted||aT(this,!1);this.R=g.Pb(a);this.u.na("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.u.na("onMutedAutoplayStarts"))};
g.h.bL=function(){var a=xT(this);NS(this,a?1:0);zT(this,!!a)};
g.h.isFullscreen=function(){return this.I.isFullscreen()};
g.h.MM=function(){0!==this.I.w&&1!==this.I.w||NS(this,xT(this)?1:0);this.o.bn&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.ol()};
g.h.oL=function(a){3!=this.getPresentingPlayerType()&&this.u.S("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.W(this,a))2==this.Z?XS(this):(null!=this.ba&&this.ba.Ha()&&this.ba.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.W(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.w.getVideoData(),b=new g.aB(this.o,{video_id:a.gv||a.videoId,oauth_token:a.oauthToken});b.gf=g.Pb(a.gf);oT(this,6);qT(this,b,1);null!=this.ba&&this.ba.stop()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.W(this,b))&&this.o.rd.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.updatePlaylist=function(){WS(this);this.u.na("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.pe=a;this.Ic=b;this.u.S("sizestylechange",a,b);this.G.ke()};
g.h.isWidescreen=function(){return this.Ic};
g.h.isInline=function(){return this.I.isInline()};
g.h.getAdState=function(){if(3==this.getPresentingPlayerType())return g.RK(this.A).getAdState();if(!this.Mb()){var a=GL(this.A);if(a)return a.getAdState()}return-1};
g.h.LM=function(a){var b=this.G.getVideoContentRect();qh(this.od,b)||(this.od=b,this.C&&WJ(this.C),this.w&&this.w!=this.C&&WJ(this.w),1==this.I.w&&this.Ta&&zT(this,!0));this.Hc&&g.Td(this.Hc,a)||(this.u.S("appresize",a),this.Hc=a)};
g.h.Qc=function(){return this.u.Qc()};
g.h.fN=function(){this.getPresentingPlayerType();BT(this,"signature",void 0,!0)};
g.h.KA=function(){HS(this);GS(this)};
g.h.HM=function(a){hK(a,this.B.To())};
g.h.IK=function(){this.u.na("CONNECTION_ISSUE")};
g.h.IG=function(a){this.u.S("heartbeatparams",a)};
g.h.setBlackout=function(a){this.o.Wg=a;this.C&&(g.PH(this.C.B),this.o.R&&DT(this))};
g.h.setAccountLinkState=function(a){var b=g.W(this);b&&(b.getVideoData().Zh=a)};
g.h.WL=function(){var a=g.W(this);if(a){var b=!cL(this.u);g.wK(a,b)}};
g.h.rL=function(){this.u.na("onLoadedMetadata")};
g.h.WK=function(){this.u.na("onDrmOutputRestricted")};
g.h.X=function(){this.A.dispose();this.Aa.dispose();this.U&&this.U.dispose();this.w.dispose();HS(this);g.Ie(g.Fb(this.Kc),this.F);os(this.Ca);this.Ca=0;g.A.prototype.X.call(this)};
g.h.setScreenLayer=function(a){this.Md=a};
g.h.cancelPendingLocalMediaById=function(a){if(this.ha){var b=this.ha,c=b.api.kb(),d=c?c.getVideoData():null;c&&(null===d||void 0===d?0:QB(d))&&(null===d||void 0===d?void 0:d.videoId)===a?(c.w&&XF(c.w),RB(d,!1)):b.player.getVideoData().videoId===a&&(b.player.stopVideo(),b=b.player,b.w&&XF(b.w));a=zt(a)}else a=Promise.reject();return a};
g.h.fetchLocalMedia=function(){if(this.ha){var a=this.ha,b=a.api.kb();if(b){var c=b.getVideoData();QB(c)||(ut(c.videoId,2),b.unsubscribe("localmediacomplete",a.o,a),b.subscribe("localmediacomplete",a.o,a),g.LJ(g.W(a.api.app,void 0)),RB(c,!0),mS(c),a.api.playVideo())}}};
g.h.fetchLocalMediaById=function(a){if(this.ha){var b=this.ha;rt(a)||(0===tt(2).length?nS(b,a):ut(a,3))}};
g.h.getLocalMediaInfoById=function(a){return this.ha?this.ha.getLocalMediaInfoById(a):Promise.reject()};
g.h.getAllLocalMediaInfo=function(){return this.ha?this.ha.getAllLocalMediaInfo():Promise.reject()};
g.h.getStatsForNerds=function(){var a=this.u,b=g.W(this),c=a.getVideoData(),d=a.app.B,e=d.ua(),f=b.Ur(),k=b.ha,l=8*HI(k,"bandwidth")/1024,m=HI(k,"networkactivity")/1024,n=HI(k,"bufferhealth");if(b.F){var p=b.T.useInnertubeDrmService()?"IT/":"";p+=b.F.o.ge()+"/"+Fu(SJ(b));p+="/"+b.F.ge()}else p="";var t=c.hy()?"DAI, ":"",u=b.getPlayerState().o.toString(16),z=d.getCurrentTime().toFixed(2),C=Nt(d.Dd(),",",3);u="s:"+u+" t:"+z+" b:"+C+" ";d.Yl()&&(u+="S");d.Dh()&&(u+="P");d.Bf()&&(u+="E");d=b.B;d=d.o?
d.o.ha:void 0;d&&(u+=" l:"+d.toFixed());t+=u;d=g.iz();u=g.WK(a).WF;z=c.xa&&!c.xa.o?"display:none":"";if((C=c.clientPlaybackNonce)&&16==C.length){for(var D=0,E="",F=0;10>F;F++)if(D=(D<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(C.charAt(F)),4==F%5){for(var G="",fa=0;6>fa;fa++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(D&31)+G,D>>=5;E+=G}C=E.substr(0,4)+" "+E.substr(4,4)+" "+E.substr(8,4)}else C="";l={video_id_and_cpn:c.videoId+" / "+C,codecs:"",dims_and_frames:"",
bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:t,bandwidth_style:z,network_activity_style:z,network_activity_bytes:m.toFixed(0)+" KB",shader_info:u,shader_info_style:u?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<d?"*"+d.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=PB(c);a=Math.round(a)+
"% / "+Math.round(a*f)+"%";f=c.Am.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.Ba)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.HJ(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=oS(a),!c.Vb||a.audio&&a.video||(l.codecs+=" / "+oS(c.Vb)),e.o||e.primaries?(a=e.o||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),
l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.va;a=c.ze;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(qB(c)?" Manifestless":"");else if(e){a=HI(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=qB(c)?"Manifestless, ":"";c.yo&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";
break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=GI(k,"bandwidth");l.network_activity_samples=
GI(k,"networkactivity");l.live_latency_samples=GI(k,"livelatency");l.buffer_health_samples=GI(k,"bufferhealth");iB(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20200517_0_RC0",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.M&&this.M.postId?(a=this.o.getVideoUrl(a),a=Dd(a,"v"),a.replace("/watch","/clip/"+this.M.postId)):this.o.getVideoUrl(a,b,c,d,e)};
var AS={};var Rla="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" ");KT.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return LT(this,a,b);var d=1===this.u;d&&this.o.app.P.tick("a_bid_s");var e=Ola();if(null!==e)return d&&this.o.app.P.tick("a_bid_f"),LT(this,a,b,e);e=Pla();d&&Jf(e,function(){c.o.app.P.tick("a_bid_f")});
return e.then(function(f){return LT(c,a,b,f)})};
KT.prototype.reset=function(){this.w=this.u=1};var gsa={zS:"replaceUrlMacros",zR:"isExternalShelfAllowedFor"};g.r(NT,g.iC);var hsa={commandMetadata:!0,loggingUrls:!0};g.r(VT,g.A);VT.prototype.X=function(){this.o={};g.A.prototype.X.call(this)};
VT.prototype.executeCommand=function(a,b,c){var d=this;c=void 0===c?{}:c;this.ea();a.loggingUrls&&WT(this,"loggingUrls",a,b,c);Object.keys(a).filter(function(e){return!hsa.hasOwnProperty(e)}).forEach(function(e){return WT(d,e,a,b,c)})};XT.prototype.o=function(){return"adLifecycleCommand"};
XT.prototype.Fa=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.uf(function(){b.u.dz()});
break;case "END_LINEAR_AD":g.uf(function(){b.u.cz()});
break;case "END_LINEAR_AD_PLACEMENT":g.uf(function(){b.u.ct()});
break;case "FILL_INSTREAM_SLOT":g.uf(function(){a.elementId&&b.u.Xw(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.uf(function(){a.elementId&&(null!==b.A&&(LW(b.w)||MW(b.w)||NW(b.w))&&b.A.Fr(a.elementId),b.u.Fr(a.elementId))});
break;case "CLEAR_ABOVE_FEED_SLOT":g.uf(function(){null!==b.A&&(LW(b.w)||MW(b.w)||NW(b.w))&&b.A.kr();b.u.kr()})}};ZT.prototype.o=function(){return"adPingingEndpoint"};
ZT.prototype.Fa=function(a,b,c){c=void 0===c?{}:c;this.u.send(a,b,c)};$T.prototype.o=function(){return"adPlayerControlsCommand"};
$T.prototype.Fa=function(a){switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var b=this.u;b=WU(b.o)&&b.u.uh()?b.o.getDuration(2):0;if(0>=b)break;this.u.seekTo(g.Md(b-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,b));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":this.u.resume()}};aU.prototype.o=function(){return"changeEngagementPanelVisibilityAction"};
aU.prototype.Fa=function(a){this.K.na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};bU.prototype.o=function(){return"clearCueRangesCommand"};
bU.prototype.Fa=function(){var a=this;g.uf(function(){var b=a.u;fX(b,Array.from(b.G))})};cU.prototype.send=function(a,b,c){try{var d=a.match(md);if("https"===d[1])var e=a;else d[1]="https",e=kd("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=cn(e);a=[];sq(e)&&a.push({headerType:"USER_AUTH"});this.o.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(k){}};dU.prototype.o=function(){return"loggingUrls"};
dU.prototype.Fa=function(a,b,c){c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.baseUrl&&this.u.send(d.baseUrl,b,c)};eU.prototype.o=function(){return"muteAdEndpoint"};
eU.prototype.Fa=function(a){var b=this;switch(a.type){case "SKIP":g.uf(function(){b.u.ct()})}};fU.prototype.o=function(){return"pingingEndpoint"};
fU.prototype.Fa=function(){};gU.prototype.o=function(){return"urlEndpoint"};
gU.prototype.Fa=function(a,b){if(a.url){var c=g.dn(a.url,b);g.GN(c)}};g.r(hU,g.A);iU.prototype.showCompanion=function(a,b,c){return jU(this).then(function(){return nU(a,b,c)})};pU.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.na("updateKevlarOrC3Companion",b)};qU.prototype.Kl=function(){return!1};
qU.prototype.R=function(){return function(){return null}};g.r(tU,qU);g.h=tU.prototype;g.h.bd=function(){return!0};
g.h.Ec=function(){return!1};
g.h.isSkippable=function(){return null!=this.ba};
g.h.getVideoUrl=function(){return this.P};
g.h.Kl=function(){return!0};g.r(wU,qU);wU.prototype.bd=function(){return!0};
wU.prototype.Ec=function(){return!0};g.r(DU,qU);DU.prototype.bd=function(){return!0};
DU.prototype.Ec=function(){return!1};
DU.prototype.Kl=function(){return!0};
DU.prototype.R=function(){return function(){return g.ce("video-ads")}};EU.prototype.xb=function(){return this.M};
EU.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.xb().u};var jma=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];var RU=null;g.r(QU,g.O);QU.prototype.ul=function(a){return this.o.hasOwnProperty(a)?this.o[a].ul():{}};
g.Ga("ytads.bulleit.getVideoMetadata",function(a){return SU().ul(a)},void 0);
g.Ga("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=SU();c=lma(c);null!==c&&d.S(c,{queryId:a,viewabilityString:b})},void 0);TU.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.dn(a.baseUrl,kma(b,c,d)),f;if(a.headers)for(var k=g.q(a.headers),l=k.next();!l.done;l=k.next())switch(l.value.headerType){case "USER_AUTH":var m=this.Qd();m&&(f||(f={}),f.Authorization="Bearer "+m)}g.cr(e,void 0,d,f)}catch(n){}};g.r(UU,TU);UU.prototype.Qd=function(){return this.o?this.o.Qd():""};g.r(VU,g.A);g.r(aV,g.A);g.r(Y,g.O);g.h=Y.prototype;g.h.ul=function(){return{}};
g.h.wu=function(){};
g.h.ib=function(a){this.Je();this.S(a)};
g.h.Iz=function(){};
g.h.Je=function(){sV(this,this.V,3);this.V=[]};
g.h.getDuration=function(){return this.K.getDuration(2,!1)};
g.h.mh=function(){var a=this.o;bV(a)||!oV(a,"impression")&&!oV(a,"start")||oV(a,"abandon")||oV(a,"complete")||oV(a,"skip")||(dV(a)?jV(a,"pause"):iV(a,"pause"))};
g.h.sg=function(){this.ba||this.G||this.Lb()};
g.h.Zc=function(){lV(this.o,this.getDuration())};
g.h.Ac=function(){var a=this.o;!oV(a,"impression")||oV(a,"skip")||oV(a,"complete")||jV(a,"abandon")};
g.h.nh=function(){var a=this.o;dV(a)?iV(a,"skip"):!oV(a,"impression")||oV(a,"abandon")||oV(a,"complete")||iV(a,"skip")};
g.h.Lb=function(){if(!this.G){var a=vV(this);this.o.w.AD_CPN=a;kV(this.o);this.G=!0}};
g.h.Wb=function(a){a=a||"";var b="",c="",d="";WU(this.K)&&(b=g.PK(this.K,2).o,this.K.app.B&&(c=this.K.app.B.je(),null!=this.K.app.B.Ye()&&(d=this.K.app.B.Ye())));var e=this.o;e.w=OU(e.w,MU(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));iV(e,"error")};
g.h.Ri=function(){};
g.h.DB=function(){this.S("e")};
g.h.EB=function(){this.S("j")};
g.h.FB=function(){this.S("k")};
g.h.GB=function(){this.S("l")};
g.h.HB=function(){this.S("m")};
g.h.IB=function(){this.S("n")};
g.h.JB=function(){this.S("s")};
g.h.dispose=function(){this.ea()||(this.Je(),this.w.unsubscribe("e",this.DB,this),this.w.unsubscribe("j",this.EB,this),this.w.unsubscribe("k",this.FB,this),this.w.unsubscribe("l",this.GB,this),this.w.unsubscribe("m",this.HB,this),this.w.unsubscribe("n",this.IB,this),this.w.unsubscribe("s",this.JB,this),delete this.w.o[this.F.F],g.O.prototype.dispose.call(this))};
g.h.Uw=function(){return""};g.r(wV,qU);wV.prototype.bd=function(){return!1};
wV.prototype.Ec=function(){return!0};g.r(xV,ST);g.r(yV,Y);yV.prototype.dc=function(){var a=this,b=new xV(this.F.o,this.macros),c=this.K.getVideoData(2),d=b.renderer;g.P(this.K.N().experiments,"ignore_video_data_current_ad_check")&&c&&d&&d.adVideoId?AV(this,c,b):c&&c.Id&&zV(c,b)?AV(this,c,b):(this.u=function(e,f,k){f&&2==k&&zV(f,b)&&f.Id&&(a.u&&(a.K.removeEventListener("videodatachange",a.u),a.u=null),AV(a,f,b))},this.K.addEventListener("videodatachange",this.u))};
yV.prototype.Ri=function(a){pV(this.o,a)};
yV.prototype.X=function(){this.u&&(this.K.removeEventListener("videodatachange",this.u),this.u=null);Y.prototype.X.call(this)};g.r(BV,qU);BV.prototype.bd=function(){return!0};
BV.prototype.Ec=function(){return!1};g.r(CV,ST);g.r(DV,Y);g.h=DV.prototype;g.h.dc=function(){0<this.u&&this.Lb()};
g.h.Lb=function(){var a=this;this.Ga=new g.I(function(){a.Zc();for(var b=g.q(a.A.o.completionCommands||[]),c=b.next();!c.done;c=b.next())a.B.executeCommand(c.value,a.macros);a.ib("h")},this.u,this);
g.B(this,this.Ga);this.Ga.start();tV(this,[new CV(this.A.o,this.macros)]);Y.prototype.Lb.call(this)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
g.h.Zc=function(){Y.prototype.Zc.call(this)};
g.h.ib=function(a){this.Ga&&this.Ga.stop();Y.prototype.ib.call(this,a)};g.r(EV,ST);g.r(FV,Y);FV.prototype.dc=function(){this.Lb()};
FV.prototype.Lb=function(){tV(this,[new EV(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
FV.prototype.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
FV.prototype.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};g.r(GV,qU);GV.prototype.bd=function(){return!0};
GV.prototype.Ec=function(){return!1};g.r(HV,qU);HV.prototype.bd=function(){return!0};
HV.prototype.Ec=function(){return!1};g.r(IV,qU);IV.prototype.bd=function(){return!1};
IV.prototype.Ec=function(){return!0};g.r(JV,qU);JV.prototype.bd=function(){return!1};
JV.prototype.Ec=function(){return!0};g.r(KV,qU);KV.prototype.bd=function(){return!0};
KV.prototype.Ec=function(){return!0};g.r(LV,qU);LV.prototype.bd=function(){return!0};
LV.prototype.Ec=function(){return!1};g.r(MV,qU);MV.prototype.bd=function(){return!1};
MV.prototype.Ec=function(){return!0};g.r(NV,qU);NV.prototype.bd=function(){return!1};
NV.prototype.Ec=function(){return!0};g.r(OV,qU);OV.prototype.bd=function(){return!0};
OV.prototype.Ec=function(){return!1};g.r(PV,qU);PV.prototype.bd=function(){return!0};
PV.prototype.Ec=function(){return!1};QV.prototype.create=function(a,b){return a instanceof tU?this.ba.create(a,b):a instanceof KV?this.G.create(a,b):a instanceof JV?this.F.create(a,b):a instanceof NV?this.M.create(a,b):a instanceof DU?this.R.create(a,b):a instanceof MV?this.P.create(a,b):a instanceof BV?this.u.create(a,b):a instanceof LV?this.I.create(a,b):a instanceof wV?this.o.create(a,b):a instanceof PV?this.V.create(a,b):a instanceof OV?this.U.create(a,b):a instanceof wU?this.w.create(a,b):a instanceof HV?this.B.create(a,b):a instanceof
GV?this.A.create(a,b):a instanceof IV?this.C.create(a,b):null};g.r(RV,Y);g.h=RV.prototype;g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
g.h.mh=function(){Y.prototype.mh.call(this);this.S("o",2)};
g.h.sg=function(){Y.prototype.sg.call(this);this.S("p",1)};
g.h.Lb=function(){Y.prototype.Lb.call(this);this.u.stop();this.A.L(this.K,g.lC("bltplayback"),this.SI);var a=new g.iC(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.eL(this.K,[a],2);this.S("p",1)};
g.h.Zc=function(){Y.prototype.Zc.call(this);this.ib("h")};
g.h.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};
g.h.dc=function(){ZU(this.K,!1);var a=this.B.u||{};a.autoplay="1";this.K.cueVideoByPlayerVars(a,2);this.u.start();this.K.playVideo(2);this.K.na("onAdIntroStateChange",1)};
g.h.ib=function(a){this.u.stop();ZU(this.K,!0);"c"!=a&&rY(this.C.aa);"c"!=a&&this.K.na("onAdComplete");this.K.na("onAdEnd");this.S(a);this.K.na("onAdIntroStateChange",0)};
g.h.SI=function(a){"bltcompletion"==a.getId()&&(g.fR(this.K.app,"bltplayback",2),lV(this.o,this.getDuration()))};g.r(SV,ST);g.r(TV,Y);g.h=TV.prototype;g.h.dc=function(){0>=this.C&&(g.M(Error("durationMs was specified incorrectly with a value of: "+this.C)),this.Zc());this.Lb();this.K.addEventListener("progresssync",this.I)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("d")};
g.h.Lb=function(){var a=this.K.N();Y.prototype.Lb.call(this);this.u=Math.floor(this.K.getCurrentTime());this.A=this.u+this.C/1E3;g.$y(a)?this.K.na("onAdMessageChange",{renderer:this.B.o,startTimeSecs:this.u}):tV(this,[new SV(this.B.o)]);a=(a=this.K.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.ds();b&&g.Rq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.A,timeToAdBreakSec:Math.ceil(this.A-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.o.videoAdBreakOffsetMs/1E3)});
g.V(g.PK(this.K,1),512)&&(a=(a=this.K.getVideoData(1))&&a.clientPlaybackNonce||"",(b=g.ds())&&g.Rq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.A,timeToAdBreakSec:Math.ceil(this.A-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.B.o.videoAdBreakOffsetMs/1E3)}),this.Zc())};
g.h.Zc=function(){Y.prototype.Zc.call(this);this.ib("h")};
g.h.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};
g.h.ib=function(a){this.K.removeEventListener("progresssync",this.I);this.Je();this.S(a)};
g.h.dispose=function(){this.K.removeEventListener("progresssync",this.I);Y.prototype.dispose.call(this)};
g.h.Je=function(){g.$y(this.K.N())?this.K.na("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):Y.prototype.Je.call(this)};g.r(UV,ST);g.r(VV,Y);VV.prototype.dc=function(){tV(this,[new UV(this.F.o,this.macros)])};
VV.prototype.Ri=function(a){pV(this.o,a)};g.r(WV,Y);WV.prototype.dc=function(){var a=vV(this);this.o.w.AD_CPN=a;kV(this.o)};g.r(XV,ST);g.r(YV,ST);g.r(ZV,Y);ZV.prototype.dc=function(){var a;if(a=g.P(this.K.N().experiments,"render_enhanced_overlays_as_ctas_for_desktop"))a=this.u.o,a=a.contentSupportedRenderer?!!a.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer:!1;a?(a=new YV(this.u.o,this.macros),tV(this,[a])):(a=new XV(this.u.o,this.macros),tV(this,[a]))};g.r($V,ST);g.r(aW,Y);aW.prototype.dc=function(){this.Lb()};
aW.prototype.Lb=function(){tV(this,[new $V(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
aW.prototype.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};eW.prototype.sendAdsPing=function(a){this.B.send(a,iW(this),{})};g.r(kW,ST);g.r(lW,Y);lW.prototype.dc=function(){var a=new kW(this.u.o,this.macros);tV(this,[a])};g.r(mW,ST);g.r(nW,Y);nW.prototype.dc=function(){var a=new mW(this.F.o,this.macros);tV(this,[a])};
nW.prototype.Ri=function(a){pV(this.o,a)};g.r(qW,g.O);qW.prototype.getProgressState=function(){return this.w};
qW.prototype.start=function(){this.A=Date.now();pW(this,{current:this.o/1E3,duration:this.u/1E3});this.Ga.start()};
qW.prototype.stop=function(){this.Ga.stop()};g.r(rW,ST);g.r(sW,Y);g.h=sW.prototype;g.h.dc=function(){this.Lb()};
g.h.Lb=function(){var a=this.B.o;g.$y(this.K.N())?(a=Bma(this.I,a),this.K.na("onAdInfoChange",a),this.u&&(this.C=Date.now(),this.u.start())):tV(this,[new rW(a)]);Y.prototype.Lb.call(this)};
g.h.getDuration=function(){return this.B.u};
g.h.mh=function(){Y.prototype.mh.call(this);this.u&&this.u.stop()};
g.h.sg=function(){Y.prototype.sg.call(this);this.u&&this.u.start()};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
g.h.nh=function(){Y.prototype.nh.call(this);this.ib("h")};
g.h.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};
g.h.ib=function(a){this.Je();"c"!=a&&rY(this.P.aa);this.S(a)};
g.h.Ri=function(a){switch(a){case "skip-button":this.nh();break;case "survey-submit":this.ib("h")}};
g.h.Je=function(){g.$y(this.K.N())?(this.u&&this.u.stop(),this.K.na("onAdInfoChange",null)):Y.prototype.Je.call(this)};g.r(tW,ST);g.r(uW,Y);uW.prototype.dc=function(){this.Lb()};
uW.prototype.Lb=function(){tV(this,[new tW(this.u.o,this.macros)]);Y.prototype.Lb.call(this)};
uW.prototype.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
uW.prototype.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};g.r(vW,ST);g.r(wW,Y);g.h=wW.prototype;g.h.dc=function(){0<this.u&&this.Lb()};
g.h.Lb=function(){this.Ga=new g.I(this.Zc,this.u,this);g.B(this,this.Ga);this.Ga.start();tV(this,[new vW(this.A.o)]);Y.prototype.Lb.call(this)};
g.h.Zc=function(){Y.prototype.Zc.call(this);this.ib("h");for(var a=g.q(this.A.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
g.h.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};
g.h.ib=function(a){this.Ga&&this.Ga.stop();Y.prototype.ib.call(this,a)};g.r(xW,g.A);xW.prototype.start=function(){this.ea()||this.o||(this.w=(0,g.H)(),this.o=new g.I(this.B,Math.max(0,this.A-this.u),this),g.B(this,this.o),this.o.start())};
xW.prototype.stop=function(){this.o&&(this.w=this.u=0,yW(this))};
xW.prototype.pause=function(){this.o&&(this.u+=(0,g.H)()-this.w,yW(this))};
xW.prototype.X=function(){yW(this);g.A.prototype.X.call(this)};g.r(zW,ST);g.r(AW,ST);g.r(BW,ST);g.r(CW,ST);g.r(DW,ST);g.r(EW,ST);g.r(FW,ST);g.r(GW,Y);g.h=GW.prototype;g.h.ul=function(){return{currentTime:this.K.getCurrentTime(2,!1),duration:this.u.u,isPlaying:XU(this.K),isVpaid:!1,isYouTube:!0,volume:this.K.isMuted()?0:this.K.getVolume()/100}};
g.h.dc=function(){if(this.u.I)uV(this),this.ib("i");else{var a=this.u.o.legacyInfoCardVastExtension,b=this.u.B;a&&b&&this.K.N().I.add(b,{zn:a});try{var c=this.u.o.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp){var d=c.siub,e=c.scs,f=c.bgp;a=window;var k="//pagead2.googlesyndication.com/bg/"+g.dd(c.bgub)+".js",l=a.document;c={};e&&(c._scs_=e);c._bgu_=k;c._bgp_=f;c._li_="v_h.3.0.0.0";var m=a.GoogleTyFxhY;m&&"function"==typeof m.push||(m=a.GoogleTyFxhY=[]);m.push(c);var n=Zd(l).createElement("SCRIPT");
n.type="text/javascript";n.async=!0;var p=xaa(g.Yb("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.dd(d)+".js"});$c(n,p);l.getElementsByTagName("head")[0].appendChild(n)}}catch(t){g.Tq(t)}ZU(this.K,!1);d=uU(this.u);e=this.K.N();g.P(this.K.N().experiments,"disable_force_iv_load_policy_on_bulleit")||(d.iv_load_policy=e.o||g.$y(e)||g.lz(e)?3:1);f=this.K.getVideoData(1);f.Kf&&(d.ctrl=f.Kf);f.Lf&&(d.ytr=f.Lf);f.Fn&&(d.ytrcc=f.Fn);f.isMdxPlayback&&(d.mdx="1");d.vvt&&(d.vss_credentials_token=d.vvt,
f.Xh&&(d.vss_credentials_token_type=f.Xh),f.mdxEnvironment&&(d.mdx_environment=f.mdxEnvironment));this.ga&&this.S("r",-1);TW(e)&&(e=SW(this),e=xma(this.da,e,this.u.o.adNextParams||""),e.attributionInfo=PW(this),this.K.na("onAdInfoChange",e));this.P?this.I.start():(this.K.cueVideoByPlayerVars(d,2),this.I.start(),this.K.playVideo(2))}};
g.h.mh=function(){Y.prototype.mh.call(this);this.S("o",2)};
g.h.sg=function(){Y.prototype.sg.call(this);this.S("p",1)};
g.h.Lb=function(){Y.prototype.Lb.call(this);this.I.stop();this.Z.L(this.K,g.lC("bltplayback"),this.TI);var a=new g.iC(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.eL(this.K,[a],2);a=OW(this);this.B.ga=a;if(!KW(this.C)){a=[];var b=this.K.N(),c=this.K.getVideoData(2);if(g.P(b.experiments,"disable_ad_info_event_for_music_web")?mz(b)||g.$y(b):TW(b)){var d=c&&c.isListed?{channelId:c.Ng,channelThumbnailUrl:c.Id||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,
showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:null;d&&this.K.na("onAdMetadataAvailable",d)}g.$y(b)||(!g.lz(b)||(g.P(this.K.N().experiments,"enable_upg_processed_dvr_dai")?this.P:EY(this.B).Ef())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.B&&(b=c.title,d=c.author,c=c.Id,b&&d&&c?c=[new BW(b),new AW(c),new CW(d)]:(g.Uq(new Sq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),tV(this,c)),a.push(PW(this)),c=this.u.C,null==c?c=null:(b=
{},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new FW({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!vU(this.u)&&(c=SW(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=QW(this)),a.push(new EW(c)))),c=SW(this),a.push(new DW(c)),tV(this,a))}this.K.isMuted()&&(a=this.o,c=this.K.isMuted(),dV(a)||iV(a,c?"mute":"unmute"));this.S("p",1);HW(this)&&(a=null!==EY(this.B)?EY(this.B).clientPlaybackNonce:"",Bqa(this.R,IW(this),
this.u,a,this),this.U=!0);this.K.na("onAdStart",OW(this));a=this.ha;c=this.u.B||"";(b=a.u.kb())&&b.getVideoData().videoId===c?a.o=QH(b.B):a.o=null;a=g.q(this.u.o.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.B.executeCommand(c.value,this.macros)};
g.h.TI=function(a){"bltcompletion"==a.getId()&&(g.fR(this.K.app,"bltplayback",2),lV(this.o,this.getDuration()),JW(this,"h"))};
g.h.Zc=function(){Y.prototype.Zc.call(this);this.ib("h");for(var a=g.q(this.u.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros);this.aa=!0};
g.h.Ac=function(){Y.prototype.Ac.call(this);this.ib("c")};
g.h.RB=function(){var a=this.o;bV(a)||jV(a,"clickthrough")};
g.h.skip=function(){this.nh()};
g.h.nh=function(){Y.prototype.nh.call(this);this.ib("h")};
g.h.Wb=function(a){Y.prototype.Wb.call(this,a);this.ib("i")};
g.h.ib=function(a){this.I.stop();this.A&&this.A.stop();KW(this.C)||this.Je();ZU(this.K,!0);"c"!=a&&(rY(this.B.aa),this.K.na("onAdComplete"));JW(this,a);this.K.na("onAdEnd",OW(this));this.S(a)};
g.h.Je=function(){var a=this.K.N();TW(a)&&(g.lz(a)||g.P(a.experiments,"enable_topsoil_wta_for_halftime")||g.$y(a))?this.K.na("onAdInfoChange",null):Y.prototype.Je.call(this)};
g.h.wu=function(){this.qy&&this.K.playVideo()};
g.h.Iz=function(a){this.A&&(g.QC(a.state)?this.A.start():this.A.pause());g.P(this.K.N().experiments,"enable_reset_for_seek_ad_for_web")&&!this.P&&!this.aa&&g.V(a.state,16)&&3<this.K.getCurrentTime(2,!1)&&AT(this.K.app,0,!0,void 0,2,!0)};
g.h.qy=function(){return 2==this.K.getPlayerState(2)};
g.h.Ri=function(a){if(!KW(this.C)){var b=this.o;if(WU(b.o))switch(a){case "ad-title":b.o.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.o.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.o.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.M||this.wu();break;case "ad-info-icon-button":(this.M=this.qy())||this.K.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.K.N().protocol+"://"+g.ez(this.K.N())+"/channel/"+this.u.V;g.GN(a);break;case "ad-title":this.K.pauseVideo();g.GN(this.K.getVideoUrl());break;case "visit-advertiser":this.K.pauseVideo();g.lz(this.K.N())&&(a=this.u.C)&&(oma(this.o,a.loggingUrls||null),a.urlEndpoint&&a.urlEndpoint.url&&g.GN(a.urlEndpoint.url));a=this.o;bV(a)||jV(a,"clickthrough");break;case "skip-button":this.nh()}}};
g.h.Uw=function(a,b){if(this.u.I)return uV(this),this.ib("i"),"";if(!Number.isFinite(a))return g.Tq(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Tq(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=uU(this.u),e=this.K.app;d=e.U?sla(e.U,d,c,a,b):ula(e.Aa,d,c,a,b);if(a+c>b){var f=this.K.app;c=b-a;if(f.U){e=void 0;var k=null;f=g.q(f.U.o);for(var l=f.next();!l.done;l=f.next())if(l=l.value,l.Eb===d){k=l;break}k&&(void 0===
e&&(e=k.Nb),RR(k,c,e))}else{e=f.Aa;k=void 0;f=null;l=g.q(e.o);for(var m=l.next();!m.done;m=l.next())if(m=m.value,m.Eb===d){f=m;break}f?(void 0===k&&(k=f.Nb),jS(e,f,c,k)):VR(e,"e.InvalidTimelinePlaybackId timelinePlaybackId="+d)}}return d};
g.h.dispose=function(){XU(this.K)&&!this.P&&this.K.stopVideo(2);JW(this,"c");Y.prototype.dispose.call(this)};UW.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.o[b];c?b=c:(c={uj:null,vy:-Infinity},b=this.o[b]=c);c=a.startSecs+a.o/1E3;if(!(c<b.vy)){b.vy=c;if(b.uj){if(c<b.uj.end){a:{c=b.uj;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.uj.end=a,this.u.vA(a));return}b.uj=
null}a:if(c=a.startSecs+a.durationSecs,c=0>=c?null:c,null===c)a=null;else{switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}var d=Math.max(a.startSecs,0);a={sE:new Qn(d,c),ZF:new gv(d,c-d,a.context,a.identifier,a.event,a.o)}}a&&(c=a.ZF,b.uj=a.sE,this.u.JA(c))}};
UW.prototype.updateTime=function(){};g.r(XW,qU);aX.prototype.reset=function(){return new aX(this.u)};g.r(hX,g.O);g.h=hX.prototype;g.h.Si=function(){var a=this.o;return a.o instanceof tU||a.o instanceof DU||a.o instanceof xU||a.o instanceof wU};
g.h.hm=function(){return this.o.o.Ec()};
g.h.xb=function(){return this.o.xb()};
g.h.gp=function(){return GU(this.o)};
g.h.Et=function(){return FU(this.o)};
g.h.gs=function(a){if(!OT(a)){this.P&&(this.V=this.K.isAtLiveHead(),this.U=Math.ceil((0,g.H)()/1E3));var b=new dX(this.xc);a=eX(a);gX(b,a)}this.ik()};
g.h.Qj=function(){return this.B instanceof NV||this.B instanceof wV||this.B instanceof XW||this.B instanceof IV};
g.h.ly=function(){return!(this.B instanceof MV)&&!this.Qj()};
g.h.im=function(){return this.B instanceof DU};
g.h.uh=function(){return this.B instanceof tU};
g.h.ik=function(){NY(this.xc,this);if(!this.o.B.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.o.P),b=a.next();!b.done;b=a.next())jX(b.value);this.o.B.ad_placement_start=!0}this.F.w=!1;FA("video_to_ad",["apbs"],void 0);this.rB()};
g.h.rB=function(){this.B?this.dc(this.B):this.bh()};
g.h.Vi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;RY(this.xc,0);this.bh(a,b)};
g.h.gA=function(){this.Vi()};
g.h.SJ=function(){iV(this.u.o,"active_view_measurable")};
g.h.TJ=function(){var a=this.u.o;bV(a)||qV(a)||iV(a,"active_view_fully_viewable_audible_half_duration")};
g.h.UJ=function(){};
g.h.VJ=function(){};
g.h.WJ=function(){};
g.h.XJ=function(){};
g.h.ZJ=function(){var a=this.u.o;bV(a)||qV(a)||iV(a,"active_view_viewable")};
g.h.ix=function(){return this.uh()?[this.ao()]:[]};
g.h.Gt=function(a){if(null!==this.u){this.R||(a=new g.$G(a.state,new g.HC),this.R=!0);this.u.Iz(a);var b=a.state;if(this.ba&&g.V(b,1024))this.u.Wb("dom_paused");else if(g.bH(a,2))b=this.F,b.R?cX(b):(b.w=!1,FA("ad_to_ad",["apbs"],void 0)),this.u.Zc();else{var c=a;(g.P(this.K.N().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.eb()&&!c.Jh.eb():c.state.eb())?(b=this.F,b.G&&!b.w&&(b.M=!1,b.w=!0,"ad_to_video"!=b.o&&HA("apbs",void 0,b.o)),this.u.sg()):b.isError()?this.u.Wb(b.u.errorCode):
g.bH(a,4)&&(this.M||this.u.mh())}if(null!==this.u){if(g.bH(a,16)&&(b=this.u.o,!(bV(b)||.5>b.o.getCurrentTime(2,!1)&&!g.P(b.o.N().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.u;if(c.Kl()){var d=g.P(b.I.o.N().experiments,"html5_dai_enable_active_view_creating_completed_adblock");Im(c.F,d)}b.u.G.seek=!0}0>aH(a,4)&&!(0>aH(a,2))&&(b=this.u.o,bV(b)||(dV(b)?jV(b,"resume"):iV(b,"resume")));!g.P(this.K.N().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.bH(a,
512)&&!g.QC(a.state)&&cX(this.F)}}};
g.h.Kz=function(){};
g.h.resume=function(){this.u&&this.u.wu()};
g.h.Ft=function(){this.u&&this.u.ib("h")};
g.h.hp=function(){this.Ft()};
g.h.Jz=function(a){var b=this.xc;b.w&&g.P(b.o.N().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.o.na("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.u.Ri(a)};
g.h.fx=function(){return 0};
g.h.hx=function(){return 1};
g.h.Yp=function(a){if(this.daiEnabled&&this.o.F&&this.o.xb().start<=a&&a<nX(this)){var b=this.o.xb().end;b=void 0===b?Infinity:b;var c=this.K.app;a=void 0===a?-1:a;a=void 0===a?-1:a;b=void 0===b?Infinity:b;c.U?SR(c.U,a,b):kS(c.Aa,a,b)}};
g.h.dc=function(a){g.He(this.u);this.u=a=this.Sg.create(a,NU(JU(this.o)));a.subscribe("c",g.Qa(this.Vi,!0),this);a.subscribe("d",g.Qa(this.Vi,!0,!0),this);a.subscribe("e",this.SJ,this);a.subscribe("h",this.Vi,this);a.subscribe("i",this.gA,this);a.subscribe("j",this.TJ,this);a.subscribe("k",this.UJ,this);a.subscribe("l",this.VJ,this);a.subscribe("m",this.WJ,this);a.subscribe("n",this.XJ,this);a.subscribe("o",this.ks,this);a.subscribe("p",this.ks,this);a.subscribe("r",this.ks,this);a.subscribe("onAdUxUpdate",
this.Jz,this);a.subscribe("s",this.ZJ,this);rV(a);kX(this,!1)};
g.h.bh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.M=!0;g.He(this.u);if(a)var c=!1;else this.daiEnabled?(c=this.K.getCurrentTime(2,!0),c=1>=Math.abs(c-this.o.xb().end/1E3)):c=!0;if(c&&!this.o.B.hasOwnProperty("ad_placement_end")){c=g.q(this.o.I);for(var d=c.next();!d.done;d=c.next())jX(d.value);this.o.B.ad_placement_end=!0}c=this.o.A;null!==c&&($W(this.Le,{cueIdentifier:this.o.u&&this.o.u.identifier,driftRecoveryMs:c,qB:this.o.xb().start,Ay:nX(this)}),this.o.A=null);b||this.daiEnabled?
OY(this.xc,!0):this.P&&this.Et()&&this.uh()?OY(this.xc,!1,Oma(this)):OY(this.xc,!1);kX(this,!0)};
g.h.ks=function(a){RY(this.xc,a)};
g.h.ao=function(){return this.B};
g.h.isLiveStream=function(){return this.P};
g.h.reset=function(){return new hX(this.xc,this.K,this.F.reset(),this.o,this.Le,this.vj,this.Sg,this.daiEnabled)};
g.h.X=function(){g.He(this.u);this.u=null;g.O.prototype.X.call(this)};pX.prototype.create=function(a){return(a.o instanceof xU?this.A:a.o instanceof XW?this.w:""===a.C?this.o:this.u)(a)};rX.prototype.clickCommand=function(a){var b=g.ds();if(!a.clickTrackingParams||!b)return!1;vs(this.client,b,g.Wr(a.clickTrackingParams));return!0};g.r(vX,g.O);g.h=vX.prototype;g.h.xb=function(){return this.o.xb()};
g.h.gp=function(){return GU(this.o)};
g.h.Et=function(){return FU(this.o)};
g.h.Qj=function(){return!1};
g.h.hm=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.gs=function(a){var b=this;if(1!==this.o.w&&2!==this.o.w){var c=[];this.gp()||(c=eX(a));this.o.w=1;Jf(this.B.fetch(this.o.C,{mi:this.o.u||void 0,Pb:this.o.xb(),Bk:sY(this.u.aa)}).then(function(d){if(!b.ea()){var e=c;g.P(b.w.N().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.w.isFullscreen();d=Qma(b,d);var f=b.A;f.u&&d.isEmpty&&ZW("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.o);d.my||(b.o.w=2,gX(new dX(b.u),e),d.isEmpty||(e=b.u,f=d=d.Tg,0!=f.length&&null!==e.oa&&(LW(e.F)||
MW(e.F)||NW(e.F)||r1(e.F)||q1(e.F))&&(f={Tg:f,Pq:f,contentCpn:null!==EY(e)?EY(e).clientPlaybackNonce:"",Yk:1E3*e.o.getDuration(1),so:!0,daiEnabled:!1},F0(e.oa,f)),d=HY(e,d),KY(e,d)))}},function(){gX(new dX(b.u),c);
var d=b.A;d.u&&ZW("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.o)}),function(){2!==b.o.w&&(b.o.w=0);
b.gp()&&JY(b.u)})}};
g.h.ik=function(){};
g.h.Yp=function(){};g.r(wX,g.R);wX.prototype.executeCommand=function(a){a=void 0===a?null:a;this.ea();a&&this.A.executeCommand(a,this.B)};g.r(yX,g.A);yX.prototype.append=function(a){if(!this.G)throw Error("This does not support the append operation");this.mn(a.ua())};
yX.prototype.mn=function(a){this.ua().appendChild(a)};
g.r(zX,yX);zX.prototype.ua=function(){return this.o};g.r(BX,g.A);var isa=new WeakSet;g.r(Z,g.Ru);g.h=Z.prototype;g.h.bind=function(a){if(!this.da&&a.renderer){var b=Object.assign({},AX(this.api,this.ra),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.da=a;this.element.setAttribute("id",this.da);this.za&&g.J(this.element,this.za);this.G=b&&b.adRendererCommands;this.macros=c;this.F=b.trackingParams||null;null!=this.F&&FX(this,this.element,this.F)};
g.h.clear=function(){};
g.h.hide=function(){g.Ru.prototype.hide.call(this);null!=this.F&&GX(this,this.element,!1)};
g.h.show=function(){g.Ru.prototype.show.call(this);if(!this.Ia){this.Ia=!0;var a=this.G&&this.G.impressionCommand;a&&this.ra.executeCommand(a,this.macros,null)}null!=this.F&&GX(this,this.element,!0)};
g.h.onClick=function(a){if(this.F&&!isa.has(a)){var b=this.element;g.pL(this.api,b)&&this.Ha()&&g.nL(this.api,b);isa.add(a)}(a=this.G&&this.G.clickCommand)&&this.ra.executeCommand(a,this.macros,this.lx())};
g.h.lx=function(){return null};
g.h.wJ=function(a){var b=this.R;b.F=!0;b.u=a.touches.length;b.o.isActive()&&(b.o.stop(),b.B=!0);a=a.touches;b.C=CX(b,a)||1!=a.length;var c=a.item(0);b.C||!c?(b.G=Infinity,b.I=Infinity):(b.G=c.clientX,b.I=c.clientY);for(c=b.w.length=0;c<a.length;c++){var d=a.item(c);b.w.push(d.identifier)}};
g.h.vJ=function(a){var b=this.R;a=a.changedTouches.item(0);var c;if(c=Fd()){c=g.Ic;var d="";Jc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Fd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Jc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):nc(g.Ic,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Jc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Jc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.qc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.G,2)+Math.pow(a.clientY-b.I,2)>Math.pow(5,2))b.A=!0};
g.h.uJ=function(a){if(this.R){var b=this.R,c=a.changedTouches;c&&b.F&&1==b.u&&!b.A&&!b.B&&!b.C&&CX(b,c)&&(b.P=a,b.o.start());b.u=a.touches.length;0===b.u&&(b.F=!1,b.A=!1,b.w.length=0);b.B=!1}};
g.h.X=function(){this.clear(null);this.bb(this.wa);for(var a=g.q(this.U),b=a.next();!b.done;b=a.next())this.bb(b.value);g.Ru.prototype.X.call(this)};g.r(IX,g.A);IX.prototype.X=function(){this.u&&g.Fp(this.u);this.o.clear();JX=null;g.A.prototype.X.call(this)};
IX.prototype.register=function(a,b){b&&this.o.set(a,b)};
var JX=null;g.r(NX,yX);NX.prototype.addEventListener=function(a,b){this.C.subscribe(a,b)};
NX.prototype.removeEventListener=function(a,b){this.C.unsubscribe(a,b)};
NX.prototype.dispatchEvent=function(a){this.C.S(a.type,a)};g.r(OX,g.A);g.h=OX.prototype;g.h.bind=function(a){var b=a.renderer,c=b.trackingParams;if(this.P&&this.P!=c)throw Error("Cannot re-bind presenter with new tracking params");if(c){this.P=c;var d=this.view,e=this.o,f=d.ua();g.lL(e,f,d);g.mL(e,f,c)}this.I=b.impressionEndpoints||[];this.macros=Object.assign({},a.macros);return this.B(a)};
g.h.Ha=function(){return this.R};
g.h.show=function(){this.view.show();this.R=!0;var a=this.o,b=this.view.ua();g.pL(a,b)&&g.oL(a,b,!0);QX(this,this.I);this.I=[]};
g.h.hide=function(){this.rs();this.R=!1;var a=this.o,b=this.view.ua();g.pL(a,b)&&g.oL(a,b,!1)};
g.h.rs=function(){this.view.hide()};
g.h.onClick=function(a){a=void 0===a?{}:a;this.G(a);if(this.Ha()){a=this.o;var b=this.view.ua();g.pL(a,b)&&g.nL(a,b)}};
g.h.executeCommand=function(a){this.A.executeCommand(a,PX(this))};g.r(RX,g.O);g.h=RX.prototype;g.h.ua=function(){return this.o.element};
g.h.show=function(){if(!this.Ha()){this.B.L(document,"click",this.gH);this.o.show();var a=this.ua(),b=g.Nh(Dh(this.A)).width,c=g.Nh(this.A),d=Bh(this.A);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
g.h.hide=function(){this.Ha()&&(this.o.hide(),g.Ir(this.B))};
g.h.Ha=function(){return this.o.Ha()};
g.h.setTitle=function(a){a?this.w.show():this.w.hide();this.w.qb(TX(a))};
g.h.gH=function(a){this.Ha()&&(a=a.target,g.xe(this.A,a)||(g.xe(this.u.o["ytp-ad-info-dialog-confirm-button"],a)?this.S("confirmClick"):g.xe(this.o.element,a)||this.S("externalClick")))};
var Uma={qQ:"confirmClick",QQ:"externalClick"};g.r(UX,NX);UX.prototype.setTitle=function(a){this.o.setTitle(a)};
UX.prototype.show=function(){this.o.show()};
UX.prototype.hide=function(){this.o.hide()};
UX.prototype.ua=function(){return this.o.ua()};var Vma={hD:UX},Xma=["confirmClick","externalClick"];g.r(VX,OX);VX.prototype.B=function(a){var b=this.view;a=a.renderer;var c=b.o,d=a.confirmLabel||null;d?c.u.show():c.u.hide();c.u.qb(TX(d));b.setTitle(a.title||null);b.o.o.qb(TX(a.dialogMessage||null));g.re(SX(b.o));c=g.q(a.adReasons||[]);for(d=c.next();!d.done;d=c.next())d=d.value,SX(b.o).appendChild(g.ne("li",null,TX(d)));this.u=a.confirmServiceEndpoint||null;return Promise.resolve()};
VX.prototype.rs=function(){OX.prototype.rs.call(this);this.u&&(this.executeCommand(this.u),this.u=null)};
VX.prototype.G=function(a){switch(a.type){case "confirmClick":case "externalClick":this.hide()}};g.r(WX,Z);g.h=WX.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);(a=(a=b.button&&b.button.buttonRenderer&&b.button.buttonRenderer.navigationEndpoint&&b.button.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint)&&a.dialog&&a.dialog.adInfoDialogRenderer)?(b.hoverText?(b=MX(b.hoverText),g.se(this.u,b,0)):this.u=null,this.w.bind({renderer:a,macros:c}),this.show()):g.M(Error("adInfoDialogRenderer is missing in AdHoverTextButtonRenderer"))};
g.h.qs=function(){this.u&&g.Oh(this.u,!1)};
g.h.iH=function(){this.w.Ha()||this.u&&g.Oh(this.u,!0)};
g.h.hH=function(){this.w.show();this.qs()};
g.h.clear=function(){this.hide()};g.r(XX,wX);g.r(YX,XW);g.h=YX.prototype;g.h.bd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.vx=function(){var a=this.o,b=new Zla;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=ZX(a.impressionCommands||[]);b.clickTrackingUrls=ZX(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new oU;a.iframeCompanionRenderer=b;return a};
g.h.rx=function(){return[new g.Sd(300,60)]};
g.h.Gw=function(a,b){return new XX(a,b,this.o)};g.r($X,Y);g.h=$X.prototype;g.h.gs=function(a){if(!OT(a)){var b=new dX(this.I);a=eX(a);gX(b,a)}this.ik()};
g.h.ik=function(){var a=this;if(this.u instanceof YX){var b=this.K.getVideoData(2);if(!b||b.wc||(null==this.u.o||this.u.o.adVideoId!=b.videoId)&&!g.P(this.K.N().experiments,"ignore_video_data_current_ad_check")){this.A=function(c,d,e){if(d&&2==e&&null!=a.u.o&&a.u.o.adVideoId==d.videoId||g.P(a.K.N().experiments,"ignore_video_data_current_ad_check"))a.A&&(a.K.removeEventListener("videodatachange",a.A),a.A=null),g.P(a.K.N().experiments,"populate_companion_metadata_from_vms_html5")?rV(a):d.isListed&&
rV(a)};
this.K.addEventListener("videodatachange",this.A);return}if(!b.isListed&&!g.P(this.K.N().experiments,"populate_companion_metadata_from_vms_html5"))return}rV(this)};
g.h.dc=function(){var a=this;NY(this.I,this);if(YU(this.K)){var b=this.K.getVideoData(1),c=this.u.vx();null!=c&&(c.macros=Object.assign({},this.macros),this.P.showCompanion(b.videoId,c))}else{var d=this.u.rx();$la(this.P).then(function(e){a:{if(d&&e){e=g.q(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var k=g.q(d),l=k.next();!l.done;l=k.next())if(l=l.value,l.width==f.width&&l.height==f.height){e=l;break a}}}e=null}e&&(f=a.u.Gw(a.K,a.I,e),null!=f&&(g.B(a,f),k=a.P,k.o&&k.o.showCompanion(f.element,
e.width,e.height)))})}if(this.u instanceof YX){this.C=function(e){var f;
if(f=e.data)try{f=sq(e.source.document.location.origin)}catch(l){f=!1}if(f)if(f=a.u.o,"companion-setup-complete"==e.data)try{e.source.postMessage(JSON.stringify(f),"*");var k=e.source.frameElement;k.parentNode.style.cssText="";k.width=String(f.iframeWidth);k.height=String(f.iframeHeight)}catch(l){g.Go(l)}else"pause-video"==e.data&&a.K.pauseVideo()};
try{window.addEventListener("message",this.C)}catch(e){g.M(e)}}};
g.h.onAdUxClicked=function(a){pV(this.o,a)};
g.h.xb=function(){return this.B.xb()};
g.h.gp=function(){return GU(this.B)};
g.h.Et=function(){return FU(this.B)};
g.h.Qj=function(){return!0};
g.h.hm=function(){return this.B.o.Ec()};
g.h.Yp=function(){};
g.h.X=function(){if(this.C)try{window.removeEventListener("message",this.C),this.C=null}catch(a){g.M(a)}this.A&&(this.K.removeEventListener("videodatachange",this.A),this.A=null);Y.prototype.X.call(this)};var Zma=Object.freeze([BV,GV,DU,OV,PV,tU]);g.r(bY,hX);g.h=bY.prototype;g.h.ix=function(){for(var a=this.A.o,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.h.ly=function(){return(0>=this.C?this.A.o:this.A.o.slice(this.C)).some(function(a){return a.bd()})};
g.h.im=function(){return this.G instanceof DU||this.G instanceof OV};
g.h.uh=function(){return this.G instanceof tU||this.G instanceof GV};
g.h.rB=function(){this.daiEnabled?WU(this.K)&&iX(this):cY(this)};
g.h.dc=function(a){var b=aY(a);this.G&&b&&this.I!==b&&(b?PY(this.xc):nna(this.xc),this.I=b);this.G=a;this.daiEnabled&&(this.C=this.A.o.findIndex(function(c){return c===a}));
hX.prototype.dc.call(this,a)};
g.h.bh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.w&&(g.He(this.w),this.w=null);hX.prototype.bh.call(this,a,b)};
g.h.hp=function(){this.C=this.A.o.length;this.w&&this.w.ib("h");this.u&&this.u.ib("h");this.bh()};
g.h.Kz=function(){cY(this)};
g.h.Ft=function(){this.Vi()};
g.h.Gt=function(a){hX.prototype.Gt.call(this,a);a=a.state;g.V(a,2)&&this.w?this.w.Zc():a.eb()?(null==this.w&&(a=this.A.w)&&(this.w=this.Sg.create(a,NU(JU(this.o))),this.w.subscribe("onAdUxUpdate",this.Jz,this),rV(this.w)),this.w&&this.w.sg()):a.isError()&&this.w&&this.w.Wb(a.u.errorCode)};
g.h.Vi=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(RY(this.xc,0),a?this.bh(a,b):cY(this))};
g.h.gA=function(){1==this.A.u?this.bh():this.Vi()};
g.h.onAdUxClicked=function(a){hX.prototype.onAdUxClicked.call(this,a);this.w&&this.w.Ri(a)};
g.h.ao=function(){var a=0>=this.C?this.A.o:this.A.o.slice(this.C);return 0<a.length?a[0]:null};
g.h.X=function(){g.He(this.w);this.w=null;hX.prototype.X.call(this)};
g.h.Si=function(){return this.I};
g.h.hm=function(){return this.A.o.every(function(a){return a.Ec()})};
g.h.reset=function(){return new bY(this.xc,this.K,this.F.reset(),this.o,this.Le,this.vj,this.Sg,this.daiEnabled)};
g.h.fx=function(){return this.C};
g.h.hx=function(){return this.A.o.length};g.r(dY,wX);dY.prototype.C=function(a){g.xe(this.w.element,a.target)||(g.Kp(a),xX(this,this.u.onClickCommands),this.executeCommand(this.u.clickthroughEndpoint),this.K.onAdUxClicked("image-companion"),this.K.pauseVideo())};g.r(eY,XW);g.h=eY.prototype;g.h.bd=function(){return!1};
g.h.Ec=function(){return!0};
g.h.vx=function(){var a=new oU;a.imageCompanionAdRenderer=this.o;return a};
g.h.rx=function(){return this.u};
g.h.Gw=function(a,b,c){return new dY(a,b,this.o,c)};g.r(fY,xU);g.r(gY,xU);g.r(hY,xU);iY.prototype.create=function(a,b){function c(G){return new tU(G,d.u,b)}
var d=this,e=a.instreamVideoAdRenderer,f=a.clientForecastingAdRenderer,k=a.invideoOverlayAdRenderer,l=a.videowallIframeCompanionAdRenderer,m=a.imageCompanionAdRenderer,n=a.instreamSurveyAdRenderer,p=a.plaShelfRenderer,t=a.sandwichedLinearAdRenderer,u=a.shoppingCompanionCarouselRenderer,z=a.actionCompanionAdRenderer,C=a.multipleInstreamVideoAdRenderer,D=a.linearAdSequenceRenderer,E=a.adsEngagementPanelRenderer,F=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new JV(f):null!=
k?new KV(k):null!=l&&l.iframeUrl?new YX(l):null!=m?new eY(m):null!=n?new DU(n):null!=t?new hY(t,c,this.o):null!=C?new gY(C,c):null!=p?new MV(p):null!=u?new NV(u):null!=z?new wV(z):null!=D?new fY(D,c):null!=E?new IV(E):null!=F?new wU(F):null};jY.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var k=b,l=new MT(k.w,k.u,k.daiEnabled),m=k.td;m&&(l.td=new gv(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.o));k.o&&(l.o=k.o);l.visible=k.visible;k=l;k.td=f;e.push(kY(this,a[0],c,k));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())d=d.value,f=d.renderer,LW(this.o)&&null!=f.actionCompanionAdRenderer||MW(this.o)&&null!=f.imageCompanionAdRenderer||
NW(this.o)&&null!=f.shoppingCompanionCarouselRenderer||r1(this.o)&&null!=f.clientForecastingAdRenderer||q1(this.o)&&null!=f.invideoOverlayAdRenderer||(e.push(kY(this,d,c,b)),c++);return e};g.r(lY,g.A);g.r(nY,g.A);nY.prototype.addEventListener=function(a,b){this.o=b};
nY.prototype.removeEventListener=function(){this.o=null};
g.r(oY,g.A);oY.prototype.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
oY.prototype.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};g.r(pY,g.A);qY.prototype.reset=function(){this.o=-1};var tY=null,vY=null,xY=null,zY=null;g.Ga("yt.www.ads.eventcache.getLastCompanionData",function(){return tY},void 0);
g.Ga("yt.www.ads.eventcache.getLastPlaShelfData",function(){return vY},void 0);
g.Ga("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return xY},void 0);
g.Ga("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return zY},void 0);g.r(FY,g.O);g.h=FY.prototype;
g.h.init=function(){var a=this.o.getVideoData(1);if(a.sn||g.L("SERVED_VIA_SPF_HISTORY"))g.P(this.o.N().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?this.R():JY(this);else{YU(this.o)&&CY(YB(this.o));this.B.L(this.o,"applicationplayerstatechange",this.Fz);this.B.L(this.o,g.lC("ad"),this.gm,this);this.B.L(this.o,"crx_ad",this.Gz,this);this.B.L(this.o,"aduxclicked",this.iA);this.B.L(this.o,"videodatachange",this.Hz);var b=a.getPlayerResponse()||{};b=gna(b);b=GY(this,b);b=HY(this,
b);0<b.length&&KY(this,b);this.I&&(a.subscribe("cuepointupdated",this.om,this),this.w&&a.ia&&this.om(Vx(a.ia,0)));JY(this);g.uf(this.IC,this)}};
g.h.X=function(){this.ha=!0;g.Ir(this.B);this.I&&EY(this).unsubscribe("cuepointupdated",this.om,this);if(YU(this.o)){var a=YB(this.o);a.removeEventListener("updateKevlarOrC3Companion",uY);a.removeEventListener("onPlaShelfInfoCardsReady",wY);a.removeEventListener("updateEngagementPanelAction",yY);a.removeEventListener("changeEngagementPanelVisibility",AY);window.removeEventListener("yt-navigate-start",BY);zY=xY=tY=null}a=g.q(this.C.values());for(var b=a.next();!b.done;b=a.next())QY(this,b.value);OY(this,
!1);this.G.clear();this.ba=[];this.U.clear();g.He(this.A);this.A=null;g.He(this.M);this.M=new Map;this.C.clear();g.O.prototype.X.call(this)};
g.h.gm=function(a){if(!a.o&&(!PT(a)||a.contains(1E3*this.o.getCurrentTime(1)||0))){var b=g.PK(this.o,1);if(this.o.N().fa("html5_sync_seeking_state")?g.V(b,32):!g.V(b,64)&&(g.V(b,32)||g.V(b,16)))this.U.add(a);else if(b=this.C.get(a))((this.w?0:g.P(this.o.N().experiments,"enable_eviction_protection_for_bulleit"))?b.Qj()&&this.A?this.A.hm():!b.Qj()&&this.u?this.u.hm():1:1)?b.gs(a):a.o=!0}};
g.h.Gz=function(a){a.o&&(a.o=!1);this.U["delete"](a)};
g.h.om=function(a){Ima(this.Ia,a);if(null==this.I)g.M(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.w){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.wa.reduce(b.value)}else 0!=(this.o.getCurrentTime(1)||0)&&(a=a.filter(function(c){return"start"==c.event}),KY(this,[this.I],a))};
g.h.JA=function(a){KY(this,[this.I],[a])};
g.h.vA=function(a){var b=1E3*a;this.u&&this.u.Yp(b);for(var c=g.q(this.C.values()),d=c.next();!d.done;d=c.next())d.value.Yp(b);g.ub(this.za.o,1E3*a)};
g.h.RI=function(a){this.u&&this.u.Gt(a)};
g.h.Fz=function(a){0>aH(a,16)&&(this.U.forEach(this.gm,this),this.U.clear())};
g.h.Hz=function(){if(this.u){var a=this.u;a.daiEnabled&&iX(a)}if(this.w){a=1E3*this.o.getCurrentTime(1);for(var b=g.q(this.C.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.gm(c);break}}};
g.h.CN=function(){var a=null;this.w&&(a=this.o.getCurrentTime(1),this.wa.updateTime(a));if(WU(this.o)&&this.u){var b=this.o.getCurrentTime(2,!1),c=this.u;if(c.u){var d=c.u;d.G&&gV(d.o,b,d.getDuration());if(null!==a&&(b=c.o.A,!(null===b||g.P(c.K.N().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.o.xb().start,1E3*a<d+b)))){c.o.A=null;var e=nX(c),f=Math.min(a+nT(c.K.app),e/1E3),k=c.o.u&&c.o.u.identifier;a<f?(c.K.seekTo(f,void 0,void 0,1),c=c.Le,a*=1E3,f*=1E3,c.u&&YW({driftRecoveryInfo:{contentCpn:c.o,
cueIdentifier:k||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*nT(c.w.app)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):$W(c.Le,{cueIdentifier:k,driftRecoveryMs:b,qB:d,Ay:e})}}}};
g.h.RJ=function(){this.Ca=!0;if(this.u){var a=this.u;a.u&&a.u.Ac()}};
g.h.iA=function(a){if(this.u)this.u.onAdUxClicked(a);if(this.A)this.A.onAdUxClicked(a)};
g.h.DN=function(){if(2==this.o.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.o;a=a.K.isMuted();dV(b)||iV(b,a?"mute":"unmute")}};
g.h.QI=function(a){if(this.u){var b=this.u.u.o;bV(b)||jV(b,a?"fullscreen":"end_fullscreen")}};
g.h.IC=function(){for(var a=[],b=g.q(this.G),c=b.next();!c.done;c=b.next())c=c.value,OT(c)||a.push(c);b=this.o.app;1!=b.getPresentingPlayerType()||JS(b,"cuerangemarkersupdated",a)};
g.h.dz=function(){this.u&&this.u.Si()&&this.u.Kz()};
g.h.cz=function(){this.u&&this.u.Si()&&this.u.Ft()};
g.h.ct=function(){this.u&&this.u.Si()&&this.u.hp()};
g.h.Xw=function(a){if(a=this.M.get(a)){a:{var b="instreamVideoAdRenderer multipleInstreamVideoAdRenderer instreamSurveyAdRenderer sandwichedLinearAdRenderer parallelChoiceAdPlacementRenderer linearAdSequenceRenderer adChoiceInterstitialRenderer".split(" ");var c=a.renderer;if(c&&b&&Array.isArray(b)&&0!==b.length)for(var d=0;d<b.length;d++)if(c.hasOwnProperty(b[d])){b=!0;break a}b=!1}b?(a=KY(this,[a]))&&0!==a.length&&(a=a[0],MY(this,a),a.ik()):g.M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.h.Fr=function(a){(a=this.M.get(a))&&(a=KY(this,[a]))&&0!=a.length&&a[0].ik()};
g.h.kr=function(){LY(this)};
g.h.seekTo=function(a){WU(this.o)&&this.u.uh()&&this.o.kb().seekTo(a)};
g.h.resume=function(){this.u&&this.u.resume()};
g.h.executeCommand=function(a,b,c){this.Ta.executeCommand(a,b,jna(this,void 0===c?null:c))};
g.h.hy=function(){return this.w};
g.h.ex=function(){return this.ma};g.r(TY,Z);TY.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&SY(a)||"";g.ec(b)?(g.P(this.api.N().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Go(Error("Found AdImage without valid image URL")):(this.u?g.sh(this.element,"backgroundImage","url("+b+")"):ee(this.element,{src:b}),ee(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
TY.prototype.clear=function(){this.hide()};g.r(VY,Z);
VY.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Go(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.J(this.element,a);null!=b.text&&(a=g.T(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.B=new g.Ru({D:"span",H:"ytp-ad-button-text",W:a}),g.B(this,this.B),this.B.ca(this.element)));null!=b.icon&&(b=UY(b.icon),null!=
b&&(this.w=new g.Ru({D:"span",H:"ytp-ad-button-icon",J:[b]}),g.B(this,this.w)),this.C?g.se(this.element,this.w.element,0):this.w.ca(this.element))}};
VY.prototype.clear=function(){this.hide()};
VY.prototype.onClick=function(a){var b=this;Z.prototype.onClick.call(this,a);pna(this).forEach(function(c){return b.ra.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};g.r(WY,Z);WY.prototype.clear=function(){this.dispose()};g.r(ZY,WY);g.h=ZY.prototype;g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);g.sh(this.A,"stroke-dasharray","0 "+this.w);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){YY(this);WY.prototype.hide.call(this)};
g.h.show=function(){XY(this);WY.prototype.show.call(this)};
g.h.aj=function(){this.hide()};
g.h.Nh=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.w,this.C&&(a=this.w-a),g.sh(this.A,"stroke-dasharray",a+" "+this.w))}};g.r($Y,Z);$Y.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.ye(this.element,DX(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?SY(a):"",c=(c=this.api.getVideoData(1))&&c.Hm,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
$Y.prototype.isTemplated=function(){return this.u.isTemplated||!1};
$Y.prototype.clear=function(){this.hide()};g.r(bZ,WY);g.h=bZ.prototype;
g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.M(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ma&&g.J(this.w.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.V=null==a||0===a?this.u.Rz():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.A.init(RT("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Hm&&b.thumbnail?this.C.init(RT("ad-image"),b.thumbnail,c):this.I.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.w.hide();this.A.hide();this.C.hide();YY(this);WY.prototype.hide.call(this)};
g.h.show=function(){XY(this);this.w.show();this.A.show();this.C.show();WY.prototype.show.call(this)};
g.h.aj=function(){this.hide()};
g.h.Nh=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.aa&&a>=this.V?(g.P(this.api.N().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.M.hide(),this.aa=!0,this.S("t")):this.A&&this.A.isTemplated()&&(a=Math.max(0,Math.ceil((this.V-a)/1E3)),a!=this.ga&&(aZ(this.A,{TIME_REMAINING:String(a)}),this.ga=a)))}};g.r(dZ,g.A);g.h=dZ.prototype;g.h.X=function(){this.reset();g.A.prototype.X.call(this)};
g.h.reset=function(){g.Ir(this.B);this.C=!1;this.o&&this.o.stop();this.A.stop();this.u&&(this.u=!1,this.F.play())};
g.h.start=function(){this.reset();this.B.L(this.w,"mouseover",this.LL,this);this.B.L(this.w,"mouseout",this.IL,this);this.o?this.o.start():(this.C=this.u=!0,g.sh(this.w,{opacity:this.I}))};
g.h.LL=function(){this.u&&(this.u=!1,this.F.play());this.A.stop();this.o&&this.o.stop()};
g.h.IL=function(){this.C?this.A.start():this.o&&this.o.start()};
g.h.hw=function(){this.u||(this.u=!0,this.G.play(),this.C=!0)};var qna=yb(function(){return new oba}),vna=yb(function(){return new sna});g.r(eZ,WY);g.h=eZ.prototype;
g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);this.I=b;this.ga=xna(this);!b||g.Mb(b)?g.M(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Mb(b.message)?g.M(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=UY(a),null==b?g.M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.Ru({D:"button",Y:["ytp-ad-skip-button","ytp-button"],J:[{D:"span",H:"ytp-ad-skip-button-icon",
J:[b]}]}),g.B(this,this.C),this.C.ca(this.A.element),this.w=new $Y(this.api,this.ra,"ytp-ad-skip-button-text"),this.w.init(RT("ad-text"),this.I.message,c),g.B(this,this.w),g.se(this.C.element,this.w.element,0)),g.P(this.api.N().experiments,"bulleit_use_touch_events_for_skip")&&HX(this))};
g.h.clear=function(){this.V.reset();this.hide()};
g.h.hide=function(){this.A.hide();this.w&&this.w.hide();YY(this);WY.prototype.hide.call(this);this.aa.stop();this.M&&(this.M(),this.M=null)};
g.h.onClick=function(a){if(null!=this.C&&(a&&g.Kp(a),WY.prototype.onClick.call(this,a),this.S("u"),!this.ga))this.api.onAdUxClicked(this.componentType)};
g.h.lx=function(){return"skip"};
g.h.show=function(){this.V.start();this.A.show();this.w&&this.w.show();XY(this);WY.prototype.show.call(this);this.aa.Ua()};
g.h.aj=function(){this.S("v")};
g.h.Nh=function(){};g.r(fZ,g.O);g.h=fZ.prototype;g.h.Rz=function(){return this.u};
g.h.start=function(){this.w||(this.w=!0,this.Ga.start())};
g.h.stop=function(){this.w&&(this.w=!1,this.Ga.stop())};
g.h.sJ=function(){this.o+=100;var a=!1;this.o>this.u&&(this.o=this.u,this.Ga.stop(),a=!0);this.A={seekableStart:0,seekableEnd:this.u/1E3,current:this.o/1E3};this.B&&oW(this.B,this.A.current);this.S("b");a&&this.S("a")};
g.h.getProgressState=function(){return this.A};g.r(gZ,Z);g.h=gZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.M(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.ec(g.fd(e[0].url))&&(e[0].url=d.Id);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.fd(e[0].url))&&(e[0].url=d.tc());e=b.headline;null!=e&&g.ec(g.fd(e.text))&&(e.text=d.author)}this.I.init(RT("ad-image"),b.image,c);this.Z.init(RT("ad-text"),b.headline,c);this.V.init(RT("ad-text"),b.description,c);this.M.init(RT("ad-image"),b.backgroundImage,c);this.u=new VY(this.api,this.ra,["ytp-ad-action-interstitial-action-button"]);g.B(this,this.u);this.u.ca(this.Aa);this.u.init(RT("button"),
b.actionButton.buttonRenderer,c);this.aa=b.navigationEndpoint;this.api.N().o||(this.C.L(this.oa,"click",this.Cr,this),this.C.L(this.ma,"click",this.Cr,this),this.C.L(this.ga,"click",this.Cr,this));this.w=new fZ(a);g.B(this,this.w);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.w&&(this.B=new eZ(this.api,this.ra,this.w),g.B(this,this.B),this.B.ca(this.element),this.B.init(RT("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.w&&(this.A=
new bZ(this.api,this.ra,this.w,!1),g.B(this,this.A),this.A.ca(this.element),this.A.init(RT("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.w&&(c=new ZY(this.api,this.ra,this.w),g.B(this,c),c.ca(this.element),c.init(RT("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.M(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.M(Error("AdActionInterstitialRenderer has no button."));else g.M(Error("AdActionInterstitialRenderer has no background AdImage."));
else g.M(Error("AdActionInterstitialRenderer has no description AdText."));else g.M(Error("AdActionInterstitialRenderer has no headline AdText."));else g.M(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.Ir(this.C);this.hide()};
g.h.show=function(){yna(!0);this.u&&this.u.show();this.B&&this.B.show();this.A&&this.A.show();Z.prototype.show.call(this)};
g.h.hide=function(){yna(!1);this.u&&this.u.hide();this.B&&this.B.hide();this.A&&this.A.hide();Z.prototype.hide.call(this)};
g.h.Cr=function(){this.aa&&this.ra.executeCommand(this.aa,this.macros)};g.r(hZ,Z);
hZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var e=[],f=g.q(b.adChoiceButtons),k=f.next();!k.done;k=f.next()){var l=(k=k.value)&&k.buttonRenderer;if(!l){g.M(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}l=l.text;if(!l){g.M(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}e.push(k.buttonRenderer);k=g.T(l);
a=Math.max(a,k.length)}f=b.durationMilliseconds||0;if("number"!==typeof f||0>f)g.M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){g.ye(this.o["ytp-ad-choice-interstitial-head-title"],g.T(b.text));var m=Ana(b.defaultButtonChoiceIndex);Cna(this,e,a,m)?(Ena(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&
Fna(this,b.adDurationRemaining.timedPieCountdownRenderer,c),b&&b.background&&zna(this.o["ytp-ad-choice-interstitial"],b.background),Dna(this,a),this.show(),g.P(this.api.N().experiments,"self_podding_default_button_focused")&&g.uf(function(){0===m?d.u&&d.u.focus():d.A&&d.A.focus()})):g.M(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else g.M(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer."));
else g.M(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else g.M(Error("AdChoiceInterstitialRenderer should have two choices."));else g.M(Error("AdChoiceInterstitialRenderer has no title."))};
hZ.prototype.clear=function(){this.hide()};g.r(iZ,Z);g.h=iZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.M(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.u.init(RT("ad-text"),b.text,c),this.show())):g.M(Error("AdTextInterstitialRenderer has no message AdText."))};
g.h.clear=function(){this.hide()};
g.h.show=function(){Gna(!0);Z.prototype.show.call(this)};
g.h.hide=function(){Gna(!1);Z.prototype.hide.call(this)};
g.h.onClick=function(){};g.r(jZ,Z);
jZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.M(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new VY(this.api,this.ra),g.B(this,this.button),this.button.init(RT("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.ca(this.element),this.C&&!g.Bn(this.button.element,"ytp-ad-clickable")&&g.J(this.button.element,"ytp-ad-clickable"),a&&
(this.w=new g.Ru({D:"div",H:"ytp-ad-hover-text-container"}),this.B&&(b=new g.Ru({D:"div",H:"ytp-ad-hover-text-callout"}),b.ca(this.w.element),g.B(this,b)),g.B(this,this.w),this.w.ca(this.element),b=MX(a),g.se(this.w.element,b,0)),this.show())};
jZ.prototype.hide=function(){this.button&&this.button.hide();this.w&&this.w.hide();Z.prototype.hide.call(this)};
jZ.prototype.show=function(){this.button&&this.button.show();Z.prototype.show.call(this)};g.r(kZ,Z);g.h=kZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.M(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Go(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Go(Error("AdFeedbackRenderer.title was not set.")),Kna(this,b)):g.M(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){Pp(this.B);Pp(this.I);this.A.length=0;this.hide()};
g.h.hide=function(){this.u&&this.u.hide();this.w&&this.w.hide();Z.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.u&&this.u.show();this.w&&this.w.show();this.C=document.activeElement;Z.prototype.show.call(this);this.B.focus()};
g.h.Vz=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.S("w");this.hide()};
g.h.xN=function(){this.hide()};
lZ.prototype.ua=function(){return this.o.element};
lZ.prototype.isChecked=function(){return this.w.checked};g.r(mZ,Z);g.h=mZ.prototype;g.h.hide=function(){Z.prototype.hide.call(this);this.A&&this.A.focus()};
g.h.show=function(){this.A=document.activeElement;Z.prototype.show.call(this);this.B.focus()};
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.M(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.M(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Lna(this,b):g.M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.Ir(this.u);this.hide()};
g.h.Wt=function(){this.hide()};
g.h.Vt=function(){var a=this.w.cancelEndpoint;a&&this.ra.executeCommand(a,this.macros);this.hide()};
g.h.Xt=function(){var a=this.w.confirmNavigationEndpoint||this.w.confirmEndpoint;a&&this.ra.executeCommand(a,this.macros);this.hide()};g.r(nZ,mZ);nZ.prototype.Wt=function(a){mZ.prototype.Wt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
nZ.prototype.Vt=function(a){mZ.prototype.Vt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
nZ.prototype.Xt=function(a){mZ.prototype.Xt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.S("x")};g.r(oZ,Z);g.h=oZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.C=b;if(null==b.dialogMessage&&null==b.title)g.M(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Go(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new VY(this.api,this.ra,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.B(this,this.u),this.u.init(RT("button"),
a,this.macros),this.u.ca(this.element);b.title&&(a=g.T(b.title),this.la("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=MX(a[c]);if(!g.ec(d.textContent)){var e=g.ne("LI");e.appendChild(d);this.V.appendChild(e)}}else g.Oh(this.V,!1);b.dialogMessage&&(a=MX(b.dialogMessage,!0),this.ga.appendChild(a));b.confirmLabel&&(a=g.T(b.confirmLabel),this.la("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint||
null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Go(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Nna(this,a):c&&Ona(this,c),this.A=new VY(this.api,this.ra,["ytp-ad-info-dialog-mute-button"],"button",!0),g.B(this,this.A),this.A.init(RT("button"),b,this.macros),this.A.ka("click",this.QL,this),this.A.ca(this.ma)));Pna(this)}};
g.h.clear=function(){Pp(this.I);this.hide()};
g.h.hide=function(){this.w?this.w.hide():this.B&&this.B.hide();this.u&&this.u.hide();this.A&&this.A.hide();Z.prototype.hide.call(this);this.M&&this.M.focus()};
g.h.show=function(){this.u&&this.u.show();this.A&&this.A.show();this.Z||(Mna(this),this.Z=!0);this.M=document.activeElement;Z.prototype.show.call(this);this.I.focus()};
g.h.Wz=function(){this.C&&this.C.confirmServiceEndpoint&&this.ra.executeCommand(this.C.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.S("z");this.hide()};
g.h.QL=function(){var a=this.w?this.w:this.B;a&&!a.Ha()&&(this.hide(),a.show())};g.r(pZ,jZ);pZ.prototype.init=function(a,b,c){jZ.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Rna(this,a,c),this.show())};
pZ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();jZ.prototype.hide.call(this)};
pZ.prototype.show=function(){this.button&&this.button.show();jZ.prototype.show.call(this)};
pZ.prototype.clear=function(){this.hide()};var Sna={iconType:"CLOSE"};g.r(qZ,Z);g.h=qZ.prototype;g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.A=b;(a=b.contentSupportedRenderer&&b.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer)&&Una(this,a,b.adInfoRenderer)&&(Wna(this,!0),this.show(),this.Aa.start())};
g.h.onClick=function(a){var b=this;if(!g.xe(this.Ka,a.target)){Z.prototype.onClick.call(this,a);var c=g.Pb(this.macros),d=g.Nh(this.u);c.AW={toString:function(){return d.width.toString()}};
c.AH={toString:function(){return d.height.toString()}};
var e=g.Ih(a,this.u).floor();c.I_X={toString:function(){return e.x.toString()}};
c.NX={toString:function(){return e.x.toString()}};
c.I_Y={toString:function(){return e.y.toString()}};
c.NY={toString:function(){return e.y.toString()}};
c.NM={toString:function(){return b.ma.toString()}};
this.Ea.forEach(function(f){return b.ra.executeCommand(f,c)});
this.api.pauseVideo()}};
g.h.clear=function(){Wna(this,!1);this.ma=0;GX(this,this.u,!1);this.Aa.stop();this.hide();this.dispose()};
g.h.show=function(){this.w&&this.w.show();Z.prototype.show.call(this)};
g.h.hide=function(){this.w&&this.w.hide();Z.prototype.hide.call(this)};
g.h.AJ=function(){var a=this;Vna(this).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
this.clear()};
g.h.xJ=function(){this.Z=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.yJ=function(){this.Z||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.BJ=function(){this.Z||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.zJ=function(a){if(this.M){var b=g.ce("ytp-ad-button",this.M.element);a.target===this.B&&b&&b.click()}};var tZ={iconType:"CLOSE"},xZ=new g.Sd(320,63);g.r(sZ,Z);g.h=sZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.B=b;this.I=g.gb(this.B.onClickCommands||[]);if(a=this.B.contentSupportedRenderer)a=this.B.contentSupportedRenderer,b=this.B.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.C=g.ce("ytp-ad-overlay-ad-info-button-container",this.A.element),vZ(this,b),a=aoa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.C=g.ce("ytp-ad-overlay-ad-info-button-container",this.w.element),vZ(this,b),a=boa(this,a.enhancedTextOverlayAdContentRenderer)):
a.imageOverlayAdContentRenderer?(this.C=g.ce("ytp-ad-overlay-ad-info-button-container",this.u.element),vZ(this,b),a=coa(this,a.imageOverlayAdContentRenderer)):(g.M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),doa(this,!0))};
g.h.FJ=function(){this.api.app.I.o&&this.clear()};
g.h.clear=function(){doa(this,!1);this.aa.reset();this.M=0;this.A.hide();GX(this,this.A.element,!1);this.w.hide();GX(this,this.w.element,!1);this.u.hide();GX(this,this.u.element,!1);this.hide();this.dispose()};
g.h.oN=function(){this.ma&&this.ra.executeCommand(this.ma,this.macros);this.api.pauseVideo()};
g.h.Rt=function(){var a=this;$na(this).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
if(rZ(this.api))this.api.onAdUxClicked("in_video_overlay_close_button");else this.clear()};
g.h.CJ=function(){this.ga=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.DJ=function(){this.ga||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.GJ=function(){this.ga||2!=this.api.getPlayerState(1)||this.api.playVideo();rZ(this.api)?this.api.S("muteadaccepted","invideo-overlay"):this.clear()};
g.h.EJ=function(a){a.target===this.C&&g.ce("ytp-ad-button",this.oa.element).click()};g.r(yZ,WY);g.h=yZ.prototype;g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.M(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.u.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.w.init(RT("ad-text"),d,c);this.w.ca(this.A.element);this.I.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){eoa(this,!1);WY.prototype.hide.call(this);this.A.hide();this.w.hide();YY(this)};
g.h.show=function(){eoa(this,!0);WY.prototype.show.call(this);XY(this);this.A.show();this.w.show()};
g.h.aj=function(){this.hide()};
g.h.Nh=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.M&&a>=this.C?(this.I.hide(),this.M=!0):this.w&&this.w.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.V&&(aZ(this.w,{TIME_REMAINING:String(a)}),this.V=a)))}};g.r(zZ,WY);g.h=zZ.prototype;
g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Mb(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.At(this.api.N().experiments,"preskip_button_style_ads_backend")&&Yy(this.api.N());this.w=new bZ(this.api,this.ra,this.u,d);this.w.init(RT("preskip-component"),a,c);cZ(this.w);g.B(this,this.w);this.w.ca(this.element);g.P(this.api.N().experiments,
"enable_pubsub_for_skip_transition_bulleit")&&this.w.subscribe("t",this.oM,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Mb(b)?null:b;null==b?g.M(Error("SkipButtonRenderer was not set in player response.")):(this.A=new eZ(this.api,this.ra,this.u),this.A.init(RT("skip-button"),b,c),g.B(this,this.A),this.A.ca(this.element),this.show())};
g.h.show=function(){this.I&&this.A?this.A.show():this.w&&this.w.show();XY(this);WY.prototype.show.call(this)};
g.h.aj=function(){};
g.h.clear=function(){this.w&&this.w.clear();this.A&&this.A.clear();YY(this);WY.prototype.hide.call(this)};
g.h.hide=function(){this.w&&this.w.hide();this.A&&this.A.hide();YY(this);WY.prototype.hide.call(this)};
g.h.oM=function(){AZ(this,!0)};
g.h.Nh=function(){g.P(this.api.N().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.w||1E3*this.u.getProgressState().current>=this.C&&AZ(this,!0):1E3*this.u.getProgressState().current>=this.C&&AZ(this,!0)};g.r(BZ,Z);BZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new zZ(this.api,this.ra,this.u),b.ca(this.w),b.init(RT("skip-button"),a.skipAdRenderer,this.macros),g.B(this,b)));this.show()};g.r(CZ,WY);g.h=CZ.prototype;g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Go(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.w=new $Y(this.api,this.ra);this.w.init(RT("ad-text"),a,{});this.w.ca(this.element);g.B(this,this.w)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){YY(this);WY.prototype.hide.call(this)};
g.h.aj=function(){this.hide()};
g.h.Nh=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.w){a=(this.u instanceof fZ?a.seekableEnd:this.api.getDuration(2,g.P(this.api.N().experiments,"halftime_ux_killswitch")?void 0:!1))-a.current;var b=g.hM(a);aZ(this.w,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){XY(this);WY.prototype.show.call(this)};g.r(DZ,$Y);DZ.prototype.onClick=function(a){$Y.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.r(EZ,WY);g.h=EZ.prototype;
g.h.init=function(a,b,c){WY.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.ec(g.fd(d[0].url))&&(d[0].url=a.Id)}else g.Uq(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.I.init(RT("ad-image"),b.image,c);this.C.init(RT("ad-text"),
b.headline,c);this.A.init(RT("ad-text"),b.description,c);this.w.init(RT("button"),b.actionButton.buttonRenderer,c);this.M=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.V=b.startMs||0;XY(this)}else g.Tq(Error("FlyoutCtaRenderer has no valid action button."));else g.Tq(Error("FlyoutCtaRenderer has no description AdText."));else g.Tq(Error("FlyoutCtaRenderer has no headline AdText."));else g.Uq(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){WY.prototype.onClick.call(this,a);this.api.pauseVideo();!g.xe(this.w.element,a.target)&&this.M&&this.ra.executeCommand(this.M,this.macros)};
g.h.Nh=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.V&&(YY(this),g.Dn(this.element,"ytp-flyout-cta-inactive"))}};
g.h.aj=function(){this.clear()};
g.h.clear=function(){this.hide()};
g.h.show=function(){this.w&&this.w.show();WY.prototype.show.call(this)};
g.h.hide=function(){this.w&&this.w.hide();WY.prototype.hide.call(this)};g.r(FZ,Z);g.h=FZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=b;if(null==b.defaultText&&null==b.defaultIcon)g.M(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.M(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.J(this.A,a)}a={};b.defaultText?
(c=g.T(b.defaultText),g.ec(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Oh(this.Z,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.M.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=UY(b.defaultIcon),this.la("untoggledIconTemplateSpec",c),b.toggledIcon?(this.I=!0,c=UY(b.toggledIcon),this.la("toggledIconTemplateSpec",c)):(g.Oh(this.C,!0),g.Oh(this.B,!1)),g.Oh(this.u,!1)):g.Oh(this.M,!1);g.Mb(a)||this.update(a);b.isToggled&&(g.J(this.A,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));GZ(this);this.V=this.L(this.element,"change",this.Tz);g.P(this.api.N().experiments,"bulleit_use_touch_events_for_magpie")&&HX(this,this.V);this.show()}};
g.h.onClick=function(a){0<this.U.length&&(this.toggleButton(!this.isToggled()),this.Tz());Z.prototype.onClick.call(this,a)};
g.h.Tz=function(){var a=this;g.K(this.A,"ytp-ad-toggle-button-toggled",this.isToggled());foa(this,this.isToggled()).forEach(function(b){return a.ra.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");GZ(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.K(this.A,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;GZ(this)};
g.h.isToggled=function(){return this.u.checked};g.r(HZ,Z);g.h=HZ.prototype;g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.u=b;this.u.rectangle&&(goa(this,c),g.P(this.api.N().experiments,"bulleit_use_touch_events_for_magpie")&&HX(this,this.C),this.B.show(100),this.show(),(this.u&&this.u.impressionCommands||[]).forEach(function(e){return d.ra.executeCommand(e,d.macros)}))};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.A.hide();this.w.hide();Z.prototype.hide.call(this)};
g.h.show=function(){this.A.show();this.w.show();Z.prototype.show.call(this)};
g.h.Uz=function(){var a=this.element,b=!g.Bn(a,"ytp-ad-instream-user-sentiment-selected");g.K(a,"ytp-ad-instream-user-sentiment-selected",b);this.u.postMessageAction&&this.api.na("onYtShowToast",this.u.postMessageAction);this.B.hide()};
g.h.onClick=function(a){0<this.U.length&&this.Uz();Z.prototype.onClick.call(this,a)};g.r(IZ,VY);
IZ.prototype.init=function(a,b,c){VY.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.T(b.text),a=!g.ec(a));a?null==b.navigationEndpoint?g.Go(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Go(Error("Button style was not a link-style type in renderer,")):(g.P(this.api.N().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&HX(this),this.show(),b=this.api.N().experiments,g.P(b,"enable_visibility_check_for_visit_advertiser_in_bulleit")&&(this.A=
wna(this.element,"visit_advertiser",g.Q(b,"visibility_error_html_dump_sample_rate")))):g.Go(Error("No visit advertiser text was present in the renderer."))};
IZ.prototype.hide=function(){VY.prototype.hide.call(this);this.A&&(this.A(),this.A=null)};g.r(JZ,Z);JZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.text;g.ec(DX(a))?g.Go(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.N(),b=a.text+" "+(b&&b.o?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new $Y(this.api,this.ra),a.init(RT("simple-ad-badge"),b,c),a.ca(this.element),g.B(this,a)),this.show())};
JZ.prototype.clear=function(){this.hide()};g.r(KZ,Z);
KZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new zZ(this.api,this.ra,this.u),c.ca(this.B),c.init(RT("skip-button"),a.skipAdRenderer,this.macros),g.B(this,c)):a.adPreviewRenderer&&(c=new bZ(this.api,this.ra,this.u,!1),c.ca(this.B),c.init(RT("ad-preview"),a.adPreviewRenderer,this.macros),cZ(c),g.B(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new HZ(this.api,this.ra),
c.ca(this.I),c.init(RT("instream-user-sentiment"),a,this.macros),g.B(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new EZ(this.api,this.ra,this.u),g.B(this,c),c.ca(this.C),c.init(RT("flyout-cta"),a.flyoutCtaRenderer,this.macros)));b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Annonce",isTemplated:!1}}),c=new JZ(this.api,this.ra,!0),g.B(this,c),c.ca(this.w),c.init(RT("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=
b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),c=new CZ(this.api,this.ra,this.u),g.B(this,c),c.ca(this.w),c.init(RT("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(a=b.adInfoRenderer,a.adHoverTextButtonRenderer&&(c=new pZ(this.api,this.ra,this.element),g.B(this,c),c.ca(this.w),c.init(RT("ad-info-hover-text-button"),a.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&
(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(a=hoa(this)&&this.A?this.A:this.w))&&(c=new IZ(this.api,this.ra),g.B(this,c),c.ca(a),c.init(RT("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.N())&&!Qy(b)&&"3"==b.controlsType&&(b=new mQ(this.api,this.u),b.ca(this.M),g.B(this,b));this.show()};
KZ.prototype.clear=function(){this.hide()};g.r(LZ,Z);
LZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.A=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new VY(this.api,this.ra,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ca(this.w),a.init(RT("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new FZ(this.api,this.ra,["ytp-ad-survey-answer-toggle-button"]),this.u.ca(this.w),g.B(this,this.u),this.u.init(RT("survey-answer-button"),
b.answer.toggleButtonRenderer,c));this.show()};
LZ.prototype.clear=function(){this.hide()};g.r(MZ,Z);MZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.u=new FZ(this.api,this.ra,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.u.ca(this.w),this.u.init(RT("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.r(NZ,VY);NZ.prototype.init=function(a,b,c){VY.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.T(b.text),a=!g.ec(b));a||g.Go(Error("No submit text was present in the renderer."))};
NZ.prototype.onClick=function(a){this.S("C");VY.prototype.onClick.call(this,a)};g.r(OZ,Z);
OZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.w=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new zZ(this.api,this.ra,this.B),c.ca(this.I),c.init(RT("skip-button"),a,this.w),g.B(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new bZ(this.api,this.ra,this.B,!1),c.ca(this.I),c.init(RT("ad-preview"),a,this.w),cZ(c),g.B(this,c),this.u=c);null==this.u&&g.M(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new NZ(this.api,this.ra),c.ca(this.M),c.init(RT("survey-submit"),a,this.w),g.B(this,c),this.A=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new JZ(this.api,this.ra,!0),c.ca(this.C),c.init(RT("simple-ad-badge"),a,this.w),g.B(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new CZ(this.api,this.ra,this.B),c.ca(this.C),c.init(RT("ad-duration-remaining"),a,this.w),g.B(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&
(a=new pZ(this.api,this.ra,this.element),g.B(this,a),a.ca(this.C),a.init(RT("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
OZ.prototype.clear=function(){this.hide()};g.r(PZ,Z);PZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);loa(this)};
PZ.prototype.show=function(){this.B=(0,g.H)();Z.prototype.show.call(this)};
PZ.prototype.PB=function(){};g.r(QZ,PZ);g.h=QZ.prototype;g.h.init=function(a,b,c){var d=this;PZ.prototype.init.call(this,a,b,c);b.questionText&&g.ye(this.V,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ioa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.I=new Set(this.A.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&moa(this,a,c);b.surveyAdQuestionCommon?koa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.Z=b.submitEndpoints);this.L(this.element,"change",this.HJ);this.show()};
g.h.PB=function(){RZ(this,!1);this.C.A.subscribe("C",this.mN,this)};
g.h.HJ=function(a){a.target==this.w.u.u?noa(this):this.I.has(a.target)&&(this.w.u.toggleButton(!1),RZ(this,!0))};
g.h.mN=function(){var a=this,b=this.A.reduce(function(d,e){var f=e.A;e.u&&e.u.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.Z.map(function(d){if(!d.loggingUrls)return d;
d=g.Qb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=zd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.ra.executeCommand(d,a.macros)})};
g.h.clear=function(){g.P(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(SZ,PZ);SZ.prototype.init=function(a,b,c){var d=this;PZ.prototype.init.call(this,a,b,c);b.questionText&&g.ye(this.V,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ioa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?koa(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
SZ.prototype.clear=function(){g.P(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(TZ,Z);
TZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);b.questions.forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new SZ(d.api,d.ra);f.ca(d.u);f.init(RT("survey-question-single-select"),e,c);d.w.push(f);g.B(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new QZ(d.api,d.ra),f.ca(d.u),f.init(RT("survey-question-multi-select"),e,c),d.w.push(f),
g.B(d,f))});
this.show()};
TZ.prototype.clear=function(){g.P(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.r(UZ,Z);
UZ.prototype.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.M(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){qoa(this.B,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);qoa(this.I,
b.brandImage);g.ye(this.M,g.T(b.text));this.u=new VY(this.api,this.ra,["ytp-ad-survey-interstitial-action-button"]);g.B(this,this.u);this.u.ca(this.C);this.u.init(RT("button"),b.ctaButton.buttonRenderer,c);this.u.show();var e=b.timeoutCommands;this.A=new fZ(1E3*a);this.A.subscribe("a",function(){d.w.hide();e.forEach(function(f){return d.ra.executeCommand(f,c)});
d.ra.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.B(this,this.A);this.L(this.element,"click",function(f){return poa(d,f,b)});
this.w.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.ra.executeCommand(f,c)})}else g.M(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.M(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.M(Error("SurveyTextInterstitialRenderer has no button."));else g.M(Error("SurveyTextInterstitialRenderer has no text."));else g.M(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
UZ.prototype.clear=function(){this.hide()};
UZ.prototype.show=function(){roa(!0);Z.prototype.show.call(this)};
UZ.prototype.hide=function(){roa(!1);Z.prototype.hide.call(this)};g.r(VZ,Z);g.h=VZ.prototype;
g.h.init=function(a,b,c){var d=this;Z.prototype.init.call(this,a,b,c);this.u&&(this.u.cancel(),this.u=null);this.u=new zf(g.Ia);b.bannerImage?b.iconImage?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?b.navigationEndpoint?(b.adInfoRenderer&&b.adInfoRenderer.adHoverTextButtonRenderer?this.B.init(RT("watch-ad-info-hover-button"),b.adInfoRenderer.adHoverTextButtonRenderer,c):g.M(Error("ActionCompanionAdRenderer has no ad info renderer.")),this.A.init(RT("ad-image"),b.bannerImage,
c),this.ga.init(RT("ad-image"),b.iconImage,c),this.M.init(RT("ad-text"),b.headline,c),this.C.init(RT("ad-text"),b.description,c),this.w.init(RT("button"),b.actionButton.buttonRenderer,c),g.ye(this.o["yt-badge-ad"],"Annonce"),this.aa=b.impressionCommands||[],this.V=b.navigationEndpoint,this.I.L(this.element,"click",this.SL,this),Promise.race([this.u,this.ma.showCompanion(this.element,300,250)]).then(function(){return d.show()})):g.M(Error("ActionCompanionAdRenderer has no navigation endpoint.")):g.M(Error("ActionCompanionAdRenderer has no button.")):
g.M(Error("ActionCompanionAdRenderer has no description string.")):g.M(Error("ActionCompanionAdRenderer has no headline string.")):g.M(Error("ActionCompanionAdRenderer has no icon image.")):g.M(Error("ActionCompanionAdRenderer has no banner image."))};
g.h.clear=function(){g.Ir(this.I);this.hide()};
g.h.show=function(){var a=this;this.w.show();Z.prototype.show.call(this);this.aa.forEach(function(b){return a.ra.executeCommand(b,a.macros)})};
g.h.hide=function(){this.w.hide();Z.prototype.hide.call(this)};
g.h.SL=function(a){a=a.target;g.xe(this.B.element,a)||(this.V&&!g.xe(this.w.element,a)&&this.ra.executeCommand(this.V,this.macros),this.api.onAdUxClicked("action-companion"),this.api.pauseVideo())};
g.h.X=function(){this.u&&(this.u.cancel(),this.u=null);Z.prototype.X.call(this)};g.r(WZ,g.R);WZ.prototype.clear=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())g.He(b.value);this.u=[]};
WZ.prototype.G=function(a){g.Kp(a);this.w=Math.max(0,this.w-XZ(this));YZ(this)};
WZ.prototype.F=function(a){g.Kp(a);this.w=Math.min(this.u.length-1,this.w+XZ(this));YZ(this)};
WZ.prototype.X=function(){this.clear();g.R.prototype.X.call(this)};g.r(ZZ,NX);g.h=ZZ.prototype;g.h.ua=function(){return this.o.element};
g.h.mn=function(a){var b=this.o,c=new g.R({D:"li",H:"ad-carousel-listitem",J:[{D:"div",H:"ad-carousel-item"}]});c.o["ad-carousel-item"].appendChild(a);b.u.push(c);b.C.appendChild(c.element)};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.clear=function(){this.o.clear()};var voa={DP:"adinfoclick",TR:"offerclick",UR:"offernavclick"};g.r($Z,NX);$Z.prototype.show=function(){this.u.show()};
$Z.prototype.hide=function(){this.u.hide()};
$Z.prototype.ua=function(){return this.u.element};var toa={Cq:$Z};g.r(b_,OX);
b_.prototype.B=function(a){var b=this.view;a=a.renderer;this.u=a.clickthroughEndpoint||null;var c=a.headline||null;a_(b.w,"headline",c);a_(b.o,"headline",c);c=a.merchant||null;a_(b.A,"merchant",c);a_(b.w,"merchant",c);a_(b.o,"merchant",c);c=a.priceText||null;a_(b.A,"price",c);a_(b.w,"price",c);a_(b.o,"price",c);c=(c=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null)?{D:"img",O:{src:c}}:null;b.A.la("image",c);b.o.la("image",c);a.rating?(c=a.reviewText||null,g.Jh(b.B.element,
Math.floor(100*a.rating/5)+"%"),a_(b.B,"reviewText",c),b.w.la("review",b.B),b.o.la("review",b.B)):(b.w.la("review",null),b.o.la("review",null));this.show();return Promise.resolve()};
b_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "offernavclick":this.u&&this.executeCommand(this.u)}};g.r(c_,g.A);c_.prototype.X=function(){this.B&&g.Po(this.B);this.o&&(this.o.cancel(),this.o=null);this.u&&(this.u.cancel(),this.u=null);this.A&&(this.A.cancel(),this.A=null);this.w&&(this.w.stop(),this.w=null);g.A.prototype.X.call(this)};g.r(d_,NX);d_.prototype.ua=function(){return this.o.element};
d_.prototype.show=function(){this.o.show()};
d_.prototype.hide=function(){this.o.hide()};
d_.prototype.X=function(){yoa(this.u);NX.prototype.X.call(this)};var e_={gD:VX,HD:d_,Bq:b_,yq:ZZ};g.r(f_,OX);
f_.prototype.B=function(a){var b=this;this.u&&(this.u.cancel(),this.u=null);this.u=new zf(g.Ia);return Promise.race([this.u,this.view.A]).then(function(){var c=a.renderer,d=b.view,e=c.shopText||null;e=e?MX(e):null;d.o.la("shopText",e);e=(e=c.sponsoredText||null)?MX(e):null;d.o.la("sponsoredText",e);c.adInfoButton?b.C.bind({renderer:c.adInfoButton.buttonRenderer.navigationEndpoint.adInfoDialogEndpoint.dialog.adInfoDialogRenderer,macros:b.macros}):b.C.bind({renderer:{dialogMessage:c.adInfoText},macros:b.macros});
c=c.itemList.horizontalListRenderer||null;g.Ie(b.F);b.F=[];b.w.clear();c=g.q(c&&c.items||[]);for(d=c.next();!d.done;d=c.next())d=d.value.plaShelfItemRenderer,e=new e_.Bq(b.o,b.A),b.F.push(e),b.w.append(e.view),e.bind({renderer:d,macros:b.macros});YZ(b.w.o);Coa(b);b.show()})};
f_.prototype.U=function(){YZ(this.w.o)};
f_.prototype.G=function(a){"adinfoclick"==a.type&&this.C.show()};
f_.prototype.X=function(){this.u&&(this.u.cancel(),this.u=null);g.Ie(this.F);this.F=[];OX.prototype.X.call(this)};g.r(g_,NX);g.h=g_.prototype;g.h.ua=function(){return this.o.element};
g.h.mn=function(a){this.A++;this.F.appendChild(a);h_(this)};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.clear=function(){this.A=0;g.re(this.F)};
g.h.scrollLeft=function(){this.u=Math.max(0,this.u-1);h_(this)};
g.h.X=function(){NX.prototype.X.call(this)};g.r(i_,NX);g.h=i_.prototype;g.h.ua=function(){return this.o.element};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.mn=function(a){this.o.qb(a)};
g.h.X=function(){NX.prototype.X.call(this);g.He(this.u)};g.r(j_,NX);j_.prototype.show=function(){this.o.show()};
j_.prototype.hide=function(){this.o.hide()};
j_.prototype.ua=function(){return this.o.element};var Foa={Cq:j_};g.r(k_,OX);k_.prototype.B=function(a){var b=this.view;a=a.renderer;this.u=a.clickthroughEndpoint||null;var c=a.headline||null;c&&g.ye(b.o.o["iv-cards-slider-text"],g.T(c));(c=a.priceText||null)&&g.ye(b.o.o["iv-cards-slider-action"],g.T(c));a=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null;b.o.la("image",a?{D:"img",O:{src:a}}:null);this.show();return Promise.resolve()};
k_.prototype.G=function(){this.u&&this.executeCommand(this.u)};var l_={oD:i_,Bq:k_,yq:g_};g.r(m_,OX);
m_.prototype.B=function(a){var b=this;this.w&&(this.w.cancel(),this.w=null);this.w=new zf(g.Ia);return Promise.race([this.w,this.view.w]).then(function(){var c=a.renderer;b.U=c.clickTrackingEndpoints||[];b.M=c.clickToAdvSiteEndpoint||null;var d=b.view,e=c.adBadgeText||null;e&&g.ye(d.o.o["yt-badge-ad"],g.T(e));(e=c.shopText||null)&&g.ye(d.o.o["ad-companion-clickthrough"],g.T(e));c.adInfoRenderer&&c.adInfoRenderer.adHoverTextButtonRenderer?b.F.init(RT("watch-ad-info-hover-button"),c.adInfoRenderer.adHoverTextButtonRenderer,
b.macros):g.M(Error("ShoppingCompanionCarouselRenderer has no ad info renderer."));c=c.itemList.horizontalListRenderer||null;g.Ie(b.C);b.C=[];b.u.clear();c=g.q(c&&c.items||[]);for(d=c.next();!d.done;d=c.next())d=d.value.shoppingCompanionCarouselItemRenderer,e=new l_.Bq(b.o,b.A),b.C.push(e),b.u.append(e.view),e.bind({renderer:d,macros:b.macros});b.show()})};
m_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "companionclick":QX(this,this.U);this.o.onAdUxClicked("shopping-companion");this.o.pauseVideo();break;case "nextbuttonclick":a=this.u;a.u=Math.min(a.A-3,a.u+1);h_(a);break;case "prevbuttonclick":this.u.scrollLeft();break;case "shoptextclick":this.M&&this.executeCommand(this.M)}};
m_.prototype.X=function(){this.w&&(this.w.cancel(),this.w=null);g.Ie(this.C);this.C=[];OX.prototype.X.call(this)};g.r(n_,g.Gr);n_.prototype.F=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof TT&&this.w(b)}};var jsa=["pla-shelf","shopping-companion","action-companion"];g.r(o_,n_);o_.prototype.w=function(a){var b=a.id,c=a.content,d=c.componentType;if(jsa.includes(d)){var e=this.A();switch(a.actionType){case 1:if(this.u.has(b))break;a=Hoa(d,this.o,e);if(!a){g.Go(Error("Unable to create component with type: "+d));break}this.u.set(b,a);case 2:b=this.u.get(b);if(!b)break;b.bind(c);break;case 3:if(c=this.u.get(b))c.dispose(),this.u["delete"](b)}}};
o_.prototype.X=function(){g.Ie([].concat(g.ea(this.u.values())))};g.r(Ioa,ST);g.r(p_,n_);
p_.prototype.w=function(a){var b=a.content;switch(b.componentType){case "pla-shelf":switch(a.actionType){case 1:case 2:this.o.na("onPlaShelfInfoCardsReady",{renderer:b.renderer,macros:b.macros});break;case 3:this.o.na("onPlaShelfInfoCardsReady",{})}break;case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",{})}break;
case "action-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.na("updateKevlarOrC3Companion",
{})}break;case "ads-engagement-panel":switch(a.actionType){case 1:case 2:this.o.na("updateEngagementPanelAction",b.renderer.addAction);this.o.na("changeEngagementPanelVisibility",b.renderer.expandAction);break;case 3:this.o.na("changeEngagementPanelVisibility",b.renderer.hideAction),this.o.na("updateEngagementPanelAction",b.renderer.removeAction)}}};var ksa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["pla-shelf","shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.r(q_,n_);
q_.prototype.w=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!ksa.includes(d))switch(a.actionType){case 1:a=this.C();a=Hoa(d,this.A,a);if(!a){g.Go(Error("No UI component returned from ComponentFactory for type: "+d));break}Ib(this.u,b)?g.Go(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);this.B.append(a.Ca);break;case 2:b=Joa(this,a);if(null==b)break;b.bind(c);break;case 3:c=Joa(this,a),null!=c&&(g.He(c),Ib(this.u,b)?(c=this.u,b in c&&delete c[b]):g.Go(Error("Ad UI component does not exist: "+
b)))}}};
q_.prototype.X=function(){g.Ie(Object.values(this.u));this.u={};n_.prototype.X.call(this)};g.r(s_,g.A);s_.prototype.get=function(){this.ea()&&r_("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.o});this.o||(this.o=this.u());return this.o};var hpa=new Map([[0,"trigger_category_layout_exit_normal"],[1,"trigger_category_layout_exit_skip"],[2,"trigger_category_layout_exit_mute"],[3,"trigger_category_slot_expiration"],[4,"trigger_category_slot_fulfillment"],[5,"trigger_category_slot_entry"]]);g.r(x_,g.A);x_.prototype.logEvent=function(a){y_(this,a)};
var Woa=new Map([["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_ad_placement_renderers_response_received","OPPORTUNITY_TYPE_AD_PLACEMENT_RENDERERS_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"]]),Toa=new Map([["slot_type_in_player","SLOT_TYPE_IN_PLAYER"],
["slot_type_above_feed","SLOT_TYPE_ABOVE_FEED"],["slot_type_below_player","SLOT_TYPE_BELOW_PLAYER"],["slot_type_player_bytes","SLOT_TYPE_PLAYER_BYTES"],["slot_type_forecasting","SLOT_TYPE_FORECASTING"]]),Voa=new Map([["layout_type_media_layout_player_overlay","LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"],["layout_type_companion_with_action_button","LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"],["layout_type_companion_with_image","LAYOUT_TYPE_COMPANION_WITH_IMAGE"],["layout_type_companion_with_shopping",
"LAYOUT_TYPE_COMPANION_WITH_SHOPPING"],["layout_type_media","LAYOUT_TYPE_MEDIA"],["layout_type_composite_player_bytes","LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"],["layout_type_forecasting","LAYOUT_TYPE_FORECASTING"],["layout_type_in_video_text_overlay","LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY"],["layout_type_in_video_enhanced_text_overlay","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"],["layout_type_in_video_image_overlay","LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]]),Qoa=new Map([["trigger_type_on_new_playback_after_content_video_id",
"TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_slot_id_entered","TRIGGER_TYPE_SLOT_ID_ENTERED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_scheduled","TRIGGER_TYPE_SLOT_ID_SCHEDULED"],["trigger_type_layout_id_entered","TRIGGER_TYPE_LAYOUT_ID_ENTERED"],["trigger_type_on_different_layout_id_entered","TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED"],["trigger_type_layout_id_exited",
"TRIGGER_TYPE_LAYOUT_ID_EXITED"],["trigger_type_on_layout_self_exit_requested","TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED"],["trigger_type_on_element_self_enter_requested","TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED"],["trigger_type_before_content_video_id_started","TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED"],["trigger_type_after_content_video_id_ended","TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED"],["trigger_type_media_time_range","TRIGGER_TYPE_MEDIA_TIME_RANGE"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",
"TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED","TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter","TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"]]),Roa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],
[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"]]),Uoa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),Loa=new Map([["normal",{Fp:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",
{Fp:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{Fp:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Fp:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}]]);g.r(D_,g.A);D_.prototype.X=function(){var a=gpa(this.o);a=g.q(a);for(var b=a.next();!b.done;b=a.next())J_(this,b.value,!1);g.A.prototype.X.call(this)};S_.prototype.isActive=function(){switch(this.o){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
S_.prototype.Gs=function(){switch(this.B){case "fill_requested":return!0;default:return!1}};
S_.prototype.Fs=function(){switch(this.o){case "exit_requested":return!0;default:return!1}};
S_.prototype.Ds=function(){switch(this.o){case "rendering_stop_requested":return!0;default:return!1}};g.r(T_,Ta);g.r(O_,Ta);g.r(U_,g.A);g.h=U_.prototype;g.h.Gr=function(a){a=E_(this,a);a.B="fill_requested";a.C.Gr()};
g.h.rj=function(a){E_(this,a).rj=!0};
g.h.Gs=function(a){return E_(this,a).Gs()};
g.h.Fs=function(a){return E_(this,a).Fs()};
g.h.Ds=function(a){return E_(this,a).Ds()};g.r(kpa,g.A);Z_.prototype.get=function(){return this.value};
g.r($_,Z_);$_.prototype.o=function(){return"metadata_type_action_companion_ad_renderer"};
g.r(a0,Z_);a0.prototype.o=function(){return"metadata_type_ad_next_params"};
g.r(b0,Z_);b0.prototype.o=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.r(c0,Z_);c0.prototype.o=function(){return"metadata_type_image_companion_ad_renderer"};
g.r(d0,Z_);d0.prototype.o=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.r(e0,Z_);e0.prototype.o=function(){return"metadata_type_ad_placement_config"};
g.r(f0,Z_);f0.prototype.o=function(){return"metadata_type_ad_video_id"};
g.r(g0,Z_);g0.prototype.o=function(){return"metadata_type_content_cpn"};
g.r(h0,Z_);h0.prototype.o=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.r(i0,Z_);i0.prototype.o=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.r(j0,Z_);j0.prototype.o=function(){return"metadata_type_player_bytes_callback"};
g.r(k0,Z_);k0.prototype.o=function(){return"metadata_type_sub_layouts"};
g.r(l0,Z_);l0.prototype.o=function(){return"metadata_type_video_length_seconds"};
g.r(m0,Z_);m0.prototype.o=function(){return"metadata_type_player_vars"};
g.r(n0,Z_);n0.prototype.o=function(){return"metadata_type_layout_enter_ms"};
g.r(o0,Z_);o0.prototype.o=function(){return"metadata_type_sub_layout_index"};
g.r(p0,Z_);p0.prototype.o=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.r(q0,Z_);q0.prototype.o=function(){return"metadata_type_drift_recovery_ms"};
g.r(r0,Z_);r0.prototype.o=function(){return"metadata_type_fulfilled_layout"};lpa.prototype.Gr=function(){a:{var a=this.Fb,b=this.slot,c=v_(this.slot.Ja,"metadata_type_fulfilled_layout");if(null!=E_(a.o,b))if(E_(a.o,b).B=c?"filled":"not_filled",null===c)A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b),J_(a,b,!1);else if(A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c),E_(a.o,b).A)J_(a,b,!1);else{A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var d=a.o;if(!E_(d,b))throw new T_("Unknown slotState for onLayout");if(!d.Jd.Ms.get(b.ab))throw new T_("No LayoutRenderingAdapterFactory registered for slot of type: "+
b.ab);if(g.ab(c.Ae)&&g.ab(c.We)&&g.ab(c.Ve))throw new T_("Layout has no exit triggers.");W_(d,0,c.Ae);W_(d,1,c.We);W_(d,2,c.Ve)}catch(l){K_(a,b,c,l);J_(a,b,!0);break a}a.o.rj(b);try{var e=a.o,f=E_(e,b),k=e.Jd.Ms.get(b.ab).get().o(e.A,e.u,b,c);k.init();f.layout=c;if(f.u)throw new T_("Already had LayoutRenderingAdapter registered for slot");f.u=k;X_(e,f,0,c.Ae);X_(e,f,1,c.We);X_(e,f,2,c.Ve)}catch(l){M_(a,b);J_(a,b,!0);K_(a,b,c,l);break a}A_(a.Sa,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.q(a.u);
for(e=d.next();!e.done;e=d.next())e.value.Xi(c);M_(a,b);fpa(a,b)}}};g.r(npa,mpa);g.r(s0,g.O);g.h=s0.prototype;g.h.Ul=function(){return this.slot};
g.h.vl=function(){return this.layout};
g.h.init=function(){this.o.addListener(this)};
g.h.Po=function(){this.o.removeListener(this);this.dispose()};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?K_(this.Fb,this.slot,a,new T_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(xqa(this.o,this.u,1),F_(this.Fb,this.slot,a))};
g.h.fj=function(a,b){a.layoutId!==this.layout.layoutId?K_(this.Fb,this.slot,a,new T_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(xqa(this.o,this.u,3),this.u=[],I_(this.Fb,this.slot,a,b))};
g.h.X=function(){this.o.removeListener(this);g.O.prototype.X.call(this)};g.r(x0,s0);g.h=x0.prototype;g.h.init=function(){s0.prototype.init.call(this);var a=v_(this.layout.Ja,this.F);var b=this.B.u.adPlacementConfig;var c=NU(LU());b=Object.assign(Object.assign({},NU(KU(b))),c);this.u.push(this.G(a,b))};
g.h.Ly=function(a){if(a===this.C){a:{a=this.Gd.o;for(var b=g.q(a.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,"slot_type_player_bytes"===c.ab&&qpa(this,a.get(c))){a=!0;break a}a=!1}a?this.Cb.K.sendVideoStatsEngageEvent(1,void 0,2):this.w?this.w():r_("Tried to call engagePingCallback but it is null",this.Ul(),this.vl())}};
g.h.Hi=function(a,b){qpa(this,b)&&(null===this.w?this.w=Eqa(this.Cb):r_("OnLayoutEntered should set engagePingCallback, but it was not null",this.Ul(),this.vl()))};
g.h.startRendering=function(a){s0.prototype.startRendering.call(this,a);w0(this.B,"impression")};
g.h.Ii=function(){};
g.h.Yj=function(){};
g.h.nk=function(){};
g.h.Wj=function(){};
g.h.Xj=function(){};
g.h.Xi=function(){};
g.h.lk=function(){};
g.h.X=function(){this.A.u["delete"](this);s0.prototype.X.call(this)};g.r(y0,x0);g.r(spa,x0);g.r(upa,x0);wpa.prototype.o=function(a,b,c,d){if(z0(d,rpa()))return new y0(a,c,d,this.Ge,this.Cb,this.u(),this.Gd,this.oc);if(z0(d,tpa()))return new spa(a,c,d,this.Ge,this.Cb,this.u(),this.Gd,this.oc);if(z0(d,vpa()))return new upa(a,c,d,this.Ge,this.Cb,this.u(),this.Gd,this.oc);throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.h=xpa.prototype;g.h.Ul=function(){return this.slot};
g.h.vl=function(){return this.layout};
g.h.init=function(){};
g.h.Po=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?K_(this.Fb,this.slot,a,new T_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(w0(this.o,"impression"),F_(this.Fb,this.slot,a),iqa(this.rm,a.layoutId))};
g.h.fj=function(a,b){a.layoutId!==this.layout.layoutId?K_(this.Fb,this.slot,a,new T_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):I_(this.Fb,this.slot,a,b)};zpa.prototype.o=function(a,b,c,d){if(z0(d,ypa()))return new xpa(a,c,d,this.Cb,this.rm,this.oc);throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in ForecastingLayoutRenderingAdapterFactory.");};Apa.prototype.o=function(a,b,c,d){if(z0(d,rpa()))return new y0(a,c,d,this.Ge,this.Cb,this.u(),this.Gd,this.oc);throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in MwebBelowPlayerLayoutRenderingAdapterFactory.");};g.h=Bpa.prototype;g.h.Ul=function(){return this.slot};
g.h.vl=function(){return this.layout};
g.h.init=function(){this.hd.addListener(this);this.vf.addListener(this);this.ob.addListener(this);this.u.forEach(function(c){c.init()});
var a=v_(this.layout.Ja,"metadata_type_layout_enter_ms"),b=A0(this);a=WW(this.vf.u,a,b);null!==a&&this.Fg.o(a,b)};
g.h.Po=function(){this.o=null;this.u.forEach(function(a){a.My()});
this.hd.removeListener(this);this.vf.removeListener(this);this.ob.removeListener(this)};
g.h.startRendering=function(){var a,b;if(this.o)r_("Failed to restart rendering",this.slot,this.layout);else{var c=null===(a=this.hd.bl)||void 0===a?void 0:a.layoutId;this.o={pj:Dpa(this,c)};null===(b=this.o.pj)||void 0===b?void 0:b.startRendering();F_(this.Fb,this.slot,this.layout);w0(this.w,"ad_placement_start")}};
g.h.fj=function(a,b){var c,d;null===(d=null===(c=this.o)||void 0===c?void 0:c.pj)||void 0===d?void 0:d.fj(b);this.o=null;null!==this.driftRecoveryMs&&(B0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Cpa(this)-v_(this.layout.Ja,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*nT(this.ob.K.app)).toString()}),this.driftRecoveryMs=null);I_(this.Fb,this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=this.ob.K.getCurrentTime(2,!0);var f=
A0(this)/1E3;e=1>=Math.abs(e-f)}e&&w0(this.w,"ad_placement_end")};
g.h.mk=function(a){a=a.layoutId;var b,c,d;this.o&&(null===(b=this.o.pj)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.o.pj)||void 0===c?void 0:c.fj("normal"),this.o={pj:Dpa(this,a)},null===(d=this.o.pj)||void 0===d?void 0:d.startRendering())};
g.h.kk=function(){};
g.h.IA=function(){};
g.h.uA=function(a){var b=v_(this.layout.Ja,"metadata_type_layout_enter_ms"),c=A0(this);a*=1E3;b<=a&&a<c&&this.Fg.o(a,c)};
g.h.hA=function(){var a=this.ob.K.getCurrentTime(2,!0);if(this.o){var b=v_(this.layout.Ja,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=Cpa(this),e=nT(this.ob.K.app),f=Math.min(a+e,d/1E3);f<=a?B0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(B0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*
e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.ob.K.seekTo(f,void 0,void 0,1))}}};
g.h.TA=function(){};
g.h.Ky=function(){};g.h=Epa.prototype;
g.h.init=function(){var a=v_(this.layout.Ja,"metadata_type_video_length_seconds");var b=v_(this.layout.Ja,"metadata_type_player_vars");var c=1E3*a,d=v_(this.layout.Ja,"metadata_type_layout_enter_ms");if(Number.isFinite(d)){var e=d+c;e<=d?b="Start time is not earlier than end time":(b=this.Fg.u(b,2,c,d,e))?(c=this.kj,d=this.slot.slotId,e=this.layout.layoutId,b?(c.o.has(b)&&r_("Unexpected remap of timeline playback"),c.o.set(b,{slotId:d,layoutId:e})):r_("Invalid timeline playback ID"),b=null):b="Failed to add to playback timeline"}else b=
"Not supported to play the video after the organic content";null!==b?r_(b,this.slot,this.layout):(this.ob.addListener(this),Cqa(this.oc,this.layout.layoutId,a,this),Xoa(this.Fb,this.slot,this.layout))};
g.h.My=function(){this.ob.removeListener(this);var a=this.oc,b=this.layout.layoutId;a.o.has(b)?(a.o["delete"](b),delete SU().o[b]):r_("Unexpected unregistration of layout in LidarApi")};
g.h.startRendering=function(){var a;if(this.u)r_("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={Ls:null,YB:!1};var b=(null===(a=v1(this.hd,2))||void 0===a?void 0:a.clientPlaybackNonce)||"",c=this.o;c.u=Object.assign(Object.assign({},c.u),{adCpn:b});Yoa(this.Fb,this.slot,this.layout)}};
g.h.fj=function(a){this.u?(this.u=null,$oa(this.Fb,this.slot,this.layout,a)):r_("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.hA=function(a){if(this.u){if(this.o.o.has("impression")){var b=g.PK(this.ob.K,void 0);Fpa(this,b,a,this.u.Ls)}this.u.Ls=a}};
g.h.TA=function(a){if(this.u){this.u.YB||(this.u.YB=!0,a=new g.$G(a.state,new g.HC));var b=this.ob.K.getCurrentTime(2,!1);!a.Jh.eb()&&a.state.eb()&&C0(b,0,null)&&w0(this.o,"impression");if(this.o.o.has("impression")&&(g.bH(a,4)&&!g.bH(a,2)&&v0(this.o,"pause"),0>aH(a,4)&&!(0>aH(a,2))&&v0(this.o,"resume"),g.bH(a,16)&&.5<=this.ob.K.getCurrentTime(2,!1)&&v0(this.o,"seek"),g.bH(a,2))){var c=v_(this.layout.Ja,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);Fpa(this,a.state,d?c:b,this.u.Ls);d&&
w0(this.o,"complete")}}};
g.h.Ky=function(a){this.o.o.has("impression")&&v0(this.o,a?"fullscreen":"end_fullscreen")};
g.h.skip=function(){};
g.h.RB=function(){this.o.o.has("impression")&&v0(this.o,"clickthrough")};Gpa.prototype.o=function(a,b,c,d){a:{var e=v_(d.Ja,"metadata_type_sub_layouts"),f=v_(d.Ja,"metadata_type_ad_placement_config");if(z0(d,{tf:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms"],xh:["layout_type_composite_player_bytes"]})&&void 0!==e&&void 0!==f){var k=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=v_(l.Ja,"metadata_type_sub_layout_index");if(!z0(l,{tf:["metadata_type_video_length_seconds","metadata_type_player_vars","metadata_type_layout_enter_ms"],
xh:["layout_type_media"]})||void 0===m){a=null;break a}k.push(new Epa(b,c,l,this.Fg,new t0(l.jf,this.Cb,f,this.oc,l.layoutId,m),this.ob,this.kj,this.oc,this.hd))}a=new Bpa(a,c,d,this.hd,this.Fg,this.vf,this.ob,new t0(d.jf,this.Cb,f,this.oc,d.layoutId),this.Cb,k)}else a=null}if(a)return a;throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.h=Hpa.prototype;g.h.Ul=function(){return this.slot};
g.h.vl=function(){return this.layout};
g.h.init=function(){};
g.h.Po=function(){};
g.h.startRendering=function(){};
g.h.fj=function(){};Jpa.prototype.o=function(a,b,c,d){if(z0(d,Ipa()))return new Hpa(c,d);throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in TvInPlayerLayoutRenderingAdapterFactory.");};g.r(D0,s0);D0.prototype.init=function(){s0.prototype.init.call(this);var a=v_(this.layout.Ja,"metadata_type_instream_ad_player_overlay_renderer");this.u.push(new DW(a))};
D0.prototype.Ly=function(a){a:{var b=this.A;for(var c=g.q(this.Gd.o.values()),d=c.next();!d.done;d=c.next())if(d.value.layoutId===b){b=!0;break a}b=!1}if(b)switch(a){case "visit-advertiser":this.Cb.K.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.w||(a=this.ob,2===a.K.getPlayerState(2)&&a.K.playVideo());break;case "ad-info-icon-button":(this.w=2===this.ob.K.getPlayerState(2))||this.ob.pauseVideo();
break;case "visit-advertiser":this.ob.pauseVideo();v_(this.layout.Ja,"metadata_type_player_bytes_callback").RB();break;case "skip-button":v_(this.layout.Ja,"metadata_type_player_bytes_callback").skip()}};
D0.prototype.X=function(){s0.prototype.X.call(this)};Kpa.prototype.o=function(a,b,c,d){if(z0(d,{tf:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id"],xh:["layout_type_media_layout_player_overlay"]}))return new D0(a,c,d,this.Ge,this.ob,this.Cb,this.Gd);throw new T_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+w_(d.Ja)+" in WebInPlayerLayoutRenderingAdapterFactory.");};g.r(E0,g.A);g.r(G0,E0);G0.prototype.u=function(a,b,c,d){0!==c.length&&F0(this,{Tg:c,Pq:d,contentCpn:a,Yk:b,so:!1,daiEnabled:!1})};Npa.prototype.A=function(a){var b=this,c=[];this.u=new Map;var d=a.Tg.filter(Spa),e={};d=g.q(d);for(var f=d.next();!f.done;e={Zb:e.Zb,nf:e.nf,qf:e.qf},f=d.next())if(e.qf=f.value,e.Zb=e.qf.renderer,e.nf=e.qf.config.adPlacementConfig,f=e.nf.kind,null!=e.Zb.actionCompanionAdRenderer)LW(this.Kb)&&(e.Zb.actionCompanionAdRenderer.adVideoId?H0(this,e.qf.elementId,f,e.Zb.actionCompanionAdRenderer.adVideoId,e.nf,function(k){return function(l,m,n,p){var t=k.Zb.actionCompanionAdRenderer;return j1("layout_type_companion_with_action_button",
new $_(t),m,n,p,t.impressionPings,b.o(l))}}(e)):r_("ActionCompanionAdRenderer without adVideoId",void 0,void 0,{kind:f,
"actionButton undefined":void 0===e.Zb.actionCompanionAdRenderer.actionButton,"APR count":a.Tg.length,isAdBreakResponse:a.so}));else if(e.Zb.imageCompanionAdRenderer)MW(this.Kb)&&(e.Zb.imageCompanionAdRenderer.adVideoId?H0(this,e.qf.elementId,f,e.Zb.imageCompanionAdRenderer.adVideoId,e.nf,function(k){return function(l,m,n,p){var t=k.Zb.imageCompanionAdRenderer;return j1("layout_type_companion_with_image",new c0(t),m,n,p,t.impressionPings,b.o(l))}}(e)):r_("ImageCompanionAdRenderer without adVideoId"));
else if(e.Zb.shoppingCompanionCarouselRenderer)NW(this.Kb)&&(e.Zb.shoppingCompanionCarouselRenderer.adVideoId?H0(this,e.qf.elementId,f,e.Zb.shoppingCompanionCarouselRenderer.adVideoId,e.nf,function(k){return function(l,m,n,p){var t=k.Zb.shoppingCompanionCarouselRenderer;return j1("layout_type_companion_with_shopping",new d0(t),m,n,p,t.impressionPings,b.o(l))}}(e)):r_("ShoppingCompanionCarouselRenderer without adVideoId"));
else if(e.Zb.adBreakServiceRenderer)DY(this.Kb)&&Tpa(e.qf)&&this.Fb.Yt({adPlacementRenderer:e.qf,contentCpn:a.contentCpn,Yk:a.Yk});else if(e.Zb.clientForecastingAdRenderer)r1(this.Kb)&&(f=sqa(e.nf,a.contentCpn,function(k){return function(l){var m=k.Zb.clientForecastingAdRenderer,n=k.nf;l=b.o(l);var p=Tr(),t={layoutId:p,layoutType:"layout_type_forecasting",wb:"core"},u=new Map,z=m.impressionUrls;z&&u.set("impression",z);return{layoutId:p,layoutType:"layout_type_forecasting",jf:u,Ae:[new c1(p)],We:[],
Ve:[],wb:"core",Ja:new u_([new p0(m),new e0(n)]),rh:l(t)}}}(e)))&&c.push(f);
else if(e.Zb.invideoOverlayAdRenderer)q1(this.Kb)&&(f=nqa(e.nf,a.contentCpn,function(k){return function(l,m){a:{var n=k.Zb.invideoOverlayAdRenderer;var p=k.nf,t=b.o(l),u=n.contentSupportedRenderer;if(u){if(u.textOverlayAdContentRenderer){u=Tr();n=k1(u,"layout_type_in_video_text_overlay",n,p,t,m);break a}if(u.enhancedTextOverlayAdContentRenderer){u=Tr();n=k1(u,"layout_type_in_video_enhanced_text_overlay",n,p,t,m);break a}if(u.imageOverlayAdContentRenderer){u=Tr();var z=[new h1(u)];m&&z.push(m);n=Object.assign(Object.assign({},
k1(u,"layout_type_in_video_image_overlay",n,p,t,m)),{Ae:z});break a}r_("InvideoOverlayAdRenderer without appropriate sub renderer")}else r_("InvideoOverlayAdRenderer without contentSupportedRenderer");n=void 0}return n}}(e)))&&c.push(f);
else if(e.Zb.linearAdSequenceRenderer&&a.daiEnabled){f=void 0;try{f=rqa(a.contentCpn,function(k){return function(l){return Wpa(k.qf,b.o(l))}}(e))}catch(k){r_("Failed to parse AdPlacementRenderer for DAI AdPlacementRenderersSlotExtractor: "+k.message);
continue}c.push(f)}else Qpa(this,e.Zb,f);if(null===this.w||a.daiEnabled)return c;e=a.Pq.filter(Spa);e=g.q(e);for(f=e.next();!f.done;f=e.next())d=f.value,Qpa(this,d.renderer,d.config.adPlacementConfig.kind);d=Array.from(this.u.values()).filter(function(k){return Rpa(k,a)});
e={};d=g.q(d);for(f=d.next();!f.done;e={Sf:e.Sf},f=d.next())e.Sf=f.value,f=function(k){return function(l){return k.Sf.Zk(l,k.Sf.adVideoId,k.Sf.instreamVideoAdRenderer.elementId,k.Sf.Nq)}}(e),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===e.Sf.ai?c.push(qqa(this.w,e.Sf.Oq,a.contentCpn,f)):c.push(pqa(this.w,a.contentCpn,e.Sf.instreamVideoAdRenderer.elementId,f));
return c};g.r(I0,E0);g.h=I0.prototype;g.h.Yt=function(a){if(v1(this.hd,1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.adPlacementRenderer.config.adPlacementConfig.kind)if(this.o)r_("Unexpected multiple fetch instructions for the current content");else{this.o=a;a=g.q(this.vf.w);for(var b=a.next();!b.done;b=a.next())Zpa(this,this.o,b.value)}};
g.h.IA=function(a){this.o&&Zpa(this,this.o,a)};
g.h.uA=function(){};
g.h.mk=function(){};
g.h.kk=function(a){a=a.clientPlaybackNonce;var b;(null===(b=this.o)||void 0===b?void 0:b.contentCpn)!==a&&(this.o=null)};
g.h.X=function(){E0.prototype.X.call(this);this.o=null};g.r(J0,g.A);g.h=J0.prototype;g.h.schedule=function(a){var b=a.contentCpn,c=a.execute,d=a.JE;a=a.aO;var e="adfetchcuerange:"+Tr(),f=a?"deferredadvisiblecuerange:"+Tr():null;this.o.set(e,{contentCpn:b,Lw:f,execute:c});this.Ke.addCueRange(e,d.start,d.end,!1,this);f&&a&&this.Ke.addCueRange(f,a.start,a.end,!0,this)};
g.h.Iy=function(a){var b=this.o.get(a);if(b){var c=b.execute;b=b.Lw;this.o["delete"](a);this.Ke.removeCueRange(a);b&&this.Ke.removeCueRange(b);c()}};
g.h.Jy=function(){};
g.h.mk=function(){};
g.h.kk=function(a){a=a.clientPlaybackNonce;for(var b=g.q(this.o.entries()),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;var e=d.Lw;d.contentCpn!==a&&(this.o["delete"](c),this.Ke.removeCueRange(c),e&&this.Ke.removeCueRange(e))}};var Gqa=["metadata_type_content_cpn","metadata_type_player_bytes_callback","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Fqa=["metadata_type_content_cpn","metadata_type_player_bytes_callback","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config","metadata_type_ad_next_params"];g.r(K0,E0);g.h=K0.prototype;
g.h.Hi=function(a,b){if(KW(this.Kb)&&"layout_type_media"===b.layoutType)if(t_(b,this.o)){var c={Su:b.layoutId,contentCpn:v_(b.Ja,"metadata_type_content_cpn"),SN:v_(b.Ja,"metadata_type_player_bytes_callback"),instreamAdPlayerOverlayRenderer:v_(b.Ja,"metadata_type_instream_ad_player_overlay_renderer"),adPlacementConfig:v_(b.Ja,"metadata_type_ad_placement_config"),adNextParams:v_(b.Ja,"metadata_type_ad_next_params")};F0(this,c)}else r_("Received MediaLayout entered, missing metadata for opportunity",
a,b,{Actual:w_(b.Ja),Expected:this.o})};
g.h.Yj=function(){};
g.h.nk=function(){};
g.h.Wj=function(){};
g.h.Xj=function(){};
g.h.Xi=function(){};
g.h.lk=function(){};
g.h.Ii=function(){};
L0.prototype.A=function(a){var b=this,c=[];c.push(lqa(a.contentCpn,a.Su,function(d){return b.Zk("core",a,function(e){return C_(b.Sa,d.slotId,d.ab,d.wb,d.ld,e.layoutId,e.layoutType,e.wb)})}));
return c};g.r(M0,g.A);g.h=M0.prototype;g.h.Yj=function(){};
g.h.nk=function(){};
g.h.Wj=function(){};
g.h.Xj=function(){};
g.h.Xi=function(){};
g.h.lk=function(a,b){this.o.has(a)&&this.o.get(a)===b&&r_("Unscheduled a Layout that is currently entered.",a,b)};
g.h.Hi=function(a,b){this.o.set(a,b)};
g.h.Ii=function(a){this.o["delete"](a)};g.r(U0,g.A);g.h=U0.prototype;
g.h.cf=function(a,b,c,d){if(this.u.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof Q0||b instanceof R0||b instanceof S0||b instanceof N0||b instanceof O0||b instanceof P0))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new T0(a,b,c,d);this.u.set(b.o,a);b instanceof S0&&this.B.has(b.A)&&L_(this.o(),[a]);b instanceof Q0&&this.A.has(b.w)&&L_(this.o(),[a]);b instanceof N0&&this.w.has(b.u)&&
L_(this.o(),[a])};
g.h.lf=function(a){this.u["delete"](a.o)};
g.h.Yj=function(a){this.B.add(a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof S0&&a.slotId===d.trigger.A&&b.push(d);0<b.length&&L_(this.o(),b)};
g.h.nk=function(a){this.B["delete"](a.slotId)};
g.h.Wj=function(a){this.A.add(a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof Q0&&a.slotId===d.trigger.w&&b.push(d);0<b.length&&L_(this.o(),b)};
g.h.Xj=function(a){this.A["delete"](a.slotId);for(var b=[],c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof R0&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&L_(this.o(),b)};
g.h.Xi=function(a){this.C.add(a.layoutId)};
g.h.lk=function(a,b){this.C["delete"](b.layoutId)};
g.h.Hi=function(a,b){this.w.add(b.layoutId);for(var c=[],d=g.q(this.u.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof N0)b.layoutId===e.trigger.u&&c.push(e);else if(e.trigger instanceof P0){var f=e.trigger;a.ab===f.ab&&b.layoutType===f.layoutType&&b.layoutId!==f.B&&c.push(e)}0<c.length&&L_(this.o(),c)};
g.h.Ii=function(a,b){this.w["delete"](b.layoutId);for(var c=[],d=g.q(this.u.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof O0&&b.layoutId===e.trigger.B&&c.push(e);0<c.length&&L_(this.o(),c)};g.r(V0,g.A);V0.prototype.cf=function(a,b,c,d){if(this.o.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof bqa))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.o.set(b.o,new T0(a,b,c,d))};
V0.prototype.lf=function(a){this.o["delete"](a.o)};g.r(W0,g.A);W0.prototype.cf=function(a,b,c,d){if(this.o.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof cqa))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.o.set(b.o,new T0(a,b,c,d))};
W0.prototype.lf=function(a){this.o["delete"](a.o)};
W0.prototype.u=function(a){var b=[];b.push.apply(b,g.ea(dqa(this.o,a)));b.length&&L_(this.w(),b)};g.r($0,g.A);$0.prototype.cf=function(a,b,c,d){if(this.o.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.o;if(b instanceof Y0)a1(this,a,b,c,d,e,b.u.start,b.u.end,b.visible);else if(b instanceof Z0)a1(this,a,b,c,d,e,b.u.start,b.u.end,!1);else if(b instanceof X0)a1(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.visible);else throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
$0.prototype.lf=function(a){var b=this.o.get(a.o);b&&this.Ke.removeCueRange(b.Kw);this.o["delete"](a.o)};
$0.prototype.Iy=function(a){if(a=eqa(this,a)){a=this.o.get(a);var b=null===a||void 0===a?void 0:a.bundle.trigger;a&&(b instanceof Y0||b instanceof X0)&&L_(this.u(),[a.bundle])}};
$0.prototype.Jy=function(a){(a=eqa(this,a))&&(a=this.o.get(a))&&a.bundle.trigger instanceof Z0&&L_(this.u(),[a.bundle])};g.r(b1,g.A);b1.prototype.cf=function(a,b,c,d){if(this.u.has(b.o)||this.w.has(b.o))throw new O_("Tried to re-register the trigger.");a=new T0(a,b,c,d);if(a.trigger instanceof gqa)this.u.set(a.trigger.o,a);else if(a.trigger instanceof fqa)this.w.set(a.trigger.o,a);else throw new O_("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.o)&&a.slot.slotId===this.o&&L_(this.A(),[a])};
b1.prototype.lf=function(a){this.u["delete"](a.o);this.w["delete"](a.o)};
b1.prototype.mk=function(a){a=a.slotId;if(this.o!==a){var b=[];null!==this.o&&b.push.apply(b,g.ea(hqa(this.w,this.o)));null!==a&&b.push.apply(b,g.ea(hqa(this.u,a)));this.o=a;b.length&&L_(this.A(),b)}};
b1.prototype.kk=function(){};g.r(e1,g.A);g.h=e1.prototype;g.h.cf=function(a,b,c,d){if(this.w.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof c1||b instanceof d1))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.w.set(b.o,new T0(a,b,c,d))};
g.h.lf=function(a){this.w["delete"](a.o)};
g.h.dz=function(){};
g.h.cz=function(){};
g.h.ct=function(){};
g.h.Hi=function(a,b){"slot_type_above_feed"===a.ab&&(null!==this.o?r_("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.o=b.layoutId)};
g.h.Ii=function(a){"slot_type_above_feed"===a.ab&&(null===this.o?r_("called onLayoutExited with AboveFeedSlot but there is no entered layout"):this.o=null)};
g.h.Yj=function(){};
g.h.nk=function(){};
g.h.Wj=function(a){"slot_type_above_feed"===a.ab&&(null!==this.u?r_("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.Xj=function(a){"slot_type_above_feed"===a.ab&&(null===this.u?r_("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.Xi=function(){};
g.h.lk=function(){};
g.h.kr=function(){null!==this.o&&iqa(this,this.o)};
g.h.Fr=function(a){if(null===this.u){for(var b=[],c=g.q(this.w.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof d1&&d.trigger.slotId===a&&b.push(d);b.length&&L_(this.A(),b)}};
g.h.Xw=function(){};f1.prototype.ri=function(){return this.contentVideoId};g.r(g1,g.A);g1.prototype.cf=function(a,b,c,d){if(this.o.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof f1))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnNewPlaybackAfterContentVideoIdTriggerAdapter");this.o.set(b.o,new T0(a,b,c,d))};
g1.prototype.lf=function(a){this.o["delete"](a.o)};
g1.prototype.mk=function(){};
g1.prototype.kk=function(a){for(var b=[],c=g.q(this.o.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger.ri()!==a.clientPlaybackNonce&&b.push(d);0<b.length&&L_(this.u(),b)};g.r(i1,g.A);g.h=i1.prototype;g.h.cf=function(a,b,c,d){if(this.u.has(b.o))throw new O_("Tried to register duplicate trigger for slot.");if(!(b instanceof h1))throw new O_("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.u.set(b.o,new T0(a,b,c,d));a=this.o.has(b.layoutId)?this.o.get(b.layoutId):new Set;a.add(b);this.o.set(b.layoutId,a)};
g.h.lf=function(a){this.u["delete"](a.o);if(!(a instanceof h1))throw new O_("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.w.get(a.o);b&&(b.dispose(),this.w["delete"](a.o));if(b=this.o.get(a.layoutId))b["delete"](a),0===b.size&&this.o["delete"](a.layoutId)};
g.h.Yj=function(){};
g.h.nk=function(){};
g.h.Wj=function(){};
g.h.Xj=function(){};
g.h.Xi=function(){};
g.h.lk=function(){};
g.h.Hi=function(a,b){var c=this;if(this.o.has(b.layoutId)){var d=this.o.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={Mk:e.Mk},f=d.next())e.Mk=f.value,f=new g.I(function(k){return function(){var l=c.u.get(k.Mk.o);L_(c.A(),[l])}}(e),e.Mk.durationMs),f.start(),this.w.set(e.Mk.o,f)}};
g.h.Ii=function(){};g.r(jqa,g.A);kqa.prototype.o=function(a,b,c){var d=[new i0(b.Su),new h0(b.instreamAdPlayerOverlayRenderer),new j0(b.SN),new e0(b.adPlacementConfig)];b.adNextParams&&d.push(new a0(b.adNextParams));var e=Tr(),f={layoutId:e,layoutType:"layout_type_media_layout_player_overlay",wb:a};return{layoutId:e,layoutType:"layout_type_media_layout_player_overlay",jf:new Map,Ae:[new O0(Tr(),b.Su)],We:[],Ve:[],wb:a,Ja:new u_(d),rh:c(f)}};g.r(l1,g.A);l1.prototype.init=function(){};
l1.prototype.My=function(){};
l1.prototype.X=function(){this.Ag.removeListener(this);g.A.prototype.X.call(this)};g.r(uqa,g.A);vqa.prototype.fetch=function(a){return mh(this,function c(){var d,e,f,k,l=this,m,n;return Aa(c,function(p){if(1==p.o)return d=a,e=d.bP,f=d.rE,k=void 0===d.mi?void 0:d.mi,p.B=2,g.ta(p,l.Mq.fetch(e,{mi:k,Pb:f,Bk:sY(l.o)}),4);if(2!=p.o)return m=p.u,p["return"](wqa(m,f,l.Kb));n=va(p);g.Tq(n);return p["return"]([])})})};g.r(m1,g.A);g.h=m1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a){this.listeners.forEach(function(b){b.Ly(a)})};
g.h.lH=function(){this.listeners.forEach(function(){})};
g.h.kH=function(){this.listeners.forEach(function(){})};
g.h.YJ=function(){this.listeners.forEach(function(){})};n1.prototype.addListener=function(a){this.listeners.push(a)};
n1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.r(o1,g.A);g.h=o1.prototype;g.h.mk=function(){};
g.h.kk=function(){this.A=new UW(this);this.u=new VW;yqa(this)};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.JA=function(a){this.w.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.IA(a)};
g.h.vA=function(a){g.ub(this.u.o,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.uA(a)};
g.h.ez=function(a){for(var b=g.q(a),c=b.next();!c.done;c=b.next())this.o.add(c.value);this.listeners.forEach(function(){});
a=g.q(a);for(c=a.next();!c.done;c=a.next())this.A.reduce(c.value)};
g.h.X=function(){this.K.getVideoData(1).unsubscribe("cuepointupdated",this.ez,this);this.listeners.length=0;this.o.clear();this.w.length=0;g.A.prototype.X.call(this)};g.r(p1,g.A);p1.prototype.addCueRange=function(a,b,c,d,e){this.o.has(a)?r_("Tried to register duplicate cuerange",void 0,void 0,{CueRangeID:a}):(a=new zqa(a,b,c,d),this.o.set(a.id,{Pb:a,listener:e}),g.eL(this.K,[a],1))};
p1.prototype.removeCueRange=function(a){var b=this.o.get(a);b?(g.uT(this.K.app,[b.Pb],1),this.o["delete"](a)):r_("Requested to remove unknown cuerange",void 0,void 0,{CueRangeID:a})};
p1.prototype.w=function(a){this.o.has(a.id)&&this.o.get(a.id).listener.Iy(a.id)};
p1.prototype.A=function(a){this.o.has(a.id)&&this.o.get(a.id).listener.Jy(a.id)};
g.r(zqa,g.iC);s1.prototype.addListener=function(a){this.listeners.push(a)};
s1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};t1.prototype.w=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:v0(b.o,"active_view_measurable")};
t1.prototype.u=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:b.o.o.has("impression")&&!b.o.o.has("seek")&&v0(b.o,"active_view_fully_viewable_audible_half_duration")};
t1.prototype.A=function(a){var b;null===(b=this.o.get(a.queryId))||void 0===b?void 0:b.o.o.has("impression")&&!b.o.o.has("seek")&&v0(b.o,"active_view_viewable")};g.r(u1,TU);u1.prototype.Qd=function(){return this.o()};g.r(w1,g.A);g.h=w1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.zN=function(a,b){var c=this.on(b);this.bl=c;this.listeners.forEach(function(e){e.mk(c)});
var d=v1(this,1);d.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=d.clientPlaybackNonce,this.listeners.forEach(function(e){e.kk(d)}))};
g.h.on=function(a){var b,c,d=a.clientPlaybackNonce;a=this.kj.o.get(a.Eb)||{layoutId:null,slotId:null};var e=this.K.getVideoData(1).getPlayerResponse();e=(null===(c=null===(b=null===e||void 0===e?void 0:e.playerConfig)||void 0===b?void 0:b.daiConfig)||void 0===c?void 0:c.enableDai)||!1;return Object.assign(Object.assign({},a),{clientPlaybackNonce:d,daiEnabled:e})};
g.h.X=function(){this.listeners.length=0;this.bl=null;g.A.prototype.X.call(this)};g.r(x1,g.A);g.h=x1.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.pauseVideo=function(){this.K.pauseVideo()};
g.h.getVolume=function(){return this.K.getVolume()};
g.h.isMuted=function(){return this.K.isMuted()};
g.h.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType()};
g.h.getPlayerState=function(a){return this.K.getPlayerState(a)};
g.h.isFullscreen=function(){return this.K.isFullscreen()};
g.h.vM=function(){if(2===this.K.getPresentingPlayerType())for(var a=this.K.getCurrentTime(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.hA(a)};
g.h.nM=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.TA(a)};
g.h.mH=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ky(a)};
g.h.nH=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next());};
g.h.oH=function(){g.QK(this.K).getPlayerSize();for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next());};g.r(Iqa,g.A);g.r(z1,g.vL);g.h=z1.prototype;g.h.create=function(){this.load();this.created=!0};
g.h.load=function(){g.vL.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=y1(this.u).Kb;if((LW(a)||MW(a)||NW(a)||KW(a)||DY(a)||r1(a)||q1(a))&&(g.jz(a.K.N())||a.K.N().o?YU(a.K):1)){var b=this.player.getVideoData(1),c=b&&b.getPlayerResponse()||{};a=Lqa(c,a);if(0<a.vp.length){b=b&&b.clientPlaybackNonce||"";c=1E3*this.player.getDuration(1);var d=this.u.B,e=a.vp,f=a.vp.concat(a.pn);if(""===b)r_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");
else{d.o.u(b,c,e,f);d=g.q(d.listeners);for(var k=d.next();!k.done;k=d.next())k.value.u(b,c,e,f)}}0<a.pn.length&&(b=this.o=new FY(this.player,this.w,this.A,y1(this.u)),c=a.pn,a=b.o.getVideoData(1),a.sn||g.L("SERVED_VIA_SPF_HISTORY")?g.P(b.o.N().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?b.R():JY(b):(YU(b.o)&&CY(YB(b.o)),b.B.L(b.o,"applicationplayerstatechange",b.Fz),b.B.L(b.o,g.lC("ad"),b.gm,b),b.B.L(b.o,"crx_ad",b.Gz,b),b.B.L(b.o,"aduxclicked",b.iA),b.B.L(b.o,"videodatachange",
b.Hz),c=GY(b,c),c=HY(b,c),0<c.length&&KY(b,c),b.I&&(a.subscribe("cuepointupdated",b.om,b),b.w&&a.ia&&b.om(Vx(a.ia,0))),JY(b),g.uf(b.IC,b)))}else this.o=new FY(this.player,this.w,this.A,y1(this.u)),this.o.init()};
g.h.destroy=function(){this.unload();this.created=!1};
g.h.unload=function(){g.vL.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.o){var a=this.o;this.o=null;a.dispose()}this.w.reset();this.A.reset()};
g.h.Pf=function(){return!1};
g.h.getAdState=function(){return this.o?this.o.Z:-1};
g.h.getOptions=function(){return Object.values(gsa)};
g.h.Oc=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=IU(this.player);Object.assign(d,c.additionalMapping);this.o&&!d.AD_CPN&&(d.AD_CPN=this.o.ga);c=g.dn(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;d<c.length;d++){var e=c[d];if(e.adPlacementRenderer&&e.adPlacementRenderer.renderer&&e.adPlacementRenderer.renderer.plaShelfRenderer){c=!1;break a}}c=!0}else c=!1;return c;default:return null}};g.Ga("yt.player.Application.create",BS,void 0);g.Ga("yt.player.Application.createAlternate",BS,void 0);var lsa=g.w("ytcsi.tick");lsa&&lsa("pe");g.KL.ad=z1;var Nqa=/#(.)(.)(.)/,Mqa=/^#(?:[0-9a-f]{3}){1,2}$/i;var Pqa=g.he&&Oqa();g.Sa(g.C1,g.A);var msa=[];g.h=g.C1.prototype;g.h.ka=function(a,b,c,d){Array.isArray(b)||(b&&(msa[0]=b.toString()),b=msa);for(var e=0;e<b.length;e++){var f=Te(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.o[f.key]=f}return this};
g.h.Ns=function(a,b,c,d){return Qqa(this,a,b,c,d)};
g.h.bb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.bb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.u||this,c=Ue(c),d=!!d,b=Ne(a)?a.wl(b,c,d,e):a?(a=We(a))?a.wl(b,c,d,e):null:null,b&&(bf(b),delete this.o[b.key])};
g.h.X=function(){g.C1.Gb.X.call(this);g.Rqa(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};D1.prototype.o=4;D1.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
D1.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(D1.BYTES_PER_ELEMENT=4,D1.prototype.BYTES_PER_ELEMENT=D1.prototype.o,D1.prototype.set=D1.prototype.set,D1.prototype.toString=D1.prototype.toString,g.Ga("Float32Array",D1,void 0));E1.prototype.o=8;E1.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
E1.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{E1.BYTES_PER_ELEMENT=8}catch(a){}E1.prototype.BYTES_PER_ELEMENT=E1.prototype.o;E1.prototype.set=E1.prototype.set;E1.prototype.toString=E1.prototype.toString;g.Ga("Float64Array",E1,void 0)};})(_yt_player);