var _yt_player={};(function(g){var window=this;/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ea,ia,ma,la,ra,sa,ta,ua,va,wa,xa,caa,ya,za,Aa,Ba,Ca,daa,Da,Ea,Fa,Ga,Ha,Ka,La,faa,gaa,haa,Va,Wa,iaa,jaa,kaa,eb,laa,lb,nb,maa,sb,pb,naa,qb,oaa,paa,qaa,yb,raa,Ab,saa,taa,Db,Eb,Fb,Gb,Kb,Mb,Nb,Vb,Yb,Zb,dc,ec,waa,fc,gc,oc,pc,rc,Cc,Dc,Ec,Ic,Gc,Aaa,Daa,Eaa,Faa,Nc,Oc,Qc,Pc,Tc,Wc,Gaa,Haa,Vc,Yc,Iaa,Laa,cd,dd,ed,id,kd,Oaa,md,nd,rd,sd,td,ud,vd,wd,yd,Bd,Cd,Ed,Fd,Qaa,Raa,Gd,Hd,Id,Jd,Taa,Kd,Rd,Td,Wd,$d,ae,fe,ge,je,he,le,ne,me,Yaa,Yd,Be,ze,Ae,Waa,Ce,Xd,$aa,Ee,Fe,aba,Le,Ne,cba,Oe,Pe,Qe,Re,Te,Ve,dba,Se,
af,bf,Ye,ef,df,fba,We,Ue,hf,mf,nf,of,qf,hba,rf,sf,iba,xf,zf,Bf,Cf,Ef,Ff,Gf,If,Jf,jba,Lf,Nf,Of,Kf,Mf,Af,Hf,lba,Rf,Pf,Qf,Tf,kba,Sf,Xf,Zf,mba,nba,oba,pba,eg,bg,ig,kg,hg,lg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,yg,zg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,Jg,Og,Mg,Pg,qba,Qg,Rg,Sg,Tg,Ng,Ug,Wg,Vg,Yg,Zg,Xg,$g,ah,bh,ch,dh,eh,fh,gh,jh,lh,kh,mh,nh,tba,vba,wba,yba,ph,qh,rh,th,uh,Ah,Bh,Fh,Gh,Hh,Kh,Jh,Lh,Dh,zba,Uh,Vh,Wh,Aba,Xh,Yh,Zh,$h,ai,bi,Bba,ci,di,ei,Cba,Dba,fi,hi,gi,ji,ki,ni,li,Fba,mi,oi,pi,ri,qi,si,Hba,Gba,ti,Jba,Iba,Kba,wi,
Lba,yi,zi,Ai,xi,Bi,Mba,Ci,Nba,Ei,Rba,Fi,Gi,Hi,Ii,Ji,Sba,Li,Ni,Qi,Ti,Vi,Si,Ri,Wi,Tba,Xi,Yi,Zi,$i,Vba,ej,fj,Xba,gj,hj,ij,jj,kj,Yba,mj,nj,oj,pj,rj,qj,Zba,$ba,aca,sj,tj,uj,vj,xj,yj,zj,Aj,Bj,wj,Cj,Dj,Ej,bca,cca,Fj,Gj,dca,Hj,Ij,eca,Kj,fca,Lj,Mj,Nj,gca,Oj,Pj,Rj,Uj,Vj,Wj,Xj,Yj,Qj,Sj,ica,Zj,ak,ck,dk,lca,ek,fk,gk,mca,nca,oca,hk,jk,pca,qca,rca,lk,mk,sca,nk,tca,ok,uca,pk,qk,rk,vca,sk,uk,vk,wk,xk,yk,zk,Ak,Bk,wca,xca,Ck,yca,Ek,Dk,Hk,Ik,Gk,zca,Dca,Cca,Kk,Eca,Fca,Gca,Ica,Hca,Jca,Lk,Nk,Pk,Qk,Rk,Lca,Tk,Uk,Mca,Nca,
Vk,Wk,Xk,Yk,Oca,Zk,$k,Pca,al,bl,Rca,cl,dl,Sca,fl,gl,il,jl,kl,ml,nl,pl,ql,el,rl,tl,sl,ul,vl,xl,Uca,yl,Tca,zl,Al,Vca,Wca,Cl,El,Fl,Gl,Hl,Dl,Kl,Ll,Il,Xca,Zca,$ca,Ol,Pl,Ql,Rl,ada,Sl,Tl,Ul,Vl,Wl,Xl,Yl,Zl,bm,am,cda,dda,cm,em,$l,dm,bda,fm,gm,fda,gda,hda,ida,km,lm,mm,hm,nm,om,eda,jda,kda,lda,rm,pm,sm,um,qda,mda,rda,ym,zm,Am,Bm,Cm,tk,sda,Dm,Em,tda,uda,Fm,Gm,vda,Im,Jm,Km,Lm,Mm,yda,zda,Nm,Rm,Qm,Wm,Xm,Zm,Cda,Ym,an,cn,bn,Ada,fn,kn,ln,mn,Lda,Kda,nn,on,pn,qn,rn,tn,vn,Rda,Pda,Qda,Uda,Sda,Tda,wn,Vda,zn,An,Yda,Xda,
Hn,In,Jn,Zda,Pn,Qn,aea,Rn,Sn,fea,bea,Xn,Yn,hea,ao,bo,co,eo,iea,ho,io,jo,ko,mo,no,oo,po,so,to,wo,xo,yo,lea,mea,Ao,Bo,zo,Eo,Fo,Go,nea,Io,Lo,oea,Vo,Uo,rea,sea,Xo,ag,Zo,ap,pp,op,hp,vea,rp,sp,tp,up,yea,zea,Bp,Cp,Dp,Jp,Kp,Aea,Mp,Op,Lp,Rp,Up,Tp,Sp,Wp,$p,aq,bq,cq,dq,eq,iq,gq,jq,kq,lq,oq,nq,Bea,Dea,qq,Eea,uq,tq,Gea,vq,wq,Hea,Aq,Iea,Jea,yq,Cq,Kea,Dq,Lea,Gq,Iq,Kq,Lq,Mq,Nq,Oq,Pq,Qq,Mea,Tq,Oea,Wq,Vq,Pea,Zq,Yq,ar,br,cr,er,dr,Rea,hr,ir,jr,kr,lr,nr,pr,qr,rr,or,Vea,Tea,sr,vr,wr,Yea,tr,ur,xr,zr,Ar,Dr,Br,Fr,Er,Gr,Zea,
$ea,Yf,Jr,bfa,Nr,Or,Qr,Rr,Sr,Ur,cfa,Yr,Zr,$r,bs,dfa,gs,fs,as,hs,ffa,ws,vs,ys,us,xs,gfa,As,Bs,hfa,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ms,Ns,Os,Ps,Rs,Ss,Us,Ws,Xs,Zs,$s,at,bt,ct,dt,ft,gt,ht,jt,et,mfa,kt,lt,mt,nt,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Et,Gt,Ht,Dt,It,Jt,Kt,Lt,ofa,Mt,Nt,qfa,Qt,Rt,St,Ut,rfa,Ot,Yt,Zt,Wt,Tt,$t,au,Vt,Xt,bu,cu,du,eu,pfa,fu,sfa,gu,hu,iu,ju,qu,tu,uu,vu,tfa,lu,wu,yu,Bu,Au,ou,xu,nu,ru,ufa,Cu,Du,Fu,Gu,vfa,Hu,Iu,ku,mu,pu,zu,Ju,Ku,Lu,Nu,Mu,wfa,Ou,Pu,Qu,Ru,Su,xfa,Uu,Tu,Wu,Xu,Yu,Zu,$u,av,bv,cv,
ev,fv,gv,hv,iv,jv,kv,yfa,zfa,mv,Bfa,Cfa,ov,Dfa,pv,tv,uv,vv,wv,qv,zv,Vu,Av,Bv,Cv,Dv,Ev,yv,Fv,Gv,Hv,Jv,Ffa,Kv,Lv,Mv,Nv,Gfa,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,Hfa,gw,hw,fw,iw,jw,kw,lw,mw,Ifa,Aw,nw,Jfa,zw,Kfa,Ew,Fw,Gw,Hw,Iw,Jw,Lw,Mw,Nw,Ow,Mfa,Pw,Qw,Rw,Tw,Sw,Uw,Vw,Ww,Xw,Nfa,Ofa,Yw,$w,Zw,ax,Pfa,cx,dx,fx,gx,hx,ix,jx,kx,ex,lx,S,mx,nx,ox,px,Mx,Nx,Qx,Rx,Ax,Ix,Hx,Lx,Ux,Wx,ay,xx,wx,cy,Gx,ey,fy,Wfa,Xfa,hy,Yfa,jy,Zfa,iy,ky,my,ny,oy,qy,$fa,ry,sy,ty,uy,vy,yy,aga,wy,zy,Ay,cga,By,Cy,Dy,Ey,Fy,dga,
ega,iga,jga,fga,gga,hga,Gy,Hy,kga,Jy,Ky,Ly,lga,My,Oy,Py,mga,nga,Qy,Ry,oga,pga,qga,Sy,rga,Xy,Ty,$y,sga,tga,az,uga,vga,bz,cz,wga,dz,ez,xga,yga,fz,Yy,zga,Aga,Bga,Cga,gz,hz,jz,kz,lz,mz,iz,nz,Dga,rz,sz,tz,Gga,Iga,Hga,vz,Fga,Ega,uz,wz,Jga,xz,Kga,Mga,Lga,Nga,yz,zz,Az,Bz,Oga,Pga,Cz,Rga,Dz,Qga,Fz,Hz,Iz,Sga,Jz,Kz,Lz,Tga,Uga,Vga,Wga,Xga,Nz,Yga,Zga,Mz,Gz,Oz,Pz,$ga,aha,Rz,Tz,Vz,Xz,Wz,Yz,Zz,Uz,$z,aA,bA,bha,cA,eA,fA,iA,hA,cha,kA,lA,eha,fha,gha,hha,iha,jha,kha,lha,mha,nha,oha,pha,qha,xha,yha,zha,Bha,qA,rA,Cha,tA,
uA,vA,xA,yA,sA,zA,wA,BA,CA,EA,DA,FA,GA,IA,JA,NA,KA,PA,OA,QA,RA,WA,ZA,$A,TA,XA,aB,bB,VA,Hha,cB,SA,gB,jB,Jha,mB,qB,nB,rB,Kha,sB,uB,vB,wB,tB,xB,Lha,zB,pB,CB,Mha,EB,FB,GB,IB,JB,oB,iB,Nha,hB,LB,BB,Oha,QB,RB,SB,TB,kB,UB,yB,VB,WB,lB,fB,pA,oA,mA,ZB,Pha,Qha,$B,bC,aC,cC,dC,fC,gC,hC,Rha,iC,jC,kC,lC,mC,oC,pC,qC,sC,tC,uC,rC,zC,yC,BC,EC,Sha,FC,LC,OC,MC,PC,NC,QC,SC,TC,UC,WC,YC,$C,aD,bD,cD,dD,eD,fD,Tha,hD,gD,iD,jD,mD,ZC,Vha,oD,pD,rD,sD,tD,uD,vD,zD,Wha,BD,DD,Yha,HD,ID,JD,KD,LD,OD,PD,QD,ND,Zha,MD,RD,SD,TD,VD,aia,aE,
bE,cE,dE,bia,cia,ZD,eE,dia,fE,gE,jE,eia,kE,fia,gia,hia,iia,jia,lE,mE,qE,pE,sE,nE,tE,uE,vE,oE,wE,rE,xE,kia,yE,zE,BE,CE,AE,DE,mia,nia,EE,oia,FE,GE,HE,pia,NE,OE,ME,QE,KE,PE,IE,qia,RE,SE,JE,ria,TE,UE,VE,XE,WE,sia,tia,YE,ZE,$E,aF,bF,cF,dF,eF,fF,gF,kF,mF,lF,jF,iF,hF,nF,oF,pF,qF,rF,sF,uF,vF,wF,xF,tF,zF,yF,AF,BF,CF,uia,LF,GF,HF,FF,DF,EF,IF,KF,JF,MF,OF,PF,RF,QF,SF,TF,UF,YF,$F,aG,bG,cG,eG,fG,ZF,WF,VF,XF,gG,hG,iG,jG,dG,kG,lG,mG,nG,pG,oG,via,qG,rG,sG,tG,uG,vG,yia,xia,xG,yG,zia,wG,zG,Aia,Dia,Eia,Fia,FG,GG,Gia,
HG,Hia,BG,AG,Bia,CG,DG,Cia,EG,Iia,Jia,IG,JG,Kia,KG,Lia,OG,LG,NG,MG,Mia,Nia,QG,Oia,PG,RG,SG,TG,UG,VG,WG,XG,YG,Ria,Qia,Pia,aH,Tia,bH,cH,dH,fH,hH,jH,kH,mH,Via,Xia,Yia,Zia,lH,oH,pH,$ia,qH,uH,aja,tH,wH,yH,sH,vH,ZG,Sia,rH,xH,iH,Uia,bja,$G,zH,gH,eH,cja,AH,dja,BH,CH,eja,DH,EH,FH,fja,GH,HH,IH,JH,KH,gja,hja,LH,MH,PH,ija,kja,QH,lja,RH,SH,NH,nja,TH,UH,VH,oja,WH,XH,YH,OH,ZH,pja,$H,aI,dI,gI,hI,iI,rja,qja,eI,kI,fI,jI,cI,lI,sja,tja,mI,oI,nI,qI,uja,vja,rI,sI,uI,vI,tI,wI,xI,yI,zI,wja,BI,DI,FI,EI,GI,HI,II,yja,JI,CI,
KI,Aja,Bja,MI,Cja,OI,QI,SI,RI,TI,UI,PI,NI,Dja,XI,WI,ZI,YI,VI,Eja,dJ,Gja,hJ,jJ,kJ,lJ,aJ,iJ,mJ,bJ,Ija,nJ,oJ,cJ,pJ,gJ,Hja,Jja,$I,Fja,qJ,sJ,tJ,rJ,uJ,Kja,vJ,wJ,Lja,xJ,yJ,Mja,zJ,AJ,BJ,CJ,DJ,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,Nja,Oja,NJ,OJ,Pja,PJ,QJ,RJ,SJ,TJ,UJ,Qja,Rja,Tja,Sja,Uja,Zja,Vja,Wja,Xja,VJ,$ja,Yja,aka,$J,jK,XJ,bK,kK,lK,oK,mK,cka,dka,fka,pK,sK,rK,WJ,gK,wK,vK,AK,tK,DK,CK,GK,xK,vC,JK,IK,KK,MK,bka,cK,EK,SK,hka,UK,RK,ika,VK,WK,YK,ZK,jka,TK,QK,XK,NK,PK,aL,hK,BK,cL,bL,eL,dL,$K,kka,iK,gL,qK,aK,lka,hL,OK,jL,kL,
lL,mL,fL,uK,nL,YJ,FK,LK,eka,oL,qL,mka,nka,rL,uL,KL,LL,YL,dM,rka,eM,fM,jM,uka,oM,tka,pM,vka,lM,qM,rM,sM,tM,VC,uM,JL,wM,zM,AM,CM,EM,HM,IM,JM,LM,MM,NM,PM,RM,SM,TM,VM,WM,XM,YM,aN,bN,cN,dN,fN,hN,lN,oN,pN,tN,vN,uN,wN,xN,yN,AN,zN,CN,FN,GN,HN,IN,JN,KN,LN,MN,PN,QN,RN,NN,ZN,$N,TN,cO,fO,gO,eO,bO,dO,XN,VN,aO,hO,WN,jO,kO,mO,nO,oO,pO,qO,rO,sO,uO,vO,wO,xO,yO,CO,AO,zO,BO,EO,DO,FO,GO,IO,LO,JO,PO,QO,RO,NO,TO,UO,VO,Aka,aP,cP,dP,gP,hP,fP,kP,lP,mP,nP,oP,pP,rP,qP,sP,tP,uP,vP,xP,zP,yP,wP,AP,BP,DP,EP,FP,Bka,GP,HP,IP,Cka,
LP,MP,NP,OP,RP,QP,SP,UP,VP,XP,WP,ZP,$P,YP,bQ,cQ,eQ,fQ,gQ,Eka,hQ,iQ,Dka,jQ,kQ,lQ,pQ,qQ,nQ,sQ,rQ,tQ,Gka,uQ,vQ,wQ,AQ,CQ,Hka,GQ,DQ,EQ,HQ,IQ,JQ,MQ,NQ,LQ,KQ,OQ,QQ,RQ,Ika,TQ,VQ,WQ,XQ,YQ,ZQ,$Q,aR,bR,cR,dR,eR,fR,hR,kR,lR,mR,yQ,qR,SQ,rR,sR,pR,HO,oR,Jka,Kka,tR,xR,uR,yR,zR,vR,AR,BR,CR,ER,GR,FR,Mka,Nka,Oka,JR,Pka,PR,NR,LR,MR,IR,KR,OR,QR,Rka,Qka,RR,VR,Tka,WR,YR,ZR,UR,$R,bM,aS,Wia,cS,Vka,eS,Wka,iS,fS,kS,lS,mS,bS,oS,gS,pS,nS,jS,cM,rS,dS,uS,sS,vS,tS,wS,Yka,Zka,zS,$ka,AS,CS,DS,BS,FS,GS,HS,IS,pka,qka,JS,KS,LS,MS,NS,
OS,oka,pL,PS,QS,RS,SS,TS,US,VS,bT,hla,dT,bla,xQ,ala,gT,iT,jT,ZL,mT,ila,kT,$L,aT,qT,rT,tT,uT,wT,fla,gla,AT,zT,fT,ET,FT,eT,GT,HT,jla,yL,IT,KT,yT,xT,NT,OT,oT,PT,hS,DT,SR,qS,RT,ST,MT,LT,VT,ML,XT,RC,ZT,CT,$T,bU,pT,lT,QT,cU,dU,eU,fU,ela,JT,WS,gU,dla,hU,yS,iU,jU,nla,ola,kU,lU,mU,nU,oU,pU,pla,qU,sU,rU,tU,vU,rla,uU,qla,wU,xU,yU,zU,AU,BU,CU,DU,EU,FU,GU,HU,sla,IU,tla,ula,JU,NU,MU,KU,LU,vla,OU,PU,wla,xla,QU,yla,Ala,zla,RU,SU,Bla,TU,UU,VU,WU,XU,YU,ZU,$U,aV,bV,Cla,cV,dV,eV,fV,hV,iV,jV,Fla,kV,gV,lV,mV,Hla,Dla,nV,
Ela,Ila,oV,qV,Jla,rV,sV,tV,vV,uV,wV,xV,Kla,Lla,yV,EV,IV,JV,Mla,AV,DV,FV,CV,HV,GV,MV,KV,LV,NV,BV,zV,OV,Nla,Y,PV,RV,SV,QV,TV,UV,VV,WV,XV,YV,Ola,ZV,$V,aW,bW,cW,dW,eW,fW,Pla,gW,hW,iW,jW,kW,lW,mW,nW,oW,pW,qW,rW,sW,tW,uW,vW,wW,xW,yW,zW,AW,Qla,BW,CW,EW,FW,DW,Rla,Sla,Tla,GW,HW,Ula,Vla,IW,JW,KW,LW,Wla,Yla,Xla,OW,NW,PW,Zla,QW,RW,SW,TW,UW,VW,WW,XW,YW,ZW,$W,aX,bX,cX,dX,gX,eX,lX,fX,mX,pX,nX,oX,ama,qX,rX,tX,sX,uX,vX,wX,bma,dma,ema,zX,fma,yX,xX,cma,AX,BX,CX,gma,DX,EX,GX,HX,IX,JX,KX,MX,hma,OX,NX,ima,jma,PX,QX,mma,
kma,RX,SX,nma,TX,UX,VX,WX,XX,Z,YX,ZX,oma,$X,aY,bY,cY,eY,gY,pma,fY,hY,iY,kY,jY,lY,mY,nY,oY,pY,sma,qY,rY,uma,sY,tY,uY,wY,xY,vY,wma,yY,xma,zY,AY,BY,CY,yma,DY,zma,EY,FY,Ama,GY,Bma,HY,IY,JY,Cma,KY,LY,MY,NY,PY,RY,TY,VY,WY,XY,ZY,$Y,aZ,bZ,Dma,dZ,Fma,Ema,gZ,Hma,cZ,hZ,kZ,iZ,jZ,mZ,lZ,oZ,pZ,LX,Gma,qZ,FX,YY,nZ,rZ,MW,Ima,sZ,tZ,uZ,vZ,Jma,wZ,xZ,yZ,zZ,AZ,BZ,CZ,DZ,EZ,Lma,Mma,Oma,Nma,FZ,GZ,Qma,HZ,IZ,JZ,KZ,Rma,Sma,LZ,Tma,MZ,NZ,Xma,Uma,Wma,Vma,Yma,OZ,Zma,PZ,QZ,$ma,ana,bna,cna,RZ,dna,ena,SZ,hna,gna,ina,jna,TZ,kna,lna,
mna,WZ,nna,ona,pna,qna,XZ,VZ,rna,ZZ,sna,$Z,a_,b_,c_,d_,e_,f_,g_,tna,h_,una,i_,j_,k_,vna,l_,m_,n_,o_,p_,wna,yna,xna,zna,q_,Ana,Bna,r_,Cna,s_,t_,u_,Dna,Ena,Fna,v_,w_,y_,x_,z_,A_,Gna,B_,C_,Ina,D_,Lna,Mna,Nna,Kna,E_,Ona,G_,Pna,Qna,H_,I_,J_,Rna,K_,Sna,L_,N_,Una,Vna,O_,P_,Wna,Q_,R_,Xna,S_,Yna,T_,$na,V_,W_,U_,aoa,foa,Y_,Z_,ioa,h0,koa,i0,loa,l0,noa,e0,g0,m0,joa,ooa,b0,moa,s0,p0,c0,o0,t0,q0,a0,poa,$_,n0,k0,u0,d0,f0,r0,j0,v0,w0,x0,y0,z0,A0,B0,C0,D0,E0,F0,G0,H0,I0,J0,K0,L0,M0,N0,O0,P0,Q0,R0,S0,T0,U0,qoa,soa,
W0,toa,uoa,woa,voa,X0,xoa,Y0,Z0,zoa,Aoa,a1,Boa,b1,Coa,Doa,Eoa,Foa,Goa,c1,Hoa,Ioa,Joa,Koa,Loa,Moa,Noa,d1,Ooa,Poa,Qoa,e1,Roa,Soa,f1,fZ,g1,Uoa,Toa,h1,i1,Voa,Woa,Xoa,j1,Yoa,Zoa,$oa,k1,apa,l1,m1,n1,o1,p1,q1,r1,s1,t1,bpa,cpa,u1,dpa,v1,w1,x1,epa,y1,z1,fpa,V0,$0,A1,gpa,B1,hpa,roa,C1,ipa,D1,jpa,kpa,mpa,npa,opa,lpa,ppa,E1,qpa,rpa,spa,F1,tpa,G1,upa,iX,jX,kX,hX,vpa,eZ,H1,wpa,$la,I1,xpa,yoa,ypa,K1,J1,L1,M1,N1,zpa,Apa,O1,Bpa,Cpa,Fpa,Hpa,S1,T1,aa,ha,fa,Maa,bd,Qa,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}}};
aaa=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];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");};
ea=function(){ea=function(){};
fa.Symbol||(fa.Symbol=baa)};
ia=function(a,b){this.o=a;ha(this,"description",{configurable:!0,writable:!0,value:b})};
ma=function(){ea();var a=fa.Symbol.iterator;a||(a=fa.Symbol.iterator=fa.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ha(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return la(da(this))}});
ma=function(){}};
la=function(a){ma();a={next:a};a[fa.Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
g.na=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=oa(b.prototype);a.prototype.constructor=a;if(qa)qa(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.Fb=b.prototype};
ra=function(){this.C=!1;this.w=null;this.u=void 0;this.o=1;this.G=this.B=0;this.A=null};
sa=function(a){if(a.C)throw new TypeError("Generator is already running");a.C=!0};
ta=function(a,b){a.A={Bw:b,YF:!0};a.o=a.B||a.G};
ua=function(a,b,c){a.o=c;return{value:b}};
va=function(a,b){a.o=b;a.B=0};
wa=function(a){a.B=0;var b=a.A.Bw;a.A=null;return b};
xa=function(a){this.o=new ra;this.u=a};
caa=function(a,b){sa(a.o);var c=a.o.w;if(c)return ya(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.o["return"]);
a.o["return"](b);return za(a)};
ya=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,ta(a.o,k),za(a)}a.o.w=null;d.call(a.o,f);return za(a)};
za=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,ta(a.o,c)}a.o.C=!1;if(a.o.A){b=a.o.A;a.o.A=null;if(b.YF)throw b.Bw;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
Aa=function(a){this.next=function(b){sa(a.o);a.o.w?b=ya(a,a.o.w.next,b,a.o.F):(a.o.F(b),b=za(a));return b};
this["throw"]=function(b){sa(a.o);a.o.w?b=ya(a,a.o.w["throw"],b,a.o.F):(ta(a.o,b),b=za(a));return b};
this["return"]=function(b){return caa(a,b)};
ma();this[Symbol.iterator]=function(){return this}};
Ba=function(a,b){var c=new Aa(new xa(b));qa&&qa(c,a.prototype);return c};
Ca=function(a,b){if(b){for(var c=fa,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&&ha(c,d,{configurable:!0,writable:!0,value:f})}};
daa=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())})};
Da=function(a){return daa(new Aa(new xa(a)))};
Ea=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{Kx:e,BC:f}}return{Kx:-1,BC:void 0}};
Fa=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+""};
Ga=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ha=function(a,b){ma();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.Ia=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};
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.Ja=function(){};
Ka=function(a){a.qd=void 0;a.getInstance=function(){return a.qd?a.qd:a.qd=new a}};
La=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.Ma=function(a){return"array"==La(a)};
g.Na=function(a){var b=La(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){return"function"==La(a)};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++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.Sa=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.Ta=function(a,b){for(var c in b)a[c]=b[c]};
g.Ua=function(a,b){function c(){}
c.prototype=b.prototype;a.Fb=b.prototype;a.prototype=new c;a.prototype.constructor=a};
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{YD:a.slice(0,d)+"&act=1"+a.slice(d),EE: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{YD:c+"&act=1"+d,EE:c+"&dct=1"+d}}return null};
Va=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Wa=function(a,b){Va.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(){};
g.Xa=function(a){return a[a.length-1]};
kaa=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.$a=function(a,b,c){b=g.Ya(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
g.Ya=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.ab=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.cb=function(a,b){return 0<=bb(a,b)};
g.db=function(a){return 0==a.length};
eb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.gb=function(a,b){var c=bb(a,b),d;(d=0<=c)&&g.fb(a,c);return d};
g.fb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.ib=function(a,b){var c=g.Ya(a,b,void 0);0<=c&&g.fb(a,c)};
laa=function(a,b){var c=0;kaa(a,function(d,e){b.call(void 0,d,e,a)&&g.fb(a,e)&&c++})};
g.jb=function(a){return Array.prototype.concat.apply([],arguments)};
g.kb=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[]};
lb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(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.ob=function(a,b,c,d){Array.prototype.splice.apply(a,nb(arguments,1))};
nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
maa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Pa(f)?"o"+g.Ra(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.rb=function(a,b,c){return pb(a,c||qb,!1,b)};
sb=function(a,b){return pb(a,b,!0,void 0,void 0)};
pb=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.tb=function(a,b){a.sort(b||qb)};
naa=function(a,b){var c=qb;g.tb(a,function(d,e){return c(b(d),b(e))})};
g.ub=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=oaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
qb=function(a,b){return a>b?1:a<b?-1:0};
oaa=function(a,b){return a===b};
g.wb=function(a,b,c){c=g.rb(a,b,c);0>c&&g.ob(a,-(c+1),0,b)};
g.xb=function(a,b,c){var d={};(0,g.y)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
paa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
qaa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
yb=function(a){return function(){return a}};
g.zb=function(a){return a};
raa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Ab=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
saa=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
taa=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.Bb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Cb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Db=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Eb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
Fb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Gb=function(a){for(var b in a)return a[b]};
g.Hb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Ib=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Jb=function(a,b){var c=g.Na(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Kb=function(a,b){return null!==a&&b in a};
g.Lb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Mb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Nb=function(a,b){var c=Mb(a,b,void 0);return c&&a[c]};
g.Ob=function(a){for(var b in a)return!1;return!0};
g.Pb=function(a){for(var b in a)delete a[b]};
g.Qb=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.Rb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Sb=function(a){var b=La(a);if("object"==b||"array"==b){if(g.Oa(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=g.Sb(a[c]);return b}return a};
g.Ub=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<Tb.length;f++)c=Tb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Vb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Yb=function(a,b){this.o=a===Wb&&b||"";this.u=Xb};
Zb=function(a){return a instanceof Yb&&a.constructor===Yb&&a.u===Xb?a.o:"type_error:Const"};
g.$b=function(a){return new Yb(Wb,a)};
dc=function(a,b){this.u=a===ac&&b||"";this.w=cc};
ec=function(a){if(a instanceof dc&&a.constructor===dc&&a.w===cc)return a.u;La(a);return"type_error:TrustedResourceUrl"};
waa=function(a,b){var c=Zb(a);if(!uaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(vaa,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 Yb?Zb(k):encodeURIComponent(String(k))});
return new dc(ac,d)};
fc=function(a,b){return 0==a.lastIndexOf(b,0)};
gc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.hc=function(a){return/^[\s\xa0]*$/.test(a)};
oc=function(a,b){if(b)a=a.replace(ic,"&amp;").replace(jc,"&lt;").replace(kc,"&gt;").replace(lc,"&quot;").replace(mc,"&#39;").replace(nc,"&#0;");else{if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ic,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(jc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(kc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(lc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(mc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(nc,"&#0;"))}return a};
pc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.sc=function(a,b){for(var c=0,d=qc(String(a)).split("."),e=qc(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=rc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||rc(0==l[2].length,0==m[2].length)||rc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
rc=function(a,b){return a<b?-1:a>b?1:0};
g.vc=function(a,b){this.u=a===tc&&b||"";this.w=uc};
g.wc=function(a){if(a instanceof g.vc&&a.constructor===g.vc&&a.w===uc)return a.u;La(a);return"type_error:SafeUrl"};
g.zc=function(a){if(a instanceof g.vc)return a;a="object"==typeof a&&a.Zf?a.ue():String(a);yc.test(a)||(a="about:invalid#zClosurez");return new g.vc(tc,a)};
g.Ac=function(a,b){if(a instanceof g.vc)return a;a="object"==typeof a&&a.Zf?a.ue():String(a);if(b&&/^data:/i.test(a)){var c=a.replace(/(%0A|%0D)/g,"");var d=c.match(yaa);d=d&&zaa.test(d[1]);c=new g.vc(tc,d?c:"about:invalid#zClosurez");if(c.ue()==a)return c}yc.test(a)||(a="about:invalid#zClosurez");return new g.vc(tc,a)};
Cc=function(){this.o="";this.u=Bc};
Dc=function(a){if(a instanceof Cc&&a.constructor===Cc&&a.u===Bc)return a.o;La(a);return"type_error:SafeStyle"};
Ec=function(a){var b=new Cc;b.o=a;return b};
Ic=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.Fc)(d,Gc).join(" "):Gc(d),b+=c+":"+d+";")}return b?Ec(b):Hc};
Gc=function(a){if(a instanceof g.vc)return'url("'+g.wc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Yb?Zb(a):Aaa(String(a));if(/[{;}]/.test(a))throw new Wa("Value does not allow [{;}], got: %s.",[a]);return a};
Aaa=function(a){var b=a.replace(Kc,"$1").replace(Kc,"$1").replace(Lc,"url");if(Baa.test(b)){if(Caa.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||!Daa(a))return"zClosurez"}else return"zClosurez";return Eaa(a)};
Daa=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};
Eaa=function(a){return a.replace(Lc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.zc(d).ue();return c+f+b+f+e})};
Faa=function(a){function b(d){Array.isArray(d)?(0,g.y)(d,b):c+=Dc(d)}
var c="";(0,g.y)(arguments,b);return c?Ec(c):Hc};
Nc=function(a){return-1!=g.Mc.indexOf(a)};
Oc=function(){return Nc("Firefox")||Nc("FxiOS")};
Qc=function(){return Nc("Safari")&&!(Pc()||Nc("Coast")||Nc("Opera")||Nc("Edge")||Nc("Edg/")||Nc("OPR")||Oc()||Nc("Silk")||Nc("Android"))};
Pc=function(){return(Nc("Chrome")||Nc("CriOS"))&&!Nc("Edge")};
g.Rc=function(){return Nc("Android")&&!(Pc()||Oc()||Nc("Opera")||Nc("Silk"))};
Tc=function(){this.u="";this.A=Sc;this.w=null};
g.Uc=function(a){if(a instanceof Tc&&a.constructor===Tc&&a.A===Sc)return a.u;La(a);return"type_error:SafeHtml"};
Wc=function(a){if(a instanceof Tc)return a;var b="object"==typeof a,c=null;b&&a.vr&&(c=a.o());return Vc(oc(b&&a.Zf?a.ue():String(a)),c)};
Gaa=function(a){function b(f){Array.isArray(f)?(0,g.y)(f,b):(f=Wc(f),e.push(g.Uc(f).toString()),f=f.o(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Wc(Xc),d=c.o(),e=[];(0,g.y)(a,b);return Vc(e.join(g.Uc(c).toString()),d)};
Haa=function(a){return Gaa(Array.prototype.slice.call(arguments))};
Vc=function(a,b){return Yc(a,b)};
Yc=function(a,b){var c=new Tc;c.u=a;c.w=b;return c};
g.Zc=function(a,b){Zb(a);Zb(a);return Yc(b,null)};
Iaa=function(a){var b=g.$b("Output of CSS sanitizer");Zb(b);Zb(b);return Ec(a)};
g.$c=function(a,b){if(Jaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Uc(b)};
g.ad=function(a,b){var c=b instanceof g.vc?b:g.Ac(b);a.href=g.wc(c)};
Laa=function(a){var b=new dc(ac,Zb(Kaa));a.src=ec(b).toString()};
cd=function(a,b){a.src=ec(b);if(null===bd)b:{var c=g.v.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&Maa.test(c)){bd=c;break b}bd=""}c=bd;c&&a.setAttribute("nonce",c)};
dd=function(a){return encodeURIComponent(String(a))};
ed=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.fd=function(a){return a=oc(a,void 0)};
g.gd=function(a,b){var c=String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Naa("0",Math.max(0,b-d))+c};
g.hd=function(a){return null==a?"":String(a)};
id=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.jd=function(a){var b=Number(a);return 0==b&&g.hc(a)?NaN:b};
kd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
g.ld=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
Oaa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
md=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};
nd=function(a){return a?decodeURI(a):a};
g.pd=function(a,b){return b.match(od)[a]||null};
g.qd=function(a){return nd(g.pd(3,a))};
rd=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?ed(f):"")}};
sd=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)]};
td=function(a,b){return b?a?a+"&"+b:b:a};
ud=function(a,b){if(!b)return a;var c=sd(a);c[1]=td(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
vd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)vd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+dd(b)))};
wd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)vd(a[d],a[d+1],c);return c.join("&")};
g.xd=function(a){var b=[],c;for(c in a)vd(c,a[c],b);return b.join("&")};
yd=function(a,b){var c=2==arguments.length?wd(arguments[1],0):wd(arguments,1);return ud(a,c)};
g.Ad=function(a,b){var c=g.xd(b);return ud(a,c)};
Bd=function(a,b,c){c=null!=c?"="+dd(c):"";return ud(a,b+c)};
Cd=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};
Ed=function(a,b){var c=a.search(Dd),d=Cd(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 ed(a.substr(d,e-d))};
Fd=function(a,b){for(var c=a.search(Dd),d=0,e,f=[];0<=(e=Cd(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(Paa,"$1")};
Qaa=function(a,b){var c=sd(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]=td(e.join("&"),g.xd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Raa=function(a){this.o=haa(a.url,a.xT)};
Gd=function(){return Nc("iPhone")&&!Nc("iPod")&&!Nc("iPad")};
Hd=function(){return Gd()||Nc("iPad")||Nc("iPod")};
Id=function(a){Id[" "](a);return a};
Jd=function(a,b){try{return Id(a[b]),!0}catch(c){}return!1};
Taa=function(a,b){var c=Saa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Kd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Md=function(a){return Taa(a,function(){return 0<=g.sc(Ld,a)})};
g.Nd=function(a){return Number(Uaa)>=a};
g.Od=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Pd=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.Qd=function(a,b,c){return a+c*(b-a)};
Rd=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Sd=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Td=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Ud=function(a,b){this.width=a;this.height=b};
g.Vd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Wd=function(a){return a.width*a.height};
$d=function(a){return a?new Xd(Yd(a)):Zd||(Zd=new Xd)};
ae=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.ce=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.be(document,"*",a,b)};
g.de=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.be(c,"*",a,b)[0]||null}return c||null};
g.be=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.cb(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
fe=function(a,b){g.Bb(b,function(c,d){c&&"object"==typeof c&&c.Zf&&(c=c.ue());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ee.hasOwnProperty(d)?a.setAttribute(ee[d],c):fc(d,"aria-")||fc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
ge=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Ud(a.clientWidth,a.clientHeight)};
je=function(a){var b=he(a);a=a.parentWindow||a.defaultView;return g.ie&&g.Md("10")&&a.pageYOffset!=b.scrollTop?new g.Sd(b.scrollLeft,b.scrollTop):new g.Sd(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
he=function(a){return a.scrollingElement?a.scrollingElement:g.ke||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
le=function(a){return a?a.parentWindow||a.defaultView:window};
g.oe=function(a,b,c){var d=arguments,e=document,f=String(d[0]),k=d[1];if(!Vaa&&k&&(k.name||k.type)){f=["<",f];k.name&&f.push(' name="',g.fd(k.name),'"');if(k.type){f.push(' type="',g.fd(k.type),'"');var l={};g.Ub(l,k);delete l.type;k=l}f.push(">");f=f.join("")}f=me(e,f);k&&("string"===typeof k?f.className=k:Array.isArray(k)?f.className=k.join(" "):fe(f,k));2<d.length&&ne(e,f,d,2);return f};
ne=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.Na(f)||g.Pa(f)&&0<f.nodeType?e(f):(0,g.y)(Waa(f)?g.kb(f):f,e)}};
g.pe=function(a){return me(document,a)};
me=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.qe=function(a){return document.createTextNode(String(a))};
g.re=function(a,b){a.appendChild(b)};
g.se=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.te=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.ue=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
Yaa=function(a){return Xaa&&void 0!=a.children?a.children:(0,g.ve)(a.childNodes,function(b){return 1==b.nodeType})};
g.we=function(a){var b;if(Zaa&&!(g.ie&&g.Md("9")&&!g.Md("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(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};
Yd=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.se(a);var c=Yd(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.ie){var c;!g.Oa(a.getBoundingClientRect)||g.ie&&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.ie&&!g.Md("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};
Waa=function(a){if(a&&"number"==typeof a.length){if(g.Pa(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.Oa(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.cb(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};
Xd=function(a){this.o=a||g.v.document||document};
$aa=function(a){this.Zv=a};
Ee=function(a,b,c){this.A=a;this.u=b;this.o=c||[];this.Ni=new Map};
Fe=function(a,b){Ee.call(this,a,3,b)};
g.A=function(){this.ub=this.ub;this.oi=this.oi};
g.C=function(a,b){g.Ge(a,g.Sa(g.He,b))};
g.Ge=function(a,b){a.ub?b():(a.oi||(a.oi=[]),a.oi.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.Na(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};
aba=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])};
cba=function(a,b,c,d,e){this.listener=a;this.o=null;this.src=b;this.type=c;this.capture=!!d;this.Hn=e;this.key=++bba;this.Ej=this.Sm=!1};
Oe=function(a){a.Ej=!0;a.listener=null;a.o=null;a.src=null;a.Hn=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.gb(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.Ej&&f.listener==b&&f.capture==!!c&&f.Hn==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.ia(b,c,g.Pa(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.Pa(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=dba();c.o=d;d.src=a;d.listener=c;if(a.addEventListener)eba||(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};
dba=function(){var a=fba,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.Tr(b,c,g.Pa(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.Pa(d)?!!d.capture:!!d,c=Ue(c),Ne(a)?a.Xa(b,c,d,e):a&&(a=We(a))&&(b=a.zk(b,c,d,e))&&bf(b)};
bf=function(a){if("number"!==typeof a&&a&&!a.Ej){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.Ej&&(f=df(f,d),e=e&&!1!==f)}return e};
df=function(a,b){var c=a.listener,d=a.Hn||a.src;a.Sm&&bf(a);return c.call(d,b)};
fba=function(a,b){if(a.Ej)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.Oa(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.ca=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.Ej&&k.capture==c){var l=k.listener,m=k.Hn||k.src;k.Sm&&Qe(a.u,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
mf=function(a,b){this.w=a;this.A=b;this.u=0;this.o=null};
nf=function(a,b){a.A(b);100>a.u&&(a.u++,b.next=a.o,a.o=b)};
of=function(a){g.v.setTimeout(function(){throw a;},0)};
qf=function(a,b){var c=a;b&&(c=(0,g.x)(a,b));c=gba(c);!g.Oa(g.v.setImmediate)||g.v.Window&&g.v.Window.prototype&&!Nc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(pf||(pf=hba()),pf(c)):g.v.setImmediate(c)};
hba=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Nc("Presto")&&(a=function(){var e=g.pe("IFRAME");e.style.display="none";Laa(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(g.Uc(Xc));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&&!Nc("Trident")&&!Nc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Wv;c.Wv=null;e()}};
return function(e){d.next={Wv:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
rf=function(){this.u=this.o=null};
sf=function(){this.next=this.scope=this.Sf=null};
g.wf=function(a,b){tf||iba();uf||(tf(),uf=!0);vf.add(a,b)};
iba=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);tf=function(){a.then(xf)}}else tf=function(){qf(xf)}};
xf=function(){for(var a;a=vf.remove();){try{a.Sf.call(a.scope)}catch(b){of(b)}nf(yf,a)}uf=!1};
zf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Bf=function(a){this.o=0;this.F=void 0;this.A=this.u=this.w=null;this.B=this.C=!1;if(a!=g.Ja)try{var b=this;a.call(void 0,function(c){Af(b,2,c)},function(c){Af(b,3,c)})}catch(c){Af(this,3,c)}};
Cf=function(){this.next=this.context=this.onRejected=this.w=this.o=null;this.u=!1};
Ef=function(a,b,c){var d=Df.get();d.w=a;d.onRejected=b;d.context=c;return d};
Ff=function(a){if(a instanceof Bf)return a;var b=new Bf(g.Ja);Af(b,2,a);return b};
Gf=function(a){return new Bf(function(b,c){c(a)})};
If=function(a,b,c){Hf(a,b,c,null)||g.wf(g.Sa(b,a))};
Jf=function(a){return new Bf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],If(e,b,c)})};
jba=function(a){return new Bf(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],If(m,g.Sa(f,l),k);
else b(e)})};
Lf=function(a,b){var c=Ef(b,b,void 0);c.u=!0;Kf(a,c);return a};
Nf=function(a,b){return Mf(a,null,b,void 0)};
Of=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?Of(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Pf(c),Qf(c,e,3,b)))}a.w=null}else Af(a,3,b)};
Kf=function(a,b){a.u||2!=a.o&&3!=a.o||Rf(a);a.A?a.A.next=b:a.u=b;a.A=b};
Mf=function(a,b,c,d){var e=Ef(null,null,null);e.o=new Bf(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 Sf?k(l):f(m)}catch(n){k(n)}}:k});
e.o.w=a;Kf(a,e);return e.o};
Af=function(a,b,c){0==a.o&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.o=1,Hf(c,a.H,a.J,a)||(a.F=c,a.o=b,a.w=null,Rf(a),3!=b||c instanceof Sf||kba(a,c)))};
Hf=function(a,b,c,d){if(a instanceof Bf)return Kf(a,Ef(b||g.Ja,c||null,d)),!0;if(zf(a))return a.then(b,c,d),!0;if(g.Pa(a))try{var e=a.then;if(g.Oa(e))return lba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
lba=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)}};
Rf=function(a){a.C||(a.C=!0,g.wf(a.G,a))};
Pf=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.A=null);return b};
Qf=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,Tf(b,c,d);else try{b.u?b.w.call(b.context):Tf(b,c,d)}catch(e){Uf.call(null,e)}nf(Df,b)};
Tf=function(a,b,c){2==b?a.w.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
kba=function(a,b){a.B=!0;g.wf(function(){a.B&&Uf.call(null,b)})};
Sf=function(a){Va.call(this,a)};
g.Vf=function(a,b){g.gf.call(this);this.rd=a||1;this.gm=b||g.v;this.Qv=(0,g.x)(this.cd,this);this.hy=(0,g.H)()};
g.Wf=function(a,b,c){if(g.Oa(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)};
Xf=function(a,b){var c=null;return Nf(new Bf(function(d,e){c=g.Wf(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
Zf=function(){this.J=new Yf;this.u=new Map;this.F=new Set;this.w=0;this.A=100;this.flushInterval=3E4;this.o=new g.Vf(this.flushInterval);this.o.ia("tick",this.B,!1,this)};
mba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
nba=function(){if(!$f){$f=new Zf;var a=ag("client_streamz_web_flush_count",-1);-1!==a&&($f.A=a)}this.o=$f;this.o.C("/client_streamz/youtube/video_ads/visibility_error",{Fw:3,Ew:"element_name"},{Fw:3,Ew:"error_reason"})};
oba=function(a){return(0,g.Fc)(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.dg=function(a,b){g.Na(a);void 0===b&&(b=0);bg();for(var c=cg[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("")};
pba=function(a){var b=[];eg(a,function(c){b.push(c)});
return b};
g.fg=function(a){!g.ie||g.Md("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;eg(a,function(f){d[e++]=f});
return d.subarray(0,e)};
eg=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=gg[n];if(null!=p)return p;if(!g.hc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
bg();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))}};
bg=function(){if(!gg){gg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));cg[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===gg[f]&&(gg[f]=e)}}}};
ig=function(a,b,c){this.u=null;this.o=this.w=this.A=0;this.B=!1;a&&hg(this,a,b,c)};
kg=function(a,b,c){if(jg.length){var d=jg.pop();a&&hg(d,a,b,c);return d}return new ig(a,b,c)};
hg=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.fg(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};
lg=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};
mg=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};
ng=function(a){this.o=kg(a,void 0,void 0);this.B=this.o.o;this.u=this.w=-1;this.A=!1};
og=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=mg(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};
pg=function(a){switch(a.u){case 0:if(0!=a.u)pg(a);else{for(a=a.o;a.u[a.o]&128;)a.o++;a.o++}break;case 1:1!=a.u?pg(a):(a=a.o,a.o+=8);break;case 2:if(2!=a.u)pg(a);else{var b=mg(a.o);a=a.o;a.o+=b}break;case 5:5!=a.u?pg(a):(a=a.o,a.o+=4);break;case 3:b=a.w;do{if(!og(a)){a.A=!0;break}if(4==a.u){a.w!=b&&(a.A=!0);break}pg(a)}while(1);break;default:a.A=!0}};
qg=function(a){var b=mg(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=nb(b,f,f+8192),e+=String.fromCharCode.apply(null,k);b=e}a.o=d;return c+b};
rg=function(a){var b=mg(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};
sg=function(){this.o=[]};
tg=function(a,b){for(;127<b;)a.o.push(b&127|128),b>>>=7;a.o.push(b)};
ug=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)};
vg=function(){this.w=[];this.u=0;this.o=new sg};
wg=function(a,b){tg(a.o,8*b+2);var c=a.o.end();a.w.push(c);a.u+=c.length;c.push(a.u);return c};
xg=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++};
yg=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};
zg=function(a,b,c){if(null!=c&&null!=c)if(tg(a.o,8*b),a=a.o,0<=c)tg(a,c);else{for(b=0;9>b;b++)a.o.push(c&127|128),c>>=7;a.o.push(1)}};
Cg=function(a,b,c){if(null!=c&&null!=c){tg(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)));Ag=b;Bg=d;c=Ag;for(b=Bg;0<b||127<c;)a.o.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.o.push(c)}};
Dg=function(a,b,c){null!=c&&(tg(a.o,8*b+1),a=a.o,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Ag=b,Bg=c,ug(a,Ag),ug(a,Bg))};
Eg=function(a,b,c){if(null!=c){tg(a.o,8*b+1);a=a.o;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)Bg=0<1/d?0:2147483648,Ag=0;else if(isNaN(d))Bg=2147483647,Ag=4294967295;else if(1.7976931348623157E308<d)Bg=(c<<31|2146435072)>>>0,Ag=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),Bg=(c<<31|d/4294967296)>>>0,Ag=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);Bg=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;Ag=4503599627370496*d>>>0}ug(a,Ag);ug(a,
Bg)}};
Fg=function(a,b,c){null!=c&&(tg(a.o,8*b),a.o.o.push(c?1:0))};
Gg=function(a,b,c){if(null!=c){b=wg(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)}xg(a,b)}};
Hg=function(a,b,c,d){null!=c&&(b=wg(a,b),d(c,a),xg(a,b))};
Ig=function(a,b,c,d){if(null!=c)for(var e=0;e<c.length;e++){var f=wg(a,b);d(c[e],a);xg(a,f)}};
Jg=function(){};
Og=function(a,b,c,d){a.o=null;b||(b=[]);a.F=void 0;a.A=-1;a.u=b;a:{if(b=a.u.length){--b;var e=a.u[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Kg&&e instanceof Uint8Array)){a.B=b-a.A;a.w=e;break a}}a.B=Number.MAX_VALUE}a.C={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.B?(e+=a.A,a.u[e]=a.u[e]||Lg):(Mg(a),a.w[e]=a.w[e]||Lg);if(d&&d.length)for(b=0;b<d.length;b++)Ng(a,d[b])};
Mg=function(a){var b=a.B+a.A;a.u[b]||(a.w=a.u[b]={})};
Pg=function(a,b){if(b<a.B){var c=b+a.A,d=a.u[c];return d===Lg?a.u[c]=[]:d}if(a.w)return d=a.w[b],d===Lg?a.w[b]=[]:d};
qba=function(a){if(null==a||a instanceof Uint8Array)return a;if("string"===typeof a)return g.fg(a);La(a);return null};
Qg=function(a,b){var c=Pg(a,b);return null==c?0:c};
Rg=function(a,b,c){b<a.B?a.u[b+a.A]=c:(Mg(a),a.w[b]=c);return a};
Sg=function(a,b,c){0!==c?Rg(a,b,c):b<a.B?a.u[b+a.A]=null:(Mg(a),delete a.w[b]);return a};
Tg=function(a,b,c,d){(c=Ng(a,c))&&c!==b&&void 0!==d&&(a.o&&c in a.o&&(a.o[c]=void 0),Rg(a,c,void 0));Rg(a,b,d)};
Ng=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],k=Pg(a,f);null!=k&&(c=f,d=k,Rg(a,f,void 0))}return c?(Rg(a,c,d),c):0};
Ug=function(a,b,c){a.o||(a.o={});if(!a.o[c]){var d=Pg(a,c);d&&(a.o[c]=new b(d))}return a.o[c]};
Wg=function(a,b,c){Vg(a,b,c);b=a.o[c];b==Lg&&(b=a.o[c]=[]);return b};
Vg=function(a,b,c){a.o||(a.o={});if(!a.o[c]){for(var d=Pg(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.o[c]=e}};
Yg=function(a,b,c){a.o||(a.o={});c=c||[];for(var d=[],e=0;e<c.length;e++)d[e]=Xg(c[e]);a.o[b]=c;Rg(a,b,d)};
Zg=function(a){if(a.o)for(var b in a.o){var c=a.o[b];if(g.Ma(c))for(var d=0;d<c.length;d++)c[d]&&Xg(c[d]);else c&&Xg(c)}};
Xg=function(a){Zg(a);return a.u};
$g=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?$g(d):d)}return b}if(Kg&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?$g(d):d);return b};
ah=function(a){this.o=a||{cookie:""}};
bh=function(a){a=(a.o.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=qc(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}};
ch=function(a){return a?a.passive&&rba()?a:a.capture||!1:!1};
dh=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,ch(d)),!0):!1};
eh=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,ch(void 0))};
g.hh=function(a){"number"===typeof a?(this.date=fh(a,0,1),gh(this,1)):g.Pa(a)?(this.date=fh(a.getFullYear(),a.getMonth(),a.getDate()),gh(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),gh(this,a))};
fh=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
gh=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
jh=function(a){ih();return new dc(ac,a)};
lh=function(){return!kh()&&(Nc("iPod")||Nc("iPhone")||Nc("Android")||Nc("IEMobile"))};
kh=function(){return Nc("iPad")||Nc("Android")&&!Nc("Mobile")||Nc("Silk")};
mh=function(a){try{return!!a&&null!=a.location.href&&Jd(a,"foo")}catch(b){return!1}};
nh=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
tba=function(){var a=[];nh(sba,function(b){a.push(b)});
return a};
vba=function(a){return(a=uba.exec(a))&&a[0]||""};
wba=function(){var a=oh;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""};
yba=function(){var a=g.pe("IFRAME"),b={};(0,g.y)(xba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
ph=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
qh=function(a){return a.right-a.left};
rh=function(a,b,c){b instanceof g.Sd?(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.sh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
th=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.vh=function(a,b,c){if("string"===typeof b)(b=uh(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=uh(c,d);f&&(c.style[f]=e)}};
uh=function(a,b){var c=wh[b];if(!c){var d=kd(b);c=d;void 0===a.style[d]&&(d=(g.ke?"Webkit":xh?"Moz":g.ie?"ms":g.yh?"O":null)+Oaa(d),void 0!==a.style[d]&&(c=d));wh[b]=c}return c};
g.zh=function(a,b){var c=a.style[kd(b)];return"undefined"!==typeof c?c:a.style[uh(a,b)]||""};
Ah=function(a,b){var c=Yd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Bh=function(a,b){return Ah(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Eh=function(a,b,c){if(b instanceof g.Sd){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Dh(d,!1);a.style.top=Dh(b,!1)};
Fh=function(a){return new g.Sd(a.offsetLeft,a.offsetTop)};
Gh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.ie&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Hh=function(a){if(g.ie&&!g.Nd(8))return a.offsetParent;var b=Yd(a),c=Bh(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=Bh(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.Ih=function(a){var b=Yd(a),c=new g.Sd(0,0);var d=b?Yd(b):document;d=!g.ie||g.Nd(9)||"CSS1Compat"==$d(d).o.compatMode?d.documentElement:d.body;if(a==d)return c;a=Gh(a);b=je($d(b).o);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Kh=function(a,b){var c=new g.Sd(0,0),d=le(Yd(a));if(!Jd(d,"parent"))return c;var e=a;do{var f=d==b?g.Ih(e):Jh(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.Mh=function(a,b){var c=Lh(a),d=Lh(b);return new g.Sd(c.x-d.x,c.y-d.y)};
Jh=function(a){a=Gh(a);return new g.Sd(a.left,a.top)};
Lh=function(a){if(1==a.nodeType)return Jh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Sd(a.clientX,a.clientY)};
g.Oh=function(a,b,c){if(b instanceof g.Ud)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.Nh(a,b);a.style.height=Dh(c,!0)};
Dh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Nh=function(a,b){a.style.width=Dh(b,!0)};
g.Ph=function(a){var b=zba;if("none"!=Bh(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};
zba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ke&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Gh(a),new g.Ud(a.right-a.left,a.bottom-a.top)):new g.Ud(b,c)};
g.Qh=function(a,b){a.style.display=b?"":"none"};
Uh=function(){if(Rh&&!mh(Sh)){var a="."+Th.domain;try{for(;2<a.split(".").length&&!mh(Sh);)Th.domain=a=a.substr(a.indexOf(".")+1),Sh=window.parent}catch(b){}mh(Sh)||(Sh=window)}return Sh};
Vh=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ud(b.innerWidth,b.innerHeight)).round():ge(b||window).round()}catch(d){return new g.Ud(-12245933,-12245933)}};
Wh=function(a,b,c){try{a&&(b=b.top);var d=Vh(a,b,void 0===c?!1:c),e=je($d(b.document).o);if(-12245933==d.width){var f=d.width;var k=new ph(f,f,f,f)}else k=new ph(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new ph(-12245933,-12245933,-12245933,-12245933)}};
Aba=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});
laa(a,function(c){return null===b[c.event]})};
Xh=function(){this.ob=0;this.o=!1;this.u=-1;this.Wh=!1;this.Gd=0};
Yh=function(){this.u=null;this.o=!1};
Zh=function(a){Yh.call(this);this.w=a};
$h=function(){Yh.call(this)};
ai=function(){this.o={};this.w=!0;this.u={}};
bi=function(a,b,c){a.o[b]||(a.o[b]=new Zh(c));return a.o[b]};
Bba=function(a){a.o.queryid||(a.o.queryid=new $h)};
ci=function(a,b,c){(a=a.o[b])&&a.setValue(c)};
di=function(a,b){if(Kb(a.u,b))return a.u[b];var c=a.o[b];if(c)return c.getValue()};
ei=function(a){var b={},c=g.Cb(a.o,function(d){return d.o});
g.Bb(c,function(d,e){var f=void 0!==a.u[e]?String(a.u[e]):d.o&&null!==d.u?String(d.u):"";0<f.length&&(b[e]=f)},a);
return b};
Cba=function(a){a=ei(a);var b=[];g.Bb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Dba=function(){this.o=this.eh=null};
fi=function(){};
hi=function(){if(!gi())throw Error();};
gi=function(){return!(!ii||!ii.performance)};
ji=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ki=function(){};
ni=function(a){a=a||li();for(var b=new mi(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Eba.test(f.url)&&(c=f);if(f.url&&!f.Jr){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Fba(b,e,c)};
li=function(){var a=g.v,b=[],c=null;do{var d=a;if(mh(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new mi(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.Jr=!0);return b};
Fba=function(a,b,c){this.o=a;this.u=b;this.w=c};
mi=function(a,b,c){this.url=a;this.xd=b;this.Jr=!!c;this.depth=null};
oi=function(){this.w="&";this.A=!1;this.u={};this.B=0;this.o=[]};
pi=function(a,b){var c={};c[a]=b;return[c]};
ri=function(a,b,c,d,e){var f=[];nh(a,function(k,l){var m=qi(k,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
qi=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(Array.isArray(a)){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(qi(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(ri(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
si=function(a,b,c,d){a.o.push(b);a.u[b]=pi(c,d)};
Hba=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Gba(a)-c.length;if(0>d)return"";a.o.sort(function(p,t){return p-t});
c=null;for(var e="",f=0;f<a.o.length;f++)for(var k=a.o[f],l=a.u[k],m=0;m<l.length;m++){if(!d){c=null==c?k:c;break}var n=ri(l[m],a.w,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.w;break}a.A&&(e=d,n[e-1]==a.w&&--e,b+=n.substr(0,e),e=a.w,d=0);c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
Gba=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};
ti=function(a,b){this.o=a;this.depth=b};
Jba=function(){function a(l,m){return null==l?m:l}
var b=li(),c=Math.max(b.length-1,0),d=ni(b);b=d.o;var e=d.u,f=d.w,k=[];f&&k.push(new ti([f.url,f.Jr?2:0],a(f.depth,1)));e&&e!=f&&k.push(new ti([e.url,2],0));b.url&&b!=f&&k.push(new ti([b.url,0],a(b.depth,c)));d=(0,g.Fc)(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=vba(b.url))&&d.push([new ti([e,1],a(b.depth,c))]);d.push([]);return(0,g.Fc)(d,function(l){return Iba(c,l)})};
Iba=function(a,b){(0,g.ui)(b,function(e){return 0<=e.depth});
var c=(0,g.vi)(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(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.Fc)(a,function(b){return qi(b)})};
wi=function(){this.u=new ki;this.o=gi()?new hi:new fi};
Lba=function(){xi();var a=ii.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&g.Oa(ii.setInterval)&&g.Oa(ii.clearInterval)&&g.Oa(ii.setTimeout)&&g.Oa(ii.clearTimeout))};
yi=function(a){xi();var b=Uh()||ii;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
zi=function(){xi();return Kba()};
Ai=function(){};
xi=function(){return Ai.getInstance().getContext()};
Bi=function(a){Og(this,a,null,null)};
Mba=function(a){this.A=a;this.o=-1;this.u=this.w=0};
Ci=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.na(d));try{return a.o=a.A.o.now(),b.apply(null,g.na(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)};
Ei=function(){this.w=void 0;this.u=this.C=0;this.sb="ns";this.B=-1;this.Pa=new ai;bi(this.Pa,"mv",Oba).o=!0;bi(this.Pa,"omid",Di);bi(this.Pa,"epoh",Di).o=!0;bi(this.Pa,"epph",Di).o=!0;bi(this.Pa,"umt",Di).o=!0;bi(this.Pa,"phel",Di).o=!0;bi(this.Pa,"phell",Di).o=!0;bi(this.Pa,"oseid",Pba).o=!0;bi(this.Pa,"xdi",Di).o=!0;bi(this.Pa,"amp",Di).o=!0;bi(this.Pa,"prf",Di).o=!0;bi(this.Pa,"gtx",Di).o=!0;bi(this.Pa,"mvp_lv",Di).o=!0;bi(this.Pa,"xosd",Di);this.Pa.u.xosd=1;this.Pa.u.mxd=1;bi(this.Pa,"msp",Di).o=
!0;bi(this.Pa,"eocm",Di).o=!0;bi(this.Pa,"pnl",Qba).o=!0;bi(this.Pa,"ecs",Di).o=!0;this.o=new Nba(xi(),this.Pa);this.A=!1};
Rba=function(){var a="https:";ii&&ii.location&&"http:"===ii.location.protocol&&(a="http:");this.u=a;this.o=.01};
Fi=function(a,b,c,d){if(Math.random()<(d||a.o))try{if(c instanceof oi)var e=c;else e=new oi,nh(c,function(k,l){var m=e,n=m.B++,p=pi(l,k);m.o.push(n);m.u[n]=p});
var f=Hba(e,a.u,"/pagead/gen_204?id="+b+"&");f&&yi(f)}catch(k){}};
Gi=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};
Hi=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Ii=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):(0,g.H)()};
Ji=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};
Li=function(){var a=Uh();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=Ki()||(null!=b?b:1>Math.random())};
Ni=function(a){a&&Mi&&Ki()&&(Mi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Mi.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Qi=function(){var a=Oi;this.B=Pi;this.A="jserror";this.w=!0;this.o=null;this.C=this.u;this.Da=void 0===a?null:a};
Ti=function(a,b,c,d){return Ci(Ei.getInstance().o.o,function(){try{if(a.Da&&a.Da.o){var e=a.Da.start(b.toString(),3);var f=c();a.Da.end(e)}else f=c()}catch(m){var k=a.w;try{Ni(e);var l=new Ri(Si(m));k=a.C(b,l,void 0,d)}catch(n){a.u(217,n)}if(!k)throw m;}return f})()};
Vi=function(a,b,c){var d=Ui;return Ci(Ei.getInstance().o.o,function(e){for(var f=[],k=0;k<arguments.length;++k)f[k-0]=arguments[k];return Ti(d,a,function(){return b.apply(void 0,f)},c)})};
Si=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};
Ri=function(a){Gi.call(this,Error(a),{message:a})};
Wi=function(){var a=Uh();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Oi.disable())};
Tba=function(a){Ui.o=function(b){(0,g.y)(a,function(c){c(b)})}};
Xi=function(a,b){return Ti(Ui,a,b,void 0)};
Yi=function(a,b){return Vi(a,b,void 0)};
Zi=function(a,b,c,d){Ui.u(a,b,c,d)};
$i=function(){return Date.now()-Uba};
Vba=function(){var a=Ei.getInstance().w,b=0<=aj?$i()-aj:-1,c=bj?$i()-cj:-1,d=0<=dj?$i()-dj:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Zi(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};
ej=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,mh(a)&&(c=a,b=d);return{xd:c,level:b}};
fj=function(a){var b=a!==a.top,c=a.top===ej(a).xd,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),Fb(Wba,function(k){return g.Oa(f[k])})||(e=1));
return{Ue:f,compatibility:e,WB:d}};
Xba=function(a){return(a=a.document)&&g.Oa(a.elementFromPoint)};
gj=function(a,b,c,d){var e=void 0===e?!1:e;c=Vi(d,c,void 0);dh(a,b,c,{capture:e})};
hj=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
ij=function(a){return new ph(a.top,a.right,a.bottom,a.left)};
jj=function(a){var b=a.top||0,c=a.left||0;return new ph(b,c+(a.width||0),b+(a.height||0),c)};
kj=function(a){return null!=a&&0<=a&&1>=a};
Yba=function(){var a=g.Mc;return a?lj("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return pc(a,b)})||pc(a,"OMI/")&&!pc(a,"XiaoMi/")?!0:pc(a,"Presto")&&pc(a,"Linux")&&!pc(a,"X11")&&!pc(a,"Android")&&!pc(a,"Mobi"):!1};
mj=function(){this.w=!mh(ii.top);this.F=kh()||lh();var a=li();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.qd(a[a.length-1].url)||"":"";this.o=new ph(0,0,0,0);this.A=new g.Ud(0,0);this.B=new g.Ud(0,0);this.G=new ph(0,0,0,0);this.C=0;this.H=!1;this.u=!(!ii||!fj(ii).Ue);this.update(ii)};
nj=function(a,b){b&&b.screen&&(a.A=new g.Ud(b.screen.width,b.screen.height))};
oj=function(a,b){var c=a.o?new g.Ud(qh(a.o),a.o.getHeight()):new g.Ud(0,0);var d=b;d=void 0===d?ii: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.Ud(f,e)}catch(B){z=new g.Ud(-12245933,-12245933)}a.B=z};
pj=function(){var a=mj.getInstance();if(0<a.C||a.H)return!0;a=xi().u.isVisible();var b=0===ji(Th);return a||b};
rj=function(a,b){var c=qj(b);return 0===c?0:qj(a)/c};
qj=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=Yd(a),e=d&&le(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
$ba=function(a,b,c){if(!a||!b)return!1;b=rh(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Uh();mh(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=Yd(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 mj.getInstance().w?!1:0>=qh(a)||0>=a.getHeight()?!0:c&&d?Xi(208,function(){return $ba(a,b,c)}):!1};
sj=function(a,b,c){var d=new ph(0,0,0,0);this.time=a;this.volume=null;this.w=b;this.o=d;this.u=c};
tj=function(a,b,c,d,e,f,k){this.F=a;this.C=b;this.B=c;this.o=d;this.A=e;this.u=f;this.w=k};
uj=function(a){this.w=a;this.u=0;this.o=null};
vj=function(a,b,c){this.xd=a;this.ca=void 0===c?"na":c;this.A=[];this.H=!1;this.w=new sj(-1,!0,this);this.o=this;this.F=b;this.J=this.Z=this.G=!1;this.S="uk";this.ub=!1;this.C=!0};
xj=function(a,b,c){if(!a.J||(void 0===c?0:c))a.J=!0,a.S=b,a.F=0,a.o!=a||wj(a)};
yj=function(a,b){g.cb(a.A,b)||(a.A.push(b),b.Zi(a.o),b.Ug(a.w),b.yf()&&(a.G=!0))};
zj=function(a){a=a.o;a.Ly();a.Ky();var b=mj.getInstance();b.G=Wh(!1,a.xd,b.F);a.jH();a.w.o=a.nx()};
Aj=function(a){a.G=a.A.length?lj(a.A,function(b){return b.yf()}):!1};
Bj=function(a){var b=g.kb(a.A);(0,g.y)(b,function(c){c.Ug(a.w)})};
wj=function(a){var b=g.kb(a.A);(0,g.y)(b,function(c){c.Zi(a.o)});
a.o!=a||Bj(a)};
Cj=function(a,b,c,d){this.element=a;this.o=new ph(0,0,0,0);this.B=new ph(0,0,0,0);this.u=b;this.Pa=c;this.J=d;this.ub=!1;this.timestamp=-1;this.A=new tj(b.w,this.o,new ph(0,0,0,0),0,0,$i(),0)};
Dj=function(a){this.ub=!1;this.o=a;this.A=g.Ja};
Ej=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 Ej(a.u,a.o,a.w+b)};
Fj=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};
Gj=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))})};
Hj=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;nh(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Ij=function(a){var b=eca;a.u&&(g.tb(a.o,function(c,d){return Fj(d,c)?1:Fj(c,d)?-1:0}),a.u=!1);
return(0,g.vi)(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:"":g.Ma(a)?0===a.length?b:b+"="+a.join():b+"="+(g.cb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Kj=function(a){var b=void 0===b?!0:b;this.o=new Gj;void 0!==a&&dca(this.o,a);b&&this.o.add("v",Jj,-16)};
fca=function(a){var b=[],c=[];g.Bb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){g.Ma(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":case "aio":case "nio":case "iem":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)};
Lj=function(){if(Jj&&"unreleased"!==Jj)return Jj};
Mj=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Lj();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);yi(a)};
Nj=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 Gj;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.B);d=Nj.getInstance();k.add("i",d.o++);k.add("adk",e);Hj(k,f);e=new Kj(k);Mj(e)}})};
Oj=function(){this.u=this.w=this.A=this.o=0};
Pj=function(a){this.u=a=void 0===a?hca:a;this.o=(0,g.Fc)(this.u,function(){return new Oj})};
Rj=function(a,b){return Qj(a,function(c){return c.o},void 0===b?!0:b)};
Uj=function(a,b){return Sj(a,b,function(c){return c.o})};
Vj=function(a,b){return Qj(a,function(c){return c.w},void 0===b?!0:b)};
Wj=function(a,b){return Sj(a,b,function(c){return c.w})};
Xj=function(a,b){return Sj(a,b,function(c){return c.u})};
Yj=function(a){(0,g.y)(a.o,function(b){b.u=0})};
Qj=function(a,b,c){a=(0,g.Fc)(a.o,function(d){return b(d)});
return c?a:ica(a)};
Sj=function(a,b,c){var d=g.ab(a.u,function(e){return b<=e});
return-1==d?0:c(a.o[d])};
ica=function(a){return(0,g.Fc)(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Zj=function(){this.u=new Pj;this.ca=new Oj;this.P=this.F=-1;this.ga=1E3;this.ra=new Pj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.U=this.O=-1};
ak=function(a,b){return Vj(a.u,void 0===b?!0:b)};
ck=function(a,b,c){g.A.call(this);this.position=jca.clone();this.co=this.An();this.Wr=-2;this.TO=Date.now();this.fC=-1;this.Sr=b;this.Un=null;this.gn=!1;this.Ko=null;this.opacity=-1;this.oO=c;this.qC=this.Zr=g.Ja;this.Jd=new Dba;this.Jd.eh=a;this.Jd.o=a;this.ij=!1;this.Kh={lt:null,kt:null};this.SB=!0;this.dm=null;this.cj=!1;Ei.getInstance().C++;this.td=this.Zq();this.eC=-1;this.sb=null;a=this.Pa=new ai;bi(a,"od",kca);bi(a,"opac",Di).o=!0;bi(a,"gcm",Di).o=!0;bi(a,"sbeos",Di).o=!0;bi(a,"prf",Di).o=
!0;bi(a,"mwt",Di).o=!0;bi(a,"lcs",Di).o=!0;bi(a,"iogeo",Di);bi(a,"osddt",Di).o=!0;bi(a,"nrl",Di).o=!0;(a=this.Jd.eh)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(g.bk&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+g.ld("googleAvInapp")):a.getAttribute("data-"+g.ld("googleAvInapp")))&&(mj.getInstance().u=!0);1==this.oO?ci(this.Pa,"od",1):ci(this.Pa,"od",0)};
dk=function(a,b){if(b!=a.cj){a.cj=b;var c=mj.getInstance();b?c.C++:0<c.C&&c.C--}};
lca=function(a,b,c){a.jm(c?a.td.ob:0,b,c,!1,{},a.Fn(b),a.td.Gd)};
ek=function(a){return a.sb?a.sb.getName():Ei.getInstance().sb};
fk=function(a,b){if(a.sb){if(b.getName()===a.sb.getName())return;a.sb.dispose();a.sb=null}var c=b.create(a.Jd.o,a.Pa,a.yf());if(c=null!=c&&c.ds()?c:null)a.sb=c};
gk=function(a,b,c){if(!a.Un||-1===b.u||-1===a.Un.u)return 0;a=b.u-a.Un.u;return a>c?0:a};
mca=function(a,b,c){if(a.sb){a.sb.Lf();var d=a.sb.A,e=d.F,f=e.o;if(null!=d.B){var k=d.C;a.Ko=new g.Sd(k.left-f.left,k.top-f.top)}f=a.mp()?Math.max(d.o,d.A):d.o;f=.99<=f?1:f;k={};null!==e.volume&&(k.volume=e.volume);e=1===di(a.Pa,"osddt");"nis"==a.sb.getName()&&(e=!0);"gsv"==a.sb.getName()&&(e=!0);e?(e=a.gx(d),a.Un=d,a.jm(f,b,c,!1,k,e,d.w)):a.jm(f,b,c,!1,k,a.Fn(b),d.w)}};
nca=function(a){if(a.gn&&a.dm){var b=1==di(a.Pa,"od"),c=mj.getInstance().o,d=a.dm,e=ek(a),f=new g.Ud(qh(c),c.getHeight());c=a.mp();a={OO:e,Ko:a.Ko,mP:f,mp:c,ob:a.td.ob,jP:b};if(b=d.u){b.Lf();e=b.A;f=e.F.o;var k=null,l=null;null!=e.B&&f&&(k=e.C,k=new g.Sd(k.left-f.left,k.top-f.top),l=new g.Ud(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.o,e.A):e.o;c={OO:b.getName(),Ko:k,mP:l,mp:c,jP:!1,ob:e}}else c=null;c&&gca(d,a,c)}};
oca=function(a,b,c){b&&(a.Zr=b);c&&(a.qC=c)};
hk=function(){};
jk=function(a){if(a instanceof hk)return a;if("function"==typeof a.If)return a.If(!1);if(g.Na(a)){var b=0,c=new hk;c.next=function(){for(;;){if(b>=a.length)throw ik;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.kk=function(a,b,c){if(g.Na(a))try{(0,g.y)(a,b,c)}catch(d){if(d!==ik)throw d;}else{a=jk(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==ik)throw d;}}};
pca=function(a){if(g.Na(a))return g.kb(a);a=jk(a);var b=[];g.kk(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};
lk=function(){Xh.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.w=-1};
mk=function(a){return kj(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};
nk=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 ok(a,g.Ib(a.u))};
ok=function(a,b){var c=0,d;for(d in a.o)g.cb(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};
pk=function(){this.o=this.u=0};
qk=function(){Zj.call(this);this.w=new Oj;this.Z=this.H=this.S=0;this.G=-1;this.na=new Oj;this.B=new Oj;this.o=new Pj;this.C=this.A=-1;this.J=new Oj;this.ga=2E3;this.V=new pk;this.ea=new pk;this.da=new pk};
rk=function(a,b,c){var d=a.Z;bj||c||-1==a.G||(d+=b-a.G);return d};
vca=function(){this.o=!1};
sk=function(a,b){this.o=!1;this.A=a;this.G=b;this.u=0};
uk=function(a,b){if(a.w(b)){var c=tk(a.G,a.A,b);a.u|=c;return 0==c}return!1};
vk=function(a,b,c,d){Cj.call(this,a,b,c,d)};
wk=function(a,b,c){Cj.call(this,null,a,b,c);this.F=a.isActive();this.C=0};
xk=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;ck.call(this,b,c,d);this.Dq=0;this.zf={};this.xc=new sca;this.DC={};this.Zc="";this.Bj=null;this.na=!1;this.o=[];this.ai=e;this.C=f;this.A=null;this.w=-1;this.Z=this.G=void 0;this.H=this.P=0;this.U=-1;this.ga=this.ea=!1;this.S=this.F=this.u=this.Uj=this.ra=0;new Pj;this.V=this.ca=0;this.da=-1;this.Dc=0;this.J=g.Ja;this.O=[this.An()];this.sa=2;this.Gi={};this.Gi.pause="p";this.Gi.resume="r";this.Gi.skip="s";this.Gi.mute="m";this.Gi.unmute=
"um";this.Gi.exitfullscreen="ef";this.B=null};
yk=function(a){0!=a.Dc&&(a.Dc=3)};
zk=function(a){return void 0===a?a:Number(a)?hj(a,3):0};
Ak=function(a,b){var c;null!=b&&b<a.O.length?c=b:c=a.O.length-1;return a.O[c]};
Bk=function(a){var b=!!di(Ei.getInstance().Pa,"umt");return a.G||!b&&!a.Z?0:1};
wca=function(a,b){var c=a.Fn(b),d=a.J(a)||{};d=void 0!==d.currentTime?d.currentTime:a.P;var e=d-a.P,f=0;0<=e?(a.H+=c,a.V+=Math.max(c-e,0),f=Math.min(e,a.H)):a.ca+=Math.abs(e);0!=e&&(a.H=0);-1==a.da&&0<e&&(a.da=0<=dj?$i()-dj:-1);a.P=d;return f};
xca=function(a,b){lj(a.C,function(c){return c.A==b.A})||a.C.push(b)};
Ck=function(a,b,c){return 15E3<=b?!0:a.ea?(void 0===c?0:c)?!0:0<a.w?b>=a.w/2:0<a.U?b>=a.U:!1:!1};
yca=function(a){var b=hj(a.td.ob,2),c=a.xc.w,d=a.td,e=Ak(a),f=zk(e.A),k=zk(e.C),l=zk(d.volume),m=hj(e.F,2),n=hj(e.P,2),p=hj(d.ob,2),t=hj(e.O,2),u=hj(e.U,2);d=hj(d.Gd,2);a=a.Pg().clone();a.round();e=ak(e,!1);return{lP:b,Nk:c,eo:f,Zn:k,ek:l,fo:m,ao:n,ob:p,ho:t,bo:u,Gd:d,position:a,Jo:e}};
Ek=function(a,b){Dk(a.o,b,function(){return{lP:0,Nk:void 0,eo:-1,Zn:-1,ek:-1,fo:-1,ao:-1,ob:-1,ho:-1,bo:-1,Gd:-1,position:void 0,Jo:[]}});
a.o[b]=yca(a)};
Dk=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Hk=function(a,b,c){var d=a.DC[b];if(null!=d)return d;d=zca(a,b);var e=Mb(Fk,function(f){return f==b});
c=Gk(a,d,d,c,Aca[Fk[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=ok(a.xc,["gdr"]));return c};
Ik=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Gk=function(a,b,c,d,e){if(a.ij)return{"if":0};var f=a.Pg().clone();f.round();var k=mj.getInstance(),l=Ei.getInstance(),m=a.Ld(),n=ek(a),p={};p["if"]=k.w?1:void 0;p.sdk=a.A?a.A:void 0;p.t=a.TO;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Rj(m.u,!1);p.mtos=ak(m);p.mcvt=m.ca.w;p.ps=void 0;p.vht=rk(m,$i(),2==a.Dc);p.mut=m.na.w;p.a=zk(a.td.volume);p.mv=zk(m.C);p.fs=a.cj?1:0;p.ft=m.J.o;p.at=m.B.o;p.as=.1<=m.A?1:0;p.atos=Rj(m.o);p.ssb=Rj(m.ra,!1);p.amtos=Vj(m.o);p.uac=a.ra;p.vpt=m.w.o;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=Ck(a,m.w.o,!0)?1:0;p.efpf=a.sa;if("gsv"==n||"nis"==n)f=a.sb,0<f.C&&(p.nnut=f.C);p.tcm=Bk(a);p.nmt=a.ca;p.bt=a.V;p.pst=a.da;p.vpaid=a.G;p.dur=a.w;p.vmtime=a.P;p.is=a.xc.w;1<=a.o.length&&(p.i0=a.o[0].Nk,p.a0=[a.o[0].ek],p.c0=[a.o[0].ob],p.ss0=[a.o[0].Gd],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].Nk,p.a1=Ik(a.o[1].eo,a.o[1].ek,a.o[1].Zn),p.c1=Ik(a.o[1].fo,a.o[1].ob,a.o[1].ao),p.ss1=Ik(a.o[1].ho,a.o[1].Gd,a.o[1].bo),f=a.o[1].position,
p.p1=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos1=a.o[1].Jo);3<=a.o.length&&(p.i2=a.o[2].Nk,p.a2=Ik(a.o[2].eo,a.o[2].ek,a.o[2].Zn),p.c2=Ik(a.o[2].fo,a.o[2].ob,a.o[2].ao),p.ss2=Ik(a.o[2].ho,a.o[2].Gd,a.o[2].bo),f=a.o[2].position,p.p2=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos2=a.o[2].Jo);4<=a.o.length&&(p.i3=a.o[3].Nk,p.a3=Ik(a.o[3].eo,a.o[3].ek,a.o[3].Zn),p.c3=Ik(a.o[3].fo,a.o[3].ob,a.o[3].ao),p.ss3=Ik(a.o[3].ho,a.o[3].Gd,a.o[3].bo),f=a.o[3].position,p.p3=f?[f.top,f.left,f.bottom,f.right]:
void 0,p.mtos3=a.o[3].Jo);p.cs=uca(a.xc);b&&(p.ic=tca(a.xc),p.dvpt=m.w.u,p.dvs=Xj(m.u,.5),p.dfvs=Xj(m.u,1),p.davs=Xj(m.o,.5),p.dafvs=Xj(m.o,1),c&&(m.w.u=0,Yj(m.u),Yj(m.o)),a.Yh()&&(p.dtos=m.S,p.dav=m.H,p.dtoss=a.Dq+1,c&&(m.S=0,m.H=0,a.Dq++)),p.dat=m.B.u,p.dft=m.J.u,c&&(m.B.u=0,m.J.u=0));p.ps=[k.B.width,k.B.height];p.bs=[qh(k.o),k.o.getHeight()];p.scs=[k.A.width,k.A.height];p.dom=k.domain;a.Uj&&(p.vds=a.Uj);if(0<a.C.length||a.ai)b=g.kb(a.C),a.ai&&b.push(a.ai),p.pings=(0,g.Fc)(b,function(t){return t.toString()});
b=(0,g.Fc)((0,g.ve)(a.C,function(t){return t.B()}),function(t){return t.getId()});
maa(b);p.ces=b;a.u&&(p.vmer=a.u);a.F&&(p.vmmk=a.F);a.S&&(p.vmiec=a.S);p.avms=ek(a);a.sb&&g.Ub(p,a.sb.Og());d?(p.c=hj(a.td.ob,2),p.ss=hj(a.td.Gd,2)):p.tth=$i()-Jk;p.mc=hj(m.P,2);p.nc=hj(m.F,2);p.mv=zk(m.C);p.nv=zk(m.A);p.lte=hj(a.Wr,2);d=Ak(a,e);ak(m);p.qmtos=ak(d);p.qnc=hj(d.F,2);p.qmv=zk(d.C);p.qnv=zk(d.A);p.qas=.1<=d.A?1:0;p.qi=a.Zc;p.avms||(p.avms="geo");p.psm=m.V.o;p.psv=m.V.getValue();p.psfv=m.ea.getValue();p.psa=m.da.getValue();l=Cba(l.Pa);l.length&&(p.veid=l);a.B&&g.Ub(p,rca(a.B));return p};
zca=function(a,b){if(g.cb(Bca,b))return!0;var c=a.zf[b];return void 0!==c?(a.zf[b]=!0,!c):!1};
Dca=function(){this.o={};var a=le();Kk(this,a,document);var b=Cca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Kk(this,c,c.document);Kk(this,a.top,a.top.document)}}catch(d){}};
Cca=function(){var a=document.documentElement;try{if(!mh(le().top))return"2";var b=[],c=le(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"}};
Kk=function(a,b,c){gj(c,"mousedown",function(){return Eca(a)},301);
gj(b,"scroll",function(){return Fca(a)},302);
gj(c,"touchmove",function(){return Gca(a)},303);
gj(c,"mousemove",function(){return Hca(a)},304);
gj(c,"keydown",function(){return Ica(a)},305)};
Eca=function(a){g.Bb(a.o,function(b){1E5<b.w||++b.w})};
Fca=function(a){g.Bb(a.o,function(b){1E5<b.o||++b.o})};
Gca=function(a){g.Bb(a.o,function(b){1E5<b.o||++b.o})};
Ica=function(a){g.Bb(a.o,function(b){1E5<b.u||++b.u})};
Hca=function(a){g.Bb(a.o,function(b){1E5<b.A||++b.A})};
g.Mk=function(a){var b=[];Lk(new Jca,a,b);return b.join("")};
Jca=function(){};
Lk=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),Lk(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),Nk(d,c),c.push(":"),Lk(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Nk(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);}}};
Nk=function(a,b){b.push('"',a.replace(Kca,function(c){var d=Ok[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Ok[c]=d);return d}),'"')};
Pk=function(){this.o=[];this.u=[]};
Qk=function(a,b){return g.$a(a.o,function(c){return c.Zc==b})};
Rk=function(a,b){return b?g.$a(a.o,function(c){return c.Jd.eh==b}):null};
Lca=function(a,b){return g.$a(a.u,function(c){return 2==c.jf()&&c.Zc==b})};
Tk=function(){var a=Sk;return 0==a.o.length?a.u:0==a.u.length?a.o:g.jb(a.u,a.o)};
Uk=function(a,b){var c=1==b.jf()?a.o:a.u,d=g.Ya(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.sb&&b.sb.al(),b.dispose(),!0):!1};
Mca=function(a){var b=Sk;if(Uk(b,a)){switch(a.jf()){case 0:var c=function(){return null};
case 2:c=function(){return Lca(b,a.Zc)};
break;case 1:c=function(){return Qk(b,a.Zc)}}for(var d=c();d;d=c())Uk(b,d)}};
Nca=function(a,b){var c=Sk,d=(0,g.ve)(a,(void 0===b?0:b)?function(e){return!Qk(c,e.Zc)}:function(e){return!Rk(c,e.Jd.eh)});
c.o.push.apply(c.o,g.na(d))};
Vk=function(a){var b=Sk,c=[];(0,g.y)(a,function(d){lj(b.o,function(e){return e.Jd.eh===d.Jd.eh&&e.Zc===d.Zc})||(b.o.push(d),c.push(d))})};
Wk=function(){this.o=this.u=null};
Xk=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.o=g.$a(a.u,function(d){return null!=d&&d.vy()});
a.o&&(a.o.init(c)?zj(a.o.o):b(a.o.o.Ti(),a.o));return null!=a.o};
Yk=function(a){a=Oca(a);Dj.call(this,a.length?a[a.length-1]:new vj(ii,0));this.w=a;this.u=null};
Oca=function(a){if(!a.length)return[];a=(0,g.ve)(a,function(c){return null!=c&&c.My()});
for(var b=1;b<a.length;b++)yj(a[b-1],a[b]);return a};
Zk=function(a,b,c,d){Cj.call(this,a,b,c,d);this.H=this.G=null};
$k=function(a,b){try{if(b.length){a.G||(a.G=$i());var c=Pca(b),d=Kh(a.element,a.u.o.xd),e=d.x,f=d.y;a.o=new ph(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=ij(c.intersectionRect);a.B=rh(k,a.o.left-k.left,a.o.top-k.top)}}catch(l){a.al(),Zi(299,l)}};
Pca=function(a){return(0,g.vi)(a,function(b,c){return b.time>c.time?b:c},a[0])};
al=function(a,b,c,d){Zk.call(this,a,b,c,d);this.C=this.F=this.w=null};
bl=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.xd,d=Ei.getInstance().o.o;a.w=new c.IntersectionObserver(Ci(d,function(e){return $k(a,e)}),Qca);
d=Ci(d,function(){a.w.unobserve(b);a.w.observe(b);$k(a,bl(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);$k(a,bl(a));return!0};
cl=function(){var a=/Chrome\/(\d+)/.exec(g.Mc);return a?parseFloat(a[1]):NaN};
dl=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Mc);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.Mc);return a?a[1]:""};
fl=function(){return el("android")&&el("chrome")&&!(el("trident/")||el("edge/"))};
gl=function(){return el("armv7")||el("aarch64")||el("android")};
g.hl=function(){return el("cobalt")};
il=function(){return el("cobalt")&&el("appletv")};
jl=function(){return el("(ps3; leanback shell)")||el("ps3")&&g.hl()};
kl=function(){return el("(ps4; leanback shell)")||el("ps4")&&g.hl()};
g.ll=function(){return g.hl()&&(el("ps4 vr")||el("ps4 pro vr"))};
ml=function(){var a=/WebKit\/([0-9]+)/.exec(g.Mc);return!!(a&&600<=parseInt(a[1],10))};
nl=function(){return el("iemobile")||el("windows phone")&&el("edge")};
pl=function(){return ol&&el("applewebkit")&&!el("version")&&(!el("safari")||el("gsa/"))};
ql=function(){return el("smart-tv")&&el("samsung")};
el=function(a){var b=g.Mc;return b?0<=b.toLowerCase().indexOf(a):!1};
rl=function(a){a=void 0===a?ii:a;Dj.call(this,new vj(a,2))};
tl=function(){var a=sl();vj.call(this,ii.top,a,"geo")};
sl=function(){Ei.getInstance();var a=mj.getInstance();return a.w||a.u?0:2};
ul=function(){};
vl=function(){this.done=!1;this.o={LD:0,Dv:0,LT:0,ww:0,yr:-1,kE:0,jE:0,lE:0};this.B=null;this.C=!1;this.u=null;this.F=0;this.w=new uj(this)};
xl=function(){var a=wl;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.na(c))}),a.A())};
Uca=function(){ul.getInstance();var a=Wk.getInstance();null!=a.o&&a.o.o?zj(a.o.o):mj.getInstance().update(ii)};
yl=function(a,b,c){if(!a.done&&(a.w.cancel(),0!=b.length)){a.u=null;try{Uca();var d=$i(),e=Ei.getInstance();e.B=d;if(null!=Wk.getInstance().o)for(e=0;e<b.length;e++)mca(b[e],d,c);else switch(e.sb){case "exc":for(e=0;e<b.length;e++)lca(b[e],d,c)}for(d=0;d<b.length;d++)nca(b[d]);++a.o.ww}finally{c?(0,g.y)(b,function(f){f.td.ob=0}):a.w.schedule()}}};
Tca=function(a,b){if(!a.B){var c=Vi(142,b,void 0);xi();var d;Th.visibilityState?d="visibilitychange":Th.mozVisibilityState?d="mozvisibilitychange":Th.webkitVisibilityState&&(d="webkitvisibilitychange");d&&dh(Th,d,c,{capture:!1})&&(a.B=c)}};
zl=function(){var a=Wk.getInstance();if(null!=a.o){var b=a.o;(0,g.y)(Tk(),function(c){return fk(c,b)})}};
Al=function(a,b){var c=a.F;bj&&(c+=b-cj);return c};
Vca=function(a){var b=wl;a=void 0===a?function(){return{}}:a;
Ui.A="av-js";Pi.o=.01;Tba([function(c){var d=Ei.getInstance(),e={};e=(e.bin=d.u,e.type="error",e);d=ei(d.Pa);if(!b.u){var f=ii.document,k=0<=aj?$i()-aj:-1,l=$i();-1==b.o.yr&&(k=l);var m=mj.getInstance(),n=Ei.getInstance(),p=ei(n.Pa),t=Tk();try{if(0<t.length){var u=m.o;u&&(p.bs=[qh(u),u.getHeight()]);var z=m.B;z&&(p.ps=[z.width,z.height]);ii.screen&&(p.ss=[ii.screen.width,ii.screen.height])}else p.url=encodeURIComponent(ii.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=aj;p.bin=n.u;switch(Ei.getInstance().sb){case "iem":p.iem=1;break;case "aio":p.aio=1;break;case "nio":p.nio=1}void 0!==ii.google_osd_load_pub_page_exp&&(p.olpp=ii.google_osd_load_pub_page_exp);p.deb=[1,b.o.LD,b.o.Dv,b.o.ww,b.o.yr,0,b.w.u,b.o.kE,b.o.jE,b.o.lE].join("-");p.tvt=Al(b,l);m.u&&(p.inapp=1);if(null!==ii&&ii!=ii.top){0<t.length&&(p.iframe_loc=encodeURIComponent(ii.location.href.substring(0,512)));var B=m.G;p.is=[qh(B),B.getHeight()]}}catch(D){p.error=1}b.u=p}u=g.Rb(b.u);
z=Ei.getInstance().o;1==di(z.w,"prf")?(B=new Bi,f=z.o,k=0,-1<f.o&&(k=f.A.o.now()-f.o),B=Sg(B,1,f.w+k),f=z.o,B=Sg(B,5,-1<f.o?f.u+1:f.u),B=Sg(B,2,z.u.o.w()),B=Sg(B,3,z.u.o.u()),B=Sg(B,4,z.u.o.o()),z={},f=new vg,k=Pg(B,1),k=null==k?k:+k,k=null==k?0:k,0!==k&&Eg(f,1,k),k=Qg(B,2),0!==k&&Cg(f,2,k),k=Qg(B,3),0!==k&&Cg(f,3,k),k=Qg(B,4),0!==k&&Cg(f,4,k),k=Qg(B,5),0!==k&&zg(f,5,k),B=yg(f),z=(z.pf=g.dg(B),z)):z={};g.Ub(u,z);g.Ub(c,e,d,u,a());if(e=Lj())d={},g.Ub(c,(d.v=encodeURIComponent(e),d))}])};
Wca=function(){var a=Bl||ii;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("&")};
Cl=function(a){return function(b){return void 0===b[a]?0:b[a]}};
El=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.Ma(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?Dl(c,a):c}}};
Fl=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(g.Ma(f)&&d(e))return Dl(f,b,c)}};
Gl=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Hl=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}};
Dl=function(a,b,c){return void 0===c||c?(0,g.ve)(a,function(d,e){return g.cb(b,e)}):(0,g.Fc)(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)})};
Kl=function(a,b){var c={sv:"842",cb:"j"};c.nas=Sk.o.length;c.msg=a;if(void 0!==b){var d=Il(b);d&&(c.e=Jl[d])}return c};
Ll=function(a){return fc(a,"custom_metric_viewable")};
Il=function(a){var b=Ll(a)?"custom_metric_viewable":a.toLowerCase();return Mb(Fk,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.Ib(Yca).length?null:(0,g.vi)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Ml[e[0]]||!Ml[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?Wj(b.o,a.o):Wj(b.u,a.o);case "tos":return a.u?Uj(b.o,a.o):Uj(b.u,a.o)}return 0};
Ol=function(a,b,c,d){sk.call(this,b,d);this.F=a;this.C=c};
Pl=function(a){sk.call(this,"fully_viewable_audible_half_duration_impression",a)};
Ql=function(a,b){sk.call(this,a,b)};
Rl=function(){this.u=this.A=this.C=this.B=this.w=this.o=""};
ada=function(){};
Sl=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.Oa(l)?f[k]=l(a):f[k]=a[l])}else g.Ub(f,a);void 0!==c&&g.Ub(f,c);a=Ij(Hj(new Gj,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Tl=function(){};
Ul=function(a,b,c){wk.call(this,a,b,c)};
Vl=function(a){a=void 0===a?ii:a;Dj.call(this,new vj(a,2))};
Wl=function(a,b,c){wk.call(this,a,b,c)};
Xl=function(a){a=void 0===a?ii:a;Dj.call(this,new vj(a,2))};
Yl=function(){vj.call(this,ii,2,"mraid");this.U=0;this.P=this.O=!1;this.B=null;this.u=fj(this.xd);this.w.o=new ph(0,0,0,0);this.V=!1};
Zl=function(a,b,c){a.qh("addEventListener",b,c)};
bm=function(a){Ei.getInstance().A=!!a.qh("isViewable");Zl(a,"viewableChange",bda);"loading"===a.qh("getState")?Zl(a,"ready",$l):am(a)};
am=function(a){"string"===typeof a.u.Ue.AFMA_LIDAR?(a.O=!0,cda(a)):(a.u.compatibility=3,a.B="nc",xj(a,"w"))};
cda=function(a){a.P=!1;var b=1==di(Ei.getInstance().Pa,"rmmt"),c=!!a.qh("isViewable");(b?!c:1)&&xi().setTimeout(Yi(524,function(){a.P||(cm(a),Zi(540,Error()),a.B="mt",xj(a,"w"))}),500);
dda(a);Zl(a,a.u.Ue.AFMA_LIDAR,dm)};
dda=function(a){var b=1==di(Ei.getInstance().Pa,"sneio"),c=void 0!==a.u.Ue.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Ue.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Ue.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Ue.AFMA_LIDAR_EXP_1=!b)};
cm=function(a){a.qh("removeEventListener",a.u.Ue.AFMA_LIDAR,dm);a.O=!1};
em=function(a,b){if("loading"===a.qh("getState"))return new g.Ud(-1,-1);var c=a.qh(b);if(!c)return new g.Ud(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.Ud(-1,-1):new g.Ud(d,c)};
$l=function(){try{var a=Yl.getInstance();a.qh("removeEventListener","ready",$l);am(a)}catch(b){Zi(541,b)}};
dm=function(a,b){try{var c=Yl.getInstance();c.P=!0;var d=a?new ph(a.y,a.x+a.width,a.y+a.height,a.x):new ph(0,0,0,0);var e=$i(),f=pj();var k=new sj(e,f,c);k.o=d;k.volume=b;c.Ug(k)}catch(l){Zi(542,l)}};
bda=function(a){var b=Ei.getInstance(),c=Yl.getInstance();a&&!b.A&&(b.A=!0,c.V=!0,1==di(Ei.getInstance().Pa,"msp")&&c.B&&xj(c,"w",!0))};
fm=function(){this.H=!1;this.o=null;this.w=new Tl;this.u=null;var a={};this.F=(a.start=this.HF,a.firstquartile=this.CF,a.midpoint=this.EF,a.thirdquartile=this.IF,a.complete=this.AF,a.pause=this.Bt,a.resume=this.FB,a.skip=this.GF,a.viewable_impression=this.Qg,a.mute=this.Qj,a.unmute=this.Qj,a.fullscreen=this.DF,a.exitfullscreen=this.BF,a.fully_viewable_audible_half_duration_impression=this.Qg,a.measurable_impression=this.Qg,a.abandon=this.Bt,a.engagedview=this.Qg,a.impression=this.Qg,a.creativeview=
this.Qg,a.progress=this.Qj,a.custom_metric_viewable=this.Qg,a.bufferstart=this.Bt,a.bufferfinish=this.FB,a);a={};this.J=(a.overlay_resize=this.FF,a.abandon=this.rr,a.close=this.rr,a.collapse=this.rr,a.overlay_unmeasurable_impression=function(b){return Hk(b,"overlay_unmeasurable_impression",pj())},a.overlay_viewable_immediate_impression=function(b){return Hk(b,"overlay_viewable_immediate_impression",pj())},a.overlay_unviewable_impression=function(b){return Hk(b,"overlay_unviewable_impression",pj())},
a.overlay_viewable_end_of_session_impression=function(b){return Hk(b,"overlay_viewable_end_of_session_impression",pj())},a);
Ei.getInstance().u=3;eda(this);this.A=!1};
gm=function(a,b,c,d){b=a.Pl(null,d,!0,b);b.A=c;Nca([b],a.A);return b};
fda=function(a,b,c){Aba(b);var d=a.u;(0,g.y)(b,function(e){var f=(0,g.Fc)(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=gc(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});
lj(f,function(k){return null==k})||xca(c,new Ol(e.id,e.event,f,d))})};
gda=function(a){a=a.u;return[new Ql("viewable_impression",a),new Pl(a)]};
hda=function(){var a=[];mj.getInstance();var b=Ei.getInstance();a.push(tl.getInstance());di(b.Pa,"mvp_lv")&&a.push(Yl.getInstance());var c=[new Vl,new Xl];di(b.Pa,"ecs");c.push(new Yk(a));c.push(new rl(ii));return c};
ida=function(a){if(!a.H){a.H=!0;try{var b=$i(),c=Ei.getInstance(),d=mj.getInstance();aj=b;c.w=79463069;"o"!==a.o&&(Bl=ej(ii).xd);if(Lba()){wl.o.Dv=0;wl.o.yr=$i()-b;var e=hda(),f=Wk.getInstance();f.u=e;Xk(f,function(){hm()})?wl.done||(zl(),yj(f.o.o,a),xl()):d.w?hm():xl()}else im=!0}catch(k){throw Sk.reset(),k;
}}};
km=function(a){wl.w.cancel();jm=a;wl.done=!0};
lm=function(a){var b=Ei.getInstance();if(a.o)return a.o;var c=Wk.getInstance().o;if(c)switch(c.getName()){case "nis":a.o="n";break;case "gsv":a.o="m"}else switch(b.sb){case "nis":a.o="n"}a.o||(a.o="h");return a.o};
mm=function(a,b,c){if(null==a.u)return b.Uj|=4,!1;a=tk(a.u,c,b);b.Uj|=a;return 0==a};
hm=function(){var a=[new rl(ii)],b=Wk.getInstance();b.u=a;Xk(b,function(){km("i")})?wl.done||(zl(),xl()):km("i")};
nm=function(a,b,c){if(!b.na){var d=Hk(b,"start",pj());a=a.w.o(d).o;var e={};e.r=c;e.v="842v";rd(a,function(f,k){return e[f]="mtos"==f||"tos"==f?k:encodeURIComponent(k)});
c=Wca();rd(c,function(f,k){return e[f]=encodeURIComponent(k)});
e.id="lidarvf";c="//pagead2.googlesyndication.com/pagead/gen_204?"+Ij(Hj(new Gj,e));Mj(c);b.na=!0}};
om=function(a,b,c){yl(wl,[a],!pj());Ek(a,c);4!=c&&Dk(a.O,c,a.An);return Hk(a,b,pj())};
eda=function(a){Vca(function(){var b=pm();null!=a.o&&(b.sdk=a.o);b.avms=Ei.getInstance().sb;return b})};
jda=function(a,b,c,d){if(a.A)var e=Qk(Sk,b);else e=Rk(Sk,c),null!==e&&e.Zc!==b&&(a.mk(e),e=null);e||(b=a.Pl(c,$i(),!1,b),0==Sk.u.length&&(Ei.getInstance().w=79463069),Vk([b]),e=b,e.A=lm(a),d&&(e.Bj=d));return e};
kda=function(a,b){b.F=0;for(var c in qm)null==a[c]&&(b.F|=qm[c]);rm(a,"currentTime");rm(a,"duration")};
lda=function(a){(0,g.y)(Sk.o,function(b){3==b.Dc&&a.mk(b)})};
rm=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
pm=function(){var a=mj.getInstance(),b={};return b.sv="842",b["if"]=a.w?"1":"0",b.nas=String(Sk.o.length),b};
sm=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
um=function(a){return!!(1<<a&tm)};
qda=function(){try{mda()}catch(d){}var a="a=1&b="+tm+"&",b=[],c=99;(0,g.y)(nda,function(d,e){var f=!1;try{f=d(ii)}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(ii)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
(0,g.y)(pda,function(d){var e="";try{var f=d(ii);d=[];for(var k=0,l=0;l<f.length;l++){var m=f.charCodeAt(l);255<m&&(d[k++]=m&255,m>>=8);d[k++]=m}e=g.dg(d,3)}catch(n){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
mda=function(){if(!vm){var a=function(){wm=!0;ii.document.removeEventListener("webdriver-evaluate",a,!0)};
ii.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){xm=!0;ii.document.removeEventListener("webdriver-evaluate-response",b,!0)};
ii.document.addEventListener("webdriver-evaluate-response",b,!0);vm=!0}};
rda=function(){this.u=-1};
ym=function(){this.u=64;this.o=Array(4);this.B=Array(this.u);this.A=this.w=0;this.reset()};
zm=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};
Am=function(){this.u=null};
Bm=function(a){return function(b){var c=new ym;c.update(b+a);return oba(c.digest()).slice(-8)}};
Cm=function(a,b){this.u=a;this.w=b};
tk=function(a,b,c){var d=a.o(c);if(g.Oa(d)){var e={};e=(e.sv="842",e.cb="j",e.e=sda(b),e);var f=Hk(c,b,pj());g.Ub(e,f);c.DC[b]=f;a=2==c.jf()?fca(e).join("&"):a.w.o(e).o;try{return d(c.Zc,a,b),0}catch(k){return 2}}else return 1};
sda=function(a){var b=Ll(a)?"custom_metric_viewable":a;a=Mb(Fk,function(c){return c==b});
return Jl[a]};
Dm=function(a,b,c){Cm.call(this,a,b);this.A=c};
Em=function(){fm.call(this);this.C=null;this.B=!1;this.G={};this.w=new Am};
tda=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&g.Ma(c)&&fda(a,c,b)};
uda=function(a,b,c){var d=Qk(Sk,b);d||(d=c.opt_nativeTime||-1,d=gm(a,b,lm(a),d),c.opt_osdId&&(d.Bj=c.opt_osdId));return d};
Fm=function(a,b,c){var d=Qk(Sk,b);d||(d=gm(a,b,"n",c.opt_nativeTime||-1));return d};
Gm=function(a,b){var c=Qk(Sk,b);c||(c=gm(a,b,"h",-1));return c};
vda=function(a){Ei.getInstance();switch(lm(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};
Im=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Ub(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.w.o(Kl("ol",d));if(void 0!==d)if(void 0!==Il(d))if(im)b=Kl("ue",d);else if(ida(a),"i"==jm)b=Kl("i",d),b["if"]=0;else if(b=a.En(b,e))if(a.A&&3==b.Dc)b="stopped";else{b:{"i"==jm&&(b.ij=!0,a.Ut());c=e.opt_fullscreen;void 0!==c&&dk(b,!!c);var f;if(c=!mj.getInstance().u)(c=pc(g.Mc,"CrKey")||pc(g.Mc,"PlayStation")||pc(g.Mc,"Roku")||Yba()||pc(g.Mc,"Xbox"))||(c=g.Mc,c=pc(c,"AppleTV")||
pc(c,"Apple TV")||pc(c,"CFNetwork")||pc(c,"tvOS")),c||(c=g.Mc,c=pc(c,"sdk_google_atv_x86")||pc(c,"Android TV")),c=!c;c&&(xi(),c=0===ji(Th));if(f=c){switch(b.jf()){case 1:nm(a,b,"pv");break;case 2:a.Nt(b)}km("pv")}c=d.toLowerCase();if(!f&&g.cb(wda,c)&&0==b.Dc){"i"!=jm&&(wl.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;dj=f="number"===typeof f?f:$i();b.gn=!0;var k=pj();b.Dc=1;b.zf={};b.zf.firstquartile=!1;b.zf.midpoint=!1;b.zf.thirdquartile=!1;b.zf.complete=!1;b.zf.pause=!1;b.zf.skip=!1;b.zf.viewable_impression=
!1;b.Dq=0;k||(b.Ld().G=f);yl(wl,[b],!k)}0!=b.Dc&&g.cb(xda,c)&&!b.ij&&b.ai&&(f=b.ai,f.o||(f.o=uk(f,b)));(f=b.Gi[c])&&nk(b.xc,f);switch(b.jf()){case 1:var l=Ll(c)?a.F.custom_metric_viewable:a.F[c];break;case 2:l=a.J[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Kl(void 0,c);g.Ub(e,d);d=e;break b}d=void 0}3==b.Dc&&(a.A?b.sb&&b.sb.al():a.mk(b));b=d}else b=Kl("nf",d);else b=void 0;else im?b=Kl("ue"):(b=a.En(b,e))?(d=Kl(),g.Ub(d,Gk(b,!0,!1,!1)),b=d):b=Kl("nf");return"string"===typeof b?a.A&&"stopped"===b?
Hm:a.w.o(void 0):a.w.o(b)};
Jm=function(a){return Ei.getInstance(),"h"!=lm(a)&&lm(a),!1};
Km=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};
Lm=function(a,b,c){c=void 0===c?{}:c;a=Im(Em.getInstance(),b,c,a);return Km(a)};
Mm=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&&"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};
yda=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 B=e[1],D=e[2],E=e[3],G=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var F=E^B&(D^E);var ka=1518500249}else F=B^D^E,ka=1859775393;else 60>z?(F=B&D|E&(B|D),ka=2400959708):(F=B^D^E,ka=3395469782);F=((t<<5|t>>>27)&4294967295)+F+G+ka+u[z]&4294967295;G=E;E=D;D=(B<<30|B>>>2)&4294967295;B=t;t=F}e[0]=e[0]+t&4294967295;e[1]=e[1]+B&4294967295;
e[2]=e[2]+D&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+G&4294967295}
function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],B=0,D=t.length;B<D;++B)z.push(t.charCodeAt(B));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 B=24;0<=B;B-=8)t[u++]=e[z]>>B&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,rE: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}}};
zda=function(a,b,c){var d=[],e=[];if(1==(g.Ma(c)?2:1))return e=[b,a],(0,g.y)(d,function(l){e.push(l)}),Nm(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.db(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.y)(d,function(l){e.push(l)});
a=Nm(e.join(" "));a=[c,a];g.db(k)||a.push(k.join(""));return a.join("_")};
Nm=function(a){var b=yda();b.update(a);return b.rE().toLowerCase()};
g.Om=function(){var a=[],b=Mm(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new ah(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 ah(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,zda(Mm(d),c,a||
null)].join(" "):null}return null};
g.Pm=function(a,b){this.u={};this.o=[];this.yh=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.Pm)for(c=a.se(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Rm=function(a){if(a.w!=a.o.length){for(var b=0,c=0;b<a.o.length;){var d=a.o[b];Qm(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],Qm(e,d)||(a.o[c++]=d,e[d]=1),b++;a.o.length=c}};
Qm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Sm=function(a,b){this.o=this.G=this.A="";this.B=null;this.C=this.u="";this.F=!1;var c;a instanceof g.Sm?(this.F=void 0!==b?b:a.F,g.Tm(this,a.A),this.G=a.G,g.Um(this,a.o),g.Vm(this,a.B),this.u=a.u,Wm(this,a.w.clone()),this.C=a.C):a&&(c=String(a).match(od))?(this.F=!!b,g.Tm(this,c[1]||"",!0),this.G=Xm(c[2]||""),g.Um(this,c[3]||"",!0),g.Vm(this,c[4]),this.u=Xm(c[5]||"",!0),Wm(this,c[6]||"",!0),this.C=Xm(c[7]||"")):(this.F=!!b,this.w=new Ym(null,this.F))};
g.Tm=function(a,b,c){a.A=c?Xm(b,!0):b;a.A&&(a.A=a.A.replace(/:$/,""))};
g.Um=function(a,b,c){a.o=c?Xm(b,!0):b};
g.Vm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
Wm=function(a,b,c){b instanceof Ym?(a.w=b,Ada(a.w,a.F)):(c||(b=Zm(b,Bda)),a.w=new Ym(b,a.F))};
g.$m=function(a){return a instanceof g.Sm?a.clone():new g.Sm(a,void 0)};
Xm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Zm=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Cda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Cda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Ym=function(a,b){this.u=this.o=null;this.w=a||null;this.A=!!b};
an=function(a){a.o||(a.o=new g.Pm,a.u=0,a.w&&rd(a.w,function(b,c){a.add(ed(b),c)}))};
cn=function(a,b){an(a);b=bn(a,b);return Qm(a.o.u,b)};
g.dn=function(a,b,c){a.remove(b);0<c.length&&(a.w=null,a.o.set(bn(a,b),g.kb(c)),a.u=a.u+c.length)};
bn=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
Ada=function(a,b){b&&!a.A&&(an(a),a.w=null,a.o.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.dn(this,e,c))},a));
a.A=b};
fn=function(a){if(g.hc(g.hd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Sm(a)}catch(c){return null!=g.$a(en,function(d){return 0<a.search(d)})}return b.C.match(Dda)?!0:null!=g.$a(en,function(c){return null!=a.match(c)})};
g.gn=function(a,b){return a.replace(Eda,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.hc(g.hd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
g.jn=function(a){var b,c=b=0,d=!1;a=a.split(Fda);for(var e=0;e<a.length;e++){var f=a[e];g.hn.test(f)?(b++,c++):Gda.test(f)?d=!0:Hda.test(f)?c++:Ida.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
kn=function(){};
ln=function(a){Og(this,a,Jda,null)};
mn=function(a){Og(this,a,null,null)};
Lda=function(a,b){var c=Wg(a,mn,1);0<c.length&&Ig(b,1,c,Kda)};
Kda=function(a,b){var c=Pg(a,1);null!=c&&Eg(b,1,c);c=Pg(a,2);null!=c&&Cg(b,2,c)};
nn=function(a){Og(this,a,Mda,null)};
on=function(a){Og(this,a,null,Nda)};
pn=function(a){Og(this,a,null,null)};
qn=function(a){Og(this,a,null,null)};
rn=function(a){Og(this,a,Oda,null)};
tn=function(a){Og(this,a,null,sn)};
vn=function(a){Og(this,a,null,un)};
Rda=function(a,b){var c=Ug(a,pn,1);null!=c&&Hg(b,1,c,Pda);c=Ug(a,qn,2);null!=c&&Hg(b,2,c,Qda)};
Pda=function(a,b){var c=Pg(a,1);null!=c&&Gg(b,1,c);c=Pg(a,2);null!=c&&Gg(b,2,c);c=Pg(a,3);null!=c&&Fg(b,3,c)};
Qda=function(a,b){var c=Pg(a,1);null!=c&&Gg(b,1,c);c=Pg(a,2);null!=c&&Gg(b,2,c);c=Pg(a,3);null!=c&&zg(b,3,c);c=Pg(a,4);null!=c&&Fg(b,4,c)};
Uda=function(a,b){var c=Wg(a,tn,1);0<c.length&&Ig(b,1,c,Sda);c=Ug(a,vn,2);null!=c&&Hg(b,2,c,Tda)};
Sda=function(a,b){var c=Pg(a,1);null!=c&&Gg(b,1,c);c=Pg(a,2);null!=c&&zg(b,2,c);c=Pg(a,3);null!=c&&Fg(b,3,c)};
Tda=function(a,b){var c=Pg(a,1);null!=c&&Cg(b,1,c);c=Pg(a,2);null!=c&&Eg(b,2,c);c=Ug(a,ln,3);null!=c&&Hg(b,3,c,Lda)};
wn=function(){this.u=[];this.o=-1};
Vda=function(a){-1==a.o&&(a.o=(0,g.vi)(a.u,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.o};
g.xn=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.dF,this)};
g.yn=function(a){a.isActive()||a.start()};
zn=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
An=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.rd=b||0;this.u=c;this.w=(0,g.x)(this.rx,this)};
g.Bn=function(a,b){a.isActive()||a.start(b)};
g.Cn=function(a){a.stop();a.rx()};
g.Dn=function(a){a.isActive()&&g.Cn(a)};
Yda=function(a){var b=Wda++,c={tG:{id:b,Sf:a.measure,context:void 0},MJ:{id:b,Sf:a.CT,context:void 0},state:{},args:void 0,Sn:!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.Sn||(c.Sn=!0,En[Fn].push(c));Gn||(Gn=!0,window.requestAnimationFrame(Xda))}};
Xda=function(){Gn=!1;var a=En[Fn],b=a.length;Fn=(Fn+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.tG;c.Sn=!1;e.Sf&&e.Sf.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.MJ,c.Sn=!1,e.Sf&&e.Sf.apply(e.context,c.args),c.state={};a.length=0};
Hn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
In=function(a){return a.classList?a.classList:Hn(a).match(/\S+/g)||[]};
Jn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Kn=function(a,b){return a.classList?a.classList.contains(b):g.cb(In(a),b)};
g.J=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Kn(a,b)){var c=Hn(a);Jn(a,c+(0<c.length?" "+b:b))}};
g.Ln=function(a,b){if(a.classList)(0,g.y)(b,function(f){g.J(a,f)});
else{var c={};(0,g.y)(In(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;Jn(a,d)}};
g.Mn=function(a,b){a.classList?a.classList.remove(b):g.Kn(a,b)&&Jn(a,(0,g.ve)(In(a),function(c){return c!=b}).join(" "))};
g.Nn=function(a,b){a.classList?(0,g.y)(b,function(c){g.Mn(a,c)}):Jn(a,(0,g.ve)(In(a),function(c){return!g.cb(b,c)}).join(" "))};
g.K=function(a,b,c){c?g.J(a,b):g.Mn(a,b)};
g.On=function(){g.gf.call(this);this.o=0;this.endTime=this.startTime=null};
Zda=function(a,b){Array.isArray(b)||(b=[b]);var c=(0,g.Fc)(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.vh(a,"transition",c.join(","))};
Pn=function(a,b,c,d,e){g.On.call(this);this.w=a;this.G=b;this.J=c;this.C=d;this.H=Array.isArray(e)?e:[e]};
Qn=function(a,b,c,d){return new Pn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
aea=function(a){a=qc(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 $da))return null}return a};
Rn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Sn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ie&&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)};
fea=function(a){if(!a)return Hc;var b=document.createElement("div").style,c=bea(a);(0,g.y)(c,function(d){var e=g.ke&&d in cea?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fc(e,"--")||fc(e,"var")||(d=Sn(dea,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=aea(d),null!=d&&Sn(eea,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Iaa(b.cssText||"")};
bea=function(a){g.Na(a)?a=g.kb(a):(a=g.Ib(a),g.gb(a,"cssText"));return a};
g.Tn=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.Un=function(a,b){if(0==b)return a.o;if(1==b)return a.u;var c=g.Qd(a.o,a.w,b),d=g.Qd(a.w,a.A,b),e=g.Qd(a.A,a.u,b);c=g.Qd(c,d,b);d=g.Qd(d,e,b);return g.Qd(c,d,b)};
g.Vn=function(a,b,c){this.A=a;this.B=b;this.o=this.w=a;this.C=c||0};
g.Wn=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++};
Xn=function(a){return(a=a.exec(g.Mc))?a[1]:""};
Yn=function(a){return 0<=g.sc(gea,a)};
g.Zn=function(a){g.A.call(this);this.B=1;this.w=[];this.A=0;this.o=[];this.u={};this.C=!!a};
hea=function(a,b,c){g.wf(function(){a.apply(b,c)})};
g.$n=function(a){this.o=a};
ao=function(a){this.o=a};
bo=function(a){this.data=a};
co=function(a){return void 0===a||a instanceof bo?a:new bo(a)};
eo=function(a){this.o=a};
g.fo=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.H)()||!!b&&b>(0,g.H)()};
g.go=function(a){this.o=a};
iea=function(){};
ho=function(){};
io=function(a){this.o=a};
jo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.o=a};
ko=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.o=a};
mo=function(a,b){this.u=a;this.o=null;if(g.ie&&!g.Nd(9)){lo||(lo=new g.Pm);this.o=lo.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)),lo.set(a,this.o));try{this.o.load(this.u)}catch(c){this.o=null}}};
no=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return jea[b]})};
oo=function(a){try{a.o.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
po=function(a,b){this.u=a;this.o=b+"::"};
g.ro=function(a){var b=new jo;return b.isAvailable()?a?new po(b,a):b:null};
so=function(a,b){this.o=a;this.u=b};
to=function(a){this.o=[];if(a)a:{if(a instanceof to){var b=a.se();a=a.Bd();if(0>=this.o.length){for(var c=this.o,d=0;d<b.length;d++)c.push(new so(b[d],a[d]));break a}}else b=g.Ib(a),a=g.Hb(a);for(d=0;d<b.length;d++)g.uo(this,b[d],a[d])}};
g.uo=function(a,b,c){var d=a.o;d.push(new so(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.vo=function(){to.call(this)};
wo=function(a,b){var c=void 0,d=void 0,e;if(!(e=d)){if("undefined"!==typeof Promise)e=Promise;else throw Error("Promise or polyfill not available.");e=d=e}return new e(function(f,k){function l(p){try{n(b.next(p))}catch(t){k(t)}}
function m(p){try{n(b["throw"](p))}catch(t){k(t)}}
function n(p){p.done?f(p.value):(new d(function(t){t(p.value)})).then(l,m)}
n((b=b.apply(a,c)).next())})};
xo=function(a){Og(this,a,kea,null)};
yo=function(a){Og(this,a,null,null)};
lea=function(a,b){for(;og(b)&&4!=b.u;)switch(b.w){case 1:var c=rg(b);Rg(a,1,c);break;case 2:c=rg(b);Rg(a,2,c);break;case 3:c=rg(b);Rg(a,3,c);break;case 4:c=rg(b);Rg(a,4,c);break;case 5:c=mg(b.o);Rg(a,5,c);break;default:pg(b)}return a};
mea=function(a){a=a.split("");var b=[function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
-1283442544,-1839244393,1389065675,null,382153655,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
a,-1850141272,-756262367,-532321209,1441459244,597638911,498298709,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-1051041485,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(""))},
a,null,172920864,-1051041485,767090552,null,-2129498785,608926225,615711040,function(c){c.reverse()},
function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
222221713,"unshift",1960621114,131928824,1067756721,-1735465582,-631601469,1188382192,163076587,a,-716566483,-465365893,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(""))},
function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
495635237,-1264209598,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
-2054823073,"length",1250515137,-1369029494,389366250,-2126930037];b[4]=b;b[18]=b;b[22]=b;b[0](b[18],b[31]);b[35](b[7],b[9]);b[26](b[22]);b[44](b[33],b[16]);b[44](b[32],b[49]);b[30](b[29],b[0]);b[11](b[24],b[18]);b[40](b[24],b[48]);b[20](b[27],b[18]);b[29](b[46],b[16]);b[7](b[9],b[10]);b[13](b[35],b[44]);b[13](b[39],b[47]);b[16](b[35],b[32]);b[38](b[14],b[35]);b[17](b[37]);b[47](b[27],b[7]);b[4](b[37],b[49]);b[47](b[14],b[26]);b[17](b[9]);b[26](b[37],b[7]);b[4](b[19],b[20]);b[4](b[27]);b[25](b[45],
b[22]);b[34](b[12],b[28]);b[34](b[7],b[0]);b[31](b[35],b[9]);b[48](b[7],b[20]);b[34](b[45],b[40]);b[34](b[8],b[2]);b[25](b[27],b[10]);b[34](b[45],b[47]);b[48](b[12],b[32]);b[30](b[3],b[29]);b[0](b[8]);b[24](b[47],b[35]);b[20](b[47],b[5]);b[6](b[27],b[28]);b[37](b[27],b[11]);b[37](b[19],b[33]);return a.join("")};
Ao=function(a,b,c){a&&(a.dataset?a.dataset[zo(b)]=String(c):a.setAttribute("data-"+b,c))};
Bo=function(a){return a?a.dataset?a.dataset[zo("loaded")]:a.getAttribute("data-loaded"):null};
zo=function(a){return Co[a]||(Co[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Eo=function(a){var b=arguments,c=Do;1<b.length?c[b[0]]=b[1]:1===b.length&&Object.assign(c,b[0])};
g.L=function(a,b){return a in Do?Do[a]:b};
Fo=function(){return g.L("ERRORS",[])};
Go=function(a){var b=Do.EXPERIMENT_FLAGS;return b?b[a]:void 0};
nea=function(a){Ho.forEach(function(b){return b(a)})};
Io=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.M(b),nea(b)}}:a};
g.M=function(a,b){var c=g.w("yt.logging.errors.log");c?c(a,"ERROR",b,void 0,void 0):(c=Fo(),c.push([a,"ERROR",b,void 0,void 0]),Eo("ERRORS",c))};
g.Jo=function(a){var b=g.w("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=Fo(),b.push([a,"WARNING",void 0,void 0,void 0]),Eo("ERRORS",b))};
g.Ko=function(a,b){g.Oa(a)&&(a=Io(a));return window.setTimeout(a,b)};
Lo=function(a,b){g.Oa(a)&&(a=Io(a));return window.setInterval(a,b)};
g.Mo=function(a){window.clearTimeout(a)};
g.Ro=function(a,b,c){var d=g.No();if(d){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Oo[e]&&b.apply(c||window,f)};
try{g.Po[a]?k():g.Ko(k,0)}catch(l){g.M(l)}},c);
Oo[e]=!0;Qo[a]||(Qo[a]=[]);Qo[a].push(e);return e}return 0};
oea=function(a){var b=g.Ro("watchAdsInit",function(c){a.apply(void 0,arguments);g.So(b)},void 0);
return b};
g.So=function(a){var b=g.No();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete Oo[c]}))};
g.To=function(a,b){var c=g.No();return c?c.publish.apply(c,arguments):!1};
Vo=function(a){var b=g.No();if(b)if(b.clear(a),a)Uo(a);else for(var c in Qo)Uo(c)};
g.No=function(){return g.w("ytPubsubPubsubInstance")};
Uo=function(a){Qo[a]&&(a=Qo[a],(0,g.y)(a,function(b){Oo[b]&&delete Oo[b]}),a.length=0)};
g.Wo=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(pea,""),c=c.replace(qea,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else rea(a,b,c)};
rea=function(a,b,c){c=void 0===c?null:c;var d=Xo(a),e=document.getElementById(d),f=e&&Bo(e),k=e&&!f;f?b&&b():(b&&(f=g.Ro(d,b),b=""+g.Ra(b),Yo[b]=f),k||(e=sea(a,d,function(){Bo(e)||(Ao(e,"loaded","true"),g.To(d),g.Ko(g.Sa(Vo,d),0))},c)))};
sea=function(a,b,c,d){d=void 0===d?null:d;var e=g.pe("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);cd(e,jh(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Xo=function(a){var b=document.createElement("a");g.ad(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+id(a)};
g.$o=function(a){a=Zo(a);return"string"===typeof a&&"false"===a?!1:!!a};
ag=function(a,b){var c=Zo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
Zo=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
ap=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};
pp=function(){g.Mo(bp);g.Mo(cp);cp=0;if(!g.Ob(dp)){for(var a in dp){var b=ep[a];if(b&&b.isReady()){var c=void 0,d=a,e=b,f=tea[d],k=fp[d]||{};fp[d]=k;b=Math.round((0,g.N)());for(c in dp[d]){var l=g.Sb(g.gp(e));l[f]=hp(d,c);k.dispatchedEventCount=k.dispatchedEventCount||0;k.dispatchedEventCount+=l[f].length;var m=ip[c];if(m)a:{var n=l,p=c;if(m.videoId)var t="VIDEO";else if(m.playlistId)t="PLAYLIST";else break a;n.credentialTransferTokenTargetId=m;n.context=n.context||{};n.context.user=n.context.user||
{};n.context.user.credentialTransferTokens=[{token:p,scope:t}]}delete ip[c];m=l;m.requestTimeMs=b;g.$o("unsplit_gel_payloads_in_logs")&&(m.unsplitGelPayloadsInLogs=!0);if(t=g.L("EVENT_ID",void 0))n=g.L("BATCH_CLIENT_COUNTER",void 0)||0,!n&&g.$o("web_client_counter_random_seed")&&(n=Math.floor(Math.random()*jp/2)),n++,n>jp&&(n=1),Eo("BATCH_CLIENT_COUNTER",n),t={serializedEventId:t,clientCounter:n},m.serializedClientEventId=t,kp&&lp&&g.$o("log_gel_rtt_web")&&(m.previousBatchInfo={serializedClientEventId:kp,
roundtripMs:lp}),kp=t,lp=0;g.mp(e,d,l,{retry:uea.has(d),onSuccess:g.Sa(vea,(0,g.N)())})}c=k;d=b;c.previousDispatchMs&&(b=d-c.previousDispatchMs,e=c.diffCount||0,c.averageTimeBetweenDispatchesMs=e?((c.averageTimeBetweenDispatchesMs||0)*e+b)/(e+1):b,c.diffCount=e+1);c.previousDispatchMs=d;delete dp[a];np=!1}}g.Ob(dp)||op()}};
op=function(){g.$o("web_gel_timeout_cap")&&!cp&&(cp=g.Ko(pp,6E4));g.Mo(bp);var a=g.L("LOGGING_BATCH_TIMEOUT",ag("web_gel_debounce_ms",1E4));g.$o("shorten_initial_gel_batch_timeout")&&np&&(a=wea);bp=g.Ko(pp,a)};
hp=function(a,b){b=void 0===b?"":b;dp[a]=dp[a]||{};dp[a][b]=dp[a][b]||[];return dp[a][b]};
vea=function(a){lp=Math.round((0,g.N)()-a)};
rp=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=qp+"VisibilityState";if(b in a)return a[b]};
sp=function(a,b){var c;lj(a,function(d){c=b[d];return!!c});
return c};
tp=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 xea||(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){}};
up=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}};
yea=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 Mb(vp,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Pa(e[4])&&g.Pa(d)&&g.Qb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})};
g.yp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=yea(a,b,c,d);if(e)return e;e=++wp.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new tp(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 tp(l);
l.currentTarget=a;return c.call(a,l)};
k=Io(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),xp()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);vp[e]=[a,b,c,k,d];return e};
zea=function(a,b,c,d){var e=a||document;return g.yp(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.zp=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.y)(a,function(b){if(b in vp){var c=vp[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?xp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete vp[b]}}))};
g.Ap=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Bp=function(a){a=a||window.event;var b;a.composedPath&&g.Oa(a.composedPath)?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.Ap(a)};
Cp=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};
Dp=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.Sd(b,c)};
g.Ep=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Fp=function(a){a=a||window.event;return!1===a.returnValue||a.Sx&&a.Sx()};
g.Gp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
g.Hp=function(a,b,c,d){return zea(a,b,c,function(e){return g.Kn(e,d)})};
g.Ip=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.yp(a,b,function(){g.zp(e);c.apply(a,arguments)},d)};
Jp=function(a){for(var b in vp)vp[b][0]==a&&g.zp(b)};
Kp=function(a){this.H=a;this.o=null;this.B=0;this.C=null;this.w=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.A=0;this.G=g.yp(window,"mousemove",(0,g.x)(this.P,this));this.J=Lo((0,g.x)(this.F,this),25)};
Aea=function(){};
Mp=function(a,b){return Lp(a,0,b)};
g.Np=function(a,b){return Lp(a,1,b)};
Op=function(){};
g.Pp=function(){return!!g.w("yt.scheduler.instance")};
Lp=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.Ko(a,c||0)};
g.Qp=function(a){if(!isNaN(a)){var b=g.w("yt.scheduler.instance.cancelJob");b?b(a):g.Mo(a)}};
Rp=function(a){var b=g.w("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Up=function(){var a={},b=void 0===a.QF?!0:a.QF;a=void 0===a.ZN?!1:a.ZN;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.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&Sp();g.yp(document,"keydown",Sp);g.yp(document,"keyup",Sp);g.yp(document,"mousedown",Sp);g.yp(document,"mouseup",Sp);b&&(a?g.yp(window,"touchmove",function(){Tp("touchmove",200)},{passive:!0}):(g.yp(window,"resize",function(){Tp("resize",200)}),g.yp(window,"scroll",function(){Tp("scroll",
200)})));
new Kp(function(){Tp("mouse",100)});
g.yp(document,"touchstart",Sp,{passive:!0});g.yp(document,"touchend",Sp,{passive:!0})}};
Tp=function(a,b){Vp[a]||(Vp[a]=!0,g.Np(function(){Sp();Vp[a]=!1},b))};
Sp=function(){null==g.w("_lact",window)&&(Up(),g.w("_lact",window));var a=(0,g.H)();g.Ia("_lact",a,window);-1==g.w("_fact",window)&&g.Ia("_fact",a,window);(a=g.w("ytglobal.ytUtilActivityCallback_"))&&a()};
Wp=function(){var a=g.w("_lact",window),b;null==a?b=-1:b=Math.max((0,g.H)()-a,0);return b};
g.Zp=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:Wp())};g.$o("log_sequence_info_on_gel_web")&&d.vi&&(a=e.context,b=d.vi,Xp[b]=b in Xp?Xp[b]+1:0,a.sequence={index:Xp[b],groupKey:b},d.xE&&delete Xp[d.vi]);(d=d.ik)?(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),ip[d.token]=a,d=hp("log_event",d.token)):d=hp("log_event");d.push(e);c&&(ep.log_event=new c);c=ag("web_logging_max_batch")||
100;e=(0,g.N)();d.length>=c?pp():10<=e-Yp&&(op(),Yp=e)};
$p=function(){return g.w("yt.ads.biscotti.lastId_")||""};
aq=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
bq=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=ed(e[0]||""),k=ed(e[1]||"");f in b?g.Ma(b[f])?lb(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};
cq=function(a){var b=[];g.Bb(a,function(c,d){var e=dd(d),f;g.Ma(c)?f=c:f=[c];(0,g.y)(f,function(k){""==k?b.push(e):b.push(e+"="+dd(k))})});
return b.join("&")};
dq=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return bq(a)};
eq=function(a){a=a.split(",");return a=a.map(function(b){return dq(b)})};
g.fq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),dq(1<a.length?a[1]:a[0])):{}};
g.hq=function(a,b){return gq(a,b||{},!0)};
iq=function(a,b){return gq(a,b||{},!1)};
gq=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=dq(e[1]||"");for(var f in b)if(c||!Kb(e,f))e[f]=b[f];return g.Ad(a,e)+d};
jq=function(a){if(!b)var b=window.location.href;var c=g.pd(1,a),d=g.qd(a);c&&d?(a=a.match(od),b=b.match(od),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.qd(b)==d&&(Number(g.pd(4,b))||null)==(Number(g.pd(4,a))||null):!0;return a};
kq=function(a){a||(a=document.location.href);a=g.pd(1,a);return null!==a&&"https"==a};
lq=function(a){a=g.qd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
oq=function(a){var b=mq;a=void 0===a?$p():a;b=Object.assign(nq(b),Bea(b));b.ca_type="image";a&&(b.bid=a);return b};
nq=function(a){var b={};b.dt=Cea;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?ii:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!ii.navigator&&"unknown"!==typeof ii.navigator.javaEnabled&&!!ii.navigator.javaEnabled&&ii.navigator.javaEnabled();ii.screen&&(b.u_h=ii.screen.height,b.u_w=ii.screen.width,b.u_ah=ii.screen.availHeight,b.u_aw=ii.screen.availWidth,b.u_cd=
ii.screen.colorDepth);ii.navigator&&ii.navigator.plugins&&(b.u_nplug=ii.navigator.plugins.length);ii.navigator&&ii.navigator.mimeTypes&&(b.u_nmime=ii.navigator.mimeTypes.length);return b};
Bea=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=Vh(!1,a.o.top);d={};e=new wn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=yba();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=Vda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=ji(a.u),d.wgl=!!ii.WebGLRenderingContext,d};
Dea=function(){if(!pq)return null;var a=pq();return"open"in a?a:null};
g.rq=function(a){switch(qq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
qq=function(a){return a&&"status"in a?a.status:-1};
Eea=function(a,b){b=void 0===b?{}:b;var c=jq(a),d=g.$o("web_ajax_ignore_global_headers_if_set"),e;for(e in sq){var f=g.L(sq[e]);!f||!c&&!tq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||tq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||tq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||tq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=cq(oq(void 0));
return b};
uq=function(a,b){var c=g.qd(a),d=nd(g.pd(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=dq(b),f={};(0,g.y)(Fea,function(k){e[k]&&(f[k]=e[k])});
return iq(a,f)};
tq=function(a,b){var c=g.L("CORS_HEADER_WHITELIST")||{},d=g.qd(a);return d?(c=c[d])?g.cb(c,b):!1:!0};
Gea=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=vq(a,b);var d=wq(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.Mo(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.ud&&b.ud.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.rA&&0<b.timeout&&(f=g.Ko(function(){e||(e=!0,g.Mo(f),b.rA.call(b.context||g.v))},b.timeout))}else g.xq(a,b)};
g.xq=function(a,b){var c=b.format||"JSON";a=vq(a,b);var d=wq(a,b),e=!1,f,k=yq(a,function(l){if(!e){e=!0;f&&g.Mo(f);var m=g.rq(l),n=null,p=400<=l.status&&500>l.status,t=500<=l.status&&600>l.status;if(m||p||t)n=Hea(c,l,b.sT);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.ud&&b.ud.call(p,l,n)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
b.Md&&0<b.timeout&&(f=g.Ko(function(){e||(e=!0,k.abort(),g.Mo(f),b.Md.call(b.context||g.v,k))},b.timeout));
return k};
vq=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.Ud;d&&(d[c]&&delete d[c],a=g.hq(a,d));return a};
wq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.yb,k=g.L("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.Cw||g.qd(a)&&!b.withCredentials&&g.qd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.yb&&b.yb[k]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=dq(e),g.Ub(e,f),e=b.dB&&"JSON"==b.dB?JSON.stringify(e):g.xd(e));f=e||f&&!g.Ob(f);!zq&&f&&"POST"!=b.method&&(zq=!0,g.M(Error("AJAX request with postData should use POST")));
return e};
Hea=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)?Iea(b):null)d={},(0,g.y)(b.getElementsByTagName("*"),function(e){d[e.tagName]=Jea(e)})}c&&Aq(d);
return d};
Aq=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||gc(b,"_html")?a[b]=g.Zc(g.$b("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Aq(a[b])};
Iea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Jea=function(a){var b="";(0,g.y)(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.Bq=function(a,b){b.method="POST";b.yb||(b.yb={});g.xq(a,b)};
yq=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Io(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Dea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.$o("debug_forward_web_query_parameters")&&(a=uq(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=Eea(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};
Cq=function(){return"INNERTUBE_API_KEY"in Do&&"INNERTUBE_API_VERSION"in Do};
Kea=function(){for(var a={},b=g.q(Object.entries(dq(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};
Dq=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),UF:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Mn:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Mk:g.L("INNERTUBE_CONTEXT_HL",void 0),Lk:g.L("INNERTUBE_CONTEXT_GL",void 0),Nn:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",VF:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)}};
Lea=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.ZD||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.w("gapi.auth.getToken")().qT:b=g.Om());b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.$o("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Fq=function(a,b,c,d,e){Eq.set(""+a,b,{ry:c,path:"/",domain:void 0===d?"youtube.com":d,wO:void 0===e?!1:e})};
Gq=function(a){return Eq.get(""+a,void 0)};
g.Hq=function(a,b,c){Eq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Iq=function(){var a;(a=g.ro("yt.innertube"))||(a=new mo("yt.innertube"),a=a.isAvailable()?a:null);this.o=a?new eo(a):null;this.u=document.domain||window.location.hostname};
g.Jq=function(a){this.o=null;a?this.o=a:Cq()&&(this.o=Dq())};
g.gp=function(a){a=a.o||Dq();a={client:{hl:a.Mk,gl:a.Lk,clientName:a.Mn,clientVersion:a.innertubeContextClientVersion,configInfo:a.UF}};var b=window.devicePixelRatio;b&&1!=b&&(a.client.screenDensityFloat=String(b));b=g.L("EXPERIMENTS_TOKEN","");""!==b&&(a.client.experimentsToken=b);b=ap();0<b.length&&(a.request={internalExperimentFlags:b});g.L("DELEGATED_SESSION_ID")&&!g.$o("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});g.$o("enable_device_forwarding_from_xhr_client")&&
(a.client=Object.assign(a.client,Kea()));return{context:a}};
g.mp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Jo(Error("Missing VISITOR_DATA when sending innertube request."));c={headers:{"Content-Type":"application/json"},method:"POST",yb:c,dB:"JSON",Md:function(){d.Md()},
rA:d.Md,onSuccess:function(k,l){if(d.onSuccess)d.onSuccess(l)},
ET:function(k){if(d.onSuccess)d.onSuccess(k)},
onError:function(k,l){if(d.onError)d.onError(l)},
DT:function(k){if(d.onError)d.onError(k)},
timeout:d.timeout,withCredentials:!0};var e="",f=a.o.Nn;f&&(e=f);f=Lea(a.o.VF||!1,e,d);Object.assign(c.headers,f);c.headers.Authorization&&!e&&(c.headers["x-origin"]=window.location.origin);a=g.hq(""+e+("/youtubei/"+a.o.innertubeApiVersion+"/"+b),{alt:"json",key:a.o.innertubeApiKey});try{g.$o("use_fetch_for_op_xhr")?Gea(a,c):g.Bq(a,c)}catch(k){if("InvalidAccessError"==k)g.Jo(Error("An extension is blocking network request."));else throw k;}};
Kq=function(a,b,c){c=void 0===c?{}:c;var d=g.Jq;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Jq==g.Jq&&(d=null);g.Zp(a,b,d,c)};
Lq=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.na(c))};
Mq=function(a){var b=g.w("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,!1,void 0):(b=Fo(),b.push([a,"ERROR",void 0,void 0,!1,void 0]),Eo("ERRORS",b))};
Nq=function(a){var b=g.w("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,!1,void 0):(b=Fo(),b.push([a,"WARNING",void 0,void 0,!1,void 0]),Eo("ERRORS",b))};
Oq=function(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length};
Pq=function(){this.Dd=!1;this.o=null};
Qq=function(a,b,c,d){if(d)try{a.o=new window.botguard.bg(b,c?function(){return c(b)}:g.Ja)}catch(e){Nq(e)}else{try{a.o=new window.botguard.bg(b)}catch(e){Nq(e)}c&&c(b)}};
Mea=function(a){var b=Rq;a=void 0===a?{}:a;return b.o?Promise.race([new Promise(function(c){setTimeout(c,2E3,null)}),
new Promise(function(c){b.o.invoke(c,!0,a)})]):Promise.resolve(null)};
Tq=function(){if("1"!=g.Jb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Sq=!0;"google_ad_status"in window?Eo("DCLKSTAT",1):Eo("DCLKSTAT",2)};
g.Wo("//static.doubleclick.net/instream/ad_status.js",a);Nea.push(g.Np(function(){if(!(Sq||"google_ad_status"in window)){if(a){var b=""+g.Ra(a);(b=Yo[b])&&g.So(b)}Sq=!0;Eo("DCLKSTAT",3)}},5E3))}};
g.Uq=function(a,b,c,d,e){e=void 0===e?"":e;a&&(c&&!g.hl()?a&&(a=g.wc(g.zc(a)),"about:invalid#zClosurez"===a?a="":(a=g.Uc(Wc(a)).toString(),a=dd(g.Mk(a))),g.hc(a)||(a=g.oe("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Yd(a).body.appendChild(a))):e?yq(a,b,"POST",e,d):g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?yq(a,b,"GET","",d):Oea(a,b)||Pea(a,b))};
Oea=function(a,b){if(!Go("web_use_beacon_api_for_ad_click_server_pings"))return!1;if(Go("use_sonic_library_for_v4_support"))try{var c=nd(g.pd(5,a));if(!c||!c.endsWith("/aclk")||!(new Raa({url:a})).o)return!1}catch(d){return g.Jo(Error("ClickUrl library throws error, url = "+a)),!1}else if(c=nd(g.pd(5,a)),!c||-1==c.indexOf("/aclk")||"1"!==Ed(a,"ae")||"1"!==Ed(a,"act"))return!1;return Vq(a)?(b&&b(),!0):!1};
Wq=function(a,b,c){c=void 0===c?"":c;Vq(a,c)?b&&b():g.Uq(a,b,void 0,void 0,c)};
Vq=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Pea=function(a,b){var c=new Image,d=""+Qea++;Xq[d]=c;c.onload=c.onerror=function(){b&&Xq[d]&&b();delete Xq[d]};
c.src=a};
Zq=function(a,b){var c=g.Rb(b),d;return Nf(new Bf(function(e,f){c.onSuccess=function(k){g.rq(k)?e(k):f(new Yq("Request failed, status="+qq(k),"net.badstatus",k))};
c.onError=function(k){f(new Yq("Unknown request error","net.unknown",k))};
c.Md=function(k){f(new Yq("Request timed out","net.timeout",k))};
d=g.xq(a,c)}),function(e){e instanceof Sf&&d.abort();
return Gf(e)})};
g.$q=function(a,b,c,d){function e(k,l,m){return Nf(k,function(n){return 0>=l||403===qq(n.bi)?Gf(new Yq("Request retried too many times","net.retryexhausted",n.bi)):f(m).then(function(){return e(Zq(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(k){return new Bf(function(l){setTimeout(l,k)})}
return e(Zq(a,b),c-1,d)};
Yq=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.bi=c;this.name="PromiseAjaxError"};
ar=function(){this.u=0;this.o=null};
br=function(a){var b=new ar;a=void 0===a?null:a;b.u=2;b.o=void 0===a?null:a;return b};
cr=function(a){var b=new ar;a=void 0===a?null:a;b.u=1;b.o=void 0===a?null:a;return b};
er=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof dr;this.isTimeout=a instanceof Yq&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Sf};
dr=function(){Va.call(this,"Biscotti ID is missing from server")};
Rea=function(){if("1"===g.Jb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Gf(Error("Biscotti ID is not available in private embed mode"));fr||(fr=Nf(Zq("//googleads.g.doubleclick.net/pagead/id",gr).then(hr),function(a){return ir(2,a)}));
return fr};
hr=function(a){a=a.responseText;if(!fc(a,")]}'"))throw new dr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new dr;a=a.id;aq(a);fr=cr(a);jr(18E5,2);return a};
ir=function(a,b){var c=new er(b);aq("");fr=br(c);0<a&&jr(12E4,a-1);throw c;};
jr=function(a,b){g.Ko(function(){Nf(Zq("//googleads.g.doubleclick.net/pagead/id",gr).then(hr,function(c){return ir(b,c)}),g.Ja)},a)};
kr=function(){try{var a=g.w("yt.ads.biscotti.getId_");return a?a():Rea()}catch(b){return Gf(b)}};
lr=function(a){Sea||Kq("adsClientStateChange",{adsClientEvent:{eventType:a}})};
nr=function(){this.o=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=Gq(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])&&(mr[d]=c.toString())}}};
pr=function(a,b){return!!((or("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
qr=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
rr=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
or=function(a){a=void 0!==mr[a]?mr[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Vea=function(){var a=void 0===a?window.location.href:a;if(g.$o("kevlar_disable_theme_param"))return null;var b=nd(g.pd(5,a));if(Tea(b))return"USER_INTERFACE_THEME_DARK";a=g.fq(a).theme;return Uea.get(a)||null};
Tea=function(a){var b=Wea.map(function(c){return c.toLowerCase()});
return!g.$o("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:Xea.hasOwnProperty(a)&&!g.$o("desktop_themeable_vulcan")};
sr=function(a){a.requestFullscreen?a.requestFullscreen(void 0):a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitEnterFullscreen&&a.webkitEnterFullscreen()};
vr=function(a){var b;tr()?ur()==a&&(b=document):b=a;b&&(a=sp(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
wr=function(a){return g.$a(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Yea=function(){var a=document;return g.$a(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
tr=function(){return!!sp(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
ur=function(a){a=void 0===a?!1:a;var b=sp(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.O=function(a){g.A.call(this);this.Z=[];this.yd=a||this};
xr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.L(b,c[e],d)};
g.yr=function(a){for(;a.Z.length;){var b=a.Z.pop();b.target.removeEventListener(b.name,b.Va)}};
g.P=function(a){a=void 0===a?!1:a;g.A.call(this);this.kc=new g.Zn(a);g.C(this,this.kc)};
zr=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Ar=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Cr=function(a,b,c,d){g.P.call(this);this.w=!!b;this.C=a;this.H=c||a;this.G=!!d;this.o=new g.O(this);g.C(this,this.o);this.B=this.F=null;this.A=this.u=!1;b&&(g.ke&&a.setAttribute("draggable","true"),a.style.touchAction="none");Br(this)};
Dr=function(a,b,c){a.o.L(a.H,b,c,void 0,!a.w)};
Br=function(a){a.B=null;a.F=null;Dr(a,Er("over"),a.Ey);Dr(a,"touchstart",a.ks);a.w&&Dr(a,Er("down"),a.KJ)};
Fr=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};
Er=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Gr=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Rb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Rb(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||{}};
Zea=function(a){a instanceof Gr||(a=new Gr(a));return a};
$ea=function(){var a=Error("Child VE logged with no data"),b=void 0;b=void 0===b?{}:b;b.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);b=b||{};var c="WARNING";c=void 0===c?"ERROR":c;var d=window&&window.yterr||!1;if(a&&d&&!(5<=Hr)&&(g.$o("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;var 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=b,p=0;p<l.length&&!(l[p]&&(f+=Oq(p,l[p],m,n),500<f));p++);else if("object"===typeof l)for(n in n=void 0,p=b,l){if(l[n]&&(f+=Oq(n,l[n],m,p),500<f))break}else b[m]=String(JSON.stringify(l)).substring(0,500),f+=b[m].length;else b[m]=String(JSON.stringify(l)).substring(0,500),f+=b[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),b[f]=n,m+=f.length+n.length,500<m))break}else b.params=String(JSON.stringify(l)).substr(0,500);a=aba(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.Oa(window.yterr)&&
(a.params=b,window.yterr(a));if(!(Ir.has(a.message)||0<=d.indexOf("/YouTubeCenter.js")||0<=d.indexOf("/mytube.js"))){g.$o("kevlar_gel_error_routing")&&(e=c,m={level:"ERROR_LEVEL_UNKNOWN"},"ERROR"===e?m.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(m.level="ERROR_LEVEL_WARNNING"),Kq("clientError",{errorMetadata:{pageUrl:window.location.href},stackTrace:{isObfuscated:!0,browserStackInfo:l},logMessage:m}));c={Ud:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:k,level:c,"client.name":b.name},
yb:{url:g.L("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};b.version&&(c["client.version"]=b.version);if(c.yb){d&&(c.yb.stack=d);d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,c.yb["client."+e]=b[e];if(b=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,c.yb[e]=b[e]}g.xq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",c);Ir.add(a.message);Hr++}}};
Yf=function(){};
Jr=function(a){this.Hd=a};
g.Kr=function(a){return new Jr({trackingParams:a})};
bfa=function(a){var b=afa++;return new Jr({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
g.Lr=function(a){var b={};void 0!==a.Hd.trackingParams?b.trackingParams=a.Hd.trackingParams:(b.veType=a.Hd.veType,null!=a.Hd.veCounter&&(b.veCounter=a.Hd.veCounter),null!=a.Hd.elementIndex&&(b.elementIndex=a.Hd.elementIndex));void 0!==a.Hd.dataElement&&(b.dataElement=g.Lr(a.Hd.dataElement));void 0!==a.Hd.youtubeData&&(b.youtubeData=a.Hd.youtubeData);return b};
Nr=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(Mr)for(b=1,c=0;c<Mr.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Mr.charCodeAt(c),b++;return a};
Or=function(){for(var a=Nr(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Pr=function(){return(0,g.Fc)(Nr(),function(a){return(a&15).toString(16)}).join("")};
Qr=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Rr=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Sr=function(a){return g.L(Rr(void 0===a?0:a),void 0)};
g.Tr=function(){var a=Sr(0),b;a?b=new Jr({veType:a,youtubeData:void 0}):b=null;return b};
Ur=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},Eo("csn-to-ctt-auth-info",a));return a};
g.Vr=function(a){a=void 0===a?0:a;var b=g.L(Qr(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.$o("kevlar_client_side_screens")||g.$o("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
cfa=function(a,b,c){var d=Ur();(c=g.Vr(c))&&delete d[c];b&&(d[a]=b)};
g.Wr=function(a){return Ur()[a]};
Yr=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(Qr(c))||b!==g.L(Rr(c)))cfa(a,d,c),Eo(Qr(c),a),Eo(Rr(c),b),0==c&&(b=function(){setTimeout(function(){a&&g.Zp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Xr,clientScreenNonce:a},g.Jq)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b())};
Zr=function(a,b){this.version=a;this.args=b};
$r=function(a,b){this.topic=a;this.o=b};
bs=function(a,b){var c=as();c&&c.publish.call(c,a.toString(),a,b)};
dfa=function(a,b,c){var d=as();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.w("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(cs[e])try{if(k&&a instanceof $r&&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.yh){var p=new m;m.yh=p.version}var t=m.yh}catch(u){}if(!t||n.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.kb(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)}},ds[a.toString()]?g.Pp()?g.Np(l):g.Ko(l,0):l())});
cs[e]=!0;es[a.toString()]||(es[a.toString()]=[]);es[a.toString()].push(e);return e};
gs=function(a,b,c){var d=dfa(a,function(e){b.apply(c,arguments);fs(d)},c);
return d};
fs=function(a){var b=as();b&&("number"===typeof a&&(a=[a]),(0,g.y)(a,function(c){b.unsubscribeByKey(c);delete cs[c]}))};
as=function(){return g.w("ytPubsub2Pubsub2Instance")};
hs=function(a){Zr.call(this,1,arguments);this.csn=a};
g.js=function(a,b,c){b={csn:a,parentVe:g.Lr(b),childVes:(0,g.Fc)(c,function(e){return g.Lr(e)})};
c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=g.Lr(d.value),(g.Ob(d)||!d.trackingParams&&!d.veType)&&$ea();c={ik:g.Wr(a),vi:a};"UNDEFINED_CSN"==a?g.is("visualElementAttached",b,c):g.Zp("visualElementAttached",b,g.Jq,c)};
g.ks=function(a,b){var c={csn:a,ve:g.Lr(b),eventType:1},d={ik:g.Wr(a),vi:a};"UNDEFINED_CSN"==a?g.is("visualElementShown",c,d):g.Zp("visualElementShown",c,g.Jq,d)};
g.ls=function(a,b){var c={csn:a,ve:g.Lr(b),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d={ik:g.Wr(a),vi:a};"UNDEFINED_CSN"==a?g.is("visualElementGestured",c,d):g.Zp("visualElementGestured",c,g.Jq,d)};
g.is=function(a,b,c){ms.push({TN:a,payload:b,options:c});ns||(ns=gs(efa,ffa))};
ffa=function(a){if(ms){for(var b=g.q(ms),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,g.Zp(c.TN,c.payload,null,c.options));ms.length=0}ns=0};
g.qs=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.H)()+1E3*d:0;if((d=d?(0,g.os)():(0,g.ps)())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.rs=function(a){var b=(0,g.ps)(),c=(0,g.os)();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.ts=function(){return g.rs("yt-remote-session-screen-id")};
ws=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!us(a)||c.some(function(e){return!us(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())vs(a,d.value);return a};
vs=function(a,b){for(var c in b)if(us(b[c])){if(c in a&&!us(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});vs(a[c],b[c])}else if(xs(b[c])){if(c in a&&!xs(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);ys(a[c],b[c])}else a[c]=b[c];return a};
ys=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,us(d)?a.push(vs({},d)):xs(d)?a.push(ys([],d)):a.push(d);return a};
us=function(a){return"object"===typeof a&&!Array.isArray(a)};
xs=function(a){return"object"===typeof a&&Array.isArray(a)};
gfa=function(){zs=(0,g.N)()};
As=function(a){var b=g.L("BG_I",null),c=g.L("BG_IU",null),d=g.L("BG_P",null);var e=void 0===e?!1:e;d&&(Rq.Dd?0:!zs||72E5<(0,g.N)()-zs)&&(b||c)&&Rq.initialize(b,c,d,gfa,a,e)};
Bs=function(a){a=void 0===a?{}:a;var b=Rq;a=void 0===a?{}:a;return b.o?b.o.invoke(void 0,void 0,a):null};
hfa=function(a){a=void 0===a?{}:a;return Mea(a)};
Cs=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.A=this.w=0;this.B=null;this.o=0;a.map(function(c){return b.append(c)})};
Ds=function(a,b){var c=g.Xa(a.u);return c&&c.buffer==b.buffer&&c.byteOffset+c.length==b.byteOffset};
Es=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
Fs=function(a){a.B=null;a.w=0;a.A=0};
Gs=function(a,b){if(!(b>=a.A&&b<a.A+a.u[a.w].length)){for(b<a.A&&Fs(a);a.A+a.u[a.w].length<=b&&a.w<a.u.length;)a.A+=a.u[a.w].length,a.w+=1;a.B=null}};
Hs=function(a){if(!a.B){var b=a.u[a.w];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
Is=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.o)return new DataView(new ArrayBuffer(0));0>c&&(c=a.o-b);Gs(a,b);if(!(b-a.A+c<=a.u[a.w].length)){var d=a.w,e=a.A;Gs(a,b+c-1);e=new Uint8Array(a.A+a.u[a.w].length-e);for(var f=0,k=d;k<=a.w;k++)e.set(a.u[k],f),f+=a.u[k].length;a.u.splice(d,a.w-d+1,e);Fs(a);Gs(a,b)}d=a.u[a.w];return new DataView(d.buffer,d.byteOffset+b-a.A,c)};
Js=function(a,b,c){a=Is(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Ks=function(a,b,c){a=Js(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);b.set(a);return b};
Ms=function(a,b){Gs(a,b);return a.u[a.w][b-a.A]};
Ns=function(a,b){Gs(a,b);return b-a.A+4<=a.u[a.w].length?Hs(a).getUint32(b-a.A):256*(256*(256*Ms(a,b)+Ms(a,b+1))+Ms(a,b+2))+Ms(a,b+3)};
Os=function(){return!("function"!=typeof window.fetch||!window.ReadableStream)};
Ps=function(a){if(a.xk())return!1;a=a.Wc("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
Rs=function(a){a=a.split("");Qs.RA(a,2);Qs.Vg(a,30);Qs.CO(a,2);Qs.Vg(a,30);Qs.Vg(a,46);Qs.RA(a,70);Qs.Vg(a,35);return a.join("")};
Ss=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Jo(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Us=function(a,b,c){return b&&b.test(a)||Ts&&c&&c.test(a)?!0:!1};
Ws=function(a){return(a=Vs&&Vs.exec(a))?a[0]:""};
Xs=function(a){var b=void 0===b?!1:b;return Ss(Us(a,ifa,null),a,b,"Trusted Stream URL")};
g.Ys=function(a){var b=void 0===b?!1:b;return Ss(Us(a,jfa,null),a,b,"Trusted Image URL")};
Zs=function(a){var b=void 0===b?!1:b;return Ss(Us(a,kfa,null),a,b,"Trusted Promoted Video Domain URL")};
$s=function(a,b){b=void 0===b?!1:b;return Ss(Us(a,lfa,null),a,b,"Captions URL")};
at=function(a){a=new g.Sm(a);g.Tm(a,document.location.protocol);g.Um(a,document.location.hostname);document.location.port&&g.Vm(a,document.location.port);return a.toString()};
bt=function(a){a=new g.Sm(a);g.Tm(a,document.location.protocol);return a.toString()};
ct=function(a){this.A=a;this.C=this.u=this.B="";this.o={};this.w=""};
dt=function(a){a.w||(a.w=mfa(a));return a.w};
ft=function(a){et(a);return a.C};
gt=function(a){et(a);return"local"==a.B};
ht=function(a){et(a);return Eb(a.o,function(b){return null!==b})};
jt=function(a){et(a);if("/videoplayback"!=a.u){var b=a.clone();b.set("playerfallback","1");return b}var c=dt(a);b=new g.Sm(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.Um(b,"r"+d+"---"+a[1]+c),b=new ct(b.toString()),b.set("fallback_count","1"),b;d=b.o.match("\\.a1\\.googlevideo\\.com$");b.o.match("\\.googlevideo\\.com$")?(it?g.Um(b,"www.youtube.com"):g.Um(b,"redirector.googlevideo.com"),c=b.toString()):b.o.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Um(b,"www.youtube.com"),c=b.toString()):c=at(c);b=new ct(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
et=function(a){if(a.A){if(!Xs(a.A)&&!a.A.startsWith("local"))throw Error("Untrusted URL: "+a.A);var b=g.$m(a.A);a.B=b.A;a.C=b.o+(null!=b.B?":"+b.B:"");var c=b.u;if(0==c.indexOf("/videoplayback"))a.u="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.u=c.substr(0,e),c=c.substr(e+1)):(a.u=c,c="")}else a.u=c,c="";d=a.o;a.o=kt(c);g.Ta(a.o,lt(b.w.toString()));g.Ta(a.o,d);"index.m3u8"==a.o.file&&(delete a.o.file,a.u+="/file/index.m3u8");
a.A="";a.w=""}};
mfa=function(a){et(a);var b=a.B+(a.B?"://":"//")+a.C+a.u;if(ht(a)){var c=[];g.Bb(a.o,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
kt=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&mt(c,a[b],a[b+1]);return c};
lt=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?mt(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
mt=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};
nt=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.Ma=a;this.u=e;this.startTime=b;this.o=k||0;this.range=f||null;this.pending=l||!1};
g.ot=function(){this.segments=[]};
pt=function(a,b){if(b>a.jb())a.segments=[];else{var c=g.Ya(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
qt=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};
rt=function(a){var b=a.data.getUint8(a.offset+a.o);a.o+=1;return b};
tt=function(a){var b=a.data.getUint16(a.offset+a.o);a.o+=2;return b};
ut=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
vt=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
wt=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};
xt=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)};
zt=function(a){this.data=new DataView(new ArrayBuffer(a));this.o=0};
At=function(a,b){a.data.setInt32(a.o,b);a.o+=4};
Bt=function(a,b){for(var c=0;c+4<=b.size;)At(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.o++,b.data.getUint8(b.offset+c++))};
Ct=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};
Et=function(a,b,c){this.o=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.A=void 0===c?null:c;this.u=Dt(this,"Sequence-Number");this.F=Dt(this,"Segment-Count");this.G=this.o["Segment-Durations-Ms"]||"";this.ingestionTime=Dt(this,"Ingestion-Walltime-Us")/1E6;this.w=(Dt(this,"First-Frame-Time-Us")+Dt(this,"First-Frame-Uncertainty-Us"))/1E6;this.je=Dt(this,"Target-Duration-Us")/1E6;this.C="T"==this.o["Stream-Finished"];this.B="T"==this.o.Streamable;this.cryptoPeriodIndex=Dt(this,
"Crypto-Period-Index")};
Gt=function(a){var b;a.o["Cuepoint-Type"]?b=new Ct(Ft?parseFloat(a.o["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(a.o["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(a.o["Cuepoint-Total-Duration-Sec"])||0,a.o["Cuepoint-Context"],a.o["Cuepoint-Identifier"]||"",nfa[a.o["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(a.o["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Ht=function(a){return parseInt(a.o["Start-Media-Time-Us"],10)/1E6||0};
Dt=function(a,b){return parseInt(a.o[b],10)||0};
It=function(a){a.o["Stitched-Video-Id"]&&a.o["Stitched-Video-Id"].split(",")};
Jt=function(a){var b=[];if(a.o["Stitched-Video-Duration-Us"]){a=g.q(a.o["Stitched-Video-Duration-Us"].split(",").slice(0,-1));for(var c=a.next();!c.done;c=a.next())b.push((parseInt(c.value,10)||0)/1E6)}};
Kt=function(a){var b=[];if(a.o["Stitched-Video-Start-Frame-Index"]){a=g.q(a.o["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var c=a.next();!c.done;c=a.next())b.push(parseInt(c.value,10)||0)}};
Lt=function(a){return!!(a.o["Stitched-Video-Id"]||a.o["Stitched-Video-Duration-Us"]||a.o["Stitched-Video-Start-Frame-Index"])};
ofa=function(a,b){this.o=a;this.duration=b};
Mt=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)};
Nt=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};
qfa=function(a,b){var c=Ot(a,0,1836019558);if(!c)return null;var d=Ot(a,c.dataOffset,1835427940),e=Ot(a,c.dataOffset,1953653094),f=pfa(a,c.dataOffset);if(!d||!e)return null;var k=Ot(a,e.dataOffset,1952868452),l=Ot(a,e.dataOffset,1953658222),m=Ot(a,e.dataOffset,1952867444);if(!k||!l||!m)return null;var n=Ot(a,e.dataOffset,1935763823),p=Ot(a,e.dataOffset,1935763834),t=0;if(n){t=ut(n);var u=ut(n);if(0!=t||1!=u)return null;t=ut(n)}u=Ot(a,e.dataOffset,1935828848);e=Ot(a,e.dataOffset,1936158820);var z=
ut(k),B=ut(k),D=z&2,E=z&1?wt(k):0,G=D?ut(k):0,F=z&8?ut(k):0,ka=z&16?ut(k):0,pa=z&32?ut(k):0;z=ut(l);var bc=z&1,Jc=z&4,vb=z&256;k=z&512;var Za=z&1024,xc=z&2048;z=ut(l);var jf=bc?ut(l):0,kf=Jc?ut(l):0;bc=[];for(var Ch=[],lf=[],Tj=[],Nl=0,zd=0,Ls=0;Ls<z;Ls++){var lma=vb?ut(l):F;k&&bc.push(ut(l));var qo=pa;Jc&&0==Ls?qo=kf:Za&&(qo=ut(l));Ch.push(qo);qo=xc?ut(l):0;0==Ls&&(Nl=qo);lf.push(zd+qo);Tj.push(Ls);zd+=lma}g.tb(Tj,function(eJ,fJ){return lf[eJ]-lf[fJ]});
l=[];for(zd=0;zd<z;zd++)l[Tj[zd]]=zd;zd=D?4:0;Jc=16*z;vb=(0,g.vi)(f,function(eJ,fJ){return eJ+fJ.size},0);
Za=68+zd+m.size+Jc+(n?n.size:0)+(p?p.size:0)+(u?u.size:0)+(e?e.size:0)+vb;pa=Za-c.size;F=new zt(Za+c.offset);c.offset&&F.Ig(a,0,c.offset);At(F,Za);At(F,1836019558);Bt(F,d);At(F,Za-24-vb);At(F,1953653094);At(F,16+zd);At(F,1952868452);At(F,131072|(D?2:0));At(F,B);D&&At(F,G);Bt(F,m);At(F,20+Jc);At(F,1953658222);At(F,16781057);At(F,z);At(F,E+jf+pa);for(c=zd=0;c<z;c++)m=l[c],d=Math.round(b*m/z),m=Math.round(b*(m+1)/z)-d,d=d-zd+Nl,At(F,m),At(F,k?bc[c]:ka),At(F,Ch[c]),At(F,d),zd+=m;n&&(At(F,n.size),At(F,
1935763823),At(F,0),At(F,1),At(F,t+pa));p&&Bt(F,p);u&&Bt(F,u);e&&Bt(F,e);f=g.q(f);for(n=f.next();!n.done;n=f.next())Bt(F,n.value);return F.data.buffer};
Qt=function(a){if(a=g.Pt(a,0,1953658222)){a.skip(1);var b=rt(a)<<16|tt(a),c=b&1,d=b&4;if(b&256){var e=b&512,f=b&1024;b&=2048;var k=vt(a);2>k||(c&&a.skip(4),d&&a.skip(4),c=vt(a),a.skip((k-1)*(4+(e?4:0)+(f?4:0)+(b?4:0))-4),a.data.setUint32(a.offset+a.o,c))}}};
Rt=function(a,b){var c=g.Pt(a,0,1952868452),d=g.Pt(a,0,1953658222);if(c&&d){c.skip(1);var e=rt(c)<<16|tt(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.o;var f=vt(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=rt(d)<<16|tt(d);if(c&256){e=c&1;f=c&4;var k=c&512,l=c&1024,m=c&2048;c=vt(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=vt(d),d.data.setUint32(d.offset+k,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
St=function(a,b){var c=Ot(a.data,a.dataOffset,1952868452),d=Ot(a.data,a.dataOffset,1953658222),e=ut(c);ut(c);e&2&&ut(c);c=e&8?ut(c):0;var f=ut(d),k=f&1;e=f&4;var l=f&256,m=f&512,n=f&1024;f&=2048;var p=vt(d);k&&ut(d);e&&ut(d);for(var t=k=0;t<p;t++){var u=l?ut(d):c;m&&ut(d);e&&0==t||!n||ut(d);f&&ut(d);k+=u}return k/b};
Ut=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Pt(a,0,1836476516))?Tt(a):NaN};
rfa=function(a){var b=g.Pt(a,0,1937011556);if(!b)return null;b=Ot(a,b.dataOffset+8,1635148593);if(!b)return null;var c=Ot(a,b.dataOffset+78,1936995172),d=Ot(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),rt(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=Ot(a,d.dataOffset,1886547818)){var k=Ot(a,d.dataOffset,1886546020),l=Ot(a,d.dataOffset,2037673328);if(!l&&(l=Ot(a,d.dataOffset,1836279920),!l))return null;k&&(k.skip(4),c=
ut(k)/65536,f=ut(k)/65536,e=ut(k)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Mt(b,c,f,e,a)}return null};
Ot=function(a,b,c){for(;Vt(a,b);){var d=Wt(a,b);if(d.type==c)return d;b+=d.size}return null};
g.Pt=function(a,b,c){for(;Vt(a,b);){var d=Wt(a,b);if(d.type==c)return d;b=Xt(d.type)?b+8:b+d.size}return null};
Yt=function(a,b){if(a.data.getUint8(a.dataOffset)){var c=a.data,d=a.dataOffset+4;c.setUint32(d,Math.floor(b/4294967296));c.setUint32(d+4,b&4294967295)}else a.data.setUint32(a.dataOffset+4,b)};
Zt=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)};
Wt=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new qt(a,b,c,d)};
Tt=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
$t=function(a){a=new qt(a.data,a.offset,a.size,a.type,a.u);var b=rt(a);a.skip(7);var c=vt(a);if(0==b){b=vt(a);var d=vt(a)}else b=wt(a),d=wt(a);a.skip(2);for(var e=tt(a),f=[],k=[],l=0;l<e;l++){var m=vt(a);f.push(m);k.push(vt(a));a.skip(4)}return{xp:c,uE:b,Jw:d,Mt:f,em:k}};
au=function(a){return a.data.getUint32(a.dataOffset+8)};
Vt=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};
Xt=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
bu=function(a){a.skip(4);var b=xt(a,0),c=xt(a,0),d=vt(a),e=vt(a),f=vt(a),k=vt(a),l=xt(a);return{uO:b,value:c,xp:d,GT:e,uT:f,id:k,ty:l,offset:a.offset}};
cu=function(a){return(a=Ot(a,0,1836019558))?a.offset+a.size:null};
du=function(a,b){for(var c=Ot(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=Ot(a,c.offset+c.size,b)}};
eu=function(a){for(var b=g.Pt(a,0,1701082227);b;){var c=b;c.type=1936419184;c.data.setUint32(c.offset+4,1936419184);b=g.Pt(a,b.offset+b.size,1701082227)}};
pfa=function(a,b){for(var c=[];Vt(a,b);){var d=Wt(a,b);1886614376==d.type&&c.push(d);b+=d.size}return c};
fu=function(a,b){for(var c=0,d=[];Vt(a,c);){var e=Wt(a,c);e.type==b&&d.push(e);c=Xt(e.type)?c+8:c+e.size}return d};
sfa=function(a,b){var c=g.Pt(a,0,1937011556),d=g.Pt(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.Pt(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 zt(a.byteLength+d);k.Ig(a,0,c.offset+12);At(k,2);k.Ig(a,c.offset+16,c.size-16);k.Ig(e,e.byteOffset+f.dataOffset+8,d);k.Ig(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.Pt(a,0,e.value),k.data.setUint32(e.offset,e.size+d);d=g.Pt(k.data,0,1953654136);k.data.setUint32(d.offset+16,2);return k.data};
gu=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
hu=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return String.fromCharCode.apply(null,b)};
iu=function(a,b){this.u=a;this.o=0;this.w=b||0};
ju=function(a){return a.o>=a.u.byteLength};
qu=function(a,b,c){var d=new iu(c);if(!ku(d,a))return!1;d=lu(d);if(!mu(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=nu(d);var e=ou(d,!0);d=a+(nu(d)-b)+e;d=9<d?pu(d-9,8):pu(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
tu=function(a){ru(new iu(a));qu([408125543,374648427,174,224],21936,a)};
uu=function(a){ru(new iu(a));qu([408125543,374648427,174,224],30320,a)&&qu([408125543,374648427,174,224],21432,a)};
vu=function(a){var b=new iu(a);ku(b,[408125543,374648427,174,224,21936,21937])&&(b=nu(b),129==a.getUint8(b)&&1==a.getUint8(b+1)&&a.setUint8(b+1,9))};
tfa=function(a){var b=new iu(a);ru(b);if(ku(b,[408125543,374648427,174,224]))b=lu(b);else return null;for(var c=a=null;!ju(b);){var d=ou(b,!1);if(21432==d)switch(wu(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=lu(b):xu(b)}if(!c)return null;for(var e,f=d=b=null;!ju(c);)switch(ou(c,!1)){case 30321:if(3!=wu(c))return null;break;case 30324:b=yu(c);break;case 30323:f=yu(c);break;case 30325:d=yu(c);break;case 30322:e=ou(c,!0);e=zu(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:xu(c)}return e?new Mt(a,b,f,d,e):null};
lu=function(a){var b=ou(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 iu(c,a.w+a.o);a.o+=b;return c};
wu=function(a){for(var b=ou(a,!0),c=Au(a),d=1;d<b;d++)c=256*c+Au(a);return c};
yu=function(a){var b=ou(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};
Bu=function(a){var b=ou(a,!0);return hu(zu(a,b))};
Au=function(a){return a.u.getUint8(a.o++)};
ou=function(a,b){var c=Au(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Au(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Au(a),d*=128;return b?c-d:c};
xu=function(a){var b=ou(a,!0);a.o+=b};
nu=function(a){return a.w+a.o};
ru=function(a){var b=a.o;a.o=0;var c=!1;try{mu(a,440786851)&&(a.o=0,mu(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.o=0,c=!1,g.Jo(d);else throw d;}a.o=b;return c};
ufa=function(a){if(!mu(a,440786851,!0))return null;var b=a.o;ou(a,!1);var c=ou(a,!0)+a.o-b;a.o=b+c;if(!mu(a,408125543,!1))return null;ou(a,!0);if(!mu(a,357149030,!0))return null;var d=a.o;ou(a,!1);var e=ou(a,!0)+a.o-d;a.o=d+e;if(!mu(a,374648427,!0))return null;var f=a.o;ou(a,!1);var k=ou(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};
Cu=function(a){if(!ku(a,[408125543,374648427,174,28032,25152,20533,18402]))return null;var b=ou(a,!0);return 16!=b?null:zu(a,b)};
Du=function(a){var b=a.o,c={mu:1E6,nu:1E9,duration:0,Rt:0,Rl:0};if(!mu(a,408125543))return a.o=b,null;c.Rt=ou(a,!0);c.Rl=nu(a);if(mu(a,357149030))for(var d=lu(a);!ju(d);){var e=ou(d,!1);2807729==e?c.mu=wu(d):2807730==e?c.nu=wu(d):17545==e?c.duration=yu(d):xu(d)}else return a.o=b,null;a.o=b;return c};
Fu=function(a,b,c){var d=a.o,e=[];if(!mu(a,475249515))return a.o=d,null;for(var f=lu(a);mu(f,187);){var k=lu(f);if(mu(k,179)){var l=wu(k);if(mu(k,183)){k=lu(k);for(var m=b;mu(k,241);)m=wu(k)+b;e.push({Jh:m,en:l})}}}if(0<e.length&&c==e[0].Jh)for(Eu&&g.Jo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].Jh+=1;a.o=d;return e};
Gu=function(a){var b=a.o;a.o=0;var c=1E6;ku(a,[408125543,357149030,2807729])&&(c=wu(a));a.o=b;return c};
vfa=function(a,b){var c=a.o;a.o=0;if(!Hu(a)||!mu(a,160))return a.o=c,NaN;ou(a,!0);var d=a.o;if(!mu(a,161))return a.o=c,NaN;ou(a,!0);Au(a);var e=Au(a)<<8|Au(a);a.o=d;if(!mu(a,155))return a.o=c,NaN;d=wu(a);a.o=c;return(e+d)*b/1E9};
Hu=function(a){if(!Iu(a)||!mu(a,524531317))return!1;ou(a,!0);return!0};
Iu=function(a){if(ru(a)){if(!mu(a,408125543))return!1;ou(a,!0)}return!0};
ku=function(a,b){for(var c=0;c<b.length;c++){if(!mu(a,b[c]))return!1;c!=b.length-1&&ou(a,!0)}return!0};
mu=function(a,b,c){c=void 0===c?!1:c;if(ju(a))return!1;for(var d=a.o;ou(a,!1)!=b;)if(xu(a),d=a.o,ju(a))return!1;c&&(a.o=d);return!0};
pu=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};
zu=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.o,b);a.o+=b;return c};
Ju=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Ku=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 Ju(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Lu=function(a,b){return new Ju(a,a+b-1)};
Nu=function(a,b,c,d,e,f,k,l,m,n,p){this.o=b;this.range=c;this.type=a;this.G="";this.u=-1;this.G=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.F=this.startTime+this.duration*this.w/this.range.length,this.H=this.duration*this.Oa/this.range.length,this.B=this.F+this.H):Mu(this);this.J=[]};
Mu=function(a){a.F=a.startTime;a.H=a.duration;a.B=a.F+a.H};
wfa=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};
Ou=function(a){return 1==a.type||2==a.type};
Pu=function(a){return 3==a.type||6==a.type};
Qu=function(a,b,c){return c||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};
Ru=function(a,b){return Qu(a,b)||Rd(a.B,b.F)||a.u+1==b.u&&0==b.w&&a.A?!0:!1};
Su=function(a){return a.u+(a.A?1:0)};
xfa=function(a){1==a.length||(0,g.ui)(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Ju(a[0].range.start+a[0].w,b.range.start+b.w+b.Oa-1)};
Uu=function(a){a=Tu(a);var b="";g.Bb(a,function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
Tu=function(a){var b={};b.itag=Vu(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.F.toFixed(1)+"-"+(a.F+a.H).toFixed(1);b.off=String(a.w);b.len=String(a.Oa);a.A&&(b.end="1");a.C&&(b.eos="1");return b};
Wu=function(a,b,c,d){return new Nu(a.type,a.o,a.range,"reslice_"+a.G,a.u,a.startTime,a.duration,b,c,d&&a.C,d)};
Xu=function(a,b){var c=b.u;a.G="updateWithEmsg";a.u=c;b.C&&(a.C=b.C)};
Yu=function(a,b){var c=b.Ma;a.G="updateWithSegmentInfo";a.u=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Mu(a)};
Zu=function(a,b,c){this.info=a;this.o=b instanceof Cs?b:new Cs([b]);this.w=c;this.u=null;this.A=-1};
$u=function(a){return Is(a.o)};
av=function(a,b){if(1!=a.info.o.info.containerType||0!=a.info.w||!a.info.A)return!0;for(var c=$u(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};
bv=function(a,b){b=Math.min(b,a.info.Oa);var c=a.o.split(b),d=c.Fx;c=c.vp;var e=new Nu(a.info.type,a.info.o,a.info.range,a.info.G,a.info.u,a.info.startTime,a.info.duration,a.info.w,b,!1,!1);d=new Zu(e,d,a.w);e=new Nu(a.info.type,a.info.o,a.info.range,a.info.G,a.info.u,a.info.startTime,a.info.duration,a.info.w+b,a.info.Oa-b,a.info.C,a.info.A);c=new Zu(e,c,!1);return[d,c]};
cv=function(a,b,c){var d;if(!(d=!Qu(a.info,b.info)||a.info.A)){if(c=void 0===c?!1:c)c=b.o,c=!(c.u.length?Ds(a.o,c.u[0]):1);d=c}if(d)return!1;c=a.info;d=b.info;c.Oa+=d.Oa;c.range&&(c.H+=d.H);c.B=d.B;c.A=d.A;c.C=c.C||d.C;Es(a.o,b.o);a.u=b.u||a.u;if(b=a.info.range)b=a.o,b=!(1==b.u.length&&0<b.u[0].byteOffset);b&&(a.w=!1);return!0};
ev=function(a){if(-1!=a.A)return a.A;if(a.u&&Ht(a.u))return a.A=Ht(a.u),a.A;if(g.dv(a.info.o.info)){var b=$u(a);for(var c=a.info.o.o,d=NaN,e=NaN,f=0;Vt(b,f);){var k=Wt(b,f);1936286840==k.type?e=au(k):1836476516==k.type?e=Tt(k):1952867444==k.type&&isNaN(d)&&(d=Zt(k));f=Xt(k.type)?f+8:f+k.size}!e&&c&&(e=Ut(c));b=d/e}else b=new iu($u(a)),c=a.w?b:new iu(new DataView(a.info.o.o.buffer)),d=Gu(c),c=b.o,b.o=0,Hu(b)?mu(b,231)?(d=wu(b)*d/1E9,b.o=c,b=d):(b.o=c,b=NaN):(b.o=c,b=NaN);a.A=b||a.info.F;return a.A};
fv=function(a,b){a.A=b;if(g.dv(a.info.o.info)){for(var c=$u(a),d=a.info.o.o,e=NaN,f=NaN,k=0;Vt(c,k);){var l=Wt(c,k);isNaN(e)&&(1936286840==l.type?e=au(l):1836476516==l.type&&(e=Tt(l)));if(1952867444==l.type){!e&&d&&(e=Ut(d));var m=Zt(l);isNaN(f)&&(f=Math.round(b*e)-m);Yt(l,m+f)}k=Xt(l.type)?k+8:k+l.size}return!0}c=new iu($u(a));e=a.w?c:new iu(new DataView(a.info.o.o.buffer));d=b;f=Gu(e);e=c.o;c.o=0;if(Hu(c)&&mu(c,231))if(k=ou(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};
gv=function(a){if(a.u&&6==a.info.type)return a.u.je;if(g.dv(a.info.o.info)){var b=$u(a);var c=0;b=fu(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=$t(d.value),c+=d.em[0]/d.xp;c=c||NaN;if(!(0<=c))a:{c=$u(a);b=a.info.o.o;d=0;for(var e,f=0;Vt(c,d);){var k=Wt(c,d);if(1836476516==k.type)e=Tt(k);else if(1836019558==k.type){!e&&b&&(e=Ut(b));if(!e){c=NaN;break a}var l=Ot(k.data,k.dataOffset,1953653094);f+=St(l,e)}d=Xt(k.type)?d+8:d+k.size}c=f||NaN}}else e=new iu($u(a)),c=a.w?e:new iu(new DataView(a.info.o.o.buffer)),
c=vfa(e,Gu(c));return c||a.info.H};
hv=function(a){if(!a.u){if(g.dv(a.info.o.info)){var b=$u(a),c=Ot(b,0,1701671783);if(c){var d=bu(c);var e=d.uO,f=Nt(d.ty);if(b=Ot(b,c.offset+c.size,1701671783)){b=bu(b);for(var k in b)if(c=Nt(b.ty),f&&c)for(var l in c)f[l]=c[l]}d=f?new Et(f,e,d.offset):null}else d=null}else{d=new iu($u(a));e=d.o;d.o=0;k=f=null;if(ku(d,[408125543,307544935,29555,26568]))for(l=lu(d);!ju(l);)b=ou(l,!1),17543==b?k=Nt(Bu(l)):17827==b?f=Bu(l):xu(l);d.o=e;d=k?new Et(k,f):null}a.u=d}};
iv=function(a){var b=$u(a);a=g.Pt(b,0,1701606260);var c=g.Pt(b,0,1836476516);if(a&&c){a.skip(2);var d=tt(a),e=vt(a);b=[];var f=[],k=[],l=[];if(d)for(d=0;d<e;++d)b.push(wt(a)),f.push(wt(a)),k.push(tt(a)),l.push(tt(a));else for(d=0;d<e;++d)b.push(ut(a)),f.push(ut(a)),k.push(tt(a)),l.push(tt(a));a=Tt(c);a=new ofa(f[0]/a,b[0]/a)}else a=null;return a};
jv=function(a){var b=a.info.o.info;a=$u(a);g.dv(b)?du(a,1701671783):2==b.containerType&&qu([408125543],307544935,a)};
kv=function(a){this.o=a;this.u={};this.w=""};
yfa=function(a,b){var c=b.indexOf("?");if(0<c){var d=lt(b.substr(c+1));g.Bb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=kt(b);g.Bb(c,function(e,f){this.set(f,e)},a)};
g.lv=function(a){a.w||(a.w=zfa(a));return a.w};
zfa=function(a){var b=dt(a.o),c=[];g.Bb(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=ht(a.o)?"&":"?";return b+a+d};
mv=function(a,b){it&&dt(a.o).startsWith("https://www.youtube.com/videoplayback")&&(b=b.replace(Afa,"$1.googlevideo"));var c=new ct(b),d=c.get("req_id");d&&a.set("req_id",d);g.Bb(a.u,function(e,f){c.set(f,null)});
return c};
Bfa=function(){this.o=2048;this.u=0};
Cfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=bq(b||"");var c={};(0,g.y)(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.Q=function(a,b){return"true"==a.flags[b]};
g.R=function(a,b){return parseFloat(a.flags[b])||0};
g.nv=function(a,b){var c=a.flags[b];return c?c.toString():""};
ov=function(a,b,c){this.sampleRate=a||0;this.o=b||0;this.spatialAudioType=c||0};
Dfa=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
pv=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
tv=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;this.quality=f||qv(a,b);this.ac=g.rv[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.rv[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};
uv=function(a){return 1280<=a.width||720<=a.height};
vv=function(a){return"smpte2084"==a.o||"arib-std-b67"==a.o};
wv=function(a){return"bt2020"==a.primaries};
qv=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=xv[0],f=0;f<xv.length;f++){var k=xv[f],l=g.rv[k];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=k}return"tiny"};
zv=function(a,b,c,d,e,f,k,l,m){this.id=a;this.containerType=yv(b);this.mimeType=b;this.o=k||0;this.A=l||0;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.rb=void 0===e?null:e;this.captionTrack=void 0===m?null:m;this.zc=void 0===f?null:f;this.u=Efa[Vu(this)]||"";this.w=!0};
Vu=function(a){return a.id.split(";",1)[0]};
Av=function(a){return"9"==a.u||"("==a.u||"9h"==a.u||"(h"==a.u};
Bv=function(a){return"9h"==a.u||"(h"==a.u};
g.dv=function(a){return 1==a.containerType};
Cv=function(a){return"application/x-mpegURL"==a.mimeType};
Dv=function(a){return/(opus|vorbis|mp4a|dtse|ac-3|ec-3)/.test(a)};
Ev=function(a){return a.includes("vtt")||a.includes("text/mp4")};
yv=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};
Fv=function(a,b,c,d,e){var f=new ov;b in g.rv||(b="small");d&&e?(e=parseInt(e,10),d=parseInt(d,10)):(e=g.rv[b],d=Math.round(16*e/9));b=new tv(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new zv(c,a,f,b)};
Gv=function(){var a=g.w("yt.player.utils.videoElement_");a||(a=g.pe("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
Hv=function(a){var b=Gv();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Jv=function(a){if(/opus/.test(a)&&(g.Iv&&!Yn("38")||g.Iv&&el("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!kl())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Hv(a)};
Ffa=function(a){try{var b=Jv('video/mp4; codecs="avc1.42001E"')||Jv('video/webm; codecs="vp9"');return(Jv('audio/mp4; codecs="mp4a.40.2"')||Jv('audio/webm; codecs="opus"'))&&(b||!a)||Hv('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
Kv=function(){var a=Gv();return!!a.webkitSupportsPresentationMode&&g.Oa(a.webkitSetPresentationMode)};
Lv=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
Mv=function(){var a=Gv();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
Nv=function(a,b){this.o=a;this.u=b;this.w=0;Object.defineProperty(this,"timestampOffset",{get:this.qP,set:this.uP});Object.defineProperty(this,"buffered",{get:this.oP})};
Gfa=function(){this.length=0};
Ov=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.o=a;this.u=NaN;this.w=0;Object.defineProperty(this,"duration",{get:this.pP,set:this.tP});Object.defineProperty(this,"readyState",{get:this.rP});this.o.addEventListener("webkitsourceclose",(0,g.x)(this.sP,this),!0)};
Pv=function(){this.length=1};
Qv=function(){this.buffered=new Pv};
Rv=function(a,b,c){this.errorCode=a;this.o=b;this.details=c||{}};
Sv=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
Tv=function(a){var b=void 0===b?!1:b;if(a instanceof Rv)return a;a=a&&a instanceof Error?a:Error(""+a);b?Mq(a):Nq(a);return new Rv(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
Uv=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Vv=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)};
Wv=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};
Xv=function(a,b){return 0<=Wv(a,b)};
Yv=function(a,b){if(!a)return NaN;var c=Wv(a,b);return 0<=c?a.end(c):NaN};
Zv=function(a){return a&&a.length?a.end(a.length-1):NaN};
$v=function(a,b){var c=Yv(a,b);return 0<=c?c-b:0};
aw=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 Uv(d,e)};
bw=function(a,b){g.P.call(this);var c=this;this.o=a;this.C=b;this.F=this.u=this.A=null;this.B=0;this.w=function(d){return c.R(d.type,c)};
this.supports(3)&&(this.o.addEventListener("updateend",this.w),this.o.addEventListener("error",this.w))};
cw=function(a,b,c,d){g.P.call(this);var e=this;this.o=a;this.H={error:function(){!e.la()&&e.isActive()&&e.R("error",e)},
updateend:function(){!e.la()&&e.isActive()&&e.R("updateend",e)}};
zr(this.o,this.H);this.u=b;this.G=c;this.C=0;this.B=Infinity;this.A=0;this.F=this.w=d};
dw=function(a,b){this.o=a;this.u=void 0===b?!1:b;this.w=!1};
ew=function(a,b){b=void 0===b?!1:b;g.A.call(this);this.B=new g.O(this);g.C(this,this.B);this.u=this.o=null;this.w=a;var c=this.w;c=c.rI?c.o.webkitMediaSourceURL:window.URL.createObjectURL(c);this.Yk=new dw(c,!0);this.C=b;this.A=null;xr(this.B,this.w,["sourceopen","webkitsourceopen"],this.iN);xr(this.B,this.w,["sourceclose","webkitsourceclose"],this.hN)};
Hfa=function(a,b){fw(a)?g.wf(function(){return b(a)}):a.A=b};
gw=function(a,b){try{a.w.duration=b}catch(c){}};
hw=function(a){return!!a.o||!!a.u};
fw=function(a){try{return"open"==a.w.readyState}catch(b){return!1}};
iw=function(a){try{return"closed"==a.w.readyState}catch(b){return!0}};
jw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
kw=function(a){return a.o?!!a.o.supports(0):jw()};
lw=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 ew(a.w,!0);k.Yk=a.Yk;e=new cw(e,b,c,d);b=new cw(f,b,c,d);k.o=e;k.u=b;g.C(k,e);g.C(k,b);fw(a)||a.o.lp(a.o.Ab());return k};
mw=function(a,b,c){this.o=a;this.G=b;this.H=void 0===c?!1:c;this.B=!!g.w("cast.receiver.platform.canDisplayType");b=g.w("cast.receiver.platform.getValue");this.u=!this.B&&b&&b("max-video-resolution-vpx")||null;this.A={};this.F=!1;this.C=!0;this.w=!g.Q(a,"html5_disable_protected_hdr")};
Ifa=function(a,b){var c=Vu(b);if("0"===c)return!0;var d=b.mimeType,e;!(e="1"==b.u&&a.F)&&(e=b.video&&(vv(b.video)||wv(b.video)))&&(e=!(nw(a,ow)||(g.Q(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.Iv?Yn(53):g.pw&&Yn(64)))return!1;e={};b.video&&(b.video.width&&(e[qw.name]=b.video.width),b.video.height&&(e[rw.name]=b.video.height),b.video.fps&&(e[tw.name]=b.video.fps),
b.video.o&&(e[ow.name]=b.video.o),b.o&&(e[uw.name]=8*b.o),"("==b.u&&(e[vw.name]="subsample"),2==b.video.projectionType||3==b.video.projectionType||4==b.video.projectionType)&&(e[ww.name]="true");b.audio&&b.audio.o&&(e[xw.name]=b.audio.o);for(var f in yw){var k=yw[f],l;if(l=e[k.name])(l=k==ow&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.Q(a.o,"html5_ignore_h264_framerate_cap")&&k==tw&&("H"==l.u||"h"==l.u)),l=!(l||k==ww&&!g.Q(a.o,"html5_decode_to_texture_cap"));if(l)if(nw(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(Bv(b)&&k==ow)return!1}!g.Q(a.o,"disable_html5_cast_hdcp_filter2")&&a.B&&b.video&&1080<b.video.ac&&b.zc&&(d+="; hdcp=2.2");return("227"!==c||g.Q(a.o,"html5_enable_1080p_hq_cenc"))&&("561"!==c&&"562"!==c||g.Q(a.o,"html5_enable_4k_hq_enc"))&&("585"!==c&&"588"!==c&&"583"!==c&&"586"!==c&&"584"!==c&&"587"!==c&&"591"!==c&&"592"!==c||g.Q(a.o,"html5_enable_new_hvc_enc"))?zw(a,d):!1};
Aw=function(){var a=fl()&&!Yn(29),b=el("google tv")&&el("chrome")&&!Yn(30),c=il();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.Bw=function(a){return!(!a.canPlayType(Gv(),"application/x-mpegURL")&&!Aw())};
nw=function(a,b){b.name in a.A||(a.A[b.name]=Jfa(a,b));return a.A[b.name]};
Jfa=function(a,b){if(a.u)return!!a.u[b.name];if(b==uw&&g.Q(a.o,"html5_ignore_bad_bitrates")&&zw(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!zw(a,'video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b==Cw)return zw(a,"video/mp4; codecs="+b.valid)&&!zw(a,"video/mp4; codecs="+b.nf);if(b.video){var c='video/webm; codecs="vp9"';zw(a,c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',zw(a,c)||(c='audio/mp4; codecs="mp4a.40.2"');
return zw(a,c+"; "+b.name+"="+b.valid)&&!zw(a,c+"; "+b.name+"="+b.nf)};
zw=function(a,b){return a.B?window.cast.receiver.platform.canDisplayType(b):Jv(b)};
Kfa=function(a){return g.Dw||ql()&&!a?!1:!0};
Ew=function(a){this.Tf=a};
Fw=function(a,b,c){if(c)return br();var d={};c=Gv();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Zd().mimeType)){var f=e.Tf.wa().quality;d[f]&&2!=d[f].Zd().containerType||(d[f]=e)}var k=[];d.auto&&k.push(d.auto);(0,g.y)(xv,function(l){(l=d[l])&&k.push(l)});
return k.length?cr(k):br()};
Gw=function(a,b,c,d){this.u=a||0;this.o=b||0;this.w=c;this.reason=d};
Hw=function(a,b){return a.u==b.u&&a.o==b.o&&a.w==b.w&&a.reason==b.reason};
Iw=function(a,b,c,d){return new Gw(g.rv[a]||0,g.rv[b]||0,c,d)};
Jw=function(a){var b=g.rv.auto;return a.u==b&&a.o==b};
Lw=function(a,b){if(b.w&&Jw(b))return Kw;if(b.w||Jw(a))return b;if(a.w||Jw(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 Gw(c,d,!1,d==a.o?a.reason:b.reason)};
Mw=function(a){var b=a.o||a.u;return Nb(Lfa,function(c){return g.rv[c]==b})||"auto"};
Nw=function(a,b){var c=g.rv[b];return a.u<=c&&(!a.o||a.o>=c)};
Ow=function(){g.P.call(this);this.Ga={}};
Mfa=function(){var a=g.rs("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Od(Math.floor(b),0,100),muted:!!a.muted}};
Pw=function(a){g.qs("yt-player-bandwidth",a,2592E3)};
Qw=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.rs("yt-player-quality")||"auto"};
Rw=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Tw=function(a,b,c){var d=Sw();a=Rw(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!=c&&(d[a]=c,g.qs("yt-player-performance-cap",d,604800))};
Sw=function(){return g.rs("yt-player-performance-cap")||{}};
Uw=function(a){g.qs("yt-player-watch-later-pending",a)};
Vw=function(){return g.rs("yt-player-headers-readable")||!1};
Ww=function(a){g.qs("yt-player-playback-on-reload",a)};
Xw=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
Nfa=function(){this.u=0;this.C=this.bandwidthEstimate=this.B=this.w=this.A=NaN;this.o=""};
Ofa=function(){this.o=17;this.w=13E4;this.A=.5;this.u=!1};
Yw=function(a){this.B=Math.exp(Math.log(.5)/a);this.u=this.A=0};
$w=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.P=b;this.u=Math.round(a*this.P);this.B=Array(this.u);for(a=0;a<this.u;a++)this.B[a]=Infinity;this.J=Zw(this);this.A=0;this.C=!1;this.G=!0;this.F=c;this.H=d};
Zw=function(a){for(var b=Array(a.u),c=0;c<a.u;c++)b[c]=c;return b};
ax=function(a,b){if(!a.C&&0==a.A)return 0;a.G&&(g.tb(a.J,function(c,d){return a.B[c]-a.B[d]}),a.G=!1);
return a.B[a.J[Math.round(b*((a.C?a.u:a.A)-1))]]||0};
Pfa=function(a){var b=new Bfa;this.policy=a;this.o=b;this.H=this.P=0;this.B=-1;this.F=this.G=bx();this.C=new $w(4,1,.6,.4);this.w=new $w(10,1,.5,.4);this.u=a.u?new Yw(a.o):new $w(a.o,20,.5,.4);this.J=new $w(5,1,.25);this.A=new $w(30,1,.5);a=g.rs("yt-player-bandwidth")||{};this.u.w(this.policy.A,0<a.byterate?a.byterate:this.policy.w);0<a.delay&&this.C.w(1,Math.min(+a.delay,2));0<a.stall&&this.w.w(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=bx()};
cx=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.w(void 0===d?b:d,c/b);e||(a.G=bx())};
dx=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.J.w(b,c/b);f||(a.G=bx());e||a.A.w(1,b-d)};
fx=function(a,b,c){b=Math.max(b,a.o.o);a.w.w(1,c/b);ex(a)};
gx=function(a){a=a.C.o();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
hx=function(a,b,c){isNaN(c)||(a.H+=c);isNaN(b)||(a.P+=b)};
ix=function(a){a=a.u.o();return 0<a?a:1};
jx=function(a){var b=ix(a);b=1/((a.w.o()||0)+1/b);a=a.J.o();return Math.max(b,0<a?a:1)};
kx=function(a){var b={};b.delay=gx(a);b.stall=a.w.o()||0;b.byterate=ix(a);b.init=a.F;return b};
ex=function(a){-1<a.B&&3E4<bx()-a.B&&(Pw(kx(a)),a.B=bx())};
lx=function(a){return 4E3<=bx()-a.G};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
mx=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
nx=function(a,b){return void 0===b||null===b?a:Number(b)};
ox=function(a,b){return void 0===b||null===b?a:b.toString()};
px=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(Qfa);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
Mx=function(a,b){g.A.call(this);a=a?g.Rb(a):{};this.nb=this.xa="";this.ea=ox("",a.csp_nonce);this.experiments=new Cfa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.za=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;Ts=this.fa("web_player_deprecated_uvr_killswitch");try{var c=document.location.toString()}catch(m){c=""}this.Gb=c;this.dc=(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?ox("",a.loaderUrl):this.Gb;this.Db=Us(this.loaderUrl,Rfa,null);c=this.loaderUrl;var d=void 0===d?!1:d;this.Cm=Ss(Us(c,Sfa,null),c,d,"Trusted Ad Domain URL");this.V=S(!1,a.privembed);this.protocol=0==this.Gb.indexOf("http:")?
"http":"https";this.C=Ws((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Ws(this.Gb)||this.protocol+"://www.youtube.com/";d=b?b.eventLabel:a.el;c="detailpage";"adunit"==d?c=this.u?"embedded":"detailpage":"embedded"==d||this.Db?c=mx(c,d,Tfa):d&&(c="embedded");this.S=c;Up();d=null;c=b?b.playerStyle:a.ps;var e=g.cb(qx,c);!c||e&&!this.Db||(d=c);this.playerStyle=d;this.G=(this.Yb=g.cb(qx,this.playerStyle))&&"play"!=this.playerStyle&&"jamboard"!=this.playerStyle;this.Bm=!this.G;this.H=S(!1,a.disableplaybackui);
if(d=!this.H||!this.fa("web_player_disable_ui_speed_killswitch"))Gv().defaultPlaybackRate?rx||g.sx||tx?(d=g.pw&&Yn("20")||g.Iv&&Yn("4")||g.yh&&Yn("11"))||(d=/WebKit\/([0-9]+)/.exec(g.Mc),d=!!(d&&602<=parseInt(d[1],10))):d=!(g.yh&&!el("chrome")||rx||el("android")||el("silk")):d=!1;this.ya=d;this.o=S("blazer"==this.playerStyle,a.is_html5_mobile_device);this.o?d=!0:(d=parseInt((0,g.H)()/1E3,10),c=nr.getInstance(),d=this.fa("block_desktop_background_playback_with_mobile_cookie")&&c&&d>parseInt(c.get("dhmu",
d.toString()),10));this.Am=d;this.na="3"==this.controlsType||this.o||S(!1,a.use_media_volume);this.J=Mv();this.Gm=g.ux;this.kd=S(!1,a.opt_out_deprecation);var f;b?void 0!=b.hideInfo&&(f=!b.hideInfo):f=a.showinfo;this.Df=g.vx(this)&&!this.kd||S(!wx(this)&&!xx(this)&&!this.Yb,f);this.yd=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);f=this.o&&yx&&0<zx&&2.3>=zx;d=b?b.useNativeControls:a.use_native_controls;c=this.o;d=Ax(this)||!f&&S(c,d)?"3":"1";this.controlsType="0"!=(b?b.controlsType:
a.controls)?d:"0";this.Ra=this.o;this.color=mx("red",a.color,Ufa);this.Em="3"==this.controlsType||S(!1,a.modestbranding)&&"red"==this.color;this.ga=!this.u;this.Ef=(d=!this.ga&&!xx(this)&&!this.G&&!this.Yb&&!wx(this))&&!this.Em&&"1"==this.controlsType;this.Na=g.Bx(this)&&d&&"0"==this.controlsType&&!this.Ef;this.tn=this.Fm=f;this.Ff=Cx&&!g.Md(601)?!1:!0;this.zm=this.u||!1;this.Fa=xx(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=ox("",a.widget_referrer);this.Rb=
(!this.Db||S(!0,a.enablecastapi))&&"1"==this.controlsType&&!this.o&&(xx(this)||g.Bx(this)||g.Dx(this))&&!g.Ex(this);this.mn=Lv()||Kv();f=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.Hc=!this.o&&!el("nintendo wiiu")&&!el("nintendo 3ds")||f;f=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);d=this.fa("embeds_enable_muted_autoplay")&&g.vx(this);this.Jc=f&&d&&this.J&&!Ax(this);f=(xx(this)||wx(this))&&"blazer"==this.playerStyle;this.Wb=b?!!b.disableFullscreen:!S(!0,a.fs);this.ca=!this.Wb&&
(f||tr());this.Bg=this.fa("uniplayer_block_pip")&&fl()&&Yn(58)&&!(g.sx&&el("version/"));f=g.vx(this)&&!this.kd;var k;b?void 0!=b.disableRelatedVideos&&(k=!b.disableRelatedVideos):k=a.rel;this.Ha=f||S(!this.Yb,k);this.fn=S(!1,a.co_rel);this.A=g.sx&&el("version/")&&0<zx&&4.4>=zx?"_top":"_blank";this.Ja=g.Dx(this);this.pc="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 "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.O=k;this.Kc=ox("",a.authuser);var l;b?void 0!=b.disableWatchLater&&(l=!b.disableWatchLater):l=a.showwatchlater;this.yi=(this.u&&!this.V||!!this.Kc)&&S(!this.G,this.Db?l:void 0);this.Eb=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.fd=ox("",a.ecver);this.loop=S(!1,a.loop);this.pageId=ox("",a.pageid);this.Mm=S(!0,
a.canplaylive);this.cg=S(!1,a.livemonitor);this.disableSharing=S(this.Yb,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.Ud(l,k))):l=null;this.Gf=l;this.mute=b?!!b.startMuted:S(!1,a.mute);this.Gc=!this.mute&&S("0"!=this.controlsType,a.store_user_volume);l=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"==this.controlsType?3:mx(void 0,l,Fx);this.captionsLanguagePreference=
b?b.captionsLanguagePreference||"":ox("",a.cc_lang_pref);l=mx(2,a.cc_load_policy,Fx);"3"==this.controlsType&&2==l&&(l=3);this.Fg=l;this.lc=b?b.hl||"en_US":ox("en_US",a.hl);this.region=b?b.contentRegion||"US":ox("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":ox("en",a.host_language);this.Ag=!this.V&&Math.random()<g.R(this.experiments,"web_player_api_logging_fraction");this.U=!this.V;this.gd=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);this.ag=nx(this.ag,a.ismb);l=a;g.nv(this.experiments,
"html5_qoe_intercept")?l=g.nv(this.experiments,"html5_qoe_intercept"):this.Bm?(l=l.vss_host||"s.youtube.com",this.fa("www_for_videostats")&&"s.youtube.com"==l&&(l=Gx(this.C)||"www.youtube.com")):l="video.google.com";this.Hf=l;this.Td(a,!0);this.F=new Ow;g.C(this,this.F);this.B=this.o&&!this.fa("enable_svg_mode_on_embed_mobile");this.Xg={innertubeApiKey:b?b.innertubeApiKey:ox("",a.innertube_api_key),innertubeApiVersion:b?b.innertubeApiVersion:ox("",a.innertube_api_version),Mn:this.deviceParams.c,innertubeContextClientVersion:b?
b.innertubeContextClientVersion:ox("",a.innertube_context_client_version),Mk:this.hostLanguage,Lk:this.region,Nn:""};this.oe=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.w=new mw(this.experiments,this.fa("html5_force_hfr_support")?!0:Hx(this)||jl()||kl()||Ix(this),g.Iv&&g.Md(56)||g.Q(this.experiments,"html5_encrypted_vp9_firefox")&&g.pw&&g.Md(54)||Ix(this));l=new Ofa;g.Jx(this)&&(l.u=!0,l.A=.1);g.Q(this.experiments,"html5_ewma_bandwidth_estimator")&&(l.u=!0);g.Q(this.experiments,"html5_pctile_bandwidth_estimator")&&
(l.u=!1);this.ag&&(l.w=this.ag/8);l.o=g.R(this.experiments,"html5_bandwidth_window_size")||l.o;this.schedule=new Pfa(l);this.enableSafetyMode=S(!1,a.enable_safety_mode);this.Wa=S(this.H?!1:xx(this)&&"blazer"!=this.playerStyle,a.allow_autonav);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:S(!1,a.send_visitor_id_header);this.Eg=!1;this.ne=Kw;this.ra=(0,g.N)();this.da=0;this.re=!1;this.Yj=S(!1,"docs"==this.playerStyle?a.disable_native_context_menu:void 0);this.ym=Hx(this)&&this.fa("enable_skip_intro_button");
this.embedConfig=ox("",a.embed_config);this.hd=!1;this.Xb=S(!1,a.full_window);this.xm=S(!1,a.embedding_app);this.sa=!g.Kx(this)&&!Lx(this)&&!g.Ex(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.Ba=!1;this.Dm=1E-4>Math.random()};
Nx=function(a,b){return!a.Yb&&fl()&&Yn(55)&&"3"==a.controlsType&&!b};
g.Ox=function(a){a=Gx(a.C);return"www.youtube-nocookie.com"==a?"www.youtube.com":a};
g.Px=function(a){return g.Ex(a)?"music.youtube.com":g.Ox(a)};
Qx=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
Rx=function(a){return xx(a)&&!g.Kx(a)};
Ax=function(a){return Cx&&!a.yd||el("nintendo wiiu")||el("nintendo 3ds")?!0:!1};
g.Ex=function(a){return"music-embed"==a.playerStyle};
g.Jx=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"==a.deviceParams.cplatform};
Ix=function(a){return"CHROMECAST ULTRA/STEAK"==a.deviceParams.cmodel||"CHROMECAST/STEAK"==a.deviceParams.cmodel};
g.Sx=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
Hx=function(a){return"web"==a.deviceParams.c.toLowerCase().substr(0,3)};
g.Tx=function(a){return"WEB"==a.deviceParams.c};
Lx=function(a){return"WEB_KIDS"==a.deviceParams.c};
g.Kx=function(a){return"WEB_UNPLUGGED"==a.deviceParams.c};
Ux=function(a){return"TVHTML5_UNPLUGGED"==a.deviceParams.c};
g.Vx=function(a){return g.Kx(a)||"TV_UNPLUGGED_CAST"==a.deviceParams.c||Ux(a)};
Wx=function(a){return"WEB_REMIX"==a.deviceParams.c};
g.Xx=function(a){return"WEB_EMBEDDED_PLAYER"==a.deviceParams.c};
g.$x=function(a){return(a.deviceHasDisplay&&g.Iv&&!ol&&"3"!==a.controlsType?g.sx?a.u&&g.Md(51):!0:!1)||(a.deviceHasDisplay&&g.pw&&!ol&&"3"!==a.controlsType?g.sx?a.u&&g.Md(48):g.Md(38):!1)||(a.deviceHasDisplay&&g.yh&&!ol&&"3"!==a.controlsType?g.sx?a.u&&g.Md(37):g.Md(27):!1)||a.deviceHasDisplay&&g.Yx&&!nl()&&g.Md(11)||a.deviceHasDisplay&&g.Zx&&g.Md("604.4")};
ay=function(a){if(g.Bx(a)&&yx)return!1;if(g.pw){if(!g.Md(47)||!g.Md(52)&&g.Md(51))return!1}else if(g.Zx)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
xx=function(a){return"detailpage"==a.S};
g.Bx=function(a){return"embedded"==a.S};
g.by=function(a){return"leanback"==a.S};
wx=function(a){return"adunit"==a.S||"gvn"==a.playerStyle};
g.Dx=function(a){return"profilepage"==a.S};
g.vx=function(a){return a.u&&g.Bx(a)&&!wx(a)&&!a.Yb};
cy=function(a){if(!a.P)return"";var b=a.P.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("/");Nq(new Lq("Profile image not a FIFE URL.",a.P));return a.P};
g.dy=function(a){var b=g.Px(a);!a.fa("yt_embeds_disable_new_error_lozenge_url")&&Vfa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Gx=function(a){var b=g.qd(a);return(a=Number(g.pd(4,a))||null)?b+":"+a:b};
ey=function(){this.o=!1;this.u=0;this.le=!1};
fy=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.bj?!1:c.bj;var e=new ey;e.o=a.fa("html5_streaming_xhr_no_mp4_holdback_chunk");e.u=g.R(a.experiments,"html5_time_based_consolidation_ms");e.le=d||c;return e};
g.gy=function(){this.u=new ey;this.Ku=this.Ju=!1;this.FC=2;this.C=20971520;this.F=8388608;this.B=120;this.za=3145728;this.ca=62914560;this.Ba=10485760;this.GC=this.Ha=0;this.J=NaN;this.Yj=0;this.Am=this.Cv=2;this.Eb=3;this.Dm=!1;this.Ru=2;this.da=2097152;this.Qu=1048576;this.na=!1;this.P=1800;this.fd=5;this.jd=10;this.Z=15;this.pc=1;this.o=1.15;this.w=1.05;this.Xu=this.Gu=!0;this.H=!1;this.Su=.8;this.S=this.Lx=this.xb=!1;this.nC=25;this.MF=this.Pu=!1;this.Fa=6;this.uB=this.xa=!1;this.zh=.5;this.ym=
this.Gb=!1;this.hd=0;this.Em=!1;this.oe=0;this.dd=!1;this.yv=2;this.fb=5E3;this.Df=0;this.sa=this.ga=!1;this.O=.5;this.Wb=2;this.Rb=this.tv=0;this.wv=1.5;this.xv=this.Ag=.5;this.HB=!1;this.Jc=15;this.cC=1;this.Wu=this.Hu=this.Wa=this.fn=!1;this.CC=0;this.jv=this.Fm=this.Gf=this.cA=this.ov=this.Nu=this.Mu=this.Iu=!1;this.ey=1;this.fy=0;this.tn=this.Mh=!1;this.Ef=0;this.ne=this.Mm=this.Yu=this.ea=this.mh=this.Gm=this.U=this.Xb=this.mn=this.Ja=this.xB=this.xm=this.qw=this.Ff=this.ra=this.qv=this.Na=
this.G=this.lc=!1;this.Gc=!0;this.Hf=!1;this.A="";this.DE=1048576;this.Wz=this.IC=this.dc=this.V=!1;this.gd=46800;this.nb=this.Uu=this.zm=this.QC=this.Hc=this.ya=!1;this.zv=!0;this.Cm=this.Ra=this.yd=this.Zu=!1;this.kd=!0;this.Ou=this.Bm=this.Vu=this.Bg=!1};
Wfa=function(a,b){1080<b.wa().ac&&!a.Ju&&(a.C=36700160,a.F=5242880,a.za=10485760,a.da=4194304,a.Ju=!0);2160<b.wa().ac&&!a.Ku&&(a.C=104857600,a.J=13107200,a.Ku=!0);a.Qu=Math.max(65536,Math.min(a.da,5*b.o))};
Xfa=function(){this.w=this.o=this.u=this.started=this.A=0};
hy=function(a,b){a[b]||(a[b]=new Xfa);return a[b]};
Yfa=function(a){this.A=a.clone();this.o=a;this.w=null;this.B=this.u=0};
jy=function(a,b,c){var d=hy(c,ft(a.o));if(d.u>=b.yv||1<=d.o)if(a=iy(a),c=hy(c,ft(a)),c.u+c.o<=d.u+d.o)return!0;return!1};
Zfa=function(a,b){var c=b?iy(a):a.o;return new kv(c)};
iy=function(a){a.w||(a.w=jt(a.A));return a.w};
ky=function(a){return 1<a.u?a.B+1E3*Math.pow(1.6,a.u-1)<(0,g.N)():!0};
g.ly=function(a,b,c){b.o===a.o&&(a.o=mv(b,c));b.o===a.w&&(a.w=mv(b,c))};
my=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?xfa(this.o):null;this.A=this.be=NaN;this.C=this.requestId=null};
ny=function(a){return!Ou(a.o[a.o.length-1])};
oy=function(a){return 4==a.o[a.o.length-1].type};
g.py=function(a,b,c,d){if(a.B)var e=new kv(new ct(a.B));else/http[s]?:\/\//.test(a.w)?e=new kv(new ct(a.w)):(b=null===a.C?jy(a.u,b,c):a.C,e=Zfa(a.u,b),a.w&&yfa(e,a.w));(d=d||a.range)&&e.set("range",d.toString());a.requestId&&e.set("req_id",a.requestId);isNaN(a.be)||e.set("headm",a.be.toString());isNaN(a.A)||e.set("mffa",a.A+"ms");a.F&&g.Bb(a.F,function(f,k){e.set(k,f)});
return e};
qy=function(a){if(a.range)return a.range.length;a=a.o[0];return Math.round(a.H*a.o.info.o)};
$fa=function(a,b,c){return a.range?new Ju(a.range.start+b,a.range.end):Lu(b,c)};
ry=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.H=this.o=null;this.B=!1;this.C=null;this.J=0;this.u=new Yfa(a);this.A=null;this.P=NaN;this.F=null};
sy=function(a,b){a.info&&a.info.video&&4==a.info.video.projectionType&&!a.A&&(g.dv(a.info)?a.A=rfa(b):2==a.info.containerType&&(a.A=tfa(b)))};
ty=function(a,b,c,d,e,f){f=void 0===f?0:f;ry.call(this,a,b,d);this.index=e||new g.ot;this.je=f;this.S=c;this.G=!0;if(this.w=!c)this.B=!0};
uy=function(a){return a.u.le||a.u.le?a.S&&a.H&&Os()?3:2:a.Mh?-1:1};
vy=function(a){var b=void 0===a?{}:a;a=void 0===b.je?0:b.je;var c=void 0===b.Kv?!1:b.Kv,d=void 0===b.Gq?0:b.Gq,e=void 0===b.Ed?0:b.Ed,f=void 0===b.ng?Infinity:b.ng,k=void 0===b.Yz?!1:b.Yz,l=void 0===b.sy?0:b.sy;b=void 0===b.ye?!1:b.ye;this.segments=[];this.o=a;this.C=d;this.u=c;this.w=-1;this.B=e;this.J=f;this.A=null;this.H=k;this.G=l;this.F=b};
yy=function(a,b,c){b=wy(a,b);return 0<=b&&(c||!a.segments[b].pending)};
aga=function(a,b){var c=g.rb(a.segments,{startTime:b},function(e,f){return e.startTime-f.startTime}),d=a.segments[0<=c?c:Math.max(-(c+2),0)];
return d.startTime+d.duration>b&&d.startTime<=b?d:-1==c?zy(a,Math.max(d.Ma-Math.ceil((d.startTime-b)/a.o),0),d):zy(a,d.Ma+Math.ceil((b-d.endTime)/a.o),d)};
wy=function(a,b){return sb(a.segments,function(c){return b-c.Ma})};
zy=function(a,b,c){return new nt(b,Math.max(0,c.startTime-(c.Ma-b)*a.o),a.o,0,"sq/"+b,void 0,void 0,!0)};
Ay=function(a,b,c){c=void 0===c?{}:c;ty.call(this,a,b,"",void 0,void 0,c.je||0);this.index=new vy(c);this.O=c.Gq||-1;this.U=c.ye||!1};
cga=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.o=d||NaN;this.u=e||NaN};
By=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""};
Cy=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};
Dy=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};
Ey=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
Fy=function(){this.o=[];this.u=null;this.B=0;this.A=[];this.w=!1;this.C="";this.F=0};
dga=function(a){var b=a.A;a.A=[];return b};
ega=function(){this.A=[];this.o=null;this.u={};this.w={}};
iga=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=fga(a):"AdaptationSet"==f.nodeName?k=gga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=hga(a,f.attributes.id.value));if(null==k)return;k.update(e,c);lb(d,dga(k))}lb(a.A,d);naa(a.A,function(l){return 1E3*l.startSecs+l.o})};
jga=function(a){a.o&&(a.o.o=[]);g.Bb(a.u,function(b){b.o=[]});
g.Bb(a.w,function(b){b.o=[]})};
fga=function(a){a.o||(a.o=new Fy);return a.o};
gga=function(a,b){a.u[b]||(a.u[b]=new Fy);return a.u[b]};
hga=function(a,b){a.w[b]||(a.w[b]=new Fy);return a.w[b]};
Gy=function(a,b,c,d,e){ry.call(this,a,b,d||void 0,e||void 0);this.index=new g.ot;this.w=c};
Hy=function(a,b,c){var d=a.index.dr(b),e=a.index.Xc(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 Nu(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,k,c);return new my([a],d)};
kga=function(a,b){if(!a.index.Pb()){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 nt(p,f,k,NaN,"sq/"+(p+1)));f+=k;l--}a.index.append(c)}};
g.Iy=function(){this.o=0;this.u=new Float64Array(128);this.w=new Float64Array(128);this.B=1;this.A=!1};
Jy=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]}};
Ky=function(a,b,c,d,e,f,k){k=void 0===k?{}:k;ry.call(this,a,b,c||void 0,d||void 0);this.G=null;this.index=new g.Iy;this.w=e;this.lastModified=f;this.O=k};
Ly=function(a,b,c,d){for(var e=[];b<=a.index.jb();b++){var f=a.index,k=b;f=Lu(f.wo(k),k+1<f.o||f.A?f.u[k+1]-f.u[k]:-1);k=a.index.Xc(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 Nu(3,a,f,"getRequestInfoForRange_",b,k,l,m,n,p));if(f.start+m+n>=c+d)break}return new my(e)};
lga=function(a,b){return My(function(c,d){return g.$q(c,d,4,1E3)},a,b)};
g.Ny=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=hu(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
My=function(a,b,c){return a(b,c).then(function(d){var e=g.Ny(d);return e?My(a,e,c):d})};
Oy=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.P.call(this);this.V=this.duration=0;this.ye=this.Z=this.isLive=this.w=!1;this.ng=this.Ed=0;this.Rk=this.Pe=!1;this.J=(0,g.N)();this.F=Infinity;this.o={};this.sourceUrl=a||"";this.C=this.O=0;this.B=null;this.ga=!!b&&g.Q(b,"html5_live_nonzero_first_segment_start_time");this.u=!1;this.P=[];this.ra=!!b&&g.Q(b,"html5_live_self_init_segments");this.A=null;this.na=c;this.ea=!b||!g.Q(b,"html5_manifest_without_credentials");this.G=
0;this.U=!!b&&g.Q(b,"disable_html5_manifest_namespace_redux");this.ca="";this.H=NaN;this.da=b&&g.Q(b,"disable_html5_duration_caching")?Infinity:10;this.S=0};
Py=function(a){return Eb(a.o,function(b){return!!b.info.zc})};
mga=function(a){return Eb(a.o,function(b){return Ev(b.info.mimeType)})};
nga=function(a){return Fb(a.o,function(b){return b.info.video?b.To():!0})};
Qy=function(a){return Eb(a.o,function(b){return gt(b.u.o)})};
Ry=function(a,b){a.o[b.info.id]=b};
oga=function(a,b,c,d){c=void 0===c?0:c;var e=new Oy("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Sy(f,b,e.duration),l=Ku(f.init),m=Ku(f.index),n=parseInt(f.clen,10),p=Ty(f.url,f.sp,f.s,d),t=parseInt(f.lmt,10);p&&Ry(e,new Ky(p,k,l,m,n,t,f))});
return e};
pga=function(a,b,c,d){c=void 0===c?0:c;var e=new Oy("",d,!1);e.duration=c||0;(0,g.y)(a,function(f){var k=Sy(f,b,e.duration),l=Ty(f.url,f.sp,f.s,d);if(!g.dv(k)){var m=d&&g.Q(d,"html5_manifestless_vp9_otf"),n=d&&g.Q(d,"html5_otf_webm_audio_killswitch");if(!m||!k.isVideo()&&n)return}l&&(k.video&&3==k.video.streamType?Ry(e,new Gy(l,k,"sq/0",null,null)):(m=Ku(f.init),f=Ku(f.index),Ry(e,new Gy(l,k,"",m,f))))});
e.Rk=!0;return e};
qga=function(a,b,c,d){var e=new Oy("",d,!0);(0,g.y)(a,function(f){var k=Sy(f,c),l=Ty(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.Ed=e.Ed||n;e.ng=e.ng||p;var t=!Ev(k.mimeType),u=d&&g.Q(d,"html5_manifestless_live_segment_index_new_logic"),z=d&&g.R(d,"html5_manifestless_max_segment_history");l&&Ry(e,new Ay(l,
k,{je:m,Kv:t,Gq:f,Ed:n,ng:p,Yz:u,sy:z,ye:b}))});
e.w=!b;e.Pe=!0;e.u=!0;e.isLive=!b;e.ye=b;e.Z=!!e.Ed&&!!e.ng&&isFinite(e.ng);return e};
Sy=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 tv(+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===Uy&&(Uy=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((Uy||Vy)&&('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",wv(l)&&(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(".");Wy&&(d+=".00");d='video/webm; codecs="'+d+'"'}}m=l=null;Dv(d)&&(l=new ov(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new pv(a.name,a.audio_track_id,"1"==a.isDefault)));a.caption_display_name&&
a.caption_vss_id&&a.caption_language_code&&(f=new Dfa(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 zv(e,d,l,k,m,p,n,c,f)};
rga=function(a){return lj(a,function(b){return 3==+b.stream_type})?3:0};
Xy=function(a,b){return a.B?nb(a.B.A,b):a.P.length?nb(a.P,b):[]};
Ty=function(a,b,c,d){b=void 0===b?"":b;c=void 0===c?"":c;a=new ct(a);a.set("alr","yes");c&&(c=Rs(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));d&&g.Q(d,"html5_enable_hancedenay_iphersay")&&(d=a.get("n"))&&(d=mea(d),a.set("n",d));return a};
$y=function(a,b){var c=By(b,"id");c=c.replace(":",";");var d=By(b,"mimeType"),e=By(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(By(b,"bandwidth"),10)/8;var f=parseInt(Cy(b,"BaseURL").getAttribute(Yy(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var k=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){k=parseInt(By(b,"width"),10);var l=parseInt(By(b,"height"),10),m=parseInt(By(b,"frameRate"),10),n=sga(By(b,Yy(a,"projectionType")));a:switch(By(b,Yy(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}By(b,"video_level");k=new tv(k,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(Dv(d))if(l=parseInt(By(b,"audioSamplingRate"),10),m=parseInt(By(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=tga(By(b,Yy(a,"spatialAudioType"))),l=new ov(l,m,n),m=By(b,"lang")||"und",n=Cy(b,"Role")){var t=By(n,"value")||"";Kb(Zy,t)?(n=m+"."+Zy[t],p="main"==t,m=By(b,Yy(a,"langName"))||m+" - "+t,m=new pv(m,n,p)):m=null}else m=null;p=null;
if(n=Cy(b,"ContentProtection"))if(g.hl())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 zv(c,d,l,k,m,p,e,f)};
sga=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}};
tga=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}};
az=function(a,b){b=void 0===b?"":b;a.C=1;a.J=(0,g.N)();return Nf(lga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.ea}).then((0,g.x)(a.lF,a)),(0,g.x)(a.oF,a))};
uga=function(a,b,c){return az(new Oy(a,b,c),a)};
vga=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=Ku(a):d=d+"?range="+a));return new nt(b.Ma,b.startSecs,b.durationSecs,b.o,d,e,b.u)};
bz=function(a){return a.isLive&&(0,g.N)()-a.J>=a.F};
cz=function(a){var b=a.F;isFinite(b)&&(bz(a)?a.refresh():(b=Math.max(0,a.J+b-(0,g.N)()),a.A||(a.A=new g.I(a.refresh,b,a),g.C(a,a.A)),a.A.start(b)))};
wga=function(a){a=a.o;for(var b in a){var c=a[b].index;if(c.Pb())return c.jb()+1}return 0};
dz=function(a){if(!isNaN(a.H))return a.H;var b=a.o,c;for(c in b){var d=b[c].index;if(d.Pb()){b=0;for(c=d.Me();c<=d.jb();c++)b+=d.getDuration(c);b/=d.Vi();b=.5*Math.round(b/.5);d.Vi()>a.da&&(a.H=b);return b}if(a.isLive&&(d=b[c],d.je))return d.je}return NaN};
ez=function(a,b){for(var c in a.o){var d=a.o[c].index;if(d.Pb()){var e=d.Oe(b),f=d.Bs(e);if(f)return f+b-d.Xc(e)}}return NaN};
xga=function(a,b){var c=Nb(a.o,function(e){return e.index.Pb()});
if(!c)return NaN;c=c.index;var d=c.Oe(b);return c.Xc(d)==b?b:d<c.jb()?c.Xc(d+1):NaN};
yga=function(a,b){g.Bb(a.o,function(c){g.Bb(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)})})};
fz=function(a,b,c){for(var d in a.o){var e=Ev(a.o[d].info.mimeType)||a.o[d].info.isVideo();if(c==e){e=a.o[d].index;var f=wy(e,b);0<=f&&e.segments.splice(f,1)}}};
Yy=function(a,b){return a.U?"yt:"+b:a.ca+":"+b};
zga=function(a){return g.$a(Object.values(a.o),function(b){return b.info.zc&&b.info.video?480<b.info.video.ac&&"H"==b.info.u:!1})};
Aga=function(){this.P=this.U=this.o=this.A=this.u=this.B=this.C=this.H=this.G=!1;this.J=!0;this.w=0;this.S=!1;this.O=Infinity;this.F=!1;this.V=!0};
Bga=function(a){if(a.H)return["f"];var b="19 9h 9 h 8 (h ( H *".split(" ");a.S&&b.unshift("1");a.o&&b.unshift("h");return b};
Cga=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.G&&(b=["so","sa"].concat(b));a.U&&b.unshift("a");a.C&&b.unshift("ah");return b};
gz=function(a){if(nw(a.w,Cw)&&nw(a.w,rw)&&nw(a.w,uw))return 8192;try{var b=Xw();if(b)return b}catch(d){}b=g.R(a.experiments,"html5_av1_thresh");var c=g.R(a.experiments,"html5_av1_thresh_lcc");c&&2>=navigator.hardwareConcurrency&&(b=c);(c=g.R(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(b=c);(a=g.R(a.experiments,"html5_av1_thresh_arm"))&&gl()&&(b=a);(a=+Sw()[Rw("1",30)]||0)&&(b=Math.min(b,a));return b};
hz=function(a,b,c,d){this.flavor=a;this.o=b;this.w=c;this.B=d;this.u={};this.Le=this.keySystemAccess=null;this.kn=this.ln=-1;this.lm=null;this.C=!!d&&g.Q(d,"edge_nonprefixed_eme");this.A=d?g.nv(d,"html5_hdcp_probing_stream_url"):""};
jz=function(a){return a.C?!1:!a.keySystemAccess&&!!iz()&&"com.microsoft.playready"==a.o};
kz=function(a){return"com.microsoft.playready"==a.o};
lz=function(a){return g.Dw&&"com.microsoft.playready"==a.o&&!!navigator.requestMediaKeySystemAccess};
mz=function(a){return!a.keySystemAccess&&!!iz()&&"com.apple.fps.1_0"==a.o};
iz=function(){var a=window.MSMediaKeys;ml()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
nz=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Iv)return Yn("45");if(g.Dw||g.ie)return g.Q(a,"edge_nonprefixed_eme");if(g.pw)return Yn("47");if(g.Zx){var b=g.R(a,"html5_safari_desktop_eme_min_version");if(b)return Yn(b)}return!g.Q(a,"html5_disable_nonprefixed_eme_for_other")};
Dga=function(a,b,c){c=void 0===c?"":c;var d=il(),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.na(e),g.na(oz.playready)):[].concat(g.na(oz.playready),g.na(e))};
g.pz=function(a){a=void 0===a?{}:a;this.u=a.languageCode||"";this.w=a.languageName||null;this.A=a.kind||"";this.B=a.name||null;this.H=a.id||null;this.F=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.G=a.url||null;this.C=a.vss_id||"";this.isDefault=a.is_default||!1;this.o=a.translationLanguage||null};
g.qz=function(a){var b=a.w||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (Automatic Captions)");a.B&&c.push(" - "+a.B);a.o&&c.push(" >> "+a.o.languageName);return c.join("")};
rz=function(a,b){this.id=a;this.rb=b;this.captionTracks=[];this.on=this.Cq=this.o=null;this.oq="UNKNOWN"};
sz=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.rb&&!a.has(c.rb.id)){var d=new rz(c.id,c.rb);a.add(c.rb.id);this.audioTracks.push(d)}};
tz=function(a,b,c){var d={},e;for(e in c.o){var f=c.o[e],k=Vu(f.info);""==f.info.u||("304"==k||"266"==k)&&a.J||a.P&&"h"==f.info.u&&f.info.video&&1080<f.info.video.ac||!Ifa(b,f.info)||"(h"==f.info.u&&!b.w||(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]=Ega(a,d[e]),d[e]=Fga(b,d[e]));return g.Cb(d,function(l){return!!l.length})};
Gga=function(a,b,c){var d={};g.Bb(b,function(e,f){var k=e.filter(function(l){var m;if(m=l.zc&&c&&l.zc[c.flavor]&&c.u[l.mimeType])(l="("!=l.u&&"(h"!=l.u)||(l=nw(a,vw)||a.H),m=l;return m?!0:!1});
k.length&&(d[f]=k)});
return d};
Iga=function(a,b,c,d){function e(t){return!!f[t]}
var f=tz(a,b,c),k=f["9h"]?"9h":"9";if(0<a.w&&f[k]&&f["1"]){var l=Math.min(a.w,uz(f["1"])),m=uz(f[k]),n=function(t){return t<=l||t>m},p=f["1"].filter(function(t){return n(t.wa().ac)});
k=f[k].filter(function(t){return!n(t.wa().ac)}).concat(p);
k.length&&(f["19"]=k)}Py(c)&&(f=Gga(b,f,d));b=Bga(a);d=Cga(a);b=g.$a(b,e);d=g.$a(d,e);if(!b||!d)return br();a.V&&"1"==b&&f["9"]&&(k=uz(f["1"]),uz(f["9"])>k&&(b="9"));"9"==b&&f.h&&(k=uz(f["9"]),uz(f.h)>1.5*k&&(b="h"),c.Pe&&!Kfa(a.F)&&(b="h"));a=f[b];c=f[d];if(!a.length)return br();vz(a,c);return cr(new sz(a,c,Hga(f,b,d)))};
Hga=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)?(vz(d,e),new sz(d,e)):null};
vz=function(a,b){g.tb(a,function(c,d){return d.wa().height*d.wa().width-c.wa().height*c.wa().width||d.o-c.o});
g.tb(b,function(c,d){return d.o-c.o})};
Fga=function(a,b){var c=(0,g.vi)(b,function(d,e){return 32<e.wa().fps?Math.min(d,e.wa().width):d},Infinity);
Infinity>c&&(b=a.C&&(a.G||nw(a,tw))?(0,g.ve)(b,function(d){return 32<d.wa().fps||d.wa().width<c}):(0,g.ve)(b,function(d){return!(32<d.wa().fps)}));
jl()&&(b=(0,g.ve)(b,function(d){return"299"!=Vu(d)}));
return b};
Ega=function(a,b){return b=(0,g.ve)(b,function(c){return c.wa().ac<=a.O})};
uz=function(a){return(0,g.vi)(a,function(b,c){return Math.max(b,c.wa().ac)},0)};
wz=function(a,b,c,d){g.A.call(this);this.o=[];this.w={};this.B={};this.C=null;this.u=b;this.F=!1;this.A=[];this.G=d;Jga(this,a,!c)};
Jga=function(a,b,c){for(var d in b)for(var e=g.q(b[d]),f=e.next();!f.done;f=e.next()){f=f.value;if(!f.zc){if(g.Q(a.u,"html5_continue_probing_on_missing_drminfo"))continue;return}for(var k in f.zc){if(!oz[k]){if(g.Q(a.u,"html5_continue_probing_on_missing_drminfo"))continue;return}for(var l=g.q(oz[k]),m=l.next();!m.done;m=l.next())m=m.value,a.w[m]=a.w[m]||new hz(k,m,f.zc[k],a.u),a.B[k]=a.B[k]||{},a.B[k][f.mimeType]=!0}}il()&&(a.w["com.youtube.fairplay"]=new hz("fairplay","com.youtube.fairplay","",a.u),
a.B.fairplay={"audio/mp4":!0,"video/mp4":!0});a.o=Dga(c,a.G,g.nv(a.u,"html5_hdcp_probing_stream_url")).filter(function(n){return!!a.w[n]})};
xz=function(a){if(!a.la())if(0==a.o.length)a.C(a.A);else{var b=a.o[0],c=a.w[b],d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};kz(c)&&(d.initDataTypes=["keyids","cenc"]);for(var e in a.B[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(Io((0,g.x)(a.J,a,c)),Io((0,g.x)(a.H,a)))}};
Kga=function(a,b){function c(f){b.u[f.contentType]=!0}
if(kz(b)){var d=Gv(),e;for(e in a.B[b.flavor])b.u[e]=!!d.canPlayType(e)}else d=b.keySystemAccess.getConfiguration(),d.audioCapabilities&&d.audioCapabilities.forEach(c),d.videoCapabilities&&d.videoCapabilities.forEach(c)};
Mga=function(a){if(iz()&&g.Zx)a.A.push(new hz("fairplay","com.apple.fps.1_0","",a.u));else{var b=Lga(),c=g.$a(a.o,function(d){var e=a.w[d],f=!1,k=!1,l;for(l in a.B[e.flavor])b(l,d)&&(e.u[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k});
c&&a.A.push(a.w[c]);a.o=[]}a.C(a.A)};
Lga=function(){var a=iz();if(a){var b=a.isTypeSupported;return function(c,d){return b(d,c)}}return(a=Gv())&&(a.addKey||a.webkitAddKey)?(0,g.x)(a.canPlayType,a):function(){return!1}};
Nga=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.bitrate=k;this.fps=f;this.audioItag=l||null;this.o=m||"";this.rb=void 0===n?null:n};
yz=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e=a[c],f=e.type.match(/codecs="([^"]*)"/);f=f?f[1]:"";var k=null;e.audio_track_id&&(k=new pv(e.name,e.audio_track_id,!!e.is_default));e=new Nga(e.itag,e.url,f,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families,k);b[e.itag]=b[e.itag]||[];b[e.itag].push(e)}return b};
zz=function(a,b,c){this.w=a;this.o=b;this.B=0;this.u="";this.A=c};
Az=function(a,b,c){a.A&&(b=g.Ad(b,{cpn:a.A}));c&&(b=g.Ad(b,{paired:c}));return b};
Bz=function(a,b){var c=a.itag.toString();b&&(c+=b.itag.toString());return c};
Oga=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.rb){f=b.rb;var k=f.getId().split(".")[0];k&&(d+='LANGUAGE="'+k+'",');a.u||f.getIsDefault()||(e="NO");f=f.getName()}k="";c&&(k=c.itag.toString());a=Az(a,b.url,k);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(Bz(b,c)+'",URI="'+(a+'"'))};
Pga=function(a){for(var b=[],c=[],d=0,e=a.o.length;d<e;++d){var f=a.o[d];f.bitrate<=a.B?b.push(f):c.push(f)}b.sort(function(k,l){return l.bitrate-k.bitrate});
c.sort(function(k,l){return k.bitrate-l.bitrate});
a.o=b.concat(c)};
Cz=function(a,b,c){this.Tf=a;this.u=b;this.o=null;this.w=c};
Rga=function(a,b,c,d,e){if(!(ol||ml()||il()))return br();var f=Qga(c),k=yz(c);if(!k)return br();c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),m;c=[];var n=[],p=[],t=g.R(a.experiments,"html5_hls_min_video_height"),u;for(u in k)if(!g.Q(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 B=m.value;if(B.width){if(!(B.height<t)){var D=k[B.audioItag];if(D&&(c.push(B),m="fairplay"==B.o?l:null,p.push(Dz(D,[B],
e,B.itag,B.width,B.height,B.fps,f,void 0,void 0,m)),!E||B.width*B.height*B.fps>E.width*E.height*E.fps))var E=B}}else n.push(B)}}m=p.reduce(function(G,F){return F.Tf.Pn()&&G},!0)?l:null;
d=Math.max(d,g.R(a.experiments,"html5_hls_initial_bitrate"));E=E||{};p.push(Dz(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 Fw(a.w,p,Nx(a,b))};
Dz=function(a,b,c,d,e,f,k,l,m,n,p){d=new zv(d,"application/x-mpegURL",new ov,new tv(e,f,k,null,void 0,m),void 0,p);a=new zz(a,b,c);a.B=n?n:1369843;return new Cz(d,a,l)};
Qga=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};
Fz=function(){return Da(function(a){Ez||(Ez=new Promise(function(b,c){var d=indexedDB.open("yt-player-local-media",2);d.onerror=function(e){"VersionError"==e.target.error.name?(e=indexedDB.open("yt-player-local-media"),e.onsuccess=function(f){return b(f.target.result)},e.onerror=c):c()};
d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();Ez=null};
b(f)};
d.onupgradeneeded=function(e){e=e.target.result;e.createObjectStore("index");e.createObjectStore("media")}}));
return a["return"](Ez)})};
Hz=function(a,b,c){var d;return Da(function(e){if(1==e.o)return ua(e,Fz(),2);d=e.u;return e["return"](Gz(d.transaction(a,"readwrite").objectStore(a).put(c,b)))})};
Iz=function(a,b){var c;return Da(function(d){if(1==d.o)return ua(d,Fz(),2);c=d.u;return d["return"](Gz(c.transaction(a).objectStore(a).get(b)))})};
Sga=function(){var a;return Da(function(b){if(1==b.o)return Ez?b=ua(b,Ez,3):(b.o=2,b=void 0),b;2!=b.o&&(a=b.u,a.close(),Ez=null);return b["return"](new Promise(function(c,d){var e=indexedDB.deleteDatabase("yt-player-local-media");e.onsuccess=function(){return c()};
e.onerror=function(){return d()}}))})};
Jz=function(a){window.localStorage["yt-player-lv"]=a.join(",")};
Kz=function(){var a=window.localStorage&&window.localStorage["yt-player-lv"];return a?a.split(","):[]};
Lz=function(a,b,c,d){var e;Da(function(f){e=""+a+"|"+b.id+"|"+c;return f["return"](Hz("media",e,d))})};
Tga=function(a,b,c){var d,e;Da(function(f){d=Mz(a,b);e=Hz("index",d,c);b&&(e=e.then(function(){var k=Kz();k.includes(a)||(k.push(a),Jz(k))}));
return f["return"](e)})};
Uga=function(a){return Da(function(b){return b["return"](Promise.all([Iz("index",Mz(a,!1)),Iz("index",Mz(a,!0))]).then(function(c){return c.filter(function(d){return d}).join(",")}))})};
Vga=function(a,b,c){return Da(function(d){return d["return"](Iz("media",""+a+"|"+b+"|"+c))})};
Wga=function(a){var b,c;return Da(function(d){if(1==d.o)return ua(d,Fz(),2);b=d.u;c=b.transaction(["index"]);return d["return"](Nz(c,a))})};
Xga=function(){var a,b;return Da(function(c){if(1==c.o)return ua(c,Fz(),2);a=c.u;b=a.transaction(["index"]);return c["return"](Promise.all(Kz().map(function(d){return Nz(b,d)})))})};
Nz=function(a,b){return Da(function(c){return c["return"](Promise.all([Gz(a.objectStore("index").get(Mz(b,!1))),Gz(a.objectStore("index").get(Mz(b,!0)))]).then(function(d){var e={videoId:b,totalSize:0,status:0};d=d.filter(function(k){return k});
if(!d.length)return e;d=eq(d.join(","));d=g.q(d);for(var f=d.next();!f.done;f=d.next())e.totalSize+=parseInt(f.value.clen,10);e.status=1;return e}))})};
Yga=function(a){var b,c,d,e,f;return Da(function(k){if(1==k.o)return b=Kz(),b.includes(a)&&(c=b.filter(function(l){return l!=a}),Jz(c)),ua(k,Fz(),2);
d=k.u;e=d.transaction(["index","media"],"readwrite");f=IDBKeyRange.bound(a+"|",a+"~");return k["return"](new Promise(function(l,m){e.objectStore("index")["delete"](f);e.objectStore("media")["delete"](f);e.oncomplete=function(){return l()};
e.onerror=m}))})};
Zga=function(){return Da(function(a){delete window.localStorage["yt-player-lv"];return a["return"](Sga())})};
Mz=function(a,b){return""+a+"|"+(b?"v":"a")};
Gz=function(a){return new Promise(function(b,c){a.onsuccess=function(){return b(a.result)};
a.onerror=function(){return c()}})};
Oz=function(a,b){this.Tf=a;this.o=b};
Pz=function(a,b){this.Tf=a;this.o=b};
$ga=function(a){var b=[];(0,g.y)(a,function(c){if(c.url){var d=Fv(c.type,"medium","0");b.push(new Pz(d,c.url))}});
return b};
aha=function(a,b){this.o=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16);this.encryptedClientKey=b};
g.Qz=function(a,b,c,d){this.C=new Set;this.J=a;this.P=b;a=c.split("#");this.F=parseInt(a[0],10);this.B=parseInt(a[1],10);this.w=parseInt(a[2],10);this.columns=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.o=parseInt(a[5],10);this.A=a[6];this.G=a[7];this.O=d};
Rz=function(a,b){var c=a.P;c=c.replace("$N",a.A);c=c.replace("$L",a.J.toString());c=c.replace("$M",b.toString());a.G&&(c=g.Ad(c,{sigh:a.G}));return bt(c)};
g.Sz=function(a,b){b>=a.Qs()&&a.xl();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var k=a.xl()+1-d*c;if(k<a.columns){var l=k;d=1}else l=a.columns,d=k<d?Math.ceil(k/a.columns):a.rows;return{url:Rz(a,c),column:f,columns:l,row:e,rows:d,Io:a.F*l,Ho:a.B*d}};
Tz=function(a){g.P.call(this);this.w=new g.vo;this.o=null;this.F=new Set;this.C=a||""};
Vz=function(a,b,c){for(c=Uz(a,c);0<=c;){var d=a.levels[c];if(d.Pb(Math.floor(b/(d.columns*d.rows)))&&(d=g.Sz(d,b)))return d;c--}return g.Sz(a.levels[0],b)};
Xz=function(a,b,c){c=Uz(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Pb(e)){d=a;var f=c,k=f+"-"+e;d.F.has(k)||(d.F.add(k),g.uo(d.w,f,{ky:f,Tz:e}))}Wz(a)};
Wz=function(a){if(!a.o&&!a.w.isEmpty()){var b=a.w.remove(),c=new Image;a.C&&(c.crossOrigin=a.C);c.src=Rz(a.levels[b.ky],b.Tz);c.onload=(0,g.x)(a.H,a,b.ky,b.Tz);a.o=c}};
Yz=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;Tz.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)};
Zz=function(a,b,c){return(a=a.levels[b])?a.Eo(c):-1};
Uz=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].F>=b)return a.A.set(b,d),d;a.A.set(b,c-1);return c-1};
$z=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.Qz.call(this,a,b,c,0);this.u=null;this.H=d?3:0};
aA=function(a,b,c,d){Yz.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].QB(c)};
bA=function(a){try{return g.fg(a)}catch(b){return null}};
bha=function(a){return navigator.mediaCapabilities?cA(a.videoInfos).then(function(){return a},function(){return a}):cr(a)};
cA=function(a){var b=navigator.mediaCapabilities;if(!b)return cr(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 jba(c).then(function(d){for(var e=0;e<d.length;e++)a[e].w=d[e].smooth;return a},function(){return a})};
eA=function(a){for(var b={},c=g.q(Object.keys(dA)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[dA[d]];e&&(b[d]=e)}return b};
fA=function(a,b){for(var c={},d=g.q(Object.keys(dA)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Ys(f)&&(c[dA[e]]=f)}return c};
iA=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(gA)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=gA[e];for(var f=g.q(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=hA(k.url);g.Ys(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=hA(a.url),g.Ys(a)&&(b["maxresdefault.jpg"]=a));return b};
hA=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.jA=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(cha(d))}return 1==b.length?b[0]:g.oe("SPAN",null,b)};
cha=function(a){var b=null,c=a.text;a.bold&&(b=g.oe("B",null,b||c));a.italics&&(b=g.oe("I",null,b||c));a.strikethrough&&(b=g.oe("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.oe("A",null,b||c),g.ad(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.oe("SPAN",null,c)};
kA=function(a){return a&&a.baseUrl||""};
lA=function(a){a=g.fq(a);for(var b in a){var c=a[b];a[b]=g.Ma(c)?c[0]:c}return a};
eha=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.Im=!0);d.allowInPlaceSwitch&&(a.fq=!0);if(c=d.loadPolicy)a.annotationsLoadPolicy=dha[c];if(c=d.invideoUrl)a.Vd=bt(c);a.Pr=!0;break}};
fha=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.cf=c)};
gha=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=mA(d.baseUrl);if(!e)return;d=new g.pz({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.lq=b.audioTracks||[];a.Uv=b.defaultAudioTrackIndex||0;a.Vv=b.translationLanguages?(0,g.Fc)(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}):
[];
a.Um=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
hha=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.Lg=g.T(c),a.pn=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"}};
iha=function(a,b){var c=b.heartbeatToken;c&&(a.drmSessionId=b.drmSessionId||"",a.heartbeatToken=c,a.Gx=parseInt(b.intervalMilliseconds,10),a.Hx=parseInt(b.maxRetries,10),a.Ix=!!b.softFailOnError,a.Ox=!!b.useInnertubeHeartbeatsForDrm,a.pm=!0)};
jha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.interstitials.map(function(f){var k=f.unserializedPlayerResponse;if(k&&!a.fa("web_player_unserialized_interstitial_killswitch"))return{is_yto_interstitial:!0,raw_player_response:k};if(f=f.playerVars)return Object.assign({is_yto_interstitial:!0},dq(f))})[0];
switch(e.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:d,Ip:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:d,Ip:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":e=parseInt(e.podConfig.timeToInsertAtMillis,10),a.interstitials=a.interstitials.concat({time:e,playerVars:d,Ip:0==e?5:7})}}};
kha=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
lha=function(a,b){var c=b.playerLegacyMulticameraRenderer;c&&(c=c.metadataList)&&(a.Uz=c,a.Ch=eq(c))};
mha=function(a,b){var c=b.playerControlsOverlayRenderer;if(c){var d=c.controlBgHtml;null!=d?(a.Pf=d,a.tc=!0):(a.Pf="",a.tc=!1);c.mutedAutoplay?(c=c.mutedAutoplay.playerMutedAutoplayOverlayRenderer)&&c.endScreen&&(c=c.endScreen.playerMutedAutoplayEndScreenRenderer)&&c.text&&(a.Vz=g.T(c.text)):a.mutedAutoplay=!1}};
nha=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.nm=c.durationMessage||"",a.Wj=!0):d&&(c=d.durationMessage,a.nm=c?g.T(c):"",a.Wj=!0))};
oha=function(a,b,c){var d=kA(b.googleRemarketingUrl);d&&(a.googleRemarketingUrl=d);if(d=kA(b.youtubeRemarketingUrl))a.youtubeRemarketingUrl=d;if(d=kA(b.ptrackingUrl)){d=lA(d);var e=d.oid;e&&(a.YA=e);if(e=d.pltype)a.ZA=e;if(e=d.ptchn)a.XA=e;if(d=d.ptk)a.So=encodeURIComponent(d)}if(d=kA(b.ppvRemarketingUrl))a.ppvRemarketingUrl=d;if(d=kA(b.qoeUrl)){d=g.fq(d);for(var f in d)e=d[f],d[f]=g.Ma(e)?e.join(","):e;if(f=d.cat)a.Ml=f;if(f=d.live)a.Ur=f}if(f=kA(b.remarketingUrl)){a.remarketingUrl=f;d=lA(f);d.foc_id&&
(a.Mc.focEnabled=!0);if(d=d.data)a.Mc.rmktEnabled=!0,d.engaged&&(a.Mc.engaged="1");d=a.Mc;e=f.match(od);d.baseUrl=md(e[1],null,e[3],e[4])+nd(g.pd(5,f))}if(f=kA(b.videostatsPlaybackUrl)){f=lA(f);if(d=f.adformat)c.adformat=d;if(c=f.autoplay)a.lh="1"==c;if(c=f.autonav)a.fj="1"==c;if(c=f.delay)a.Ke=g.jd(c);if(c=f.ei)a.eventId=c;"adunit"==f.el&&(a.lh=!0);if(c=f.feature)a.Ol=c;if(c=f.list)a.playlistId=c;if(c=f.of)a.At=c;if(c=f.osid)a.osid=c;if(c=f.referrer)a.referrer=c;if(c=f.sdetail)a.Yo=c;if(c=f.sourceid)a.IT=
c;if(c=f.ssrt)a.Wl="1"==c;if(c=f.subscribed)a.subscribed="1"==c,a.Mc.subscribed=c;if(c=f.uga)a.userGenderAge=c;if(c=f.upt)a.Bp=c;if(c=f.vm)a.videoMetadata=c}b.promotedPlaybackTracking&&(b=b.promotedPlaybackTracking,b.startUrls&&(a.Vo=b.startUrls[0]),b.firstQuartileUrls&&(a.Ht=b.firstQuartileUrls[0]),b.secondQuartileUrls&&(a.It=b.secondQuartileUrls[0]),b.thirdQuartileUrls&&(a.Jt=b.thirdQuartileUrls[0]),b.completeUrls&&(a.Gt=b.completeUrls[0]))};
pha=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.Xl=!!d.showContentThumbnail);c.enabled_engage_types=d.enabledEngageTypes;break}};
qha=function(a,b){var c=b.daiConfig;c&&c.enableDai&&(a.Ob=!0);if(c=b.audioConfig){var d=c.loudnessDb;null!=d&&(a.Ql=d);c.audioMuted&&(a.Fh=!0);c.muteOnStart&&(a.Fh=!0)}(c=b.playbackEndConfig)&&(c=c.endSeconds)&&a.mutedAutoplay&&(a.endSeconds=c);if(c=b.fairPlayConfig){if(d=c.certificate)a.Le=bA(d);d=parseInt(c.keyRotationPeriodMs,10);0<d&&(a.ln=d);c=parseInt(c.keyPrefetchMarginMs,10);0<c&&(a.kn=c)}if(c=b.playbackStartConfig){a.Et=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.zr=parseInt(d,10)/1E3;if(c=c.outroSkipDurationMs)a.zt=parseInt(c,10)/1E3}if(d=b.skippableIntroConfig)c=parseInt(d.startMs,10),d=parseInt(d.endMs,10),isNaN(c)||isNaN(d)||(a.Qx=c,a.Px=d);if(c=b.streamSelectionConfig)a.ag=parseInt(c.maxBitrate,10);(c=b.visualizerConfig)&&c.isVisualizerEligible&&
(a.isVisualizerEligible=!0);if(c=b.vrConfig)a.Xh="1"==c.partialSpherical;if(c=b.webDrmConfig){c.skipWidevine&&(a.TB=!0);if(d=c.widevineServiceCert)a.lm=bA(d);c.useCobaltWidevine&&(a.useCobaltWidevine=!0);c.startWithNoQualityConstraint&&(a.nk=!0)}if(c=b.mediaCommonConfig)if(c=c.dynamicReadaheadConfig)a.maxReadAheadMediaTimeMs=c.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=c.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=c.readAheadGrowthRateMs||NaN};
xha=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=dq(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=rha[l]);(l=k.projectionType)&&(f.projection_type=sha[l]);(l=k.stereoLayout)&&(f.stereo_layout=tha[l]);(l=k.spatialAudioType)&&(f.spatial_audio_type=uha[l]);if(m=k.drmFamilies){l=[];m=g.q(m);for(var n=m.next();!n.done;n=m.next())l.push(nA[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=vha[l])&&(f.primaries=l),(k=k.transferCharacteristics)&&(k=wha[k])&&(f.eotf=k);e.push(g.xd(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.Rq=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)l=dq(l),k.sp=l.sp,k.s=l.s,k.url=l.url;f.stereo3d&&(k.stereo3d=1);e.push(g.xd(k))}a.Tj=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(nA[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.xd(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[nA[d]]=f);a.zc=c}if(c=b.drmParams)a.drmParams=c;if(c=b.dashManifestUrl)a.Xd=g.Ad(c,{cpn:a.clientPlaybackNonce});if(c=b.hlsManifestUrl)a.hlsvp=c;if(b=b.probeUrl)a.probeUrl=bt(g.Ad(b,{cpn:a.clientPlaybackNonce}))};
yha=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.Mc.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=oA(d);if(d=b.channelId)a.xg=d,c.ucid||(c.ucid=d);if(d=b.viewCount)a.wB=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.ua=c,a.isPremiere=!!c&&!b.isLiveContent);if(b=b.thumbnail)a.Ye=iA(b)};
zha=function(a,b){if(b.playerLegacyDesktopYpcTrailerRenderer){var c=b.playerLegacyDesktopYpcTrailerRenderer;a.Rp=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.om=e?g.T(e):""}c&&(a.Lp=c.itemTitle||"",c.itemUrl&&(a.Mp=c.itemUrl),c.itemBuyUrl&&(a.Jp=c.itemBuyUrl),a.Kp=c.itemThumbnail||
"",a.Pp=c.offerHeadline||"",a.Op=c.offerDescription||"",a.Qp=c.offerId||"",a.Np=c.offerButtonText||"",a.Cu=c.offerButtonFormattedText||null,a.qm=c.overlayDurationMsec||NaN,a.om=c.fullVideoMessage||"",a.Ki=!0);d&&((c=d.unserializedPlayerResponse)&&!a.fa("web_player_unserialized_ypc_killswitch")?a.Xj={raw_player_response:c}:(c=d.playerVars,a.Xj=c?dq(c):null),a.Ki=!0)};
Bha=function(a,b,c,d){b.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);if(b.isPostLiveDvr)a.ye=!0;else{var e=!1;if(a.cg)a.allowLiveDvr=pA(!0),a.ua=!0;else if(b.isLive){d.livestream="1";a.allowLiveDvr=pA(!!b.isLiveDvrEnabled);a.De=27;b.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);if(e=b.latencyClass)a.latencyClass=Aha[e]||"UNKNOWN";a.pk=!0;if(b=b.liveChunkReadahead)a.liveChunkReadahead=b;if(c=c&&c.livePlayerConfig)if(c.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0),c.hasSubfragmentedWebm&&
(a.bj=!0),c.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0),c=c.liveExperimentalContentId)a.liveExperimentalContentId=parseInt(c,10);e=!0}else b.isUpcoming&&(e=!0);e&&(a.ua=!0,d.adformat&&"8"!=d.adformat.split("_")[1]||(a.fa("live_fresca_v2")?a.Oc.push("heartbeat"):(a.sn=!0,a.Oc.push("fresca"))),a.pm=!0,a.hn=!0)}};
qA=function(a,b){Zr.call(this,1,arguments)};
rA=function(a,b){Zr.call(this,1,arguments);this.o=a};
Cha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
tA=function(a){var b=sA(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};
uA=function(a){return!!g.w("yt.timing."+(a||"")+"pingSent_")};
vA=function(a,b){g.Ia("yt.timing."+(b||"")+"pingSent_",a,void 0)};
xA=function(a){return g.w("ytcsi."+(a||"")+"data_")||wA(a)};
yA=function(a){a=xA(a);a.info||(a.info={});return a.info};
sA=function(a){a=xA(a);a.tick||(a.tick={});return a.tick};
zA=function(a){var b=xA(a).nonce;b||(b=Or(),xA(a).nonce=b);return b};
wA=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
BA=function(a){var b=sA(a||""),c=tA(a);c&&!AA&&(bs(Dha,new qA(Math.round(c-b._start),a)),AA=!0)};
CA=function(){var a=g.w("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
EA=function(a){a=a||"";var b=DA();if(b[a])return b[a];var c=CA(),d={timerName:a,info:{},tick:{}};c.push(d);return b[a]=d};
DA=function(){var a=g.w("ytcsi.reference");if(a)return a;CA();return g.w("ytcsi.reference")};
FA=function(){this.o=0};
GA=function(){FA.o||(FA.o=new FA);return FA.o};
IA=function(a,b){HA[b]=HA[b]||{count:0};var c=HA[b];c.count++;c.time=(0,g.N)();a.o||(a.o=Mp(function(){var d=(0,g.N)(),e;for(e in HA)HA[e]&&6E4<d-HA[e].time&&delete HA[e];a&&(a.o=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Lq("CSI data exceeded logging limit with key",b),0===b.indexOf("info")?Nq(c):Mq(c)),!0):!1};
JA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.$o("csi_on_gel")||!!xA(a).useGel};
NA=function(a,b,c){c=KA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a in LA){c=LA[a];g.cb(Eha,c)&&(b=!!b);a in MA&&"string"===typeof b&&(b=MA[a]+b.toUpperCase());a=b;b=c.split(".");d=c={};for(var e=0;e<b.length-1;e++){var f=b[e];d[f]={};d=d[f]}d[b[b.length-1]]=a;return ws({},c)}g.cb(Fha,a)||Nq(new Lq("Unknown label logged with GEL CSI",a))};
KA=function(a){a=xA(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};
PA=function(a,b,c){null!==b&&(yA(c)[a]=b,JA(c)?(a=NA(a,b,c))&&OA(a,c):EA(c||"").info[a]=b)};
OA=function(a,b){if(JA(b)){var c=EA(b||"");ws(c.info,a);c=KA(b);"gelInfos"in c||(c.gelInfos={});ws(c.gelInfos,a);c=zA(b);GA().info(a,c)}};
QA=function(a,b){var c=sA(b);return a in c};
RA=function(a){wA(a);Gha();vA(!1,a);a||(g.L("TIMING_ACTION")&&Eo("PREVIOUS_ACTION",g.L("TIMING_ACTION")),Eo("TIMING_ACTION",""))};
WA=function(a,b,c){var d=(c=c?c:a)||"",e=DA();e[d]&&delete e[d];var f=CA(),k={timerName:d,info:{},tick:{}};f.push(k);e[d]=k;EA(c||"").info.actionType=a;SA(c);RA(c);xA(c).useGel=!0;Eo(c+"TIMING_AFT_KEYS",b);Eo(c+"TIMING_ACTION",a);TA("c",c);JA(c)&&(a={actionType:UA[g.L((c||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:UA[g.L("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},b=zA(c),GA().info(a,b));g.Ia("ytglobal.timing"+(c||"")+"ready_",!0,void 0);VA(c)};
ZA=function(a,b,c){var d=sA(c);if(g.$o("use_first_tick")&&XA(a,c))return d[a];if(!b&&"_"!=a[0]){var e=a;YA.mark&&(fc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),YA.mark(e))}e=b||(0,g.N)();d[a]=e;e=KA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(JA(c)){EA(c||"").tick[a]=b||(0,g.N)();e=zA(c);if("_start"===a){var f=GA();IA(f,"baseline_"+e)||Kq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else GA().tick(a,e,b);BA(c);e=!0}else e=!1;e||(VA(c),EA(c||"").tick[a]=b||(0,g.N)());
return d[a]};
$A=function(a){var b="above_the_fold";YA&&YA.measure&&(fc(b,"measure_")||(b="measure_"+b),a?YA.measure(b,a):YA.measure(b))};
TA=function(a,b){PA("yt_sts",a,b);ZA("_start",void 0,b)};
XA=function(a,b){var c=sA(b);return a in c};
aB=function(a){XA("_start","video_to_ad")&&!XA(a,"video_to_ad")&&ZA(a,void 0,"video_to_ad")};
bB=function(a,b,c){null!==b&&(yA(c)[a]=b,JA(c)?(a=NA(a,b,c))&&OA(a,c):EA(c||"").info[a]=b)};
VA=function(a){if(!uA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=sA(a);if(g.w("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&tA(a))if(BA(a),a)cB(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&&cB(a)}}};
Hha=function(){switch(rp()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
cB=function(a){if(!JA(a)){var b=sA(a),c=yA(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;if(c.h5jse){var l=window.location.protocol+g.w("ytplayer.config.assets.js");(l=YA.getEntriesByName?YA.getEntriesByName(l)[0]:void 0)?c.h5jse=Math.round(c.h5jse-l.responseEnd):delete c.h5jse}b.aft=tA(a);var m=sA(a);l=m.pbr;var n=m.vc;m=m.pbs;l&&n&&m&&l<n&&n<m&&yA(a).yt_pvis&&"youtube"==e&&(PA("yt_lt","hot_bg",a),e=b.vc,
l=b.pbs,delete b.aft,c.aft=Math.round(l-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)&&(l=Math.round(b[t]-d),p[t]=l,e.push(t+"."+l));f.rt=e.join(",");(b=g.w("ytdebug.logTiming"))&&b(f,p);c=!!c.ap;g.$o("debug_csi_data")&&(b=g.w("yt.timing.csiData"),b||(b=[],g.Ia("yt.timing.csiData",b,void 0)),b.push({page:location.href,time:new Date,args:f}));b="";for(var u in f)f.hasOwnProperty(u)&&(b+="&"+u+"="+f[u]);f="/csi_204?"+b.substring(1);window.navigator&&
window.navigator.sendBeacon&&c?Wq(f):g.Uq(f);vA(!0,a);bs(dB,new rA(p.aft+(k||0),a))}};
SA=function(a){if(!JA(a)&&!uA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(ZA("aa",void 0,a),PA("ap",1,a),PA("yt_fss","c",a),cB(a))}};
g.eB=function(a,b){g.P.call(this);this.La=a;this.adModule=!1;this.dk=this.adaptiveFormats="";this.zc=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.backgroundable=!1;this.Vd="";this.fq=this.Im=!1;this.dy=null;this.Fh=this.Wj=this.Ki=this.pm=this.sn=this.Pr=!1;this.Ql=NaN;this.author="";this.Jg=0;this.Pm=this.rw=this.mq=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Mf=this.gk="";this.contentCheckOk=!1;this.Ke=0;this.hn=this.pk=!1;this.endSeconds=
0;this.Le=null;this.Rq="";this.Dd=!1;this.ag=this.dj=0;this.cq=this.pipable=this.fj=!1;this.WA=0;this.ua=this.cg=this.isPrivate=this.isListed=this.Er=this.mutedAutoplay=this.lh=!1;this.Ur="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Qn=this.Or=this.ye=!1;this.latencyClass="UNKNOWN";this.Ob=this.isMdxPlayback=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.vf=0;this.reloadReason="";this.Nr=this.Zx=this.Yg=!1;this.keywords={};this.ah="";
this.Tn=0;this.km=!1;this.liveChunkReadahead=NaN;this.Vr=0;this.Wk=null;this.Xk=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Oc=[];this.Od=void 0;this.racyCheckOk=!1;this.hp=0;this.va=null;this.autonavState=1;this.re=this.eu=!1;this.rp=this.Wg=this.startSeconds=0;this.Fp=this.Rv=this.AC=Kw;this.Lj=this.suggestions=null;this.ku=!1;this.hlsFormats=this.Tj=this.expandedSubtitle=this.Mq=this.subtitle=this.title="";this.Wn=this.qp=this.Id=this.sg=this.ie=this.Sl=
this.Ln=null;this.Ii="vvt";this.Cu=null;this.JC="";this.qm=NaN;this.Rp=this.Mp=this.Lp=this.Kp=this.Jp=this.Qp=this.om=this.Pp=this.Op=this.Np="";this.Xj=null;this.CB=!1;this.Mc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.Hx=this.Gx=NaN;this.si=this.jj=this.Eh=this.Ox=this.Ix=!1;this.Xl=!0;this.Ye={};this.captionTracks=[];this.lq=[];this.Uv=0;this.Vv=[];this.Um=!1;this.lk=new rz("und",new pv("Default","und",!0));this.Qr=0;this.sd=null;this.Dj=[];this.Ch=[];this.xu=this.Nl=
"";this.slotPosition=-1;this.breakType=0;this.Pc=this.yg=this.Ia=this.Hq=this.hf=null;this.Dr=this.nk=this.useCobaltWidevine=this.TB=this.Xh=this.dg=!1;this.Px=this.Qx=NaN;this.defraggedFromSubfragments=this.bj=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.mh=this.zu=this.Ji=!1;this.interstitials=[];this.tc=this.Fr=!1;this.Ml=this.Vz=this.Pf="";this.isVisualizerEligible=!1;this.wt=null;this.Bb=this.xt="";this.rf=this.Nx=!1;this.Uz=this.nm="";this.Et=this.zt=this.zr=this.readAheadGrowthRateMs=
this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Zl=!1;this.Kj=this.yi=!0;this.errorDetail=this.userGenderAge="";this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Lg=this.errorReason=this.errorCode=null;this.an=this.Zm="";this.IO=this.fa("web_player_watch_next_response_parsing");this.fa("web_player_ux_module_wait")&&this.La.sa&&this.Oc.push("ux");this.Fq=
this.Ri=!1;this.cB={};this.jp(b)};
gB=function(a,b){a.Dw=ox(a.Dw,b.fflags);var c=b.iv_invideo_url;c&&(a.Vd=bt(c));a.Im=S(a.Im,b.iv_ads_only);a.fq=S(a.fq,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=ox(a.author,b.author);a.gk=mA(b.ttsurl)||a.gk;a.mq=S(a.mq,b.cc_asr);a.Mf=ox(a.Mf,b.channel_path);a.channelBanner=ox(a.channelBanner,b.channel_banner);a.videoCountText=ox(a.videoCountText,b.video_count_text);a.autonavState=mx(a.autonavState,b.autonav_state,Iha);a.clientPlaybackNonce=ox(a.clientPlaybackNonce,b.cpn);
a.subscribed=S(a.subscribed,b.subscribed);a.wB=nx(a.wB,b.view_count);a.shortViewCount=ox(a.shortViewCount,b.short_view_count_text);a.title=ox(a.title,b.title);a.subtitle=ox(a.subtitle,b.subtitle);a.Mq=ox(a.Mq,b.expanded_title);a.expandedSubtitle=ox(a.expandedSubtitle,b.expanded_subtitle);a.dk=ox(a.dk,b.aria_label);a.ypcPreview=ox(a.ypcPreview,b.ypc_preview);a.Du=ox(a.Du,b.ypc_origin);a.nm=ox(a.nm,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.CB=S(a.CB,b.requires_purchase);a.showShareButton=
!S(!a.showShareButton,b.ss);a.yi=S(a.yi,b.showwatchlater);a.Kj=S(a.Kj,b.shownotifybutton);a.Zl=S(a.Zl,b.copy_share);if(c=b.keywords)a.keywords=oA(c.split(","));if(c=b.rvs)a.suggestions=eq(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=ox(a.oauthToken,b.oauth_token);a.ah=ox(a.ah,b.kpt);a.visitorData=ox(a.visitorData,b.visitor_data);if(c=b.session_data)a.Nb=bq(c);if(c=
b.endscreen_autoplay_session_data)a.zw=bq(c);a.jn=ox(a.jn,b.endscreen_ad_tracking_data);a.EC=S(a.EC,b.wait_for_vast_info_cards_xml);a.gu=S(a.gu,b.suppress_creator_endscreen);a.Yx=S(a.Yx,b.is_trueview_action);a.iC=ox(a.iC,b.tracking_list);a.Zm=ox(a.Zm,b.clip);a.an=ox(a.an,b.clipt);fB(a,b)};
jB=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.yg=c,a.fa("web_player_include_innertube_commands")&&(c=a.yg.playerOverlays)&&c.playerOverlayRenderer&&(c=c.playerOverlayRenderer,c.subscribeCommand&&(a.subscribeCommand=c.subscribeCommand),c.unsubscribeCommand&&(a.unsubscribeCommand=c.unsubscribeCommand),c.addToWatchLaterCommand&&(a.addToWatchLaterCommand=c.addToWatchLaterCommand),c.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=
c.removeFromWatchLaterCommand),c.getSharePanelCommand&&(a.getSharePanelCommand=c.getSharePanelCommand)),a.fa("embedded_player_watch_next_parse_killswitch")||(c=a.yg.playerOverlays)&&c.playerOverlayRenderer&&(c=c.playerOverlayRenderer,c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer&&hB(a,b,c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)),a.IO)){c=a.yg.contents;var e;if(c){if((e=c.singleColumnWatchNextResults)&&e.autoplay&&e.autoplay.autoplay&&!e.playlist){var f=e.autoplay.autoplay.sets;
e={};d={};var k=null;if(f){for(var l=g.q(f),m=l.next();!m.done;m=l.next())if((m=m.value.autoplayVideoRenderer)&&m.compactVideoRenderer){k=m.compactVideoRenderer;break}(f=f[0].autoplayVideo)&&(f=f.clickTrackingParams)&&(e.itct=f)}else e.feature="related-auto";if(k){d.autonav="1";d.video_id=k.videoId;if(f=k.shortBylineText)d.author=g.T(f);if(k=k.title)d.title=g.T(k)}d.endscreen_autoplay_session_data=g.xd(e);a.suggestions=[d]}e=c.twoColumnWatchNextResults}c=a.yg.playerOverlays;if(c&&(c=c.playerOverlayRenderer)){if(d=
c.endScreen)if(d=d.watchNextEndScreenRenderer)var n=d.results;if(d=c.videoDetails){var p=d.embeddedPlayerOverlayVideoDetailsRenderer;if(d=d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Pq=d.title,a.Oq=d.byline}if(d=c.actions)for(d=g.q(d),k=d.next();!k.done;k=d.next())k=k.value,k.likeButtonRenderer&&(a.likeButtonRenderer=k.likeButtonRenderer);g.Bx(a.La)&&(a.yi=!!c.addToMenu);iB(a,c.shareButton)}!n&&e&&(c=e.endScreen&&e.endScreen.endScreen)&&(n=c.results);p&&hB(a,b,p);if(n){p=e||null;e=nx(0,b.autoplay_count);
c=[];k=!0;n=g.q(n);for(d=n.next();!d.done;d=n.next()){l=d.value;f=void 0;d=null;if(l.endScreenVideoRenderer){l=l.endScreenVideoRenderer;m=l.title;d={id:l.videoId,length_seconds:l.lengthInSeconds};var t=l.shortBylineText;t&&(d.author=g.T(t));if(t=l.shortViewCountText)d.short_view_count_text=g.T(t);m&&(d.title=g.T(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(d.aria_label=m.label));if(m=l.navigationEndpoint)f=m.clickTrackingParams;if(m=l.thumbnailOverlays)for(m=g.q(m),t=m.next();!t.done;t=
m.next())if((t=t.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==t.style){d.live_playback="1";break}l=iA(l.thumbnail);Object.assign(d,eA(l))}else if(l.endScreenPlaylistRenderer){l=l.endScreenPlaylistRenderer;f=l.navigationEndpoint;if(!f)continue;d=f.watchEndpoint;if(!d)continue;d=d.videoId;d={list:l.playlistId,video_id:d,playlist_length:l.videoCount,thumbnail_ids:d};if(m=l.title)d.playlist_title=g.T(m);if(m=l.shortBylineText)d.playlist_author=g.T(m);f=f.clickTrackingParams;l=iA(l.thumbnail);Object.assign(d,
eA(l))}d&&(d.session_data=g.xd({itct:f}),k?(k={autonav:1,playnext:e},d.list&&(k.autoplay="1"),p&&(f=p.autoplay)&&(f=f.autoplay)&&(f=f.sets)&&(f=f[0])&&(f=f.autoplayVideo)&&(f=f.clickTrackingParams)&&(k.itct=f),k.itct||(k.feature="related-auto"),d.endscreen_autoplay_session_data=g.xd(k),c.splice(0,0,d),k=!1):c.push(d))}a.suggestions=c}a.yg.currentVideoThumbnail&&(a.Ye=iA(a.yg.currentVideoThumbnail))}};
Jha=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};
mB=function(a){var b=a.rf,c=!!a.ka&&(a.ka.fg()||a.ka.gg()||a.ka.Yf()),d=a.La,e=!!a.ka&&a.ka.Pe,f=kB(a),k=a.zu;a.isAd();var l=a.Rk(),m=lB(a,"html5_samsung_vp9_live"),n=new Aga;n.H=f;n.C=k&&d.Db;el("windows nt 5.1")&&!g.pw&&(n.o=!0);c&&yx&&6>=zx&&(n.o=!0);if(f=c)f=d.fa("disable_html5_ambisonic_audio")||!(g.$x(d)||d.fa("html5_enable_spherical")||d.fa("html5_enable_spherical3d"))?!1:ay(d);f&&(n.G=!0);b&&(n.o=!0,n.U=!0);l&&!g.Q(d.experiments,"html5_otf_prefer_vp9")&&(n.o=!0);nw(d.w,xw)&&(g.Q(d.experiments,
"html5_enable_aac51")&&(n.B=!0),g.Q(d.experiments,"html5_enable_ac3")&&(n.u=!0),g.Q(d.experiments,"html5_enable_eac3")&&(n.A=!0));!g.Q(d.experiments,"html5_kaios_hd_killswitch")&&tx&&(n.O=480);if(e||c)n.J=!1;n.P=!1;b=gz(d);0<b&&2160>b&&window.SourceBuffer&&SourceBuffer.prototype.changeType&&(n.w=b);2160<=b&&(n.S=!0);Xw()&&(n.V=!1);n.F=m;il()&&a.Ia&&a.Ia.playerConfig&&a.Ia.playerConfig.webPlayerConfig&&a.Ia.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.u=!0,n.A=!0);return n};
qB=function(a,b){var c;(c=!b)||(c=!(!nB(a)&&a.adaptiveFormats));if(c)return!1;c=oB(b);var d=a.zc;var e=a.lengthSeconds,f=a.ua,k=a.ye,l=a.La.experiments,m=rga(c);d=f||k?qga(c,k,d,l):3==m?pga(c,d,e,l):oga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=Ty(c.url,c.sp,c.s,a.La.experiments),c=parseInt(c.get("max_sq"),10)||Infinity,isFinite(c)&&(a.Or=!0)));if(c=d.u)c=!(a.fa("html5_manifestless_vp9")||a.fa("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||
!Kha(d));if(c)return d.dispose(),!1;pB(a,d);d.w&&d.subscribe("cuepointsadded",a.ew,a);Py(d)&&(a.jj=!0);return!0};
nB=function(a){return il()&&!rB(a)};
rB=function(a){return lB(a,"html5_enable_tvos_dash_dogfood")||a.fa("html5_enable_tvos_dash")&&MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
Kha=function(a){return a.u&&Jv('video/webm; codecs="vp9"')&&Eb(a.o,function(b){return Av(b.info)})};
sB=function(a){return!(!a.ka||!a.ka.u)};
uB=function(a){var b=a.va&&a.va.videoInfos.length&&2==a.va.videoInfos[0].containerType;if(!(a.va&&a.va.videoInfos.length&&g.dv(a.va.videoInfos[0])||a.fa("html5_streaming_xhr_try_webm")&&b)||!sB(a)||g.hl()&&!a.fa("html5_streaming_xhr_try_cobalt")||g.Dw&&!a.fa("html5_streaming_xhr_try_edge"))return!1;b=a.fa("html5_streaming_response_mediastream_rewrite_v2");var c="ULTRALOW"==a.latencyClass;a=21530001==tB(a);return b||c||a};
vB=function(a){if(!uB(a))return!1;var b="ULTRALOW"==a.latencyClass||21530001==tB(a);return a.fa("html5_live_benchmark_incremental_parsing")&&!b||!Os()||g.hl()&&(a=dl(),16<=a&&17>a)?!1:window.AbortController||b?!0:!1};
wB=function(a){var b=sB(a),c=vB(a);return(a.hasSubfragmentedFmp4||a.bj)&&b?c&&Os()?3:2:a.defraggedFromSubfragments&&b?-1:1};
tB=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ka&&5<=dz(a.ka)?21530001:a.liveExperimentalContentId};
xB=function(a){return il()&&rB(a)?!1:!Aw()||a.rw?!0:!1};
Lha=function(a){a.Dd=!0;a.Eh=!1;if(!a.Xd&&yB(a))Uga(a.videoId).then(function(d){return qB(a,d)},function(){return qB(a,a.adaptiveFormats)}).then(function(){return zB(a)});
else{Xs(a.Xd)||Nq(new Lq("DASH MPD Origin invalid: ",a.Xd));var b=a.Xd,c=g.R(a.La.experiments,"dash_manifest_version")||4;b=g.Ad(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ad(b,{pacing:0}));uga(b,a.La.experiments,a.ua).then(a.NK,a.MK,a);ZA("mrs")}};
g.AB=function(a){if(!a.Pc)return null;var b=null!=a.Pc.latitudeE7&&null!=a.Pc.longitudeE7?a.Pc.latitudeE7+","+a.Pc.longitudeE7:",";return b+=","+(a.Pc.clientPermissionState||0)+","+(a.Pc.locationRadiusMeters||"")+","+(a.Pc.locationOverrideToken||"")};
zB=function(a){a.la()||(a.Dd=!1,a.R("dataloaded"))};
pB=function(a,b){a.ka=b;g.C(a,b);BB(a)&&a.Oc.push("webgl");a.ka.isLive||(a.ua=!1);var c=b.sourceUrl.split("/");-1!=c.indexOf("manifest_duration")&&(a.Wk=parseInt(c[c.indexOf("manifest_duration")+1],10))};
CB=function(a){return a.zc?!0:a.fa("web_player_content_protection_manifest_killswitch")?!1:!!a.ka&&Py(a.ka)};
Mha=function(a,b){var c=b||xB(a);if(a.ka&&!c){if(kB(a)){c=a.ka;var d=a.ua;if(!c.o["0"]){var e=new zv("0","fakesb",void 0,new tv(0,0,0,void 0,void 0,"auto"),null,null,1);c.o["0"]=d?new ty(new ct("http://www.youtube.com/videoplayback"),e,"fake"):new Ky(new ct("http://www.youtube.com/videoplayback"),e,new Ju(0,0),new Ju(0,0),0,NaN)}}return Iga(mB(a),a.La.w,a.ka,a.sd).then(a.cu,void 0,a)}return br()};
g.DB=function(a){return nB(a)&&a.Le?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Aa&&a.Aa.zc||null};
EB=function(a){var b=a.Ia&&a.Ia.paidContentOverlay&&a.Ia.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.QN};
FB=function(a){var b=a.Ia&&a.Ia.paidContentOverlay&&a.Ia.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.jd(b.durationMs):a.WA};
GB=function(a){var b="";if(a.Ur)return a.Ur;a.ua&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.HB=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
IB=function(a){return!!(a.Xd||a.adaptiveFormats||a.Tj||a.Lj||a.hlsvp)};
JB=function(a){var b=g.cb(a.Oc,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Dd&&(IB(a)||g.cb(a.Oc,"fresca")||g.cb(a.Oc,"heartbeat")||b)};
oB=function(a,b){var c=eq(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};
iB=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Zl=!!c.copyTextEndpoint)}};
Nha=function(a,b,c){c=c.thumbnailPreviewRenderer;var d=c.controlBgHtml;null!=d?(a.Pf=d,a.tc=!0):(a.Pf="",a.tc=!1);if(d=c.defaultThumbnail)a.Ye=iA(d);a.fa("web_player_embedded_details_parsing_killswitch")||(d=c.videoDetails&&c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&hB(a,b,d);if(b=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Pq=b.title,a.Oq=b.byline,b.musicVideoType&&(a.musicVideoType=b.musicVideoType);a.yi=!!c.addToWatchLaterButton;iB(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&&(b=b.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig,b.commonConfig&&b.commonConfig.url&&(a.xt=b.commonConfig.url))))};
hB=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.Kj=!!c.notificationPreferenceToggleButton}};
g.KB=function(a){return a.ua&&!a.allowLiveDvr};
LB=function(a){return a.ua&&a.allowLiveDvr};
BB=function(a){return a.gg()||a.fg()||a.ej()||a.Yf()};
Oha=function(a){a.va=a.va.u};
g.MB=function(a){if(a.gu)return null;var b=a.dy;b||(b=a.Ia&&a.Ia.endscreen&&a.Ia.endscreen.endscreenUrlRenderer&&a.Ia.endscreen.endscreenUrlRenderer.url);return b||null};
g.NB=function(a){return a.gu?null:a.Ia&&a.Ia.endscreen&&a.Ia.endscreen.endscreenRenderer||null};
g.OB=function(a){return a.Ia&&a.Ia.cards&&a.Ia.cards.cardCollectionRenderer||null};
g.PB=function(a){if(!a.Ia||!a.Ia.annotations)return null;a=g.q(a.Ia.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};
QB=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.La.S};
RB=function(a){return a.lh||"detailpage"==QB(a)||a.mutedAutoplay};
SB=function(a){if(RB(a)){if("detailpage"==QB(a))return a.fj||0<a.vf;if("adunit"!=QB(a)||!a.Ll)return!0}return!1};
TB=function(a){var b=1,c=g.R(a.La.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);return Math.min(1,Math.pow(10,-a.Ql/20))||b};
kB=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"==a.La.deviceParams.c&&"MUSIC"==a.La.deviceParams.ctheme;!a.Ji&&(Wx(a.La)||c)&&b.includes(a.musicVideoType)&&(a.Ji=!0);if(b=g.hl())b=/Starboard\/([0-9]+)/.exec(g.Mc),b=10>(b?parseInt(b[1],10):NaN);if(c=!a.Ji)c=a.La,c="TVHTML5_CAST"==c.deviceParams.c||"TVHTML5"==c.deviceParams.c&&c.deviceParams.cver.startsWith("6.20130725");c&&"MUSIC"==a.La.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.Ji=!0);return!a.La.deviceHasDisplay||a.Ji&&a.La.Db};
UB=function(a){return!!(a.fa("mweb_hoffline")&&a.adaptiveFormats&&a.Ri&&a.La.Db)};
yB=function(a){var b;if(b=a.fa("mweb_hoffline")&&a.adaptiveFormats)b=a.videoId,b=!!b&&Kz().includes(b);return!(!b||a.Ri)};
VB=function(a){return(a=a.Hq)&&a.showError?a.showError:!1};
WB=function(a){return a.fa("disable_rqs")?!1:lB(a,"html5_high_res_logging")};
lB=function(a,b){return a.fa(b)?!0:(a.Dw||"").includes(b+"=true")};
fB=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Vo=c.quartile_0_url,a.Ht=c.quartile_25_url,a.It=c.quartile_50_url,a.Jt=c.quartile_75_url,a.Gt=c.quartile_100_url)};
pA=function(a){return a?Aw()?!0:XB&&5>YB?!1:!0:!1};
oA=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};
mA=function(a){if(a){if($s(a))return a;a=at(a);if($s(a,!0))return a}return""};
ZB=function(a,b){var c={};this.u=(c.c1a=(0,g.x)(this.C,this),c.c3a=(0,g.x)(this.F,this),c.c6a=(0,g.x)(this.A,this),c);this.T=a;this.w=!!b;this.T&&this.T.cf?this.o=dq(this.T.cf):this.o=[]};
Pha=function(a){if(a.T&&a.T.cf){var b=[a.T.cf],c;for(c in a.u)if(a.o[c]&&a.u[c]){var d=a.u[c](a.o);d&&b.push(d)}return b.join("&")}return null};
Qha=function(a){var b={};Object.assign(b,a.u);"c1b"in a.o&&(b.c1a=(0,g.x)(a.B,a));if(a.T&&a.T.cf){var c=[a.T.cf],d;for(d in b)if(a.o[d]&&b[d]){var e=b[d](a.o);e&&c.push(e)}return new Promise(function(f){Promise.all(c).then(function(k){return f(k.filter(function(l){return!!l}).join("&"))})})}return Promise.resolve(null)};
$B=function(a){return a.w?!!Rq.o:(a=g.w("yt.abuse.player.botguardInitialized"))&&a()};
bC=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 aC(a)};
aC=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};
cC=function(a,b,c,d){if(g.Pa(a)&&!g.Ma(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};
dC=function(){};
g.eC=function(){g.A.call(this);this.w=null;this.F=this.C=!1;this.B=new g.gf;g.C(this,this.B)};
fC=function(a){a=a.Bk();return 1>a.length?NaN:a.end(a.length-1)};
gC=function(a,b){a.w&&null!==b&&b.o===a.w.o||(a.w&&a.w.dispose(),a.w=b)};
hC=function(a){return $v(a.md(),a.getCurrentTime())};
Rha=function(a,b){if(0==a.fe()||0<a.Se())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.Bk();if(d.length||!c)return Xv(d,b)}return c};
iC=function(a){var b=a.md();return 0<Zv(b)&&a.getDuration()?Yv(b,a.getCurrentTime()):0};
jC=function(a){var b=a.md();return 0<Zv(b)&&a.getDuration()?b.end(b.length-1):0};
kC=function(a){var b=a.getDuration();return Infinity==b?1:b?iC(a)/b:0};
lC=function(a){switch(a.Se()){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}};
mC=function(a,b,c){g.Je.call(this,b,a);this.u=c||null};
g.nC=function(a){g.eC.call(this);this.o=a;this.u={}};
oC=function(a){this.u=window.Float32Array?new Float32Array(a):Array(a);this.w=this.o=a-1};
pC=function(a){return a.u[a.o]||0};
qC=function(){g.A.call(this);this.w={};this.o={};this.u=new g.I(this.A,250,this);g.C(this,this.u)};
sC=function(a,b,c,d){a.w[b]=c;a.o[b]=new rC(!!d)};
tC=function(a,b){if(a.o[b]){var c=a.o[b].buffer;for(var d=[];c.w!=c.o;)c.w=(c.w+1)%c.u.length,d.push(c.u[c.w]);c=d}else c=[];return c};
uC=function(a,b){return a.o[b]?pC(a.o[b].buffer):0};
rC=function(a){this.u=a;this.buffer=new oC(100);this.o=NaN};
zC=function(a){var b=g.U(a),c=a.getVideoData(),d=a.u,e=d.app.B,f=e.gb(),k=b.fr(),l=b.da,m=8*uC(l,"bandwidth")/1024,n=uC(l,"networkactivity")/1024,p=uC(l,"bufferhealth");if(b.F){var t=b.T.useInnertubeDrmService()?"IT/":"";t+=b.F.o.Zd()+"/"+Mw(vC(b));t+="/"+b.F.Zd()}else t="";var u=b.getPlayerState().o.toString(16);var z=e.getCurrentTime().toFixed(2),B=Vv(e.md(),",",3);u="s:"+u+" t:"+z+" b:"+B+" ";e.ol()&&(u+="S");e.gh()&&(u+="P");e.qf()&&(u+="E");e=b.B;e=e.o?e.o.da:void 0;e&&(u+=" l:"+e.toFixed());
e=g.Sx();d=g.wC(d).RF;z=c.va&&!c.va.o?"display:none":"";if((B=c.clientPlaybackNonce)&&16==B.length){for(var D=0,E="",G=0;10>G;G++)if(D=(D<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(B.charAt(G)),4==G%5){for(var F="",ka=0;6>ka;ka++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(D&31)+F,D>>=5;E+=F}B=E.substr(0,4)+" "+E.substr(4,4)+" "+E.substr(8,4)}else B="";m={video_id_and_cpn:c.videoId+" / "+B,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+
" s",drm_style:t?"":"display:none",drm:t,debug_info:u,bandwidth_style:z,network_activity_style:z,network_activity_bytes:n.toFixed(0)+" KB",shader_info:d,shader_info_style:d?"":"display:none",playback_categories:""};n=f.clientWidth+"x"+f.clientHeight+(1<e?"*"+e.toFixed(2):"");p="-";k.totalVideoFrames&&(p=(k.droppedVideoFrames||0)+" dropped of "+k.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.u.getVolume();k=TB(c);a=Math.round(a)+"% / "+Math.round(a*k)+"%";k=c.Ql.toFixed(1);isFinite(k)&&(a+=" (content loudness "+
k+"dB)");m.volume=a;m.resolution=f.videoWidth+"x"+f.videoHeight;if(a=c.Aa)if(f=a.video)k=f.fps,1<k&&(m.resolution+="@"+k),(k=g.xC(b))&&k.video&&(m.resolution+=" / "+k.video.width+"x"+k.video.height,1<k.video.fps&&(m.resolution+="@"+k.video.fps)),m.codecs=yC(a),!c.Tb||a.audio&&a.video||(m.codecs+=" / "+yC(c.Tb)),f.o||f.primaries?(a=f.o||"unknown","smpte2084"==a?a+=" (PQ)":"arib-std-b67"==a&&(a+=" (HLG)"),m.color=a+" / "+(f.primaries||"unknown"),m.color_style=""):m.color_style="display:none";f=c.ua;
a=c.ye;m.live_mode_style=f||a?"":"display:none";m.live_latency_style=f?"":"display:none";if(a)m.live_mode="Post-Live"+(sB(c)?" Manifestless":"");else if(f){a=uC(l,"livelatency");m.live_latency_secs=a.toFixed(2)+"s";f=sB(c)?"Manifestless, ":"";k="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!=c.latencyClass)switch(c.latencyClass){case "NORMAL":k="Optimized for Normal Latency";break;case "LOW":k="Optimized for Low Latency";break;case "ULTRALOW":k="Optimized for Ultra Low Latency";break;default:k=
"Unknown Latency Setting"}else k=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";f+=k;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(f+=", seq "+a.sequence);m.live_mode=f}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=tC(l,"bandwidth");m.network_activity_samples=tC(l,"networkactivity");m.live_latency_samples=tC(l,"livelatency");m.buffer_health_samples=tC(l,"bufferhealth");
lB(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20200316_0_RC8",m.release_style=""):m.release_style="display:none";return m};
yC=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+Vu(a)+")":Vu(a)};
BC=function(){var a="ytp-id-"+AC.toString();AC++;return a};
g.CC=function(a){g.A.call(this);this.o={};this.Wa={};this.element=this.createElement(a)};
g.DC=function(a){g.ue(a.element)};
EC=function(a,b,c,d){if("{{"===d.substr(0,2))a.Wa[d]=[b,c];else return d};
Sha=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.pe("BR"));c.push(g.qe(k))}):c.push(g.qe(e))}return c};
FC=function(a,b,c,d){if("child"===c){g.se(b);var e;void 0===d?e=void 0:!g.Ma(d)||d&&"string"===typeof d.D?e=[d]:e=d;c=Sha(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.vh(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.wc(g.zc(a))),b.setAttribute(c,a))};
g.V=function(a){g.CC.call(this,a);this.ra=!0;this.P=!1;this.listeners=[]};
g.GC=function(a,b){b?a.show():a.hide()};
g.HC=function(a){g.V.call(this,a);this.ca=new g.P;g.C(this,this.ca)};
g.JC=function(a,b,c,d){g.HC.call(this,a);this.priority=b;c&&g.IC(this,c);d&&this.tb(d)};
g.KC=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",X:b,M:a,K:[{D:"div",I:"ytp-menuitem-icon",W:"{{icon}}"},{D:"div",I:"ytp-menuitem-label",W:"{{label}}"},{D:"div",I:"ytp-menuitem-content",W:"{{content}}"}]}};
LC=function(a,b){a.ha("icon",b)};
g.IC=function(a,b){a.ha("label",b)};
OC=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.H=[];this.F={};this.B={};this.u=null;this.P=new Set;this.playerType=b;MC(this,"cueVideoById",this.cueVideoById);MC(this,"loadVideoById",this.loadVideoById);MC(this,"cueVideoByUrl",this.cueVideoByUrl);MC(this,"loadVideoByUrl",this.loadVideoByUrl);MC(this,"playVideo",this.playVideo);MC(this,"pauseVideo",this.pauseVideo);MC(this,"stopVideo",this.stopVideo);MC(this,"clearVideo",this.clearVideo);
MC(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);MC(this,"getVideoBytesTotal",this.getVideoBytesTotal);MC(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);MC(this,"getVideoStartBytes",this.getVideoStartBytes);MC(this,"cuePlaylist",this.cuePlaylist);MC(this,"loadPlaylist",this.loadPlaylist);MC(this,"nextVideo",this.nextVideo);MC(this,"previousVideo",this.previousVideo);MC(this,"playVideoAt",this.playVideoAt);MC(this,"setShuffle",this.setShuffle);MC(this,"setLoop",this.setLoop);MC(this,
"getPlaylist",this.getPlaylist);MC(this,"getPlaylistIndex",this.getPlaylistIndex);MC(this,"getPlaylistId",this.getPlaylistId);MC(this,"loadModule",this.loadModule);MC(this,"unloadModule",this.unloadModule);MC(this,"setOption",this.setOption);MC(this,"getOption",this.getOption);MC(this,"getOptions",this.getOptions);MC(this,"mute",this.mute);MC(this,"unMute",this.unMute);MC(this,"isMuted",this.isMuted);MC(this,"setVolume",this.setVolume);MC(this,"getVolume",this.getVolume);MC(this,"seekTo",this.seekTo);
MC(this,"getPlayerState",this.getPlayerState);MC(this,"getPlaybackRate",this.getPlaybackRate);MC(this,"setPlaybackRate",this.setPlaybackRate);MC(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);MC(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
MC(this,"setPlaybackQuality",this.setPlaybackQuality);MC(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);MC(this,"getCurrentTime",this.getCurrentTime);MC(this,"getDuration",this.getDuration);MC(this,"addEventListener",this.addEventListener);MC(this,"removeEventListener",this.removeEventListener);MC(this,"getDebugText",this.getDebugText);MC(this,"getVideoData",function(){return c.getVideoData()});
MC(this,"addCueRange",this.addCueRange);MC(this,"removeCueRange",this.removeCueRange);MC(this,"setSize",this.setSize);MC(this,"getApiInterface",this.getApiInterface);MC(this,"destroy",this.destroy);MC(this,"showVideoInfo",this.showVideoInfo);MC(this,"hideVideoInfo",this.hideVideoInfo);MC(this,"isVideoInfoVisible",this.isVideoInfoVisible);MC(this,"getSphericalProperties",this.getSphericalProperties);MC(this,"setSphericalProperties",this.setSphericalProperties);this.app.N().Yb||(MC(this,"getVideoEmbedCode",
this.getVideoEmbedCode),MC(this,"getVideoUrl",this.getVideoUrl));MC(this,"getMediaReferenceTime",this.getMediaReferenceTime);NC(this,"getInternalApiInterface",this.getInternalApiInterface);NC(this,"getAdState",this.getAdState);NC(this,"sendAbandonmentPing",this.sendAbandonmentPing);NC(this,"setLoopRange",this.setLoopRange);NC(this,"getLoopRange",this.getLoopRange);NC(this,"setAutonavState",this.setAutonavState);NC(this,"seekToLiveHead",this.seekToLiveHead);NC(this,"seekToStreamTime",this.seekToStreamTime);
NC(this,"getStreamTimeOffset",this.getStreamTimeOffset);NC(this,"getVideoData",this.getVideoData);NC(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);NC(this,"setAutonav",this.setAutonav);NC(this,"isNotServable",this.isNotServable);NC(this,"channelSubscribed",this.channelSubscribed);NC(this,"channelUnsubscribed",this.channelUnsubscribed);NC(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);NC(this,"togglePictureInPicture",this.togglePictureInPicture);NC(this,"supportsGaplessAudio",
this.supportsGaplessAudio);NC(this,"enqueueVideoByPlayerVars",function(d){return c.enqueueVideoByPlayerVars(d)});
NC(this,"clearQueue",this.clearQueue);NC(this,"isFastLoad",function(){return!1});
NC(this,"handleExternalCall",this.handleExternalCall);NC(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);NC(this,"getStatsForNerds",this.getStatsForNerds);NC(this,"setScreenLayer",this.setScreenLayer);NC(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);NC(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);NC(this,"forceFrescaUpdate",this.forceFrescaUpdate);NC(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);NC(this,"updateFullerscreenEduButtonVisibility",
this.updateFullerscreenEduButtonVisibility);NC(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState)};
MC=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)};
NC(a,b,c);a.H.push(b)};
PC=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)};
NC(a,b,c);a.H.push(b)};
NC=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)}};
QC=function(a){a.u||(a.u={},g.Ta(a.u,a.C),g.Ta(a.u,a.G),a.u.addEventListener=(0,g.x)(a.BE,a),a.u.removeEventListener=(0,g.x)(a.CE,a));return a.u};
SC=function(a,b,c){b=g.Od(Math.floor(b),0,100);isFinite(b)&&RC(a.app,{volume:b,muted:a.isMuted()},c)};
TC=function(a,b){RC(a.app,{muted:!0,volume:a.getVolume()},b)};
UC=function(a,b){RC(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
WC=function(a){a=(a=VC(a.app.A))?a.o:null;return a?(a=a.lx())?a.P:null:null};
g.XC=function(a){var b=VC(a.app.A);if(b)return b.o;a=a.app.A;return(a=g.Ex(a.o.N())?a.u.get("music"):null)?a.w:null};
YC=function(){this.endTime=this.startTime=-1;this.nq="-";this.playbackRate=1;this.visibilityState=0;this.hq="";this.volume=this.connectionType=this.Eg=0;this.muted=!1;this.clipId="-"};
$C=function(a){this.u=a;this.J=!1;this.o=0;this.C=-1;this.O=this.u.Sc().volume;this.P=this.u.Sc().muted;this.F=NaN;this.w=0;this.A=[];this.B=ZC(this.u);this.G=this.H=0};
aD=function(a){a.B.startTime=a.w;a.B.endTime=a.o;a.A.length&&g.Xa(a.A).isEmpty()?a.A[a.A.length-1]=a.B:a.A.length&&a.B.isEmpty()||a.A.push(a.B);a.H+=a.o-a.w;a.B=ZC(a.u);a.w=a.o};
bD=function(a){return a.H+a.u.o()-a.w};
cD=function(a){a.A.length&&a.o==a.w||aD(a);var b=a.A;a.A=[];return b};
dD=function(a,b,c){c-=a.F;return b==a.o&&.5<c};
eD=function(a,b,c,d){this.eb=b;this.segments=[];this.experimentIds=[];this.adQueryId=null;this.Yg=this.U=this.isFinal=this.Ba=this.P=this.autoplay=this.autonav=!1;this.ga="yt";this.u=this.A=null;this.V=!1;this.w="watchtime"==c;this.C="playback"==c;this.S="delayplay"==c;this.O="atr"==c;this.Fa="engage"==c;this.F=!1;this.sa=this.O?"/api/stats/"+c:"//"+b.Hf+"/api/stats/"+c;d&&(this.U=d.fs,d.rtn&&(this.u=d.rtn),this.w?(this.playerState=d.state,0<d.rti&&(this.A=d.rti)):(this.Ha=d.mos,this.Na=d.volume,
d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.na=d.inview),d.size&&(this.ra=d.size));this.deviceParams=g.Rb(b.deviceParams);this.za=b.Fa;this.experimentIds=b.experiments.experimentIds;this.da=b.lc;this.ga=b.O;this.region=b.region;this.userAge=b.userAge;this.ea=b.jd;this.Wa=Wp();this.F=b.sendVisitorIdHeader;this.accessToken=a.Ne();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=SB(a);this.autonav=a.fj||this.autonav;this.contentVideoId=a.Ng();this.clientPlaybackNonce=
a.clientPlaybackNonce;this.P=a.tc;a.Hi&&(this.J=a.Hi,this.ya=a.Ii);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.Jg=a.Jg;this.Ke=a.Ke;a.Aa&&(this.xa=Vu(a.Aa),a.Tb&&Vu(a.Tb)!=this.xa&&(this.H=Vu(a.Tb)));a.ka&&Qy(a.ka)&&(this.offlineDownloadUserChoice="1");this.eventLabel=QB(a);this.Yg=a.Yg;this.dj=a.dj;if(b=GB(a))this.Ja=b;this.Xk=a.Xk;this.De=a.De;this.eventId=a.eventId;this.playlistId=a.iC||a.playlistId;this.Yo=a.Yo;this.wf=a.wf;this.xf=a.xf;this.Wl=a.Wl;this.subscribed=a.subscribed;
this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.At=a.At;this.referrer=a.referrer;this.Ol=a.yB||a.Ol;this.Pj=a.Pj;this.Bp=a.Bp;this.userGenderAge=a.userGenderAge};
fD=function(a,b){var c=a.accessToken&&kq(),d=a.F&&!!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,ud:b}};
Tha=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.Ad(a,b);c?g.xq(a,c):g.Uq(a)};
hD=function(a){var b={ns:a.ga,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.o(a.Jg),ei:a.eventId,fmt:a.xa,fs:a.U?"1":"0",rt:a.o(a.Ra),of:a.At,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.za,lact:a.Wa,live:a.Ja,cl:"303635763",mos:a.Ha,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Na};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ta(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.P&&
(b.dni="1");a.isFinal&&(b["final"]="1");a.Yg&&(b.splay="1");a.Ke&&(b.delay=a.Ke);a.da&&(b.hl=a.da);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.ea&&(b.uga=a.ea+a.userAge);void 0!==a.ca&&(b.len=a.o(a.ca));!a.w&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.u&&(b.rtn=a.o(a.u));a.Ol&&(b.feature=a.Ol);a.playlistId&&(b.list=a.playlistId);a.wf&&(b.ctrl=a.wf);a.xf&&(b.ytr=a.xf);a.Wl&&(b.ssrt="1");a.H&&(b.afmt=a.H);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.Z&&(b.lio=a.o(a.Z));a.w?(b.idpj=a.dj,b.ldpj=a.Xk,null!=a.A&&(b.rti=a.o(a.A))):void 0!==a.adType&&(b.at=a.adType);a.ra&&(a.C||a.S)&&(b.size=a.ra);null!=a.na&&(a.C||a.S)&&(b.inview=a.o(a.na));a.w&&(b.volume=gD(a,(0,g.Fc)(a.segments,function(d){return d.volume})),b.muted=gD(a,(0,g.Fc)(a.segments,function(d){return d.muted?1:0})),b.st=gD(a,(0,g.Fc)(a.segments,function(d){return d.startTime})),b.et=gD(a,(0,g.Fc)(a.segments,function(d){return d.endTime})),lj(a.segments,
function(d){return 1!=d.playbackRate})&&(b.rate=gD(a,(0,g.Fc)(a.segments,function(d){return d.playbackRate}))));
lj(a.segments,function(d){return 0!=d.visibilityState})&&(b.vis=gD(a,(0,g.Fc)(a.segments,function(d){return d.visibilityState})));
lj(a.segments,function(d){return 0!=d.connectionType})&&(b.conn=gD(a,(0,g.Fc)(a.segments,function(d){return d.connectionType})));
lj(a.segments,function(d){return 0!=d.Eg})&&(b.blo=gD(a,(0,g.Fc)(a.segments,function(d){return d.Eg})));
lj(a.segments,function(d){return"-"!=d.nq})&&(b.cc=(0,g.Fc)(a.segments,function(d){return d.nq}).join(","));
lj(a.segments,function(d){return"-"!=d.clipId})&&(b.clipid=(0,g.Fc)(a.segments,function(d){return d.clipId}).join(","));
if(lj(a.segments,function(d){return!!d.hq})){var c="au";
a.C&&(c="au_d");b[c]=(0,g.Fc)(a.segments,function(d){return d.hq}).join(",")}kq()&&a.J&&(b.ctt=a.J,b.cttype=a.ya,b.mdx_environment=a.mdxEnvironment);
a.Fa&&(b.etype=void 0!==a.B?a.B:0);a.Pj&&(b.uoo=a.Pj);a.Bp&&(b.upt=a.Bp);return b};
gD=function(a,b){return(0,g.Fc)(b,a.o).join(",")};
iD=function(a,b,c,d,e,f,k,l,m,n,p,t,u){this.videoData=a;this.eb=b;this.Sc=c;this.A=d;this.o=e;this.w=f;this.F=k;this.getAudioTrack=l;this.getPlaybackRate=m;this.B=n;this.getVisibilityState=p;this.C=t||function(){};
this.u=null;this.G=u||function(){}};
g.kD=function(a){return jD(a)()};
jD=function(a){if(!a.u){var b=g.Sa(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.Q(a.eb.experiments,"html5_validate_yt_now"));
a.u=g.Sa(function(c){return Math.round(b()-c)/1E3},b());
a.G()}return a.u};
mD=function(a){if(navigator.connection&&navigator.connection.type)return lD[navigator.connection.type]||lD.other;if(g.Jx(a.eb)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
ZC=function(a){var b=new YC;b.nq=a.Sc().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a.eb.Eg&&(b.Eg=1);c=a.getAudioTrack();c.rb&&c.rb.id&&"und"!=c.rb.id&&(b.hq=c.rb.id);b.connectionType=mD(a);b.volume=a.Sc().volume;b.muted=a.Sc().muted;b.clipId=a.Sc().clipid||"-";return b};
g.nD=function(a){return(a=Uha[a.toString()])?a:"LICENSE"};
Vha=function(){this.A=this.o=NaN;this.w=this.u=!1};
oD=function(a,b){return b>a.o+.001&&b<a.o+5};
pD=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.qD=function(a,b){this.o=a||64;this.u=void 0===b?null:b};
rD=function(a,b){return pD(a,b.getCurrentTime(),(0,g.N)(),hC(b))};
sD=function(a,b,c){return b==a.o&&c==a.u||void 0!=b&&(b&128&&!c||b&2&&b&16)?a:new g.qD(b,c)};
tD=function(a,b){return sD(a,a.o|b)};
uD=function(a,b){return sD(a,a.o&~b)};
vD=function(a,b,c){return sD(a,(a.o|b)&~c)};
g.W=function(a,b){return!!(a.o&b)};
g.wD=function(a,b){return b.o==a.o&&b.u==a.u};
g.xD=function(a){return g.W(a,8)&&!g.W(a,512)&&!g.W(a,64)&&!g.W(a,2)};
g.yD=function(a){return g.W(a,8)&&!g.W(a,2)&&!g.W(a,1024)};
zD=function(a){return g.xD(a)&&!g.W(a,16)&&!g.W(a,32)};
Wha=function(a){return g.W(a,8)&&g.W(a,16)};
g.AD=function(a){return g.W(a,1)&&!g.W(a,2)};
BD=function(a){return g.W(a,128)?-1:g.W(a,2)?0:g.W(a,64)?-1:g.W(a,1)&&!g.W(a,32)?3:g.W(a,8)?1:g.W(a,4)?2:-1};
g.CD=function(a,b){this.state=a;this.o=b};
DD=function(a,b){return g.W(a.state,b)&&!g.W(a.o,b)?1:!g.W(a.state,b)&&g.W(a.o,b)?-1:0};
g.ED=function(a,b){return 0<DD(a,b)};
Yha=function(a,b,c,d){var e=window.location.search;if(38==b.De&&"books"==a.playerStyle)return e=b.videoId.indexOf(":"),g.Ad("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.RJ});if(30==b.De&&"docs"==a.playerStyle)return g.Ad("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Kc,authkey:b.authKey,eurl:a.Fa});if(33==b.De&&"google-live"==a.playerStyle)return g.Ad("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
g.Q(a.experiments,"log_invalid_namespame_killswitch")||"yt"==a.O||g.M(Error("getVideoInfoUrl for invalid namespace: "+a.O));var f=18350;a.fa("ipp_signature_cipher_killswitch")||(f=g.L("STS",void 0)?g.L("STS",void 0):f);f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Fa,ps:a.playerStyle,el:QB(b),hl:a.lc,list:b.playlistId,agcid:b.TD,aqi:b.adQueryId,sts:f,lact:Wp()};g.Ta(f,a.deviceParams);a.fd&&(f.ecver=a.fd);a.za&&(f.forced_experiments=a.za);b.Fe?(f.vvt=b.Fe,b.mdxEnvironment&&(f.mdx_environment=
b.mdxEnvironment)):b.Ne()&&(f.access_token=b.Ne());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!=b.Ev&&(f.ad_id=b.Ev);null!=b.Gv&&(f.ad_sys=b.Gv);null!=b.yw&&(f.encoded_ad_playback_context=b.yw);b.ku&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Fg&&2!=a.Fg&&(f.cc_load_policy=a.Fg);a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!=a.annotationsLoadPolicy&&(f.iv_load_policy=
b.annotationsLoadPolicy);b.jn&&(f.endscreen_ad_tracking=b.jn);var k=a.F.get(b.videoId);k&&k.im&&(f.ic_track=k.im);b.mf&&(f.itct=b.mf);SB(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.fj&&(f.autonav="1");b.Er&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.xf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.cn&&(f.ytrcc=b.cn);b.Nr&&(f.utpsa="1");b.Ux&&(f.is_fling="1");b.Dr&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.wk&&(k=3===b.wk.split("|").length,f.force_ad_params=
k?b.wk:"||"+b.wk);b.si&&(f.preload=b.si);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Yg&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");b.Ng()&&(f.content_v=b.Ng());b.cg&&(f.livemonitor=1);a.Kc&&(f.authuser=a.Kc);a.pageId&&(f.pageid=a.pageId);a.fb&&(f.ei=a.fb);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.Db&&b.Vr&&(f.live_start_walltime=b.Vr);a.Db&&b.Wk&&(f.live_manifest_duration=b.Wk);a.Db&&b.playerParams&&(f.player_params=b.playerParams);a.Db&&b.cycToken&&
(f.cyc=b.cycToken);a.Db&&b.gC&&(f.tkn=b.gC);0!=d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.ah&&(f.kpt=b.ah);b.Tn&&(f.kids_age_up_mode=b.Tn);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.km&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));(c=a.xm)&&(f.embedding_app=c);(c=g.AB(b))&&(f.uloc=c);b.Ok&&(f.internalipoverride=b.Ok);a.embedConfig&&(f.embed_config=a.embedConfig);a.fn&&(f.co_rel="1");0<a.dc.length&&(f.ancestor_origins=
Array.from(a.dc).join(","));void 0!=a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!=a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");b.Zm&&b.an&&(f.clip=b.Zm,f.clipt=b.an);for(var l in f)!Xha.has(l)&&f[l]&&512<f[l].length&&(g.M(Error("GVI param too long: "+l)),f[l]="");b=a.C;g.Kx(a)&&(b=Ws(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.C);a=g.Ad(b+"get_video_info",
f);e&&(a=uq(a,e));return a};
g.FD=function(a,b){return a.C+"timedtext_video?ref=player&v="+b.videoId};
g.GD=function(a,b){a.feature=b;return a};
HD=function(a){g.A.call(this);this.o=a;this.u=new $C(a);this.B="paused";this.C=NaN;this.H=[10,10,10,40];this.J=this.G=0;this.U=this.S=this.Z=this.V=this.O=this.P=this.w=!1;this.A=NaN};
ID=function(a,b,c){var d=g.kD(a.o);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c+=e;d=1E3*(c-d);a.C=g.Ko((0,g.x)(a.ca,a,c,b),d);return c};
JD=function(a,b){var c=a.o,d=c.Sc();g.Ta(d,c.videoData.Sc());g.Ta(d,{state:a.B});c=new eD(a.o.videoData,a.o.eb,b,d);c.Jg=a.o.o();a.o.videoData.ua||(c.ca=a.o.A());a.o.videoData.ka&&(d=ez(a.o.videoData.ka,c.Jg))&&(c.Z=d-c.Jg);c.Ra=g.kD(a.o);c.segments=[ZC(a.o)];return c};
KD=function(a,b){var c=JD(a,"watchtime");c.segments=b;c.Jg=a.u.o;return c};
LD=function(a){a.u.update();return KD(a,cD(a.u))};
OD=function(a){a.o.videoData.remarketingUrl&&!a.V&&(MD(a,a.o.videoData.remarketingUrl),a.V=!0);a.o.videoData.youtubeRemarketingUrl&&!a.Z&&(MD(a,a.o.videoData.youtubeRemarketingUrl),a.Z=!0);a.o.videoData.googleRemarketingUrl&&!a.S&&(MD(a,a.o.videoData.googleRemarketingUrl),a.S=!0);a.o.videoData.ppvRemarketingUrl&&!a.U&&(MD(a,a.o.videoData.ppvRemarketingUrl),a.U=!0);ND(a)};
PD=function(a){a.A=Lo((0,g.x)(a.F,a,"heartbeat"),3E4)};
QD=function(a,b,c){a.P||(c||(c=JD(a,"atr")),c.G=b,c.send(),a.P=!0)};
ND=function(a){a.o.videoData.Mc.eventLabel=QB(a.o.videoData);a.o.videoData.Mc.playerStyle=a.o.eb.playerStyle;a.o.videoData.Ll&&(a.o.videoData.Mc.feature="pyv");a.o.videoData.Mc.vid=a.o.videoData.videoId;var b=a.o.videoData.Mc;a=a.o.videoData;a=a.isAd()||!!a.Ll;b.isAd=a};
Zha=function(a){var b=JD(a,"engage");b.B=1;a=jD(a.o);return g.Sa(Tha,b.sa,hD(b),fD(b),a)};
MD=function(a,b){a.o.eb.sendVisitorIdHeader&&a.o.videoData.visitorData&&jq(b)?g.xq(b,{ud:void 0,headers:{"X-Goog-Visitor-Id":a.o.videoData.visitorData}}):g.Uq(b,void 0)};
RD=function(a,b){OC.call(this,a,b);var c=this;this.o=!1;PC(this,"getPresentingPlayerType",this.getPresentingPlayerType);PC(this,"addInfoCardXml",this.addInfoCardXml);PC(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);PC(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);PC(this,"preloadVideoByPlayerVars",function(d,e,f,k){return c.preloadVideoByPlayerVars(d,e,f,k)});
PC(this,"seekBy",this.seekBy);PC(this,"updatePlaylist",this.updatePlaylist);PC(this,"updateLastActiveTime",this.updateLastActiveTime);PC(this,"updateVideoData",this.updateVideoData);PC(this,"canPlayType",this.canPlayType);PC(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);PC(this,"setCardsVisible",this.setCardsVisible);PC(this,"mutedAutoplay",this.mutedAutoplay);PC(this,"showControls",this.showControls);PC(this,"hideControls",this.hideControls);PC(this,"setSafetyMode",this.setSafetyMode);
PC(this,"cancelPlayback",this.cancelPlayback);PC(this,"isInline",this.isInline);PC(this,"isAtLiveHead",this.isAtLiveHead);PC(this,"setInline",this.setInline);PC(this,"getVideoAspectRatio",this.getVideoAspectRatio);PC(this,"getPreferredQuality",this.getPreferredQuality);PC(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);PC(this,"onAdUxClicked",this.onAdUxClicked);PC(this,"getProgressState",this.getProgressState);PC(this,"deleteLocalMediaById",this.deleteLocalMediaById);PC(this,"deleteAllLocalMedia",
this.deleteAllLocalMedia);PC(this,"fetchLocalMedia",this.fetchLocalMedia);PC(this,"fetchLocalMediaById",this.fetchLocalMediaById);PC(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);PC(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);PC(this,"getPlayerResponse",this.getPlayerResponse);PC(this,"getStoryboardFormat",this.getStoryboardFormat);PC(this,"getStoryboardFrame",this.getStoryboardFrame);PC(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);PC(this,"getStoryboardLevel",
this.getStoryboardLevel);PC(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);PC(this,"getAudioTrack",this.zE);PC(this,"setAudioTrack",this.setAudioTrack);PC(this,"getAvailableAudioTracks",this.AE);PC(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);PC(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);PC(this,"setUserEngagement",this.setUserEngagement);PC(this,"getVideoContentRect",this.getVideoContentRect);PC(this,"updateSubtitlesUserSettings",
this.updateSubtitlesUserSettings);PC(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);PC(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);PC(this,"setMinimized",this.setMinimized);PC(this,"setBlackout",this.setBlackout);PC(this,"getVisibilityState",this.getVisibilityState);PC(this,"setFauxFullscreen",this.setFauxFullscreen);PC(this,"toggleFullscreen",this.toggleFullscreen);PC(this,"isFullscreen",this.isFullscreen);PC(this,"getVideoStats",this.getVideoStats);PC(this,
"getPlayerSize",this.getPlayerSize);PC(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);PC(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);PC(this,"setInternalSize",this.setInternalSize);PC(this,"toggleSubtitles",this.toggleSubtitles);PC(this,"getHousebrandProperties",this.getHousebrandProperties);PC(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);PC(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);PC(this,"setSizeStyle",this.setSizeStyle);PC(this,"setGlobalCrop",this.setGlobalCrop);
PC(this,"wakeUpControls",this.wakeUpControls)};
SD=function(a,b){this.w=a;this.o=b||null;this.u=!1};
TD=function(a,b,c){var d=g.Bx(b.La)&&b.La.Hc&&RB(b);if(b.La.pc&&(xx(b.La)||g.by(b.La)||d)&&!a.u){a.u=!0;g.L("TIMING_ACTION")||Eo("TIMING_ACTION",a.w.dd);a.w.xb&&Eo("CSI_SERVICE_NAME",a.w.xb);if(a.o){b=a.o.A;for(var e in b)ZA(e,b[e],"");e=a.o.w;for(var f in e)bB(f,e[f],"");f=a.o;f.A={};f.w={}}bB("yt_pvis",Hha(),"");bB("yt_pt","html5","");c&&!QA("pbs","")&&a.tick("pbs",c);a=a.w;!g.by(a)&&!xx(a)&&QA("_start","")&&cB("")}};
g.UD=function(a,b,c){g.A.call(this);this.start=a;this.end=b;this.B=$ha++;a=c||{};this.C=a.id||"";this.F=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.u=null;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return(0,g.ui)(d.thumbnails,function(e){return g.Ys(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
VD=function(a){return-0x8000000000000==a?"BEFORE_MEDIA_START":0==a?"MEDIA_START":0x7ffffffffffff==a?"MEDIA_END":0x8000000000000==a?"AFTER_MEDIA_END":a.toString()};
aia=function(a,b){switch(a.style){case "ytp-chapter-marker":return b?8:5;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.WD=function(a,b){return a.start-b.start||a.F-b.F||a.B-b.B};
g.XD=function(a){return"crn_"+a};
g.YD=function(a,b){this.type=a||"";this.id=b||""};
g.$D=function(a,b){g.P.call(this);this.La=a;this.startSeconds=0;this.G=!1;this.o=0;this.title="";this.w=0;this.Ga=[];this.B=this.A=!1;this.Nb=this.zw=this.C=null;var c=b.session_data;c&&(this.Nb=bq(c));this.views=0;this.J=0!=b.fetch;this.u=[];this.o=Math.max(0,b.index||0);this.loop=!!b.loop;this.startSeconds=parseInt(b.startSeconds,10)||0;this.P="1"==b.mob;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=b.author||b.playlist_author||"";this.Ye={};b.video_id&&
(this.Ga[this.o]=b);if(c=b.api)"string"==typeof c&&16==c.length?b.list="PL"+c:b.playlist=c;this.F=0;if(c=b.list)switch(b.listType){case "user_uploads":this.B||(this.listId=new g.YD("UU","PLAYER_"+c),ZD(this,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "user_favorites":this.B||(this.listId=new g.YD("FL","PLAYER_"+c),ZD(this,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:c}));break;case "search":bia(this,c);break;default:var d=b.playlist_length;
d&&(this.w=parseInt(d,0));this.listId=new g.YD(c.substr(0,2),c.substr(2));(c=b.video)?(this.Ga=c.slice(0),this.A=!0):cia(this)}else b.playlist&&(c=b.playlist.toString().split(","),0<this.o&&(this.Ga=[]),c.forEach(function(e){e&&this.Ga.push({video_id:e})},this),this.w=this.Ga.length,c=this.Ga.map(function(e){return e.video_id}),ZD(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")}),this.A=!0);
this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.Ye=fA(b,"playlist_");this.H=(c=b.thumbnail_ids)?c.split(","):[]};
aE=function(a){return!!(a.playlist||a.list||a.api)};
bE=function(a){var b=a.o+1;return b>=a.w?0:b};
cE=function(a){var b=a.o-1;return 0>b?a.w-1:b};
dE=function(a,b){a.o=g.Od(b,0,a.w-1);a.startSeconds=0};
bia=function(a,b){if(!a.B){a.listId=new g.YD("SR",b);var c={search_query:b};a.P&&(c.mob="1");ZD(a,"/search_ajax?style=json&embeddable=1",c)}};
cia=function(a){if(!a.B){var b=b||a.listId;b={list:b};var c=a.wa();c&&c.videoId&&(b.v=c.videoId);ZD(a,"/list_ajax?style=json&action_get_list=1",b)}};
ZD=function(a,b,c){a.J&&g.xq(g.Ad(b,c),{format:"JSON",onSuccess:(0,g.x)(function(d,e){eE(this,e)},a),
onError:(0,g.x)(function(){this.R("error")},a)})};
eE=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.wa();a.Ga=[];b.video.forEach(function(e){e&&(e.video_id=e.encrypted_id,this.Ga.push(e))},a);
a.w=a.Ga.length;var d=b.index;d?a.o=d:dia(a,c);a.setShuffle(!1);a.B=!1;a.A=!0;a.F++;a.C&&a.C()}};
dia=function(a,b){if(b){var c=b.videoId;if(!a.Ga[a.o]||a.Ga[a.o].video_id!=c)for(var d=0;d<a.Ga.length;d++)if(a.Ga[d].video_id==c){a.o=d;break}}};
fE=function(a,b){a.C=b;a.A&&g.Ko(a.C,0)};
gE=function(a,b){this.o=a;this.w=b;this.u=null;this.A=[];this.B=!1};
g.hE=function(a){a.u||(a.u=a.o.createMediaElementSource(a.w.gb()));return a.u};
g.iE=function(a){for(var b;0<a.A.length;)(b=a.A.pop())&&b.disconnect();a.u&&a.u.disconnect()};
jE=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
eia=function(a){a=void 0===a?{}:a;var b=a.le,c=a.PO,d=a.jb,e=a.Xq;this.B=a.Mh;this.u=b;this.o=c;this.A=d;this.w=e};
kE=function(a,b){if(0>b)return!0;var c=a.A();return b<c||b==c&&!a.B||b==c&&(c=a.w())&&b==c.Ma?!0:!1};
fia=function(a,b,c){if(!kE(a,b))return 0;if(!a.u||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.A();return b<c||b==c&&(a=a.w())&&b==a.Ma&&!a.pending?2:1};
gia=function(a,b,c,d){if(kE(a,b))return d;b=0;a.u&&(b=.2);return c+1E3*(a.o+b)};
hia=function(a,b,c,d,e){b=fia(a,b,e);if(2==b)return d;c=b?d:c+1E3*a.o;a.u&&(c+=1E3*a.o);return c};
iia=function(a){this.C=a;this.A=NaN;this.B=[];this.w=this.o=this.u=0};
jia=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0===d.Ir?!1:d.Ir,f=void 0===d.Cr?!1:d.Cr,k=d.pG,l=d.Ma,m=d.be;this.ya=void 0===d.gf?!1:d.gf;this.P=e;this.ga=f;this.F=k;this.Fa=l;this.Ja=m;this.Ba=null;this.u=a;this.Ha=b;this.Na=c;this.ea=this.o=NaN;this.za=0;this.V=this.ra=this.w=this.C=NaN;this.sa=this.na=this.A=!1;this.B=0;this.da=kx(this.u);this.ca=NaN;this.O=this.H=Infinity;this.S=NaN;this.xa=!1;this.J=this.U=NaN;this.G=this.Z=null};
lE=function(a){return{rt:((0,g.H)()-a.o).toFixed(),lb:a.w.toFixed(),pt:(1E3*a.ca).toFixed(),pb:a.Ha.toFixed(),stall:(1E3*a.B).toFixed(),elbowTime:(a.ea-a.o).toFixed(),elbowBytes:a.za.toFixed()}};
mE=function(a){a.J||(a.J=a.Ba(),3==a.J&&(a.Z=new iia(a.u)));return a.J};
qE=function(a,b,c,d){var e=(b-a.C)/1E3,f=c-a.w,k=mE(a);if(3==k&&f){var l=a.Z;l.B.push({Xn:f,hu:isNaN(l.A)?NaN:d-l.A,FT:d});l.A=d}a.A?1==k&&0<f&&(.2<e||1024>f?(a.B+=e,.2<e&&pE(a,.05,f)):pE(a,e,f),a.sa=!0):nE(a,c)&&(1==k&&(d=(b-a.o)/1E3,oE(a)||a.P||(k=a.u,k.C.w(1,d),ex(k))),a.ea=b,a.za=c,a.A=!0);a.P||hx(a.u,e,f);a.C=b;a.w=c};
pE=function(a,b,c){a.P||(b=Math.max(b,.05),cx(a.u,b,c,b,a.ga))};
sE=function(a,b,c){c=Math.round(c/1024);a.G&&a.G.push(rE(b-a.ra,c-a.V));a.ra=b;a.V=c};
nE=function(a,b){return b?a.F&&1!=mE(a)?!0:b>=a.u.o.o:!1};
tE=function(a){return nE(a,a.w)};
uE=function(a){a.S=a.o+1E3*a.da.delay;a.xa=!1};
vE=function(a,b){a.H=Math.min(a.H,gia(a.F,a.Fa,a.o,b));a.O=Math.min(a.O,hia(a.F,a.Fa,a.o,b,a.Ja));a.H<=a.o?uE(a):(a.S=a.H,a.xa=!0)};
oE=function(a){a.F&&vE(a,(0,g.H)());return a.xa};
wE=function(a,b){b=void 0===b?(0,g.H)():b;if(a.F){vE(a,b);var c=a.J?a.F?1!=mE(a):!1:a.H!=a.O;if(c){if(c=a.O,b<c){a.U=a.O;return}}else c=a.H;c=Math.max(c,a.S)}else c=a.S;var d=a.Ha-a.w;0>d&&(d=0);d=1E3*(d*a.da.stall+d/a.da.byterate);d=tE(a)?d+b:d+Math.max(b,c);a.U=d};
rE=function(a,b){for(var c="";4095<a;)c+=rE(4095,0),a-=4095;for(;4095<b;)c+=rE(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))};
xE=function(a,b,c,d){var e=this;this.w=a;a=Ku(this.w.get("range")||"");if(!a)throw Error("bad range");this.B=a;this.C=c;this.status=0;this.response=null;this.o=new Cs;this.u=0;this.A="";kia(this).then(d,function(f){e.A=""+f||"unknown_err";d()});
b()};
kia=function(a){var b,c,d,e,f,k,l,m,n,p,t,u,z;return Da(function(B){if(1==B.o){a.status=200;b=a.w.get("docid");c=a.w.get("fmtid");d=+a.w.get("csz");if(!b||!c||!d)throw Error("Invalid local URL");e=a.B;f=Math.floor(e.start/d);k=Math.floor(e.end/d);l=f}if(5!=B.o)return l<=k?B=ua(B,Vga(b,c,l),5):(B.o=0,B=void 0),B;m=B.u;n=l*d;p=(l+1)*d;t=Math.max(0,e.start-n);u=Math.min(e.end+1,p)-(t+n);z=new Uint8Array(m.buffer,t,u);a.o.append(z);a.u+=u;a.u<e.length&&a.C((0,g.H)(),a.u);l++;B.o=2})};
yE=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.status=0;this.G=this.response=null;this.da=d;this.ga=c;this.ea=e;this.F=f;this.ca=k;this.O=m;this.J=n;this.Z=l;this.o=new Cs;this.C=null;this.V=!1;this.u=0;lia++;this.S=NaN;this.w=null;this.A=window.AbortController?new AbortController:null;c={method:this.ca,credentials:this.Z};this.O&&(c.headers=new Headers(this.O));this.J&&(c.body=this.J);
this.A&&(c.signal=this.A.signal);a=new Request(a,c);fetch(a).then(Io((0,g.x)(this.dO,this)),Io((0,g.x)(this.Qy,this)));this.B=this.H=this.U=!1;this.P="";b()};
zE=function(a){a.w.read().then(Io((0,g.x)(a.BK,a)),Io((0,g.x)(a.Qy,a)))};
BE=function(a){if(!a.B){a.U=!0;if(AE(a)&&!a.o.o&&!a.H&&a.u){Ps(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.da()}};
CE=function(a){return a.F.le&&Ps(a)};
AE=function(a){var b=a.Wc("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.F.o&&a.F.le&&Ps(a)&&b};
DE=function(a,b,c,d,e){this.status=0;this.response=null;this.u=this.A=!1;this.w=NaN;this.o=new XMLHttpRequest;this.o.open("GET",a);this.o.responseType="arraybuffer";this.o.withCredentials=!0;this.o.onreadystatechange=(0,g.x)(this.sH,this);this.B=d;this.F=c;this.C=e;a=Io((0,g.x)(this.qH,this));this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();b();this.o.addEventListener("progress",Io((0,g.x)(this.rH,this)),!1)};
mia=function(a,b){this.u=a;this.C=this.B=!1;this.length=b?b:0;this.w=0;this.o=[];this.A=null;this.length?1!=this.u.length||this.u[0].Oa||(this.u[0].Oa=this.length):1==this.u.length||(0,g.ui)(this.u,function(c){return!!c.range})};
nia=function(a){return a.length-a.w+a.o.reduce(function(b,c){return b+c.o.o},0)};
EE=function(a,b,c,d){this.A=a;this.info=b;this.timing=c;this.Z=d;this.state=1;this.o=this.ca=null;this.F=this.O=0;this.U=new g.I(this.nO,a.P,this);this.B=this.w=this.G=null;this.C=0;this.P=this.u=null;this.S=0;this.ea=this.J=!1;this.H=this.A.Wa&&(oy(this.info)||this.info.gf());this.da=!1;this.V=null};
oia=function(a,b){a.G=b};
FE=function(a){return a.w?ft(a.w.o):""};
GE=function(a){var b=lE(a.timing);b.shost=FE(a);b.rn=a.O.toString();a.C&&(b.rc=a.C.toString());b.itag=""+Vu(a.info.o[0].o.info);b.ml=""+ +a.info.o[0].o.Cc();b.sq=""+a.info.o[0].u;if(a.w){var c=a.w.o;et(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"==c.u&&1<d.length&&!!d[1])}410!=a.C&&500!=a.C&&503!=a.C||(b.fmt_unav="true");a.o&&a.o.sj()&&(b.msg=a.o.sj());a.da&&(b.smb="1");a.u&&(a=a.u.o,a.length&&av(a[0],b));return b};
HE=function(a){FE(a);return hy(a.Z,FE(a))};
pia=function(a,b){if(400<=b.status)return a.B="net.badstatus",7;if(!b.In())return a.B=204==b.status?"net.nocontent":"net.connect",7;var c="";if(IE(a)){var d=b.ys();2048>=d.o&&(c=Js(d),c=hu(c),c=Xs(c)?c:"")}if(c){d=HE(a);(0,g.N)();d.started=0;d.u=0;d.o=0;d=a.info;var e=a.w;g.ly(d.u,e,c);d.requestId=e.get("req_id");return 5}c=b.qo();if((d=!!a.P&&a.P.length)&&d!=c||b.Lt())return a.B="net.closed",7;JE(a,!0);if(a.A.zv&&!d&&a.u&&(d=a.u.o,d.length&&!av(d[0])))return a.B="net.closed",7;var f=KE(a)?b.Wc("X-Bandwidth-Est"):
0;if(d=KE(a)?b.Wc("X-Bandwidth-Est3"):0)a.ea=!0,a.A.Mu&&(f=d);d=a.timing;e=(0,g.H)();f=f?parseInt(f,10):0;if(!d.na){d.na=!0;if(!d.P){e=e>d.o&&4E12>e?e:(0,g.H)();sE(d,e,c);qE(d,e,c);var k=mE(d);if(2==k&&f)pE(d,d.w/f,d.w);else if(2==k||1==k)f=(e-d.o)/1E3,(f<=d.u.o.u||!d.u.o.u)&&!d.sa&&tE(d)&&pE(d,f,c),tE(d)&&fx(d.u,c,d.B);dx(d.u,(e-d.o)/1E3,d.w,d.ca,d.ya,d.ga)}d.A&&(d.A=!1)}c=HE(a);(0,g.N)();c.started=0;c.u=0;c.o=0;a.info.u.u=0;(0,g.N)()<LE+3E5||!a.w||gt(a.w.o)||!(c=FE(a))||0>c.indexOf("googlevideo.com")||
(g.qs("yt-player-bandaid-host",{HT:c},432E3),LE=(0,g.N)());return 6};
NE=function(a){if("net.timeout"==a.B){var b=a.timing,c=(0,g.H)();if(!b.P){c=c>b.o&&4E12>c?c:(0,g.H)();sE(b,c,1024*b.V);var d=(c-b.o)/1E3;if(2!=mE(b))if(tE(b))b.B+=(c-b.C)/1E3,fx(b.u,b.w,b.B);else{if(!oE(b)&&!b.P){var e=b.u;e.C.w(1,d);ex(e)}b.ea=c}dx(b.u,d,b.w,b.ca,b.ya,b.ga);hx(b.u,(c-b.C)/1E3,0)}}else(0,g.H)();"net.nocontent"!=a.B&&("net.timeout"==a.B||"net.connect"==a.B?(b=HE(a),b.u+=1):(b=HE(a),b.o+=1),a.info.u.u++);ME(a,7)};
OE=function(a){if(1==a.state)return!0;a=HE(a);return 100>a.u&&6>a.o};
ME=function(a,b){a.state=b;if(5<=a.state)if(a.A.Hc)PE(a);else{var c=a.timing;c.A&&(c.A=!1)}a.G&&a.G(a)};
QE=function(a,b){if(b){var c=HE(a);c.w+=1}PE(a);a.B="net.timeout";NE(a)};
KE=function(a){return(0,g.ui)(a.info.o,function(b){return 3==b.type})};
PE=function(a){if(a.o){var b=a.o;a.o=null;b.abort()}a=a.timing;a.A&&(a.A=!1)};
IE=function(a){var b=a.o.Wc("content-type"),c=a.o.xk();(b=(!RE(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c))&&RE(a)&&CE(a.o);return b};
qia=function(a,b){var c=(0,g.x)(a.uH,a),d=(0,g.x)(a.MN,a),e=(0,g.x)(a.vH,a),f=(0,g.x)(a.LN,a);return gt(a.w.o)?new xE(a.w,d,e,c):a.A.H&&(a.A.Wu&&!isNaN(a.info.be)&&a.info.be>a.A.CC?0:Os()&&KE(a))?new yE(b,d,e,c,f,a.A.u):new DE(b,d,e,c,f)};
RE=function(a){return a.o?a.o.fu():!1};
SE=function(a){return 2<=a.state&&!!a.u&&!!a.u.o.length};
JE=function(a,b){if(b||RE(a)&&!IE(a)){if(!a.u){if(RE(a))a.info.range&&(c=a.info.range.length);else var c=a.o.qo();a.u=new mia(a.info.o,c)}for(;a.o.eg();){c=a.u;var d=a.o.ro(),e=b&&!a.o.eg();d=Js(d);for(var f=0,k=0,l=g.q(c.u),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.Oa<=c.w)f+=m.Oa;else{var n=c,p=m;if(1==p.type){n.B=!0;var t=!1}else 3==p.type||4==p.type?(p=n.B&&!n.C,n.C=!0,t=p):t=!1;n=c;var u=c.w-f;p=k;var z=d;t=t||m.o.Gy();var B=z.length-p;m.range&&(B=Math.min(m.Oa-u,B));u=Wu(m,m.w+
u,B,m.range?m.w+u+B==m.range.length:!!e);p=new Uint8Array(z.buffer,z.byteOffset+p,B);n.o.push(new Zu(u,p,t));n=B;c.w+=n;k+=n;f+=m.Oa;if(k==d.length)break}}}};
ria=function(a){if(!a.A.u.le||!isNaN(a.info.be)&&0<a.info.be)return!1;if(!a.o||!a.o.aj())return!0;if(!Ps(a.o))return!1;if(isNaN(a.info.be)){var b=a.o.Wc("x-head-seqnum");if(b&&parseInt(b,10)>a.info.o[0].u)return!1}return!0};
TE=function(a,b){this.F=a;this.B=b;this.C=a.DE;this.A=new Uint8Array(this.C);this.w=this.u=0;this.o=null;this.G=[];this.H=this.J=null};
UE=function(a){return a.o&&3==a.o.type?a.o.startTime:0};
VE=function(a){return!!a.o&&a.o.C};
XE=function(a,b){if(1==b.info.type)a.J=Lu(0,b.o.o);else if(2==b.info.type){if(!a.o||1!=a.o.type)return;a.H=Lu(a.w*a.C+a.u,b.o.o)}else if(3==b.info.type){if(3==a.o.type&&!Qu(a.o,b.info)&&(a.G=[],b.info.u!=Su(a.o)||0!=b.info.w))return;if(b.info.A)a.G.map(function(c){return WE(a,c)}),a.G=[];
else{a.G.push(b);a.o=b.info;return}}WE(a,b);a.o=b.info;sia(a)};
WE=function(a,b){for(var c=0,d=Js(b.o);c<d.length;){var e=Math.min(d.length-c,a.A.byteLength-a.u),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.A.set(f,a.u);a.u+=e;c+=e;a.u==a.A.length&&(Lz(a.F.A,a.B.info,a.w,a.A),a.A=new Uint8Array(a.C),a.u=0,a.w+=1)}};
sia=function(a){if(VE(a)){if(a.u){var b=new Uint8Array(a.A.buffer,0,a.u);Lz(a.F.A,a.o.o.info,a.w,b)}b=g.Rb(a.B.O);b.url="local://localhost/videoplayback?"+cq({lmt:a.B.lastModified,docid:a.F.A,fmtid:a.B.info.id,csz:a.C,clen:a.w*a.C+a.u});b.lmt=""+a.B.lastModified;b.init=a.J.toString();b.index=a.H.toString();b=cq(b);Tga(a.F.A,!!a.B.info.video,b)}};
tia=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};
YE=function(a){a=fu(a,1886614376);(0,g.y)(a,function(b){return!b.u});
return(0,g.Fc)(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
ZE=function(a){var b=(0,g.vi)(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};
$E=function(a,b,c){this.initData=a;this.contentType=(void 0===b?"":b)||null;this.isPrefetch=void 0===c?!1:c;this.w=this.cryptoPeriodIndex=NaN;this.A=[];this.u=this.o=!1};
aF=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 ng(b.subarray(c+f,c+f+l)),n=new xo;for(f=m;og(f)&&4!=f.u;)switch(f.w){case 2:var p=rg(f),t=p;Pg(n,2).push(t);break;case 4:p=rg(f);Rg(n,4,p);break;case 7:p=mg(f.o);Rg(n,7,p);break;case 9:p=mg(f.o);Rg(n,9,p);break;case 10:p=mg(f.o);Rg(n,
10,p);break;case 11:p=lg(f.o);Rg(n,11,p);break;case 12:p=mg(f.o);Rg(n,12,p);break;case 13:t=p=rg(f);Pg(n,13).push(t);break;case 14:p=new yo;t=f;var u=p,z=lea,B=t.o.w,D=mg(t.o),E=t.o.o+D;t.o.w=E;z(u,t);t.o.o=E;t.o.w=B;t=n;u=p;z=yo;Vg(t,z,14);var G=t.o[14];G||(G=t.o[14]=[]);var F=u?u:new z,ka=Pg(t,14);G.push(F);ka.push(Xg(F));break;case 15:p=qg(f);Rg(n,15,p);break;case 1:p=lg(f.o);Rg(n,1,p);break;case 3:p=qg(f);Rg(n,3,p);break;case 5:p=qg(f);Rg(n,5,p);break;case 6:p=qg(f);Rg(n,6,p);break;case 8:p=rg(f);
Rg(n,8,p);break;default:pg(f)}f=n;if(null!=f){var pa=f;break a}}catch(bc){}}c+=e}pa=null}catch(bc){pa=null}}if(null!=pa)for(b=Pg(pa,7),a.o||null==b||(a.cryptoPeriodIndex=b),b=Pg(pa,10),null!=b&&0<b&&(a.w=b),pa=Pg(pa,2),pa=!pa.length||pa[0]instanceof Uint8Array?pa:(0,g.Fc)(pa,qba),pa=g.q(pa),b=pa.next();!b.done;b=pa.next())a.A.push(g.dg(b.value,4))};
bF=function(a){this.u=a;this.o=0};
cF=function(a){if(a.o>=a.u.o)throw Error();return Ms(a.u,a.o++)};
dF=function(a,b){var c=cF(a);if(1==c){for(c=0;7>c;c++)cF(a);return-1}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+cF(a),d*=128;return b?c:c-d};
eF=function(a,b,c){g.P.call(this);this.H=a;this.u=[];this.o=null;this.F=-1;this.C=0;this.S=NaN;this.O=0;this.w=b;this.ea=c;this.P=this.J=NaN;this.B=this.G=this.ca=this.V=this.A=this.U=null;this.H.A&&(this.B=new TE(this.H,this.w));this.da=!1;this.Z=0};
fF=function(a,b){var c=a.o,d=Math.min(b,c.o.o);if(d==c.o.o)return a.o=null,c;c=bv(c,d);a.o=c[1];return c[0]};
gF=function(a,b){var c=$u(b);!a.H.Gf&&Bv(b.info.o.info)&&wv(b.info.o.info.wa())&&vu(c);var d=b.info.o.info;Av(d)&&!Bv(d)&&(d=$u(b),tu(d));b.info.o.info.isVideo()&&sy(b.info.o,c);2==b.info.o.info.containerType&&b.info.isVideo()&&(c=$u(b),uu(c));a.w.info.audio&&g.dv(b.info.o.info)&&(c=iv(b))&&(g.dv(b.info.o.info)&&eu($u(b)),a.da=!0,a.H.Gc&&a.R("gaplessinfo",c));if(!a.w.yc()&&!b.info.o.o&&!b.info.o.indexRange){if(g.dv(b.info.o.info))if(c=$u(b),d=Ot(c,0,1836019574)){d=d.offset+d.size;var e=new Uint8Array(d);
e.set(new Uint8Array(c.buffer,c.byteOffset,d));c=e}else c=null;else c=ufa(new iu($u(b)));c&&(b.info.o.o=c)}};
kF=function(a,b,c){if(a.w.yc())a.da&&a.w.yc()&&c.info.u==c.info.o.index.jb()&&Qt($u(c)),a.U&&a.U.sr()&&c.info.isVideo()&&!(a.getDuration()>=a.U.getDuration())&&a.w.yc()&&c.info.u==c.info.o.index.jb()&&(b=1+(a.U.getDuration()-a.getDuration())/c.info.duration,Rt($u(c),b));else{var d=!1;a.A||(hv(c),c.u&&(a.A=c.u,d=!0,Xu(c.info,c.u),jv(c)));var e;a.H.G?e=a.ea(ev(c),1):e=isNaN(a.P)?isNaN(a.J)?c.info.startTime:a.J:a.P;isNaN(a.S)&&(a.S=e);var f=gv(c);a.O+=f;a.P=NaN;fv(c,e)?a.J=e+gv(c):(e=Tu(c.info),e.smst=
"1",a.R("error",e||{}));if(d&&a.A){d=hF(a,!0);Yu(c.info,d);a.o&&Yu(a.o.info,d);b=g.q(b.info.o);for(e=b.next();!e.done;e=b.next())Yu(e.value,d);(c.info.A||a.o&&a.o.info.A)&&6!=c.info.type||(a.G=d,a.R("placeholderinfo",d),iF(a))}}jF(a,c);a.Z&&(a=a.Z,a=ev(c)+a,fv(c,a))};
mF=function(a,b){if(b.info.A){a.ca=b.info;if(a.A){var c=hF(a,!1);a.R("segmentinfo",c);a.G||iF(a);a.G=null}lF(a)}a.B&&XE(a.B,b);(c=a.pl())&&cv(c,b,!0)||a.u.push(b)};
lF=function(a){a.o=null;a.F=-1;a.C=0;a.A=null;a.S=NaN;a.O=0;a.G=null};
jF=function(a,b){if(a.w.info.zc){if(2==b.info.o.info.containerType){var c=Cu(new iu($u(b)));var d="webm"}else b.info.J=YE($u(b)),c=ZE(b.info.J),d="cenc";c&&c.length&&(a.H.Ra?(c=new $E(c,d),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex,c.o=!0,c.u=!!a.w.info.audio),a.R("needkeyinfo",c)):b.info.o.H={key:c,type:d})}};
iF=function(a){var b=a.A,c=Gt(b);c&&(c.startSecs+=a.S,a.R("cuepoint",c,b.u))};
hF=function(a,b){var c=a.A;Lt(c)&&(It(c),Jt(c),Kt(c));return new nt(c.u,a.S,b?c.je:a.O,c.ingestionTime,"sq/"+c.u,void 0,void 0,b)};
nF=function(a,b){this.policy=a;this.V=b;this.w=NaN;this.B=[];this.F=[];this.u=this.H=NaN;this.S=this.A=this.J=0;this.C=NaN;this.Z=0;this.O=!1;this.G=null;this.U=0};
oF=function(a){return{startTime:a.C/a.A,duration:a.S/a.A}};
pF=function(a){return!isNaN(a.u)&&a.A?a.u/a.A:a.Z};
qF=function(a){a.A&&!isNaN(a.H)&&(a.u=Math.floor(a.H*a.A),a.H=NaN)};
rF=function(a,b){var c=a.B.length,d=new Uint8Array(c+b.byteLength);d.set(a.B,0);d.set(new Uint8Array(b.buffer,b.byteOffset,b.byteLength),c);a.B=[];return new DataView(d.buffer)};
sF=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.B.push(b.getUint8(d));0<c&&a.F.push(new DataView(b.buffer,b.byteOffset,c))};
uF=function(a,b){nF.call(this,a,b);this.o=new tF(0,0,null);this.w=8};
vF=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.o=new tF(b,d,a.o);return 8};
wF=function(a){return 0==a.o.type||1836019574==a.o.type||1952867444==a.o.type||1936286840==a.o.type||1953653094==a.o.type||1836019558==a.o.type||1836476516==a.o.type};
xF=function(a,b,c){return new qt(b,c,a.o.size,a.o.type,!0)};
tF=function(a,b,c){this.type=a;this.size=b;this.parent=c;this.offset=this.version=0};
zF=function(a,b){nF.call(this,a,b);this.o=new yF(0,0,null);this.P=NaN;this.A=1E3;this.w=32};
yF=function(a,b,c){this.type=a;this.size=b;this.parent=c;this.offset=0};
AF=function(a,b,c){g.P.call(this);this.F=0;this.w=a;this.A=[];this.u=null;this.B=b;this.V=c;this.C=this.G=NaN;this.Z=this.O=this.S=this.o=this.J=null;this.U=!1;this.H=this.P=null;this.w.A&&(this.H=new TE(this.w,this.B));this.w.S&&(2==this.B.info.containerType?this.o=new zF(this.w,this.V):this.o=new uF(this.w,this.V));this.ca=!1};
BF=function(a){var b=a.info.o.info;Av(b)&&!Bv(b)&&(a=$u(a),tu(a))};
CF=function(a){2==a.info.o.info.containerType&&a.info.isVideo()&&(a=$u(a),uu(a))};
uia=function(a,b,c){var d={};if(!c.verify(d)||c.info.o.Hr())d=Object.assign(d,Tu(c.info)),d.verification="1",DF(a,d);a.B.yc()&&c.w&&c.info.isVideo()&&sy(c.info.o,$u(c));c.info.A&&(a.Z=c.info);if(!a.B.yc()){(d=a.S)&&Xu(c.info,d);!a.o&&EF(a,c)&&hv(c);d=c;!a.O||(a.w.Em?Qu(a.O,d.info,!0):Ru(a.O,d.info))||(a.o&&a.o.reset(),a.G=NaN,a.F=0);a.O=d.info;if(a.o)b:{var e;(e=!isNaN(a.C))||(e=a.o,e=!(!isNaN(e.u)||!isNaN(e.H)));e&&(a.o.Zt(isNaN(a.C)?isNaN(a.G)?d.info.startTime:a.G:a.C),a.C=NaN);e=$u(d);e=a.o.process(e);
if(d.info.A&&!a.o.Rx()&&!a.w.Fm){var f=Tu(d.info);f.partialbox="1";DF(a,f)}if(g.dv(d.info.o.info)){var k=b.timing;e=!!d.info.w&&1936286840!=e&&!(a.w.u.o&&1936419184==e);f=d.info.A;if(3==mE(k)&&(k=k.Z,k.B.length)){var l=k.B.shift(),m=l.hu;e||(l.Xn-=Math.min(l.Xn,1500),l.hu=0);k.u+=l.Xn;k.o+=l.hu;k.w+=isNaN(m)?0:m;f&&(0>=k.o||cx(k.C,k.o/1E3,k.u,k.w/1E3),k.o=0,k.u=0,k.w=0)}}if(a.w.ov&&a.w.u.le){if(!a.o.O&&!d.info.A){d=null;break b}}else if(isNaN(a.o.C)){d=null;break b}e=a.o;l=d.info.o.info;if(e.F.length){e.O=
!1;f=0;m=g.q(e.F);for(k=m.next();!k.done;k=m.next())f+=k.value.byteLength;if(!e.G||e.G.length-e.U<f)e.G=new Uint8Array(Math.max(f,e.policy.fy+Math.round(l.o*e.policy.ey))),e.U=0;m=l=e.U;var n=g.q(e.F);for(k=n.next();!k.done;k=n.next())k=k.value,e.G.set(new Uint8Array(k.buffer,k.byteOffset,k.byteLength),l),l+=k.byteLength;e.F.length=0;e.U=l;e=new DataView(e.G.buffer,m,f)}else e=null;(f=e)?(k=d.info.w+d.info.Oa-a.o.B.length-f.byteLength,e=Wu(d.info,k,f.byteLength,d.info.A),d=d.w&&!k,f=new Uint8Array(f.buffer,
f.byteOffset,f.byteLength),d=new Zu(e,f,d)):d=null}else a.w.G?e=a.V(ev(d),1):e=isNaN(a.C)?isNaN(a.G)?d.info.startTime:a.G:a.C,a.C=NaN,fv(d,e)?a.G=e+gv(d):(e=Tu(d.info),e.smst="1",DF(a,e));if(!d)return[];c.w&&c.info.isVideo()&&sy(c.info.o,$u(c));c=d;EF(a,c)&&(a.o&&hv(c),jv(c),c.u&&(a.S=c?c.u:null,a.U=!!a.o,Xu(c.info,c.u),Xu(a.O,c.u),!c.info.o.o&&c.w&&c.u.A&&(c.info.o.o=Ks(c.o,0,c.u.A))));c.w&&(BF(c),CF(c));f=c;if(d=a.S)if(f.info.A){a.U=!1;a.P=null;a.o?(f=oF(a.o),a.o.Ym(),e=f.startTime,f=f.duration):
(e=ev(f),f=gv(f));f=FF(d,e,f,!1);a.R("segmentinfo",f);if(k=Gt(d))k.startSecs+=e,a.R("cuepoint",k,d.u);d=f}else a.U&&a.o&&!isNaN(a.o.C)?(d=FF(d,oF(a.o).startTime,d.je,!0),a.P=d,a.R("placeholderinfo",d),a.U=!1):d=null;else d=null;e=c;if(a.w.HB)if(d)for(Yu(e.info,d),b=g.q(b.info.o),e=b.next();!e.done;e=b.next())Yu(e.value,d);else a.P&&Yu(e.info,a.P);c.info.A&&(a.S=null);a.w.Ra?GF(a,c):HF(a,c)}if(a.w.Xu&&!a.B.yc()&&IF(a,c)&&Pu(c.info)&&c.info.duration&&!a.w.S&&(b=c,a.F+=1E3*(gv(b)-b.info.duration),a.J&&
Math.abs(a.F-a.J.F)>=a.w.nC))return b=(a.J.F-a.F)/1E3,d=gv(c)+b,e=$u(c),f=(f=g.Pt(e,0,1936286840))?au(f):NaN,isNaN(f)&&(f=c.info.o.o,f=(e=g.Pt(e,0,1836476516))?Tt(e):f?Ut(f):NaN),e=d*f,(f=JF(a,c))?(e=qfa(f,e))?(f=cu(f),a.u&&(f-=a.u.o.o,a.u=null),f=bv(c,f),f[0].o=new Cs([new Uint8Array(e)]),f[0].w=!!Ot($u(f[0]),0,1836019574),e=f):e=null:e=null,e&&e.length&&(f=Tu(c.info),f.fds=d.toFixed(3),f.com=a.F.toFixed(3),a.R("timestamprewrite",f),a.G+=b,a.F+=1E3*b),e?e:KF(a,c);b=c;a.ca&&a.B.yc()&&b.info.u==b.info.o.index.jb()&&
IF(a,b)?((b=JF(a,c))?(Qt(b),b=[],a.u&&a.u!=c&&(b.push(a.u),a.u=null),b.push(c)):b=null,a=b?b:KF(a,c)):(b=c,a.J&&a.J.sr()&&b.info.isVideo()&&!(a.getDuration()>=a.J.getDuration())&&a.B.yc()&&b.info.u==b.info.o.index.jb()&&IF(a,b)?(b=a.J.getDuration()-a.getDuration(),(d=JF(a,c))?(Rt(d,1+b/c.info.duration),b=[],a.u&&a.u!=c&&(b.push(a.u),a.u=null),b.push(c)):b=null,a=b?b:KF(a,c)):a=[c]);return a};
LF=function(a){var b=null;2==a.info.o.info.containerType?(a=Cu(new iu($u(a))))&&(b={type:"webm",key:a}):(a.info.J=YE($u(a)),a=ZE(a.info.J),0<a.length&&(b={type:"cenc",key:a}));return b};
GF=function(a,b){if(a.B.info.zc){var c=LF(b);c&&(c=new $E(c.key,c.type),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex,c.o=!0,c.u=!!a.B.info.audio),a.R("needkeyinfo",c))}};
HF=function(a,b){if(a.B.info.zc){var c=LF(b);c&&(b.info.o.H=c)}};
FF=function(a,b,c,d){Lt(a)&&(It(a),Jt(a),Kt(a));return new nt(a.u,b,c,a.ingestionTime,"sq/"+a.u,void 0,void 0,d)};
DF=function(a,b){a.R("error",b||{})};
EF=function(a,b){return!a.B.yc()&&0==b.info.w&&(g.dv(b.info.o.info)||2==b.info.o.info.containerType)};
IF=function(a,b){return!(0!=b.info.w&&!a.u)&&g.dv(b.info.o.info)};
KF=function(a,b){if(a.u&&a.u!=b){var c=[a.u,b];a.u=null;return c}return[]};
JF=function(a,b){if(a.u){var c=a.u,d=new Uint8Array(c.o.o+b.o.o);d.set(Js(c.o));d.set(Js(b.o),c.o.o);c=new DataView(d.buffer);cu(c);return c}c=$u(b);if((d=cu(c))&&d<c.byteLength)return c;a.u=b;return null};
MF=function(a,b,c){this.U=a;this.o=b;this.A=[];this.w=a.kd?new eF(a,b,c):new AF(a,b,c);this.u=this.F=null;this.S=0;this.P=b.info.o;this.O=0;this.G=b.Qk();this.C=-1;this.J=this.G?0:NaN;this.B=this.G;this.H=!1};
OF=function(a,b){b&&NF&&a.w.PB(b.mx());a.F=b};
PF=function(a){return a.F&&a.F.Yq()};
RF=function(a){for(;a.A.length&&6==a.A[0].state;){var b=a.A.shift();QF(a,b);b=b.timing;a.S=(b.C-b.o)/1E3}a.A.length&&SE(a.A[0])&&!a.A[0].info.gf()&&QF(a,a.A[0])};
QF=function(a,b){if(SE(b)){b.J=!0;var c=b.u,d=c.o;c.o=[];c.A=g.Xa(d).info;c=g.q(d);for(d=c.next();!d.done;d=c.next())SF(a,b,d.value)}};
SF=function(a,b,c){switch(c.info.type){case 1:case 2:a.w.so(c);break;case 4:var d=c.info.o.Hy(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.Xa(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())SF(a,b,c.value);break;case 3:a.w.Kt(b,c);break;case 6:a.w.Kt(b,c),a.u=c.info}};
TF=function(a){return a.w.Ct()};
UF=function(a,b){var c=b.info;c.o.info.o>=a.P&&(a.P=c.o.info.o)};
YF=function(a,b,c){c=void 0===c?!1:c;if(a.F){var d=a.F.Ad(),e=Yv(d,b),f=NaN,k=PF(a);k&&(f=Yv(d,k.o.index.Xc(k.u)));if(e==f&&a.u&&a.u.Oa&&VF(WF(a),0))return b}a=XF(a,b,c);return 0<=a?a:NaN};
$F=function(a,b){a.o.Cc();var c=XF(a,b);if(0<=c)return c;b=Math.min(b,a.w.Uy());a.u=a.o.Uf(b).o[0];ZF(a)&&a.F&&a.F.abort();a.O=0;return a.u.startTime};
aG=function(a,b){a.G=!0;a.B=!0;a.C=-1;$F(a,Infinity);a.w.As(b);a.J=b};
bG=function(a){var b=0;(0,g.y)(a.A,function(c){var d=b;c=c.u&&c.u.length?nia(c.u):qy(c.info);b=d+c},a);
return b+=a.w.Ty()};
cG=function(a,b){if(!a.F)return 0;var c=PF(a);return c&&c.C?c.B:$v(a.F.Ad(),b)};
eG=function(a){dG(a);a.w.Sy()};
fG=function(a,b){var c;for(c=0;c<a.A.length&&b!==a.A[c];c++);if(c==a.A.length)b.J&&a.w.uo(b),b.dispose();else{for(;c<a.A.length;){var d=a.A.pop();d.J&&a.w.uo(d);d.dispose()}Pu(b.info.o[0])?(b.u&&b.u.A?(c=b.u.A,c=new Nu(c.type,c.o,c.range,"getEmptyStubAfter_"+c.G,c.u,c.startTime+c.duration,0,c.w+c.Oa,0,!1)):(c=b.info.o[0],c=new Nu(c.type,c.o,c.range,"getEmptyStubBefore_"+c.G,c.u,c.startTime,0,c.w,0,!1)),a.u=c):a.u=null}};
ZF=function(a){return!a.U.zm&&"f"==a.o.info.u||a.U.V&&a.w.Wx()?!0:(a=PF(a))?a.C&&a.A:!1};
WF=function(a){var b=[],c=PF(a);c&&b.push(c);b=g.jb(b,a.w.Cn());(0,g.y)(a.A,function(d){(0,g.y)(d.info.o,function(e){d.J&&(b=(0,g.ve)(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))}));
(Pu(e)||4==e.type)&&b.push(e)})});
a.u&&!wfa(a.u,g.Xa(b),a.u.o.yc())&&b.push(a.u);return b};
VF=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Ru(a[c-1],a[c]))return!1;return!0};
XF=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.Oa)return NaN;a=WF(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.F<=b)if(d)e=f;else if(k.startTime+k.duration>=b){b=f;break a}}b=e}return 0>b?NaN:VF(a,c?b:0)?a[b].startTime:NaN};
gG=function(a){return lj(a.A,function(b){return 4<=b.state})};
hG=function(a){return!(!a.u||a.u.o==a.o)};
iG=function(a){return hG(a)&&a.o.Cc()&&a.u.o.info.o<a.o.info.o};
jG=function(a,b,c){var d=a.w.pl();return(a=d?d.info:PF(a))&&!a.C?a.B>b&&a.B<b+c:!1};
dG=function(a){(0,g.y)(a.A,function(b){b.J&&this.w.uo(b);b.dispose()},a);
a.A=[];a.u=null};
kG=function(a){return!!a.u&&-1!=a.u.u&&a.u.u<a.o.index.Me()};
lG=function(a){var b=a.u;b&&-1==b.u&&(a=a.w.pl())&&Pu(a.info)&&(a=a.info.u,b.G="updateLastSliceRequested",b.u=a)};
mG=function(a){return lj(a.A,function(b){return b.H})};
nG=function(a,b){this.u=a;this.o=b;this.w=1};
pG=function(a,b,c,d,e){e=void 0===e?!1:e;a.o.dc&&(d=Math.abs(d));d/=a.w;var f=1/jx(a.u);var k=.9*(d-a.o.Eb);k=Math.max(k,gx(a.u)+a.u.o.o*f);c=k/f*a.o.Su/(b+c);a.o.Dm&&(d-=a.o.Eb);c=Math.min(c,d);a.o.Jc&&e&&(c=Math.max(c,a.o.Jc));return oG(a,c,b)};
oG=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.o.Ru*c),Math.min(Math.min(a.o.da,31*c),Math.ceil(b*c))))};
via=function(a,b){var c=oG(a,b.video?a.o.Cv:a.o.Am,b.o);return a.o.Yj&&b.video?Math.max(c,a.o.Yj):c};
qG=function(a){var b=jx(a.u);if(a.o.Lx)return b;var c=a.o.Qu,d=1E-9+gx(a.u);b*=Math.min(1,c/(b*d));a.o.zh&&(c=((ax(a.u.A,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.o.zh*c);return b};
rG=function(a){return qG(a)/a.w};
sG=function(){var a=this;this.o=this.u=jaa;this.w=new Bf(function(b,c){a.u=b;a.o=c})};
tG=function(a,b,c,d){g.P.call(this);this.A=0;this.o=b;this.u=c;this.C=a;this.B=d;this.F=0;this.G=this.C.u&&!this.C.ye;this.w=!1;this.H=null};
uG=function(a,b){var c=a.o.index,d=a.u.u;yy(c,d)||b&&b.u==d?(a.B=!yy(c,d),a.H=!yy(c,d)):(a.B=!0,a.H=!0)};
vG=function(a,b,c){if(!a.o.Cc())return 0!=b&&dG(a),b;var d=YF(a,b);if(!isNaN(d))return d;eG(a);return c&&(c=Yv(c.Ad(),b),!isNaN(c))?($F(a,c+wia),b):$F(a,b)};
yia=function(a,b,c,d){if(a.w&&a.A){var e=xia(a,b,c);if(-1!=e){a.o.B=!1;a.u.B=!1;a.G=!0;g.wf(function(){wG(a,"seekreason","behindMinSq");xG(a,e)});
return}}c?a.o.H=!1:a.u.H=!1;0<=YF(a.o,a.A)&&0<=YF(a.u,a.A)?(a.o.B=!1,a.u.B=!1):d&&g.wf(function(){if(a.G||!a.B.U)a.B.Bg?yG(a):c&&xG(a,b.startTime);else{var f=b.startTime,k=b.duration,l=c?a.o.B:a.u.B,m=-1!=a.o.C&&-1!=a.u.C,n=a.B.Yu?0:.1,p=!a.o.H&&!a.u.H;!a.la()&&a.B.ga&&l&&m&&p&&(a.A>=f&&a.A<f+k+n?((c?a.o:a.u).B=!1,a.o.B||a.u.B||(wG(a,"iterativeSeeking","done;count."+a.F,!1),a.F=0)):8>a.F?(a.F++,wG(a,"iterativeSeeking","inprogress;count."+a.F+";target."+a.A+";actual."+f+";duration."+k+";isVideo."+
c,!1),a.seek(a.A)):(wG(a,"iterativeSeeking","incomplete;count."+a.F+";target."+a.A+";actual."+f,!1),a.F=0,a.o.B=!1,a.u.B=!1,a.R("seekplayerrequired",f+.1,!0)))}})};
xia=function(a,b,c){if(!a.w)return-1;c=(c?a.o:a.u).o.index;var d=c.Oe(a.A);return(yy(c,a.C.Ed)||b.Ma==a.C.Ed)&&d<a.C.Ed?a.C.zb():-1};
xG=function(a,b){!a.la()&&a.B.ga&&a.G&&-1!=a.o.C&&-1!=a.u.C&&(a.G=!1,a.R("seekplayerrequired",b+.1,a.B.Bg))};
yG=function(a){var b=-1!=a.o.C,c=-1!=a.u.C;if(!b||!c)if(b=!b&&TF(a.o),c=!c&&TF(a.u),b||c){c=b?a.o:a.u;b=b?a.u:a.o;var d=TF(c).info.u;if(-1!=b.C&&b.C!=d&&(a.R("error",!1,"qoe.avsync",{start:"1",target:String(b.C),actual:String(d)}),!a.B.Mm)){fz(a.C,d,c==a.o);zia(c,b.C);return}c.C=d;c.J=NaN;if(-1!=b.C){var e=Math.max(b.o.index.Xc(b.C),c.o.index.Xc(c.C));wG(a,"seekreason","initManifestlessSync");g.wf(function(){return xG(a,e)});
a.H&&(a.H.resolve(e+.1),a.H=null)}}};
zia=function(a,b){eG(a);$F(a,Infinity);var c=a.J;a.w.As(c);a.J=c;c=a.u;c.G="correctTrack_";c.u=b-1};
wG=function(a,b,c,d){a.R("ctmp",b,c,void 0===d?!1:d)};
zG=function(){this.u=this.w=0;this.B={}};
Aia=function(a,b,c,d){this.U=a;this.F=b;this.C=c;this.G=d;this.w=Kw;this.B=this.J=null;this.O=-1;this.u=this.A=null;this.o=[];this.S={};this.H=0;this.P=this.Z=!1;this.V=0};
Dia=function(a,b,c){AG(a,b);Bia(a,c);a.J=a.A;Cia(a);a.B=a.u;return BG(a)};
Eia=function(a,b){if(Hw(a.w,b))return null;if("m"==b.reason&&b.isLocked())return AG(a,b),a.H=a.o.length-1,CG(a),DG(a),a.P=a.P||a.B!=a.u,a.B=a.u,new jE(a.A,a.B,b.reason);"r"==b.reason&&(a.O=-1);AG(a,b);DG(a);if("r"==b.reason&&a.u==a.B)return new jE(a.A,a.u,b.reason);if(a.B&&a.u&&EG(a,a.B.info)<EG(a,a.u.info)){var c=a.w.reason;a.Z=a.Z||"r"==c||"u"==c||"v"==c}return null};
Fia=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,BG(a)}else a.J=b;return null};
FG=function(a,b){b.P=(0,g.N)();a.O=-1;AG(a,a.w)};
GG=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};
Gia=function(a){return new jE(a.J,a.B,a.w.reason)};
HG=function(a){return a.w.isLocked()};
Hia=function(a){return 0<a.o.length&&0==a.H};
BG=function(a){a.O=(0,g.N)();a.Z=!1;return new jE(a.J,a.B,a.w.reason)};
AG=function(a,b){a.w=b;var c=a.G.videoInfos;if(!HG(a)){var d=(0,g.N)()-6E4;c=(0,g.ve)(c,function(l){if(l.o>this.F.J)return!1;l=this.C.o[l.id];return l.P>d?!1:4<l.u.u||4<l.J||l.C?!1:!0},a);
if(GG(a)){var e=(0,g.ve)(c,function(l){l=Vu(l);return"140"==l||"134"==l||"243"==l});
e.length&&(c=e)}}c.length||(c=a.G.videoInfos);e=(0,g.ve)(c,b.A,b);e.length||(e=[c[0]]);e.sort((0,g.x)(function(l,m){return EG(this,l)-EG(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.fb(e,c),c--):EG(a,f)*a.F.o>EG(a,k)&&(g.fb(e,c-1),c--)}c=e[e.length-1];a.o=e;Wfa(a.F,c)};
Bia=function(a,b){if(b)a.A=a.C.o[b];else{var c=g.$a(a.G.o,function(d){return!!d.rb&&d.rb.isDefault});
c=c||a.G.o[0];a.A=a.C.o[c.id]}CG(a)};
CG=function(a){if(!a.A||!a.F.A)if(!a.A||!a.A.info.rb)if(a.A=a.C.o[a.G.o[0].id],1<a.G.o.length){if(a.F.mh)var b=!0;else if(a.w.isLocked())b=240>a.w.o;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].wa().quality;)b++;var c=rG(a.U)/a.F.o;b=EG(a,a.A.info)+EG(a,a.o[b])>c}b&&(a.A=a.C.o[g.Xa(a.G.o).id])}};
DG=function(a){if(!a.u||!a.F.A)if(HG(a))a.u=240>a.w.o?a.C.o[a.o[0].id]:a.C.o[g.Xa(a.o).id];else{for(var b=Math.min(a.H,a.o.length-1),c=rG(a.U),d=EG(a,a.A.info),e=c/a.F.w-d;0<b&&!(EG(a,a.o[b])<=e);b--);for(c=c/a.F.o-d;b<a.o.length-1&&!(EG(a,a.o[b+1])>=c);b++);a.u=a.C.o[a.o[b].id];a.H=b}};
Cia=function(a){var b=a.F.w,c=rG(a.U)/b-EG(a,a.A.info);b=g.ab(a.o,function(d){return EG(this,d)<c},a);
0>b&&(b=0);a.H=b;a.u=a.C.o[a.o[b].id]};
EG=function(a,b){if(!a.S[b.id]){var c=a.C.o[b.id].index.fx(a.V,15);c=b.A&&a.B&&a.B.index.Pb()?c||b.A:c||b.o;a.S[b.id]=c}return a.S[b.id]};
Iia=function(a,b){var c=Nb(a.C.o,function(d){return Vu(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Jia=function(a){var b=[];if("m"==a.w.reason||"s"==a.w.reason)return b;var c=!1;if(nga(a.C)){for(var d=Math.max(0,a.H-2);d<a.H;d++){var e=Vu(a.o[d]);uv(a.o[d].wa())||(c=!0);b.push(e)}b.reverse();if(!c&&a.F.Hu)for(d=Math.max(0,a.H-3);0<=d&&!c;d--)uv(a.o[d].wa())||(c=!0,b.push(Vu(a.o[d])))}return b};
IG=function(a,b,c,d){this.u=a;this.C=b;this.B=d;this.A=c;this.o=0};
JG=function(a,b,c,d){g.P.call(this);this.o=a;this.U=b;this.S=c;this.P=d;this.O=NaN;this.w=this.H=this.B=null;this.u=this.F=this.G=this.C=NaN;this.A=!1;this.J=NaN};
Kia=function(a,b,c,d){return a.sa&&a.ra&&3==uy(a)?new JG(a,b,c,d):null};
KG=function(a,b){if(a.o.qv){var c=b.info.o;if(0>=c)a.J=NaN;else{var d=jx(a.U),e=b.index.o;c=Math.max(1,d/c);a.J=Math.round(1E3*Math.max(((c-1)*e+a.o.O)/c,e-a.o.Wb))}}};
Lia=function(a,b){var c=(0,g.H)()/1E3,d=c-a.C,e=c-a.G,f=e>=a.o.Ag,k=!1;if(f){var l=0;!isNaN(b)&&b>a.F&&(l=b-a.F,a.F=b);l/e<a.o.wv&&(k=!0);a.G=c}c=d>=a.o.Wb&&!a.A;if(!f&&!c&&LG(a,b))return NaN;c&&(a.A=!0);a:{d=k;c=(0,g.H)()/1E3-(a.S.o()||0)-a.H.w-a.o.O;f=a.w.startTime;c=f+c;if(d){if(isNaN(b)){MG(a,NaN,"n",b);f=NaN;break a}d=b-a.o.Rb;d<c&&(c=d)}else a.A&&(d=c+a.o.O-a.O+a.o.xv,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.o.Rb))),c=d);f=c=Math.max(c,f)}a.u=f;if(isNaN(a.u))return NG(a),NaN;if(!k&&LG(a,b))return OG(a,
b),NaN;if(a.u<=a.w.startTime)return MG(a,NaN,"y",b),NG(a),NaN;if(!a.P(a.u,!1))return!OG(a,b)&&k&&(MG(a,NaN,"t",b),NG(a)),NaN;k=a.u;MG(a,k,"s",b);NG(a);return k};
OG=function(a,b){return a.P(a.u,!0)?!1:(MG(a,NaN,"ns",b),NG(a),!0)};
LG=function(a,b){return isNaN(b)?!0:isNaN(a.u)?!1:b<a.u+(a.A?a.o.Rb:a.o.tv)};
NG=function(a){a.B=null;a.H=null;a.w=null;a.C=NaN;a.G=NaN;a.F=NaN;a.u=NaN;a.A=!1};
MG=function(a,b,c,d){var e=GE(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.H.w).toFixed(0);e.ssr_fa=a.A?"1":"0";e.ssr_o=(1E3*a.S.o()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.w.o.index;yy(b,a.w.u,!0)&&(e.ssr_ist=(1E3*b.Xc(a.w.u)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.w.u)).toFixed(0));e=Sv(e);a.R("ctmp","ssr",e,!1)};
Mia=function(){this.u=g.WD;this.o=[]};
Nia=function(a,b,c){var d=[];for(b=PG(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};
QG=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};
Oia=function(a){return a.o.slice(PG(a,0x7ffffffffffff),a.o.length)};
PG=function(a,b){var c=sb(a.o,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
RG=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};
SG=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.wb(a.o,d,a.u)};
TG=function(a,b,c,d){g.A.call(this);this.A=NaN;this.C=this.F=this.started=!1;this.O=a;this.P=b;this.G=c;this.H=d;this.J=new g.I(this.u,250,this);g.C(this,this.J);this.B=new g.I(this.u,0,this);g.C(this,this.B);this.w=[];this.o=new Mia};
UG=function(a,b){if(!a.la()){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e){g.gb(a.w,e);var f=a.o;d=f.o;e=g.rb(d,e,f.u);0<=e&&g.fb(d,e)}}a.u()}};
VG=function(a){return a.la()?[]:a.o.o};
WG=function(a,b){var c=(0,g.ve)(VG(a),function(d){return d.namespace==b});
UG(a,c);return c};
XG=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};
YG=function(a,b){var c=[];if(!b.length)return c;b.sort(g.WD);for(var d=0;d<b.length;d++){var e=b[d];a.w.splice(a.w.indexOf(e),1);c.push([2,e])}return c};
Ria=function(a){if(a.started&&!a.la()){a.B.stop();var b=a.G();g.W(b,32)&&a.J.start();for(var c=Pia(a),d=g.W(b,2),e=[],f=[],k=0;k<a.w.length;k++){var l=a.w[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(YG(a,f));if(d){b=QG(a.o,0x7ffffffffffff);var m=b.filter(function(p){return 0x8000000000000>p.end});
var n=Oia(a.o)}else b=a.A<=c&&zD(b)?Nia(a.o,a.A,c):QG(a.o,c);e=e.concat(XG(a,b));m&&(e=e.concat(YG(a,m)));n&&(e=e.concat(XG(a,n)));a.A=c;Qia(a,e)}};
Qia=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]?(e.u&&e.u.R("onEnter",e),a.H(g.XD(e.namespace),e)):(e.u&&e.u.R("onExit",e),a.H("crx_"+e.namespace,e))}};
Pia=function(a){return g.W(a.G(),2)?0x8000000000000:1E3*a.O()};
aH=function(a,b,c,d,e,f,k){g.P.call(this);var l=this;this.V=a;this.o=b;this.B=c;this.ga=new zG;this.fb=k||null;this.O=new nG(a,b);this.F=new Aia(this.O,b,this.B,d);a=Dia(this.F,e,f&&f.id);this.A=new MF(this.o,a.audio,(0,g.x)(this.Lv,this));this.u=new MF(this.o,a.video,(0,g.x)(this.Lv,this));ZG(this,this.A);ZG(this,this.u);this.u.w.Vy(this.A.w);this.w=null;this.za={updateend:this.tH,error:this.jK};this.ca=new g.I(this.sf,0,this);g.C(this,this.ca);this.xa=new g.I(this.sf,1E3,this);g.C(this,this.xa);
this.Eb=new g.I(this.sf,void 0,this);g.C(this,this.Eb);this.Ra=new g.I(this.sf,1E4,this);g.C(this,this.Ra);this.U=this.C=NaN;this.Fa=0;this.da=this.Ba=this.ea=!1;this.sa="";this.ya=new Yw(5);this.na={};this.Ha=NaN;(this.G=Kia(this.o,this.V,this.ya,function(m,n){return $G(l,m,n)}))&&this.G.subscribe("ctmp",this.uc,this);
this.P=new tG(this.B,this.u,this.A,this.o);Sia(this,this.P);this.nb=NaN;this.Ja=null;this.S=NaN;this.Gb=this.xb=!1;this.Wa=0;this.Z=!1;this.J=this.H=null;this.ra=!1};
Tia=function(a){var b=a.u.o.index;a.Ja=new eia({Mh:a.o.Mh,le:a.o.u.le,PO:b.o,jb:function(){return b.jb()},
Xq:function(){return b.Xq()}})};
bH=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.Oe(b)||0;d.V!=e&&(d.S={},d.V=e,AG(d,d.w));e=!HG(d)&&-1<d.O&&8E3>(0,g.N)()-d.O;var f=d.u&&3*EG(d,d.u.info)<rG(d.U);if(!e||f)CG(d),DG(d),d.P=d.P||d.u!=d.B;d.u&&!d.u.index.Pb()&&(d.V=-1);d=d.u;c.o!=d&&(c.o=d);c=a.A;d=a.F.A;c.o!=d&&(c.o=d)};
cH=function(a,b){a.Ba=b;a.Z||(a.ea=!0)};
dH=function(a){a.w&&a.w.o&&a.w.u&&(Ar(a.w.o,a.za,a),Ar(a.w.u,a.za,a));OF(a.A,null);OF(a.u,null);a.w=null};
fH=function(a,b){b=void 0===b?!1:b;dH(a);b?a.Z=!0:a.o.ne?cH(a,a.xb):cH(a,!1);eH(a)};
hH=function(a){a.w&&iw(a.w)&&(fH(a),a.o.Vu&&gH(a,!0,"fmt.unplayable",{unexpected:1}))};
jH=function(a,b,c){if(a.ea&&(!lx(a.V)||a.Ba)||a.o.V&&!lx(a.V))return!1;if(a.B.u){if(0<b.A.length&&b.u&&-1==b.u.u||b.A.length>=a.o.cC&&!a.o.Gb||!a.o.Iu&&0<b.A.length&&!a.o.u.le)return!1;if(b.G)return!a.B.isLive||!isNaN(a.Ha)}if(mG(b))return!1;if(!(b.u||a.B.u&&a.o.Gb&&b.G)){if(!b.o.Cc())return!1;$F(b,a.C)}var d=b.A.length+c.A.length;(gG(b)||gG(c)||a.B.isLive&&(!a.o.Gb||!b.A.length))&&--d;if(d+1>=a.o.FC)return!1;d=b.u;if(!d)return!0;if(!ky(d.o.u))return!1;4==d.type&&d.o.Cc()&&(b.u=g.Xa(d.o.gp(d)),d=
b.u);if(!d.C&&!d.o.og(d)||d.o.info.audio&&4==d.type)return!1;if(iG(b)&&!a.o.na)return!0;if(d.C||bG(b)&&bG(b)+bG(c)>a.o.za)return!1;var e=!b.B&&!c.B,f=b==a.u&&a.Z;!(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.U&&!b.B&&c.B)&&(c=Pu(d))&&(d=d.B,a.Z&&a.H?c=a.H.Qc.startSecs+a.H.Qc.durationSecs:(c=iH(a,b,!0),!HG(a.F)&&0<a.o.Z&&(e=((0,g.N)()-a.Fa)/1E3,c=Math.min(c,a.o.Z+a.o.pc*e)),c=a.C+c,a.o.oe&&(e=Uia(a)+a.o.oe,e<c&&(a.uc("mrl","ori."+c+";mod."+e,!0),a.o.Wz&&(a.Fa=(0,g.N)()),c=e))),
c=d>c);return c||a.o.QC&&(a=b.F)&&a.isLocked()?!1:!0};
kH=function(a,b,c){if((!a.w||fw(a.w)||kw(a.w))&&!a.P.w&&a.F.Z){var d=a.C;a=a.O;c=pG(a,b.o.info.o,c.o.info.o,0);var e=gx(a.u)+c/jx(a.u);d+=Math.max(e,e+a.o.jd-c/b.o.info.o);a:{if(b.A.length){if(b.A[0].info.o[0].startTime<=d)break a;dG(b)}b.w.Ry(d);b.A.length?b.u=g.Xa(g.Xa(b.A).info.o):b.w.Ex()?b.u=b.w.pl().info:b.u=PF(b);b.u&&d<b.u.startTime&&(b.O=0,b.u=b.o.Uf(d,!0).o[0])}}};
mH=function(a,b,c){if(jH(a,b,c))if(c=Via(a,b,c),a.o.Zu&&a.B.u&&!b.G&&0>c.o[0].u)a.uc("invalidsq",Uu(c.o[0]));else{if(a.Na){var d=Wia(a.Na.o,c.o[0].F,c.o[0].o.info.id);d&&(c.B=d)}a.o.Cm&&-1!=c.o[0].u&&c.o[0].u<a.B.Ed&&(c=b.o.gi(a.B.Ed,!1));a=lH(a,c);b.A.push(a);b.u=g.Xa(a.info.o)}};
Via=function(a,b,c){if(b.G){if(a.B.isLive){var d=a.B.Ed&&a.B.Z?b.o.gi(a.B.Ed,!1):b.o.Uf(Infinity);d.be=a.Ha}else d=b.o.gi(0,!1);a.G?0==d.be&&(d.A=a.G.J):d.A=a.nb;return d}d=b.u;if(!d.o.Cc())return d.o.yc()?(a=pG(a.O,b.o.info.o,c.o.info.o,0),a=d.o.di(d,a)):a=d.o.pj(d),a;!iG(b)||a.o.na||a.B.u||(kH(a,b,c),b.u||$F(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;Xia(a,b,e)&&0==f&&(a.B.u?k=b.o:(k=d.startTime+nH,d.Oa&&(k+=d.duration),$F(b,k),d=b.u,k=d.o));k.yc()?
(c=pG(a.O,k.info.o,c.o.info.o,e,Hia(a.F)&&a.da),b=a.o.xm?hG(b):hG(b)&&b.o.Cc(),d=Yia(d,c,b)):(0>d.u&&(c=Tu(d),c.pr=""+b.A.length,a.P.w&&(c.sk="1"),a.uc("nosq",d.G+";"+Sv(c))),d=k.pj(d));a.Z&&d.o.forEach(function(l){l.type=6});
return d};
Xia=function(a,b,c){if(!hG(b)||!b.o.Cc())return!1;a=Math.min(15,.5*iH(a,b,!0));return iG(b)||c<=a};
Yia=function(a,b,c){b=a.o.di(a,b);if(b.range&&1<b.o.length)if(c||b.u.u||b.o[0].o!=a.o)b=a.o.di(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.di(a,b.range.length-c.Oa))}return b};
Zia=function(a,b){var c=qy(b),d=a.O;var e=Math.min(2.5,gx(d.u));d=qG(d);e=c-e*d;d=Ou(b.o[0]);var f=gt(b.u.o),k=a.o.V,l;a.Ja?l={gf:d,Ir:f,Cr:k,pG:a.Ja,Ma:b.o[0].u,be:b.be}:l={gf:d,Ir:f,Cr:k};return new jia(a.V,c,e,l)};
lH=function(a,b){Pu(b.o[b.o.length-1])&&oH(a,Fia(a.F,b.o[0].o));var c=Zia(a,b);a.o.uB&&(c.G=[]);var d=new EE(a.o,b,c,a.na);c.Ba=function(){return ria(d)?d.A.tn&&window.performance&&window.performance.now&&d.o&&d.o.aj()&&RE(d)&&CE(d.o)?d.info.o[0].o.info.video?3:4:2:1};
oia(d,(0,g.x)(a.FM,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.ca=Jia(a.F));a.Z&&(d.da=!0);d.start(Math.max(0,b.o[0].F-a.C));return d};
oH=function(a,b){b&&a.R("videoformatchange",b)};
pH=function(a,b){var c=b.info.o[0].o,d=c.info.video?a.u:a.A;$ia(a,d,b);b.info.gf()&&!ny(b.info)&&((0,g.y)(b.u.o,function(e){d.w.so(e)}),a.o.fn||a.R("metadata",c));
a.o.yd&&RF(d);return!!TF(d)};
$ia=function(a,b,c){if(a.B.u&&b&&(b.G&&(5<=c.state||RE(c),b.G=!1),c.S&&a.ya.w(1,c.S),c.o&&(c.V=parseInt(c.o.Wc("X-Head-Seqnum"),10)),b=c.V)){a=a.B;for(var d in a.o)c=a.o[d].index,c.u&&(c.w=Math.max(c.w,b))}};
qH=function(a,b,c){a:{b=b.info;var d=a.o.Nu,e=null,f=b.o[0];if(b.range)e=Lu(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=Lu(0,4096)}else if(f.o.info.video){c=null;break a}b=new Nu(5,f.o,e,"createProbeRequestInfo_"+f.G,f.u);b=new my([b]);b.C=c;c=b}c&&lH(a,c)};
uH=function(a){var b=a.w.o,c=a.w.u;a.A.o.F&&rH(b,a.A.o.F);if(aja(a)){if(a.o.ym){if(!b.Ph()){var d=TF(a.A);d&&sH(a,b,d)}c.Ph()||(b=TF(a.u))&&sH(a,c,b)}}else{if(a.G){d=a.G;var e=a.A,f=Zv(a.w.u.Ad());if(d.B)d=Lia(d,f);else{if(f=TF(e)){var k=f.u;k&&k.B&&k.w&&(e=e.A.length?e.A[0]:null)&&3<=e.state&&7!=e.state&&0==e.info.be&&RE(e)&&(d.B=e,d.H=k,d.w=f.info,d.C=(0,g.H)()/1E3,d.G=d.C,d.F=d.w.startTime)}d=NaN}d&&a.R("seekplayerrequired",d,!0)}d=!1;tH(a,a.u,c)&&(d=!0,c=a.ga,c.w||(c.w=(0,g.H)(),c.cd("vda"),aB("vda"),
c.u&&Rp(4)));c=TF(a.u);a.o.ya&&!d&&c&&(a.Gb||a.uc("sbp",a.w.u.Ya({ns:Uu(c.info)})),a.Gb=!0);a.w&&!iw(a.w)&&(tH(a,a.A,b)&&(b=a.ga,b.u||(b.u=(0,g.H)(),b.cd("ada"),aB("ada"),b.w&&Rp(4)),d=!0),!a.la()&&a.w&&(!a.o.ea&&ZF(a.u)&&ZF(a.A)&&fw(a.w)&&!a.w.de()&&(b=PF(a.A).o,b==a.B.o[b.info.id]&&(b=a.w,fw(b)&&b.w.endOfStream(),b=a.V,Pw(kx(b)),b.B=bx()),a.o.Bm&&(b=(0,g.N)(),c=new Uint8Array(524288),e=new Uint8Array((new Uint8Array(524288)).buffer,1),(new Uint8Array(c.buffer,1)).set(e),a.uc("arrayBench","dur."+
((0,g.N)()-b)))),d&&!kw(a.w)&&g.Bn(a.ca)))}};
aja=function(a){if(a.o.Ja)return!1;var b;if(!(b=mG(a.u))&&(b=a.P.w)){b=a.O;var c=a.u,d=a.A;if(0==c.A.length&&0==d.A.length)b=!0;else{var e=0,f=c.w.Cn().concat(d.w.Cn());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)/rG(b)}(b=!b)||(b=a.u,b=0<b.A.length&&1==b.w.kx()&&b.w.Ct().info.H<b.S)}if(b)return!0;if(!a.da||!a.o.Fa||10>a.C||360<a.u.o.info.wa().ac)return!1;b=jG(a.u,a.C,a.o.Fa)||jG(a.A,a.C,a.o.Fa);return(0<a.u.A.length||0<a.A.A.length||
jH(a,a.u,a.A)||jH(a,a.A,a.u))&&b};
tH=function(a,b,c){if(c.de())return!0;if(!c.kq())return!1;var d=TF(b);if(!d||6==d.info.type)return!1;var e=d.info,f=PF(b);!f||f.A||Qu(f,e)||c.abort();c.uu(e.o.info.containerType,e.o.info.mimeType);if(e=a.o.xb&&a.B.w&&0==d.info.w&&(g.dv(d.info.o.info)||a.o.qw)){if(null==c.Ph()){e=PF(b);if(!(f=!e||e.o!=d.info.o)){b:if(e=e.J,f=d.info.J,e.length!=f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.ub(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Ph(),f=d.info.o.o,e=e!==f&&!g.ub(e,f);e=!e}e&&(g.dv(d.info.o.info)?
(du($u(d),1836019574),du($u(d),1718909296)):(e=new iu($u(d)),Iu(e),mu(e,524531317,!0),d.o=d.o.split(nu(e)).vp),d.w=!1);a.o.Hf&&d.w&&(d.w=!1);f=a.G&&!!a.G.B&&b.o.info.audio;e=a.B.u||d.w;if(!(a.B.w&&0!=d.info.w||e&&!f)&&sH(a,c,d))return!0;if(f)return!1;f=a.C+iH(a,b,!1);if(!(f=d.info.F>f)){a:if(a.o.ya&&a.uc("sba",c.Ya({as:Uu(d.info)})),f=d.w?d.info.o.o:null,k=Js(d.o),d.w&&(k=new Uint8Array(k.buffer,0,k.byteOffset+k.length)),f=vH(a,c,k,d.info,f),"s"==f)c=!0;else{a.o.Uu||(c.abort(),eG(b));if("i"==f||"x"==
f)wH(a,"checked",f,d.info);else{if("q"==f&&(d.info.isVideo()?(f=a.o,f.C=Math.floor(.8*f.C),f.ca=Math.floor(.8*f.ca),f.B=Math.floor(.8*f.B)):(f=a.o,f.F=Math.floor(.8*f.F),f.Ba=Math.floor(.8*f.Ba),f.B=Math.floor(.8*f.B)),c.supports(2)&&!c.de()&&!a.w.isView())){f=!1;k=c.Ad();for(var l=0;!f&&l<k.length;l++)k.start(l)>d.info.B&&(c.remove(k.start(l),k.end(k.length-1)),f=!0);k=Math.max(0,Math.min(a.C,d.info.startTime)-5);!f&&k&&c.remove(0,k);c=!1;break a}a.R("reattachrequired")}c=!1}f=!c}if(f)return!1;b.w.vo();
UF(b,d);e&&(b=d.info.o.H)&&a.R("newDrmInfo",b.type,b.key);return!0};
wH=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&&!GG(a.F)&&FG(a.F,d.o)):"i"==c&&(15>a.Wa?(a.Wa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Tu(d);d.mrs=a.w.w.readyState;d.origin=b;d.reason=c;gH(a,f,e,d)};
yH=function(a,b,c){if(c&&a.o.nb){var d=a.H&&a.J&&a.H.Ma==a.J.Ma-1;d=a.H&&d&&"stop"!=a.H.Qc.event&&"predictStart"!=a.H.Qc.event;a.J&&a.J.Ma<b.Ma&&(d?xH(a,a.J):a.ra=!0);a.J=b}d=a.B;var e=!1,f;for(f in d.o){var k=Ev(d.o[f].info.mimeType)||d.o[f].info.isVideo();c==k&&(k=d.o[f].index,yy(k,b.Ma)||(k.Wy(b),e=!0))}yia(a.P,b,c,e)};
sH=function(a,b,c){c.info.o.Cc();var d=c.info.o.o;if(null==d||b.Ph()==d)return!1;var e=d,f=b.vn();if(a.o.Hf&&f&&b.isView()&&g.dv(c.info.o.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=sfa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.uc("fenc","1")}d=vH(a,b,e,null,d);if("s"!=d)return wH(a,"sepInit",d,c.info),!0;(c=c.info.o.H)&&a.R("newDrmInfo",c.type,c.key);return b.de()};
vH=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";a.o.dd&&(b=Vv(b.Ad()).replace(/,/g,"_"),a.uc("quex","br."+b+";e."+f));return"q"}return iw(a.w)?"m":"s"};
ZG=function(a,b){b.w.subscribe("needkeyinfo",a.QJ,a);b.w.subscribe("error",a.yL,a);b.w.subscribe("timestamprewrite",a.DL,a);var c=(0,g.x)(a.AL,a,b);b.w.subscribe("placeholderinfo",c,void 0);c=(0,g.x)(a.BL,a,b);b.w.subscribe("placeholderrollback",c,void 0);c=(0,g.x)(a.CL,a,b);b.w.subscribe("segmentinfo",c,void 0);c=a.zL.bind(a);b.w.subscribe("gaplessinfo",c,void 0);b==a.u&&b.w.subscribe("cuepoint",a.wA,a)};
Sia=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.Z||a.R("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.uc(c,d,!1)});
b.subscribe("error",function(c,d,e){gH(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.C=c})};
rH=function(a,b){var c=0+b.duration,d=-b.o;0==a.un()&&c==a.Sq()||a.Vt(0,c);d!=a.Ab()&&a.lp(d)};
xH=function(a,b){if(a.H){a.J=null;a.ra=!1;var c=b.startTime+a.S-a.H.Qc.startSecs;0>=c||(c=new Ct(a.H.Qc.startSecs-(a.o.Xb&&!isNaN(a.S)?a.S:0),c,a.H.Qc.context,a.H.Qc.identifier,"stop",a.H.Qc.o+1E3*b.duration),a.uc("cuepointdiscontinuity","segNum."+b.Ma),a.wA(c,b.Ma))}};
iH=function(a,b,c){if(a.ea)return 1;var d=b.o.info.audio?a.o.F:a.o.C;!a.o.na&&HG(a.F)&&(d=Math.max(d,b.o.info.audio?a.o.Ba:a.o.ca));c&&(d+=a.o.za);var e=HG(a.F)?b.u?b.u.o.info.o:b.o.info.o:b.P;d/=e;0<a.o.Ha&&a.w&&fw(a.w)&&(b=b.o.info.video?a.w.u:a.w.o)&&!b.de()&&(b=b.Ad(),e=Wv(b,a.C),0<=e&&(b=a.C-b.start(e),d+=Math.max(0,Math.min(b-a.o.Ha,a.o.GC))));0<a.o.B&&(d=Math.min(d,a.o.B));a.o.hd&&c&&!HG(a.F)&&(c=a.F,c=EG(c,g.Xa(c.o))+EG(c,c.G.o[0]),c=a.o.hd*(c/qG(a.O)),c<d&&15>c&&a.uc("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
Uia=function(a){if(!a.fb)return Infinity;var b=(0,g.ve)(VG(a.fb),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};
bja=function(a,b){var c=WF(a.u).find(function(d){return d.startTime>=b&&$G(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime:0};
$G=function(a,b,c){if(!(a.u.o.Cc()&&a.A.o.Cc()&&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=YF(a.u,b,c);if(isNaN(d))return!1;a=YF(a.A,a.o.ra?b:d,c);return isNaN(a)?!1:!0};
zH=function(a,b,c,d){c.Cc()||c.B||!ky(c.u)||(d=c.Ui(d?via(a.O,c.info):0),(0,g.y)(d,function(e){if("f"!=e.o[0].o.info.u){var f=lH(this,e);ny(e)&&(b.A.push(f),b.u=g.Xa(f.info.o))}},a),c.B=!0)};
gH=function(a,b,c,d){a.la()||(d=new Rv(c,b,d),g.Ra(a),Sv(d.details),a.R("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
eH=function(a){eG(a.A);eG(a.u)};
cja=function(a,b){var c=b.info.video?a.u:a.A;null!=c&&zH(a,c,b,!1)};
AH=function(a){this.o=a};
dja=function(a,b,c){this.url=a;this.interval=b;this.o=c};
BH=function(){g.P.apply(this,arguments)};
CH=function(a,b,c,d){BH.call(this);var e=this;this.w=-1;this.o={};this.A=new g.I(this.B,0,this);g.C(this,this.A);this.u=new g.I(function(){e.la()||(e.A.start(Math.random()*c),e.u.start(b))},a,this);
g.C(this,this.u);d.subscribe("fairplay_next_need_key_info",this.C,this)};
eja=function(a,b,c){a=a.match(od);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="+dd(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};
DH=function(a){a=a.subarray(4);return String.fromCharCode.apply(null,new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2))};
EH=function(a,b){this.statusCode=a;this.errorMessage=null;this.message=b;this.w=this.u=this.o=this.heartbeatParams=null};
FH=function(a){var b=hu(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=Nt(b.slice(d+2));if(null==b)return null;a=new EH(e,a.subarray(c+4));0!=a.statusCode&&(a.errorMessage=g.nD(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new dja(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=fja(c);a.w=b["Next-Key-Id"];return a};
fja=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};
GH=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.Vn(5E3,2E4,.2)};
HH=function(a,b,c,d,e){g.A.call(this);this.F=a;this.P=b;this.J=c;this.o=d;this.u=e;this.sessionId="";this.H=this.G=this.A=this.C=null;this.B=new g.O(this);g.C(this,this.B);this.o?(this.B.L(this.o,"message",this.BH),this.B.L(this.o,"keystatuseschange",this.CH),this.o.closed&&this.o.closed.then(Io((0,g.x)(this.GK,this)),null)):this.u&&(xr(this.B,this.u,["mskeymessage","webkitkeymessage"],this.FA),xr(this.B,this.u,["mskeyerror","webkitkeyerror"],this.EA),xr(this.B,this.u,["mskeyadded","webkitkeyadded"],
this.DA))};
IH=function(a,b,c,d,e,f){a.C=b;a.A=c;a.G=d;a.H=e;a.w=f};
JH=function(a,b){g.A.call(this);this.u=a;this.o=b;this.F={};this.A=null;this.B=new g.O(this);g.C(this,this.B);this.w=this.C=null};
KH=function(a){if(a.o.keySystemAccess)return a.o.keySystemAccess.createMediaKeys().then(Io(function(b){a.la()||(a.C=b,a.u.setMediaKeys(b))}));
jz(a.o)?a.w=new (iz())(a.o.o):mz(a.o)?(a.w=new (iz())(a.o.o),a.u.webkitSetMediaKeys(a.w)):gja(a);return null};
gja=function(a){xr(a.B,a.u,["keymessage","webkitkeymessage"],a.FH);xr(a.B,a.u,["keyerror","webkitkeyerror"],a.EH);xr(a.B,a.u,["keyadded","webkitkeyadded"],a.DH)};
hja=function(a){return"widevine"==a.o.flavor&&a.o.lm&&a.C.setServerCertificate?a.C.setServerCertificate(a.o.lm):null};
LH=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};
MH=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};
PH=function(a,b,c,d,e,f){g.A.call(this);this.T=a;this.u=a.sd;this.kc=e;this.w=b;this.cryptoPeriodIndex=d.cryptoPeriodIndex||NaN;this.ca=f;this.B=ija(this);this.B.session_id=f;this.G=!0;"widevine"==this.u.flavor&&(this.B.hdr="1");"playready"==this.u.flavor&&(a=parseInt(g.nv(b.experiments,"playready_first_play_expiration"),10),!isNaN(a)&&0<=a&&(this.B.mfpe=""+a),g.Q(b.experiments,"html5_playready_keystatuses_killswitch")||(this.G=!1),g.Q(b.experiments,"html5_playready_enable_non_persist_license")&&
(this.B.pst="0"));a="fairplay"==this.u.flavor?DH(d.initData).replace("skd://","https://"):this.u.w;g.Q(this.w.experiments,"enable_shadow_yttv_channels")&&(a=new g.Sm(a),document.location.origin&&document.location.origin.includes("green")?g.Um(a,"web-green-qa.youtube.com"):g.Um(a,"www.youtube.com"),a=a.toString());e=a=this.H=a;var k=void 0===k?!1:k;Ss(Us(e,jja,null),e,k,"Drm Licensor URL")||NH(this,"drm.net",!0,"t.x");for(var l in this.B)k=l,e=this.B[l],a=Bd(Fd(a,k),k,e);this.V=a;this.U=g.Q(b.experiments,
"html5_use_drm_retry");this.S=0;this.F=this.J=!1;ZA("drm_gk_s");try{var m=c.createSession(d)}catch(n){b="t.g",n instanceof DOMException&&(b+=";c."+n.code),this.kc.R("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),m=null}if(this.A=m)IH(this.A,this.yH,this.xH,this.wH,this.zH,this),g.C(this,this.A);this.Z=d.A;this.C=[];this.P=!1;this.o={};this.O=NaN;OH(this,"lcsct"+d.cryptoPeriodIndex)};
ija=function(a){var b={};g.Ub(b,a.w.deviceParams);b.cpn=a.T.clientPlaybackNonce;var c=["23775802"].filter(function(d){return a.w.experiments.experiments[d]});
0<c.length&&(b.fexp=c.join());a.T.Fe&&(b.vvt=a.T.Fe,a.T.mdxEnvironment&&(b.mdx_environment=a.T.mdxEnvironment));a.w.Kc&&(b.authuser=a.w.Kc);a.w.pageId&&(b.pageid=a.w.pageId);isNaN(a.cryptoPeriodIndex)||(b.cpi=a.cryptoPeriodIndex);g.Q(a.w.experiments,"html5_send_device_type_in_drm_license_request")&&(c=Sca())&&(b.cdt=c);return b};
kja=function(a){var b={};g.Ub(b,a.B);return b};
QH=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(pba(a.childNodes[0].data)):null:null};
lja=function(a,b){OH(a,"sdpvrq");if("widevine"!=a.u.flavor)NH(a,"drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.T.clientPlaybackNonce};g.Ub(c,a.w.deviceParams);c=g.Ad("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:hu(b)}),responseType:"arraybuffer"};g.$q(c,d,3,500).then(Io(function(e){if(!a.la()){e=
new Uint8Array(e.response);var f=hu(e);try{var k=JSON.parse(f)}catch(l){}k&&k.signedResponse?(a.kc.R("ctmp","provisioning",""),a.A&&a.A.update(e)):(k=k&&k.error&&k.error.message,e="e.parse",k&&(e+=";m."+k),NH(a,"drm.provision",!0,e))}}),Io(function(e){a.la()||NH(a,"drm.provision",!0,"e."+e.errorCode+";c."+(e.bi&&e.bi.status))}))}};
RH=function(a){var b;if(b=a.G&&null!=a.A)a=a.A,b=!(!a.o||!a.o.keyStatuses);return b};
SH=function(a,b){ZA("drm_net_s");if(a.T.useInnertubeDrmService()){var c=new g.Jq(a.w.Xg),d=g.gp(c);d.drmSystem=mja[a.u.flavor];d.videoId=a.T.videoId;d.cpn=a.T.clientPlaybackNonce;d.sessionId=a.ca;d.licenseRequest=g.dg(b.message);d.drmParams=a.T.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e={onSuccess:(0,g.x)(b.F,b),onError:(0,g.x)(b.C,b)};g.mp(c,"player/get_drm_license",d,e)}else c=a.V,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=Bd(Fd(c,"access_token"),"access_token",d)),g.xq(c,e)};
NH=function(a,b,c,d,e){a.la()||a.kc.R("licenseerror",b,c,d,e);c&&a.dispose()};
nja=function(a,b){var c=b.u.getValue();c=new g.I(function(){return SH(a,b)},c);
g.C(a,c);c.start();g.Wn(b.u);OH(a,"rtyrq")};
TH=function(a){return g.cb(a,"UHD2")?"highres":g.cb(a,"UHD1")?"hd2160":g.cb(a,"HD")?"hd1080":g.cb(a,"HD720")?"hd720":"large"};
UH=function(a,b){if(!RH(a)&&lz(a.u)&&!b)return"large";var c=[],d=!0;if(RH(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(!RH(a)||d)c=a.C;return TH(c)};
VH=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};
oja=function(a){if(RH(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};
WH=function(a,b,c,d,e){var f;"playready"===e?f=QH(a):"fairplay"==e&&(f=gu(g.dg(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Qaa(c,d),g.$q(c,a,3,500).then(function(k){k=new Uint8Array(k.response);(k=FH(k))&&k.message&&b.update(k.message)}))};
XH=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};
YH=function(a,b){for(var c in a.o)if("usable"==a.o[c].status&&a.o[c].type==b)return!0;return!1};
OH=function(a,b){WB(a.T)&&a.kc.R("ctmp","drmlog",b)};
ZH=function(a,b){g.A.call(this);this.o=g.pe("video");this.u=null;this.w=new hz("fairplay","com.youtube.fairplay","",b);this.w.Le=a;this.A=[];this.B=new g.O(this);g.C(this,this.B);pja(this)};
pja=function(a){var b,c;Da(function(d){if(1==d.o){if(!a.o)return d["return"]();g.vh(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 ua(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2)}c=d.u;a.w.keySystemAccess=c;a.u=new JH(a.o,
a.w);g.C(a,a.u);KH(a.u);d.o=0})};
$H=function(){this.keys=[];this.values=[]};
aI=function(a,b,c){BH.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.R("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.C(this,this.u);c.subscribe("widevine_set_need_key_info",this.B,this)};
dI=function(a,b,c){g.P.call(this);a&&(a.addKey||a.webkitAddKey)||iz()||nz(c.experiments);this.J=a;this.T=b;this.o=b.sd;this.u=c;this.subscribe("newlicense",this.RL,this);this.subscribe("newsession",this.TL,this);this.subscribe("sessionready",this.VM,this);this.subscribe("keystatuseschange",this.HH,this);this.subscribe("hdentitled",this.dL,this);this.sa=b.drmSessionId||g.Pr();this.w=new $H;this.da=null;this.F=new $H;this.B=new $H;this.A=[];b=g.Q(this.u.experiments,"html5_drm_initial_constraint_from_config")?
this.T.nk:g.Q(this.u.experiments,"html5_drm_start_from_null_constraint");this.H="fairplay"==this.o.flavor?Kw:b?Kw:bI;this.S=null;this.P=new JH(a,this.o);g.C(this,this.P);this.C=null;jz(this.o)&&(this.C=new JH(a,this.o),g.C(this,this.C));this.ra=2;this.V=new g.O(this);g.C(this,this.V);this.na=this.ea=!1;this.ga=null;this.U=!1;a=this.J;this.o.keySystemAccess?this.V.L(a,"encrypted",this.GH):xr(this.V,a,jz(this.o)?["msneedkey"]:["needkey","webkitneedkey"],this.PL);(a=KH(this.P))?a.then(Io((0,g.x)(this.xL,
this)),Io((0,g.x)(this.mK,this))):(cI(this,"mdkrdy"),this.U=!0);this.C&&KH(this.C);this.O=this.ca=this.Z=!1;a:{a=this.o;b=this.u.experiments;c=this.w;switch(a.flavor){case "fairplay":19.2999<dl()?(b=a.ln,a=a.kn,a>=b&&(a=.75*b),c=.5*(b-a),a=new CH(c,b,b-c-a,this)):a=null;break a;case "widevine":a=new aI(g.Q(b,"disable_license_delay"),c,this);break a}a=null}if(this.G=a)g.C(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.Hv,this);cI(this,"cks"+this.o.Zd());a=this.o;"com.youtube.widevine.forcehdcp"===
a.o&&a.A&&(this.xa=new ZH(this.T.Le,this.u.experiments),g.C(this,this.xa))};
gI=function(a,b,c){a.na=!0;c=new $E(b,c);g.Q(a.u.experiments,"html5_eme_loader_sync")?(a.F.get(b)||a.F.set(b,c),eI(a,c)):0!=a.A.length&&a.T.va&&a.T.va.o?fI(a):eI(a,c)};
hI=function(a,b,c){cI(a,"onndrminf");b=new $E(c,b);g.Q(a.u.experiments,"html5_eme_loader_sync")&&(a.B.get(c)||a.B.set(c,b));eI(a,b)};
iI=function(a,b){g.Q(a.u.experiments,"html5_eme_loader_sync")&&(a.B.get(b.initData)||a.B.set(b.initData,b));eI(a,b)};
rja=function(a,b){if(jz(a.o)&&!a.Z){var c=tia(b);if(0!=c.length){var d=new $E(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){qja(a,f,d)})},null)}}};
qja=function(a,b,c){var d=b.createSession(),e=a.w.values[0],f=kja(e);d.addEventListener("message",function(k){k=new Uint8Array(k.message);WH(k,d,a.o.w,f,"playready")});
d.addEventListener("keystatuseschange",function(){d.keyStatuses.forEach(function(k,l){"usable"==l&&(a.ca=!0,jI(a,UH(e,a.ca)))})});
d.generateRequest("cenc",c.initData)};
eI=function(a,b){if(!a.la()){if(g.Q(a.u.experiments,"html5_eme_loader_sync")&&a.T.va&&a.T.va.o){var c=a.B.get(b.initData),d=a.F.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.F.remove(c);a.B.remove(c)}cI(a,"initd"+b.initData.length+"ct"+b.contentType);"widevine"==a.o.flavor?a.ea&&!a.T.ua||g.Q(a.u.experiments,"vp9_drm_live")&&a.T.ua&&!b.u||(a.ea=!0,aF(b),a.R("widevine_set_need_key_info",b)):a.Hv(b)}};
kI=function(a){a.la()||(a.U=!0,cI(a,"onmdkrdy"),fI(a))};
fI=function(a){if(a.na&&a.U&&!a.O){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}aF(b);break}if(a.A.length){b=a.A[0];a.w.get(b.initData);a.O=!0;var c=new PH(a.T,a.u,a.P,b,a,a.sa);a.w.set(b.initData,c)}}};
jI=function(a,b){var c=Iw("auto",b,!1,"l");if(g.Q(a.u.experiments,"html5_drm_initial_constraint_from_config")?a.T.nk:g.Q(a.u.experiments,"html5_drm_start_from_null_constraint")){if(Hw(a.H,c))return}else if(Nw(a.H,b))return;a.H=c;a.R("qualitychange");cI(a,"updtlq"+b)};
cI=function(a,b){WB(a.T)&&a.kc.R("ctmp","drmlog",b)};
lI=function(a,b,c,d){this.videoData=a;this.o=b;this.reason=c;this.u=d};
sja=function(a,b){this.videoData=a;this.va=b};
tja=function(a,b,c){return b.Nm(c).then(function(){return(a.fa("disable_index_range_auth")||!b.Jn||!b.va.o||b.Pe()||b.Rk()?0:/(&|,|^)init=0-0(&|,|$)/.test(b.adaptiveFormats))?br(new Rv("auth",!0,{init:"1"})):cr(new sja(b,b.va))},function(d){d instanceof Error&&g.Jo(d);
d=b.ua&&!g.Bw(a.w)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Xd,f18:""+ +(0<=b.Tj.indexOf("itag=18")),c18:""+ +Hv('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f43:""+ +(0<=b.Tj.indexOf("itag=43")),c43:""+ +Hv('video/webm; codecs="vp8.0, vorbis"')};b.ka&&(e.f133=""+ +!!b.ka.o["133"],e.f140=""+ +!!b.ka.o["140"],e.c140=""+ +Jv('audio/mp4; codecs="mp4a.40.2"'),e.f242=""+ +!!b.ka.o["242"],e.c242=""+ +Jv('video/webm; codecs="vp9"'));return new Rv(d,
!0,e)})};
mI=function(a,b){g.P.call(this);this.o=a;this.P=b;this.J=this.C=this.F=this.w=this.u=this.B=this.H=this.A=0;this.G=1};
oI=function(a,b,c){!g.Q(a.o.experiments,"html5_tv_ignore_capable_constraint")&&g.Jx(a.o)&&(c=Lw(c,nI(a,b)));return c};
nI=function(a,b){if(g.Jx(a.o)&&nw(a.o.w,rw))var c=b.va.videoInfos[0].wa().ac;else{var d=!!b.va.o;Ax(a.o)&&(c=window.screen&&window.screen.width?new g.Ud(window.screen.width,window.screen.height):null);c||(c=a.o.Gf?a.o.Gf.clone():a.P.getPlayerSize());if(Cx||pI||d){d=c;var e=g.Sx();d.width*=e;d.height*=e}kB(b.videoData)||UB(b.videoData);var f=b.va.videoInfos;if(f.length){d=.85;e=f[0].wa();4!=e.projectionType&&2!=e.projectionType&&3!=e.projectionType||yx||(d=.45);e=f[0];var k=e.wa();f=g.q(f);for(var l=
f.next();!l.done&&!(e=k=l.value,k=k.wa(),null===c||k.width*d<c.width&&k.height*d<c.height);l=f.next());c="93"==Vu(e)?qv(k.width,k.height):k.quality;c=Iw("auto",c,!1,"r")}else c=Kw;c=c.o}c&&(c=Math.max(c,360));return new Gw(0,c,!1,"r")};
qI=function(a,b){var c;a:if((c=b.va)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.w){c=e.wa().ac;break a}c=c.videoInfos[0].wa().ac}else c=0;gl()&&!g.Jx(a.o)&&Av(b.va.videoInfos[0])&&(c=Math.min(c,g.rv.large));return new Gw(0,c,!1,"o")};
uja=function(a){var b,c,d,e;return Da(function(f){if(1==f.o){if(!a.va.o)return f["return"]();b=a.va.videoInfos;return ua(f,cA(b),2)}c=g.q(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.w||Tw(e.u,e.wa().fps,e.wa().ac-1);f.o=0})};
vja=function(a,b,c,d){if(!b||!c||!b.videoData.Aa)return!1;var e=g.R(a.o.experiments,"html5_df_downgrade_thresh"),f=g.Q(a.o.experiments,"html5_log_media_perf_info"),k=g.R(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.nl();if(!c)return!1;var l=c.droppedVideoFrames-a.C,m=c.totalVideoFrames-a.J;a.C=c.droppedVideoFrames;a.J=c.totalVideoFrames;f&&b.videoData.dg&&a.R("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(g.Q(a.o.experiments,"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.Jx(a.o)||!rI(a,b))return!1;a.u=d>e?a.u+1:0;if(3!=a.u)return!1;sI(a,b.videoData.Aa);a.R("ctmp","dfd",tI());return!0};
rI=function(a,b){if(g.Q(a.o.experiments,"html5_restore_perf_cap"))return!0;if(!b.videoData.Aa)return!1;if("1"==b.videoData.Aa.u)return!0;var c=a.o.o?240:360;return b.videoData.Aa.wa().ac>c};
sI=function(a,b){var c=b.wa().ac-1;Tw(b.u,b.wa().fps,c);a.o.ne=new Gw(0,c,!1,"b")};
uI=function(a,b){if(g.Q(a.o.experiments,"html5_restore_perf_cap")){for(var c=0,d=a.o.o?240:360,e=g.q(b.va.videoInfos),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.u,l=f.wa().fps;k=+Sw()[Rw(k,l)]||0;f=f.wa().ac;if(!k||Math.max(k,d)>=f){c=f;break}}return new Gw(0,c,!1,"b")}return a.o.ne};
vI=function(a,b){g.Q(a.o.experiments,"html5_log_media_perf_info")&&(a.R("ctmp","perfdb",tI()),a.R("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.R("ctmp","mcdb",b.va.videoInfos.filter(function(c){return!1===c.w}).map(function(c){return Vu(c)}).join("-")))};
tI=function(){var a=Db(Sw(),function(b){return""+b});
return Sv(a)};
wI=function(a,b){g.A.call(this);this.o=a;this.V=b;this.w=-1;this.O=!1;this.A=-1;this.u=new g.qD;this.P=this.U=this.S=this.G=this.F=this.J=0;this.B=new g.I(this.C,6E4,this);g.C(this,this.B);this.H=!1};
xI=function(a){0<=a.w||(3==a.o.getVisibilityState()?a.O=!0:(a.w=g.kD(a.o),a.B.start()))};
yI=function(a){if(!(0>a.A)){var b=g.kD(a.o),c=b-a.J;a.J=b;8==a.u.o?a.F+=c:g.AD(a.u)&&!g.W(a.u,16)&&(a.G+=c)}};
zI=function(a){var b=g.nv(a.eb.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.eb.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"};
wja=function(a){return(!a.fa("html5_health_to_gel")||a.eb.ra+36E5<(0,g.N)())&&(a.fa("html5_health_to_gel_canary_killswitch")||a.eb.ra+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"==zI(a))?a.fa("html5_health_to_qoe"):!0};
BI=function(a){g.A.call(this);var b=this;this.o=a;this.u={};this.U=1;this.ra=NaN;this.w="N";this.F=this.za=this.sa=this.ea=this.C=0;this.V=this.Ba="";this.na=0;this.Fa=-1;this.ya=1;this.O=this.S=0;this.ca=this.P=!1;this.Ja=[];this.G=null;this.H=this.Z=this.A=!1;this.B=-1;this.ga=!1;this.Ha=new g.I(this.xF,750,this);g.C(this,this.Ha);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.G=c});
g.AI(this,0,"vps",["N"]);this.Na=g.R(this.o.eb.experiments,"html5_qoe_length")||1E3};
g.AI=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
DI=function(a,b){var c=a.o.o();g.AI(a,b,"cmt",[c.toFixed(3)]);if(a.o.fa("html5_gllat")&&a.J&&1E3*c>a.J.bA+100){var d=a.J;a.da=1E3*b-d.sO-(1E3*c-d.bA)-d.iO;CI(a,"gllat","l."+a.da.toFixed());delete a.J}};
FI=function(a,b){b=0<=b?b:g.kD(a.o);var c=a.o.w();if(!isNaN(a.xa)&&!isNaN(c.w)){var d=c.w-a.xa;0<d&&g.AI(a,b,"bwm",[d,(c.B-a.Ra).toFixed(3)])}a.xa=c.w;a.Ra=c.B;isNaN(c.bandwidthEstimate)||g.AI(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.o.videoData.dg&&c.o&&CI(a,"bwinfo",c.o);a.G&&g.AI(a,b,"bat",[a.G.level,a.G.charging?"1":"0"]);d=a.o.getVisibilityState();a.Fa!=d&&(g.AI(a,b,"vis",[d]),a.Fa=d);DI(a,b);(d=mD(a.o))&&d!=a.na&&(g.AI(a,b,"conn",[d]),a.na=d);EI(a,b,c)};
EI=function(a,b,c){if(!isNaN(c.u)){var d=c.u;c.A<d&&(d=c.A);g.AI(a,b,"bh",[d.toFixed(3)])}};
GI=function(a){var b=0,c;for(c in a.u)b+=c.length+(0,g.vi)(a.u[c],function(d,e){return d+e.length},0);
b>a.Na&&(new g.I(a.Fj,0,a)).start()};
HI=function(a,b,c,d){var e=a.o.o();c=[c,e.toFixed(3)];d&&c.push(d);g.AI(a,b,"error",c);a.H=!0};
II=function(a){!a.o.fa("html5_qoe_user_intent_match_health")||0<=a.B||(a.o.eb.Ba||3!=a.o.getVisibilityState()?a.B=g.kD(a.o):a.ga=!0)};
yja=function(a,b){if(g.W(b,128))return"ER";if(g.W(b,512))return"SU";if(g.W(b,16)||g.W(b,32))return"S";var c=xja[BD(b)];g.Jx(a.o.eb)&&"B"==c&&3==a.o.getVisibilityState()&&(c="SU");"B"==c&&g.W(b,4)&&(c="PB");return c};
JI=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
CI=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!=a.Ja.indexOf(b);f||a.Ja.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.kD(a.o);c="t."+k.toFixed()+";"+c}zja(b,c);e.push(b+":"+c);a.u.ctmp=e;GI(a);return k}};
KI=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.Lj&&(this.u=new HD(a),g.C(this,this.u),this.o=new BI(a),g.C(this,this.o));wja(a)&&(this.w=new wI(a,function(c){b.o&&CI(b.o,"h5h",c,void 0)}),g.C(this,this.w))};
g.LI=function(a){a.u&&aD(a.u.u)};
Aja=function(a,b){a.u&&QD(a.u,b)};
Bja=function(a){if(!a.u)return null;var b=JD(a.u,"atr");return function(c){a.u&&QD(a.u,c,b)}};
MI=function(a){return a.u?Zha(a.u):function(){}};
Cja=function(a){this.A=new oC(50);this.o=null;this.w=this.u=0;this.B=a};
OI=function(a,b,c){g.P.call(this);var d=new Dja;"ULTRALOW"==a.latencyClass&&(d.A=!1);a.cg?d.u=3:g.KB(a)&&(d.u=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!=a.latencyClass||(d.C=!0);var e=wB(a);d.B=2==e||-1==e;d.B&&(d.J++,21530001==tB(a)&&(d.F=g.R(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(el("trident/")||el("edge/"))e=g.R(b,"html5_platform_minimum_readahead_seconds")||3,d.w=Math.max(d.w,e);g.R(b,"html5_minimum_readahead_seconds")&&(d.w=g.R(b,"html5_minimum_readahead_seconds"));
g.R(b,"html5_maximum_readahead_seconds")&&(d.G=g.R(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(d.A=!0);g.R(b,"html5_allowable_liveness_drift_chunks")&&(d.o=g.R(b,"html5_allowable_liveness_drift_chunks"));g.R(b,"html5_readahead_ratelimit")&&(d.H=g.R(b,"html5_readahead_ratelimit"));switch(tB(a)){case 21530001:d.o=(d.o+1)/5,"LOW"==a.latencyClass&&(d.o*=2),d.P=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.o=d;this.T=a;this.H=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.cg&&b--;a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||b++;switch(tB(a)){case 21530001:b=1;break;case 2153E4:b=2}this.o.B&&b++;this.u=NI(this,b)};
QI=function(a,b){var c=a.u;(void 0===b?0:b)&&a.o.P&&3==wB(a.T)&&--c;return PI(a)*c};
SI=function(a,b){var c=RI(a);var d=a.o.o;a.F||(d=Math.max(d-1,0));d*=PI(a);return b>=c-d};
RI=function(a){return Math.max(a.H()-QI(a,!0),a.T.zb())};
TI=function(a,b,c){b=SI(a,b);c||b?b&&(a.A=!0):a.A=!1;a.C=2==a.o.u||3==a.o.u&&a.A};
UI=function(a,b){var c=SI(a,b);a.F!=c&&a.R("livestatusshift",c);a.F=c};
PI=function(a){return a.T.ka?dz(a.T.ka)||5:5};
NI=function(a,b){b=Math.max(Math.max(a.o.J,Math.ceil(a.o.w/PI(a))),b);return Math.min(Math.min(8,Math.floor(a.o.G/PI(a))),b)};
Dja=function(){this.J=1;this.w=0;this.G=Infinity;this.H=0;this.A=!0;this.o=2;this.u=1;this.B=!1;this.F=NaN;this.P=this.C=!1};
XI=function(a,b){g.A.call(this);this.u=a;this.F=b;this.B=new g.qD;this.w=this.A=null;this.H=this.J=this.o=0;this.G=new g.I(this.S,1001,this);g.C(this,this.G);this.ca=new VI({delayMs:g.R(this.u.experiments,"html5_seek_timeout_delay_ms")});this.O=new VI({delayMs:g.R(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.da=WI(this,"html5_seek_set_cmt");this.V=WI(this,"html5_seek_jiggle_cmt");this.Z=WI(this,"html5_seek_new_elem");this.P=WI(this,"html5_decoder_freeze_timeout");this.U=WI(this,"html5_reload_element_long_rebuffer");
this.C={}};
WI=function(a,b){var c=g.R(a.u.experiments,b+"_delay_ms"),d=g.Q(a.u.experiments,b+"_cfl");return new VI({delayMs:c,kw:d})};
ZI=function(a,b,c,d,e,f,k){Eja(b,c)?(d=YI(a,b),d.wn=k,d.wdup=a.C[e]?"1":"0",a.F("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=YI(a,b),f.wn=k,f.we=e,f.wsuc=""+ +d,k=Sv(f),a.F("ctmp","workaroundReport",k),d&&(b.reset(),a.C[e]=!1)))};
YI=function(a,b){var c=b.Ya();a.o&&(c.stt=a.o.toFixed(3));a.w&&Object.assign(c,a.w.Ya());a.A&&Object.assign(c,a.A.Ya());return c};
VI=function(a){a=void 0===a?{}:a;var b=void 0===a.lO?1E3:a.lO,c=void 0===a.mO?3E4:a.mO,d=void 0===a.kw?!1:a.kw;this.A=void 0===a.delayMs?0:a.delayMs;this.G=b;this.B=c;this.F=d;this.reset()};
Eja=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};
dJ=function(a,b){g.P.call(this);var c=this;this.S=b;this.T=a;this.U=new Fja(b);this.J=new XI(this.S,this.R.bind(this));var d={};this.Z=(d.seekplayerrequired=this.xO,d.videoformatchange=this.sI,d);$I(this,"html5_unrewrite_timestamps")?this.Z.timestamp=this.GO:this.Z.timestamp=this.FO;this.sa=null;this.ra=new g.O;g.C(this,this.ra);this.H=this.w=this.B=this.o=null;this.u=NaN;this.F=0;this.C=null;this.ca=NaN;this.G=this.P=null;this.ga=this.O=!1;this.V=new g.I(function(){return aJ(c,!1)},this.U.o);
g.C(this,this.V);this.ea=new g.I(function(){c.O=!0;bJ(c)});
g.C(this,this.ea);this.za=new g.I(function(){return cJ(c)});
g.C(this,this.za);this.na=this.A=0;this.da=!0;this.xa=0;this.ya=NaN};
Gja=function(a,b){a.sa=b;a.T.ua&&(a.H=new Cja(function(){a:{if(a.sa&&a.sa.va.o){if(sB(a.T)&&a.B){var c=a.B.ya.o()||0;break a}if(a.T.ka){c=a.T.ka.G;break a}}c=0}return c}),a.w=new OI(a.T,a.S.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)};
hJ=function(a,b){g.yr(a.ra);(a.o=b)?(Hja(a),cJ(a)):gJ(a);var c=a.J;(c.A=b)&&g.Bn(c.G)};
jJ=function(a,b){a.B&&Ar(a.B,a.Z,a);(a.B=b)?(zr(b,a.Z,a),iJ(a,!0)):gJ(a);a.J.w=b};
kJ=function(a){return a.getCurrentTime()-a.Ab()};
lJ=function(a){return!!a.w&&a.w.C};
aJ=function(a,b){if(a.w){var c=a.w;var d=a.getCurrentTime();!SI(c,d)&&c.C?(c.o.C&&(c.o.o=Math.max(c.o.o+1,10)),c=Infinity):c=d<c.T.zb()?Math.min(c.T.zb()+10,RI(c)):NaN;if(!isNaN(c)){if($I(a,"html5_in_buffer_ptl")&&a.B&&b){d=a.V.isActive();var e=RI(a.w);if((e=bja(a.B,e-a.Ab()))&&!d){a.U.o&&a.V.start();a.R("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.Ab()));a.seekTo(e+a.Ab());return}}$I(a,"html5_peg_to_live_logging")&&a.R("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Ab()));
a.seekTo(c)}}};
iJ=function(a,b){if(a.w&&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.w,c.w.length){var d=c.u;b:{if(c.w.length){if(1<Math.min.apply(null,c.w)){var e=NI(c,c.u-1);break b}if(c.o.A){e=NI(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.R("livereadaheadchanged",QI(a.w));c=a.B;d=a.w.u;e=a.w;e=(e.u-1+e.o.o)*PI(e);var f=a.w.o.F;c.Ha=Math.max(d-1,0);c.G&&(c.G.O=e);c.nb=f}};
mJ=function(a){return a.T.ua&&!!a.T.va&&!a.T.va.o};
bJ=function(a){Ija(a).then(void 0,function(){gJ(a)});
nJ(a).then(function(b){a.G&&(a.G.resolve(b),a.R("seekend"));gJ(a)},function(){gJ(a)});
a.R("seekstart")};
Ija=function(a){if(!a.P)if(a.B)if(isFinite(a.u))a.P=a.B.seek(a.u-a.A);else{var b=a.B;eH(b);b.G&&KG(b.G,b.u.o);g.Bn(b.ca);b=b.P;var c=Math.max(b.o.w.zs(),b.u.w.zs());aG(b.o,c);aG(b.u,c);var d=b.C,e;for(e in d.o)pt(d.o[e].index,Infinity);b.B.ga&&(b.G=!0);b.R("setcurrenttime",c);b.w=!0;b.H=new sG;a.P=b.H;a.u=a.B.getCurrentTime()+a.A}else a.P=Ff(a.u-a.A);return a.P};
nJ=function(a){var b=a.C;b||(a.C=new sG,b=a.C,cJ(a));return b};
oJ=function(a,b,c){return isNaN(b)?NaN:g.Od(b,a.zb(),a.sc(c))};
cJ=function(a){if(a.C)if(!$I(a,"html5_nondash_live_seek_killswitch")&&mJ(a)&&a.o&&0<a.o.fe()&&0<fC(a.o)&&(a.u=oJ(a,a.u,!1)),!a.o||!pJ(a))a.za.start(750);else if(!isNaN(a.u)&&isFinite(a.u)&&a.ca!=a.u-a.A){var b=a.o.getCurrentTime()-a.u;if(Math.abs(b)<=a.xa)a.C&&a.C.resolve(a.o.getCurrentTime());else if(!a.T.ua&&a.u>=a.sc()-.1)a.u=a.sc(),a.C.resolve(a.sc()),a.R("ended");else try{var c=a.u-a.A;a.o.seekTo(c);a.J.o=c;a.ca=c;a.F=a.u}catch(d){}}};
pJ=function(a){if(!a.o||0==a.o.fe()||0<a.o.Se())return!1;var b=0<a.o.getCurrentTime();if(0<=a.u){var c=a.o.Bk();if(c.length||!b)return Xv(c,a.u-a.A)}return b};
gJ=function(a){a.u=NaN;a.ca=NaN;a.C=null;a.P=null;a.G=null;a.O=!1;a.ga=!1;a.xa=0;a.V.stop();a.ea.stop()};
Hja=function(a){if(a.o){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.ra.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.u){a.C=new sG;a.ca=d;var e=a.o.getCurrentTime();a.J.o=e;a.seekTo(d);a.ga=!0}break;case "seeked":a.C&&a.C.resolve(a.o.getCurrentTime());break;case "loadedmetadata":if(a.da){d="ss.";e=0;if((LB(a.T)||a.T.liveUtcStartSeconds)&&(a.T.liveUtcStartSeconds||a.T.startSeconds&&isFinite(a.T.startSeconds)&&
1E9<a.T.startSeconds)&&a.T.ka){e=a.T.liveUtcStartSeconds||a.T.Wg;d="utc.";var f=a.sc();var k=a.sc();k=ez(a.T.ka,k-a.A);e=f-k+e}else a.T.ka&&a.T.ka.u&&a.T.Wg?(d="mss.",e=a.T.Wg+a.Ab()):$I(a,"html5_unrewrite_timestamps")&&a.T.rp&&(d="stss.",e=a.T.rp);e?(a.seekTo(e),a.R("ctmp","startSeconds",d+e),a.da=!1):a.T.Wg&&a.R("ctmp","startSeconds",d+(a.T.Wg+a.Ab()));d=!!e}else d=!1;$I(a,"html5_nondash_live_seek_killswitch")&&!d&&mJ(a)&&(a.u=isFinite(a.u)?g.Od(a.u,a.zb(),a.sc()):a.sc());case "progress":cJ(a)}});
a.G||a.F||a.U.w||!a.o.ep()||a.seekTo(.01)}};
Jja=function(a){if(!a.o)return 0;if(LB(a.T)){var b=jC(a.o)+a.A-a.zb();a=a.sc()-a.zb();return Math.max(0,Math.min(1,b/a))}return kC(a.o)};
$I=function(a,b){return a.S&&g.Q(a.S.experiments,b)};
Fja=function(a){this.o=g.R(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.u=g.Q(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")};
qJ=function(){var a=rp();return!(!a||"visible"===a)};
sJ=function(a){var b=rJ();b&&document.addEventListener(b,a,!1)};
tJ=function(a){var b=rJ();b&&document.removeEventListener(b,a,!1)};
rJ=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[qp+"VisibilityState"])return"";a=qp+"visibilitychange"}return a};
uJ=function(){g.P.call(this);this.w=0;this.A=this.B=this.u=this.o=this.C=!1;this.F=(0,g.x)(this.ii,this);sJ(this.F);this.G=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A)};
Kja=function(a,b){a.u!=b&&(a.u=b,a.ii())};
vJ=function(a,b){a.B!=b&&(a.B=b,a.ii())};
wJ=function(){this.o=this.started=!1};
Lja=function(a,b,c){var d,e,f,k,l,m;return Da(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"HMAC",hash:{name:"SHA-256"}},f=["sign"],ua(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),ua(n,d.sign("HMAC",k,l),3);m=n.u;return n["return"](new Uint8Array(m))})};
xJ=function(a,b,c){var d,e,f,k,l,m;return Da(function(n){if(1==n.o)return d=window.crypto.subtle,e={name:"AES-CTR"},f=["encrypt"],ua(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},ua(n,d.encrypt(l,k,b),3);m=n.u;return n["return"](new Uint8Array(m))})};
yJ=function(a){this.o=a;a=new Uint8Array(16);window.crypto.getRandomValues(a);this.u=a};
Mja=function(a,b){return Da(function(c){return c["return"](Lja(a.o.u,b,a.u))})};
zJ=function(){this.u=new Uint8Array(4096);this.w=new DataView(this.u.buffer);this.o=0;this.A=null};
AJ=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.w=new DataView(a.u.buffer)}};
BJ=function(a,b){if(268435455<b){AJ(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.w.setUint8(a.o,c&127|128),c>>=7,a.o+=1;b=Math.floor(b/268435456)}for(AJ(a,4);127<b;)a.w.setUint8(a.o,b&127|128),b>>=7,a.o+=1;a.w.setUint8(a.o,b);a.o+=1};
CJ=function(a,b,c){BJ(a,b<<3|2);b=c.length;BJ(a,b);AJ(a,b);a.u.set(c,a.o);a.o+=b};
DJ=function(a,b,c){a.A||(a.A=new TextEncoder);c=a.A.encode(c);CJ(a,b,c)};
EJ=function(a){return new Uint8Array(a.u.buffer,0,a.o)};
FJ=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};
GJ=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};
HJ=function(){};
IJ=function(a){this.u=a.client};
JJ=function(a){this.u=a;this.A=this.o=0;this.w=-1};
KJ=function(a){var b=Ms(a.u,a.o);++a.o;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=Ms(a.u,a.o),++a.o,d*=128,c+=(b&127)*d;return c};
LJ=function(a,b){for(a.A=b;a.o+1<=a.u.o;){var c=a.w;0>c&&(c=KJ(a));var d=c>>3,e=c&7;if(d==b)return!0;if(d>b){a.w=c;break}switch(e){case 0:KJ(a);break;case 1:a.o+=8;break;case 2:c=KJ(a);a.o+=c;break;case 5:a.o+=4}}return!1};
MJ=function(a,b){var c=void 0===c?null:c;if(!LJ(a,b))return c;c=KJ(a);var d=Js(a.u,a.o,c);a.o+=c;return d};
Nja=function(a){this.iv=MJ(new JJ(a),5)};
Oja=function(a){a=new JJ(a);var b=-1;b=void 0===b?0:b;this.o=LJ(a,1)?KJ(a):b;0===this.o&&(a=MJ(a,4),this.u=new Nja(new Cs([a])))};
NJ=function(a){var b=a.videoId;this.u=a.TF;this.w=b};
OJ=function(a){var b=a.httpHeaders,c=a.postBody;this.w=a.url;this.u=b;this.A=c};
Pja=function(a){this.body=MJ(new JJ(a),4)};
PJ=function(a){this.u=a.wE};
QJ=function(a,b){if(b+1<=a.o){var c=Ms(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.o))return[-1,b];if(1===c)c=Ms(a,b++);else if(2===c){c=Ms(a,b++);var d=Ms(a,b++);c=(c&63)+64*d}else if(3===c){c=Ms(a,b++);d=Ms(a,b++);var e=Ms(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=Ms(a,b++);d=Ms(a,b++);e=Ms(a,b++);var f=Ms(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,Gs(a,c),c-a.A+4<=a.u[a.w].length?c=Hs(a).getUint32(c-a.A,!0):(d=Ms(a,c+2)+256*Ms(a,c+3),c=Ms(a,c)+256*(Ms(a,c+1)+256*
d)),b+=5;return[c,b]};
RJ=function(a){this.o=new Cs;this.u=a};
SJ=function(a){var b=g.q(QJ(a.o,0));var c=b.next().value;var d=b.next().value;d=g.q(QJ(a.o,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.o.o&&(d=a.o.split(d).vp.split(b),b=d.Fx,d=d.vp,a.u(c,b),a.o=d,SJ(a))};
TJ=function(a){var b=this;this.T=a;this.w=new yJ(this.T.wt);this.G=new RJ(function(c,d){switch(c){case 10:var e=new Oja(d);switch(e.o){case 0:b.F=e.u.iv}b.C=e.o;break;case 11:switch(b.C){case 0:Qja(b,d)}b.C=null}});
this.A=new sG;this.B=!1};
UJ=function(a){for(;a.o.eg();){var b=a.o.ro();a.G.feed(b)}};
Qja=function(a,b){var c,d,e,f;Da(function(k){if(1==k.o)return a.B=!0,c=Js(b),ua(k,a.w.decrypt(c,a.F),2);d=k.u;e=new Pja(new Cs([d]));f=e.body;a.Ia=(new TextDecoder).decode(f);a.A.resolve(a.Ia);k.o=0})};
Rja=function(a){if(!a.T.xt.length)return"";var b=new ct(a.T.xt);b.set("ack","1");b.set("cpn",a.T.clientPlaybackNonce);b.set("opr","1");b.set("pvi","135");b.set("pai","140");return dt(b)};
Tja=function(a){var b,c;return Da(function(d){if(1==d.o)return ua(d,Sja(a),2);b=d.u;c={wE:b};return d["return"](new PJ(c))})};
Sja=function(a){var b,c,d,e,f;return Da(function(k){if(1==k.o)return ua(k,Uja(a),2);if(3!=k.o)return b=k.u,c=a.w.o.encryptedClientKey,d=a.w.u,ua(k,Mja(a.w,b),3);e=k.u;f={encryptedOnesiePlayerRequest:b,encryptedClientKey:c,iv:d,hmac:e};return k["return"](new GJ(f))})};
Uja=function(a){var b,c,d;return Da(function(e){switch(e.o){case 1:var f=a.T.N().Xg;f="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player?key="+f.innertubeApiKey;var k=[];k.push(new HJ);var l=a.T.N().Xg;b=new OJ({url:f,httpHeaders:k,postBody:new NJ({TF:new IJ({client:new FJ({hl:l.Mk,gl:l.Lk,deviceId:"Rory",userAgent:g.Mc,clientName:56,clientVersion:l.innertubeContextClientVersion})}),videoId:a.T.videoId})});e.B=2;return ua(e,a.w.encrypt(b.o()),4);case 4:c=e.u;va(e,3);break;
case 2:return wa(e),d=new Rv("onesie.request.encrypt",!1),e["return"](Promise.reject(d));case 3:return e["return"](c)}})};
Zja=function(a,b,c){a.Dd=!0;return Vja(a.N())?Wja(a).then(function(){return Xja(a)}).then(function(){return Yja(a)})["catch"](function(d){d=Tv(d);
if(d.o)return Promise.reject(d);c(d);return VJ(a,b,c)}):VJ(a,b,c)};
Vja=function(a){return g.Q(a.experiments,"html5_onesie")&&g.Q(a.experiments,"html5_onesie_player_config")&&g.Xx(a)&&"yt"==a.O?!0:!1};
Wja=function(a){if(!a.wt)return Promise.reject(new Rv("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?Promise.reject(new Rv("html5.missingapi",!1,a)):Promise.resolve()};
Xja=function(a){var b,c,d,e,f;return Da(function(k){if(1==k.o)return b=new TJ(a),ua(k,b.fetch(),2);c=k.u;d={player_response:c};a.Dd=!1;a.Td(d,!0);return a.errorCode||!JB(a)?(e={ec:a.errorCode,ed:a.errorDetail,es:a.Lg,pd:JB(a)?"1":"0"},f=new Rv("onesie.response",!1,e),k["return"](Promise.reject(f))):k["return"](Promise.resolve())})};
VJ=function(a,b,c){var d,e,f,k,l,m,n,p,t;return Da(function(u){switch(u.o){case 1:d=function(){return!0},e=function(z){z=Tv(z);
if(z.o)return Promise.reject(z);c(z);return!1},k=(f=a.isAd())?1:3,l=0;
case 2:if(!(l<k)){u.o=4;break}m=b;if(!(0<l)){u.o=5;break}return ua(u,Xf(5E3),6);case 6:n={playerretry:l},f||(n.recover="embedded"),m=iq(b,n);case 5:return ua(u,$ja(a,m).then(d,e),7);case 7:if(p=u.u)return u["return"]();l++;u.o=2;break;case 4:t=f?"auth":"manifest.net.retryexhausted";if(!f&&1E-4>Math.random())try{Nq(new Lq("b/152131571",btoa(b)))}catch(z){}return u["return"](Promise.reject(new Rv(t,!0,{backend:"gvi"})))}})};
$ja=function(a,b){var c,d,e,f,k,l,m,n,p,t,u,z;return Da(function(B){if(1==B.o)return c=a.N(),d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e={},c.sendVisitorIdHeader&&a.visitorData&&(e["X-Goog-Visitor-Id"]=a.visitorData),(f=g.nv(c.experiments,"debug_dapper_trace_id"))&&(e["X-Google-DapperTraceInfo"]=f),(k=g.nv(c.experiments,"debug_sherlog_username"))&&(e["X-Youtube-Sherlog-Username"]=k),0<Object.keys(e).length&&(d.headers=e),l=(0,g.N)(),m=function(D){if(!a.la()){D=D?D.status:-1;var E=
400==D||429==D,G=((0,g.N)()-l).toFixed();G={backend:"gvi",rc:""+D,rt:G};var F="manifest.net.connect";429==D?F="auth":200<D&&(F="manifest.net.badstatus");return Promise.reject(new Rv(F,E,G))}},n=function(D){return m(D.bi)},ua(B,My(Zq,b,d).then(void 0,n),2);
p=B.u;if(!p||!p.responseText)return B["return"](m(p));a.Dd=!1;t=dq(p.responseText);a.Td(t,!0);if(a.errorCode)return u={ec:a.errorCode,ed:a.errorDetail,es:a.Lg},B["return"](Promise.reject(new Rv("auth",!0,u)));if(!a.Dd&&!JB(a))return z=a.isAd()?"auth":"manifest.net.retryexhausted",B["return"](Promise.reject(new Rv(z,!0,{successButUnplayable:"1"})));B.o=0})};
Yja=function(a){var b=new g.Jq(a.N().Xg),c=g.gp(b);c.videoId=a.videoId;g.mp(b,"next",c,{onSuccess:function(d){a.Td({raw_watch_next_response:d},!1)},
onError:function(){}})};
aka=function(a,b,c){function d(){ZA("virc");aB("virc")}
ZA("vir");aB("vir");a=Zja(a,b,c);a.then(d,d);return a};
$J=function(a,b,c,d,e,f,k){g.P.call(this);var l=this;this.A=a;this.Ba=new Vha;this.O=c;this.nb=d;this.Ef=f;this.J=k;c=(0,g.x)(function(m,n){m!=g.XD("endcr")||g.W(this.u,32)||WJ(this);e(m,n)},this);
this.P=new TG((0,g.x)(this.getCurrentTime,this),(0,g.x)(this.getPlaybackRate,this),(0,g.x)(this.getPlayerState,this),c,a);g.C(this,this.P);this.F=null;this.xb=[];this.Eb=[];this.V=null;this.S=new mI(a,this.nb);g.C(this,this.S);this.S.subscribe("ctmp",this.Sa,this);this.lc=!0;this.G=this.w=null;this.U=[];this.Z=new wJ;this.H=this.xa=null;this.ca=new wJ;this.Ha=null;this.Ff=this.ra=!1;this.Gb=NaN;this.yd=new g.I(this.pN,500,this);g.C(this,this.yd);this.u=new g.qD;this.Rb=[];this.fb=b;this.ya=new g.O;
g.C(this,this.ya);this.T=new g.eB(a);XJ(this,function(){return{}});
this.o=null;this.na=new g.I((0,g.x)(this.pL,this),15E3);g.C(this,this.na);a=g.R(this.A.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.kd=new g.I((0,g.x)(this.gN,this),a);g.C(this,this.kd);this.Ag=0;this.hd=this.Fa=!1;this.ga=NaN;this.sa=!1;this.za=0;this.Xb=new g.I(this.Tt,4500,this);g.C(this,this.Xb);this.pc=this.Ja=!1;this.Na=NaN;this.da=new qC;g.C(this,this.da);sC(this.da,"bufferhealth",function(){var m=l.C;return m.o?hC(m.o):0});
sC(this.da,"bandwidth",(0,g.x)(this.NE,this));sC(this.da,"networkactivity",(0,g.x)(this.VE,this),!0);sC(this.da,"livelatency",(0,g.x)(this.ex,this));sC(this.da,"rawlivelatency",(0,g.x)(this.ix,this));this.da.start();this.jd=!1;this.dc=!0;this.Hc=NaN;this.Jc=this.zh=!1;this.Wa=1;this.Ra=(0,g.x)(this.MG,this);sJ(this.Ra);this.J.subscribe("visibilitystatechange",this.Ra);this.Gf=this.Df=this.oe=0;bka(this);YJ(this,"html5_playback_timeline_register_disposable")&&g.C(this,this.C);this.ea=null;this.ne=
!1;this.fd=[];this.Gc=this.Hf=0;this.gd=this.Bg=!1;this.Wb=new g.I(function(){g.ZJ(l,"ad.rebuftimeout","RETRYABLE_ERROR","vps."+l.u.o.toString(16))});
g.C(this,this.Wb);this.dd=null};
jK=function(a,b,c,d){d=void 0===d?!0:d;a.U.length=0;a.xa=null;a.Z.reset();a.ca.reset();a.Fa=!1;a.Hc=NaN;a.lc=!0;a.Ha=null;a.o&&a.o.stopVideo();aK(a);bK(a);cK(a);g.Qp(a.ga);a.da.clear();g.He(a.T);if(2==a.fb||a.A.Cm)b.Zx=!0;var e=a.A.u;var f=a.A.Db,k;(k=b.Nl)||(k=(k=b.xu)&&dK.hasOwnProperty(k)&&eK.hasOwnProperty(k)?eK[k]+"_"+dK[k]:void 0);if(k){var l=k.match(fK);if(l&&5===l.length){if(l=k.match(fK)){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.fb&&(b.lh=!0);if(a.J.isFullscreen()||a.A.u)e=g.rs("yt-player-autonavstate"),b.autonavState=e||(a.A.u?2:a.T.autonavState);a.dc=d;a.T=b;a.T.subscribe("dataupdated",a.BN,a);a.T.subscribe("dataloaded",a.wq,a);a.T.subscribe("dataloaderror",a.ci,a);gK(a,b);XJ(a,c);a.sa=!1;a.za=0;hK(a,"newdata");iK(a,new g.qD);c=a.C;d=a.T;gJ(c);c.T=d;c.w=null;c.H=null;c.A=0;c.na=0;c.F=0;c.da=!0;c.J.dispose();c.J=new XI(c.S,c.R.bind(c));VB(b)&&(b=a.T.errorDetail,c=a.T.Hq,
g.ZJ(a,"auth",unescape(c.reason),b,b,c.subreason||void 0))};
XJ=function(a,b){var c=new iD(a.T,a.A,b,(0,g.x)(a.getDuration,a),(0,g.x)(a.getCurrentTime,a),(0,g.x)(a.YE,a),(0,g.x)(a.nb.getPlayerSize,a.nb),(0,g.x)(a.getAudioTrack,a),(0,g.x)(a.getPlaybackRate,a),(0,g.x)(a.fr,a),a.Ef,(0,g.x)(a.mF,a),function(){return a.O.tick("qoes")});
a.B=new KI(c)};
bK=function(a){var b=a.B;b.w&&b.w.C();if(b.u){var c=b.u;if(!c.la()&&c.w){c.B="paused";var d=LD(c);d.isFinal=!0;d.send();g.Mo(c.A);c.dispose()}}b.o&&(c=b.o,c.o.fa("html5_stopVideo_ping_block_killswitch")||c.H)&&("PL"==c.w&&(c.w="N"),d=g.kD(c.o),g.AI(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.Fj(d));b.dispose();g.He(a.B)};
kK=function(a){return a.o&&a.o.fh()?a.o.gb():null};
lK=function(a){if(a.T.isValid())return!0;g.ZJ(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
oK=function(a,b){a.ra=void 0===b?!1:b;if(!lK(a)||a.Z.started)mK(a)&&a.Z.started&&!a.Z.isFinished()&&!a.ra&&a.wq();else{a.Z.start();var c=a.B;g.kD(c.A);if(c.o){c=c.o;c.o.videoData.Ml&&JI(c,c.o.videoData.Ml);c.o.videoData.si?JI(c,"prefetch"):c.o.fa("html5_qoe_user_intent_match_health")||(c.u.user_intent=["0"],c.A=!0);c.o.videoData.vf&&CI(c,"reload","r."+c.o.videoData.reloadReason+";ct."+c.o.videoData.vf);c.o.videoData.cg&&JI(c,"monitor");c.o.videoData.ua&&JI(c,"live");c.o.videoData.wf&&CI(c,"ctrl",
c.o.videoData.wf,!0);if(c.o.videoData.xf){var d=c.o.videoData.xf.replace(/,/g,"_");CI(c,"ytp",d,!0)}c.o.videoData.AB&&(d=c.o.videoData.AB.replace(/,/g,"."),CI(c,"ytrexp",d,!0));if(!g.Q(c.o.eb.experiments,"html5_disable_gpu_reporting")){var e=c.o.eb.experiments;d=c.o.videoData;e=g.Q(e,"enable_white_noise")||g.Q(e,"enable_webgl_noop")||g.Q(e,"enable_gpu_logging");var f=d.ej()||d.fg()||d.gg()||d.Yf(),k=d.va&&"1"==g.Xa(d.va.videoInfos).u&&/^g/.test(d.clientPlaybackNonce);d=/^gp/.test(d.clientPlaybackNonce);
(e||f||d||k)&&(d=(0,g.nK)())&&(c.u.gpu=[d])}c.ra=Lo((0,g.x)(c.Fj,c),1E4)}a.wq()}};
mK=function(a){return g.Q(a.A.experiments,"tvhtml5_disable_live_prefetch")&&g.Jx(a.A)&&a.T.ua};
cka=function(a){var b=a.T,c=Yha(a.A,a.T,a.nb.getPlayerSize(),a.Ef(),a.J.isFullscreen());aka(a.T,c,function(d){return a.ci(d)}).then(void 0,function(d){a.T!=b||b.la()||(d=Tv(d),"auth"==d.errorCode&&a.T.errorDetail?g.ZJ(a,"auth",unescape(a.T.errorReason),Sv(d.details),a.T.errorDetail,a.T.Lg||void 0):a.ci(d))})};
dka=function(a,b){a.w?a.w.Na=new AH(b):a.dd=b};
fka=function(a){g.W(a.u,128)||(a.T.Pb(),a.dc=!0,4!=a.fb&&(a.U=g.kb(a.T.Oc)),IB(a.T)?(pK(a).then(function(){a.la()||(a.ra&&qK(a),gK(a,a.T),a.Z.o=!0,hK(a,"dataloaded"),a.ca.started?rK(a):a.ra&&iK(a,tD(tD(a.u,512),1)),vI(a.S,a.H))}),a.Sa("loudness",""+a.T.Ql.toFixed(3),!0),eka(a)):hK(a,"dataloaded"))};
pK=function(a){cK(a);a.H=null;var b=tja(a.A,a.T,a.J.u);a.xa=b;a.xa.then((0,g.x)(a.eM,a),(0,g.x)(a.fM,a));return b};
sK=function(a){a.o&&a.o.qj();oK(a);lK(a)&&!g.W(a.u,128)&&(a.ca.started||(a.ca.start(),iK(a,tD(tD(a.u,8),1))),rK(a))};
rK=function(a){if(!a.ca.isFinished()&&a.Z.isFinished()&&!g.W(a.u,128)&&!a.U.length){if(!a.P.started){var b=a.P;b.started=!0;b.u()}if(!tK(a)){a.w&&(b=a.w.ga,a.Ff=!!b.o&&!!b.A);a.ca.isFinished()||(a.ca.o=!0);!a.T.ua||0<a.T.Wg&&!sB(a.T)||(a.seekTo(Infinity),uK(a,"readying"),a.J.isBackground()&&(a.hd=!0));b=a.B;if(b.u){var c=b.u;c.o.videoData.pk&&c.o.videoData.hn&&(c.F("connected"),PD(c))}b.o&&(b=b.o,b.o.videoData.ua&&(c=b.o.videoData.ka,sB(b.o.videoData)&&JI(b,"manifestless"),c&&dz(c)&&JI(b,"live-segment-"+
dz(c).toFixed(1))));a.R("playbackready",a);QA("pbr","")||(a.O.tick("pbr"),aB("pbr"))}}};
WJ=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.o&&a.o.pause();b=b?new g.qD(14):new g.qD;iK(a,b)};
gK=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.V&&(a.removeCueRange(a.V),a.V=null);a.V=new g.UD(1E3*c,0x7ffffffffffff);a.V.namespace="endcr";a.addCueRange(a.V)}};
wK=function(a,b,c,d){a.T.Aa=c;d&&vK(a,b,d);var e=(d=g.xC(a))?Vu(d):"";d=a.B;e=new lI(a.T,c,b,e);if(d.o){c=d.o;d=g.kD(c.o);g.AI(c,d,"vfs",[e.o.id,e.u,c.Ba,e.reason]);c.Ba=e.o.id;e=c.o.F();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.Sx();1<f&&e.push(f);g.AI(c,d,"view",e)}c.Z||(c.o.videoData.dg&&JI(c,"rqs"),c.o.videoData.ka&&Qy(c.o.videoData.ka)&&(c.u.preload=["1"]));c.Z=!0;c.H=!0;g.AI(c,d,"vps",[c.w]);c.Fj(d)}c=a.S;c.A=0;c.u=0;a.R("internalvideoformatchange",a.T,"m"==
b)};
g.xC=function(a){var b=xK(a);return Jw(b)||!a.H?null:g.$a(a.H.va.videoInfos,(0,g.x)(b.A,b))};
vK=function(a,b,c){if(c!=a.T.Tb){var d=!a.T.Tb;a.T.Tb=c;"m"!=b&&(b=d?"i":"a");var e=a.B;c=new lI(a.T,c,b,"");if(e.o){e=e.o;var f=g.kD(e.o);c.o.id!=e.V&&(g.AI(e,f,"afs",[c.o.id,e.V,c.reason]),e.V=c.o.id)}d||a.R("internalaudioformatchange",a.T,"m"==b)}};
g.ZJ=function(a,b,c,d,e,f){var k,l;g.Lb(gka,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.yK[k]||"",Kq:k,Lg:f||"",vB:d};hK(a,"dataloaderror");iK(a,sD(a.u,128,b));g.Qp(a.ga);cK(a);g.zK(a)};
AK=function(a,b){a.U=a.U.filter(function(c){return b!=c});
a.ca.started&&rK(a)};
tK=function(a){var b;(b=!!a.U.length)||(a=a.P.o.o[0],b=!!a&&-0x8000000000000>=a.start);return b};
DK=function(a,b){if(a.o&&b.gb()==a.o.gb()&&(b.isView()||a.o.isView())){if(b.isView()||!a.o.isView())g.yr(a.ya),a.o=b,BK(a),hJ(a.C,a.o)}else{a.o&&CK(a);if(!a.u.isError()){var c=uD(a.u,512);g.W(c,8)&&!g.W(c,2)&&(c=tD(c,1));b.isView()&&(c=uD(c,64));iK(a,c)}a.o=b;a.o.setLoop(a.Jc);a.o.setPlaybackRate(a.Wa);BK(a);hJ(a.C,a.o)}};
CK=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);hJ(a.C,null);EK(a);a.w&&(g.Bn(a.w.ca),FK(a,c));a.na.stop();if(a.o){!a.ca.started||a.u.isError()||g.W(a.u,2)||iK(a,tD(a.u,512));g.yr(a.ya);if(b||!a.o.isView())a.o.stopVideo(),aK(a);a.o=null}}};
GK=function(a){if(!a.H)return[];var b=oI(a.S,a.H,vC(a,!0));b=b||Kw;a=(0,g.ve)(a.H.va.videoInfos,(0,g.x)(b.A,b));b=[];for(var c={},d=0;d<a.length;d++){var e=a[d].wa();c[e.quality]||(b.push(e),c[e.quality]=!0)}return b};
xK=function(a){if(a.H){var b=a.S;var c=a.H,d=vC(a);a=a.J.isBackground();var e=Qw(g.R(b.o.experiments,"html5_sticky_duration_cap_secs"));e=Iw("auto",e,!1,"s");var f=g.Q(b.o.experiments,"html5_break_sticky")&&/^i/.test(c.videoData.clientPlaybackNonce);if(Jw(e)||f){e=Lw(nI(b,c),qI(b,c));f=0;!b.o.o||g.Bx(b.o)||nl()||g.Q(b.o.experiments,"mweb_uniplayer_auto_quality")||g.Q(b.o.experiments,"hls_for_vod")||(f=g.rv.medium);var k=g.R(b.o.experiments,"html5_default_quality_cap");if(k){var l=!!c.va.o;!g.Q(b.o.experiments,
"html5_quality_cap_include_cast")&&c.videoData.wf&&(l=!1);!g.Q(b.o.experiments,"html5_quality_cap_include_drm")&&c.videoData.zc&&(l=!1);var m=g.R(b.o.experiments,"html5_quality_cap_min_age_secs");l&&m&&(l=b.o.schedule.F,l=(0,g.N)()-l>1E3*m);l&&(f=f?Math.min(f,k):k)}if(m=k=g.R(b.o.experiments,"html5_hfr_quality_cap"))a:{m=c.va;if(m.o)for(m=g.q(m.videoInfos),l=m.next();!l.done;l=m.next())if(32<l.value.wa().fps){m=!0;break a}m=!1}m&&(f=f?Math.min(f,k):k);(k=g.R(b.o.experiments,"html5_live_quality_cap"))&&
c.videoData.ua&&(f=f?Math.min(f,k):k);f=new Gw(0,f,!1,"d");e=Lw(e,f);f=g.R(b.o.experiments,"html5_background_quality_cap");k=g.R(b.o.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!=Qw()||Wp()/1E3<k?Kw:a?new Gw(0,f,!1,"v"):Kw;a=Lw(e,a);e=(e=g.R(b.o.experiments,"html5_autonav_quality_cap"))&&c.videoData.fj?new Gw(0,e,!1,"e"):Kw;a=Lw(Lw(Lw(a,e),uI(b,c)),c.videoData.AC);e=new Gw(0,0,!1,"o");1<b.G&&(e=new Gw(0,480,!0,"o"));e=Lw(a,e)}g.Q(b.o.experiments,"html5_ignore_sticky_for_medcap")&&(e=
Lw(e,qI(b,c)));b=Lw(Lw(Lw(c.videoData.Fp,e),c.videoData.Rv),d)}else b=Kw;return b};
vC=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.Q(c.u.experiments,"html5_drm_entitled_qualitycap_on_edge_killswitch")&&d&&c.S?c.S:c.H}else c=a.T.Jn()&&a.T.ka&&Py(a.T.ka)?(g.Q(a.A.experiments,"html5_drm_initial_constraint_from_config")?a.T.nk:g.Q(a.A.experiments,"html5_drm_start_from_null_constraint"))?Kw:bI:Kw;a.gd&&(c=Lw(c,HK));return c};
JK=function(a){if(!a.la()&&!g.W(a.u,128)&&a.T.va){if(a.T.va.o)IK(a);else{var b=xK(a),c=a.T;a:{var d=a.T.sg;if(b.o){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.Zd(),l=g.rv[k.wa().quality];if((!b.w||"auto"!=k.wa().quality)&&l<=b.o){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ie=d;wK(a,b.reason,a.T.ie.Zd())}g.xD(a.u)&&(a.C.da=!1,a.playVideo())}};
IK=function(a){if(a.T.va&&a.T.va.o){var b=xK(a),c=a.T.Aa;if(c&&"1"==c.u){var d=gz(a.A);if(d&&d<c.wa().ac){pK(a);return}}if(a.w&&(a=a.w,!a.la()&&!Hw(a.F.w,b)&&a.u)){var e=a.F.w;oH(a,Eia(a.F,b));bH(a);c=HG(a.F)&&"m"==b.reason&&a.F.P;d=a.o.lc&&"l"==b.reason&&hG(a.u);b=("b"==b.reason||"o"==b.reason)&&e.o>b.o;c||d||b?a.R("reattachrequired"):(iG(a.u)&&kH(a,a.u,a.A),g.Bn(a.ca))}}};
KK=function(a){YJ(a,"html5_nonblocking_media_capabilities")?IK(a):JK(a)};
MK=function(a){yga(a.T.ka,{cpn:a.T.clientPlaybackNonce,c:a.A.deviceParams.c,cver:a.A.deviceParams.cver});var b=a.A,c=a.T,d=new g.gy,e=fy(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,bj:c.bj});d.u=e;d.Bg=b.fa("html5_unify_sqless_flow");d.U=b.fa("html5_accurate_seeking_redux");d.Ra=b.fa("html5_emsg_crypto_period_index");d.Yu=b.fa("html5_seek_accuracy_allowance_killswitch");d.Xb=b.fa("html5_unrewrite_timestamps");b.fa("html5_streaming_xhr")&&(d.H=!0);b.fa("html5_streaming_debug")&&(d.H=!0,d.S=!0);
g.R(b.experiments,"html5_max_av_sync_drift")&&(d.nC=g.R(b.experiments,"html5_max_av_sync_drift"));d.Gb=b.fa("html5_stop_overlapping_requests");d.Ha=g.R(b.experiments,"html5_min_readbehind_secs");d.GC=g.R(b.experiments,"html5_min_readbehind_cap_secs");g.Jx(b)&&(d.Ha=g.R(b.experiments,"tvhtml5_min_readbehind_secs"));d.ym=b.fa("html5_append_init_while_paused");d.hd=g.R(b.experiments,"html5_max_readahead_bandwidth_cap");d.Em=b.fa("html5_disable_non_contiguous");d.oe=g.R(b.experiments,"html5_post_interrupt_readahead");
d.dd=b.fa("html5_log_quota_exceeded");d.O=g.R(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Wb=g.R(b.experiments,"html5_subsegment_readahead_timeout_secs");d.tv=g.R(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Rb=g.R(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.wv=g.R(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Ag=g.R(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.xv=g.R(b.experiments,
"html5_subsegment_readahead_seek_latency_fudge");d.Wa=b.fa("html5_peak_shave");d.Hu=b.fa("html5_peak_shave_always_include_sd");d.Wu=b.fa("html5_restrict_streaming_xhr_on_sqless_requests");d.CC=g.R(b.experiments,"html5_max_headm_for_streaming_xhr");d.Iu=b.fa("html5_pipeline_manifestless_allow_nonstreaming");d.Mu=b.fa("html5_prefer_server_bwe3");d.Yj=1024*g.R(b.experiments,"html5_video_tbd_min_kb");d.Nu=b.fa("html5_probe_live_using_range");d.ov=b.fa("html5_streaming_xhr_buffer_mdat");d.cA=b.fa("html5_last_slice_transition");
d.Fm=b.fa("html5_disable_incomplete_incremental_parse_error");d.jv=b.fa("html5_store_xhr_headers_readable");d.ey=g.R(b.experiments,"html5_incremental_parser_buffer_duration_secs");d.fy=g.R(b.experiments,"html5_incremental_parser_buffer_extra_bytes");d.tn=b.fa("html5_enable_packet_train_response_rate");if(e=g.R(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Ef=e,d.yv=1;d.fb=g.R(b.experiments,"html5_probe_primary_delay_base_ms")||d.fb;d.Na=b.fa("html5_no_placeholder_rollbacks");
d.qv=b.fa("html5_subsegment_readahead_enable_mffa");b.fa("html5_allow_video_keyframe_without_audio")&&(d.ra=!0);d.Ff=b.fa("html5_reattach_on_stuck");d.qw=b.fa("html5_webm_init_skipping");d.xm=b.fa("html5_adaptation_fix");d.Eb=g.R(b.experiments,"html5_request_size_padding_secs")||d.Eb;d.Dm=b.fa("html5_clamp_with_padding");d.xB=b.fa("html5_log_timestamp_offset");d.mn=b.fa("html5_disable_new_live_flags");d.Gm=b.fa("html5_disable_incremental_traf_timescale");d.Mm=b.fa("html5_disable_manifestless_sqless_sync");
d.dc=b.fa("html5_abs_buffer_health");d.Wz=b.fa("html5_interruption_resets_seeked_time");d.gd=g.R(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.gd;d.Hc=b.fa("html5_explicitly_dispose_xhr");d.QC=b.fa("html5_gapless_no_requests_after_lock");d.Df=g.R(b.experiments,"html5_probe_primary_failure_factor");d.Zu=b.fa("html5_skip_invalid_sq");d.yd=b.fa("html5_optimized_polling");d.kd=b.fa("html5_new_mediastream");d.Vu=b.fa("html5_restart_on_unexpected_detach");d.Bm=b.fa("html5_benchmark_array_copies");
b.fa("html5_media_common_config_killswitch")||(d.B=c.maxReadAheadMediaTimeMs/1E3||d.B,e=b.schedule,e.u.o()==e.policy.w?d.Z=10:d.Z=c.minReadAheadMediaTimeMs/1E3||d.Z,d.pc=c.readAheadGrowthRateMs/1E3||d.pc);xh&&(d.ca=41943040);d.na=!jw();g.Jx(b)||!jw()?(e=b.experiments,d.C=8388608,d.F=524288,d.Am=5,d.za=2097152,d.da=1048576,d.Ru=1.5,d.Gu=!1,d.J=4587520,jl()&&(d.J=786432),d.o*=1.1,d.w*=1.1,d.xb=!0,d.ca=d.C,d.Ba=d.F,d.ne=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||
!1):b.o&&(d.o*=1.3,d.w*=1.3);g.Iv&&el("crkey")&&(e="CHROMECAST/ANCHOVY"==b.deviceParams.cmodel,d.C=20971520,d.F=1572864,e&&(d.J=812500,d.P=1E3,d.Cv=5,d.da=2097152));!b.fa("html5_disable_firefox_init_skipping")&&g.pw&&(d.xb=!0);b.supportsGaplessAudio()||(d.Gc=!1);tx&&(d.mh=!0);if(sB(c)){d.Lx=!0;d.Xu=!1;d.G=b.fa("html5_shrink_live_timestamps");d.ga=d.G||b.fa("html5_manifestless_synchronized");if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.fa("html5_disable_low_pipeline"))d.cC=2,d.FC=4;d.Mh=
c.defraggedFromSubfragments;c.Ob&&(d.nb=!0);g.KB(c)&&(d.U=!1);d.Cm=g.Vx(b)}c.isAd()&&(d.Fa=0,d.Jc=0);uB(c)&&(d.S=!0);vB(c)&&(d.S=!0,d.H=!0);d.sa=b.fa("html5_enable_subsegment_readahead_v3")||b.fa("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.HB=sB(c);b.fa("html5_new_mediastream_for_live")&&c.Pe()&&(d.kd=!0);d.xa=c.dg;d.uB=d.xa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||WB(c));/^pp/.test(c.clientPlaybackNonce)&&(d.MF=!0,d.Pu=!0);ql()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.fa("html5_disable_move_pssh_to_moov")&&Py(c.ka)&&(d.xb=!1);Py(c.ka)&&(d.Ff=!1);if(c.ua){e=dz(c.ka);var f=g.R(b.experiments,"html5_live_abr_head_miss_fraction"),k=g.R(b.experiments,"html5_live_abr_repredict_fraction");f&&e&&(d.fd=Math.min(e*f,d.fd));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.ua&&(f=g.R(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.o.u=sB(c)?.5:0;if(!e.policy.u&&f&&(e=e.u,f=Math.round(f*e.P),f!=e.u)){k=Array(f);var l=Math.min(f,e.C?e.u:e.A),m=e.A-l;0>m&&(m+=e.u);for(var n=0;n<l;++n)k[n]=e.B[(m+n)%e.u];for(;n<f;++n)k[n]=Infinity;e.u=f;e.B=k;e.A=l%f;e.C=l==f;e.G=!0;e.J=Zw(e)}d.Ja=b.fa("html5_disable_new_live_flags")?c.ka.w:c.ua;switch(tB(c)){case 21530001:d.IC=b.fa("html5_live_smoothly_extend_max_seekable_time");d.sa=!0;"LOW"==c.latencyClass?d.O=g.R(b.experiments,
"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.O=g.R(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Na=!0;break;case 2153E4:d.sa=!1}d.mh=d.mh||c.mh;d.ea=c.rf;WB(c)&&(d.ya=!0,d.dd=!0);c.rf&&!Py(c.ka)&&b.fa("html5_hack_gapless_init")&&(d.Hf=!0);(e=g.R(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.rf&&c.isAd()&&(d.o*=e,d.w*=e);UB(c)&&(d.A=c.videoId,d.dc=!0,UB(c)&&c.Fq&&(d.V=!0));b.fa("html5_drm_initial_constraint_from_config")?d.lc=c.nk:
d.lc=b.fa("html5_drm_start_from_null_constraint");c=g.R(b.experiments,"html5_deadzone_multiplier")||1;(e=g.R(b.experiments,"html5_sticky_reduces_discount_by"))&&"auto"!=Qw()&&(c-=e);d.o*=c;d.w*=c;if(c=g.R(b.experiments,"html5_request_sizing_multiplier"))d.Su=c;d.jd=g.R(b.experiments,"html5_min_upgrade_health")||d.jd;nw(b.w,uw)&&(d.J=NaN);d.fn=b.fa("killswitch_metadata_events");"auto"!=Qw()&&(d.zh=0);d.Gf=b.fa("html5_rec_2020_matrix_correction_killswitch");c=d.Ja&&!b.fa("html5_pause_appends_killswitch");
d.Ja=c||b.fa("html5_never_pause_appends");b=b.experiments;g.Q(b,"html5_validate_lengthless_slices_killswitch")&&(d.zv=!1);g.Q(b,"html5_reset_on_append_error_killswitch")&&(d.Uu=!0);g.Q(b,"html5_audio_only_eos_fix_killswitch")&&(d.zm=!0);g.Q(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Ou=!0);b=a.getAudioTrack();b=b.rb.isDefault?void 0:b;a.w=new aH(a.A.schedule,d,a.T.ka,a.T.va,xK(a),b,a.P);a.w.subscribe("needkeyinfo",a.SL,a);a.w.subscribe("newDrmInfo",a.QL,a);a.w.subscribe("videoformatchange",
a.KG,a);a.w.subscribe("audioformatchange",a.rL,a);a.w.subscribe("error",a.ci,a);a.w.subscribe("ctmp",a.Sa,a);a.w.subscribe("reattachrequired",a.qO,a);a.w.subscribe("metadata",a.xA,a);a.w.subscribe("constraint",a.zN,a);a.w.subscribe("timestamp",a.oG,a);a.w.subscribe("localmediafetchcomplete",a.sL,a);d=LK(a)?!0:a.ra&&mK(a);a.w.initialize(a.getCurrentTime(),xK(a),d);a.T.probeUrl&&(a.w.sa=a.T.probeUrl);(a.U.length||a.ra)&&FK(a,!1);jJ(a.C,a.w);a.dd&&(a.w.Na=new AH(a.dd));a.xb=[];a.Eb=[]};
bka=function(a){a.C=new dJ(a.T,a.A);a.C.subscribe("seekto",function(b,c){a.C.F=b;var d=a.Ba;d.o=b;d.u=!0;c||NK(a);a.V&&b>a.T.endSeconds&&isFinite(b)&&(a.removeCueRange(a.V),a.V=null);b<OK(a)-.01&&(d=uD(a.u,2),g.W(d,8)&&(d=uD(d,4)),iK(a,d));a.R("SEEK_TO",a,b)});
a.C.subscribe("seekstart",function(){return PK(a)});
a.C.subscribe("seekend",function(){return a.R("SEEK_COMPLETE")});
a.C.subscribe("newmediaelementrequired",function(){return QK(a)});
a.C.subscribe("ended",function(){return WJ(a)});
a.C.subscribe("ctmp",a.Sa,a);a.C.subscribe("qoeerror",a.fO,a);a.C.subscribe("livereadaheadchanged",function(b){var c=a.B;c.o&&(c=c.o,g.AI(c,g.kD(c.o),"lra",[b]),CI(c,"live-readahead-seconds",b.toString()))})};
cK=function(a){a.w&&(a.w.dispose(),a.w=null,jJ(a.C,null));EK(a)};
EK=function(a){if(a.G){if(a.w){var b=sB(a.T)&&a.T.Ob&&!a.T.isAd();fH(a.w,b)}a.G.dispose();a.G=null}};
SK=function(a){if(a.G)return a.G.Yk;YJ(a,"html5_disable_loader_reorder")&&RK(a);hka(a);return a.G?a.G.Yk:null};
hka=function(a){if(YJ(a,"html5_application_media_source"))a.R("requestmediasource",a);else{var b=g.R(a.A.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Ag<b&&a.kd.start();try{var c=a.o.mo()}catch(d){if(TK(a,"html5.missingapi",{updateMs:"1"}))return;Nq(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
g.ZJ(a,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}UK(a,c)}};
UK=function(a,b){YJ(a,"html5_disable_loader_reorder")||RK(a);a.G=b;Hfa(a.G,function(c){try{if(a.G&&(!c||a.G==c)){var d=a.getDuration();!d&&sB(a.T)&&(d=g.R(a.A.experiments,"html5_manifestless_media_source_duration")||3600);a.G.isView()?(c=d,c>a.G.getDuration()&&gw(a.G,c)):gw(a.G,d);var e=a.w,f=a.G;e.Z&&(eH(e),e.Z=!1);dH(e);if(!hw(f)){var k=e.u.o.info.mimeType,l=e.A.o.info.mimeType,m=new bw("fakesb"==l?new Qv:f.w.addSourceBuffer(l),yv(l)),n=new bw("fakesb"==k?new Qv:f.w.addSourceBuffer(k),yv(k));f.o=
m;f.u=n;g.C(f,m);g.C(f,n)}OF(e.u,f.u);OF(e.A,f.o);e.w=f;e.resume();zr(f.o,e.za,e);zr(f.u,e.za,e);e.o.xB&&e.uc("toff",""+f.o.supports(1),!0);e.sf();a.R("mediasourceattached");a.kd.stop()}}catch(p){Nq(p),a.ci(new Rv("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
RK=function(a){a.w?Nf(a.w.seek(a.getCurrentTime()-a.Ab()),function(){}):MK(a)};
ika=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
VK=function(a){return a.Ja||"yt"!=a.A.O?!1:a.T.re?25>a.T.vf:!a.T.vf};
WK=function(a){a.Ja||(a.Ja=!0,a.R("signatureexpired"))};
YK=function(a,b){try{window.location.reload(!0);a.B.onError("qoe.restart",Sv({detail:"pr."+b}));return}catch(c){}YJ(a,"tvhtml5_retire_old_players")&&g.Jx(a.A)&&XK(a)};
ZK=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.fmt_unav};
jka=function(a,b){if(a.o&&("fmt.unplayable"==b.errorCode||"html5.invalidstate"==b.errorCode)){var c=a.o.Se();b.details.merr=c?c.toString():"0";b.details.msg=a.o.ll()}};
TK=function(a,b,c){var d=g.R(a.A.experiments,"html5_error_cooldown_in_ms")||3E4;if(a.Hc+d>(0,g.H)())return!a.T.re&&(a.A.da+=1,10<a.A.da)?(c.exiled=""+a.A.da,a.B.onError("qoe.start15s",Sv(c)),a.R("playbackstalledatstart"),!0):!1;a.Hc=(0,g.H)();d=a.T;d=d.ie?d.ie.Ww()<Date.now()/1E3+1800:!1;c.e=b;a.G&&(c.msopened=""+ +!!a.G.o);d&&(c.staleprog="1");a.B.onError("qoe.restart",Sv(c));if(d&&VK(a))return WK(a),!0;el("philips")&&XK(a);b=!1;(c=a.T.Aa)&&"1"==c.u?b=a.A.w.F=!0:a.w?(c=a.w,d=(d=PF(c.u)||c.u.u)?d.o:
c.u.o,d.J+=1,FG(c.F,d)):a.T.ie&&a.T.ie.St();QK(a,b);return!0};
QK=function(a,b){b=void 0===b?!1:b;return Da(function(c){if(1==c.o)return a.w&&a.w.la()&&cK(a),a.R("newelementrequired"),b?c=ua(c,pK(a),2):(c.o=2,c=void 0),c;g.W(a.u,8)&&a.playVideo();c.o=0})};
XK=function(a){if("GAME_CONSOLE"!=a.A.deviceParams.cplatform)try{window.close()}catch(b){}};
g.zK=function(a,b){b=void 0===b?!1:b;a.o&&(a.o.stopVideo(),aK(a),cK(a),g.W(a.u,128)||(b?iK(a,vD(a.u,4,8)):iK(a,sD(a.u))),a.A.F.remove(a.T.videoId))};
NK=function(a){g.W(a.u,32)||(iK(a,tD(a.u,32)),g.W(a.u,8)&&a.pauseVideo(!0),a.R("beginseeking",a));$K(a)};
PK=function(a){g.W(a.u,32)?(iK(a,vD(a.u,16,32)),a.R("endseeking",a)):YJ(a,"html5_sync_seeking_state")&&!g.W(a.u,2)&&iK(a,tD(a.u,16))};
aL=function(a){if(a.T.ka)return ez(a.T.ka,a.getCurrentTime()-a.Ab());if((!YJ(a,"html5_disable_limit_ingestion_tvos")||il())&&a.o){var b=a.o.oo();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+a.getCurrentTime()}return NaN};
hK=function(a,b){a.R("internalvideodatachange",void 0===b?"dataupdated":b,a,a.T)};
BK=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.ya.L(this.o,b,this.LG,this)},a);
a.A.oe&&a.o.fh()&&(a.ya.L(a.o,"webkitplaybacktargetavailabilitychanged",a.cK,a),a.ya.L(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.dK,a))};
cL=function(a){YJ(a,"html5_enable_timeupdate_timeout")&&!a.T.ua&&bL(a)&&a.yd.start()};
bL=function(a){if(!a.o)return!1;var b=a.o.getCurrentTime();a=a.o.getDuration();return!!(1<b&&b>a-.3)};
eL=function(a){window.clearInterval(a.Gb);a.na.stop();a.T.re=!0;a.A.re=!0;a.A.da=0;dL(a);g.W(a.u,8)&&iK(a,uD(a.u,65));var b=a.B;if(b.u){var c=b.u;if(!c.w){g.Q(c.o.eb.experiments,"disable_embedpage_playback_logging")||16623!=c.o.videoData.hp||g.Jo(Error("Playback for EmbedPage"));var d=JD(c,"playback");c.H=[10+c.o.videoData.dj,10,10,40+c.o.videoData.Xk-c.o.videoData.dj,40];var e=c.u;window.clearInterval(e.G);e.G=NaN;e.G=Lo((0,g.x)(e.update,e),100);e.F=g.kD(e.u);e.B=ZC(e.u);d.u=ID(c,!0);d.send();c.o.videoData.So&&
(d=c.o.eb,e=c.o.videoData,e={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.So,oid:e.YA,ptchn:e.XA,pltype:e.ZA,content_v:e.Ng()},d=g.Ad(d.C+"ptracking",e),MD(c,d));c.o.videoData.pk&&(c.F("playback"),c.A||PD(c));c.o.videoData.Ke||OD(c);c.w=!0;c=c.u;c.o=c.u.o();c.F=g.kD(c.u);!(0==c.w&&5>c.o)&&2<c.o-c.w&&(c.w=c.o);c.J=!0}}b.w&&(b=b.w,c=g.kD(b.o),0>b.w&&(b.w=c,b.B.start()),b.A=c,b.J=c);g.Bn(a.Xb);a.R("playbackstarted");g.Pp()&&((a=g.w("yt.scheduler.instance.clearPriorityThreshold"))?
a():Rp(0))};
dL=function(a){var b=a.getCurrentTime(),c=a.T;!QA("pbs","")&&YA.measure&&YA.getEntriesByName&&(YA.getEntriesByName("mark_nr")[0]?$A("mark_nr"):$A());c.videoId&&a.O.info("docid",c.videoId);c.eventId&&a.O.info("ei",c.eventId);c.clientPlaybackNonce&&a.O.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.O.info("start",c.startSeconds.toString());a.o&&a.o.gh()&&a.O.info("paused",1);c.Aa?a.O.info("fmt",Vu(c.Aa)):a.O.info("fmt","-1");c.si&&a.O.info("yt_pre",a.Ff?"2":"1");a.J.isFullscreen()&&a.O.info("yt_fs",
"1");a.O.info("cmt",b.toFixed(3));if(a.w){b=a.w.ga;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.A),c.length&&(c=c[0],b.cd("vri",c.fetchStart),b.cd("vdns",c.domainLookupEnd),b.cd("vreq",c.requestStart),b.cd("fvb",c.responseStart),b.cd("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.o),c.length&&(c=c[0],b.cd("ari",c.fetchStart),b.cd("adns",c.domainLookupEnd),b.cd("areq",c.requestStart),b.cd("avb",c.responseStart),b.cd("arc",
c.responseEnd)));b=b.B;for(var d in b)a.O.tick(d,b[d])}};
$K=function(a,b){b=void 0===b?!1:b;if(a.o&&a.T){var c=a.C,d=g.xD(a.u),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.H&&f){var k=c.H;if(k.o&&!(e>=k.u&&e<k.w)){var l=k.o.Oe(e);-1!=l&&(k.u=k.o.Xc(l),k.w=k.u+k.o.getDuration(l),l=(0,g.H)()/1E3-k.o.Bs(l),l-=k.B(),k.A.add(l))}}c.w&&(f&&(f=c.w,k=c.o?hC(c.o):0,f.B++,3>f.B||(0,g.H)()-f.G<f.o.H||(f.G=(0,g.H)(),f.w.push(k),50<f.w.length&&f.w.shift())),f=c.w,TI(f,e,void 0===d?!0:d),UI(f,e),d&&aJ(c,!0));c=a.getCurrentTime();!a.w||g.W(a.u,4)&&g.KB(a.T)||(d=a.w,
e=c,d.w&&d.w.u&&(e-=!isNaN(d.S)&&d.o.Xb?d.S:0,d.C!=e&&d.resume(),d.P.w&&!iw(d.w)&&(f=d.C<=e&&e<d.C+10,k=Xv(d.w.u.Ad(),d.C+nH),f&&k&&(d.P.w=!1)),d.P.w||(d.C=e),g.Bn(d.xa)));5<c&&(a.C.F=c);(d=g.Pp())?g.Qp(a.ga):g.Mo(a.ga);!g.AD(a.u)&&a.o.gh()||g.W(a.u,128)||(e=(0,g.x)(a.wF,a),0==a.o.Wi().length?a.ga=d?g.Np(e,100):g.Ko(e,100):a.ga=d?g.Np(e,500):g.Ko(e,500));a.T.Jg=c;if(!b&&g.xD(a.u)&&(c=a.B,c.u&&(c=c.u,c.u.update(),c.o.videoData.Pb()&&c.o.videoData.Ke&&c.w&&!c.O&&bD(c.u)>=c.o.videoData.Ke&&(c.w&&c.o.videoData.Ke&&
(d=JD(c,"delayplay"),d.Ba=!0,d.send(),c.O=!0),OD(c))),a.T.ua&&(0,g.H)()>a.Gf+6283&&(!a.isAtLiveHead()||a.T.ka&&bz(a.T.ka)||(c=a.B,c.o&&(c=c.o,e=c.o.w(),d=g.kD(c.o),EI(c,d,e),e=e.C,isNaN(e)||g.AI(c,d,"e2el",[e.toFixed(3)]))),g.Vx(a.A)&&a.Sa("rawlat","l."+uC(a.da,"rawlivelatency").toFixed(3)),a.Gf=(0,g.H)()),a.T.Aa&&Cv(a.T.Aa)&&(c=kK(a))&&c.videoHeight!=a.Gc&&(a.Gc=c.videoHeight,YJ(a,"html5_log_hls_video_height_change_as_format_change")&&a.T.ie&&"auto"==a.T.ie.Tf.wa().quality&&a.T.sg)))for(c=g.q(a.T.sg),
d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Gc&&"auto"!=d.Tf.wa().quality){wK(a,"a",d.Zd());break}vja(a.S,a.H,a.o,a.J.isBackground())&&KK(a);c=a.S;d=a.T.Aa;0>=g.R(c.o.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.wa()&&32<d.wa().fps)?c=!1:3<=c.w?(c.w=0,c=!0):c=!1;c&&kka(a);a.R("progresssync",a,b)}};
kka=function(a){a.B.onError("qoe.restart","droprate."+a.S.F);a.A.w.C=!1;pK(a).then(function(){return qK(a)})};
iK=function(a,b){if(!g.wD(a.u,b)){var c=new g.CD(b,a.u);a.u=b;var d=!a.Rb.length;a.Rb.push(c);var e=a.o&&a.o.ol();if(g.ED(c,1)&&!g.W(c.o,16)&&!e&&g.W(a.u,8)&&!g.W(a.u,64)&&a.w&&(a.w.da=!0,fL(a),a.o&&5<=hC(a.o))){e=a.S;var f=a.H;rI(e,f)&&f.videoData.Aa?(6E4<(0,g.H)()-e.H&&(e.A=0),e.A++,e.H=(0,g.H)(),4!=e.A?e=!1:(sI(e,f.videoData.Aa),e=!0)):e=!1;e&&KK(a)}(e=g.R(a.A.experiments,"html5_ad_timeout_ms"))&&a.T.isAd()&&g.W(b,1)&&(g.W(b,8)||g.W(b,16))?a.Wb.start(e):a.Wb.stop();(0>DD(c,8)||g.ED(c,1024))&&a.na.stop();
!g.ED(c,8)||a.T.re||g.W(c.state,1024)||a.na.start();g.W(c.state,8)&&0>DD(c,16)&&!g.W(c.state,32)&&!g.W(c.state,2)&&a.playVideo();g.W(c.state,2)&&LB(a.T)&&(e=a.getCurrentTime(),a.T.lengthSeconds!=e&&(a.T.lengthSeconds=e,hK(a)),$K(a,!0));g.ED(c,2)&&(a.Tt(!YJ(a,"web_player_botguard_no_fallback_on_ended")),fL(a));a.T.ka&&a.T.ua&&!a.Bg&&(0>DD(c,8)?(e=a.T.ka,e.A&&e.A.stop()):g.ED(c,8)&&a.T.ka.resume());e=a.C;e.J.B=c.state;if(e.o&&8==c.o.o&&zD(c.state)&&g.AD(c.state)&&e.U.A){f=e.o.getCurrentTime();var k=
e.o.md();var l=$I(e,"manifestless_post_live_ufph")||$I(e,"manifestless_post_live")?Wv(k,Math.max(f-3.5,0)):Wv(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.ya-l)||(e.R("ctmp","seekover","b."+Vv(k,"_")+";cmt."+f),e.ya=l,e.seekTo(l,{Kk:!0})))}e=a.B;if(g.ED(c,1024)||g.ED(c,2048)||g.ED(c,512)||g.ED(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.la()||(g.W(c.state,
2)?(f.B="paused",g.ED(c,2)&&f.w&&LD(f).send()):g.W(c.state,8)?(f.B="playing",f.w&&isNaN(f.C)&&ID(f,!1)):f.B="paused",f.A&&g.W(c.state,128)&&(f.F("error-100"),g.Mo(f.A))));if(e.o){f=e.o;k=c.state;l=g.kD(f.o);var m=yja(f,c.state);if(m!=f.w){if(!(l<f.C)){if("PL"==f.w)f.O+=l-f.C;else if("B"==f.w&&f.P){f.P=!1;var n=g.R(f.o.eb.experiments,"html5_disable_last_state_change")?f.C:f.ea;f.S+=l-n;!f.ca&&10<=f.S&&180>=f.O&&(f.o.C(),f.u.qoealert=["1"],f.ca=!0)}"B"!=m||"PL"!=f.w&&"PB"!=f.w||(f.P=!0);f.C=l}"B"==
m&&"PL"==f.w||f.o.videoData.dg?FI(f,l):DI(f,l);f.o.fa("html5_gllat")&&"PL"===m&&g.Bn(f.Ha);g.AI(f,l,"vps",[m]);f.w=m;f.ea=l;f.C=l;f.H=!0}m=k.u;g.W(k,128)&&m&&HI(f,l,m.errorCode,m.vB);(g.W(k,2)||g.W(k,128))&&f.Fj(l);f.o.fa("html5_qoe_user_intent_match_health")?g.xD(k)&&!f.A&&(0<=f.B&&(f.u.user_intent=[f.B.toString()]),f.A=!0):g.W(k,8)&&f.o.videoData.si&&!f.A&&(f.u.user_intent=[l.toString()],f.A=!0);GI(f)}e.w&&(e=e.w,yI(e),e.u=c.state,0<=e.A&&g.ED(c,16)&&e.P++,c.state.isError()&&e.C());if(d&&!a.la())try{for(var p=
g.q(a.Rb),t=p.next();!t.done;t=p.next()){var u=t.value,z=a.P;c=u;if(z.started&&(z.u(),g.W(c.o,16))){c=z;var B=RG(c.o,Math.max(c.A-2E3,0));!isNaN(B)&&0x7ffffffffffff>B&&c.B.start()}a.R("statechange",u)}}finally{a.Rb.length=0}}};
gL=function(a,b){g.W(a.u,128)||(iK(a,vD(a.u,1028,9)),a.Sa("dompaused",b),a.R("onDompaused"))};
qK=function(a){if(!a.o||!a.T.va)return!1;var b=null;a.T.va.o?(b=SK(a),a.w.resume()):(cK(a),a.T.ie&&(b=a.T.ie.ql()));var c=b;var d=a.o.no();b=!1;d&&null!==c&&c.o===d.o||(a.O.tick("vta"),aB("vta"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.C.F=b),a.o.qj(c),a.G&&Rp(4),!a.T.re&&g.yD(a.u)&&a.na.start(),b=!0);g.W(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.DB(a.T)&&a.o)if((d=a.T.sd)&&a.o.fh()){var e=a.o.gb();if(a.F)if(e!=a.F.J)aK(a);else if(c&&"fairplay"==d.flavor&&
!il())aK(a);else break a;a.F=new dI(e,a.T,a.A);a.F.subscribe("licenseerror",a.hL,a);a.F.subscribe("qualitychange",a.jL,a);a.F.subscribe("heartbeatparams",a.IG,a);a.F.subscribe("keystatuseschange",a.JG,a);a.F.subscribe("hdproberequired",a.iL,a);a.F.subscribe("ctmp",a.Sa,a);c=g.q(a.xb);for(d=c.next();!d.done;d=c.next())d=d.value,hI(a.F,d.type,d.info);c=g.q(a.Eb);for(d=c.next();!d.done;d=c.next())iI(a.F,d.value);a.xb=[];a.Eb=[]}else g.ZJ(a,"fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");
return b};
aK=function(a){a.F&&(a.F.dispose(),a.F=null)};
lka=function(a){a.A.w.w=!1;a.B.onError("qoe.restart",Sv({e:"fmt.noneavailable",detail:"hdr"}));pK(a).then(function(){return qK(a)})};
hL=function(a,b){b=void 0===b?!1:b;return a.T.ua&&(a.isAtLiveHead()&&(YJ(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.W(a.u,4))||lJ(a.C)||g.KB(a.T))?a.getCurrentTime():OK(a,b)};
OK=function(a,b){return a.C.sc(void 0===b?!1:b)};
g.iL=function(a,b){(a.lc=b)||a.na.stop();if(a.T.ka)if(b)a.T.ka.resume();else{var c=a.T.ka;c.A&&c.A.stop()}g.Q(a.A.experiments,"html5_suspend_loader")&&a.w&&(b?a.w.resume():FK(a,!0));g.Q(a.A.experiments,"html5_fludd_suspend")&&(g.W(a.u,2)||b?g.W(a.u,512)&&b&&iK(a,uD(a.u,512)):iK(a,tD(a.u,512)));c=a.B;c.o&&(c=c.o,g.AI(c,g.kD(c.o),"stream",[b?"A":"I"]))};
jL=function(a){return a.o?a.o.lo():a.Jc};
kL=function(a){a.o&&(a.G?(aK(a),EK(a),SK(a)):(a.T.ie&&a.T.ie.St(),a.o.stopVideo()),a.playVideo())};
lL=function(a,b){g.Q(a.A.experiments,"html5_log_rebuffer_reason")&&a.Sa("bufreason","r."+b+";lact."+Wp())};
mL=function(a,b){if(a.T.dg){var c=g.R(a.A.experiments,"html5_log_rebuffer_events");if(c&&a.o){var d=a.o.Ya();d.rt=g.kD(a.B.A).toFixed(3);d.e=b.substr(0,3);a.fd[a.Hf++%c]=Sv(d)}}};
fL=function(a){if(a.T.dg){for(var b=g.q(a.fd),c=b.next();!c.done;c=b.next())a.Sa("vpe",c.value);a.fd=[];a.Hf=0}};
uK=function(a,b){a.Sa("seekreason",b)};
nL=function(a){if(el("cobalt")&&el("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Sa("nxdock",""+ +b)}};
YJ=function(a,b){return g.Q(a.A.experiments,b)};
FK=function(a,b){cH(a.w,b||LK(a))};
LK=function(a){var b=YJ(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.Jx(a.A),c=YJ(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.cb(a.U,"ad")};
eka=function(a){if(lB(a.T,"html5_set_debugging_opt_in")&&(a=nr.getInstance(),!pr(0,183))){var b="f"+(Math.floor(183/31)+1),c=or(b)||0;c|=268435456;0==c?delete mr[b]:(c=c.toString(16),mr[b]=c.toString());a.save()}};
oL=function(a,b){this.o=a;this.u=b};
qL=function(a,b){a:{var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.o.LO&&(c=a.o.LO[b.signalServiceEndpoint.signal])){var e=new c;break a}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.o.iE&&(d=a.o.iE[b.continuationCommand.request])){e=new d;break a}for(e in b)if(a.o.iw[e]&&(d=a.o.iw[e])){e=new d;break a}e=void 0}if(!e)return Mq(new Lq("Error: No request builder found for command.",b)),Ff({});d=b.clickTrackingParams;if(c=g.L("INNERTUBE_CONTEXT")){c=g.Sb(c);
c.client||(c.client={});var f=c.client;f.screenWidthPoints=window.innerWidth;f.screenHeightPoints=window.innerHeight;f.screenPixelDensity=Math.round(window.devicePixelRatio)||1;f.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var k=void 0===k?!1:k;nr.getInstance();var l=pr(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.$o("kevlar_apply_prefers_color_theme")&&(l=pr(0,165)?"USER_INTERFACE_THEME_DARK":pr(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");k=k?l:Vea()||l;f.userInterfaceTheme=k;(k=Gq("EXPERIMENTS_DEBUG"))?f.experimentsToken="ZERO"===k?"GgIQAQ%3D%3D":k:delete f.experimentsToken;k=ap();pL.o||(pL.o=new pL);c.request={internalExperimentFlags:k,consistencyTokenJars:g.Hb(pL.o.o)};k=pr(nr.getInstance(),58);c.user={};k&&(c.user.enableSafetyMode=k);if(k=g.L("DELEGATED_SESSION_ID"))c.user.onBehalfOfUser=k;if(k=g.Vr())c.clientScreenNonce=
k;d&&(c.clickTracking={clickTrackingParams:d});k=c}else g.M(Error("Error: No InnerTubeContext shell provided in ytconfig.")),k={};k={context:k};(d=e.u(b))?(e.o(k,d),e=k):(Mq(new Lq("Error: Failed to create Request from Command.",b)),e=void 0);if(!e)return Mq(new Lq("Error: Failed to build request for command.",b)),Ff({});(k=b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.apiUrl||void 0)&&(k=iq(k,{key:g.L("INNERTUBE_API_KEY")}));return k?mka(a,e,k):(Mq(new Lq("Error: No API URL provided for command (yaqs/6180475663155200).",
b)),Ff({}))};
mka=function(a,b,c){var d=JSON.stringify(b);return nka().then(function(e){return a.u.fetch(c,{method:"POST",mode:"same-origin",headers:e,body:d})}).then(function(e){return Ff(e)})};
nka=function(){return oka().then(function(a){a=new Headers(Object.assign({"Content-Type":"application/json","X-Goog-Visitor-Id":g.L("VISITOR_DATA")},a));return Ff(a)})};
rL=function(a){RD.call(this,a);this.J=null};
g.sL=function(a){return a.app.A};
g.tL=function(a){a=g.sL(a).u.get("endscreen");return!!a&&a.zy()};
uL=function(a){a=g.sL(a);var b=a.u.get("endscreen");return b&&b.Ay()?!0:a.Vl()||g.Ex(a.o.N())};
g.vL=function(a,b){3==a.getPresentingPlayerType()?a.R("mdxautoplaycancel"):a.R("autonavcancel",b)};
g.xL=function(a){return g.wL(a).element};
g.zL=function(a,b){return yL(a.app,b)};
g.wL=function(a){return a.app.H};
g.BL=function(a){var b=g.AL(g.sL(a));return a.app.ca&&!a.isFullscreen()||3==a.getPresentingPlayerType()&&b&&b.hasNext()&&b.By()||!!a.getPlaylist()};
g.CL=function(a,b,c){a.app.w.ci(new Rv(b,!1,c))};
g.DL=function(a){var b={};a=GK(g.U(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.wC=function(a){return(a=g.EL(g.sL(a)))?a.zG():{}};
g.GL=function(a){a=g.FL(g.sL(a));return!!a&&a.jl()};
g.HL=function(a){a=g.FL(g.sL(a));return!!a&&a.yy()};
g.IL=function(a,b,c){var d=g.XC(a);if(d)return d.Fs(b,c);a=a.app.H.getPlayerSize();return new g.sh(0,0,a.width,a.height)};
KL=function(a){a=JL(g.sL(a));return!!a&&a.uG()};
LL=function(a){a=g.sL(a).u.get("heartbeat");return!!a&&a.vG()};
g.NL=function(a,b,c){ML(a.app,b,c)};
g.OL=function(a,b,c){(a=g.U(a.app,c))&&AK(a,b)};
g.PL=function(a){a=(a=a.getVideoData())&&a.Aa;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!=a.mimeType};
g.QL=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Xd)};
g.RL=function(a,b,c){a=g.wL(a).element;var d=sb(a.children,function(e){e=parseInt(e.getAttribute("data-layer"),10);return c-e||1});
0>d&&(d=-(d+1));g.te(a,b,d);b.setAttribute("data-layer",c)};
g.SL=function(a){var b=a.N();if(!b.Wa)return!1;var c=a.getVideoData();if(!c||3==a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");d=c.ua&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);var e=!!a.getPlaylist();g.Q(b.experiments,"player_allow_autonav_after_playlist")&&(e=(a=a.getPlaylist())&&a.hasNext());return!c.ypcPreview&&!d&&!g.cb(c.Oc,"ypc")&&!e};
g.TL=function(a,b,c,d){a.N().U&&pka(a.app.na,b,c,d)};
g.UL=function(a,b,c){a.N().U&&qka(a.app.na,b,c)};
g.VL=function(a,b,c){a.N().U&&(a.app.na.o.has(b),c&&(b.visualElement=g.Kr(c)))};
g.WL=function(a,b){a.N().U&&a.app.na.click(b)};
g.XL=function(a,b,c){if(a.N().U&&(a=a.app.na,a.o.has(b),c?a.u.add(b):a.u["delete"](b),c&&!a.A.has(b))){c=g.Vr();var d=b.visualElement;c&&d&&g.ks(c,d);a.A.add(b)}};
YL=function(a,b){return a.N().U?a.app.na.o.has(b):!1};
g.aM=function(a,b){if(a.app.getPresentingPlayerType()==b){var c=a.app,d=g.U(c,b);d&&(d!=c.w?ZL(c,c.w):$L(c))}};
dM=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.S?bM(a.S,b,c):cM(a.ya,b,c)};
rka=function(a){if(!a.fa("html5_inline_video_quality_survey"))return!1;var b=g.U(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Aa||!c.Aa.video||1080>c.Aa.video.ac||c.Nx)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Aa.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.Sa("iqss",e,!0),!0):!1};
eM=function(a,b){document.requestStorageAccess().then(a,b)};
fM=function(a){if(a){var b=[],c;for(c in a)ska.has(c)||b.push(c);b.length&&(b.sort(),Nq(new Lq("Unknown house brand player vars:",b)))}};
g.gM=function(a){g.P.call(this);this.player=a;this.loaded=!1};
g.hM=function(a,b){return Ev(a.info.mimeType)?b?Vu(a.info)==b:!0:!1};
g.iM=function(a,b){if(null!=a.ka&&g.Vx(b.N())&&!a.ka.u&&null!=a.ka.o.rawcc)return!0;if(!a.Pe())return!1;var c=!!a.ka&&a.ka.u&&Object.values(a.ka.o).some(function(e){return g.hM(e,"386")}),d=!!a.ka&&!a.ka.u&&mga(a.ka);
return c||d};
jM=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.Q(a.N().experiments,"web_player_defer_modules")};
g.kM=function(a){return a.u.get("captions")};
uka=function(a,b){switch(b){case "ad":return lM(a);case "annotations_module":var c=a.o.N(),d=a.o.getVideoData();return d.Yx||"3"==c.controlsType?!1:c.F.isEmpty()&&"annotation-editor"!=c.playerStyle&&"live-dashboard"!=c.playerStyle?!!d.Vd||!!g.OB(d)||!!g.PB(d):!0;case "attribution":return c=a.o.N(),g.Q(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.MB(c)||!!g.NB(c))),c;case "embed":return g.vx(a.o.N());case "endscreen":return g.mM(a);case "fresca":return a.o.getVideoData().sn;case "heartbeat":return a.o.getVideoData().pm;case "kids":return Lx(a.o.N());case "remote":return a.o.N().Rb;case "miniplayer":return a.o.N().showMiniplayerUiWhenMinimized;case "music":return g.Ex(a.o.N());case "captions":return"lb3"==a.o.N().playerStyle?c=!1:(c=a.o.getVideoData(),c=!!c.gk||!!c.captionTracks.length||g.iM(c,a.o)),c;case "unplugged":return g.Kx(a.o.N());
case "ux":return a.o.N().sa;case "visualizer":return g.nM(a);case "webgl":return tka(a);case "ypc":return a.Vl();case "ypc_clickwrap":return c=a.o.getVideoData(),c.Wj&&!c.Fr;case "yto":return!!a.o.getVideoData().Oc.includes("yto");default:return g.M(Error("Module descriptor "+b+" does not match")),!1}};
oM=function(a){a.B&&(a.ld("endscreen"),a.Aq(),a.ld("creatorendscreen",void 0,!0))};
g.mM=function(a){var b=a.o.N();if(g.by(b)||b.Yb||!b.Ha&&!b.Ja)return!1;var c=a.o.getPresentingPlayerType();if(2==c)return!1;if(3==c)return g.Q(b.experiments,"desktop_enable_autoplay");a=a.o.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");return!(a.ua&&(!g.Q(b.experiments,"allow_live_autoplay")||!c))};
g.EL=function(a){return a.u.get("webgl")};
tka=function(a){var b=a.o.getVideoData(),c=a.o.N().experiments,d=g.ll(),e=g.Q(c,"enable_spherical_kabuki");a=g.$x(a.o.N());if(b.Yf())return d||e||a||g.Q(c,"html5_enable_spherical");if(b.fg())return a||d||e||g.Q(c,"html5_enable_spherical");if(b.gg())return a||d||g.Q(c,"html5_enable_spherical3d");if(b.ej())return a||g.Q(c,"html5_enable_anaglyph3d")||!1;d=b.Aa&&b.Aa.video&&vv(b.Aa.video);return a&&!g.DB(b)&&!b.isVisualizerEligible&&!d&&(g.Q(c,"enable_webgl_noop")||g.Q(c,"html5_enable_bicubicsharp")||
g.Q(c,"html5_enable_smartsharp"))};
pM=function(a){g.Q(a.o.N().experiments,"web_player_ux_module_wait")&&a.u.get("ux")&&g.OL(a.o,"ux")};
vka=function(a){pM(a);a.ld("ux",void 0,!0)};
lM=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.nM=function(a){var b=a.o.N();return a.o.getVideoData().isVisualizerEligible&&ay(b)&&g.Q(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"==b.playerStyle&&g.$x(b)&&!(g.Dw&&!g.Md(42))};
qM=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.Bf(b))&&(g.He(f),a.u["delete"](e))}};
rM=function(a){return a.u.get("ad")};
sM=function(a){return Lx(a.o.N())?a.u.get("kids"):null};
g.AL=function(a){return a.o.N().Rb?a.u.get("remote"):null};
tM=function(a){return g.Kx(a.o.N())?a.u.get("unplugged"):null};
VC=function(a){return a.o.N().sa?a.u.get("ux"):null};
g.FL=function(a){return a.u.get("annotations_module")};
uM=function(a){return a.u.get("creatorendscreen")};
JL=function(a){return a.u.get("fresca")};
wM=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.pe("SCRIPT"),k.setAttribute("data-original-src",d),f=!0);var n=function(){a.la()||c.call(a)},p=function(){a.la()||g.OL(a.o,b)};
k.onload=g.Sa(function(t){qf(n);t&&t()},k.onload);
k.onerror=g.Sa(function(t){if(.01>Math.random()){var u=Error("Unable to load player module");u.params=b+".js from "+d+" on "+(document.location&&document.location.origin)+".";g.M(u)}qf(p);t&&t()},k.onerror);
k.onreadystatechange=g.Sa(function(t){switch(k.readyState){case "loaded":case "complete":qf(n,this)}t&&t()},k.onreadystatechange);
f&&((e=a.o.N().ea)&&k.setAttribute("nonce",e),cd(k,jh(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(k,e.firstChild),g.Ge(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.vM[b]=null;"annotations_module"==b&&(g.vM.creatorendscreen=null)}))}};
g.xM=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+" Days");if(0<d||0<e)k+=" "+e+" Hours";d=(k+(" "+f+" Minutes ")+(c+" Seconds")).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.yM=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)};
zM=function(a,b,c,d){g.P.call(this);this.w=a;this.S=(0,g.x)(b,null);this.u=0;this.F=!1;this.B=new g.Sd(NaN,NaN);this.o=new g.O(this);g.C(this,this.o);b=d?4E3:3E3;this.H=new g.I(g.Sa(this.Qb,1,!1),b,this);g.C(this,this.H);this.J=new g.I(g.Sa(this.Qb,2,!1),b,this);g.C(this,this.J);this.O=new g.I(g.Sa(this.Qb,512,!1),0,this);g.C(this,this.O);this.V=c&&0<c.Ch.length?5E3:3E3;d||(this.A=this.o.L(a,"mouseover",this.Rs),this.o.L(a,"mousemove",this.AI),this.o.L(a,"mouseleave",this.LJ));xh?this.o.L(a,"keypress",
this.eG):this.o.L(a,"focusin",this.FE);this.C=this.o.L(a,"mousedown",this.wz);this.G=this.o.L(a,"touchstart",this.yz,void 0,!0);this.U=null;this.Qb(640,!0)};
AM=function(a){a.Qb(4,!1);a.P&&(a.o.Xa(a.P),a.P=null,a.A=a.o.L(a.w,"mouseover",a.Rs));a.A&&(a.o.Xa(a.A),a.A=a.o.L(a.w,"mouseover",a.Rs))};
g.BM=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.Dp,0,this);g.C(this,this.delay)};
CM=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
g.DM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-cast-desktop-on"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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"}}]}};
EM=function(){return{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",M:{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.FM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-chevron-back"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{D:"path",M:{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.GM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-chevron-forward"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},K:[{D:"path",M:{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"}}]}};
HM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-clip-clear"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",M:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",M:{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"}}]}};
IM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-clip-end"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Ka:!0,M:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
JM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-clip-start"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Ka:!0,M:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.KM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-close"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{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"}}]}};
LM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-closed-captioning"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,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 M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
MM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-code"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",M:{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"}}]}};
NM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-dislike"]}:{D:"svg",M:{viewBox:"0 0 24 24"},K:[{D:"path",M:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",M:{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.OM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-error-exclamation"]}:{D:"svg",M:{fill:"#fff",viewBox:"0 0 48 48"},K:[{D:"path",M:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",M:{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"}}]}};
PM=function(){return{D:"svg",M:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},K:[{D:"path",M:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",M:{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.QM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-like"]}:{D:"svg",M:{viewBox:"0 0 24 24"},K:[{D:"path",M:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",M:{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"}}]}};
RM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-link"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",M:{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"}}]}};
SM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-loop-range"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},K:[{D:"path",Ka:!0,M:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
TM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-next"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.UM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-notifications-active"]}:{D:"svg",M:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{D:"path",M:{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"}}]}};
VM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-pause"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
WM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-pip"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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"}}]}};
XM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-play"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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"}}]}};
YM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-prev"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.ZM=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-replay"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.$M=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-settings"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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"}}]}};
aN=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-stop"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
bN=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-volume-high"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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"}}]}};
cN=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-volume-low"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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"}}]}};
dN=function(){return g.X?{D:"div",X:["ytp-icon","ytp-icon-volume-muted"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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"}}]}};
g.eN=function(a){g.V.call(this,{D:"button",X:["ytp-large-play-button","ytp-button"],M:{"aria-label":"Play"},K:["{{largePlayButtonChildren}}"]});this.u=a;this.L(a,"videodatachange",this.w);this.w()};
fN=function(a){var b=a.N(),c=["ytp-cued-thumbnail-overlay"];(g.Q(b.experiments,"web_player_contain_thumbnail")||b.Yb)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{D:"div",X:c,K:[{D:"div",I:"ytp-cued-thumbnail-overlay-image"}]});b=this.o["ytp-cued-thumbnail-overlay"];c=new g.eN(a);g.C(this,c);c.ba(b);this.B=new g.O(this);g.C(this,this.B);this.u=a;this.F=this.o["ytp-cued-thumbnail-overlay-image"];this.C=c;this.A=new g.BM(this,250);g.C(this,this.A);this.w=new g.I(this.Az,0,this);g.C(this,this.w);
this.Az();this.L(a,"appresize",this.NI);this.L(a,"presentingplayerstatechange",this.OI);this.L(a,"ypcStateChanged",this.ON);xx(a.N())&&this.L(a,"videoplayerreset",this.MI)};
g.gN=function(a,b){var c={},d;for(d in b)c.Sp=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(e){return function(){return e.Sp}}(c)),c={Sp:c.Sp};
return a};
hN=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.qd(window.location.href);e&&d.push(e);e=g.qd(a);if(g.cb(d,e)||!e&&fc(a,"/"))if(g.$o("autoescape_tempdata_url")&&(d=document.createElement("a"),g.ad(d,a),a=d.href),a&&(d=a.match(od),d=md(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Vr()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+id(d).toString(36),c=c?g.xd(c):
"",g.Fq(d,c,f||5))}else f=b,c="ST-"+id(d).toString(36),f=f?g.xd(f):"",g.Fq(c,f,5)};
g.iN=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.Ad(a,b)+c;a=a instanceof g.vc?a:g.Ac(a);d.href=g.wc(a)};
g.jN=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&&hN(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.iN(a))};
g.kN=function(a,b,c){c&&hN(a,c);c=g.zc(a);c=g.wc(c);a!=c&&g.Jo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||id(a).toString(36))};
lN=function(a){var b=!a.N().Wb&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
g.mN=function(a,b,c,d){if((void 0===c||!c)&&g.yM(a))return g.Ep(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");g.jN(a,d,!0);return!1};
g.nN=function(a,b,c){if(Rx(b.N())&&2!=b.getPresentingPlayerType()){if(g.yM(c))return b.isFullscreen()&&!b.N().externalFullscreen&&b.toggleFullscreen(),g.Ep(c),!0}else{var d=g.yM(c);d&&b.pauseVideo();g.jN(a,void 0,!0);d&&(g.kN(a),g.Ep(c))}return!1};
oN=function(){return{D:"div",I:"ytp-spinner-container",K:[{D:"div",I:"ytp-spinner-rotator",K:[{D:"div",I:"ytp-spinner-left",K:[{D:"div",I:"ytp-spinner-circle"}]},{D:"div",I:"ytp-spinner-right",K:[{D:"div",I:"ytp-spinner-circle"}]}]}]}};
pN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.qN=function(a,b,c){a=a.N();return g.Q(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Eb?g.gN("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.rN=function(a){g.V.call(this,{D:"div",X:["ytp-error"],M:{role:"alert"},K:[{D:"div",I:"ytp-error-content",K:[{D:"div",I:"ytp-error-icon-container",K:[g.OM()]},{D:"div",I:"ytp-error-content-wrap",K:[{D:"div",I:"ytp-error-content-wrap-reason",W:"{{content}}"},{D:"div",I:"ytp-error-content-wrap-subreason",W:"{{subreason}}"}]}]}]});this.api=a;this.A=[]};
g.sN=function(a){a=a.split(wka);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",M:{href:a[c],target:a[c+1]},W:a[c+2]})}return{D:"span",K:b}};
tN=function(a,b,c,d,e,f,k){k=void 0===k?!0:k;e||(e=a.api.N().u);a=a.api.getVideoData();b=g.gN(g.yK[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",M:{href:c,target:e?"_blank":null},W:b[2]});d.push(b[4]);return{D:"span",K:d}};
vN=function(a){g.O.call(this);this.o=a;this.w=new Set;this.u=navigator.mediaSession;uN(this,"play",function(){a.playVideo()});
uN(this,"pause",function(){a.pauseVideo()});
uN(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
uN(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.L(a,"videodatachange",this.B);this.L(a,"presentingplayerstatechange",this.A);this.B()};
uN=function(a,b,c){a.u.setActionHandler(b,c?(0,g.x)(c,a):null);a.w.add(b)};
wN=function(a){g.V.call(this,{D:"div",I:"ytp-paid-content-overlay",M:{"aria-live":"assertive","aria-atomic":"true"}});this.H=new g.V({D:"div",X:["ytp-button","ytp-paid-content-overlay-text"]});g.C(this,this.H);this.H.ba(this.element);this.J=a;this.w=null;this.F=!1;this.B=new g.BM(this.H,250,!1,100);g.C(this,this.B);this.C=this.u=null;this.A={};this.G=0;this.L(a,"videodatachange",this.U);this.L(a,"presentingplayerstatechange",this.S)};
xN=function(a,b){var c=EB(b),d=FB(b);a.u?b.videoId&&b.videoId!=a.w&&(g.Dn(a.u),a.w=b.videoId,c=a.A[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.u=new g.I(a.O,d,a),g.C(a,a.u),g.ye(g.de("ytp-paid-content-overlay-text",a.element),c))};
yN=function(a,b){a.u&&g.W(b,8)&&a.F&&(a.F=!1,a.B.show(),a.G=(0,g.H)(),a.u.start())};
AN=function(a){g.V.call(this,{D:"div",I:"ytp-spinner",K:[oN(),{D:"div",I:"ytp-spinner-message",W:"If playback doesn't begin shortly, try restarting your device."}]});this.A=this.o["ytp-spinner-message"];this.w=a;this.u=new g.I(this.show,500,this);g.C(this,this.u);this.L(a,"presentingplayerstatechange",this.B);this.L(a,"onFrescaStateChange",this.C);this.L(a,"playbackstalledatstart",this.F);zN(this,g.zL(a))};
zN=function(a,b){if(g.W(b,128))var c=0;else!(c=g.W(b,16))&&(c=g.W(b,1))&&(c=JL(g.sL(a.w)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
CN=function(a,b){g.V.call(this,{D:"button",X:["ytp-airplay-button","ytp-button"],M:{title:"AirPlay"},W:"{{icon}}"});this.u=a;this.ia("click",this.A);this.L(a,"airplayactivechange",this.w);this.L(a,"airplayavailabilitychange",this.w);this.w();g.Ge(this,g.BN(b.Za(),this.element))};
g.EN=function(a){g.V.call(this,{D:"div",I:"ytp-gradient-bottom"});this.w=g.pe("CANVAS");this.w.width=1;this.u=this.w.getContext("2d");this.A=NaN;this.B=g.Ex(a.N());g.DN(this,g.wL(a).getPlayerSize().height)};
g.DN=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()+")"}}};
FN=function(a,b){this.u=a;this.o=b};
GN=function(a){return a.o-a.u};
HN=function(a,b){return a.u+b*GN(a)};
IN=function(a,b,c){return GN(a)?g.Od((b-a.u)/GN(a),0,1):null!=c?c:Infinity};
JN=function(){g.V.call(this,{D:"div",I:"ytp-chapter-hover-container",K:[{D:"div",I:"ytp-progress-bar-padding"},{D:"div",I:"ytp-progress-list",K:[{D:"div",X:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",I:"ytp-load-progress"},{D:"div",I:"ytp-hover-progress"},{D:"div",I:"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"]};
KN=function(a,b){return"PLAY_PROGRESS"===b?a.B:"LOAD_PROGRESS"===b?a.A:a.w};
LN=function(){this.u=this.position=this.A=this.o=this.B=this.w=this.width=NaN};
g.ON=function(a,b){g.HC.call(this,{D:"div",I:"ytp-progress-bar-container",M:{"aria-disabled":"true"},K:[{D:"div",X:["ytp-progress-bar",a.N().o?"ytp-mobile":""],M:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{D:"div",I:"ytp-chapters-container"},{D:"div",I:"ytp-marker-crenellation-list"},{D:"div",I:"ytp-clip-start-exclude"},{D:"div",I:"ytp-clip-end-exclude"},{D:"div",
I:"ytp-scrubber-container",K:[{D:"div",X:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{D:"div",I:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",I:"ytp-bound-time-left",W:"{{boundTimeLeft}}"},{D:"div",I:"ytp-bound-time-right",W:"{{boundTimeRight}}"},{D:"div",I:"ytp-clip-start",M:{title:"{{clipstarttitle}}"},W:"{{clipstarticon}}"},{D:"div",I:"ytp-clip-end",M:{title:"{{clipendtitle}}"},W:"{{clipendicon}}"}]});this.w=a;this.O=b.Za();this.nb=!1;this.C=this.Fa=0;this.da=1;this.Xb=this.S=0;this.F=
null;this.U=this.Ha=0;this.Eb=this.o["ytp-marker-crenellation-list"];this.Z={};this.Ba={};this.ea=Infinity;var c=b.Za();this.xa=this.o["ytp-clip-end"];g.Ge(this,g.BN(c,this.xa));this.Na=new g.Cr(this.xa,!0);g.C(this,this.Na);this.Na.subscribe("hoverstart",this.mA,this);this.Na.subscribe("hoverend",this.lA,this);this.L(this.xa,"click",this.Zo);this.xb=this.o["ytp-clip-end-exclude"];this.lc=this.o["ytp-clip-start-exclude"];this.ga=0;this.ya=this.o["ytp-clip-start"];g.Ge(this,g.BN(c,this.ya));this.Ra=
new g.Cr(this.ya,!0);g.C(this,this.Ra);this.Ra.subscribe("hoverstart",this.mA,this);this.Ra.subscribe("hoverend",this.lA,this);this.L(this.ya,"click",this.Zo);this.G=this.na=0;this.Wb=this.o["ytp-progress-bar"];this.Ja=this.o["ytp-chapters-container"];this.u=[];MN(this);this.sa=this.V=0;this.H=null;this.dc=this.o["ytp-scrubber-button"];this.pc=this.o["ytp-scrubber-container"];this.za=new g.Sd;this.Gb=new LN;this.A=new FN(0,0);this.J=null;this.B=this.fb=!1;this.Rb=null;this.w.N().fa("web_wn_macro_markers")&&
this.L(a,"resize",this.tu);this.L(a,"presentingplayerstatechange",this.YI);this.L(a,"videodatachange",this.Dz);this.L(a,"videoplayerreset",this.tF);this.L(a,"cuerangesadded",this.wC);this.L(a,"cuerangesremoved",this.jO);this.L(a,"cuerangemarkersupdated",this.wC);this.L(a,"onLoopRangeChange",this.vC);NN(this,a.getVideoData(),!0);this.vC(a.getLoopRange())};
MN=function(a){if(0===a.u.length){var b=new JN;a.u.push(b);g.C(a,b);b.ba(a.Ja,0)}for(;1<a.u.length;)a.u.pop().dispose();g.vh(a.u[0].u,"width","100%");a.u[0].startTime=0;a.u[0].title=""};
PN=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};
QN=function(a,b){var c=0,d=!1,e=a.u.length,f=1E3*a.A.o;0===f&&(f=1E3*a.w.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var k=a.C-(a.B?3:2)*a.V,l=0===a.sa?a.B?3:2:k*a.sa,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,g.vh(a.u[c].u,"margin-right",(a.B?3:2)+"px"));a.w.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,g.vh(a.u[c].u,"width",n+"px");else{a.u[c].width=0;g.vh(a.u[c].u,"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);g.vh(p.u[t].u,"margin-right","0px");b&&(a.V--,m/f>a.sa&&(a.sa=m/f),d=!0)}c++}}return d};
g.SN=function(a){RN(a);var b=a.w.getCurrentTime();(b<a.ga||b>a.ea)&&a.Zo()};
RN=function(a){if(a.C){var b=a.w.getProgressState(),c=new FN(b.seekableStart,b.seekableEnd),d=IN(c,b.loaded,0);b=IN(c,b.current,0);var e=a.A.u!=c.u||a.A.o!=c.o;a.A=c;TN(a,b,d);e&&g.UN(a);VN(a)}};
NN=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.isValid();a.fb=d&&b.allowLiveDvr;WN(a,a.w.Nc());c&&(d?(c=b.clipEnd,a.ga=b.clipStart,a.ea=c,XN(a),TN(a,a.G,a.na)):a.Zo(),g.YN(a.O));if(a.w.N().fa("web_wn_macro_markers")&&b)if((c=b.yg)&&0<PN(c).length){b=0;c=g.q(PN(c));for(d=c.next();!d.done;d=c.next()){d=d.value;if(d.chapterRenderer){var e=d.chapterRenderer;d={startTime:NaN,title:null};var f=e.title;f&&f.simpleText&&(d.title=f.simpleText);e=e.timeRangeStartMillis;null!=e&&(d.startTime=e);0===b&&0!==
d.startTime&&(a.u[b].startTime=0,a.u[b].title="",b++);a.u.length<=b&&(e=new JN,a.u.push(e),g.C(a,e),e.ba(a.Ja,a.Ja.children.length));a.u[b].startTime=d.startTime;a.u[b].title=d.title?d.title:""}b++}for(;b<a.u.length;)a.u.pop().dispose();a.tu()}else MN(a);RN(a)};
ZN=function(a,b,c,d){b=g.Od(b,0,a.B?60:40);a.S=b;var e=a.da;a.da=b/(a.B?60:40)*(Math.max(GN(a.A)/a.C,1)-1)+1;b=a.C*a.da;a.U=g.Od(d*b-c,0,b-a.C);e!=a.da&&g.UN(a)};
g.UN=function(a){var b=$N(a),c=-b.w/b.o,d=(-b.w+b.width)/b.o,e=Yaa(a.Eb),f=0;if(a.S>.2*(a.B?60:40))for(var k=GN(a.A)/60*d,l=Math.ceil(GN(a.A)/60*c);l<k;l++){var m=e[f];m||(m=g.pe("DIV"),a.Eb.appendChild(m));f++;0==l%60?Jn(m,"ytp-60m-progress"):0==l%30?Jn(m,"ytp-30m-progress"):0==l%15?Jn(m,"ytp-15m-progress"):Jn(m,"ytp-1m-progress");m.style.left=(60*l/GN(a.A)-c)*b.o+"px"}b=a.fb?a.A.o:0;a.update({boundTimeLeft:g.xM(HN(a.A,c)-b),boundTimeRight:g.xM(HN(a.A,d)-b)});for(c=e.length-1;c>=f;c--)g.ue(e[c]);
a.element.style.height=a.S+(a.B?8:5)+"px";a.R("height-change",a.S);a.dc.style.height=a.S+(a.B?20:13)+"px";for(var n in a.Z)aO(a,n);XN(a);TN(a,a.G,a.na)};
$N=function(a){var b=a.za.x,c=a.C*a.da;b=g.Od(b,0,a.C);a.Gb.update(b,a.C,-a.U,-(c-a.U-a.C));return a.Gb};
TN=function(a,b,c){a.G=b;a.na=c;var d=$N(a),e=a.A.o,f=HN(a.A,a.G),k=g.gN("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.xM(f,!0),DURATION:g.xM(e,!0)});if(a.w.N().fa("web_wn_macro_markers")){var l=bO(a,1E3*f);k=(l=a.u[l].title)?l+" "+k:k}a.update({ariamin:Math.floor(a.A.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:k});e=a.ga;f=a.ea;a.J&&2!=a.w.getPresentingPlayerType()&&(e=a.J.startTimeMs/1E3,f=a.J.endTimeMs/1E3);e=IN(a.A,e,0);k=IN(a.A,f,1);f=g.Od(b,e,k);c=g.Od(c,e,k);k=b*d.o+d.w;if(a.w.N().fa("web_wn_macro_markers")){k=
b*a.A.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.B?3:2)*a.V)+(a.B?3:2)*(0>l?0:l)+d.w}g.vh(a.pc,"transform","translateX("+k+"px)");a.w.N().fa("web_wn_macro_markers")?(cO(a,d,e,f,"PLAY_PROGRESS"),cO(a,d,e,c,"LOAD_PROGRESS")):(dO(a,a.u[0].B,d,e,f),dO(a,a.u[0].A,d,e,c))};
cO=function(a,b,c,d,e){var f=a.u.length;b=b.o-a.V*(a.B?3:2);var k=c*b;b*=d;d=eO(a,k);c=eO(a,b);k=Math.max(k-fO(a,d),0);for(var l=d;l<f;l++)KN(a.u[l],e).style.left=d===l?k+"px":"0";for(f=d;f<c;f++)l=a.u[f].width,gO(a,KN(a.u[f],e),f===d?l-k:l,l);f=a.u[c].width;b=g.Od(b-fO(a,c),0,f);d===c&&(b-=k);gO(a,KN(a.u[c],e),b,f);f=a.u.length;for(c+=1;c<f;c++)gO(a,KN(a.u[c],e),0,a.u[c].width);for(c=0;c<d;c++)gO(a,KN(a.u[c],e),0,a.u[c].width)};
fO=function(a,b){if(b>=a.u.length)return a.C;for(var c=0,d=0;d<b;)c+=a.u[d].width,d++;return c};
gO=function(a,b,c,d,e){e||a.w.N().o?b.style.width=c+"px":g.vh(b,"transform","scalex("+(d?c/d:0)+")")};
eO=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;if(b>e.width)b-=e.width;else break;c++}return c===a.u.length?c-1:c};
bO=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 c-1};
dO=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.o+c.w,0)+"px";gO(a,b,g.Od((e-d)*c.o+c.w,0,c.width),c.width,void 0===f?!1:f)};
XN=function(a){var b=!!a.J&&2!=a.w.getPresentingPlayerType(),c=a.ga,d=a.ea,e=!0,f=!0;b&&a.J?(c=a.J.startTimeMs/1E3,d=a.J.endTimeMs/1E3):(e=c>a.A.u,f=0<a.A.o&&d<a.A.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?IN(a.A,c,0):0;d=f?IN(a.A,d,1):1;a.ya.style.left=Math.round(1E3*b)/10+"%";a.xa.style.left=Math.round(1E3*d)/10+"%";a.lc.style.width=Math.round(1E3*b)/10+"%";a.xb.style.left=Math.round(1E3*d)/10+"%";a.xb.style.width=
Math.round(1E3*(1-d))/10+"%"};
VN=function(a){var b=$N(a);if(a.w.N().fa("web_wn_macro_markers")){cO(a,b,a.G,Math.max(b.u,a.G),"HOVER_PROGRESS");var c=b.o-(a.B?3:2)*a.V,d=eO(a,a.G*c);c=eO(a,b.u*c);for(var e=d;e<=c;)g.K(a.u[e].w,"ytp-hover-progress-light",b.u>a.G),e++;g.K(a.dc,"ytp-scrubber-button-hover",d==c&&1<a.u.length)}else dO(a,a.u[0].w,b,a.G,b.u),g.K(a.u[0].w,"ytp-hover-progress-light",b.u>a.G)};
aO=function(a,b){var c=a.Z[b],d=a.Ba[b],e=$N(a),f=IN(a.A,c.start/1E3,0),k=aia(c,a.B)/e.width;var l=IN(a.A,c.end/1E3,1);k!=Number.POSITIVE_INFINITY&&(f=g.Od(f,0,l-k));l=Math.min(l,f+k);c.color&&(d.style.background=c.color);dO(a,d,e,f,l,!0)};
hO=function(a,b){var c=b.getId();a.Z[c]==b&&(g.ue(a.Ba[c]),delete a.Z[c],delete a.Ba[c])};
WN=function(a,b){b?a.H||(a.element.removeAttribute("aria-disabled"),a.H=new g.Cr(a.Wb,!0),a.H.subscribe("hovermove",a.oM,a),a.H.subscribe("hoverend",a.nM,a),a.H.subscribe("dragstart",a.mM,a),a.H.subscribe("dragmove",a.qM,a),a.H.subscribe("dragend",a.pM,a),a.Rb=a.ia("keydown",a.ZI)):a.H&&(a.element.setAttribute("aria-disabled",!0),a.Xa(a.Rb),a.H.cancel(),a.H.dispose(),a.H=null)};
g.iO=function(a){var b=2*a.C*g.Sx();return 1E3*GN(a.A)/a.w.getPlaybackRate()/b};
jO=function(a,b,c){g.V.call(this,{D:"div",X:["ytp-chapter-container"],K:[{D:"div",I:"ytp-chapter-title",K:[{D:"span",M:{"aria-hidden":"true"},I:"ytp-chapter-title-prefix",W:"\u2022"},{D:"span",W:"{{title}}"}]}]});this.A=a;this.w=c;this.u=""};
kO=function(a,b,c,d,e){var f=b.Ho/b.rows,k=Math.min(c/(b.Io/b.columns),d/f),l=b.Io*k,m=b.Ho*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.lO=function(a){g.V.call(this,{D:"div",I:"ytp-storyboard-framepreview",K:[{D:"div",I:"ytp-storyboard-framepreview-img"}]});this.F=this.o["ytp-storyboard-framepreview-img"];this.u=a;this.Id=null;this.B=NaN;this.w=new g.O(this);g.C(this,this.w);this.A=new g.BM(this,100);g.C(this,this.A);this.L(this.u,"presentingplayerstatechange",this.G)};
mO=function(a,b){var c=!!a.Id;a.Id=b;a.Id?(c||(a.w.L(a.u,"videodatachange",function(){mO(a,a.u.te())}),a.w.L(a.u,"progresssync",a.H),a.w.L(a.u,"appresize",a.C)),a.B=NaN,nO(a),a.A.show(200)):(c&&g.yr(a.w),a.A.hide(),a.A.stop())};
nO=function(a){var b=a.u.getCurrentTime(),c=g.wL(a.u).getPlayerSize(),d=Uz(a.Id,c.width);b=Zz(a.Id,d,b);b!=a.B&&(a.B=b,Xz(a.Id,b,c.width),b=Vz(a.Id,b,c.width),kO(a.F,b,c.width,c.height))};
oO=function(a,b){g.V.call(this,{D:"button",X:["ytp-fullerscreen-edu-button","ytp-button"],K:[{D:"div",X:["ytp-fullerscreen-edu-text"],W:"Scroll for details"},{D:"div",X:["ytp-fullerscreen-edu-chevron"],K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-chevron-down"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});g.TL(a,this.element,this,61214);this.u=a;this.F=b;this.B=new g.BM(this,250,void 0,100);
g.C(this,this.B);this.C=this.A=!1;this.L(a,"fullscreentoggled",this.w);this.L(a,"presentingplayerstatechange",this.w);this.ia("click",this.G);this.w()};
pO=function(a,b,c,d){d=void 0===d?!1:d;g.HC.call(this,b);this.V=a;this.da=d;this.J=null;this.H=new g.O(this);g.C(this,this.H);this.U=new g.BM(this,c,!0,void 0,void 0,(0,g.x)(this.IE,this));g.C(this,this.U);this.u=null};
qO=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.yr(a.H);a.J=null};
rO=function(a){return a.Ea()&&4!==a.U.state};
g.tO=function(a,b){g.V.call(this,{D:"button",X:["ytp-fullscreen-button","ytp-button"],M:{title:"{{title}}"},W:"{{icon}}"});this.w=a;this.C=b;this.u=null;this.A=g.BN(b.Za(),this.element);this.B=new g.I(this.cE,2E3,this);g.C(this,this.B);this.L(a,"fullscreentoggled",this.MB);this.L(a,"presentingplayerstatechange",this.Bz);this.ia("click",this.QI);if(tr()){var c=g.wL(this.w);this.L(c,Yea(),this.tA);this.L(c,wr(document),this.RI)}a.N().ca||sO(this);this.Bz();this.MB(a.isFullscreen())};
sO=function(a){if(!a.u){var b=(null!=sp(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);a.u=new pO(a.w,{D:"div",X:["ytp-popup","ytp-generic-popup"],M:{role:"alert",tabindex:"0"},K:[b[0],{D:"a",M:{href:"https://support.google.com/youtube/answer/6276924",target:a.w.N().A},W:b[2]},
b[4]]},100,!0);a.u.hide();g.C(a,a.u);a.u.subscribe("show",(0,g.x)(a.C.qk,a.C,a.u));g.RL(a.w,a.u.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);(0,a.A)();a.A=null}};
uO=function(a,b){g.V.call(this,{D:"button",X:["ytp-miniplayer-button","ytp-button"],M:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:[WM()]});this.u=a;this.w=!1;this.ia("click",this.B);this.L(a,"fullscreentoggled",this.A);this.ha("title",g.qN(a,"Miniplayer","i"));g.Ge(this,g.BN(b.Za(),this.element));g.TL(a,this.element,this,62946);this.A()};
vO=function(a){var b={D:"div",I:"ytp-multicam-menu",M:{role:"dialog"},K:[{D:"div",I:"ytp-multicam-menu-header",K:[{D:"div",I:"ytp-multicam-menu-title",K:["Switch camera",{D:"button",X:["ytp-multicam-menu-close","ytp-button"],M:{"aria-label":"Close"},K:[g.KM()]}]}]},{D:"div",I:"ytp-multicam-menu-items"}]};pO.call(this,a,b,250);this.B=new g.O(this);g.C(this,this.B);this.L(this.o["ytp-multicam-menu-close"],"click",this.kb);this.w=a;this.Ga=this.o["ytp-multicam-menu-items"];this.A=[];this.hide()};
wO=function(a,b,c){g.V.call(this,{D:"button",X:["ytp-multicam-button","ytp-button"],M:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-switch-camera"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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.Za();this.B=new g.I(this.G,400,this);g.C(this,this.B);this.ia("click",(0,g.x)(c.Ze,c,this.element,!1));this.L(a,"presentingplayerstatechange",g.Sa(this.w,!1));this.L(a,"videodatachange",this.F);this.w(!0);g.Ge(this,g.BN(this.u,this.element))};
xO=function(){g.A.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.xn(this.o,null,this);g.C(this,this.delay)};
yO=function(a,b){if("path"===b.D)return b.M.d;if(b.K)for(var c=0;c<b.K.length;c++){var d=b.K[c];if(d&&"string"!==typeof d&&(d=yO(a,d)))return d}};
CO=function(a,b,c){c=yO(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=BC();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=zO(e),m=zO(c);AO(a,function(n){d.setAttribute("d",BO(l,m,n))},200)};
AO=function(a,b,c){a.u=b;a.startTime=(0,g.N)();a.duration=c;a.o()};
zO=function(a){var b=[];a=a.match(xka);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};
BO=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};
EO=function(a,b){var c=a.N();g.V.call(this,{D:"button",X:["ytp-mute-button","ytp-button"],M:c.J?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},W:"{{icon}}"});this.ha("icon",dN());this.u=a;this.ca=b.Za();this.G=this.J=this.H=this.S=NaN;this.F=[];this.C=[];this.B=!1;this.u.N().B||(this.w=new g.CC({D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"defs",K:[{D:"clipPath",M:{id:"ytp-svg-volume-animation-mask"},K:[{D:"path",M:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},
{D:"path",M:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",I:"ytp-svg-volume-animation-mover",M:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",M:{id:"ytp-svg-volume-animation-slash-mask"},K:[{D:"path",I:"ytp-svg-volume-animation-mover",M:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Ka:!0,X:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],M:{"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",Ka:!0,X:["ytp-svg-fill","ytp-svg-volume-animation-hider"],M:{"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.C(this,this.w),this.U=this.w.o["ytp-svg-volume-animation-speaker"],this.ga=this.U.getAttribute("d"),this.F=g.ce("ytp-svg-volume-animation-mover",this.w.element),this.C=g.ce("ytp-svg-volume-animation-hider",this.w.element));this.A=null;this.V=new xO;g.C(this,this.V);this.O=new xO;g.C(this,this.O);
this.ia("click",this.da);this.L(a,"appresize",this.oc);this.L(a,"onVolumeChange",this.ea);var d=null;c.J?g.Ge(this,g.BN(b.Za(),this.element)):(d="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),d=new pO(a,{D:"span",X:["ytp-popup","ytp-generic-popup"],M:{tabindex:"0"},K:[d[0],{D:"a",M:{href:"https://support.google.com/youtube/?p=noaudio",target:c.A},W:d[2]},d[4]]},100,!0),g.C(this,d),d.hide(),d.subscribe("show",(0,g.x)(b.qk,b,d)),g.RL(a,
d.element,4));this.Z=d;g.TL(a,this.element,this,28662);this.oc(g.wL(a).getPlayerSize());DO(this,a.getVolume(),a.isMuted())};
DO=function(a,b,c){var d=c?0:b/100,e=a.u.N();if(e.B)d=0==d?dN():0<d&&.5>d?cN():bN(),d!=a.A&&(a.ha("icon",d),a.A=d);else{b=0==d?1:50<b?1:0;if(a.H!=b){var f=a.S;isNaN(f)?FO(a,b):AO(a.V,(0,g.x)(function(l){FO(this,f+(this.H-f)*l)},a),250);
a.H=b}d=0==d?1:0;if(a.G!=d){var k=a.J;isNaN(k)?GO(a,d):AO(a.O,(0,g.x)(function(l){GO(this,k+(this.G-k)*l)},a),250);
a.G=d}}e.J&&(e=g.qN(a.u,"Mute","m"),d=g.qN(a.u,"Unmute","m"),c=c?d:e,a.ha("title",c),a.ha("label",c),HO(a.ca))};
FO=function(a,b){a.S=b;var c=a.ga;b&&(c+=BO(yka,zka,b));a.U.setAttribute("d",c)};
GO=function(a,b){a.J=b;for(var c=20*b,d=0;d<a.F.length;d++)a.F[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=dN():e=a.w;for(c=0;c<a.C.length;c++)a.C[c].style.display=0==b?"none":"";e!=a.A&&(a.ha("icon",e),a.A=e)};
IO=function(a,b){g.V.call(this,{D:"button",X:["ytp-pip-button","ytp-button"],M:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},K:[WM()]});this.u=a;this.ha("title","Picture in Picture");this.ia("click",this.w);g.Ge(this,g.BN(b.Za(),this.element))};
g.KO=function(a,b){g.V.call(this,{D:"button",X:["ytp-play-button","ytp-button"],M:{title:"{{title}}","aria-label":"{{label}}"},W:"{{icon}}"});this.u=a;this.w=null;this.C=b.Za();this.A=new xO;g.C(this,this.A);this.L(a,"fullscreentoggled",this.B);this.L(a,"presentingplayerstatechange",this.F);this.L(a,"videodatachange",this.B);JO(this,g.zL(a));this.ia("click",this.G,this);g.Ge(this,g.BN(b.Za(),this.element))};
LO=function(a){switch(a){case 1:return XM();case 2:return VM();case 3:return g.ZM();case 4:return aN();default:return null}};
JO=function(a,b){var c=g.KB(a.u.getVideoData()),d=!1;if(g.yD(b))var e=c?4:2;else g.W(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.w!=e){c=null;switch(e){case 2:c=g.qN(a.u,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.qN(a.u,"Play","k");break;case 4:c="Stop live playback"}3==e?a.update({title:c,label:null,icon:LO(e)}):(a.update({title:c,label:c}),(c=LO(e))&&a.w&&3!=a.w&&!a.u.N().B?CO(a.A,a.element,c):a.ha("icon",c));HO(a.C);a.w=e}};
g.MO=function(a,b){return aE(b)?(b.fetch=0,new g.$D(a,b)):new g.eB(a,b)};
g.OO=function(a,b,c){if(c){var d="ytp-next-button";var e=TM()}else d="ytp-prev-button",e=YM();g.V.call(this,{D:"a",X:[d,"ytp-button"],M:{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}}"},K:[e]});this.u=a;this.J=b.Za();this.A=c;this.w=this.T=null;this.H=!1;this.F=this.G=this.B=null;this.C=!1;this.L(a,"fullscreentoggled",this.yj);this.L(a,
"videodatachange",this.yj);this.L(a,"onPlaylistUpdate",this.yj);this.A||this.L(a,"appresize",this.oc);this.L(a,"mdxpreviousnextchange",function(){NO(this);this.oc()});
this.yj()};
PO=function(a){a.w&&a.w.unsubscribe("shuffle",a.yj,a)};
QO=function(a){return!!a.w&&!a.A&&!!a.T&&!a.T.ua&&3<=a.u.getCurrentTime()&&2!=a.u.getPresentingPlayerType()};
RO=function(a){var b=g.AL(g.sL(a.u));return b?a.A?b.hasNext():b.By():!1};
NO=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.u.N(),d=!0;g.Q(c.experiments,"player_allow_autonav_after_playlist")&&(d=a.w&&a.w.hasNext());d=g.BL(a.u)&&(!a.A||d);var e=a.A&&g.SL(a.u),f=RO(a),k=a.A&&5==a.u.getPresentingPlayerType(),l=g.qN(a.u,"Next","SHIFT+n"),m=g.qN(a.u,"Previous","SHIFT+p");if(k)b.title="Start video";else if(a.C)b.title="Replay";else if(d){var n=null;a.w&&(n=a.w.wa(a.A?bE(a.w):cE(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.xM(n.lengthSeconds):null;b.preview=n.Ac("mqdefault.jpg")}b.title=a.A?l:m}else e&&(a.T&&a.T.suggestions&&a.T.suggestions.length&&(c=g.MO(c,a.T.suggestions[0]),b.url=c.Th(),b.text=c.title,b.duration=c instanceof g.eB?g.xM(c.lengthSeconds):null,b.preview=c.Ac("mqdefault.jpg")),b.title=l);b.disabled=!e&&!d&&!f&&!k;a.update(b);a.H=!!b.url;e||d||a.C||f||k?a.B||(a.B=g.BN(a.J,a.element),a.G=a.ia("click",a.WI,a)):a.B&&(a.B(),a.B=null,a.Xa(a.G),
a.G=null);HO(a.J)};
g.SO=function(a,b){var c=g.KC({role:"menuitemcheckbox","aria-checked":"false"});g.JC.call(this,c,b,a,{D:"div",I:"ytp-menuitem-toggle-checkbox"});this.w=!1;this.ia("click",this.J)};
TO=function(a,b){g.SO.call(this,"Annotations",5);this.B=b;this.A=a;this.u=!1;this.L(a,"videodatachange",this.C);this.L(a,"onApiChange",this.C);this.subscribe("select",this.F,this);this.C()};
UO=function(a){a=g.FL(g.sL(a.A));return!!a&&a.loaded};
VO=function(a,b,c,d,e){var f={D:"div",I:"ytp-panel"};if(c){var k="ytp-panel-title";var l={D:"div",I:"ytp-panel-header",K:[{D:"button",X:["ytp-button",k],K:[c]}]};if(e){var m="ytp-panel-options";l.K.unshift({D:"button",X:["ytp-button",m],K:[d]})}f.K=[l]}g.HC.call(this,f);this.V=b;b.ba(this.element);this.ea=!1;c&&(this.L(this.o[k],"click",this.sa),this.ea=!0,e&&this.L(this.o[m],"click",e));b.subscribe("size-change",this.ga,this);this.L(a,"fullscreentoggled",this.ga)};
g.WO=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.HC({D:"div",I:"ytp-panel-menu",M:f});VO.call(this,a,b,c,d,e);this.F=b;g.C(this,this.F);this.Ga=[]};
g.XO=function(a,b,c){if(void 0===c?0:c)a.Ga.push(b),a.F.element.appendChild(b.element);else{c=g.rb(a.Ga,b,Aka);if(0<=c)return;c=~c;g.ob(a.Ga,c,0,b);g.te(a.F.element,b.element,c)}b.subscribe("size-change",a.Z,a);a.F.R("size-change")};
g.YO=function(a,b){b.unsubscribe("size-change",a.Z,a);a.la()||(g.gb(a.Ga,b),a.F.element.removeChild(b.element),a.F.R("size-change"))};
g.ZO=function(a){for(var b=g.q(a.Ga),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Z,a);a.Ga=[];g.se(a.F.element);a.F.R("size-change")};
Aka=function(a,b){return b.priority-a.priority};
g.$O=function(a,b,c,d,e,f){var k=g.KC({"aria-haspopup":"true"});g.JC.call(this,k,b,a);this.w=d;this.H=!1;this.F=null;this.A={};this.G=new g.WO(c,void 0,a,e,f);g.C(this,this.G);this.ia("keydown",this.aJ);this.ia("click",this.open)};
aP=function(a){if(a.F){var b=a.A[a.F];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.F=null}};
g.bP=function(a,b){g.ZO(a.G);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.A[f],l=f==a.F;l&&(d=!0);k&&k.priority==-e?(l=a,g.IC(l.A[f],l.Te(f,!0)),delete a.A[f]):k=a.jq(f,-e,l);c[f]=k;g.XO(a.G,k,!0)}d||(a.F=null);for(var m in a.A)a.A[m].dispose();a.A=c};
cP=function(a,b){g.$O.call(this,"Audio track",2,a,b);this.u=a;this.J=new g.V({D:"div",K:[{D:"span",W:"Audio track"},{D:"span",I:"ytp-menuitem-label-count",W:"{{content}}"}]});g.IC(this,this.J);this.O={};this.L(a,"videodatachange",this.C);this.L(a,"onPlaybackAudioChange",this.C);this.C()};
dP=function(a,b){g.SO.call(this,"Autoplay",6);this.F=b;this.u=a;this.B=!1;this.A=[];this.L(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.H,this);this.C()};
g.eP=function(a,b){pO.call(this,a,{D:"div",X:["ytp-popup",b||null]},100,!0);this.A=[];this.size=new g.Ud(0,0);this.C=this.F=null;this.O=this.S=0;this.ia("keydown",this.UI)};
gP=function(a){g.Oh(a.element,a.S||"100%",a.O||"100%");var b=fP(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.V.element.style.height="";var c=g.Ph(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.ea&&(d=g.Ph(b.o["ytp-panel-header"]).height);b.V.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.iP=function(a,b){var c=a.A[a.A.length-1];a.A.push(b);hP(a,c,b)};
g.jP=function(a){var b=a.A.pop(),c=a.A[0];a.A=[c];hP(a,b,c,!0)};
hP=function(a,b,c,d){kP(a);fP(a);g.Kn(c.element,"ytp-panel-animate-back")||g.Kn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Rj,a),b.unsubscribe("back",a.Nd,a));c.subscribe("size-change",a.Rj,a);c.subscribe("back",a.Nd,a);if(a.Ea()){g.J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;gP(a);g.Oh(a.element,e);a.F=new g.I(g.Sa(a.MO,b,c,d),20,a);a.F.start()}else c.ba(a.element),
b&&g.DC(b)};
fP=function(a){return a.A[a.A.length-1]};
kP=function(a){a.F&&g.Cn(a.F);a.C&&g.Cn(a.C)};
lP=function(a,b){g.$O.call(this,"Quality",1,a,b);g.J(this.G.element,"ytp-quality-menu");this.u=a;this.C={};this.B="unknown";this.L(a,"videodatachange",this.zl);this.L(a,"videoplayerreset",this.zl);this.L(a,"onPlaybackQualityChange",this.Ez);this.zl()};
mP=function(a,b,c){a=a.C[b];var d=g.rv[b];c={D:"span",X:c,K:[]};c.K.push(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.K.push(" "),c.K.push({D:"sup",I:"ytp-swatch-color",W:e}));return c};
nP=function(a,b,c){g.V.call(this,{D:"button",X:["ytp-button","ytp-settings-button"],M:{"aria-haspopup":"true","aria-owns":BC(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},K:[g.$M()]});this.A=c;this.u=a;this.B=!0;this.ia("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.oc);g.Ge(this,g.BN(b.Za(),this.element));this.w();this.oc(g.wL(a).getPlayerSize())};
oP=function(a,b){a.B=!!b;a.oc(g.wL(a.u).getPlayerSize())};
pP=function(a,b,c,d,e,f,k){g.V.call(this,{D:"div",I:"ytp-slider-section",M:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{D:"div",I:"ytp-slider",K:[{D:"div",I:"ytp-slider-handle"}]}]});this.minimumValue=c;this.maximumValue=d;this.C=this.maximumValue-this.minimumValue;this.J=e;this.O=f;this.S=this.o["ytp-slider-section"];this.w=this.o["ytp-slider"];this.U=this.o["ytp-slider-handle"];this.H=
a;this.F=b;this.u=k?k:c;this.G=new g.Cr(this.w,!0);g.C(this,this.G);this.G.subscribe("dragmove",this.bN,this);this.L(this.element,"keydown",this.eN);this.L(this.element,"wheel",this.ML);this.wi(this.u);this.ha("minvalue",this.minimumValue);this.ha("maxvalue",this.maximumValue)};
rP=function(a){var b=a.getAvailablePlaybackRates(),c=a.getPlaybackRate();pP.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.pe("P");g.J(this.A,"ytp-speedslider-text");a=this.A;b=this.w;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.V=taa(this.Z,this);qP(this);this.L(this.B,"onPlaybackRateChange",this.ca)};
qP=function(a){a.A.textContent=sP(a,a.u)+"x"};
sP=function(a,b){var c=parseFloat(g.Od(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))};
tP=function(a){g.HC.call(this,{D:"div",I:"ytp-speedslider-component"});this.u=new rP(a);this.element.appendChild(this.u.element)};
uP=function(a){VO.call(this,a,new tP(a),"Custom")};
vP=function(a,b){g.$O.call(this,"Playback speed",4,a,b,"Custom",function(){return g.iP(b,new uP(a))});
this.u=a;this.O=null;this.J=this.u.getAvailablePlaybackRates();this.C=this.B=null;this.L(a,"presentingplayerstatechange",this.Fz);this.Fz()};
xP=function(a,b){var c=wP(b);a.A[c]?a.Be(c):b==a.C&&a.B&&(a.Be(a.B),a.tb(b.toString()))};
zP=function(a){g.bP(a,a.J.map(wP));a.B=null;a.C=null;var b=a.u.getPlaybackRate();a.J.includes(b)||(yP(a,b),g.$O.prototype.Yc.call(a,a.B))};
yP=function(a,b){a.C=b;a.B=g.gN("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.J.map(wP);c.unshift(a.B);g.bP(a,c)};
wP=function(a){return a.toString()};
AP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
BP=function(a,b,c,d){var e=new g.WO(b,void 0,"Video Override");g.$O.call(this,d.text||"",a,b,c,"Video Override",function(){return g.iP(c,e)});
g.J(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();a=d.options;this.O=g.xb(a,this.Jz,this);this.C=e;g.C(this,this.C);b=new g.JC({D:"div",I:"ytp-menuitemtitle",W:"Allow for a different caption style if specified by the video."},0);g.C(this,b);g.XO(this.C,b,!0);this.B=new g.JC({D:"div",I:"ytp-menuitem",M:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",I:"ytp-menuitem-label",W:"On"}]},-1);g.C(this,this.B);g.XO(this.C,this.B,!0);this.L(this.B.element,"click",g.Sa(this.Kz,!0));
this.u=new g.JC({D:"div",I:"ytp-menuitem",M:{role:"menuitemradio",tabindex:"0"},K:[{D:"div",I:"ytp-menuitem-label",W:"Off"}]},-2);g.C(this,this.u);g.XO(this.C,this.u,!0);this.L(this.u.element,"click",g.Sa(this.Kz,!1));g.bP(this,(0,g.Fc)(a,this.Jz))};
DP=function(a,b){g.WO.call(this,a,void 0,"Options");this.u={};for(var c=0;c<g.CP.length;c++){var d=g.CP[c],e=new BP(-c,a,b,d);g.C(this,e);e.subscribe("settingChange",this.w,this);this.u[d.option.toString()]=e;g.XO(this,e,!0)}c=new g.JC(g.KC(),-g.CP.length,"Reset");g.C(this,c);c.ia("click",(0,g.x)(this.w,this,"reset",!0));g.XO(this,c,!0)};
EP=function(a,b){for(var c in b){var d=a.u[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.A[e]&&(d.Be(e),d.B.element.setAttribute("aria-checked",!f),d.u.element.setAttribute("aria-checked",f))}}};
FP=function(a,b){g.$O.call(this,"Auto-translate",0,a,b);this.u={}};
Bka=function(a,b){a.u=g.xb(b,a.B,a);g.bP(a,(0,g.Fc)(b,a.B))};
GP=function(a,b){var c=new DP(a,b);g.$O.call(this,"Subtitles/CC",3,a,b,"Options",function(){return g.iP(b,c)});
this.u=a;this.C={};this.O=new g.I(g.Sa(this.Iz,!1),3E3,this);g.C(this,this.O);this.S=new g.V({D:"div",K:[{D:"span",W:"Subtitles/CC"},{D:"span",I:"ytp-menuitem-label-count",W:"{{content}}"}]});g.C(this,this.S);g.IC(this,this.S);this.B=new FP(a,b);g.C(this,this.B);this.B.subscribe("select",this.mJ,this);this.J=c;g.C(this,this.J);this.J.subscribe("settingChange",this.lJ,this);b.subscribe("show",this.XM,this);this.L(a,"videodatachange",this.Al);this.L(a,"onApiChange",this.Al);this.L(a,"onCaptionsTrackListChanged",
this.Al);this.L(a,"captionschanged",this.Al);this.Al()};
HP=function(a){g.eP.call(this,a,"ytp-settings-menu");this.w=a;this.B=new g.WO(a);g.C(this,this.B);this.G=null;this.Z=!1;this.hide();g.iP(this,this.B)};
IP=function(a){if(!a.Z){a.Z=!0;var b=new lP(a.w,a);g.C(a,b);b=new GP(a.w,a);g.C(a,b);b=new TO(a.w,a);g.C(a,b);a.w.N().ya&&(b=new vP(a.w,a),g.C(a,b));a.w.N().Wa&&(b=new dP(a.w,a),g.C(a,b));b=new cP(a.w,a);g.C(a,b);oP(a.G,a.B.Ga.length)}};
g.JP=function(a,b){IP(a);g.XO(a.B,b);oP(a.G,a.B.Ga.length)};
g.KP=function(a,b){a.Ea()&&1>=a.B.Ga.length&&a.hide();g.YO(a.B,b);oP(a.G,a.B.Ga.length)};
Cka=function(a,b){a.G=b;a.element.id=b.element.getAttribute("aria-owns")};
LP=function(a,b,c){g.V.call(this,{D:"button",I:"ytp-button",M:{title:"Play on TV","aria-haspopup":"true"},W:"{{icon}}"});this.u=a;this.B=c;this.A=null;this.L(a,"onMdxReceiversChange",this.w);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"appresize",this.w);this.w();this.ia("click",this.C,this);g.Ge(this,g.BN(b.Za(),this.element))};
MP=function(a,b){g.V.call(this,{D:"button",X:["ytp-size-button","ytp-button"],M:{title:"{{title}}"},W:"{{icon}}"});this.u=a;this.B=b.Za();this.A=null;this.C=new xO;g.C(this,this.C);this.L(a,"sizestylechange",this.w);this.L(a,"fullscreentoggled",this.w);this.L(a,"presentingplayerstatechange",this.w);this.w();this.ia("click",this.F);g.Ge(this,g.BN(this.B,this.element))};
NP=function(a,b){g.V.call(this,{D:"button",X:["ytp-subtitles-button","ytp-button"],M:{"aria-pressed":"{{pressed}}",title:g.qN(a,"Subtitles/closed captions","c")},K:[LM()]});this.w=a;this.L(a,"videodatachange",this.u);this.L(a,"appresize",this.u);this.L(a,"onApiChange",this.u);this.L(a,"onCaptionsTrackListChanged",this.u);this.L(a,"captionschanged",this.u);this.u();this.ia("click",this.A);g.Ge(this,g.BN(b.Za(),this.element))};
g.PP=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{D:"div",X:["ytp-time-display","notranslate"],K:[{D:"span",I:"ytp-time-current",W:"{{currenttime}}"},{D:"span",I:"ytp-time-separator",W:" / "},{D:"span",I:"ytp-time-duration",W:"{{duration}}"}]});this.A=new g.V({D:"button",X:["ytp-live-badge","ytp-button"],M:{disabled:"true"},W:"{{content}}"});this.A.tb("Live");g.C(this,this.A);this.A.ba(this.element);this.u=a;this.O=c;this.S=b.Za();this.B=null;this.C=!1;this.H=null;this.J=!1;this.G=this.F=null;
this.ia("click",this.U);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"appresize",this.w);this.L(a,"videodatachange",this.V);(a=a.getVideoData())&&OP(this,a);this.w()};
OP=function(a,b){a.C=b.ua&&!b.cg;a.J=b.isPremiere;g.K(a.element,"ytp-live",a.C)};
RP=function(a,b,c){g.V.call(this,{D:"div",I:"ytp-volume-panel",M:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{D:"div",I:"ytp-volume-slider",K:[{D:"div",I:"ytp-volume-slider-handle"}]}]});this.u=a;this.F=b;this.S=c;this.J=!1;this.G=b.jc();this.V=this.B=0;this.U=this.o["ytp-volume-slider"];this.Z=this.o["ytp-volume-slider-handle"];this.H=new g.Cr(this.U,!0);g.C(this,this.H);this.H.subscribe("dragstart",this.dN,
this);this.H.subscribe("dragmove",this.cN,this);this.H.subscribe("dragend",this.aN,this);this.O=null;this.w=this.A=this.C=!1;this.L(a,"onVolumeChange",this.pJ);this.L(a,"appresize",this.oc);this.L(a,"fullscreentoggled",this.nJ);this.L(a,"onShowControls",this.gw);this.L(a,"onHideControls",this.gw);this.L(this.element,"keydown",this.fN);this.L(this.element,"focus",g.Sa(this.Lz,!0));this.L(this.element,"blur",g.Sa(this.Lz,!1));this.oc(g.wL(a).getPlayerSize());QP(this,a.getVolume(),a.isMuted())};
QP=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.ha("valuenow",d);a.ha("valuetext",e);a.Z.style.left=(a.G?60:40)*c+"px";a.B=b};
SP=function(a,b,c,d,e){var f=a.A||a.C||a.w||a.J;a.A=b;a.C=c;a.w=d;a.J=e;b=a.A||a.C||a.w||a.J;f!=b&&(b?a.O=a.L(a.element,"wheel",a.oJ):(a.Xa(a.O),a.O=null),g.K(a.S,"ytp-volume-slider-active",b))};
g.TP=function(a,b){var c=a.N(),d=g.Px(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.Ex(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{D:"a",X:e,M:{href:"{{url}}",target:c.A,title:g.gN("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},K:[f?g.X?{D:"div",X:["ytp-icon","ytp-icon-youtube-music-logo"]}:{D:"svg",M:{viewBox:"0 0 77 20"},K:[{D:"g",M:{fill:"none"},K:[{D:"path",M:{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",M:{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",X:["ytp-icon","ytp-icon-logo"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.u=a;this.w=!1;g.TL(a,this.element,this,28666);this.ia("click",this.B);this.L(a,"videodatachange",this.A);this.L(a,"onLoopRangeChange",this.A);this.A();g.Ge(this,g.BN(b.Za(),this.element))};
UP=function(a,b,c){g.O.call(this);var d=this,e=a.N();this.w=a;this.A=b;this.na=NaN;this.ra=null;this.V=c;this.V.subscribe("autohideupdate",this.Hz,this);c=!g.zL(a).isCued();var f;g.Ex(e)||g.Q(a.N().experiments,"html5_player_dynamic_bottom_gradient")?this.sa=f=new g.EN(a):f=new g.V({D:"div",I:"ytp-gradient-bottom"});g.C(this,f);g.RL(a,f.element,8);this.da=new g.BM(f,250,c,100);g.C(this,this.da);this.u=new g.V({D:"div",I:"ytp-chrome-bottom",K:[{D:"div",I:"ytp-chrome-controls"}]});g.C(this,this.u);g.RL(a,
this.u.element,8);this.ca=new g.BM(this.u,250,c,100);g.C(this,this.ca);this.O=this.u.element.children[0];this.o=new HP(a);g.Ge(this.o,function(){a.J==d.o&&(a.J=null)});
g.C(this,this.o);a.J=this.o;g.RL(a,this.o.element,6);this.o.subscribe("show",this.fP,this);this.o.subscribe("show",(0,g.x)(b.du,b,this.o));this.B=new g.ON(a,b);g.C(this,this.B);this.B.ba(this.u.element,0);c=new g.lO(a);g.C(this,c);g.RL(a,c.element,4);c=new g.CC({D:"div",I:"ytp-left-controls"});g.C(this,c);c.ba(this.O);f=new g.OO(a,b,!1);g.C(this,f);f.ba(c.element);e.H||(f=new g.KO(a,b),g.C(this,f),f.ba(c.element));f=new g.OO(a,b,!0);g.C(this,f);f.ba(c.element);var k=new g.V({D:"span"});g.C(this,k);
k.ba(c.element);if(!e.na&&(this.F=new EO(a,b),g.C(this,this.F),this.F.ba(k.element),e.J)){f=new RP(a,b,this.u.element);g.C(this,f);f.ba(k.element);k=new g.Cr(k.element);g.C(this,k);var l=(0,g.x)(f.NB,f,!0);k.subscribe("hoverstart",l);k=new g.Cr(c.element);g.C(this,k);f=(0,g.x)(f.NB,f,!1);k.subscribe("hoverend",f)}this.ea=new g.PP(a,b);g.C(this,this.ea);this.ea.ba(c.element);c=new g.CC({D:"div",I:"ytp-right-controls"});g.C(this,c);c.ba(this.O);g.Q(a.N().experiments,"web_wn_macro_markers")&&(this.U=
new jO(a,b,this.B),g.C(this,this.U),this.U.ba(this.O));this.P=null;g.Q(e.experiments,"external_fullscreen_with_edu")&&e.externalFullscreen&&Rx(e)&&(this.P=new oO(a,b),g.C(this,this.P),this.P.ba(c.element));f=new NP(a,b);g.C(this,f);f.ba(c.element);f=new nP(a,b,this.o);g.C(this,f);Cka(this.o,f);f.ba(c.element);f=new vO(a);g.C(this,f);g.RL(a,f.element,5);f.subscribe("show",(0,g.x)(b.Nh,b,f));f=new wO(a,b,f);g.C(this,f);f.ba(c.element);f=a.getVideoData();if(e.Ef||f.tc&&"1"==e.controlsType)this.G=new g.TP(a,
b),g.C(this,this.G),this.G.ba(c.element);e.showMiniplayerButton&&!g.Q(a.N().experiments,"web_player_pip")&&(this.C=new uO(a,b),g.C(this,this.C),this.C.ba(c.element));this.S=new IO(a,b);g.C(this,this.S);this.S.ba(c.element);f.eu||this.S.hide();e.Xb||(f=new MP(a,b),g.C(this,f),f.ba(c.element));e.Rb&&(f=new LP(a,b,this.o),g.C(this,f),f.ba(c.element));e.oe&&(e=new CN(a,b),g.C(this,e),e.ba(c.element));this.ga=new g.tO(a,b);g.C(this,this.ga);this.ga.ba(c.element);this.H=new g.xn(this.jJ,null,this);g.C(this,
this.H);this.J=null;this.L(a,"appresize",this.ct);this.L(a,"fullscreentoggled",this.ct);this.L(a,"presentingplayerstatechange",this.gt);this.L(a,"videodatachange",this.kJ);this.ct()};
VP=function(a,b){g.zL(a.w).isCued()||b?b&&(a.ca.hide(),a.da.hide(),a.F&&a.F.Ua(!1),a.G&&a.G.Ua(!1),a.C&&a.C.Ua(!1),a.A.Za().df(a.u.element)):b||(a.ca.show(),a.da.show(),a.F&&a.F.Ua(!0),a.G&&a.G.Ua(!0),a.C&&a.C.Ua(!0),a.Hz())};
XP=function(a){var b=g.wL(a.w).getPlayerSize().width;return Math.max(b-2*WP(a),100)};
WP=function(a){var b=a.A.jc();return 12*(a.w.getVideoData().tc?0:b?2:1)};
ZP=function(a){var b=g.nv(a.N().experiments,"mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({D:"div",X:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));pO.call(this,a,{D:"button",X:["ytp-unmute","ytp-popup","ytp-button"].concat(c),K:[{D:"div",I:"ytp-unmute-inner",K:[{D:"div",X:["ytp-unmute-icon"],K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-volume-muted-dark"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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",X:["ytp-unmute-text"],W:"Tap to unmute"}].concat(d)}]},100);this.w=a;this.A=this.B=!1;g.TL(this.w,this.element,this,51663);this.L(a,"onMutedAutoplayChange",this.F,this);this.L(a,"presentingplayerstatechange",this.G);this.ia("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.vx(this.w.N());g.GC(this,a);a&&YP(this);this.C=a};
$P=function(a){a.B||(a.B=!0,g.WL(a.w,a.element))};
YP=function(a){a.A||(a.A=!0,g.XL(a.w,a.element,!0))};
g.aQ=function(a){g.O.call(this);var b=this,c=a.N(),d=g.wL(a);this.api=a;this.kd=!1;this.F=null;this.Gb=!1;this.fd=new g.I(this.pK,0,this);g.C(this,this.fd);g.Ex(c)||(this.V=new fN(a),g.C(this,this.V),g.RL(a,this.V.element,4));if(Dka()){var e=new AN(a);g.C(this,e);e=e.element;g.RL(a,e,4)}var f=a.getVideoData();this.u=new zM(d,(0,g.x)(this.DI,this),f,c.Ra);g.C(this,this.u);this.u.subscribe("autohideupdate",this.Cl,this);var k=new wN(a);g.C(this,k);g.RL(a,k.element,4);this.Ra=new ZP(a);g.C(this,this.Ra);
g.RL(this.api,this.Ra.element,2);this.Wb=this.api.isMutedByMutedAutoplay();this.L(a,"onMutedAutoplayChange",this.FI);this.Na=new g.I(this.Fo,200,this);g.C(this,this.Na);this.Xb=f.videoId;this.B=null;this.Hc=!1;this.Jc=this.dd=null;this.hd=NaN;this.Gc=this.ea=!1;this.sa=0;this.jd=new g.I(function(){b.sa=0},350);
g.C(this,this.jd);this.Ba=new g.I(this.nF.bind(this),350,this);g.C(this,this.Ba);this.Wa=[];f=g.xL(a);f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.J(f,"ytp-color-white")}g.Ex(c)&&g.J(f,"ytp-music-player");!g.Q(a.N().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new vN(a),g.C(this,f));this.L(a,"appresize",this.li);this.L(a,"presentingplayerstatechange",this.jM);this.L(a,
"videodatachange",this.zz);this.L(a,"videoplayerreset",this.hM);this.L(a,"autonavvisibility",this.wg,this);this.L(a,"sizestylechange",this.wg,this);g.Q(a.N().experiments,"player_minimized_controls_killswitch")&&this.L(a,"minimized",this.Sd,this);this.L(a,"onFrescaStateChange",this.Sd,this);this.L(d,"click",this.JM,this);this.L(d,"dblclick",this.KM,this);c.ca&&(this.L(d,"gesturechange",this.LM,this),this.L(d,"gestureend",this.MM,this));this.P=[d.A];this.V&&this.P.push(this.V.element);e&&this.P.push(e)};
bQ=function(a){return g.Q(a.api.N().experiments,"player_minimized_controls_killswitch")?a.api.app.G.o:!1};
cQ=function(a,b){if(!b)return!1;var c=a.api.app.B;if(c.fh()&&(c=c.gb())&&g.xe(c,b))return c.controls;for(c=0;c<a.P.length;c++)if(g.xe(a.P[c],b))return!1;return g.Kn(b,"ytp-player-content")||g.Kn(b,"html5-endscreen")||b==g.xL(a.api)?!1:!0};
eQ=function(a){return 2==a.api.getPresentingPlayerType()&&(g.wL(a.api).C||!1)&&a.api.N().o&&dQ&&11<=YB};
fQ=function(a,b){return!cQ(a,Bp(b))&&g.yM(b)};
gQ=function(a){a.u.Qb(2,!0);if(!a.api.N().H&&!a.Qf()){var b=g.zL(a.api);g.W(b,2)&&uL(a.api)||a.Ts(b);if(!a.api.N().ca||b.isCued()||g.W(b,1024)){var c=a.api.app.Fa;Kq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.W(b,2048);c&&(b.isCued()||d)?(Kq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),Eka(a)):(!c||b.isCued()&&d||Kq("embedsRequestStorageAccessFailedState",{state:b.o}),a.Fo())}else a.Na.isActive()?(a.Kn(),a.Na.stop()):a.Na.start()}};
Eka=function(a){eM(function(){Kq("embedsRequestStorageAccessResult",{resolved:!0});Ww(!0);pp();window.location.reload()},function(){Kq("embedsRequestStorageAccessResult",{resolved:!1});
a.Fo()})};
hQ=function(a,b){if(g.yM(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2==a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.zL(a.api);!g.W(c,4)||g.W(c,8)||g.W(c,2)||a.Fo();return!0}return!1};
iQ=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Dka=function(){var a=fl()&&67<=cl();return!el("tizen")&&!tx&&!a&&!0};
jQ=function(a,b){g.HC.call(this,{D:"div",I:"ytp-ad-persistent-progress-bar-container",K:[{D:"div",I:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.w=b;g.C(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()};
kQ=function(a,b){b=void 0===b?2:b;g.P.call(this);this.o=a;this.u=new g.O(this);g.C(this,this.u);this.B=Fka;this.A=null;this.u.L(this.o,"presentingplayerstatechange",this.tJ);this.A=this.u.L(this.o,"progresssync",this.Oz);this.w=b;1===this.w&&this.Oz()};
lQ=function(a){g.V.call(this,{D:"button",X:["ytp-button","ytp-back-button"],K:[{D:"div",I:"ytp-arrow-back-icon",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-arrow-back"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},K:[{D:"path",M:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Ka:!0,M:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.u=a;g.GC(this,a.N().showBackButton);this.ia("click",this.w)};
g.mQ=function(a){g.V.call(this,{D:"div",K:[{D:"div",I:"ytp-bezel-text-wrapper",K:[{D:"div",I:"ytp-bezel-text",W:"{{title}}"}]},{D:"div",I:"ytp-bezel",M:{role:"status","aria-label":"{{label}}"},K:[{D:"div",I:"ytp-bezel-icon",W:"{{icon}}"}]}]});this.A=new g.I(this.show,10,this);g.C(this,this.A);this.u=new g.I(this.hide,500,this);g.C(this,this.u);this.w=a;this.hide()};
g.oQ=function(a,b){if(b)g.W(g.zL(a.w),64)||nQ(a,XM(),"Play");else{var c=a.w.getVideoData();c.ua&&!c.allowLiveDvr?nQ(a,aN(),"Stop live playback"):nQ(a,VM(),"Pause")}};
pQ=function(a,b,c){if(0>=b){c=dN();b="muted";var d=0}else c=c?cN():bN(),d=Math.floor(b),b=d+"volume";nQ(a,c,b,d+"%")};
qQ=function(a,b){var c=b?g.X?{D:"div",X:["ytp-icon","ytp-icon-fast-rewind"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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",X:["ytp-icon","ytp-icon-fast-forward"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.gN("Speed is $RATE",{RATE:String(d)});nQ(a,c,e,d+"x")};
nQ=function(a,b,c,d){d=void 0===d?"":d;a.ha("label",void 0===c?"":c);a.ha("icon",b);g.Dn(a.u);a.A.start();a.ha("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
sQ=function(a,b,c){g.V.call(this,{D:"button",X:["ytp-button","ytp-cards-button"],M:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.vx(a.N()))},K:[{D:"span",I:"ytp-cards-button-icon-default",K:[{D:"div",I:"ytp-cards-button-icon",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-info-card"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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",I:"ytp-cards-button-title",W:"Info"}]},{D:"span",I:"ytp-cards-button-icon-shopping",K:[{D:"div",I:"ytp-cards-button-icon",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-shopping-card"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",I:"ytp-svg-shadow",M:{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",I:"ytp-svg-fill",M:{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",I:"ytp-svg-shadow-fill",M:{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",
I:"ytp-cards-button-title",W:"Shopping"}]}]});this.w=a;this.B=b;this.u=null;this.A=new g.BM(this,250,!0,100);g.C(this,this.A);g.K(c,"ytp-show-cards-title",g.vx(a.N()));this.hide();this.ia("click",this.C);this.ia("mouseover",this.F);rQ(this,!0)};
rQ=function(a,b){b?a.u=g.BN(a.B.Za(),a.element):(a.u(),a.u=null)};
tQ=function(a,b,c){g.V.call(this,{D:"div",I:"ytp-cards-teaser",K:[{D:"div",I:"ytp-cards-teaser-box"},{D:"div",I:"ytp-cards-teaser-text",K:[{D:"span",I:"ytp-cards-teaser-label",W:"{{text}}"}]}]});var d=this;this.w=a;this.S=b;this.F=new g.BM(this,250,!1,250);g.C(this,this.F);this.C=c;this.u=null;this.J=new g.I(this.LL,300,this);g.C(this,this.J);this.H=new g.I(this.IL,2E3,this);g.C(this,this.H);this.G=[];this.A=null;this.O=new g.I(function(){d.element.style.margin=0},250);
g.C(this,this.O);this.B=null;this.L(c.element,"mouseover",this.zA);this.L(c.element,"mouseout",this.yA);this.L(a,"cardsteasershow",this.mN);this.L(a,"cardsteaserhide",this.yl);this.L(a,"cardstatechange",this.tC);this.L(a,"presentingplayerstatechange",this.tC);this.L(a,"appresize",this.Us);this.L(a,"onShowControls",this.Us);this.L(a,"onHideControls",this.eE);this.ia("click",this.RO);this.ia("mouseenter",this.GI)};
Gka=function(a,b){a.ha("text",b.teaserText);a.element.setAttribute("dir",g.jn(b.teaserText));a.F.show();a.A=new g.I(function(){g.J(g.xL(this.w),"ytp-cards-teaser-shown");this.Us()},0,a);
a.A.start();rQ(a.C,!1);a.u=new g.I(a.yl,580+b.durationMs,a);a.u.start();a.G.push(a.ia("mouseover",a.zA,a));a.G.push(a.ia("mouseout",a.yA,a))};
uQ=function(a,b){g.V.call(this,{D:"button",X:["ytp-button","ytp-title-notifications"],M:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{D:"div",I:"ytp-title-notifications-on",M:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},K:[g.UM()]},{D:"div",I:"ytp-title-notifications-off",M:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-notifications-inactive"]}:{D:"svg",M:{fill:"#fff",
height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{D:"path",M:{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.w=a;g.TL(a,this.element,this,36927);this.A=b;this.u=!1;this.ia("click",this.B,this);this.ha("pressed",!1);this.ha("label","Get notified about every new video")};
vQ=function(a,b){a.u=b;a.element.classList.toggle("ytp-notifications-enabled",a.u);g.xq("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",yb:{channel_id:a.A,receive_all_updates:!a.u}})};
wQ=function(a,b,c){return b?a.C+"subscription_ajax":c?"/subscription_service":""};
g.zQ=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":"Subscribe to channel"};if(g.Bx(z)||g.Dx(z))c.target=z.A;g.V.call(this,{D:"div",X:["ytp-button","ytp-sb"],K:[{D:"a",I:"ytp-sb-subscribe",M:c,K:[{D:"div",I:"ytp-sb-text",K:[{D:"div",I:"ytp-sb-icon"},a]},b?{D:"div",I:"ytp-sb-count",W:b}:""]}]});f&&g.J(this.element,
"ytp-sb-classic")}else{p=z.Z&&g.Bx(z)&&!g.Q(z.experiments,"subscribe_tooltip_killswitch");g.V.call(this,{D:"div",X:["ytp-button","ytp-sb"],K:[{D:"div",I:"ytp-sb-subscribe",M:p?{title:g.gN("Subscribe as $USER_NAME",{USER_NAME:z.Z}),"aria-label":"Subscribe to channel","data-tooltip-image":cy(z),"data-tooltip-opaque":String(g.vx(z)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},K:[{D:"div",I:"ytp-sb-text",K:[{D:"div",I:"ytp-sb-icon"},a]},b?{D:"div",I:"ytp-sb-count",W:b}:""]},{D:"div",
I:"ytp-sb-unsubscribe",M:p?{title:g.gN("Subscribed as $USER_NAME",{USER_NAME:z.Z}),"aria-label":"Unsubscribe to channel","data-tooltip-image":cy(z),"data-tooltip-opaque":String(g.vx(z)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},K:[{D:"div",I:"ytp-sb-text",K:[{D:"div",I:"ytp-sb-icon"},c]},d?{D:"div",I:"ytp-sb-count",W:d}:""]}]});var B=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 G=function(){var ka=B.u;if(m||n){var pa=t.N();var bc={c:ka};if(g.Q(pa.experiments,"embeds_botguard_with_subscribe_killswitch"))bc="";else{var Jc="",vb=null;if(g.Q(pa.experiments,"web_player_inline_botguard"))Rq.o&&(vb=Bs);else{var Za=g.w("yt.abuse.player.botguardInitialized");Za&&Za()&&(vb=g.w("yt.abuse.player.invokeBotguard"))}vb&&(Jc=vb(bc));bc=Jc}g.Q(pa.experiments,"web_player_innertube_subscription_update")?(pa=t.getVideoData(),qL(xQ(t.app),pa.subscribeCommand)):g.xq(wQ(pa,
!!m,!!n),m?{method:"POST",Ud:{action_create_subscription_to_channel:1,c:ka},yb:{feature:m,silo_name:null,r2b:bc},withCredentials:!0}:n?{method:"POST",Ud:{action_subscribe:1},yb:{channel_ids:ka,itct:n}}:{});t.ma("SUBSCRIBE",ka)}E.focus();E.removeAttribute("aria-hidden");D.setAttribute("aria-hidden",!0)},F=function(){var ka=B.u;
if(m||n){var pa=t.N();g.Q(pa.experiments,"web_player_innertube_subscription_update")?(pa=t.getVideoData(),qL(xQ(t.app),pa.unsubscribeCommand)):g.xq(wQ(pa,!!m,!!n),m?{method:"POST",Ud:{action_remove_subscriptions:1},yb:{c:ka,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Ud:{action_unsubscribe:1},yb:{channel_ids:ka,itct:n}}:{});t.ma("UNSUBSCRIBE",ka)}D.focus();D.removeAttribute("aria-hidden");E.setAttribute("aria-hidden",!0)};
this.L(D,"click",G);this.L(E,"click",F);this.L(D,"keypress",function(ka){13==ka.keyCode&&G(ka)});
this.L(E,"keypress",function(ka){13==ka.keyCode&&F(ka)});
this.L(t,"SUBSCRIBE",this.B);this.L(t,"UNSUBSCRIBE",this.C);this.A&&p&&(this.w=this.A.Za(),yQ(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.BQ=function(a,b,c){b=AQ(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.Ro("LOGGED_IN",function(d){g.So(g.L("LOGGED_IN_PUBSUB_KEY",void 0));Eo("LOGGED_IN",!0);a(d)}),Eo("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
AQ=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=yd(c,"mode",a));a=yd(d,"next",c);b&&(a=yd(a,"feature",b));return a};
CQ=function(a,b){var c=a.N();g.V.call(this,{D:"div",I:"ytp-title-channel",K:[{D:"div",I:"ytp-title-beacon"},{D:"a",I:"ytp-title-channel-logo",M:{href:"{{channelLink}}",target:c.A,"aria-label":"{{channelLogoLabel}}"}},{D:"div",I:"ytp-title-expanded-overlay",K:[{D:"div",I:"ytp-title-expanded-heading",K:[{D:"h2",I:"ytp-title-expanded-title",K:[{D:"a",W:"{{expandedTitle}}",M:{href:"{{channelTitleLink}}",target:c.A,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",I:"ytp-title-expanded-subtitle",W:"{{expandedSubtitle}}"}]}]}]});
this.u=a;this.V=b;this.w=this.o["ytp-title-channel"];this.B=this.o["ytp-title-channel-logo"];this.S=this.o["ytp-title-expanded-overlay"];this.F=this.C=this.A=null;this.U=g.vx(c);g.TL(a,this.B,this,36925);this.U&&Hka(this);this.L(a,"videodatachange",this.J);this.L(a,"videoplayerreset",this.J);this.J()};
Hka=function(a){var b=a.u.N(),c=a.u.getVideoData();if(!b.V){var d=b.Kc?null:AQ(),e=new g.zQ("Subscribe",null,"Subscribed",null,!0,!1,c.xg,c.subscribed,"channel_avatar",null,d,a.u,a.V);a.A=e;g.C(a,e);e.ba(a.S);g.TL(a.u,e.element,a,36926);e.hide();a.L(e.element,"click",function(){g.WL(a.u,e.element)});
var f=new uQ(a.u,c.xg);a.C=f;g.C(a,f);f.ba(a.S);f.hide();a.L(a.u,"SUBSCRIBE",function(){c.Kj&&f.show()});
a.L(a.u,"UNSUBSCRIBE",function(){c.Kj&&(f.hide(),vQ(f,!1))})}a.ha("channelTitleFocusable","-1");
b.o?a.L(a.B,"click",function(k){DQ(a)&&(k.preventDefault(),EQ(a)?a.G():a.H());g.WL(a.u,a.B)}):(a.L(a.w,"mouseenter",a.H),a.L(a.w,"mouseleave",a.G),a.L(a.w,"focusin",a.H),a.L(a.w,"focusout",function(k){a.w.contains(k.relatedTarget)||a.G()}),a.L(a.B,"click",function(){g.WL(a.u,a.B)}));
a.F=new g.I(function(){EQ(a)&&(a.A&&(a.A.hide(),g.XL(a.u,a.A.element,!1)),a.C&&(a.C.hide(),g.XL(a.u,a.C.element,!1)),a.w.classList.remove("ytp-title-expanded"),a.w.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.F);a.L(a.w,FQ,function(){GQ(a)});
a.L(a.u,"onHideControls",a.O);a.L(a.u,"appresize",a.O);a.L(a.u,"fullscreentoggled",a.O)};
GQ=function(a){a.w.classList.remove("ytp-title-show-collapsed");a.w.classList.remove("ytp-title-show-expanded")};
DQ=function(a){var b=a.u.getPlayerSize();return a.U&&524<=b.width};
EQ=function(a){return a.w.classList.contains("ytp-title-expanded")};
HQ=function(a){var b=g.KC({"aria-haspopup":"true"});g.JC.call(this,b,a);this.ia("keydown",this.u)};
IQ=function(a,b){a.element.setAttribute("aria-haspopup",b)};
JQ=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.Ad("/sharing_services",a);g.Uq(d)};
MQ=function(a,b,c,d){g.WO.call(this,a);this.u=a;this.O=c;this.U=d;this.C=new g.SO("Loop",7);g.C(this,this.C);g.XO(this,this.C,!0);this.C.ia("click",this.uL,this);g.TL(a,this.C.element,this.C,28661);this.B=new HQ(6);g.C(this,this.B);g.XO(this,this.B,!0);this.B.ia("click",this.bL,this);g.TL(a,this.B.element,this.B,28659);this.A=new HQ(5);g.C(this,this.A);g.XO(this,this.A,!0);this.A.ia("click",this.aL,this);g.TL(a,this.A.element,this.A,28660);this.w=new HQ(4);g.C(this,this.w);g.XO(this,this.w,!0);this.w.ia("click",
this.ZK,this);g.TL(a,this.w.element,this.w,28658);this.J=new HQ(3);g.C(this,this.J);g.XO(this,this.J,!0);this.J.ia("click",this.YK,this);this.S=new g.JC(g.KC({href:"{{href}}",target:a.N().A},void 0,!0),2,"Troubleshoot playback issue");g.C(this,this.S);g.XO(this,this.S,!0);this.S.ia("click",this.CM,this);b=new g.JC(g.KC(),1,"Stats for nerds");g.C(this,b);g.XO(this,b,!0);b.ia("click",this.YM,this);this.H=new g.HC({D:"div",X:["ytp-copytext","ytp-no-contextmenu"],M:{draggable:"false",tabindex:"1"},W:"{{text}}"});
g.C(this,this.H);this.H.ia("click",this.KK,this);this.da=new VO(a,this.H);g.C(this,this.da);this.G=null;c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.Iv&&g.Md(43)&&(c=!0);g.pw&&!g.Md(41)&&(c=!1);c&&(this.G=new g.V({D:"textarea",I:"ytp-html5-clipboard",M:{readonly:""}}),g.C(this,this.G),this.G.ba(this.element));if(this.na=g.Q(a.N().experiments,"web_player_icons"))LC(this.C,g.X?{D:"div",X:["ytp-icon","ytp-icon-repeat"]}:{D:"svg",M:{fill:"none",height:"24",viewBox:"0 0 24 24",
width:"24"},K:[{D:"path",M:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}),LC(this.J,g.X?{D:"div",X:["ytp-icon","ytp-icon-bug-report"]}:{D:"svg",M:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",M:{"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"}}]}),LC(this.S,g.X?{D:"div",X:["ytp-icon","ytp-icon-help-outline"]}:{D:"svg",M:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{D:"path",M:{"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"}}]}),LC(b,PM());this.L(a,"loopchange",this.vA);this.L(a,"videodatachange",this.KI);KQ(this);LQ(this,this.u.getVideoData())};
NQ=function(a,b){if(a.G){var c=a.G.element;c.value=b;c.select();try{var d=document.execCommand("copy")}catch(e){}}d?a.O.kb():(a.H.tb(b,"text"),g.iP(a.O,a.da),pN(a.H.element),a.G&&(a.G=null,KQ(a)));return d};
LQ=function(a,b){var c=a.u.N(),d=2==a.u.getPresentingPlayerType(),e=!d||b.isListed;e=!c.G&&!!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.Aa&&(c.fmt=Vu(b.Aa)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.De&&(c.partnerid=b.De),c=g.Ad("//support.google.com/googleplay/",c));g.GC(a.w,e&&b.allowEmbed);g.GC(a.B,e);g.GC(a.A,e&&!b.ua);a.S.tb(c,"href");g.GC(a.C,
!b.ua&&!d)};
KQ=function(a){var b=!!a.G;g.IC(a.J,b?"Copy debug info":"Get debug info");IQ(a.J,!b);g.IC(a.w,b?"Copy embed code":"Get embed code");IQ(a.w,!b);g.IC(a.B,b?"Copy video URL":"Get video URL");IQ(a.B,!b);g.IC(a.A,b?"Copy video URL at current time":"Get video URL at current time");IQ(a.A,!b);a.na&&(LC(a.w,b?MM():null),LC(a.B,b?RM():null),LC(a.A,b?RM():null))};
g.PQ=function(a,b,c){g.eP.call(this,a);this.w=a;this.ea=b;this.Z=c;this.G=new g.O(this);g.C(this,this.G);this.B=null;g.TL(a,this.element,this,28656);g.J(this.element,"ytp-contextmenu");a.fa("web_player_icons")&&g.J(this.element,"ytp-exp-contextmenu-icons");OQ(this);this.hide()};
OQ=function(a){g.yr(a.G);"gvn"!=a.w.N().playerStyle&&a.G.L(g.wL(a.w),"contextmenu",a.JK)};
QQ=function(a){a.w.isFullscreen()?g.RL(a.w,a.element,9):a.ba(document.body)};
RQ=function(a,b){var c=a.N();g.V.call(this,{D:"button",X:["ytp-button","ytp-copylink-button"],M:{title:"{{title-attr}}","data-tooltip-opaque":String(g.vx(c))},K:[{D:"div",I:"ytp-copylink-icon",W:"{{icon}}"},{D:"div",I:"ytp-copylink-title",W:"Copy link",M:{"aria-hidden":"true"}}]});this.u=a;this.C=b;this.w=!1;this.B=b.Za();g.K(this.element,"ytp-show-copylink-title",g.vx(c)&&!g.Ex(c));g.TL(a,this.element,this,86570);this.ia("click",this.F);this.L(a,"videodatachange",this.A);this.L(a,"videoplayerreset",
this.A);this.L(a,"appresize",this.A);this.A();g.Ge(this,g.BN(this.B,this.element))};
Ika=function(a){a.ha("icon",EM());SQ(a.B,a.element,"Link copied to clipboard");var b=a.ia("mouseleave",function(){a.Xa(b);a.A();a.B.df()})};
TQ=function(a){g.V.call(this,{D:"div",I:"ytp-doubletap-ui",K:[{D:"div",I:"ytp-doubletap-static-circle",K:[{D:"div",I:"ytp-doubletap-ripple"}]},{D:"div",I:"ytp-doubletap-overlay-a11y"},{D:"div",I:"ytp-doubletap-seek-info-container",K:[{D:"div",I:"ytp-doubletap-arrows-container",K:[{D:"span",I:"ytp-doubletap-base-arrow"},{D:"span",I:"ytp-doubletap-base-arrow"},{D:"span",I:"ytp-doubletap-base-arrow"}]},{D:"div",I:"ytp-doubletap-tooltip",K:[{D:"div",I:"ytp-doubletap-tooltip-label",W:"{{seekTime}}"}]}]}]});
this.w=a;this.A=new g.I(this.show,10,this);g.C(this,this.A);this.u=new g.I(this.hide,700,this);g.C(this,this.u);this.hide()};
g.UQ=function(a,b,c,d,e,f){g.O.call(this);this.o=a;this.F=c;this.B=d;this.u=e;this.C=f;this.A=new g.I(g.Sa(this.Cz,!1),1E3,this);g.C(this,this.A);this.w="";a=g.Sa(this.Yt,!1);this.L(b,"mousedown",a);this.L(c.element,"mousedown",a);this.L(b,"keydown",this.Bx);this.L(c.element,"keydown",this.Bx);this.L(b,"keyup",this.Cx);this.L(c.element,"keyup",this.Cx)};
VQ=function(a,b,c,d){var e=g.kM(g.sL(a.o));if(e&&e.loaded){e=a.o.getSubtitlesUserSettings();for(var f,k=0;k<g.CP.length;k++){var l=g.CP[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.Cz(!0);a.A.start()}};
WQ=function(a,b){a.o.Nc();if(g.W(g.zL(a.o),4)){var c=a.o.getVideoData().Aa;c&&(c=c.video)&&a.o.seekBy(b/(c.fps||30))}};
XQ=function(a,b){var c={D:"div",I:"ytp-overflow-panel",M:{id:BC(),role:"dialog"},K:[{D:"div",I:"ytp-overflow-panel-content",K:[{D:"div",I:"ytp-overflow-panel-action-buttons",W:"{{buttons}}"}]},{D:"button",X:["ytp-overflow-panel-close","ytp-button"],M:{title:"Close"},K:[g.KM()]}]};pO.call(this,a,c,250);this.C=a;this.B=b.Za();this.w=[];this.F=this.o["ytp-overflow-panel-content"];this.A=this.o["ytp-overflow-panel-close"];this.L(this.A,"click",this.kb);g.Ge(this,g.BN(this.B,this.A));this.ia("click",this.TI);
this.L(a,"videoplayerreset",this.hide);this.L(a,"fullscreentoggled",this.SI);this.hide()};
YQ=function(a,b){a.w.includes(b)||(a.w.push(b),a.ha("buttons",a.w))};
ZQ=function(a,b){for(var c=g.q(a.w),d=c.next();!d.done;d=c.next())d.value.Ua(b)};
$Q=function(a,b,c){g.V.call(this,{D:"button",X:["ytp-button","ytp-overflow-button"],M:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},K:[{D:"div",I:"ytp-overflow-icon",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-more-vert"]}:{D:"svg",M:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},K:[{D:"path",M:{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.u=
a;this.C=b;this.w=!1;this.B=b.Za();g.TL(a,this.element,this,16499);this.L(a,"appresize",this.A);this.L(a,"fullscreentoggled",this.A);this.L(a,"presentingplayerstatechange",this.A);this.A();g.Ge(this,g.BN(this.B,this.element));this.ia("click",function(){g.WL(a,d.element);c.Ze(d.element,!1)})};
aR=function(a,b,c){var d=b.wa(c),e=a.N(),f=d.Ac("default.jpg");g.V.call(this,{D:"a",X:["ytp-video-menu-item","ytp-button"],M:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},K:[{D:"div",I:"ytp-video-menu-item-index",W:String(c+1)},{D:"div",I:"ytp-video-menu-item-now-playing",W:"\u25b6"},{D:"div",I:"ytp-video-menu-item-thumbnail",M:{style:f?"background-image: url("+f+");":null}},{D:"div",I:"ytp-video-menu-item-title",W:d.title},{D:"div",I:"ytp-video-menu-item-author",
W:d.author}]});this.u=a;this.w=c;this.ia("click",this.A)};
bR=function(a){pO.call(this,a,{D:"div",I:"ytp-playlist-menu",M:{role:"dialog",id:BC()},K:[{D:"div",I:"ytp-playlist-menu-header",K:[{D:"div",I:"ytp-playlist-menu-title",K:[{D:"a",I:"ytp-playlist-menu-title-name",M:{href:"{{playlisturl}}"},W:"{{title}}"},{D:"button",X:["ytp-playlist-menu-close","ytp-button"],M:{"aria-label":"Close"},K:[g.KM()]}]},{D:"div",I:"ytp-playlist-menu-subtitle",W:"{{subtitle}}"}]},{D:"div",I:"ytp-playlist-menu-items",M:{role:"menu"}}]},250);this.L(this.o["ytp-playlist-menu-close"],
"click",this.kb);this.L(this.o["ytp-playlist-menu-title-name"],"click",this.qN);this.A=a;this.B=this.G=this.w=null;this.Ga=this.o["ytp-playlist-menu-items"];this.F=new g.O(this);g.C(this,this.F);this.C=[];this.hide()};
cR=function(a,b){if(a.w!=b)if(a.w&&a.w.unsubscribe("shuffle",a.fp,a),a.w=b,a.G=null,b){b.subscribe("shuffle",a.fp,a);var c=b.author,d={CURRENT_POSITION:String(b.o+1),PLAYLIST_LENGTH:String(b.w)};c&&(d.AUTHOR=c);a.update({title:b.title,subtitle:g.gN(c?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d),playlisturl:a.A.getVideoUrl(!0)});a.fp()}else a.Ea()&&a.hide();else a.w&&a.fp()};
dR=function(a,b,c){g.V.call(this,{D:"button",X:["ytp-playlist-menu-button","ytp-button"],M:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},K:[{D:"div",I:"ytp-playlist-menu-button-icon",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-playlist"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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",I:"ytp-playlist-menu-button-text",W:"{{text}}"}]});var d=this;this.w=a;this.u=null;this.B=b.Za();this.F=!1;g.TL(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.ia("click",function(){g.WL(a,d.element);c.Ze(d.element,!1)})};
eR=function(a,b,c){g.V.call(this,{D:"div",I:"ytp-promotooltip-wrapper",K:[{D:"div",I:"ytp-promotooltip-container",K:[{D:"div",I:"ytp-promotooltip-content",K:[{D:"div",I:"ytp-promotooltip-title",W:"{{title}}"},{D:"div",I:"ytp-promotooltip-details",W:"{{details}}"}]},{D:"div",I:"ytp-promotooltip-buttons",K:[{D:"div",I:"ytp-promotooltip-dismiss-button",W:"{{dismissButtonText}}"},{D:"div",I:"ytp-promotooltip-accept-button",W:"{{acceptButtonText}}"}]}]},{D:"div",I:"ytp-promotooltip-pointer"}]});this.u=
a;this.O=b;this.F=c;this.A=null;this.S=this.o["ytp-promotooltip-title"];this.H=this.o["ytp-promotooltip-details"];this.G=this.o["ytp-promotooltip-accept-button"];this.J=this.o["ytp-promotooltip-dismiss-button"];this.w=!1;g.GC(this,this.w);this.L(c,"onShowControls",this.C);this.L(c,"onHideControls",this.B)};
fR=function(a,b){g.V.call(this,{D:"button",X:["ytp-replay-button","ytp-button"],M:{title:"Replay"},K:[g.ZM()]});this.u=a;this.L(a,"presentingplayerstatechange",this.A);this.ia("click",this.w,this);var c=g.zL(a);g.GC(this,g.W(c,2));g.BN(b.Za(),this.element)};
g.gR=function(a,b){var c=BC(),d=a.N();c={D:"div",I:"ytp-share-panel",M:{id:BC(),role:"dialog","aria-labelledby":c},K:[{D:"div",I:"ytp-share-panel-inner-content",K:[{D:"div",I:"ytp-share-panel-title",M:{id:c},W:"Share"},{D:"a",X:["ytp-share-panel-link","ytp-no-contextmenu"],M:{href:"{{link}}",target:d.A,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},W:"{{linkText}}"},{D:"label",I:"ytp-share-panel-include-playlist",K:[{D:"input",I:"ytp-share-panel-include-playlist-checkbox",M:{type:"checkbox",
checked:!0}},"Include playlist"]},{D:"div",I:"ytp-share-panel-loading-spinner",K:[oN()]},{D:"div",I:"ytp-share-panel-service-buttons",W:"{{buttons}}"},{D:"div",I:"ytp-share-panel-error",W:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",X:["ytp-share-panel-close","ytp-button"],M:{title:"Close"},K:[g.KM()]}]};pO.call(this,a,c,250);this.w=a;this.A=b.Za();this.B=[];this.O=this.o["ytp-share-panel-inner-content"];this.F=this.o["ytp-share-panel-close"];this.L(this.F,
"click",this.kb);g.Ge(this,g.BN(this.A,this.F));this.G=this.o["ytp-share-panel-include-playlist-checkbox"];this.L(this.G,"click",this.Xs);this.C=this.o["ytp-share-panel-link"];g.Ge(this,g.BN(this.A,this.C));this.ia("click",this.dJ);this.L(a,"videoplayerreset",this.hide);this.L(a,"fullscreentoggled",this.cJ);this.L(a,"onLoopRangeChange",this.Xs);this.hide()};
hR=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,g.DC(c),g.He(c);a.B=[]};
g.iR=function(a,b,c,d){d=void 0===d?300:d;var e=a.N();g.V.call(this,{D:"button",X:["ytp-button","ytp-share-button"],M:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.vx(e))},K:[{D:"div",I:"ytp-share-icon",W:"{{icon}}"},{D:"div",I:"ytp-share-title",W:"Share"}]});this.u=a;this.B=b;this.H=c;this.F=d;this.w=!1;this.C=b.Za();g.TL(a,this.element,this,28664);this.ia("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.vx(e)&&!g.Ex(e));g.Ge(this,g.BN(this.C,this.element))};
kR=function(a){pO.call(this,a,{D:"button",X:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{D:"div",I:"ytp-skip-intro-button-text",W:"Skip Intro"}]},100);var b=this;this.w=a;this.F=!1;this.C=new g.I(function(){return b.hide()},5E3);
g.C(this,this.C);this.A=this.B=NaN;this.S=function(){return b.show()};
this.O=function(){return b.hide()};
this.G=this.Z.bind(this);this.L(this.w,"videodatachange",function(c,d){if("dataloaded"==c)if(b.B=d.Qx,b.A=d.Px,isNaN(b.B)||isNaN(b.A))b.F&&(g.jR(b.w.app,"intro",void 0),b.w.removeEventListener(g.XD("intro"),b.S),b.w.removeEventListener("crx_intro",b.O),b.w.removeEventListener("onShowControls",b.G),b.hide(),b.F=!1);else{b.w.addEventListener(g.XD("intro"),b.S);b.w.addEventListener("crx_intro",b.O);b.w.addEventListener("onShowControls",b.G);var e=new g.UD(b.B,b.A,{priority:7,namespace:"intro"});g.NL(b.w,
[e]);b.F=!0}});
this.L(this.element,"click",function(){b.w.seekTo(b.A/1E3)});
this.hide()};
lR=function(a){g.V.call(this,{D:"div",I:"ytp-title",K:[{D:"div",I:"ytp-title-text",K:[{D:"a",X:["ytp-title-link","yt-uix-sessionlink"],M:{target:a.N().A,href:"{{url}}","data-sessionlink":"feature=player-title"},W:"{{title}}"},{D:"div",I:"ytp-title-subtext",K:[{D:"a",I:"ytp-title-channel-name",M:{href:"{{channelLink}}",target:"_blank"},W:"{{channelName}}"}]}]}]});this.u=a;this.w=null;this.B=this.o["ytp-title-link"];g.TL(a,this.element,this,23851);this.L(a,"videodatachange",this.A);this.L(a,"videoplayerreset",
this.A);this.A()};
mR=function(a){a.ha("channelLink","");a.ha("channelName","")};
g.nR=function(a,b){var c=g.wL(a).getPlayerSize();g.V.call(this,{D:"div",K:[{D:"div",I:"ytp-tooltip-text-wrapper",K:[{D:"div",I:"ytp-tooltip-image"},{D:"div",I:"ytp-tooltip-title",W:"{{title}}"},{D:"span",I:"ytp-tooltip-text",W:"{{text}}"}]},{D:"div",I:"ytp-tooltip-bg",K:[{D:"div",I:"ytp-tooltip-duration",W:"{{duration}}"}]}]});this.S=a;this.sa=b;this.O=a.N();this.na=this.O.o;this.H=this.o["ytp-tooltip-bg"];this.xa=this.o["ytp-tooltip-image"];this.ya=this.o["ytp-tooltip-text"];this.Z=(0,g.x)(this.HL,
this);this.F=(0,g.x)(this.KL,this);this.ca=(0,g.x)(this.lf,this);this.u=null;this.J=new g.BM(this,100);g.C(this,this.J);this.w=null;this.V=!1;this.A=null;this.C=NaN;this.G="";this.ea=c.width;this.U=!0;this.B=1;this.da=new g.I(this.iG,250,this);g.C(this,this.da);this.ga=new g.I(this.lf,5E3,this);g.C(this,this.ga);rx&&(c=this.o["ytp-tooltip-text"],c.setAttribute("role","text"),c.setAttribute("aria-live","polite"))};
yQ=function(a){a.element.setAttribute("aria-live","polite")};
qR=function(a,b,c,d,e,f,k){a.na||(3==a.w&&a.lf(),1!=a.w&&(Jn(a.element,"ytp-tooltip ytp-bottom"),a.w=1,a.U&&a.J.show(),a.A=a.S.te(),a.A&&a.A.subscribe("l",a.sA,a)),a.update({text:d,title:k?k:""}),g.Q(a.S.N().experiments,"web_wn_macro_markers")&&g.K(a.ya,"ytp-tooltip-text-no-title",1===a.w&&!k),g.K(a.element,"ytp-text-detail",!!e),d=-1,a.A&&(d=Uz(a.A,160*a.B),g.Q(a.O.experiments,"web_l3_storyboard")&&4==a.A.levels.length&&(d=a.A.levels.length-1),d=Zz(a.A,d,c)),oR(a,d),pR(a,!!e,b,f))};
g.YN=function(a){1==a.w&&a.lf()};
g.BN=function(a,b){if(a.na)return g.Ja;b.addEventListener("mouseover",a.F);g.Q(a.O.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.lf();b.removeEventListener("mouseover",this.F);g.Q(this.O.experiments,"show_tooltip_on_tab_killswitch")||b.removeEventListener("focus",this.F)},a)};
SQ=function(a,b,c){if(a.w)if(3==a.w)a.lf();else return;rR(a,b,3,c)};
rR=function(a,b,c,d){if(b&&!b.hasAttribute)a=Error("showElementTooltip_ called with non-element."),a.params=b.toString(),g.M(a);else{isNaN(a.C)||(a.C=NaN,a.H.style.background="");a.u=b;a.V=!!d;d?a.G=d:(a.G=b.getAttribute("title"),b.removeAttribute("title"));Jn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.xa.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.S.addEventListener("appresize",a.ca);a.U&&(sR(a),a.J.show(0))}};
sR=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.V){a.ha("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.H.style.width=e+"px";a.H.style.height=f+"px";a.H.style.backgroundImage=d?"url("+d+")":"";a.H.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.H.style.backgroundSize=k+"px "+l+"px";g.Ln(a.element,["ytp-text-detail","ytp-preview"]);g.K(a.element,"ytp-has-duration",
!!c)}else a.ha("text",a.G),g.Nn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.w?a.element.setAttribute("role","status"):a.element.removeAttribute("role");pR(a,!!b)};
pR=function(a,b,c,d){a.element.style.maxWidth=b?"":Math.min(a.ea,300*a.B)+"px";a.sa.Cj(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.ga.start()};
HO=function(a){a.u&&!a.V&&a.u.hasAttribute("title")&&(a.G=a.u.getAttribute("title"),a.u.removeAttribute("title"),a.U&&sR(a))};
oR=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=Vz(a.A,a.C,c);kO(a.H,e,c,d,!0);a.da.start()}};
Jka=function(a,b,c){tR("add_to_watch_later_list",a,b,c)};
Kka=function(a,b,c){tR("delete_from_watch_later_list",a,b,c)};
tR=function(a,b,c,d){g.xq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Ud:{feature:b.feature||null,authuser:b.Kc||null,pageid:b.pageId||null},yb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.JT||null,add_to_playlists:b.rT||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
ud:b.ud,withCredentials:!!d})};
g.wR=function(a,b){g.V.call(this,{D:"button",X:["ytp-watch-later-button","ytp-button"],M:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.vx(a.N()))},K:[{D:"div",I:"ytp-watch-later-icon",W:"{{icon}}"},{D:"div",I:"ytp-watch-later-title",W:"Watch later"}]});this.u=a;this.H=b;this.F=b.Za();yQ(this.F);this.B=null;this.C=this.A=this.w=!1;g.TL(a,this.element,this,28665);this.ia("click",this.qJ,this);this.L(a,"videoplayerreset",this.rJ);this.L(a,"appresize",this.oc);this.L(a,
"videodatachange",this.oc);this.L(a,"presentingplayerstatechange",this.oc);this.oc();var c=this.u.N(),d=g.rs("yt-player-watch-later-pending");c.u&&d?(Uw(),uR(this,d.videoId)):vR(this,2);g.K(this.element,"ytp-show-watch-later-title",g.vx(c));g.Ge(this,g.BN(b.Za(),this.element))};
xR=function(a,b){g.BQ(function(){Uw({videoId:b});window.location.reload()},"wl_button",g.Ox(a.u.N()))};
uR=function(a,b){if(!a.A)if(a.A=!0,vR(a,4),g.Q(a.u.N().experiments,"web_player_innertube_playlist_update")){var c=a.u.getVideoData();c=a.w?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=xQ(a.u.app),e=a.w?a.VA.bind(a):a.UA.bind(a);qL(d,c).then(e,a.HN.bind(a))}else c=a.u.N(),(a.w?Kka:Jka)({videoIds:b,Kc:c.Kc,pageId:c.pageId,onError:a.GN,onSuccess:a.w?a.VA:a.UA,context:a},c.C,!0)};
yR=function(a,b){vR(a,5,b);a.u.N().Db&&a.u.ma("WATCH_LATER_ERROR",b)};
zR=function(a,b){var c=a.u.N(),d=a.H.ce()&&g.vx(c);!c.B||2!=b&&3!=b||(b=d?3:2);if(b!=a.B){switch(b){case 4:var e=oN();break;case 1:e=EM();break;case 2:e=g.X?{D:"div",X:["ytp-icon","ytp-icon-watch-later"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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",X:["ytp-icon","ytp-icon-watch-later-large"]};break;case 5:e=g.Q(c.experiments,"watch_later_icon_change_killswitch")?g.X?{D:"div",X:["ytp-icon","ytp-icon-alert"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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",X:["ytp-icon","ytp-icon-warning"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.ha("icon",e);a.B=b}};
vR=function(a,b,c){var d=a.u.N();zR(a,b);c?a.update({title:c,image:null}):d.Z?(b={USER_NAME:d.Z},a.update({title:a.w?g.gN("Added as $USER_NAME",b):g.gN("Watch later as $USER_NAME",b),image:cy(d)})):a.update({title:"Watch later",image:null});HO(a.F)};
AR=function(a){g.aQ.call(this,a);var b=this,c=g.wL(a),d=a.N(),e=a.getVideoData();this.ga=g.vx(d);this.Eb=48;this.xb=69;this.ga&&(g.J(g.xL(a),"ytp-embed"),g.J(g.xL(a),"ytp-embed-playlist"),this.Eb=60,this.xb=89);this.hf=e&&e.hf;this.na=null;this.O=[];this.S=new g.mQ(a);g.C(this,this.S);g.RL(a,this.S.element,4);this.Rb=new TQ(a);g.C(this,this.Rb);g.RL(a,this.Rb.element,4);e=new g.V({D:"div",I:"ytp-gradient-top"});g.C(this,e);g.RL(a,e.element,1);this.pc=new g.BM(e,250,!0,100);g.C(this,this.pc);this.A=
new g.V({D:"div",I:"ytp-chrome-top"});g.C(this,this.A);g.RL(a,this.A.element,1);this.lc=new g.BM(this.A,250,!0,100);g.C(this,this.lc);this.za=[];this.J=new g.nR(a,this);g.C(this,this.J);g.RL(a,this.J.element,4);e=new bR(a);g.C(this,e);g.RL(a,e.element,5);e.subscribe("show",(0,g.x)(this.Nh,this,e));this.za.push(e);this.xa=new dR(a,this,e);g.C(this,this.xa);d.showBackButton&&(this.gd=new lQ(a),g.C(this,this.gd),this.gd.ba(this.A.element));this.ga||this.xa.ba(this.A.element);this.nb=new CQ(a,this);this.nb.ba(this.A.element);
g.C(this,this.nb);this.dc=new lR(a,this);g.C(this,this.dc);this.dc.ba(this.A.element);e=new g.CC({D:"div",I:"ytp-chrome-top-buttons"});g.C(this,e);e.ba(this.A.element);this.da=e;this.H=new g.wR(a,this);g.C(this,this.H);this.H.ba(e.element);var f=new g.gR(a,this);g.C(this,f);g.RL(a,f.element,5);f.subscribe("show",(0,g.x)(this.Nh,this,f));this.za.push(f);this.G=new g.iR(a,this,f);g.C(this,this.G);this.G.ba(e.element);this.C=new RQ(a,this);g.C(this,this.C);this.C.ba(e.element);d.ym&&(f=new kR(a),g.C(this,
f),g.RL(a,f.element,4));this.ga&&this.xa.ba(e.element);this.ra=new sQ(a,this,this.A.element);g.C(this,this.ra);this.ra.ba(e.element);f=new tQ(a,this,this.ra);g.C(this,f);f.ba(e.element);this.w=new XQ(a,this);g.C(this,this.w);g.RL(a,this.w.element,5);this.w.subscribe("show",function(){b.Nh(b.w,rO(b.w))});
this.za.push(this.w);this.Ja=new $Q(a,this,this.w);g.C(this,this.Ja);this.Ja.ba(e.element);(this.o="1"==d.controlsType?new UP(a,this,this.u):null)&&g.C(this,this.o);"3"==d.controlsType&&(e=new fR(a,this),g.C(this,e),g.RL(a,e.element,8));this.U=new g.PQ(a,this,this.S);g.C(this,this.U);this.U.subscribe("show",this.rC,this);this.fb=!1;e=new jQ(a,new kQ(a));g.C(this,e);g.RL(a,e.element,4);this.Ha=new g.V({D:"div",M:{tabindex:"0"}});this.Ha.ia("focus",this.GE,this);g.C(this,this.Ha);this.Fa=new g.V({D:"div",
M:{tabindex:"0"}});this.Fa.ia("focus",this.HE,this);g.C(this,this.Fa);(this.ca=d.Ra?null:new g.UQ(a,c,this.U,this.u,this.S,(0,g.x)(this.Qf,this)))&&g.C(this,this.ca);this.P.push(this.S.element);this.ya=null;this.L(a,"fullscreentoggled",this.HI);this.L(a,"offlineslatestatechange",this.WL,this);this.L(a,"cardstatechange",this.Sd,this)};
BR=function(a){var b=a.api.N(),c=g.W(g.zL(a.api),128);return b.u&&c&&!a.api.isFullscreen()};
CR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Ah(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=CR(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.DR=function(a){g.gM.call(this,a);this.load()};
ER=function(){this.o=[];this.u=[];this.w=[]};
GR=function(a,b,c){c=g.pe(c?"AUDIO":"VIDEO");g.Ta(c,Lka);g.yp(c,"loadeddata",(0,g.x)(c.u,c));Cx&&6<=YB&&g.yp(c,"webkitbeginfullscreen",(0,g.x)(c.play,c));a.u.push(c);b?a.w.push(c):FR(a,c);return c};
FR=function(a,b){g.cb(a.u,b)&&!g.cb(a.o,b)&&(b.src||b.load(),g.gb(a.w,b)||a.o.push(b))};
Mka=function(){this.u=200;this.o=12};
Nka=function(a){var b=new Mka;b.u=g.R(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.o=g.R(a.experiments,"html5_gapless_max_played_ranges");return b};
g.HR=function(a,b,c,d){d=void 0===d?!1:d;g.eC.call(this);this.o=a;this.u=b;this.A=c;this.G=d};
Oka=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";if(kJ(b.C)>d/1E3+1)return"in-the-past";if(f.ua&&!isFinite(d))return"live-infinite";if(a.o&&((b=b.o)&&b.isView()&&(b=b.o),b&&b.Wi().length>a.o&&g.DB(e)))return"played-ranges";if(!e.va)return null;if(!e.va.o||!f.va.o)return"non-dash";if(e.va.videoInfos[0].containerType!=f.va.videoInfos[0].containerType)return"container";if(g.DB(f)&&g.DB(e))return"content-protection";a=f.va.o[0].audio;
e=e.va.o[0].audio;return a.sampleRate==e.sampleRate||g.Iv?(a.o||2)!=(e.o||2)?"channel-count":null:"sample-rate"};
JR=function(a,b,c,d){g.A.call(this);var e=this;this.O=a;this.u=b;this.o=c;this.A=this.w=null;this.F=d-1E3*b.Ab();this.G=-1;this.H=!1;this.C=new sG;this.C.then(void 0,function(){});
this.J=new g.I(function(){return IR(e,"timeout")},1E4);
g.C(this,this.J);this.P=isFinite(d);this.B={status:0,error:null}};
Pka=function(a){var b,c,d,e,f,k;return Da(function(l){if(1==l.o)return a.J.start(),ua(l,a.C,2);b=a.u.o;if(b.qf())return IR(a,"ended_in_finishTransition"),l["return"](Promise.reject());if(!a.A||!fw(a.A))return IR(a,"next_mse_closed"),l["return"](Promise.reject());if(a.o.G!=a.A)return IR(a,"next_mse_mismatch"),l["return"](Promise.reject());c=KR(a);d=c.aA;e=c.Zz;CK(a.u,!1,!0);f=LR(b,d,e,!a.o.getVideoData().isAd());DK(a.o,f);a.P&&(a.o.seekTo(a.o.getCurrentTime()+.001,{Kk:!0,ou:3}),f.play());k=b.Ya();
k.cpn=a.u.getVideoData().clientPlaybackNonce;k.st=""+d;k.et=""+e;a.o.Sa("gapless",Sv(k));a.u.Sa("gaplessTo",a.o.getVideoData().clientPlaybackNonce);g.wf(function(){!a.o.getVideoData().re&&g.yD(a.o.getPlayerState())&&eL(a.o)});
MR(a,6);a.dispose();return l["return"](Promise.resolve())})};
PR=function(a){if(a.o.getVideoData().va){UK(a.o,a.A);MR(a,3);NR(a);var b=OR(a),c=b.RB;b=b.HO;c.subscribe("updateend",a.wj,a);b.subscribe("updateend",a.wj,a);a.wj(c);a.wj(b)}};
NR=function(a){a.u.unsubscribe("internalvideodatachange",a.Dh,a);a.o.unsubscribe("internalvideodatachange",a.Dh,a);a.u.unsubscribe("mediasourceattached",a.Dh,a);a.o.unsubscribe("statechange",a.oz,a)};
LR=function(a,b,c,d){return new g.HR(a.isView()?a.o:a,b,c,d)};
MR=function(a,b){b<=a.B.status||(a.B={status:b,error:null},5==b&&a.C.resolve(void 0))};
IR=function(a,b){if(!a.la()&&!a.isFinished()){var c=4<=a.B.status;a.B={status:Infinity,error:b};if(a.u&&a.o){var d=a.o.getVideoData().clientPlaybackNonce;a.u.Sa("gaplessError","cpn."+d+";msg."+b);d=a.u;d.T.rf=!1;c&&QK(d);d.w&&(c=d.w,c.o.ea=!1,c.w&&uH(c))}a.C.reject(void 0);a.dispose()}};
KR=function(a){var b=a.u.o;b=b.isView()?b.u:0;var c=a.u.getVideoData().ua?Infinity:hL(a.u,!0);c=Math.min(a.F/1E3,c)+b;var d=a.P?100:0;a=c-kJ(a.o.C)+d;return{qE:b,aA:a,pE:c,Zz:Infinity}};
OR=function(a){return{RB:a.w.o.o,HO:a.w.u.o}};
QR=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.H=Nka(this.w.N());this.A=null;this.F=function(){return g.wf(function(){return Qka(b)})}};
Rka=function(a,b,c,d){d=void 0===d?0:d;a.o&&RR(a);a.B=new sG;a.o=b;var e=c,f=a.w.qb(),k=f.getVideoData().ua?Infinity:1E3*hL(f,!0);e>k&&(e=k-a.H.u,a.G=!0);f.getCurrentTime()>=e/1E3?a.F():(a.u=f,a.w.addEventListener(g.XD("vqueued"),a.F),e=isFinite(e)||e/1E3>a.u.getDuration()?e:0x8000000000000,a.C=new g.UD(e,0x8000000000000,{namespace:"vqueued"}),a.u.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().ka;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().ua&&(f=Math.min(c/1E3,hL(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),
k=Math.min(d,hL(b)+l));f=xga(e,k)||d;f!=d&&a.o.Sa("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+k))}b=f;a.o.getVideoData().si=!0;a.o.getVideoData().rf=!0;oK(a.o,!0);d="";a.u&&(d=g.kD(a.u.B.A),e=a.u.getVideoData().clientPlaybackNonce,d="crt."+(1E3*d).toFixed()+";cpn."+e);a.o.Sa("queued",d);0!=b&&a.o.seekTo(b+.01,{Kk:!0,ou:3});a.A=new JR(a.H,a.w.qb(),a.o,c);c=a.A;Infinity!=c.B.status&&(MR(c,1),c.u.subscribe("internalvideodatachange",c.Dh,c),c.o.subscribe("internalvideodatachange",c.Dh,c),c.u.subscribe("mediasourceattached",
c.Dh,c),c.o.subscribe("statechange",c.oz,c),c.Dh());return a.B};
Qka=function(a){var b;return Da(function(c){switch(c.o){case 1:if(a.la()||!a.B||!a.o)return c["return"]();a.G&&WJ(a.w.qb(),!0,!1);if(!a.A){c.o=2;break}c.B=3;return ua(c,Pka(a.A),5);case 5:va(c,2);break;case 3:wa(c);case 2:SR(a.w.app,a.o);var d=a.o.getPlayerType();g.TR(a.w.app,d);a.w.playVideo();b=a.B;RR(a);return c["return"](b.resolve(void 0))}})};
RR=function(a){a.u&&(a.w.removeEventListener(g.XD("vqueued"),a.F),a.u.removeCueRange(a.C),a.C.dispose(),a.u=null,a.C=null);if(a.A){if(!a.A.isFinished()){var b=a.A;Infinity!=b.B.status&&IR(b,"Canceled")}a.A=null}a.B=null;a.o=null;a.G=!1};
VR=function(a,b,c){g.A.call(this);var d=this;this.A=a;this.J=b;c.getPlayerType();this.u=c;dka(this.u,this);this.F=new Map;this.o=[];this.G=NaN;this.B=this.w=null;this.C=new g.I(function(){UR(d,d.G)});
g.C(this,this.C);this.H=new g.O(this);g.C(this,this.H);this.H.L(this.A,g.XD("childplayback"),this.P)};
Tka=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.zb();if(d<k)return"";k=1E3*f.getDuration();if(e>k)return"";var l;k=g.q(a.o);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.Ib&&d<m.Lb||e<=m.Lb&&e>m.Ib||e==m.Ib)return"";d==m.Lb&&(l=m)}k="childplayback_"+Ska++;m={Hb:WR(c,!0),Ee:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.Q(a.J.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b={Bb:k,playerVars:b,
playerType:2,durationMs:c,Ib:d,Lb:e,Yd:m,playerResponse:n};a.o=a.o.concat(b).sort(function(t,u){return t.Ib-u.Ib});
l?YR(l,{Hb:WR(l.durationMs,!0),Ee:Infinity,target:b}):(d={Hb:WR(d,!1),Ee:d,target:b},a.F.set(d.Hb,d),f.addCueRange(d.Hb));return k};
WR=function(a,b){return new g.UD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
YR=function(a,b){var c=a.Yd;a.Yd=b;c.Hb.dispose()};
ZR=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.Ib/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{Ih:e,mi:b-f};c=k-e.Lb/1E3}return{Ih:null,mi:b-c}};
UR=function(a,b){var c=a.B||a.A.qb().getPlayerState();$R(a,!0);var d=ZR(a,b).mi;a.u.seekTo(d);d=a.A.qb();var e=d.getPlayerState();g.yD(c)&&!g.yD(e)?d.playVideo():g.W(c,4)&&!g.W(e,4)&&d.pauseVideo()};
$R=function(a,b){a.G=NaN;a.C.stop();a.w&&b&&PK(a.w);a.B=null;a.w=null};
bM=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.F),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Ee>=d&&l.target&&l.target.Lb<=e&&(a.u.removeCueRange(k),l.Hb.dispose(),a.F["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.Ib>=d&&l.Lb<=e?l.Yd.Hb.dispose():f.push(l);a.o=f;d=ZR(a,b/1E3);b=d.Ih;d=d.mi;b&&(d*=1E3,aS(b,d,b.Ib+d));ZR(a,c/1E3)};
aS=function(a,b,c){a.durationMs=b;a.Lb=c;b={Hb:WR(b,!0),Ee:b,target:null};YR(a,b)};
Wia=function(a,b,c){return(a=ZR(a,b).Ih)&&a.playerResponse&&a.playerResponse.streamingData&&(a=a.playerResponse.streamingData.adaptiveFormats)&&(a=a.find(function(d){return d.itag==c}))&&a.url?a.url:null};
cS=function(a,b,c){g.A.call(this);var d=this;this.o=a;this.P=b;c.getPlayerType();this.w=c;this.F=new Map;this.u=[];this.A=this.H=null;this.S=NaN;this.G=this.B=null;this.O=new g.I(function(){bS(d,d.S)});
g.C(this,this.O);this.J=[];this.U=new g.I(function(){var e=d.J.pop();if(e){var f=e.Bb,k=e.playerVars;e=e.playerType;k.prefer_gapless=!0;d.o.preloadVideoByPlayerVars(k,e,NaN,"",f);d.J.length&&g.Bn(d.U,4500)}});
g.C(this,this.U);this.C=new g.O(this);g.C(this,this.C);this.C.L(this.o,g.XD("childplayback"),this.yI);this.C.L(this.o,"onQueuedVideoLoaded",this.tM);this.C.L(this.o,"presentingplayerstatechange",this.zI)};
Vka=function(a,b,c,d,e){var f=a.w;e=void 0==e?d+c:e;if(d>e)return dS(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var k=1E3*f.zb();if(d<k)return dS(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+k),"";k=1E3*f.getDuration();if(e>k)return dS(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+k),"";var l;k=g.q(a.u);for(var m=k.next();!m.done;m=k.next()){m=m.value;if(d>=m.Ib&&d<m.Lb)return dS(a,
"e.overlappingEnter"),"";if(e<=m.Lb&&e>m.Ib)return dS(a,"e.overlappingReturn"),"";if(e==m.Ib)return dS(a,"e.outOfOrder"),"";d==m.Lb&&(l=m)}k="childplayback_"+Uka++;m={Hb:eS(c,!0),Ee:Infinity,target:null};var n={Bb:k,playerVars:b,playerType:2,durationMs:c,Ib:d,Lb:e,Yd:m};a.u=a.u.concat(n).sort(function(u,z){return u.Ib-z.Ib});
l?fS(a,l,{Hb:eS(l.durationMs,!0),Ee:a.P.fa("timeline_manager_transition_killswitch")?Infinity:l.Yd.Ee,target:n}):(b={Hb:eS(d,!1),Ee:d,target:n},a.F.set(b.Hb,b),f.addCueRange(b.Hb));b=g.Q(a.P.experiments,"html5_gapless_preloading");if(a.w==a.o.qb()&&(f=1E3*f.getCurrentTime(),f>=n.Ib&&f<n.Lb)){var p=a.o.qb().getPlayerState(),t=f-n.Ib;qf(function(){gS(a,n,t/1E3,p)});
b=!1}b&&(a.J.unshift(n),g.Bn(a.U,0));return k};
eS=function(a,b){return new g.UD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Wka=function(a,b,c,d){a.A=d;hS(a.o.app,a.w,c,void 0===b?0:b)};
iS=function(a,b,c,d){a.A=d;d=b.Bb;var e=b.playerVars,f=b.playerType;a.H=b;a.o.enqueueVideoByPlayerVars(e,f,c,d)};
fS=function(a,b,c){var d=b.Yd;b.Yd=c;jS(a,b)&&(c=a.o.qb(),d.Hb==a.A&&kS(a),c.removeCueRange(d.Hb),c.addCueRange(b.Yd.Hb));d.Hb.dispose()};
kS=function(a){a.H=null;a.A=null;!a.o.app.Ha.o||a.o.clearQueue()};
lS=function(a,b){jS(a,b)||dS(a,"e.childPlaybackIsNotPresenting");return b.Lb==b.Ib+b.durationMs?b.Ib+1E3*a.o.qb().getCurrentTime():b.Lb};
mS=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Ib/1E3+c,k=f+e.durationMs/1E3;if(f>b)break;if(k>b)return{Ih:e,mi:b-f};c=k-e.Lb/1E3}return{Ih:null,mi:b-c}};
bS=function(a,b){var c=a.G||a.o.qb().getPlayerState();nS(a,!0);var d=mS(a,b),e=d.Ih;d=d.mi;var f=e&&!jS(a,e)||!e&&a.w!=a.o.qb(),k=1E3*d;k=a.A&&a.A.start<=k&&k<=a.A.end;!f&&k||kS(a);e?gS(a,e,d,c):oS(a,d,c)};
oS=function(a,b,c){var d=a.w;if(d!=a.o.qb()){var e=d.getPlayerType();g.TR(a.o.app,e)}d.seekTo(b);pS(a,c)};
gS=function(a,b,c,d){var e=jS(a,b);if(!e){g.TR(a.o.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.eB(a.P,b.playerVars);f.Bb=b.Bb;qS(a.o.app,f,b.playerType,void 0)}f=a.o.qb();e||f.addCueRange(b.Yd.Hb);f.seekTo(c);pS(a,d)};
pS=function(a,b){var c=a.o.qb(),d=c.getPlayerState();g.yD(b)&&!g.yD(d)?c.playVideo():g.W(b,4)&&!g.W(d,4)&&c.pauseVideo()};
nS=function(a,b){a.S=NaN;a.O.stop();a.B&&b&&PK(a.B);a.G=null;a.B=null};
jS=function(a,b){var c=a.o.qb();return!!c&&c.getVideoData().Bb==b.Bb};
cM=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.F),k=f.next();!k.done;k=f.next()){var l=g.q(k.value);k=l.next().value;l=l.next().value;l.Ee>=d&&l.target&&l.target.Lb<=e&&(a.w.removeCueRange(k),l.Hb.dispose(),a.F["delete"](k))}d=b;e=c;f=[];k=g.q(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Ib>=d&&l.Lb<=e){var m=a;m.H==l&&kS(m);jS(m,l)&&g.aM(m.o,l.playerType);l.Yd.Hb.dispose()}else f.push(l);a.u=f;d=mS(a,b/1E3);b=d.Ih;d=d.mi;b&&(d*=1E3,rS(a,b,d,b.Lb==b.Ib+
b.durationMs?b.Ib+d:b.Lb));mS(a,c/1E3)};
rS=function(a,b,c,d){b.durationMs=c;b.Lb=d;d={Hb:eS(c,!0),Ee:c,target:null};fS(a,b,d);jS(a,b)&&1E3*a.o.qb().getCurrentTime()>c&&(b=lS(a,b)/1E3,c=a.o.qb().getPlayerState(),oS(a,b,c))};
dS=function(a,b){a.w.Sa("timelineerror",b)};
uS=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(){sS(c);tS(c)});
g.C(this,this.o)};
sS=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&vS(a,c,!0)});
a.data=(0,g.ve)(a.data,function(c){return!(c.expire<b)})};
vS=function(a,b,c){c&&a.u&&a.u(b.value)};
tS=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))};
wS=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)};
Yka=function(a,b){if(g.hl())return null;var c=Xka();if(!c)return g.CL(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.CL(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.CL(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"==c.state){var d=function(e){"suspended"==c.state&&g.yD(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);xS=!1},null)};
xS||(a.addEventListener("presentingplayerstatechange",d),xS=!0)}return new gE(c,b)};
Zka=function(a,b){Ao(a,"version",b)};
zS=function(a){var b=a.N();g.V.call(this,{D:"div",X:["html5-video-player"],M:{tabindex:"-1",id:a.Eb?a.Eb.rootElementId:a.xa.attrs.id},K:[{D:"div",I:"html5-video-container",M:{"data-layer":"0"}}]});b.transparentBackground&&this.Go("ytp-transparent");b.fa("web_player_icons")&&g.J(this.element,"ytp-exp-contextmenu-icons");b.fa("web_wn_macro_markers")&&g.J(this.element,"ytp-exp-marker-tooltip");Zka(this.element,yS(a));this.app=a;this.A=this.o["html5-video-container"];this.w=new g.sh(0,0,0,0);this.u=null;
this.G=new g.sh(0,0,0,0);this.J=this.U=this.S=NaN;this.C=!1;this.H=NaN;this.O=!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.V=(0,g.x)(function(){this.element.focus()},this);
Rx(b)&&"blazer"!=b.playerStyle&&window.matchMedia&&(this.ca="desktop-polymer"==b.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Ud(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Ud(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Ud(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Ud(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Ud(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Ud(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Ud(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Ud(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Ud(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Ud(640,360)}]);this.Z=b.useFastSizingOnWatchDefault;this.B=new g.Ud(NaN,NaN);$ka(this);this.L(a.u,"onMutedAutoplayChange",this.JI)};
$ka=function(a){var b=a.app.u,c=(0,g.x)(a.JF,a),d=(0,g.x)(a.KF,a),e=(0,g.x)(a.II,a),f=(0,g.x)(a.vF,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)})};
AS=function(a){a.u&&(a.u.removeEventListener("focus",a.V),g.ue(a.u),a.u=null)};
CS=function(a){var b=g.Q(a.app.N().experiments,"html5_aspect_from_adaptive_format"),c=g.U(a.app);if(c=c?c.getVideoData():null){if(c.fg()||c.gg()||c.Yf())return 16/9;if(b&&c.Jn()&&c.va.o)return b=c.va.videoInfos[0].video,BS(b.width,b.height)}return(a=a.u)?BS(a.videoWidth,a.videoHeight):b?16/9:NaN};
DS=function(a,b,c,d){var e=c;isNaN(a.J)?isNaN(a.U)||(e=a.U):e=a.J;a=BS(b.width,b.height);isFinite(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||isNaN(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
BS=function(a,b){return 1>Math.abs(ES*b-a)||1>Math.abs(ES/a-b)?ES:a/b};
FS=function(a){if(1==a.app.U)return!1;if(6==a.app.U)return!0;var b=g.U(a.app);if(!b||tK(b))return!1;var c=g.zL(a.app.u);a=!g.W(c,2)||!g.Q(a.app.N().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().rf;b=g.W(c,1024);return c&&a&&!b&&!c.isCued()};
GS=function(a){var b="3"==a.app.N().controlsType&&!a.C&&FS(a)&&!a.app.Na||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.V):g.Q(a.app.N().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.V)};
HS=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=DS(a,b,a.getVideoAspectRatio()),f=nl();if(FS(a)){var k=CS(a);var l=isNaN(k)||g.Dw||pI&&g.Zx;ol&&!g.Md(601)?k=e.aspectRatio:l=l||"3"==a.app.N().controlsType;l?l=new g.sh(0,0,b.width,b.height):(c=e.aspectRatio/k,l=new g.sh((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1==c&&g.Zx&&(k=l.width-b.height*k,0<k&&(l.width+=k,l.height+=k)));f&&(a.u.style.display="");a.O=!0}else l=-b.height,ol?l*=window.devicePixelRatio:g.Yx&&(l-=window.screen.height),
l=new g.sh(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.O=!1;th(a.G,l)||(a.G=l,g.Kx(a.app.N())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Oh(a.u,new g.Ud(l.width,l.height)),g.Eh(a.u,new g.Sd(l.left,l.top)),d=!0);b=new g.sh((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);th(a.w,b)||(a.w=b,d=!0);g.vh(a.u,"transform",1==c?"":"scaleX("+c+")");return d};
IS=function(){this.w=g.Vr();this.o=new Set;this.A=new Set;this.u=new Set};
pka=function(a,b,c,d){a.o.has(b);a.o.add(b);d=bfa(d);b.visualElement=d;var e=g.Vr(),f=g.Tr();e&&f&&g.js(e,f,[d]);g.Ge(c,function(){JS(a,b)})};
qka=function(a,b,c){a.o.has(b);a.o.add(b);g.Ge(c,function(){JS(a,b)})};
JS=function(a,b){a.o.has(b);a.o["delete"](b);a.A["delete"](b);a.u["delete"](b)};
KS=function(a){if(a.w!=g.Vr())if("UNDEFINED_CSN"==a.w)a.w=g.Vr();else{var b=g.Vr(),c=g.Tr();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.Hd.trackingParams&&e.Hd.veType&&g.js(b,c,[e])}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&!c.Hd.trackingParams&&c.Hd.veType&&g.ks(b,c)}};
LS=function(a,b,c,d,e){g.V.call(this,{D:"div",I:"ytp-horizonchart"});this.w=Math.round(a/c);this.J=b;this.C=c;this.F=d;this.G=e;this.H=0;this.element.style.width=this.w*this.C+"px";this.element.style.height=this.J+"em";this.u=-1;this.B=this.A=null};
MS=function(a,b){if(-1==a.u){try{var c=g.pe("CANVAS");a.A=c.getContext("2d")}catch(m){}if(a.A){var d=a.w*a.C;a.B=c;a.B.width=d;a.B.style.width=d+"px";a.element.appendChild(a.B)}else for(a.C=Math.floor(a.C/4),a.w*=4,c=0;c<a.C;c++)d=g.pe("SPAN"),d.style.width=a.w+"px",d.style.left=a.w*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!=a.u&&(a.u=c,a.A&&(c=1<(window.devicePixelRatio||1)?2:1,a.B.height=a.u*c,a.B.style.height=a.u+"px",a.A.scale(1,c)));c=g.q(b);for(var e=c.next();!e.done;e=
c.next()){d=a;var f=a.H,k=e.value;for(e=0;e+2<d.F.length&&d.F[e+1]<k;)e++;k=Math.min(1,(k-d.F[e])/(d.F[e+1]-d.F[e]));if(d.A)d.A.fillStyle=d.G[e],d.A.fillRect(f*d.w,0,d.w,d.u),d.A.fillStyle=d.G[e+1],d.A.fillRect(f*d.w,d.u*(1-k),d.w,d.u);else{f=d.element.children[f];var l=window.devicePixelRatio||1;k=Math.min(d.u,Math.round(d.u*k*l)/l)||0;f.style.height=k+"px";f.style.backgroundColor=d.G[e+1];f.style.borderTop="solid "+(d.u-k)+"px "+d.G[e]}a.H=(a.H+1)%a.C}c=a.H;a.A?a.A.clearRect(c*a.w,0,a.w,a.u):(c=
a.element.children[c],c.style.height="0px",c.style.borderTop="")};
NS=function(a){var b=null;b={D:"button",X:["html5-video-info-panel-close","ytp-button"],M:{title:"close"},W:"[x]"};g.V.call(this,{D:"div",I:"html5-video-info-panel",K:[b,{D:"div",I:"html5-video-info-panel-content",K:[{D:"div",K:[{D:"div",W:"Video ID / sCPN"},{D:"span",W:"{{video_id_and_cpn}}"}]},{D:"div",K:[{D:"div",W:"Viewport / Frames"},{D:"span",W:"{{dims_and_frames}}"}]},{D:"div",K:[{D:"div",W:"Current / Optimal Res"},{D:"span",W:"{{resolution}}"}]},{D:"div",K:[{D:"div",W:"Volume / Normalized"},
{D:"span",W:"{{volume}}"}]},{D:"div",K:[{D:"div",W:"Codecs"},{D:"span",W:"{{codecs}}"}]},{D:"div",M:{style:"{{shader_info_style}}"},K:[{D:"div",W:"Shader Info"},{D:"span",W:"{{shader_info}}"}]},{D:"div",M:{style:"{{color_style}}"},K:[{D:"div",W:"Color"},{D:"span",W:"{{color}}"}]},{D:"div",M:{style:"{{drm_style}}"},K:[{D:"div",W:"Protected"},{D:"span",W:"{{drm}}"}]},{D:"div",M:{style:"{{bandwidth_style}}"},K:[{D:"div",W:"Connection Speed"},{D:"span",K:[{D:"span",W:"{{bandwidth_chart}}"},{D:"span",
W:"{{bandwidth_kbps}}"}]}]},{D:"div",M:{style:"{{network_activity_style}}"},K:[{D:"div",W:"Network Activity"},{D:"span",K:[{D:"span",W:"{{network_activity_chart}}"},{D:"span",W:"{{network_activity_bytes}}"}]}]},{D:"div",K:[{D:"div",W:"Buffer Health"},{D:"span",K:[{D:"span",W:"{{buffer_health_chart}}"},{D:"span",W:"{{buffer_health_seconds}}"}]}]},{D:"div",M:{style:"{{live_latency_style}}"},K:[{D:"div",W:"Live Latency"},{D:"span",K:[{D:"span",W:"{{live_latency_chart}}"},{D:"span",W:"{{live_latency_secs}}"}]}]},
{D:"div",M:{style:"{{live_mode_style}}"},K:[{D:"div",W:"Live Mode"},{D:"span",W:"{{live_mode}}"}]},{D:"div",M:{style:"{{playback_categories_style}}"},K:[{D:"div",W:"Playback Categories"},{D:"span",W:"{{playback_categories}}"}]},{D:"div",K:[{D:"div",W:"Mystery Text"},{D:"span",W:"{{debug_info}}"}]},{D:"div",M:{style:"{{release_style}}"},K:[{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.w=new LS(300,1,150,b,c);g.C(this,this.w);this.ha("bandwidth_chart",this.w);this.B=new LS(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.B);this.ha("live_latency_chart",this.B);this.A=new LS(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.A);this.ha("buffer_health_chart",this.A);this.C=new LS(300,1,150,d,c);g.C(this,this.C);this.ha("network_activity_chart",this.C);this.u=new g.I(this.it,
500,this);g.C(this,this.u);this.F=a};
OS=function(){};
oka=function(){var a={},b=g.Om();b&&(a.Authorization=b,a["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0));return Ff(a)};
pL=function(){this.o={};var a=Gq("CONSISTENCY");a&&PS(this,{encryptedTokenJarContents:a})};
PS=function(a,b){if(b.encryptedTokenJarContents&&(a.o[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=1E3*Number(b.expirationSeconds);setTimeout(function(){delete a.o[b.encryptedTokenJarContents]},c);
g.Fq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
QS=function(){};
RS=function(){};
SS=function(){};
TS=function(){};
US=function(a,b,c){this.api=a;this.player=b;this.o=[];this.player.subscribe("localmediafetchcomplete",this.w,this);this.u=c};
VS=function(a,b){var c=new g.eB(a.player.N(),{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity});jK(a.player,c,a.u);oK(a.player,!1)};
bT=function(a,b,c){g.A.call(this);var d=this;this.xa=Zea(b||{});this.Eb=c;b=this.xa.args||{};this.o=new Mx(b,c);g.C(this,this.o);g.Q(this.o.experiments,"html5_vp9_new_mime")&&void 0!=navigator.mediaCapabilities&&(Vy=!0);Wy=WS(this,"html5_vp9_mime_full_range_flag");g.Q(this.o.experiments,"html5_disable_subtract_cuepoint_offset")&&(Ft=!0);g.Q(this.o.experiments,"html5_log_opus_oboe_killswitch")&&(Eu=!1);g.Q(this.o.experiments,"html5_skip_empty_load")&&(XS=!0);YS=g.Q(this.o.experiments,"html5_ios_force_seek_to_zero_on_stop");
ZS=g.Q(this.o.experiments,"html5_ios7_force_play_on_stall");$S=g.Q(this.o.experiments,"html5_ios4_seek_above_zero");g.Q(this.o.experiments,"html5_use_alternate_playback_redirect_host")&&(it=!0);g.Q(this.o.experiments,"html5_mediastream_applies_timestamp_offset")&&(NF=!0);this.ne=S(xx(this.o)&&!0,b.enablesizebutton);this.pc=S(!1,b.player_wide);this.G=new uJ;g.C(this,this.G);this.ca=!1;this.setIsExternalPlaylist(b.external_list);this.V=new g.O(this);g.C(this,this.V);this.Z=null;this.da=new g.Zn;g.C(this,
this.da);this.ga=new g.Zn;g.C(this,this.ga);this.na=new IS;this.dc=null;this.u=new rL(this);g.C(this,this.u);this.H=new zS(this);g.C(this,this.H);this.U=1;this.Gb={};this.P=this.o.Gc?Mfa():{volume:100,muted:this.o.mute};this.jd=this.o.Db?new RD(this,1):new OC(this,1);g.C(this,this.jd);this.B=null;this.Hc={};c={};this.Rb=(c.internalvideodatachange=this.iK,c.playbackready=this.kK,c.playbackstarted=this.lK,c.statechange=this.CG,c.signatureexpired=this.ZM,c);this.A=ala(this);this.Gc=new g.O(this);g.C(this,
this.Gc);this.O=new SD(this.o,this.A);this.w=bla(this);c={};this.kd=(c.airplayactivechange=this.aK,c.airplayavailabilitychange=this.bK,c.beginseeking=this.sK,c.endseeking=this.TK,c.internalAbandon=this.eL,c.internalaudioformatchange=this.nK,c.internalvideodatachange=this.ls,c.internalvideoformatchange=this.CN,c.liveviewshift=this.nL,c.playbackstalledatstart=this.jN,c.progresssync=this.rM,c.onLoadProgress=this.oL,c.SEEK_COMPLETE=this.FG,c.SEEK_TO=this.TM,c.onVideoProgress=this.HG,c.onLoadedMetadata=
this.qL,c.onDompaused=this.RK,c.playbackready=this.gM,c.statechange=this.TA,c.connectionissue=this.IK,c.newelementrequired=this.BA,c.heartbeatparams=this.DG,c.videoelementevent=this.GG,c.drmoutputrestricted=this.SK,c.requestmediasource=this.EM,c);this.sa=new g.O(this);g.C(this,this.sa);this.C=null;c=10;g.Jx(this.o)&&(c=3);Ux(this.o)&&(c=g.R(this.o.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Wa=new uS(c,function(e){e!=g.U(d,e.getPlayerType())&&(SA("prefetch_"+e.getVideoData().videoId),
e.dispose())});
g.C(this,this.Wa);this.Wb=this.Xb=-1;this.xb=new g.I(this.H.Ae,16,this.H);g.C(this,this.xb);this.nb=!1;this.Ba=!0;this.Ja=this.fb=this.F=null;this.dd=!1;this.lc=this.gd=null;this.za=0;this.Na=this.Ra=!1;this.ea=null;this.fd=!1;this.hd=!0;this.Fa=void 0;dla(this);this.ya=new cS(this.u,this.o,this.w);this.S=g.Q(this.o.experiments,"web_player_halftime_dai")?new VR(this.u,this.o,this.w):null;this.yd=null;this.Ha=new QR(this.u);g.C(this,this.Ha);this.V.L(this.u,g.XD("appapi"),this.gK);this.V.L(this.u,
"crx_appapi",this.hK);this.V.L(this.u,g.XD("appad"),this.fA);this.V.L(this.u,"crx_appad",this.fA);this.V.L(this.u,"crx_applooprange",this.Qt);this.V.L(this.u,"presentingplayerstatechange",this.EG);this.V.L(this.u,"resize",this.GM);this.H.ba(ae(a));this.V.L(this.u,"offlineslatestatechange",this.VL);this.Jc=ela(this,this.H.element);g.C(this,this.Jc);this.J=null;g.X=this.o.B;this.o.sa&&(g.vM.ux=g.DR);fla(this);this.O.tick("fs");gla(this);this.o.sa&&vka(this.A);g.Ex(this.A.o.N())&&this.A.ld("music");
g.vx(this.A.o.N())&&this.A.ld("embed");WS(this,"web_player_sentinel_is_uniplayer")||g.Jo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));WS(this,"html5_log_non_fatal")&&(this.oe=hla(this));this.ra=null;WS(this,"mweb_hoffline")&&(this.ra=new US(this.u,aT(this,1),function(){return d.Sc()}))};
hla=function(a){function b(c){if(-1!==c.stack.indexOf("player"))(a.C||a.w).B.onError("player.exception",Sv({n:c.name,m:c.message}))}
Ho.push(b);return function(){var c=Ho.indexOf(b);-1!==c&&Ho.splice(c,1)}};
dT=function(a,b,c){var d=this;try{var e="string"===typeof a?a:"player"+g.Ra(a),f=cT[e];if(f){try{f.dispose()}catch(l){g.M(l)}cT[e]=null}var k=new bT(a,b,c);g.Ge(k,function(){cT[e]=null;d.oe&&d.oe()});
return cT[e]=k}catch(l){throw g.M(l),l.stack;}};
bla=function(a){var b=new $J(a.o,1,a.O,a.H,(0,g.x)(a.da.R,a.da),(0,g.x)(a.u.getVisibilityState,a.u),a.G);b.setPlaybackRate(a.o.u?1:eT(a,parseFloat(g.rs("yt-player-playback-rate"))||1));zr(b,a.Rb,a);return b};
xQ=function(a){if(!a.dc){var b={iw:{subscribeEndpoint:RS,unsubscribeEndpoint:SS}};TS.o||(TS.o=new TS);var c=TS.o;OS.o||(OS.o=new OS);oL.o?Mq(Error("Error: InnerTubeTransportService was initialized more than once.")):oL.o=new oL(b,c);a.dc=oL.o}return a.dc};
ala=function(a){var b="",c=yS(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.Jo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new jM(a.u,b);c={};a=(c.destroyed=(0,g.x)(a.fK,a),c);b.C=a;return b};
gT=function(a,b){var c=a.isVideoInfoVisible();a.Z||(a.Z=new NS(a),g.C(a,a.Z),g.RL(a.u,a.Z.element,4));g.GC(a.Z,b);fT(a)&&c!=b&&g.AL(a.A).xG();c=a.C;b&&c&&c.Sa("sfn","1",!0)};
iT=function(a){var b=hT.getTag(!0,!a.o.deviceHasDisplay);a.B=new g.nC(b);g.C(a,a.B);a.C&&DK(a.C,a.B);try{a.o.na?(a.Ja&&a.V.Xa(a.Ja),a.Ja=a.V.L(a.B,"volumechange",a.EL)):WS(a,"web_player_mute_then_volume_killswitch")?(a.B.setVolume(a.P.volume/100),a.B.rh(a.P.muted)):(a.B.rh(a.P.muted),a.B.setVolume(a.P.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));g.ZJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.yr(a.sa);ila(a);c=a.H;c.u=b;c.C=!1;c.u.parentNode||
g.te(c.A,c.u,0);c.G=new g.sh(0,0,0,0);HS(c);GS(c);g.J(c.u,"video-stream");g.J(c.u,"html5-main-video");b=c.app.N();b.Wb&&c.u.setAttribute("data-no-fullscreen",!0);b.yd&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Fm&&c.u&&c.L(c.u,"click",c.u.play,c.u);try{a.B.qj()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),g.ZJ(a.w,"html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
jT=function(a){if(a.B){a.Ja&&(a.V.Xa(a.Ja),a.Ja=null);g.yr(a.sa);a.C&&CK(a.C,!0);AS(a.H);a.B.fh()&&hT.releaseTag(a.B.gb());if(!WS(a,"html5_unset_src_on_remove_killswitch"))try{a.B.bp()}catch(b){}a.B=null}};
g.TR=function(a,b){var c=g.U(a,b);c||(c=aT(a,b),kT(a,c));ZL(a,c)};
ZL=function(a,b){if(a.C!=b){var c=null;a.C&&(c=a.C.getPlayerState(),qM(a.A,3),lT(a,"cuerangesremoved",VG(a.C.P)||[]),a.Ha&&!b.isGapless()&&a.C.isGapless()&&a.B&&a.B.stopVideo(),$L(a));kT(a,b);a.C=b;a.B&&DK(b,a.B);zr(b,a.kd,a);a.ls("newdata",b,b.getVideoData());c&&!g.wD(c,b.getPlayerState())&&a.TA(new g.CD(b.getPlayerState(),c));b.Z.isFinished()&&a.ls("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().Aa)&&c.video)&&a.u.ma("onPlaybackQualityChange",c.quality);lT(a,"cuerangesadded",VG(a.C.P)||
[]);c=b.getPlayerState();g.W(c,2)?mT(a):g.W(c,8)&&b.playVideo()}};
mT=function(a){if(a.F&&g.Bx(a.o)&&g.nT(a)){var b=g.Q(a.o.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);b=!0}else b=!1;b||((b=a.w.o)&&b.rk(),oT(a,BD(yL(a))))};
ila=function(a){var b=a.B;Kv()?a.sa.L(b,"webkitpresentationmodechanged",a.QM):Lv()&&(a.sa.L(b,"enterpictureinpicture",function(){vJ(a.G,!0)}),a.sa.L(b,"leavepictureinpicture",function(){vJ(a.G,!1)}));
Cx&&(a.sa.L(b,"webkitbeginfullscreen",function(){pT(a,3)}),a.sa.L(b,"webkitendfullscreen",function(){pT(a,0)}))};
kT=function(a,b){if(b!=a.w){var c=b.getPlayerType();a.Hc[c]=b}};
$L=function(a){var b;if(b=a.ea)b=a.B,b=!!b&&b===a.ea.w;b&&(jT(a),iT(a));a.C&&(CK(a.C),Ar(a.C,a.kd,a));a.C=null};
g.U=function(a,b){return b?1==b?a.w:a.Hc[b]||null:a.C};
aT=function(a,b){var c=a.O;2==b&&(c=new SD(a.o));return new $J(a.o,b,c,a.H,(0,g.x)(a.da.R,a.da),(0,g.x)(a.u.getVisibilityState,a.u),a.G)};
qT=function(a,b){return a.Ob(b)?a.w:b};
rT=function(a,b){var c=a.C;return c&&b==a.w&&a.Ob(b)&&a.Ob(c)?c:b};
tT=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.A,e;for(e in sT){var f=sT[e];switch(f){case "embed":case "kids":case "remote":case "miniplayer":case "music":case "unplugged":d.ld(f);break;case "attribution":case "fresca":case "ypc":case "ypc_clickwrap":case "yto":case "visualizer":case "webgl":d.ld(f,void 0,!1,!0);break;case "captions":d.ld(f,void 0,!0)}}d.lw();d.B&&c?g.OL(d.o,"endscreen"):d.ld("endscreen");d.B&&c?(g.OL(d.o,"annotations_module"),g.OL(d.o,"creatorendscreen")):(d.Aq(),
d.ld("creatorendscreen",void 0,!0));d.nw();pM(d);c&&RB(b)?a.Gc.L(a.u,"presentingplayerstatechange",a.kM):oM(a.A);a.u.R("videoready",b)};
uT=function(a){return a.w.getVideoData()};
g.vT=function(a,b){var c=g.U(a,1);c&&WJ(c,b)};
wT=function(a){a=uT(a);a.isValid();return RB(a)};
fla=function(a){var b=new g.eB(a.o,a.xa.args);g.ts()&&b.Oc.push("remote");b.isValid()&&(jK(a.w,b,(0,g.x)(a.Sc,a)),!g.Q(a.o.experiments,"html5_delay_initial_loading")&&wT(a)&&(a.o.Hc||a.o.Jc)&&oK(a.w))};
gla=function(a){jla(a);var b=a.xa.args;iT(a);var c=uT(a);a.u.ma("onVolumeChange",a.P);if(b&&aE(b)){var d=Rx(a.o);d&&!a.ca&&(b.fetch=0);xT(a,b);d&&!a.ca?yT(a):c.isValid()||fE(a.F,(0,g.x)(a.No,a))}ZL(a,a.w);g.W(a.w.getPlayerState(),128)||(b=Ffa(a.o.deviceHasDisplay),"fmt.noneavailable"==b?g.ZJ(a.w,"html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"==b?g.ZJ(a.w,b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&wT(a)&&(a.o.Hc||a.o.Jc)?zT(a):
g.rs("yt-player-playback-on-reload")?(Kq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.o.Kc}),Ww(!1),zT(a)):g.by(a.o)||AT(a),WS(a,"web_player_inline_botguard")&&(g.Tx(a.o)&&!WS(a,"web_player_botguard_scheduler_killswitch")||WS(a,"web_player_botguard_use_scheduler")?(Mp(function(){As(a.o.ea)}),Mp(function(){Tq()})):(As(a.o.ea),Tq())))};
AT=function(a){a.u.R("initializingmode");g.BT(a,2);a.A.ld("remote");g.Q(a.o.experiments,"player_cued_miniplayer_module_killswitch")||a.A.ld("miniplayer")};
zT=function(a){if(g.W(a.w.getPlayerState(),128))return!1;wT(a)&&a.o.Jc&&(hT.hasTags(void 0)&&a.Na?(RC(a,{muted:!1,volume:a.P.volume},!1),CT(a,!1)):hT.hasTags(void 0)||a.P.muted||(RC(a,{muted:!0,volume:a.P.volume},!1),CT(a,!0)));DT(a,1,a.w.getVideoData(),!1);a.u.R("initializingmode");ZL(a,a.w);g.BT(a,3);var b;if(!(b=!a.o.Ff)){if(b=a.ea)b=a.B,b=!!b&&b===a.ea.w;b=b&&a.dd}b&&(jT(a),iT(a),DK(a.w,a.B));sK(a.w);if(g.W(a.w.getPlayerState(),128))return!1;oT(a,3);return a.dd=!0};
fT=function(a){a=g.AL(a.A);return!!a&&a.loaded};
ET=function(a,b){a.C==a.w&&jL(a.C)!=b&&(a.C.setLoop(b),a.u.R("loopchange",b))};
FT=function(a,b){if(!a.J)return!1;var c=.001*a.J.startTimeMs,d=.001*a.J.endTimeMs;return Rd(b,c)||Rd(b,d)||b>=c&&b<=d};
eT=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};
GT=function(a,b){var c=g.U(a,b);return c?a.Ob(c)?(c=qT(a,c),aL(c)-c.getCurrentTime()+a.getCurrentTime(b)):aL(c):0};
HT=function(a,b,c){if(a.Ob(c)){c=c.getVideoData();if(a.S){a=a.S;for(var d=g.q(a.o),e=d.next();!e.done;e=d.next())if(e=e.value,c.Bb==e.Bb){b+=e.Ib/1E3;break}d=b;a=g.q(a.o);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Bb==e.Bb)break;var f=e.Ib/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Lb/1E3;else break}c=d}else{a=a.ya;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Bb==e.Bb){b+=e.Ib/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Bb==e.Bb)break;f=e.Ib/1E3;if(f<b)d+=
e.durationMs/1E3+f-e.Lb/1E3;else break}c=d}return c}return b};
jla=function(a){var b=a.H,c=b.app.N();c.Ff||b.Go("tag-pool-enabled");c.Yb&&b.Go("house-brand");"gvn"==c.playerStyle&&(b.Go("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ga&&(b.H=g.Ro("yt-dom-content-change",b.Ae,b));g.Q(c.experiments,"web_player_ios_mweb_resizing")&&b.L(window,"orientationchange",b.Ae,b);b.L(window,"resize",b.Ae,b);b=a.jd;b.A=a.H.element;for(var d in b.w)b.A[d]=b.w[d];(d=wr(a.H.element))&&a.V.L(a.H,d,a.XK);a.V.L(window,"resize",a.HM)};
yL=function(a,b){return 3==a.getPresentingPlayerType()?g.AL(a.A).F:g.U(a,b).getPlayerState()};
IT=function(a,b){return 3==a.getPresentingPlayerType()?BD(g.AL(a.A).F):2!=b||a.Ob()?a.Xb:a.Wb};
KT=function(a){JT(a);ET(a,!1);a.setLoopRange(null);a.Gb={};var b=a.O;if(b.o){var c=b.o;c.A={};c.w={}}b.u=!1;a.S?(b=a.S,a=a.w,a.getPlayerType(),$R(b,!1),bM(b),b.u=a):(b=a.ya,a=a.w,1!=a.getPlayerType()&&dS(b,"e.invalidParentVideoPlayerType"),nS(b,!1),cM(b),b.w=a)};
yT=function(a){var b=LT();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.o])&&c.encrypted_id!=a.F.wa().videoId||(b.index=a.F.o));eE(a.F,b);a.fb&&MT(a,a.fb)}else a.fb=null}else a.Xm()};
xT=function(a,b){a.F&&(a.F.unsubscribe("error",a.Xm,a),g.He(a.F),a.F=null);b&&(a.ca&&(b.fetch=0),a.F=new g.$D(a.o,b),a.F.subscribe("error",a.Xm,a))};
NT=function(a,b,c,d){b in a.Gb||(c=new g.UD(c,d,{id:b,priority:1,namespace:"appad"}),a.w.addCueRange(c),a.Gb[b]=c)};
OT=function(a,b){if(!(b in a))return!1;var c=a[b];g.Ma(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=Ss(Us(d,kla,null),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Ss(Us(d,lla,null),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var k=void 0===k?!1:k;f=Ss(Us(d,mla,null),d,k,"Nielsen OCR URL")}g.Uq(d,void 0,f)});
return!0};
g.BT=function(a,b){b!=a.U&&(2==b&&1==a.getPresentingPlayerType()&&(oT(a,-1),oT(a,5)),a.U=b,a.u.R("appstatechange",b))};
oT=function(a,b){if(a.C){var c=a.C.getPlayerType();if(2==c&&!a.Ob()){a.Wb!=b&&(a.Wb=b,a.u.ma("onAdStateChange",b));return}if(2==c&&a.Ob()||5==c||6==c||7==c)if(-1==b||0==b||5==b)return}a.Xb!=b&&(a.Xb=b,a.u.ma("onStateChange",b))};
PT=function(a){var b=g.U(a,void 0);if(b){a=qT(a,b);b=OK(a);var c=a.getCurrentTime(),d;(d=!a.T.ua)||(d=a.C,d=!(d.w&&d.w.A));a=d||lJ(a.C)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
hS=function(a,b,c,d){d=void 0===d?0:d;var e=g.U(a);e&&(qT(a,e).Bg=!0);Rka(a.Ha,b,c,d).then(function(){a.u.ma("onQueuedVideoLoaded")},function(){})};
DT=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Bb;var f=a.Wa.get(e);if(!f)return null;a.Wa.remove(e);if(g.W(f.getPlayerState(),128))return f.dispose(),null}if(f==g.U(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!=c.oauthToken)return null;d||SR(a,f);return f};
SR=function(a,b){var c=b.getPlayerType();b!=g.U(a,c)&&(1==b.getPlayerType()?(b.getVideoData().autonavState=a.w.getVideoData().autonavState,Ar(a.w,a.Rb,a),c=a.w.getPlaybackRate(),a.w.dispose(),a.w=b,a.w.setPlaybackRate(c),zr(b,a.Rb,a),KT(a)):(c=g.U(a,c))&&c.dispose(),a.C.getPlayerType()==b.getPlayerType()?ZL(a,b):kT(a,b))};
qS=function(a,b,c,d){QA("_start","")||(TA("p",""),a.O.info("srt",0));var e=DT(a,c||a.C.getPlayerType(),b,!1);e&&ZA("pfp",void 0,"prefetch_"+b.videoId);if(!e){e=g.U(a,c);if(!e)return!1;a.xb.stop();QT(a,4,c);jK(e,b,(0,g.x)(a.Sc,a),d)}e==a.w&&(a.o.nb=b.oauthToken);if(!lK(e))return!1;a.nb&&(e.Ja=!1,a.nb=!1);if(e==a.w)return g.BT(a,1),zT(a);sK(e);return!0};
RT=function(a,b,c){c=g.U(a,c);b&&c==a.w&&(c.getVideoData().Yg=!0)};
ST=function(a,b,c){var d=g.U(a,c);if(d){QT(a,4,c);jK(d,b,(0,g.x)(a.Sc,a));if(2==c&&a.w&&(c=a.w.B,c.o)){c=c.o;var e=b.clientPlaybackNonce,f=b.Nl||"";b=b.breakType||0;g.AI(c,g.kD(c.o),"ad_playback",[e,f,b])}d==a.w&&(g.BT(a,1),AT(a))}};
g.TT=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(xx(a.o)||g.Vx(a.o))return c=c||{},c.lact=Wp(),c.vis=a.u.getVisibilityState(),a.u.ma("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.O;c.o&&(f=c.o,f.A={},f.w={});c.u=!1;a.O.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.nT=function(a){if(a.u.isMutedByMutedAutoplay())return!1;if(3==a.getPresentingPlayerType())return!0;Rx(a.o)&&!a.ca&&yT(a);return!(!a.F||!a.F.hasNext())};
MT=function(a,b){var c=g.w(b);if(c){var d=LT();d&&d.list&&c();a.fb=null}else a.fb=b};
LT=function(){var a=g.w("yt.www.watch.lists.getState");return a?a():null};
g.UT=function(a){if(!a.B||!a.B.fh())return null;var b=a.B;if(a.ea){var c=a.ea;c.w?c.w!==b&&(g.iE(c),c.w=b,c.u=null):c.w=b}else a.ea=Yka(a.u,b),a.ea&&g.C(a,a.ea);return a.ea};
VT=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);ML(a,[new g.UD(1E3*c,1E3*d,b)],1);return!0};
ML=function(a,b,c){var d=g.U(a,c);d&&(d=d.P,d.u(),SG(d.o,b),d.A=NaN,d.u(),c&&a.getPresentingPlayerType()!=c||lT(a,"cuerangesadded",b))};
g.WT=function(a,b,c){var d=g.U(a,c);d&&(UG(d.P,b),c&&a.getPresentingPlayerType()!=c||lT(a,"cuerangesremoved",b))};
g.jR=function(a,b,c){var d=g.U(a,c);d&&(b=WG(d.P,b),c&&a.getPresentingPlayerType()!=c||lT(a,"cuerangesremoved",b))};
XT=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
RC=function(a,b,c){a.o.J&&(a.P=b,b.muted||CT(a,!1),c&&a.o.Gc&&!a.o.na&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.qs("yt-player-volume",c),g.qs("yt-player-volume",c,2592E3))),ZT(a),c=g.Iv&&a.B&&!a.B.Tc(),!a.o.na||c)&&(b=g.Rb(b),a.o.Gc||(b.unstorable=!0),a.u.ma("onVolumeChange",b))};
ZT=function(a){var b=a.getVideoData();if(!b.Fh){b=a.o.na?1:TB(b);var c=a.B;WS(a,"web_player_mute_then_volume_killswitch")?(c.setVolume(a.P.volume*b/100),c.rh(a.P.muted)):(c.rh(a.P.muted),c.setVolume(a.P.volume*b/100))}};
CT=function(a,b){b!=a.Na&&(a.Na=b,a.u.ma("onMutedAutoplayChange",b))};
$T=function(a){var b=ur(!WS(a,"web_player_fullscreen_shadow_killswitch"));return b&&(b==a.H.element||a.B&&b==a.B.gb())?b:null};
bU=function(a,b){var c=window.screen&&window.screen.orientation;if(g.Q(a.o.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.Iv||!aU))if(b){var d=0==c.type.indexOf("portrait"),e=a.H.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ra||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.Ja);a.Ra=!0}}else a.Ra&&(a.Ra=!1,c.unlock())};
pT=function(a,b){var c=!!b,d=!!a.G.w!=c,e=a.G;e.w!=b&&(e.w=b,e.ii());WS(a,"html5_media_fullscreen")&&!c&&a.B&&$T(a)==a.B.gb()&&a.B.rk();a.H.Ae();d&&a.O.tick("fsc");d&&(a.u.R("fullscreentoggled",c),d=uT(a),c={fullscreen:c,videoId:d.Du||d.videoId,time:a.getCurrentTime()},a.u.getPlaylistId()&&(c.listId=a.u.getPlaylistId()),a.u.ma("onFullscreenChange",c))};
lT=function(a,b,c){a.u.R(b,c);var d=g.Jx(a.o)||g.Kx(a.o)||Wx(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.ma(e,c)}};
QT=function(a,b,c){fs(a.za);a.za=0;var d=g.U(a,c);d&&1!=a.U&&2!=a.U&&(d==a.C&&qM(a.A,b),1==c&&(g.Q(a.o.experiments,"html5_stop_video_in_cancel_playback")&&d.stopVideo(),JT(a)),g.zK(d),lT(a,"cuerangesremoved",VG(d.P)||[]),d.P.reset(),a.Ha&&d.isGapless()&&(CK(d,!0),DK(d,a.B)))};
cU=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.U(a,e);if(!k||(2!=k.getPlayerType()||a.Ob(k)||f)&&!g.KB(k.getVideoData()))3==a.getPresentingPlayerType()?g.AL(a.A).kl("control_seek",b,c):(k==a.w&&a.J&&!FT(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
dU=function(a,b,c,d){if(!a.nb){c&&(jT(a),iT(a));a.nb=!0;c=g.U(a);c.Ja=!0;c.Sa("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.ua?sB(e)&&g.Vx(a.o)&&(f.live_utc_start=aL(c),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Fe&&(f.vvt=e.Fe);e.Hi&&(f.vss_credentials_token=e.Hi,f.vss_credentials_token_type=e.Ii);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.vf+1;f.reload_reason=b;e.Pj&&(f.unplugged_partner_opt_out=e.Pj);
a.loadVideoByPlayerVars(f,void 0,d)}};
eU=function(a,b){uT(a).autonavState=b;g.qs("yt-player-autonavstate",b);a.u.R("autonavchange",b)};
fU=function(a){var b=a.getVideoData().Fh,c=a.o.Eg,d=a.B;b||c?d.Eq():(d.Iq(),RC(a,a.P))};
ela=function(a,b){return g.Q(a.o.experiments,"html5_enable_embedded_player_visibility_signals")&&a.o.u?new wS(b):null};
JT=function(a){(a=rM(a.A))&&a.created&&a.destroy()};
WS=function(a,b){return g.Q(a.o.experiments,b)};
gU=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]=Ah(a,d);b.hidden=!!a.hidden};
dla=function(a){var b=a.o,c=document.requestStorageAccess&&document.hasStorageAccess;g.Q(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.Zx&&c&&b.u?pl()||b.V?(Kq("embedsStorageAccessNotChecked",{isIosWebview:pl(),isPemPlayer:b.V}),a.Fa=!1):document.hasStorageAccess().then(function(d){Kq("embedsHasStorageAccessResult",{hasCookieAccess:d,resultedInError:!1});a.Fa=!d},function(d){Kq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Jo(Error("Embeds ITP Error: "+d));a.Fa=!1}):a.Fa=!1};
hU=function(a,b){var c=void 0;if(g.Jx(a.o)&&lq(b)&&kq(b)){var d=a.getVideoData().Ne();d&&(c={Authorization:"Bearer "+d})}g.Uq(b,void 0,void 0,c)};
yS=function(a){return a.Eb?a.Eb.jsUrl:a.xa.assets&&a.xa.assets.js?a.xa.assets.js:""};
iU=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
jU=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
nla=function(){var a=null;kr().then(function(b){return a=b},function(b){return a=jU(b)});
return a};
ola=function(){var a=Xf(1E3,"NO_BID");return Lf(Nf(Jf([kr(),a]),jU),function(){return a.cancel()})};
kU=function(a){this.o=a;this.A=g.R(a.N().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.w=this.u=1};
lU=function(a,b,c,d){c=void 0===c?{}:c;var e=c.jk,f=c.Hb,k=void 0===c.lu?0:c.lu;d=void 0===d?"":d;c=a.o.getVideoData(1);var l=a.o.N().zh,m={AD_BLOCK:a.u++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:a.o.N().Wa?pr(nr.getInstance(),140)?3:2:1,CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*PT(a.o.app),LACT:Wp(),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.wL(a.o).getPlayerSize().height,P_W:g.wL(a.o).getPlayerSize().width,YT_REMOTE:l?l.join(","):""},n=nq(mq);Object.keys(n).forEach(function(p){null!=n[p]&&(m[p.toUpperCase()]=n[p].toString())});
""!==d&&(m.BISCOTTI_ID=d);d={};(e=a.o.N().za)&&lq(b)&&(d.forced_experiments=e);b=iq(g.gn(b,m),d);d=b.split("?");if(2!=d.length)return Gf(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;f=e.next().value;e={};c.oauthToken&&kq()&&(e.Authorization="Bearer "+c.oauthToken);if(f=(c=dq(f))&&c.post_data)k=dq(c.post_data),Object.assign(c,k),delete c.post_data;return f?Zq(d,{Cw:!0,format:"RAW",headers:e,method:"POST",yb:c,timeout:a.A,withCredentials:!0}):Zq(b,{Cw:!0,format:"RAW",headers:e,method:"GET",
timeout:a.A,withCredentials:!0})};
mU=function(a,b,c,d){this.w=a;this.Qc=null;this.u=b;this.o=0;this.Ub=void 0===c?!1:c;this.visible=!0;this.A=void 0===d?!1:d};
nU=function(a,b,c,d,e){g.UD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.w=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.o=!1;this.A=null};
oU=function(a){return"AD_PLACEMENT_KIND_START"==a.w};
pU=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.w};
pla=function(a){return a.end-a.start};
qU=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Hi(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Hi(Math.max(0,b.w-b.o),0x7ffffffffffff):new Hi(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 Hi(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return a=
b.Qc,d=1E3*a.startSecs,c?d<b.u?new Hi(d-4E3,d):new Hi(Math.floor(b.u+Math.random()*Math.max(0,d-b.u-1E4)),d):new Hi(d,d+(0<a.durationSecs?1E3*a.durationSecs:5E3))}return null};
sU=function(a,b,c){b=void 0===b?null:b;c=void 0===c?{}:c;this.id=rU(a);this.componentType=a;this.macros=c;this.renderer=b};
rU=function(a){return a+(":"+(kn.getInstance().o++).toString(36))};
tU=function(a,b,c){this.id=c;this.content=a;this.actionType=b};
vU=function(){g.A.call(this);var a=this;this.o={};uU(this,"commandExecutorCommand",function(b,c,d){b.commands&&qla(a,b.commands,c,d)});
uU(this,"clickTrackingParams",function(){})};
rla=function(a,b){return uU(a,b.o(),function(c,d,e){b.Ca(c,d,e)})};
uU=function(a,b,c){if(a.o[b])return g.M(Error("Extension name "+b+" already registered")),function(){};
a.o[b]=c;return function(){delete a.o[b]}};
qla=function(a,b,c,d){d=void 0===d?{}:d;b.forEach(function(e){return a.executeCommand(e,c,d)})};
wU=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)};
xU=function(a,b,c){this.u=a;this.A=b;this.w=c};
yU=function(a){this.u=a};
zU=function(a){this.u=a};
AU=function(a){this.aa=a};
BU=function(a){this.u=a};
CU=function(a){this.o=a;kq()};
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=sla(this)};
sla=function(a){var b=new vU;g.C(a,b);[new xU(a.o.OD,a.o.PD,a.o.hc),new yU(a.o.QD),new zU(a.o.SD),new AU(a.o.aa),new DU(a.o.kh),new EU(a.o.NJ),new BU(a.o.dE),new FU,new GU].forEach(function(c){return rla(b,c)});
["adInfoDialogEndpoint","adFeedbackEndpoint"].forEach(function(c){return uU(b,c,function(){})});
return b};
IU=function(a){this.u=a;this.o=null};
tla=function(a){return JU(a).then(function(){return new Bf(function(b,c){var d=KU();(d=d?LU(d):null)&&"adSizes"in d[0]?b((0,g.Fc)(d[0].adSizes,function(e){return new g.Ud(e.adWidth,e.adHeight)})):c(Error("No slots registered with GPT services"))})})};
ula=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 Xf(200).then(function(){return c(d-1)})}};
a.o=Ff().then(function(){return c(b)})}return a.o};
NU=function(a,b,c){var d=Xf(5E3).then(function(){throw Error("Timed out while waiting for GPT set companion");}),e=new Bf(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.pe("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 Jf([e,d])};
MU=function(){var a=KU();if(!a)return!1;a=LU(a);return g.Ma(a)&&0!=a.length?null!=ae("google_companion_ad_div"):!1};
KU=function(){var a=le();return g.w("googletag.cmd",a)?a:null};
LU=function(a){a=void 0!==a.googleGetCompanionAdSlots?Io(a.googleGetCompanionAdSlots)():void 0;return void 0!==a&&0<a.length?a:null};
vla=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};
wla=function(a){return a.o?tla(a.o):Gf("GPT is not enalbed")};
xla=function(a){var b=new PU(a.aa,Hx(a.aa.N())&&!a.bG?new IU(a.hF):null);return{PE:function(){return b}}};
QU=function(a,b){this.o=a;this.Z=b||{};this.G=String(Math.floor(1E9*Math.random()));this.F={};this.P=0};
yla=function(a){this.w=a;this.u={};this.o=lh()?500:g.Jx(a.N())?1E3:2500};
Ala=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 zla(a,c)};
zla=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||[]]])};
Bla=function(a){return(a=a.pings)?Object.fromEntries(SU(a)):{}};
TU=function(a,b,c){QU.call(this,a,Bla(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.ca=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.A=new RU(0,[]);this.C=this.U=null;this.da=b;this.S=[];this.w={};this.V=null;this.u=0;this.H=this.J=this.B=null;b=this.o.skipOffsetMilliseconds||0;0<b&&(this.V=b);this.w=dq(this.o.playerVars||"");if(b=this.o.external)this.S=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=b/1E3,this.w.length_seconds=this.u.toString()),(b=Ala(this.da,
this.S))?(this.J=b.uri,b=b.mimeType,this.w.url_encoded_third_party_media="url="+encodeURIComponent(this.J)+"&type="+encodeURIComponent(b)):this.H=Error("Nonplayable third party ad media file.");else if(this.B=this.w.video_id,this.U=this.w.ucid||null,this.u=nx(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};
$U=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};
aV=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
bV=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Cla=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=$U(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=$U(a.progressCommands.filter(function(c){return bV(c)&&Rd(aV(c),0)}));
b.first_quartile=$U(a.progressCommands.filter(function(c){return bV(c)&&Rd(aV(c),.25)}));
b.midpoint=$U(a.progressCommands.filter(function(c){return bV(c)&&Rd(aV(c),.5)}));
b.third_quartile=$U(a.progressCommands.filter(function(c){return bV(c)&&Rd(aV(c),.75)}));
b.complete=$U(a.progressCommands.filter(function(c){return bV(c)&&Rd(aV(c),1)}));
return b};
cV=function(a){QU.call(this,a,Cla(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};
dV=function(a,b,c,d){this.id=b;this.J=a.placementStartPings||[];this.H=a.placementEndPings||[];this.u=d.Qc;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=qU(b,d);if(null==f)d=new nU(b,new Hi(-1,-1),!1,"adcuerange:invalid",
2),d.o=!0,d=[null,d];else{e=":"+(kn.getInstance().o++).toString(36);var k=d.Ub||d.Qc;f=new nU(b,f,d.visible&&!k,"adcuerange:"+e,2);k=null;if(d.Qc||0<d.o){var l=qU(b,d,!0);l&&(k=new nU(b,l,!1,"prefetch:"+e,d.A?3:2),f.A=k,k.A=f)}d=[k,f]}this.O=d[0];this.P=d[1];this.o=c;this.F=!1;this.B={};this.G={};this.A=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
eV=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.wb().w||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.wb().w};
fV=function(a){return"AD_PLACEMENT_KIND_START"==a.wb().w};
hV=function(a){var b={};Dla(a,b);Ela(b);b.LACT=gV(function(){return Wp().toString()});
b.VIS=gV(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=gV(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
iV=function(a){var b=Object.assign({},{});b.MIDROLL_POS=eV(a)?gV(yb(Math.round(a.wb().start/1E3).toString())):gV(yb("0"));return b};
jV=function(){var a=Object.assign({},{});a.FINAL=gV(yb("1"));a.SLOT_POS=gV(yb("0"));return a};
Fla=function(a){var b={};b.SLOT_POS=gV(yb(a.A.o.toString()));return b};
kV=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};
gV=function(a){return{toString:function(){return a()}}};
lV=function(a){for(var b={},c=g.q(Gla),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
mV=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.na(b)));return c};
Hla=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.Ob(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};
Dla=function(a,b){b.CPN=gV(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(Nq(Error("Video data is null.")),c=null);return c});
b.AD_MT=gV(function(){return nV(a,2)});
b.MT=gV(function(){return nV(a,1)});
b.P_H=gV(function(){return g.wL(a).getPlayerSize().height.toString()});
b.P_W=gV(function(){return g.wL(a).getPlayerSize().width.toString()});
b.PV_H=gV(function(){return g.wL(a).getVideoContentRect().height.toString()});
b.PV_W=gV(function(){return g.wL(a).getVideoContentRect().width.toString()})};
nV=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
Ela=function(a){a.CONN=gV(yb("0"));a.WT=gV(function(){return Date.now().toString()})};
Ila=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}};
oV=function(){g.P.call(this);var a=this;this.o={};g.Ge(this,function(){return Object.keys(a.o).forEach(function(b){return delete a.o[b]})})};
qV=function(){if(null===pV){pV=new oV;Em.getInstance().o="b";var a=Em.getInstance(),b="h"==lm(a)||"b"==lm(a),c=!(Ei.getInstance(),!1);b&&c&&(a.B=!0,a.C=new Dca)}return pV};
Jla=function(a,b){Object.keys(a.o).forEach(function(c){a.o[c]===b&&delete a.o[c]})};
rV=function(){};
sV=function(a){this.o=a};
tV=function(a){g.A.call(this);var b=this;this.u=a;this.o=null;g.Ge(this,function(){return b.o=null})};
vV=function(a){return uV(a)&&1==a.getPlayerState(2)};
uV=function(a){a=a.qb();return void 0!==a&&2==a.getPlayerType()};
wV=function(a){a=a.N();return Hx(a)&&!g.Vx(a)&&"desktop-polymer"==a.playerStyle};
xV=function(a,b){var c=a.N();Ax(c)||"3"!=c.controlsType||(c=g.wL(a),Ax(c.app.N()),c.C=!b,GS(c))};
Kla=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};
Lla=function(a){this.o=a;var b=Em.getInstance();a=a.Ob();b.A!==a&&((b.A=a)||lda(b))};
yV=function(a,b,c,d,e,f,k){f=void 0===f?new CU(new sV(d.getVideoData(1))):f;k=void 0===k?!1:k;g.A.call(this);this.u=a;this.H=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={Lu:.25,av:.5,kv:.75};this.B=null;this.J=k};
EV=function(a,b,c){!zV(a)&&0<c&&(AV(a,b),BV(a)?CV(a,b,c):DV(a,b,c))};
IV=function(a){if(BV(a)){var b=a.o.getCurrentTime(2,!1);FV(a,"impression",b,0)}else GV(a,"impression");GV(a,"start");zV(a)||a.o.isFullscreen()&&HV(a,"fullscreen")};
JV=function(a,b){zV(a)||(BV(a)?(AV(a,0,!0),CV(a,b,b)):(AV(a,0,!0),DV(a,0,0,!0)),GV(a,"complete"))};
Mla=function(a,b){b&&b.forEach(function(c){c.baseUrl&&a.C.send(c.baseUrl,KV(a),{})})};
AV=function(a,b,c){for(c=void 0===c?!1:c;a.u.P<a.F.length;){var d=LV(a,"progress"),e=a.F[a.u.P];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&a.C.send(e,KV(a),d),a.u.P++;else break}};
DV=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.A.Lu||d)&&GV(a,"first_quartile");(b>=c*a.A.av||d)&&GV(a,"midpoint");(b>=c*a.A.kv||d)&&GV(a,"third_quartile")};
FV=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;GV(a,b)};
CV=function(a,b,c){if(0<c&&0<b){var d=g.zL(a.o,a.o.getPresentingPlayerType());g.W(d,16)||g.W(d,32)||(FV(a,"first_quartile",b,c*a.A.Lu),FV(a,"midpoint",b,c*a.A.av),FV(a,"third_quartile",b,c*a.A.kv))}a.B=b};
HV=function(a,b){for(var c=LV(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,KV(a),c);a.u.F[b]=!0};
GV=function(a,b){a.u.F.hasOwnProperty(b)||HV(a,b)};
MV=function(a,b){return a.u.F.hasOwnProperty(b)};
KV=function(a){for(var b={},c=hV(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)};
LV=function(a,b){var c=a.H;var d=a.u;if(d.Pk()){var e=Kla(b);if(null==e)d={};else{var f;(f=d.O()())||(f=(f=c.o)&&f.qb?(f=f.qb())&&2==f.getPlayerType()?kK(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.o.isFullscreen()},d=Lm(e,d.G,c)):d={}}}else d={};return d?Object.assign({},d):{}};
NV=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")}};
BV=function(a){return!g.Q(a.o.N().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.J};
zV=function(a){return BV(a)&&!MV(a,"impression")};
OV=function(a){return BV(a)&&MV(a,"seek")};
Nla=function(a){this.o=a};
Y=function(a,b,c,d,e,f){f=void 0===f?0:f;g.P.call(this);this.aa=a;this.vb=d;this.u=e;this.u.o[b.G]=this;this.u.subscribe("e",this.nB,this);this.u.subscribe("j",this.oB,this);this.u.subscribe("k",this.pB,this);this.u.subscribe("l",this.qB,this);this.u.subscribe("m",this.rB,this);this.u.subscribe("n",this.sB,this);this.u.subscribe("s",this.tB,this);this.C=b;this.O=[];this.macros=c;this.F=!1;a=new Nla(this.aa.N());0==f||1==f&&(a.o.o||g.Vx(a.o)||g.Jx(a.o)||Lx(a.o)||!g.Zx)?f=!0:(f=g.de("video-ads"),f=
null!=f&&"none"!=Ah(f,"display"));this.S=!f};
PV=function(a){a.S?a.Vb("ui_unstable"):a.Zb()};
RV=function(a,b){lb(a.O,b);QV(a,b,1)};
SV=function(a){a=a.vb;a.w=mV(a.w,kV(0,"No playable media files can be selected"));GV(a,"error")};
QV=function(a,b,c){0!=b.length&&(b=(0,g.Fc)(b,function(d){return new tU(d,c,d.id)}),a.R("onAdUxUpdate",b))};
TV=function(a){return(a=a.aa.getVideoData(2))&&a.clientPlaybackNonce||""};
UV=function(){QU.apply(this,arguments)};
VV=function(a,b){sU.call(this,"action-companion",a,b)};
WV=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.o=null};
XV=function(a,b){var c=b.renderer;return c&&c.adVideoId==a.videoId};
YV=function(a,b,c){if(!g.Q(a.aa.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.hc(g.hd(e[0].url))&&(e[0].url=b.Od);(e=d.bannerImage&&d.bannerImage.thumbnail&&d.bannerImage.thumbnail.thumbnails||null)&&e.length&&g.hc(g.hd(e[0].url))&&(e[0].url=b.channelBanner);e=d.headline;null!=e&&g.hc(g.hd(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.Mf))}RV(a,[c])};
Ola=function(a){var b={};b.abandon=a.abandonCommands&&ZU(a.abandonCommands.commands)||[];return b};
ZV=function(a){QU.call(this,a,Ola(a))};
$V=function(a,b){sU.call(this,"ad-action-interstitial",a,b)};
aW=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e,1);this.w=b;this.o=b.o.durationMilliseconds||0;this.Da=null;this.A=f};
bW=function(a,b){sU.call(this,"ad-choice-interstitial",a,b)};
cW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.o=b};
dW=function(a){QU.call(this,a);this.u=dq(this.o.playerVars||"")};
eW=function(){QU.apply(this,arguments)};
fW=function(){QU.apply(this,arguments)};
Pla=function(a){a=a.impressionUrls;var b={};a&&(b.impression=a);return b};
gW=function(a){QU.call(this,a,Pla(a))};
hW=function(){QU.apply(this,arguments)};
iW=function(){QU.apply(this,arguments)};
jW=function(){QU.apply(this,arguments)};
kW=function(){QU.apply(this,arguments)};
lW=function(){QU.apply(this,arguments)};
mW=function(){QU.apply(this,arguments)};
nW=function(a,b,c,d,e,f,k,l,m,n,p,t,u,z,B){this.V=a;this.G=b;this.F=c;this.P=d;this.O=e;this.J=f;this.u=k;this.H=l;this.o=m;this.U=n;this.S=p;this.w=t;this.B=u;this.A=z;this.C=B};
oW=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);var k=this;this.A=b;this.o=new g.I(function(){k.Vb("load_timeout")},1E4);
g.C(this,this.o);this.B=f;this.w=new g.O(this);g.C(this,this.w)};
pW=function(a){sU.call(this,"ad-message",a)};
qW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);var f=this;this.A=b;this.B=b.o.durationMs||0;this.w=this.o=0;this.G=function(){var k=f.aa.getProgressState().current;k<f.o?f.Bc():k>f.w&&f.Uc()}};
rW=function(a,b){sU.call(this,"ads-engagement-panel",a,b)};
sW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
tW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
uW=function(a,b){sU.call(this,"invideo-overlay",a,b)};
vW=function(a,b){sU.call(this,"invideo-overlay-as-cta",a,b)};
wW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.o=b};
xW=function(a,b){sU.call(this,"persisting-overlay",a,b)};
yW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e);this.o=b};
zW=function(a){return a?g.T(a):null};
AW=function(a){if(!a)return[];a=a.loggingUrls;if(!a)return[];a=a.map(function(b){return b.baseUrl});
return 0===a.length?[]:a};
Qla=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
BW=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
CW=function(a,b,c,d,e){this.u=a;this.w=b;this.o=hV(d);this.A=c;this.C=d;this.B=e};
EW=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?DW(a,e):a.A.Tg()};
b.skipShown=function(){DW(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
FW=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&&(Rla(a,b,d.adInfoDialogRenderer),b.whyThisAdInfo.menuTitle=zW(c.hoverText)||"",d.adInfoDialogRenderer.muteAdRenderer&&(c=d.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Sla(a,b,c))}};
DW=function(a,b){if(b){var c=GW(a);g.Ma(b)?b.forEach(function(d){return a.u.executeCommand(d,c)}):a.u.executeCommand(b,c)}};
Rla=function(a,b,c){var d=zW(c.confirmLabel)||"",e=zW(c.title)||"",f=c.adReasons?c.adReasons.map(function(k){return zW(k)||""}):[];
b.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};b.whyThisAdClicked=function(){DW(a,c.impressionEndpoints)};
b.whyThisAdClosed=function(){DW(a,c.confirmServiceEndpoint)}};
Sla=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:zW(c.text)||"",surveyOptions:[]};b.muteAdInfo=e;c=AW(c.navigationEndpoint);var f=BW(c[1]),k=[BW(c[0])];(c=Qla(d))&&k.push(c);var l=!1;b.muteAdClicked=function(){l=!0;DW(a,f)};
b.muteAd=function(){l||DW(a,f);l=!1;DW(a,k)};
Tla(b,d)}}};
Tla=function(a,b){a.muteAdInfo.goneText=zW(b.title)||"";a.muteAdInfo.questionText=zW(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=zW(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=zW(f.reason)||"";f=AW(f.endpoint);c.push({label:e,url:f[0]})}};
GW=function(a){if(g.Q(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)};
HW=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(){}}};
Ula=function(a,b,c,d,e,f){this.o=c;this.u=new CW(a,b,d,e,f)};
Vla=function(a,b,c){var d=HW();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){DW(a.u,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":EW(a.u,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":FW(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)};
return d};
IW=function(a,b){sU.call(this,"pla-shelf",a,b)};
JW=function(a,b,c,d,e){Y.call(this,a,b,mV(c,{TRIGGER_TYPE:"YOUTUBE_SHELF_SHOW"}),d,e);this.o=b};
KW=function(a,b){sU.call(this,"shopping-companion",a,b)};
LW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e)};
Wla=function(a,b,c,d,e){this.o=new CW(a,b,c,d,e)};
Yla=function(a,b){var c=HW();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){DW(a.o,e)};
var d=Xla(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":EW(a.o,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":FW(a.o,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.o.sendAdsPing(e)};
return c};
Xla=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};
OW=function(a,b,c){g.P.call(this,!0);var d=this;this.C=b;this.B=c;this.u=a;this.Da=new g.Vf(200);this.Da.ia("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.Da.stop());e=d.o/1E3;d.B&&MW(d.B,e);NW(d,{current:e,duration:d.u/1E3})});
g.C(this,this.Da);this.o=0;this.w=null;g.Ge(this,function(){d.w=null});
this.A=0};
NW=function(a,b){a.C.ma("onAdPlaybackProgress",b);a.w=b};
PW=function(a){sU.call(this,"survey",a)};
Zla=function(a,b,c){return g.Q(b.N().experiments,"enable_external_player_ad_playback_progress_html5")?new OW(1E3*a.u,b,c):null};
QW=function(a,b,c,d,e,f,k){Y.call(this,a,b,c,d,e,1);var l=this;this.A=b;this.w=new g.O;g.C(this,this.w);this.w.L(this.aa,"resize",function(){450>g.wL(l.aa).getPlayerSize().width&&(g.yr(l.w),l.Bc())});
this.G=f;this.B=k(this);if(this.o=Zla(b,a,f))g.C(this,this.o),this.w.L(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.A.o,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,DW(l.B.o,m&&m.timeoutCommands)):Mq(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
RW=function(a,b){sU.call(this,"survey-interstitial",a,b)};
SW=function(a,b,c,d,e){Y.call(this,a,b,c,d,e,1);this.o=b};
TW=function(a){sU.call(this,"ad-text-interstitial",a)};
UW=function(a,b,c,d,e,f){Y.call(this,a,b,c,d,e);this.w=b;this.o=b.o.durationMilliseconds||0;this.Da=null;this.A=f};
VW=function(a,b){g.A.call(this);this.A=Math.max(0,a);this.w=this.u=0;this.B=b;this.o=null};
WW=function(a){a.o&&(a.o.stop(),a.o.dispose(),a.o=null)};
XW=function(){sU.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.o=null};
YW=function(a){a=void 0===a?null:a;sU.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
ZW=function(a){a=void 0===a?null:a;sU.call(this,"ad-title");this.videoTitle=a};
$W=function(a){a=void 0===a?null:a;sU.call(this,"advertiser-name");this.channelName=a};
aX=function(a){sU.call(this,"player-overlay",a)};
bX=function(a){sU.call(this,"skip-button",a)};
cX=function(a){sU.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Rb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
dX=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.U=n;this.o=b;this.A=k;this.V=new g.O(this);g.C(this,this.V);this.G=new g.I(function(){t.Vb("load_timeout")},g.Q(a.N().experiments,"use_variable_load_timeout")?g.R(a.N().experiments,"variable_load_timeout_ms"):1E4);
g.C(this,this.G);this.w=null;g.Q(a.N().experiments,"enable_bulleit_buffer_timer")&&(this.w=new VW(g.Q(a.N().experiments,"use_variable_buffer_timeout")?g.R(a.N().experiments,"variable_buffer_timeout_ms"):15E3,function(){t.Vb("buffer_timeout")}),g.C(this,this.w));
this.ea=!g.Q(a.N().experiments,"bulleit_unstarted_event_killswitch");this.J=!1;this.da=m(this);this.ca=f;this.H=l;this.B=p;this.P=this.Z=!1};
gX=function(a,b){eX(a)&&a.P&&(a.P=!1,$la(a.U,fX(a),b))};
eX=function(a){return hX(a.B)||iX(a.B)||jX(a.B)||kX(a.B)};
lX=function(a){return(a=a.aa.getVideoData(2))?a.clientPlaybackNonce:""};
fX=function(a){if(a=a.o.o.elementId)return a;Mq(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
mX=function(a){var b=new XW;b.adBadgeText="Ad";var c=a.o.A;1<c.u&&(b.adPodPositionInfoString=g.gN("$AD_INDEX of $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.o=c.w/1E3);if(a=a.o.B)b.adVideoId=a;return b};
pX=function(a){var b=a.o.o,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.aa.N();if(g.Vx(d)&&!c.skipOrPreviewRenderer){var e=a.aa.getDuration(2);isFinite(e)&&33<e&&!a.o.isSkippable()&&!g.Vx(d)&&Mq(new Lq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.o.isSkippable()&&!VU(a.o)?d.skipAdRenderer=nX(a):d.adPreviewRenderer=oX(a,!1,VU(a.o));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Ob(c.skipOrPreviewRenderer)&&
Mq(new Lq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
nX=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=oX(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
oX=function(a,b,c){var d=a.aa.getVideoData(1),e={};if(b||c){var f={},k={};c=c?g.gN("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.gN("You can skip to video in $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.gN("Video will play after ad",{NEW_LINE:"\n"}),f.text=k,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;
f={};f.url=Qx(a.aa.N(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
ama=function(a){function b(E,G){return mV(a.WN,lV(jV()),G)}
function c(E){return null==E?{create:function(){return null}}:{create:function(G,F){var ka=b(G,F),pa=a.hm(G,ka);
ka=E(G,ka,pa);g.C(ka,pa);return ka}}}
var d=c(function(E,G,F){return new wW(a.aa,E,G,F,a.Rc)}),e=c(function(E,G,F){return new tW(a.aa,E,G,F,a.Rc)}),f=c(function(E,G,F){return new LW(a.aa,E,G,F,a.Rc)}),k=c(function(E,G,F){return new JW(a.aa,E,G,F,a.Rc)}),l=c(function(E,G,F){return new aW(a.aa,E,G,F,a.Rc,a.oa)}),m=c(function(E,G,F){return new yW(a.aa,E,G,F,a.Rc)}),n=c(function(E,G,F){return new WV(a.aa,E,G,F,a.Rc)}),p=c(function(E,G,F){return new UW(a.aa,E,G,F,a.Rc,a.oa)}),t=c(function(E,G,F){return new SW(a.aa,E,G,F,a.Rc)}),u=c(function(E,
G,F){return new cW(a.aa,E,G,F,a.Rc)}),z=c(function(E,G,F){return new qW(a.aa,E,G,F,a.Rc,a.oa)}),B=c(function(E,G,F){return new oW(a.aa,E,G,F,a.Rc,a.oa)}),D=c(function(E,G,F){return new sW(a.aa,E,G,F,a.Rc)});
this.o=new nW({create:function(E,G){var F=mV(b(E,G),lV(Fla(E))),ka=a.hm(E,F),pa=new dX(a.aa,E,F,ka,a.Rc,a.gE,a.oa,a.Ub,function(bc){return new Ula(a.oa,F,E,bc,a.aa,a.kh)},a.mg,a.hc);
g.C(pa,ka);return pa}},d,e,f,{create:function(E,G){var F=a.hm(E,G),ka=new QW(a.aa,E,G,F,a.Rc,a.oa,function(pa){return new Wla(a.oa,G,pa,a.aa,a.kh)});
g.C(ka,F);return ka}},k,l,m,n,p,t,u,z,B,D)};
qX=function(a){this.u=a;this.o={}};
rX=function(a){a=void 0===a?null:a;g.P.call(this,!0);this.u=a;this.A=-Infinity;this.w={};this.o=null};
tX=function(a){null!==a.o&&(sX(a,a.o),a.o=null);a.u=null};
sX=function(a,b){b>=a.u.end||(a.u.end=b,a.R("Shortened the latest cuerange",b))};
uX=function(a){g.A.call(this);this.o=[];var b=a.subscribe("Shortened the latest cuerange",this.u,this);g.Ge(this,function(){a.pg(b)})};
vX=function(a){g.A.call(this);this.o=new uX(a.PN);g.C(this,this.o);this.u=new qX(a.oE)};
wX=function(){QU.apply(this,arguments)};
bma=function(a,b,c){this.w=a;this.o=b;this.u=c;this.A=a.getCurrentTime()};
dma=function(a,b){var c=void 0===c?Date.now():c;if(a.u)for(var d=a.o.clientPlaybackNonce,e=g.q(b),f=e.next();!f.done;f=e.next()){f=f.value;var k=c;xX({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:cma(f.event),cuepointId:f.identifier,totalCueDurationMs:1E3*f.durationSecs,playheadTimeMs:f.o,cueStartTimeMs:1E3*f.startSecs,cuepointReceivedTimeMs:k,contentCpn:d}});"unknown"===f.event&&yX("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",d);f=f.startSecs+f.o/1E3;f>a.A&&a.w.getCurrentTime()>f&&yX("DAI_ERROR_TYPE_LATE_CUEPOINT",
d)}};
ema=function(a,b,c){a.u&&xX({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.o.clientPlaybackNonce}})};
zX=function(a,b){a.u&&xX({driftRecoveryInfo:{contentCpn:a.o.clientPlaybackNonce,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.ny-b.aB).toString(),driftFromHeadMs:Math.round(1E3*PT(a.w.app)).toString()}})};
fma=function(a,b){a.u&&xX({adTrimmingInfo:{contentCpn:a.o.clientPlaybackNonce,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.VD}})};
yX=function(a,b){xX({daiStateTrigger:{errorType:a,contentCpn:b}})};
xX=function(a){Kq("adsClientStateChange",a)};
cma=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.Q(this.u.N().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.u.N().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.ca=a?this.u.N().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.U=a?this.u.N().deviceParams.cbrand:"";this.V=a?this.u.N().deviceParams.cmodel:"";this.J="AD_PLACEMENT_KIND_UNKNOWN";this.B=this.H=this.F=this.C=null;this.o="unknown_type";this.P=!0;this.O=this.w=this.G=!1;this.S="vod";this.A=null};
BX=function(a){a.C=null;a.F=null;a.H=null;a.B=null;a.A=null;a.J="AD_PLACEMENT_KIND_UNKNOWN";a.o="unknown_type";a.G=!1;a.w=!1};
CX=function(a){a.w=!1;WA("ad_to_video",["pbresume"],void 0)};
gma=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.A].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.wf(function(){return FX(c,b,1)})};
HX=function(a,b,c,d,e,f,k,l){g.P.call(this);this.wc=a;this.aa=b;this.o=d;this.B=this.o.o instanceof QU?this.o.o:null;this.u=null;this.P=!1;this.F=c;this.J=(a=b.getVideoData(1))&&a.ua||!1;this.S=0;this.U=!1;this.V=g.Q(b.N().experiments,"abort_ad_on_browser_autoplay_blocked");this.Je=e;this.Pi=f;this.Cg=k;this.O=!1;this.Ub=l};
IX=function(a){if(uV(a.aa)){var b=a.aa.getVideoData(2);(b=a.o.G[b.Bb]||null)?(!a.u||a.u&&a.u.C!==b)&&a.Zb(b):a.Do()}else 1===a.aa.getPresentingPlayerType()&&a.u&&a.Do()};
JX=function(a){(a=a.baseUrl)&&g.Uq(a,void 0,fn(a))};
KX=function(a,b){var c=a.F,d=a.o.wb().w,e=a.Ow(),f=a.Qw();var k=a.isLiveStream()?"live":"vod";BX(c);var l=c.u.getVideoData(1),m=c.u.getVideoData(2);l&&(c.C=l.clientPlaybackNonce,c.H=l.videoId);m&&(c.F=m.clientPlaybackNonce,c.B=m.videoId,c.A=m.adFormat);c.J=d;0>=f?BX(c):(c.o=c.P?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.S=k,c.O=e+1==f,c.G=!0,c.G&&(bB("c",c.Z,c.o),bB("cver",c.ca,c.o),g.Q(c.u.N().experiments,"html5_ad_csi_tracker_initialization_killswitch")||(bB("cbrand",c.U,c.o),bB("cmodel",
c.V,c.o)),bB("yt_pt","html5",c.o),bB("yt_pre","2",c.o),bB("yt_abt",gma(c.J),c.o),c.C&&bB("cpn",c.C,c.o),c.H&&bB("docid",c.H,c.o),c.F&&bB("ad_cpn",c.F,c.o),c.B&&bB("ad_docid",c.B,c.o),bB("yt_vst",c.S,c.o),c.A&&bB("ad_at",c.A,c.o)))};
MX=function(a,b){b=void 0===b?!1:b;LX(a.wc,a.o.wb(),a);b||lr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.Ub&&!a.o.F&&(hma(a,a.Rw()),a.o.F=!0)};
hma=function(a,b){for(var c=NX(a),d=a.o.wb().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(!ima(a,k,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+OX(p)},0);
ema(a.Je,pla(a.o.wb()),c);fma(a.Je,{cueIdentifier:a.o.u&&a.o.u.identifier,VD: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.wb().end;var c=a.Pi;a=a.o.wb().start;var d=g.rb(c.o,a);0<=d?c=a:(a=-d-1,c=a>=c.o.length||c.o[a]>b?null:c.o[a]);return Math.min(b,null===c?Infinity:c)};
ima=function(a,b,c,d){var e=a.Cg.create(b,lV(iV(a.o)));c=e.Aw(c,d);g.He(e);if(!c)return!1;a.o.G[c]=b;return!0};
jma=function(a){if(a.U)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor((0,g.H)()/1E3)-a.S;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};
QX=function(a,b,c,d,e){g.P.call(this);this.u=a;this.A=b;this.B=c;this.o=d;this.w=e;kma(this)};
mma=function(a,b){var c=null,d={isEmpty:!0,Xx:!1,Ah:[]};try{c=JSON.parse(b.response)}catch(f){return b.response&&(c=b.response,c.startsWith("GIF89")||(f.params=c.substr(0,256),g.Jo(f))),d}if(!c)return d;if(c&&c.adThrottled)return d.Xx=!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.db(c))return d;if(0<a.o.wb().end){var e=a.o.wb().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.Ah=c;
d.isEmpty=!1;return d};
kma=function(a){[a.o.O,a.o.wb()].filter(function(b){return null!=b}).forEach(function(b){LX(a.u,b,a)});
lr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
RX=function(a,b,c){g.V.call(this,a);this.aa=b;this.A=c;this.B=nma(this)};
SX=function(a,b){if(b=void 0===b?null:b){var c=a.B;b.forEach(function(d){return a.A.executeCommand(d,c)})}};
nma=function(a){var b=a.aa;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 Wp().toString()});
c.VIS=a(function(){return b.getVisibilityState().toString()});
c.VOL=a(function(){return b.getVolume().toString()});
return c}return{}};
TX=function(a){g.A.call(this);this.G=a};
UX=function(a){TX.call(this,!0);this.o=a};
VX=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 Wp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
WX=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.J=null;var d=(0,g.x)(a,b);this.o=new g.I(function(){return d(c.J)},300);
g.C(this,this.o);this.H=this.G=Infinity};
XX=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.HC.call(this,c);this.api=a;this.oa=b;this.macros={};this.componentType=d;this.F=null;this.xa=e;this.da=null;this.za=new UX(this.element);g.C(this,this.za);this.sa=this.L(this.element,"click",this.onClick);this.S=[];this.O=new WX(this.onClick,this);g.C(this,this.O);this.Fa=!1;this.G=null};
YX=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Jo(Error("Got null or undefined adText object")),"";var c=g.hd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Jo(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};
ZX=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.db(a.thumbnails)||null==a.thumbnails[0].url)?"":g.hd(a.thumbnails[0].url)};
oma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.db(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Ud(0,0):new g.Ud(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
$X=function(a,b,c){g.UL(a.api,b,a);g.VL(a.api,b,c)};
aY=function(a,b,c){YL(a.api,b)&&g.XL(a.api,b,c)};
bY=function(a,b){b=void 0===b?null:b;var c=a.api.N();!(0<a.S.length)&&c.o&&g.Q(a.api.N().experiments,"use_touch_events_for_bulleit_mweb")&&(tx?0:"ontouchstart"in document.documentElement&&(lh()||kh()))&&(a.Xa(a.sa),b&&a.Xa(b),a.S=[a.L(a.element,"touchstart",a.wJ,a),a.L(a.element,"touchmove",a.vJ,a),a.L(a.element,"touchend",a.uJ,a)])};
cY=function(){g.A.call(this);var a=this;this.o=new Map;this.u=g.Hp(document.body,"click",function(b){if(b.target&&(b=a.o.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Uq(b[c],void 0,void 0)},"ytp-ad-has-logging-urls")};
eY=function(){null==dY&&(dY=new cY);return dY};
gY=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=fY(c);if(d){c=g.oe("SPAN",null,d);break a}}c=g.qe(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(pma(e,b))}return 1==c.length?c[0]:g.oe("SPAN",null,c)};
pma=function(a,b){var c=null,d=a.text;b&&(d=fY(d)||d);a.bold&&(c=g.oe("B",null,c||d));a.italics&&(c=g.oe("I",null,c||d));a.strikethrough&&(c=g.oe("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.oe("A",null,c||d);g.ad(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),eY().register(c,e),g.J(c,"ytp-ad-has-logging-urls")}return c||g.oe("SPAN",
null,d)};
fY=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.oe("BR")),b.push(a[c]);return b}return null};
hY=function(a){TX.call(this,a);this.C=new g.P;g.C(this,this.C)};
iY=function(a,b,c){g.A.call(this);this.o=a;this.A=b;this.view=c();g.C(this,this.view);this.J=null;this.H=[];this.macros={};this.O=!1;this.hide()};
kY=function(a,b){var c=jY(a);b.forEach(function(d){return a.A.executeCommand(d,c)})};
jY=function(a){for(var b={},c=g.q(Object.entries(VX(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};
lY=function(a){g.P.call(this);this.A=a;this.u=new g.V({D:"div",I:"ytp-ad-info-dialog-confirm-container",K:[{D:"button",I:"ytp-ad-info-dialog-confirm-button",W:"{{content}}"}]});g.C(this,this.u);this.u.hide();this.w=new g.V({D:"div",I:"ytp-ad-info-dialog-title",W:"{{content}}"});g.C(this,this.w);this.w.hide();this.o=new g.V({D:"div",I:"ytp-ad-info-dialog-relative-container",K:[{D:"div",I:"ytp-ad-info-dialog-form",K:[this.w,{D:"ul",I:"ytp-ad-info-dialog-ad-reasons"},{D:"div",I:"ytp-ad-info-dialog-message",
W:"{{content}}"},this.u]}]});g.C(this,this.o);this.o.hide();this.B=new g.O(this);g.C(this,this.B)};
mY=function(a){return a.o.o["ytp-ad-info-dialog-ad-reasons"]};
nY=function(a){return a?gY(a):null};
oY=function(a){hY.call(this,!1);var b=this;this.o=new lY(a.gb());g.C(this,this.o);a={};for(var c=g.q(Object.values(qma)),d=c.next();!d.done;a={rm:a.rm},d=c.next())a.rm=d.value,this.o.subscribe(a.rm,function(e){return function(){return b.dispatchEvent({type:e.rm})}}(a))};
pY=function(a,b,c){iY.call(this,a,b,function(){return new rma.TC(c)});
this.w=new g.O(this);g.C(this,this.w);this.u=null;sma(this)};
sma=function(a){function b(e){return a.onClick(e)}
for(var c=g.q(tma),d=c.next();!d.done;d=c.next())a.w.L(a.view,d.value,b)};
qY=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-out-of-player-ad-info",K:[{D:"div",I:"ytp-out-of-player-hover-container"},{D:"div",I:"ytp-out-of-player-ad-info-button-container",K:[{D:"button",X:["ytp-out-of-player-ad-info-button"],K:[{D:"span",I:"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 pY(this.api,this.oa,new UX(this.B));
g.C(this,this.w);this.A=new g.O(this);g.C(this,this.A);this.tr();(new UX(this.element)).append(this.w.view);this.A.L(this.C,"mouseenter",this.iH);this.A.L(this.C,"mouseleave",this.tr);this.A.L(this.B,"click",this.hH);this.hide()};
rY=function(a,b,c){RX.call(this,{D:"div",I:"videowall-companion-container",K:[{D:"iframe",I:"videowall-companion",M:{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.Oh(e,c.iframeWidth||300,c.iframeHeight||250);this.u=new qY(a,b);g.C(this,this.u);this.u.ba(this.element,0);this.w.adInfoRenderer&&this.w.adInfoRenderer.adHoverTextButtonRenderer?this.u.init(rU("watch-ad-info-hover-button"),
this.w.adInfoRenderer.adHoverTextButtonRenderer,{}):g.M(Error("VideowallIframeCompanionAdRenderer has no ad info renderer."));e&&this.L(e,"load",function(){SX(d,c.impressionCommands);var f=uma(e);f&&d.L(f,"click",function(k){g.xe(d.u.element,k.target)||(SX(d,d.w.onClickCommands),d.aa.onAdUxClicked("videowall-companion"))})})};
uma=function(a){try{var b=a.contentDocument||a.contentWindow.document;return b&&b.body}catch(c){return g.M(c),null}};
sY=function(){wX.apply(this,arguments)};
tY=function(a){return a.length?(0,g.Fc)(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
uY=function(a,b,c,d,e,f,k){Y.call(this,b,d.o,e,f,k);this.H=c;this.A=d;this.o=d.o;this.G=a;this.w=this.B=null;a=this.A.wb();a.visible=!1;LX(this.G,a,this);lr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
wY=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.H=vY(this.Bn())};
xY=function(a){a.C++;var b=a.Bn();b?a.Zb(b):a.Kg()};
vY=function(a){return a?vma.some(function(b){return a instanceof b}):!1};
wma=function(a){this.o=new PX(function(b){b=new HX(a.wc,a.aa,a.pw(),b,a.Je,a.Pi,a.Cg,a.Ub);MX(b);return b},function(b){return new QX(a.wc,a.aa,a.Zp,b,a.Je)},function(b){var c=a.hm(b.o);
b=new uY(a.wc,a.aa,a.hE,b,a.cm,c,a.Rc);g.C(b,c);return b},function(b){b=new wY(a.wc,a.aa,a.pw(),b,a.Je,a.Pi,a.Cg,a.Ub);
MX(b);return b})};
yY=function(a,b,c,d){d=xma(c,d);var e={D:"div"};d&&(e={D:"div",I:"image-companion",K:[{D:"img",M:{src:d.url,border:"0",style:"cursor:pointer;"}}]});RX.call(this,e,a,b);this.u=c;this.w=new qY(a,b);g.C(this,this.w);this.w.ba(this.element,0);this.u.adInfoRenderer&&this.u.adInfoRenderer.adHoverTextButtonRenderer?this.w.init(rU("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.Oh(a,d.width,d.height),this.ia("click",this.C,this),SX(this,c.impressionCommands)};
xma=function(a,b){if(!a.image||!a.image.thumbnail)return null;var c=a.image.thumbnail;return null==c.thumbnails?null:g.$a(c.thumbnails||[],function(d){return d.width==b.width&&d.height==b.height})};
zY=function(a){wX.call(this,a);this.u=(0,g.Fc)((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.Ud(b.width,b.height)})};
AY=function(a,b){XU.call(this);a.adStart&&a.adStart.adMessageRenderer&&(Kq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),YU(this,new eW(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 ZV(e.adActionInterstitialRenderer),YU(this,e)):e.adIntroRenderer&&(e=new dW(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}})};
BY=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}})}};
CY=function(a,b){XU.call(this);var c=a.persistingOverlay;this.w=c&&c.persistingAdOverlayRenderer?new iW(c.persistingAdOverlayRenderer):null;YU(this,yma(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new cV(c.instreamSurveyAdRenderer);break a}}c=null}YU(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.u=1,c=new ZV(c.adActionInterstitialRenderer)):c=null:c=null;YU(this,c)};
yma=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new ZV(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new mW(b.adTextInterstitialRenderer):b.adMessageRenderer?(Kq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new eW(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new lW(b.surveyTextInterstitialRenderer):null};
DY=function(a,b){this.u=a;this.o=b};
zma=function(a){var b=new sV(a.zq),c=new CU(b);return{KE:function(){return b},
ar:function(){return c}}};
EY=function(a,b){this.u=a;this.o=b};
FY=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 dV(b,c,k,d)}catch(l){g.M(l)}};
Ama=function(a){var b=new EY(a.MD,a.hc);return{Nw:function(){return b}}};
GY=function(a){g.A.call(this);this.o=a;this.w=new Lla(a.aa);this.u=new tV(a.aa);g.C(this,this.u)};
Bma=function(a){return function(){return new AX(a.o.aa)}};
HY=function(a){return function(b,c){return new yV(b,a.w,c,a.o.aa,a.u,a.o.kh,a.o.Ub)}};
IY=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=wr(a);if(c){var d=function(){b.o&&b.o(!!ur())};
this.u.addEventListener(c,d);g.Ge(this,function(){b.u.removeEventListener(c,d)})}};
JY=function(a){g.A.call(this);this.o=a};
Cma=function(a){var b=window.document;return g.Vx(a.N())?new IY(b):new JY(a)};
KY=function(a){g.A.call(this);this.o=new bma(a.aa,a.zq,a.Ub)};
LY=function(a){this.u=a;this.o=-1};
MY=function(a){g.Q(a.u.N().experiments,"stop_use_time_since_last_ad_service")||(a.o=(0,g.H)()/1E3,g.Uq(a.u.N().C+"mac_204?action_fcts=1"))};
NY=function(a){return g.Q(a.u.N().experiments,"stop_use_time_since_last_ad_service")?0:0<a.o?Math.ceil((0,g.H)()/1E3-a.o):0};
PY=function(a){OY=a&&a.data};
RY=function(a){QY=a&&a.data};
TY=function(a){SY=a&&a.data};
VY=function(a){UY=a&&a.data};
WY=function(){UY=SY=OY=null};
XY=function(a){a.addEventListener("updateKevlarOrC3Companion",PY);a.addEventListener("onPlaShelfInfoCardsReady",RY);a.addEventListener("updateEngagementPanelAction",TY);a.addEventListener("changeEngagementPanelVisibility",VY);window.addEventListener("yt-navigate-start",WY)};
ZY=function(a,b,c,d){g.P.call(this);var e=this;this.o=a;this.ga=null;this.Ja=b;this.Ha=d.RD;this.Fa=d.ND;this.H=d.hc;b=this.o.getVideoData(1).getPlayerResponse()||{};this.w=b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;this.za=xla({hF:3E4,bG:wV(a),aa:a}).PE();this.A=null;this.O=saa(function(){e.o.la()||g.OL(e.o,"ad",1)});
this.u=null;this.C=new Map;b=this.o.N().experiments;var f=zma({zq:a.getVideoData(1)}),k=new GY({kh:f.ar(),aa:a,Ub:this.w});g.C(this,k);this.F=new Set;this.Z=-1;this.V=[];this.G=null;this.P=new Map;this.ca=c;this.S=new Set;this.B=new g.O(this);g.C(this,this.B);this.J=new g.O(this);g.C(this,this.J);this.da=this.ya=this.ea=!1;this.U=g.Vx(a.N());c=new HU({experiments:b,OD:this,PD:this.Fa,QD:f.KE(),SD:this,dE:this,NJ:this,kh:f.ar(),aa:this.o,hc:this.H});g.C(this,c);this.Ra=c.u;c=new KY({zq:YY(this),tT:this,
eb:this.o.N(),Ub:this.w,aa:this.o});g.C(this,c);this.Ba=c.o;c=new rX;c.subscribe("Identified a new cuerange",this.AA,this);c.subscribe("Shortened the latest cuerange",this.gL,this);g.C(this,c);var l=new vX({PN:c,oE:this});g.C(this,l);this.na=g.Q(b,"html5_dai_assume_unordered_cuepoints")?l.u:c;this.sa=l.o;var m=Vb(lV(hV(this.o)));d=new ama({oa:this,gE:k.u,Rc:qV(),kh:f.ar(),aa:this.o,WN:m,hm:HY(k),Ub:this.w,mg:d.mg,hc:this.H});this.Na=(new wma({Zp:this.Ja,Cg:d.o,wc:this,hE:this.za,Rc:qV(),pw:Bma(k),
Je:this.Ba,Pi:this.sa,aa:this.o,cm:m,hm:function(n){return HY(k)(n,m)},
Ub:this.w})).o;this.ra=Ama({MD:new DY(new yla(a),b),hc:this.H}).Nw();this.xa=Cma(this.o);g.C(this,this.xa);this.Wa=g.by(this.o.N())?g.Q(this.o.N().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.Q(this.o.N().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
$Y=function(a){return a&&a.adPlacements?a.adPlacements.map(function(b){return b.adPlacementRenderer}).filter(function(b){return b&&null!=b.renderer}):[]};
aZ=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.Vx(a.o.N())&&YY(a).Pe()||(a.G=c),!1):!0})};
bZ=function(a,b){a.P=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.P.set(c.elementId,c),!1):!0})};
Dma=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 QX?!1:c instanceof HX?!c.ki():!0})};
dZ=function(a){var b=Ema(a);if(0<b.length){Dma(a,b)&&a.O();var c=g.R(a.o.N().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.U&&g.Jx(a.o.N())?(c=new g.I(function(){cZ(a,b)},c),g.C(a,c),c.start()):g.wf(function(){cZ(a,b)})}else a.O()};
Fma=function(a,b){if(!b)return{};var c=!!a.u&&a.u||null;c?(c=c.u,c=c.C.Pk()?LV(c.vb,b):{}):c={};return c};
Ema=function(a){for(var b=[],c=g.q(a.F),d=c.next();!d.done;d=c.next())d=d.value,oU(d)&&b.push(d);c=g.q(b);for(d=c.next();!d.done;d=c.next())a.F["delete"](d.value);return b};
gZ=function(a,b,c){0!=b.length&&(iX(a.H)||jX(a.H)||kX(a.H)||eZ(a.H))&&(b={Ah:b,contentCpn:null!==YY(a)?YY(a).clientPlaybackNonce:"",Ar:c},fZ(a.Ha,b))};
Hma=function(a,b,c){c=void 0===c?null:c;b=a.ra.create(b,Gma(a),a.V.length,c);a.V=a.V.concat(b);return b};
cZ=function(a,b){if(!a.la())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.ul(d.value)};
hZ=function(a,b,c){c=void 0===c?null:c;Ima(b);b=Hma(a,b,c);return 0==b.length?null:b.map(function(d){return a.Na.create(d)})};
kZ=function(a,b){b.gj()?(g.He(a.A),a.A=b):((b.Zg()||b.wl())&&a.A&&a.A.wb().start<b.wb().start&&iZ(a),b.Vx()&&jZ(a,b))};
iZ=function(a){var b=a.za;if(b.o)b.o&&ula(b.o);else{var c=b.u.getVideoData(1);b.u.ma("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})}g.He(a.A);a.A=null};
jZ=function(a,b){a.u&&lZ(a,a.w);a.u=b;b.ki()&&mZ(a)};
mZ=function(a){a.ea||(a.J.L(a.o,"presentingplayerstatechange",a.uI),a.J.L(a.o,"internalAbandon",a.SJ),a.J.L(a.o,"progresssync",a.EN),a.J.L(a.o,"onVolumeChange",a.vI),a.J.L(a.xa,"fullscreentoggled",a.tI),a.ea=!0);g.J(g.xL(a.o),"ad-showing");a.w||(g.J(g.xL(a.o),"ad-interrupting"),g.Q(a.o.N().experiments,"enable_html5_teal_ad_badge")&&wV(a.o)&&g.J(g.xL(a.o),"ad-teal-design"),g.TR(a.o.app,2))};
lZ=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.ki()&&(uV(a.o)||a.w);d=b&&d&&d.reset()||null;a.u&&nZ(a,a.u);a.u=null;a.Z=-1;e&&oZ(a,c);a.da||a.O();b&&d&&(d.wb().o=!1,MX(d,!0))};
oZ=function(a,b){g.yr(a.J);a.ea=!1;g.Mn(g.xL(a.o),"ad-showing");a.w||(a.Wa?(a.da||a.O(),pZ(a),a.o.cueVideoByPlayerVars({},2)):(a.o.cueVideoByPlayerVars({},2),pZ(a)),g.Mn(g.xL(a.o),"ad-interrupting"),g.Q(a.o.N().experiments,"enable_html5_teal_ad_badge")&&g.Mn(g.xL(a.o),"ad-teal-design"));b&&b(a.o)};
pZ=function(a){if(a.ya)!a.U&&g.Jx(a.o.N())&&(g.Q(a.o.N().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.Q(a.o.N().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.aM(a.o,2);else if(g.aM(a.o,2),!a.U){var b=g.zL(a.o,1);g.W(b,4)&&!g.W(b,2)&&a.o.playVideo()}};
LX=function(a,b,c){if(b instanceof nU){if(a.U&&pU(b)&&g.W(g.zL(a.o,1),64)&&!a.w){var d=qZ(a);d!=b.start&&b.contains(d)&&(b.o=!0)}a.C.has(b)?g.M(Error(b.toString()+" has already been seen")):(a.F.add(b),a.C.set(b,c),oU(b)||g.NL(a.o,[b],1))}else g.M(Error("Should use AdCueRange instead of CueRange"))};
Gma=function(a){var b=1E3*a.o.getDuration(1);return new mU(b,qZ(a),g.Q(a.o.N().experiments,"enable_upg_processed_dvr_dai")?a.w:YY(a).Pe(),g.Q(a.o.N().experiments,"enforce_cuerange_priority_on_web"))};
qZ=function(a){return 1E3*a.o.getCurrentTime(g.Q(a.o.N().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0)||0};
FX=function(a,b,c){g.WT(a.o.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.F["delete"](c),a.C["delete"](c)};
YY=function(a){return a.o.getVideoData(1)};
nZ=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)};
rZ=function(a,b){var c=a.o.app;1==b&&(c.O.tick("vr"),c.za||(c.za=gs(dB,c.oA,c)),dL(c.C),TD(c.O,c.C.getVideoData(),XT(c)));var d=c.o;(g.by(d)&&d.Db||g.Kx(d))&&(c.Ob()||c.u.ma("onAdStateChange",b));switch(b){case 1:a.Z=1;break;case 0:a.Z=0}};
MW=function(a,b){if(a.u){var c=a.u;c.u&&(c=c.u,c.F&&EV(c.vb,b,c.getDuration()))}};
Ima=function(a){for(var b=0;b<a.length;b++)lr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
sZ=function(a){return a&&a.thumbnails&&!g.db(a.thumbnails||null)&&a.thumbnails[0].url?g.hd(a.thumbnails[0].url):""};
tZ=function(a,b,c,d){d=void 0===d?!1:d;Z.call(this,a,b,{D:"img",I:"ytp-ad-image"},"ad-image",void 0===c?null:c);this.u=d;this.hide()};
uZ=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",M:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},K:[{D:"path",M:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",M:{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",X:["ytp-icon","ytp-icon-check-box"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
K:[{D:"path",M:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",M:{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",X:["ytp-icon","ytp-icon-check-box-outline-blank"]}:{D:"svg",M:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{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",M:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.KM();case "INFO_OUTLINE":return PM();case "REMOVE_CIRCLE":return{D:"svg",M:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{D:"path",M:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",M:{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 TM();case "LIKE":return g.QM();case "DISLIKE":return NM();default:return Nq(new Lq("Unexpected icon:",
a)),null}};
vZ=function(a,b,c,d,e,f){c=void 0===c?[]:c;e=void 0===e?!1:e;c={D:"button",X:["ytp-ad-button"].concat(c)};null!=f&&(c.M={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()};
Jma=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||[]};
wZ=function(a,b,c,d,e){Z.call(this,a,b,c,d);this.u=e;g.C(this,this.u);this.V=this.B=-1};
xZ=function(a){a.u&&-1===a.B&&(a.B=a.u.subscribe("b",a.nh,a),a.V=a.u.subscribe("a",a.ti,a),a.nh())};
yZ=function(a){null!=a.u&&-1!==a.B&&(a.u.pg(a.B),a.u.pg(a.V),a.V=-1,a.B=-1)};
zZ=function(a,b,c,d){d=void 0===d?!1:d;wZ.call(this,a,b,{D:"div",I:"ytp-ad-timed-pie-countdown-container",K:[{D:"svg",I:"ytp-ad-timed-pie-countdown",M:{viewBox:"0 0 20 20"},K:[{D:"circle",I:"ytp-ad-timed-pie-countdown-background",M:{r:10,cx:"10",cy:"10"}},{D:"circle",I:"ytp-ad-timed-pie-countdown-inner",M:{r:5,cx:"10",cy:"10"}},{D:"circle",I:"ytp-ad-timed-pie-countdown-outer",M:{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()};
AZ=function(a,b,c,d){Z.call(this,a,b,{D:"div",I:"ytp-ad-text"},void 0===d?"ad-text":d,void 0===c?null:c);this.u=null;this.hide()};
BZ=function(a,b){b&&g.ye(a.element,YX(a.u,b))};
CZ=function(a,b,c,d){wZ.call(this,a,b,{D:"div",I:"ytp-ad-preview-slot"},"ad-preview",c);var e=this;this.ea=-1;this.w=new g.HC({D:"span",I:"ytp-ad-preview-container"});g.C(this,this.w);this.A=new AZ(this.api,this.oa,"ytp-ad-preview-text");g.C(this,this.A);this.A.ba(this.w.element);this.H=new g.HC({D:"span",I:"ytp-ad-preview-image"});g.C(this,this.H);this.C=new tZ(this.api,this.oa);g.C(this,this.C);this.C.ba(this.H.element);this.H.ba(this.w.element);this.w.ba(this.element);this.J=new g.BM(this.w,400,
!1,100,function(){return e.hide()});
g.C(this,this.J);this.U=0;this.Z=!1;this.ga=d;this.hide()};
DZ=function(a){a.J.show(100);a.show()};
EZ=function(a,b,c,d,e){e=void 0===e?0:e;g.A.call(this);this.w=a;this.u=!1;this.H=d;this.C=!1;this.o=null;0<b&&(this.o=new g.I(this.Mv,b,this),g.C(this,this.o));this.A=new g.I(this.Mv,c,this);g.C(this,this.A);this.G=Qn(this.w,e,1,d);g.C(this,this.G);this.F=Qn(this.w,0,d,1);g.C(this,this.F);this.B=new g.O;g.C(this,this.B)};
Lma=function(){this.o=Kma};
Mma=function(){this.o=new Lma};
Oma=function(a,b,c,d){d=void 0===d?0:d;var e=!1;Yda({measure:function(){if(!e){var f=[];b.hidden&&f.push("hidden");"none"===Ah(b,"display")&&f.push("display:none");var k=Ah(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"===Ah(l,"opacity")){f.push("opacity:0@level"+k);break}if(g.Kn(l,"video-ads")||g.Kn(l,"ytp-ad-module"))break;k+=1;l=l.parentElement}if(0<f.length&&(k=d,f=f.join(","),
a.o.o().o.G("/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.Ob(p)||(n.attributes=p);l.push(n);m=m.parentElement}k=Nma(l);g.M(Error("vis_check_error_reason: "+f+", dump: "+k))}}}})();
return function(){return e=!0}};
Nma=function(a){return JSON.stringify(a.map(function(b){var c=[b.tagName];b.attributes&&c.push(b.attributes);return c}))};
FZ=function(a,b,c){c=void 0===c?0:c;return Oma(Pma(),a,b,c)};
GZ=function(a,b,c){wZ.call(this,a,b,{D:"div",I:"ytp-ad-skip-button-slot"},"skip-button",c);var d=this;this.H=null;this.ea=!1;this.A=new g.HC({D:"span",X:["ytp-ad-skip-button-container"]});g.C(this,this.A);this.A.ba(this.element);this.w=this.C=null;this.ga=new g.BM(this.A,500,!1,100,function(){return d.hide()});
g.C(this,this.ga);this.U=new EZ(this.A.element,15E3,5E3,.5,.5);g.C(this,this.U);this.Z=new g.I(function(){var e=d.api.N().experiments;g.Q(e,"enable_visibility_check_for_skip_button_in_bulleit")&&(d.J=FZ(d.w.element,"skip-button-ad-text",g.R(e,"visibility_error_html_dump_sample_rate")))},3E3);
g.C(this,this.Z);this.J=null;this.hide()};
Qma=function(a){a=a.H&&a.H.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
HZ=function(a,b){g.P.call(this);this.B=b;this.C=new g.O(this);g.C(this,this.C);this.u=a;this.Da=new g.Vf(100);g.C(this,this.Da);this.C.L(this.Da,"tick",this.sJ);this.A={seekableStart:0,seekableEnd:a/1E3,current:0};this.w=!1;this.o=0;this.start()};
IZ=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-action-interstitial",M:{tabindex:"0"},K:[{D:"div",I:"ytp-ad-action-interstitial-background-container"},{D:"div",I:"ytp-ad-action-interstitial-slot",K:[{D:"div",I:"ytp-ad-action-interstitial-card",K:[{D:"div",I:"ytp-ad-action-interstitial-image-container"},{D:"div",I:"ytp-ad-action-interstitial-headline-container"},{D:"div",I:"ytp-ad-action-interstitial-description-container"},{D:"div",I:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial");this.na=this.o["ytp-ad-action-interstitial-image-container"];this.H=new tZ(this.api,this.oa,"ytp-ad-action-interstitial-image");g.C(this,this.H);this.H.ba(this.na);this.ga=this.o["ytp-ad-action-interstitial-headline-container"];this.V=new AZ(this.api,this.oa,"ytp-ad-action-interstitial-headline");g.C(this,this.V);this.V.ba(this.ga);this.ea=this.o["ytp-ad-action-interstitial-description-container"];this.U=new AZ(this.api,this.oa,"ytp-ad-action-interstitial-description");g.C(this,
this.U);this.U.ba(this.ea);this.Ba=this.o["ytp-ad-action-interstitial-background-container"];this.J=new tZ(this.api,this.oa,"ytp-ad-action-interstitial-background",!0);g.C(this,this.J);this.J.ba(this.Ba);this.ya=this.o["ytp-ad-action-interstitial-action-button-container"];this.w=this.B=this.A=this.u=null;this.C=new g.O;g.C(this,this.C);this.Z=null;this.hide()};
JZ=function(a){var b=g.de("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
KZ=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-choice-interstitial",K:[{D:"div",I:"ytp-ad-choice-interstitial-main-content",K:[{D:"div",I:"ytp-ad-choice-interstitial-head-title"},{D:"div",I:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial");this.w=this.C=this.A=this.u=null;this.B=new g.BM(this,0,!1,0);g.C(this,this.B);this.hide()};
Rma=function(a,b,c,d){var e=a.o["ytp-ad-choice-interstitial-button-container"],f=["ytp-ad-choice-interstitial-button"],k=2;d&&(f.push("ytp-ad-choice-interstitial-button-default"),k=1);d=new vZ(a.api,a.oa,f,"button",!1,k);g.C(a,d);d.init(rU("button"),b,a.macros);d.ba(e);d.element.style.width=8*c+32+"px";return d};
Sma=function(a,b,c,d){a.u=new HZ(d);a.u.subscribe("a",function(){a.B.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.oa.executeCommand(f.value,c)});
g.C(a,a.u)};
LZ=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-text-interstitial"},"ad-text-interstitial");this.w=this.o["ytp-ad-text-interstitial"];this.u=new AZ(this.api,this.oa,"ytp-ad-text-interstitial-message");g.C(this,this.u);this.u.ba(this.w);this.hide()};
Tma=function(a){var b=g.de("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
MZ=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",X:["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()};
NZ=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-feedback-dialog-background",K:[{D:"div",I:"ytp-ad-feedback-dialog-container",K:[{D:"div",I:"ytp-ad-feedback-dialog-form",M:{role:"dialog",tabindex:"-1"},K:[{D:"div",I:"ytp-ad-feedback-dialog-title",K:[{D:"span",W:"{{title}}"}]},{D:"span",I:"ytp-ad-info-dialog-feedback-options-title",W:"{{reasonsTitle}}"},{D:"div",I:"ytp-ad-info-dialog-feedback-options"},{D:"div",I:"ytp-ad-feedback-dialog-confirm-container",K:[{D:"button",I:"ytp-ad-feedback-dialog-cancel-button",
W:"{{cancelLabel}}"},{D:"button",I:"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.H=this.o["ytp-ad-feedback-dialog-confirm-button"];this.J=this.o["ytp-ad-info-dialog-feedback-options"];this.U=this.o["ytp-ad-feedback-dialog-title"];this.C=this.w=null;this.hide()};
Xma=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new vZ(a.api,a.oa,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.u),a.u.init(rU("button"),c,a.macros),a.u.ia("click",a.Rz,a),a.u.ba(a.element));b.title&&(c=g.T(b.title),a.ha("title",c));b.reasonsTitle&&(c=g.T(b.reasonsTitle),a.ha("reasonsTitle",c));b.reasons&&Uma(a,b.reasons);b.cancelLabel&&(c=g.T(b.cancelLabel),a.ha("cancelLabel",c),g.yp(a.B,"click",function(){return a.Rz()}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ha("confirmLabel",c),g.yp(a.H,"click",function(){return Vma(a)}));
b.undoRenderer&&Wma(a,b.undoRenderer)};
Uma=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.Jo(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Jo(Error("AdFeedbackReason.endpoint was not set.")):(d=new Yma(d,e),g.C(a,d),a.J.appendChild(d.o.element),a.A.push(d)))}};
Wma=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.w=new vZ(a.api,a.oa,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.w),a.w.init(rU("ad-feedback-undo-mute-button"),c,a.macros),a.w.ia("click",a.yN,a),a.w.ba(a.U)):g.Jo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Vma=function(a){var b=a.A.filter(function(c){return c.isChecked()});
0!==b.length&&(a.oa.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.R("w"),a.hide())};
Yma=function(a,b){this.u=b;this.o=new g.HC({D:"label",I:"ytp-ad-feedback-dialog-reason-label",K:[{D:"input",I:"ytp-ad-feedback-dialog-reason-input",M:{type:"radio",name:"feedback-reason-group"}},{D:"span",I:"ytp-ad-feedback-dialog-reason-text",W:g.T(a)}]});this.w=this.o.o["ytp-ad-feedback-dialog-reason-input"]};
OZ=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"confirm-dialog":d;Z.call(this,a,b,{D:"div",X:["ytp-ad-confirm-dialog-background"],K:[{D:"div",I:"ytp-ad-confirm-dialog-container",K:[{D:"div",X:["ytp-ad-confirm-dialog"].concat(c),M:{role:"dialog",tabindex:"-1"},K:[{D:"div",I:"ytp-ad-confirm-dialog-title",W:"{{title}}"},{D:"div",I:"ytp-ad-confirm-dialog-messages"},{D:"div",I:"ytp-ad-confirm-dialog-confirm-container",K:[{D:"button",I:"ytp-ad-confirm-dialog-cancel-button",W:"{{cancelLabel}}"},{D:"button",
I:"ytp-ad-confirm-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]},{D:"button",X:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],K:[{D:"span",I:"ytp-ad-button-icon",K:[g.KM()]}]}]},d);this.C=this.o["ytp-ad-confirm-dialog-close-overlay-button"];this.B=this.o["ytp-ad-confirm-dialog-cancel-button"];this.J=this.o["ytp-ad-confirm-dialog-confirm-button"];this.H=this.o["ytp-ad-confirm-dialog-messages"];this.A=null;this.u=new g.O;g.C(this,this.u);this.w=null;this.hide()};
Zma=function(a,b){if(b.title){var c=g.T(b.title);a.ha("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=gY(d.value),a.H.appendChild(d)}b.cancelLabel&&(c=g.T(b.cancelLabel),a.ha("cancelLabel",c),a.u.L(a.B,"click",function(e){return a.nt(e)}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ha("confirmLabel",c),a.u.L(a.J,"click",function(e){return a.qt(e)}));
a.u.L(a.C,"click",function(e){return a.ot(e)})};
PZ=function(a,b){OZ.call(this,a,b,[],"ad-mute-confirm-dialog")};
QZ=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-info-dialog-background",K:[{D:"div",I:"ytp-ad-info-dialog-container",K:[{D:"div",I:"ytp-ad-info-dialog-form",M:{role:"dialog",tabindex:"-1"},K:[{D:"div",I:"ytp-ad-info-dialog-title",W:"{{title}}"},{D:"ul",I:"ytp-ad-info-dialog-ad-reasons"},{D:"div",I:"ytp-ad-info-dialog-message"},{D:"div",I:"ytp-ad-info-dialog-mute-container"},{D:"div",I:"ytp-ad-info-dialog-confirm-container",K:[{D:"button",I:"ytp-ad-info-dialog-confirm-button",W:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog");this.u=this.w=null;this.H=this.o["ytp-ad-info-dialog-confirm-button"];this.ga=this.o["ytp-ad-info-dialog-mute-container"];this.ea=this.o["ytp-ad-info-dialog-message"];this.U=this.o["ytp-ad-info-dialog-ad-reasons"];this.B=this.A=null;this.Z=c;this.C=null;this.V=!1;this.J=null;this.hide()};
$ma=function(a){(a.C&&a.C.impressionEndpoints||[]).forEach(function(b){return a.oa.executeCommand(b,a.macros)})};
ana=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.w=new NZ(a.api,a.oa),g.C(a,a.w),a.w.init(rU("ad-feedback-dialog"),c,a.macros),a.w.ba(a.Z),a.w.subscribe("w",function(){return a.R("y")}))};
bna=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.B=new PZ(a.api,a.oa),g.C(a,a.B),a.B.init(rU("ad-mute-confirm-dialog"),c,a.macros),a.B.ba(a.Z),a.B.subscribe("x",function(){return a.R("y")}))};
cna=function(a){a.u&&a.u.ia("click",a.Sz,a);g.yp(a.H,"click",function(){return a.Sz()})};
RZ=function(a,b,c,d){MZ.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()};
dna=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 QZ(a.api,a.oa,a.A),g.C(a,a.u),a.u.init(rU("ad-info-dialog"),b,c),a.u.ba(a.A),a.u.subscribe("z",function(){return a.R("B")}),a.u.subscribe("y",function(){return a.R("A")}))};
ena=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"):(dna(a,b,c),a.w&&g.J(a.w.element,"ytp-ad-info-hover-text-short"),a.button.ia("click",function(){a.u&&!a.u.Ea()&&(a.u.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
SZ=function(a,b){Z.call(this,a,b,{D:"div",X:["ytp-ad-player-overlay-flyout-cta","ytp-ad-overlay-as-flyout-cta"],K:[{D:"div",X:["ytp-flyout-cta","ytp-flyout-cta-inactive"],K:[{D:"div",I:"ytp-flyout-cta-icon-container"},{D:"div",I:"ytp-flyout-cta-body",K:[{D:"div",I:"ytp-flyout-cta-text-container",K:[{D:"div",I:"ytp-flyout-cta-headline-container"},{D:"div",I:"ytp-flyout-cta-description-container"},{D:"div",I:"ytp-flyout-cta-url-container"}]},{D:"div",I:"ytp-flyout-cta-action-container",K:[{D:"div",
I:"ytp-flyout-cta-ad-controls-container",K:[{D:"div",I:"ytp-ad-overlay-ad-info-button-container"},{D:"div",I:"ytp-ad-overlay-close-container",K:[{M:{title:"Close"},D:"button",I:"ytp-ad-overlay-close-button",K:[uZ(fna)]}]}]},{D:"div",I:"ytp-ad-overlay-as-flyout-cta-action-button-container"}]}]}]}]},"invideo-overlay-as-cta");var c=this;(this.U="tall"===g.nv(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.de("ytp-flyout-cta",this.element);this.ea=new tZ(this.api,this.oa,"ytp-flyout-cta-icon");g.C(this,this.ea);this.ea.ba(this.o["ytp-flyout-cta-icon-container"]);this.Z=new AZ(this.api,this.oa,"ytp-flyout-cta-headline");g.C(this,this.Z);this.Z.ba(this.o["ytp-flyout-cta-headline-container"]);this.C=null;this.U&&(this.C=new AZ(this.api,this.oa,"ytp-flyout-cta-description"),g.C(this,this.C),this.C.ba(this.o["ytp-flyout-cta-description-container"]));this.na=new AZ(this.api,this.oa,"ytp-flyout-cta-description");
g.C(this,this.na);this.na.ba(this.o["ytp-flyout-cta-url-container"]);this.w=new vZ(this.api,this.oa,["ytp-flyout-cta-action-button"]);g.C(this,this.w);this.w.ba(this.o["ytp-ad-overlay-as-flyout-cta-action-button-container"]);this.Ha=g.de("ytp-flyout-cta-ad-controls-container",this.element);this.J=this.H=null;this.V=!1;this.B=null;this.Ja=g.de("ytp-ad-overlay-close-container",this.u);this.ya=new g.I(function(){g.Mn(c.u,"ytp-flyout-cta-inactive")},1E3);
this.ga=0;this.Ba=[];this.hide()};
hna=function(a,b,c){if(!b.image||!b.image.thumbnail)return g.M(Error("InvideoOverlayAdRenderer has no image.")),!1;var d=YX(b.title);if(!b.title||g.hc(d))return g.M(Error("InvideoOverlayAdRenderer has no title AdText.")),!1;if(a.U&&!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.Ba=g.kb([d].concat(a.A&&a.A.onClickCommands||[]));a.B=g.de("ytp-ad-overlay-ad-info-button-container",a.u);gna(a,c);a.ea.init(rU("ad-image"),b.image,a.macros);a.Z.init(rU("ad-text"),b.title,a.macros);a.U&&a.C&&b.description&&a.C.init(rU("ad-text"),b.description,a.macros);a.na.init(rU("ad-text"),b.displayUrl,a.macros);a.w.init(rU("button"),{text:{simpleText:"VISIT SITE"}},a.macros);a.L(a.u,"mouseover",function(){a.ga++});
a.L(a.Ja,"click",a.AJ);$X(a,a.u,b.trackingParams||null);aY(a,a.u,!0);return!0};
gna=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.de("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.H=new g.HC({D:"div",I:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.H),a.H.ba(d),d=new RZ(a.api,a.oa,a.H.element,!1),g.C(a,d),d.init(rU("ad-info-hover-text-button"),c,a.macros),a.B){d.ba(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.de("ytp-ad-button",d.element);a.L(e,"click",a.xJ);a.J=d;c.hoverText&&(c=g.T(c.hoverText),fe(a.J.element,{title:c}))}else g.M(Error("Ad info button container within overlay ad was not present."))}}else g.Jo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
ina=function(a){return a.A&&a.A.closeButton&&a.A.closeButton.buttonRenderer&&(a=a.A.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
jna=function(a,b){var c=g.xL(a.api);g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
TZ=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-overlay-slot",K:[{D:"div",I:"ytp-ad-overlay-container"}]},"invideo-overlay");this.H=[];this.B=this.ga=null;var c=this.o["ytp-ad-overlay-container"];this.Z=new EZ(c,45E3,6E3,.3,.4);g.C(this,this.Z);this.U=new g.I(this.clear,45E3,this);g.C(this,this.U);this.A=kna(this);g.C(this,this.A);this.A.ba(c);this.w=lna(this);g.C(this,this.w);this.w.ba(c);this.u=mna(this);g.C(this,this.u);this.u.ba(c);this.na=this.V=null;this.ea=!1;this.C=null;this.J=0;this.hide()};
kna=function(a){var b=new g.HC({D:"div",I:"ytp-ad-text-overlay",K:[{D:"div",I:"ytp-ad-overlay-ad-info-button-container"},{D:"div",I:"ytp-ad-overlay-close-container",K:[{D:"button",I:"ytp-ad-overlay-close-button",K:[uZ(UZ)]}]},{D:"div",I:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",I:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",X:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],W:"{{displayUrl}}"}]});a.L(b.o["ytp-ad-overlay-title"],"click",function(c){return VZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-link"],"click",function(c){return VZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.jt);b.hide();return b};
lna=function(a){var b=new g.HC({D:"div",X:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{D:"div",I:"ytp-ad-overlay-ad-info-button-container"},{D:"div",I:"ytp-ad-overlay-close-container",K:[{D:"button",I:"ytp-ad-overlay-close-button",K:[uZ(UZ)]}]},{D:"div",I:"ytp-ad-overlay-text-image",K:[{D:"img",M:{src:"{{imageUrl}}"}}]},{D:"div",I:"ytp-ad-overlay-title",W:"{{title}}"},{D:"div",I:"ytp-ad-overlay-desc",W:"{{description}}"},{D:"div",X:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
W:"{{displayUrl}}"}]});a.L(b.o["ytp-ad-overlay-title"],"click",function(c){return VZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-link"],"click",function(c){return VZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.jt);a.L(b.o["ytp-ad-overlay-text-image"],"click",a.nN);b.hide();return b};
mna=function(a){var b=new g.HC({D:"div",I:"ytp-ad-image-overlay",K:[{D:"div",I:"ytp-ad-overlay-ad-info-button-container"},{D:"div",I:"ytp-ad-overlay-close-container",K:[{D:"button",I:"ytp-ad-overlay-close-button",K:[uZ(UZ)]}]},{D:"div",I:"ytp-ad-overlay-image",K:[{D:"img",M:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.L(b.o["ytp-ad-overlay-image"],"click",function(c){return VZ(a,b.element,c)});
a.L(b.o["ytp-ad-overlay-close-container"],"click",a.jt);b.hide();return b};
WZ=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.de("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.V=new g.HC({D:"div",I:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.V),a.V.ba(d),d=new RZ(a.api,a.oa,a.V.element,!1),g.C(a,d),d.init(rU("ad-info-hover-text-button"),c,a.macros),a.C?(d.ba(a.C,0),
d.subscribe("B",a.DJ,a),d.subscribe("A",a.GJ,a),a.L(a.C,"click",a.EJ),c=g.de("ytp-ad-button",d.element),a.L(c,"click",a.CJ),a.na=d):g.M(Error("Ad info button container within overlay ad was not present.")))}}else g.Jo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
nna=function(a){return a.B&&a.B.closeButton&&a.B.closeButton.buttonRenderer&&(a=a.B.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
ona=function(a,b){if(XZ(a,YZ)||a.api.app.G.o)return!1;var c=YX(b.title),d=YX(b.description);if(g.hc(c)||g.hc(d))return!1;$X(a,a.A.element,b.trackingParams||null);a.A.ha("title",YX(b.title));a.A.ha("description",YX(b.description));a.A.ha("displayUrl",YX(b.displayUrl));b.navigationEndpoint&&lb(a.H,b.navigationEndpoint);a.A.show();a.Z.start();aY(a,a.A.element,!0);a.L(a.api,"resize",function(){XZ(a,YZ)&&a.clear()});
a.L(a.api,"minimized",a.FJ);a.L(a.A.element,"mouseover",function(){a.J++});
return!0};
pna=function(a,b){if(XZ(a,YZ)||a.api.app.G.o)return!1;var c=YX(b.title),d=YX(b.description);if(g.hc(c)||g.hc(d))return!1;$X(a,a.w.element,b.trackingParams||null);a.w.ha("title",YX(b.title));a.w.ha("description",YX(b.description));a.w.ha("displayUrl",YX(b.displayUrl));a.w.ha("imageUrl",ZX(b.image));b.navigationEndpoint&&lb(a.H,b.navigationEndpoint);a.ga=b.imageNavigationEndpoint||null;a.w.show();a.Z.start();aY(a,a.w.element,!0);a.L(a.api,"resize",function(){XZ(a,YZ)&&a.clear()});
a.L(a.w.element,"mouseover",function(){a.J++});
return!0};
qna=function(a,b){if(a.api.app.G.o)return!1;var c=oma(b.image),d=c;c.width<YZ.width&&(d=YZ);if(0==c.width||0==c.height||XZ(a,d))return!1;$X(a,a.u.element,b.trackingParams||null);a.u.ha("imageUrl",ZX(b.image));a.u.ha("width",c.width);a.u.ha("height",c.height);b.navigationEndpoint&&lb(a.H,b.navigationEndpoint);g.vh(a.u.o["ytp-ad-image-overlay"],"max-width",c.width+"px");a.u.show();aY(a,a.u.element,!0);a.U.start();a.L(a.api,"resize",function(){XZ(a,c)&&a.clear()});
a.L(a.u.element,"mouseover",function(){a.J++;a.U.stop()});
a.L(a.u.element,"mouseout",function(){a.U.start()});
return!0};
XZ=function(a,b){var c=g.wL(a.api).getPlayerSize();return b.width>c.width||b.height>c.height};
VZ=function(a,b,c){var d=g.Rb(a.macros),e=g.Ph(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Mh(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.J.toString()}};
a.H.forEach(function(k){return a.oa.executeCommand(k,d)});
a.api.pauseVideo()};
rna=function(a,b){var c=g.xL(a.api);g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
ZZ=function(a,b,c){wZ.call(this,a,b,{D:"div",I:"ytp-ad-message-overlay",K:[{D:"div",I:"ytp-ad-message-slot"}]},"ad-message",c);var d=this;this.U=-1;this.Z=this.o["ytp-ad-message-slot"];this.A=new g.HC({D:"span",I:"ytp-ad-message-container"});this.A.ba(this.Z);g.C(this,this.A);this.w=new AZ(this.api,this.oa,"ytp-ad-message-text");g.C(this,this.w);this.w.ba(this.A.element);this.H=new g.BM(this.A,400,!1,100,function(){return d.hide()});
g.C(this,this.H);this.C=0;this.J=!1;this.hide()};
sna=function(a,b){var c=g.xL(a.api);g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
$Z=function(a,b,c){wZ.call(this,a,b,{D:"div",I:"ytp-ad-skip-ad-slot"},"skip-ad",c);this.H=!1;this.C=0;this.A=this.w=null;this.hide()};
a_=function(a,b){if(!a.H)if(a.H=!0,a.w&&(b?a.w.J.hide():a.w.hide()),b){var c=a.A;c.ga.show();c.show()}else a.A.show()};
b_=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-persisting-overlay",K:[{D:"div",I:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay");this.w=this.o["ytp-ad-persisting-overlay-skip"];this.u=c;g.C(this,this.u);this.hide()};
c_=function(a,b,c){wZ.call(this,a,b,{D:"span",I:"ytp-ad-duration-remaining"},"ad-duration-remaining",c);this.w=null;this.hide()};
d_=function(a,b){AZ.call(this,a,b,"ytp-video-ad-top-bar-title","ad-title")};
e_=function(a,b,c){wZ.call(this,a,b,{D:"div",X:["ytp-flyout-cta","ytp-flyout-cta-inactive"],K:[{D:"div",I:"ytp-flyout-cta-icon-container"},{D:"div",I:"ytp-flyout-cta-body",K:[{D:"div",I:"ytp-flyout-cta-text-container",K:[{D:"div",I:"ytp-flyout-cta-headline-container"},{D:"div",I:"ytp-flyout-cta-description-container"}]},{D:"div",I:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c);this.H=new tZ(this.api,this.oa,"ytp-flyout-cta-icon");g.C(this,this.H);this.H.ba(this.o["ytp-flyout-cta-icon-container"]);
this.C=new AZ(this.api,this.oa,"ytp-flyout-cta-headline");g.C(this,this.C);this.C.ba(this.o["ytp-flyout-cta-headline-container"]);this.A=new AZ(this.api,this.oa,"ytp-flyout-cta-description");g.C(this,this.A);this.A.ba(this.o["ytp-flyout-cta-description-container"]);this.w=new vZ(this.api,this.oa,["ytp-flyout-cta-action-button"]);g.C(this,this.w);this.w.ba(this.o["ytp-flyout-cta-action-button-container"]);this.J=null;this.U=0;this.hide()};
f_=function(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?"toggle-button":d;var e=rU("ytp-ad-toggle-button-input");Z.call(this,a,b,{D:"div",X:["ytp-ad-toggle-button"].concat(c),K:[{D:"label",I:"ytp-ad-toggle-button-label",M:{"for":e},K:[{D:"span",I:"ytp-ad-toggle-button-icon",M:{role:"button","aria-label":"{{tooltipText}}"},K:[{D:"span",I:"ytp-ad-toggle-button-untoggled-icon",W:"{{untoggledIconTemplateSpec}}"},{D:"span",I:"ytp-ad-toggle-button-toggled-icon",W:"{{toggledIconTemplateSpec}}"}]},{D:"input",
I:"ytp-ad-toggle-button-input",M:{id:e,type:"checkbox"}},{D:"span",I:"ytp-ad-toggle-button-text",W:"{{buttonText}}"},{D:"span",I:"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.U=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.V=this.o["ytp-ad-toggle-button-text"];this.w=null;this.H=!1;this.J=null;this.hide()};
g_=function(a){a.H&&(a.isToggled()?(g.Qh(a.C,!1),g.Qh(a.B,!0)):(g.Qh(a.C,!0),g.Qh(a.B,!1)))};
tna=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||[]};
h_=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",void 0===c?null:c);var d=this;this.u=null;this.A=new f_(this.api,this.oa,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.A);this.A.ba(this.element);this.w=new f_(this.api,this.oa,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.w);this.w.ba(this.element);this.B=new g.BM(this,400,!1,500,function(){return d.hide()});
g.C(this,this.B);this.C=null;this.hide()};
una=function(a,b){a.A.init(rU("toggle-button"),a.u.likeButton.toggleButtonRenderer,b);a.w.init(rU("toggle-button"),a.u.dislikeButton.toggleButtonRenderer,b);a.C=a.L(a.element,"change",a.Qz)};
i_=function(a,b){vZ.call(this,a,b,["ytp-ad-visit-advertiser-button"],"visit-advertiser");this.A=null};
j_=function(a,b,c){c=void 0===c?!1:c;Z.call(this,a,b,{D:"span",I:"ytp-ad-simple-ad-badge"},"simple-ad-badge");this.u=c;this.hide()};
k_=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-player-overlay",K:[{D:"div",I:"ytp-ad-player-overlay-flyout-cta"},{D:"div",I:"ytp-ad-player-overlay-instream-info"},{D:"div",I:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",I:"ytp-ad-player-overlay-progress-bar"},{D:"div",I:"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(vna(this)){a=g.oe("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 d_(this.api,this.oa);d.ba(a);d.init(rU("ad-title"),{text:b.title},this.macros);g.C(this,d)}this.A=a}this.B=this.o["ytp-ad-player-overlay-skip-or-preview"];this.J=this.o["ytp-ad-player-overlay-progress-bar"];this.H=this.o["ytp-ad-player-overlay-instream-user-sentiment"];this.u=c;g.C(this,this.u);this.hide()};
vna=function(a){a=a.api.N();return Wx(a)&&a.o};
l_=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-survey-answer"},"survey-answer");this.w=this.o["ytp-ad-survey-answer"];this.u=null;this.A="";this.hide()};
m_=function(a,b){Z.call(this,a,b,{D:"div",I:"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()};
n_=function(a,b){vZ.call(this,a,b,["ytp-ad-survey-submit-button"],"survey-submit")};
o_=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-survey-player-overlay",K:[{D:"div",I:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",I:"ytp-ad-survey-player-overlay-skip-preview-submit",K:[{D:"div",I:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",I:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",I:"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.H=this.o["ytp-ad-survey-player-overlay-skip-or-preview"];
this.u=null;this.J=this.o["ytp-ad-survey-player-overlay-submit"];this.A=null;this.B=c;g.C(this,this.B);this.hide()};
p_=function(a,b,c){Z.call(this,a,b,{D:"div",I:"ytp-ad-survey-question",K:[{D:"div",X:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",X:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",X:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",I:"ytp-ad-survey-question-background"}]},c);this.question=this.o["ytp-ad-survey-question"];this.Z=this.o["ytp-ad-survey-question-background"];this.U=this.o["ytp-ad-survey-question-text"];
this.answers=this.o["ytp-ad-survey-answers"];this.J=this.o["ytp-ad-survey-question-player-overlay"];this.C=null;this.A=[];this.u=null;this.B=(0,g.H)()};
wna=function(a,b,c){var d=new l_(a.api,a.oa);d.ba(a.answers);d.init(rU("survey-answer"),b,c);a.A.push(d)};
yna=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&sZ(c)||"",g.hc(c)?g.Jo(Error("Found ThumbnailDetails without valid image URL")):g.vh(a.Z,"backgroundImage","url("+c+")"));xna(a,b)}else g.M(Error("addCommonComponents() needs to be called before starting countdown."))};
xna=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 HZ(b.durationMilliseconds,a.oa);g.C(a,a.u);if(b.timeoutCommands){var c=b.timeoutCommands;a.u.subscribe("a",function(){c.forEach(function(e){return a.oa.executeCommand(e,a.macros)})})}if(a.u&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new o_(a.api,a.oa,a.u);
d.ba(a.J);d.init(rU("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=d;g.C(a,d);a.zB()}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 jQ(a.api,a.u),d.ba(a.J),g.C(a,d)):g.M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
zna=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})};
q_=function(a,b){p_.call(this,a,b,"survey-question-multi-select");this.w=null;this.V=[];this.H=null;this.hide()};
Ana=function(a,b,c){a.w=new m_(a.api,a.oa);a.w.ba(a.answers);a.w.init(rU("survey-none-of-the-above"),b,c)};
Bna=function(a){a.A.forEach(function(b){b.u.toggleButton(!1)});
r_(a,!0)};
r_=function(a,b){var c=a.C,d=Cna(a),e=b;e=void 0===e?!1:e;c.u&&(d?c.u.hide():c.u.show(),e&&c.u instanceof $Z&&!c.u.H&&a_(c.u,!1));c.A&&(d?c.A.show():c.A.hide())};
Cna=function(a){return a.A.some(function(b){return b.u.isToggled()})||a.w.u.isToggled()};
s_=function(a,b){p_.call(this,a,b,"survey-question-single-select");this.hide()};
t_=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-survey",K:[{D:"div",I:"ytp-ad-survey-questions"}]},"survey");this.u=this.o["ytp-ad-survey-questions"];this.w=[];this.hide()};
u_=function(a,b){Z.call(this,a,b,{D:"div",I:"ytp-ad-survey-interstitial",K:[{D:"div",I:"ytp-ad-survey-interstitial-contents",K:[{D:"div",I:"ytp-ad-survey-interstitial-logo",K:[{D:"div",I:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",I:"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.J=this.o["ytp-ad-survey-interstitial-text"];this.H=this.o["ytp-ad-survey-interstitial-logo-image"];
this.A=null;this.w=new g.BM(this,500,!1,300);g.C(this,this.w)};
Dna=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.oa.executeCommand(e,a.macros)})};
Ena=function(a,b){var c=b&&sZ(b)||"";if(g.hc(c))g.Jo(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ie&&10>document.documentMode)d=new Cc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.pe("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=fea(e.style)}c=Faa(d,Ic({"background-image":'url("'+c+'")'}));a.style.cssText=Dc(c)}};
Fna=function(a){var b=g.de("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
v_=function(a,b){Z.call(this,a,b,{D:"div",I:"iv-website-companion",K:[{D:"div",I:"iv-website-companion-block",K:[{D:"div",I:"iv-website-companion-icon"},{D:"div",I:"iv-website-companion-text",K:[{D:"div",I:"iv-website-companion-desc",K:[{D:"span",X:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"}]}]}]}]},"action-companion");this.V=this.o["iv-website-companion"];this.A=new tZ(this.api,this.oa,"iv-website-companion-banner");g.C(this,this.A);this.A.ba(this.V,0);this.ea=new tZ(this.api,this.oa);g.C(this,
this.A);this.ea.ba(this.o["iv-website-companion-icon"]);this.J=new AZ(this.api,this.oa,"iv-website-companion-header");g.C(this,this.J);this.J.ba(this.o["iv-website-companion-text"],0);this.C=new AZ(this.api,this.oa,"iv-website-companion-domain");g.C(this,this.C);this.C.ba(this.o["iv-website-companion-desc"]);this.w=new vZ(this.api,this.oa,["iv-website-companion-action","yt-uix-button-size-default","yt-uix-button-primary"]);g.C(this,this.w);this.w.ba(this.o["iv-website-companion-block"]);this.B=new qY(this.api,
this.oa);g.C(this,this.B);this.B.ba(this.V,0);this.U=null;this.Z=[];this.H=new g.O;g.C(this,this.H);this.ga=new IU(3E4);this.u=null;this.hide()};
w_=function(){g.V.call(this,{D:"div",I:"ad-carousel",K:[{D:"div",I:"ad-carousel-clip",K:[{D:"ul",X:["ad-carousel-list","ad-carousel-list-animation"]}]}]});var a=this.o["ad-carousel"];this.A=new g.V({D:"button",X:["ad-carousel-nav-button","ad-carousel-nav-prev"],M:{type:"button",onclick:"return false;"},K:[{D:"span",X:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],M:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.C(this,this.A);this.A.ia("click",this.F,this);this.A.ba(a);this.w=new g.V({D:"button",
X:["ad-carousel-nav-button","ad-carousel-nav-next"],M:{type:"button",onclick:"return false;"},K:[{D:"span",X:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],M:{"data-tooltip-text":"Next",title:"Next"}}]});g.C(this,this.w);this.w.ia("click",this.C,this);this.w.ba(a);this.B=this.o["ad-carousel-list"];this.u=0;this.Ga=[]};
y_=function(a){a.B&&g.vh(a.B,"left",(2>a.Ga.length?0:-a.u*a.Ga[1].element.clientWidth)+"px");g.GC(a.A,0<a.u);g.GC(a.w,a.u<a.Ga.length-x_(a))};
x_=function(a){return 2>a.Ga.length?1:Math.round((a.element.clientWidth-a.Ga[0].element.clientWidth)/a.Ga[1].element.clientWidth)+1};
z_=function(){hY.call(this,!0);this.o=new w_};
A_=function(){hY.call(this,!1);this.u=new g.V({D:"div",I:"iv-btp-card",K:[{D:"a",I:"iv-btp-card-content",K:[{D:"div",W:"{{cards}}"}]}]});g.C(this,this.u);var a={D:"div",I:"iv-btp-card-merchant",K:[{D:"span",I:"iv-btp-card-merchant-text",W:"{{merchant}}"}]};this.A=new g.CC({D:"div",X:["iv-btp-small-card","yt-uix-hovercard-target"],M:{"data-position":"bottomright","data-orientation":"vertical"},K:[{D:"div",X:["iv-btp-card-image","yt-uix-hovercard-anchor"],W:"{{image}}"},{D:"div",I:"iv-btp-card-info",
K:[{D:"span",I:"iv-btp-card-action",W:"{{price}}"},a]},{D:"div",X:["yt-uix-hovercard-content","iv-btp-hovercard"],W:"{{hovercard}}"}]});g.C(this,this.A);this.o=new g.CC({D:"div",I:"iv-btp-large-card",K:[{D:"div",I:"iv-btp-card-image",K:[{D:"span"},{D:"div",I:"iv-btp-card-image-aligned",W:"{{image}}"}]},{D:"div",I:"iv-btp-card-info",K:[{D:"div",I:"iv-btp-card-text-box",K:[{D:"div",I:"iv-btp-card-text-valign",K:[{D:"div",X:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],W:"{{headline}}"}]}]},
{D:"span",I:"iv-btp-card-action",W:"{{price}}"},a,{D:"div",W:"{{review}}"}]}]});g.C(this,this.o);this.w=new g.CC({D:"div",I:"iv-btp-hovercard-text-box",K:[{D:"a",K:[{D:"div",X:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],W:"{{headline}}"}]},{D:"div",I:"iv-btp-hovercard-info",K:[{D:"span",I:"iv-btp-hovercard-action",W:"{{price}}"},a]},{D:"div",W:"{{review}}"}]});g.C(this,this.w);this.B=new g.CC({D:"div",I:"iv-btp-card-review",K:[{D:"div",I:"iv-btp-card-rating",K:[{D:"span",I:"iv-btp-card-rating-bg",
K:[{D:"span",I:"iv-btp-card-rating-fg"}]}]},{D:"span",I:"iv-btp-card-reviews",W:"{{reviewText}}"}]});g.C(this,this.B);this.A.ha("hovercard",this.w);this.u.ha("cards",[this.A,this.o]);Gna(this)};
Gna=function(a){a.u.ia("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"})})};
B_=function(a,b,c){c=c?gY(c):null;a.ha(b,c)};
C_=function(a,b){iY.call(this,a,b,function(){return new Hna.Xp});
this.u=null;Ina(this)};
Ina=function(a){for(var b=g.q(Object.values(Jna)),c=b.next();!c.done;c=b.next())a.view.addEventListener(c.value,function(d){return a.onClick(d)})};
D_=function(){g.A.call(this);this.w=this.A=this.u=this.B=this.o=null};
Lna=function(a,b){return Kna(a).then(function(c){c&&g.Oa(c.promotionShelfShow)&&c.promotionShelfShow(b)})};
Mna=function(a){Kna(a).then(function(b){b&&g.Oa(b.promotionShelfClear)&&b.promotionShelfClear()})};
Nna=function(){return g.w("yt.www.watch.ads")};
Kna=function(a){if(a.la())throw Error("Object is disposed");if(!a.o){var b=Nna();a.o=b?Ff(b):(new Bf(function(c){a.B=oea(c)})).then(Nna)}return a.o};
E_=function(){hY.call(this,!0);this.o=new g.V({D:"div",I:"iv-btp-companion",K:[{D:"div",I:"iv-btp-block-clicks"},{D:"div",I:"iv-btp-attribution",K:[{D:"span",I:"iv-btp-title",W:"{{shopText}}"},{D:"div",I:"ad-info-container",K:[{D:"span",I:"iv-btp-sponsored",W:"{{sponsoredText}}"},{D:"button",I:"ad-info-icon"}]}]}]});g.C(this,this.o);this.w=this.o.o["iv-btp-block-clicks"];this.u=new D_;g.C(this,this.u);this.A=Lna(this.u,this.o.element);Ona(this)};
Ona=function(a){a.o.ia("click",function(b){g.xe(a.o.o["ad-info-icon"],b.target)&&a.dispatchEvent({type:"adinfoclick"})})};
G_=function(a,b){iY.call(this,a,b,function(){return new F_.BD});
this.P=new g.O(this);g.C(this,this.P);this.F=[];this.u=null;this.w=new F_.Tp;g.C(this,this.w);this.view.append(this.w);this.C=new F_.SC(a,b,new UX(this.view.o.o["ad-info-icon"]));g.C(this,this.C);this.view.append(this.C.view);Pna(this)};
Pna=function(a){a.P.L(a.o,"appresize",a.S);a.P.L(a.view,"adinfoclick",function(b){return a.onClick(b)})};
Qna=function(a){var b=a.view;g.Qh(b.w,!0);Jf([a.u,Xf(1E3)]).then(function(){g.Qh(b.w,!1)})};
H_=function(){hY.call(this,!0);var a=this;this.A=this.u=0;this.o=new g.V({D:"div",I:"iv-cards-slider",K:[{D:"div",I:"iv-cards-slider-body",K:[{D:"ul",I:"iv-cards-slider-list"}]},{D:"button",X:["iv-cards-slider-button","iv-cards-slider-prev"],M:{type:"button",onclick:";return false;"},K:[{D:"span",X:["iv-cards-slider-prev-icon","yt-sprite"]}]},{D:"button",X:["iv-cards-slider-button","iv-cards-slider-next"],M:{type:"button",onclick:";return false;"},K:[{D:"span",X:["iv-cards-slider-next-icon","yt-sprite"]}]}]});
this.F=g.de("iv-cards-slider-list",this.o.element);if(this.w=g.de("iv-cards-slider-prev",this.o.element))this.o.L(this.w,"click",function(){a.dispatchEvent({type:"prevbuttonclick"})}),g.Qh(this.w,!1);
(this.B=g.de("iv-cards-slider-next",this.o.element))&&this.o.L(this.B,"click",function(){a.dispatchEvent({type:"nextbuttonclick"})});
g.C(this,this.o)};
I_=function(a){a.F.style.left=125*-a.u+"px";a.w&&g.Qh(a.w,0<a.u);a.B&&g.Qh(a.B,a.u<a.A-3)};
J_=function(){hY.call(this,!0);this.o=new g.V({D:"div",I:"iv-cards-companion",K:[{D:"div",I:"iv-cards-attribution",K:[{D:"span",X:["yt-badge","yt-badge-ad"],W:"{{adBadgeText}}"},{D:"a",I:"ad-companion-clickthrough",M:{target:"_blank"},W:"{{shopText}}"}]},{D:"div",W:"{{content}}"}]});g.C(this,this.o);this.u=new IU(3E4);this.w=this.u.showCompanion(this.o.element,300,250);Rna(this)};
Rna=function(a){a.o.ia("click",function(){a.dispatchEvent({type:"companionclick"})});
var b=g.de("ad-companion-clickthrough",a.o.element);b&&a.o.L(b,"click",function(){a.dispatchEvent({type:"shoptextclick"})})};
K_=function(){hY.call(this,!1);this.o=new g.V({D:"li",I:"iv-cards-slider-item",K:[{D:"div",I:"iv-cards-slider-unit",K:[{D:"a",K:[{D:"div",I:"iv-cards-slider-image",W:"{{image}}"},{D:"span",X:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-cards-slider-text"],W:"{{headline}}"},{D:"span",I:"iv-cards-slider-action",W:"{{price}}"}]}]}]});g.C(this,this.o);Sna(this)};
Sna=function(a){a.o.ia("click",function(){a.dispatchEvent({type:"offerclick"})})};
L_=function(a,b){iY.call(this,a,b,function(){return new Tna.Xp});
var c=this;this.u=null;this.view.addEventListener("offerclick",function(){return c.onClick()})};
N_=function(a,b){iY.call(this,a,b,function(){return new M_.bD});
this.U=new g.O(this);g.C(this,this.U);this.S=[];this.P=null;this.C=[];this.w=null;this.u=new M_.Tp;g.C(this,this.u);this.view.append(this.u);this.F=new qY(a,b);g.C(this,this.F);g.te(this.view.gb(),this.F.element,0);Una(this)};
Una=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)};
Vna=function(a,b,c){switch(a){case "invideo-overlay":a=new TZ(b,c);break;case "invideo-overlay-as-cta":a=new SZ(b,c);break;case "persisting-overlay":a=new b_(b,c,new kQ(b));break;case "player-overlay":a=new k_(b,c,new kQ(b));break;case "pla-shelf":a=new G_(b,c);break;case "shopping-companion":a=new N_(b,c);break;case "survey":a=new t_(b,c);break;case "ad-action-interstitial":a=new IZ(b,c);break;case "action-companion":a=new v_(b,c);break;case "ad-text-interstitial":a=new LZ(b,c);break;case "survey-interstitial":a=
new u_(b,c);break;case "ad-choice-interstitial":a=new KZ(b,c);break;case "ad-message":a=new ZZ(b,c,new kQ(b,1));break;default:return null}return a};
O_=function(a){g.O.call(this);this.o=a;this.L(this.o,"onAdUxUpdate",this.F)};
P_=function(a,b){O_.call(this,a);this.A=b;this.u=new Map;g.C(this,eY())};
Wna=function(a,b){sU.call(this,"image-companion",a,b)};
Q_=function(a){O_.call(this,a)};
R_=function(a,b){O_.call(this,a);this.A=a;this.C=b;this.u={};var c=new g.V({D:"div",X:["video-ads","ytp-ad-module"]});g.C(this,c);tx&&g.J(c.element,"ytp-ads-tiny-mode");this.B=new UX(c.element);g.C(this,this.B);g.RL(this.A,c.element,4);g.C(this,eY())};
Xna=function(a,b){var c=a.u;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Jo(Error("Component not found for element id: "+b.id));return c||null};
S_=function(a,b,c){if(c&&c!==a.layoutType)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Qa.o.has(c.value))return!1;return!0};
Yna=function(a){switch(a){case "trigger_category_layout_exit_normal":return!0;case "trigger_category_layout_exit_skip":return!1;case "trigger_category_layout_exit_mute":return!1;default:return!1}};
T_=function(a){g.A.call(this);this.hc=a;this.o=.1>Math.random();this.eventCount=0};
$na=function(a){var b;return(null===(b=Zna.get(a))||void 0===b?void 0:b.tp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
V_=function(a,b,c){U_(a,b,void 0,void 0,c)};
W_=function(a,b,c,d){U_(a,b,void 0,void 0,c,d?d:void 0)};
U_=function(a,b,c,d,e,f,k){if(g.Q(a.hc.aa.N().experiments,"html5_enable_ads_client_monitoring_log")&&!g.Q(a.hc.aa.N().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var l=a.o||g.Q(a.hc.aa.N().experiments,"html5_force_debug_data_for_client_tmp_logs");b={eventType:b,eventOrder:++a.eventCount};var m=g.R(a.hc.aa.N().experiments,"html5_experiment_id_label");m=0<m?{html5ExperimentContext:{ytExperimentId:m}}:void 0;if(c||e||f||m){var n={};e&&(n.slotData=aoa(l,e));
f&&(e={type:boa.get(f.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:coa.get(f.ee)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"},l&&(e.debugData={layoutId:f.layoutId}),n.layoutData=e);k&&(f={type:doa.get(k.trigger.triggerType)||"TRIGGER_TYPE_UNSPECIFIED",category:eoa.get(k.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},n.triggerData=f);c&&(n.opportunityData=foa(a,l,c,d));m&&(n.externalContext=m);b.adClientData=n}Kq("adsClientStateChange",{adsClientEvent:b})}};
aoa=function(a,b){var c={type:goa.get(b.ab)||"SLOT_TYPE_UNSPECIFIED",controlFlowManagerLayer:coa.get(b.ee)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};if(a){c.debugData={slotId:b.slotId};c.debugData.entryTriggerData=[];for(var d=g.q(b.uh),e=d.next();!e.done;e=d.next()){e=e.value;var f={type:doa.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};
foa=function(a,b,c,d){c={opportunityType:c};b&&d&&(c.debugData={slots:(0,g.Fc)(d,function(e){return aoa(b,e)},a)});
return c};
Y_=function(a,b,c){g.M(Error("[H5 Ads Control Flow] "+a.concat(b?", slot: "+(X_.debug>=X_[hoa.debug.nD]?b.slotId+" |":"")+" "+b.ab:"",c?", layout: "+(X_.debug>=X_[hoa.debug.nD]?c.layoutId+" |":"")+" "+c.layoutType:"")))};
Z_=function(a,b,c){g.A.call(this);this.u=b;this.ib=c;this.o=a(this,this,this,this,this);g.C(this,this.o);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
ioa=function(a,b){a.u=a.u.filter(function(c){return c!==b})};
h0=function(a,b,c){if($_(a.o,b))if(a0(a.o,b).A=c?"filled":"not_filled",null===c)W_(a.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b),b0(a,b,!1);else if(W_(a.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c),a0(a.o,b).B)b0(a,b,!1);else{W_(a.ib,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var d=a.o;if(!a0(d,b))throw new c0("Unknown slotState for onLayout");if(!d.o.jy.get(b.ab))throw new c0("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ab);if(g.db(c.jg)&&
g.db(c.kg)&&g.db(c.hg))throw new c0("Layout has no exit triggers.");d0(d,"trigger_category_layout_exit_normal",c.jg);d0(d,"trigger_category_layout_exit_skip",c.kg);d0(d,"trigger_category_layout_exit_mute",c.hg)}catch(l){e0(a,b,c,l);b0(a,b,!0);return}a.o.Mi(b);try{var e=a.o,f=a0(e,b),k=e.o.jy.get(b.ab).He(e.A,e.Nq,b,c);k.init();f.layout=c;if(f.u)throw new c0("Already had LayoutRenderingAdapter registered for slot");f.u=k;f0(e,f,"trigger_category_layout_exit_normal",c.jg);f0(e,f,"trigger_category_layout_exit_skip",
c.kg);f0(e,f,"trigger_category_layout_exit_mute",c.hg)}catch(l){g0(a,b);b0(a,b,!0);e0(a,b,c,l);return}W_(a.ib,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.q(a.u);for(e=d.next();!e.done;e=d.next())e.value.Aj(c);g0(a,b);joa(a,b)}};
koa=function(a,b,c){W_(a.ib,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.u);for(b=a.next();!b.done;b=a.next())b.value.Aj(c)};
i0=function(a,b,c){if($_(a.o,b)){W_(a.ib,"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.nj(b,c)}};
loa=function(a,b,c){W_(a.ib,"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.nj(b,c)};
l0=function(a,b,c,d){if($_(a.o,b)){W_(a.ib,$na(d),b,c);d=a0(a.o,b);null!=d.layout&&d.layout.layoutId===c.layoutId&&("rendering_stop_requested"!==d.o&&j0(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.oj(b,c);(d=k0(a.o,b))&&c.layoutId===d.layoutId&&moa(a,b,!1)}};
noa=function(a,b,c,d){W_(a.ib,$na(d),b,c);a=g.q(a.u);for(d=a.next();!d.done;d=a.next())d.value.oj(b,c)};
e0=function(a,b,c,d){Y_(d.toString(),b,c);b0(a,b,!0)};
g0=function(a,b){if($_(a.o,b)){a0(a.o,b).Mi=!1;var c=a0(a.o,b),d=[].concat(g.na(c.F));eb(c.F);m0(a,d)}};
m0=function(a,b){for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,$_(a.o,e.slot))if(a0(a.o,e.slot).Mi)a0(a.o,e.slot).F.push(e);else{var f=a.ib,k=e.slot,l=e.layout;g.Q(f.hc.aa.N().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&U_(f,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,k,l?l:void 0,e);(f=c.get(e.category))||(f=[]);f.push(e);c.set(e.category,f)}d=g.q((new Map([["trigger_category_layout_exit_normal","normal"],["trigger_category_layout_exit_skip",
"skipped"],["trigger_category_layout_exit_mute","muted"]])).entries());for(e=d.next();!e.done;e=d.next())if(e=g.q(e.value),f=e.next().value,e=e.next().value,k=c.get(f))for(f=a,k=g.q(k),l=k.next();!l.done;l=k.next())l=l.value,l.layout&&n0(f.o,l.slot)&&ooa(f,l.slot,l.layout,e);if(d=c.get("trigger_category_slot_expiration"))for(d=g.q(d),e=d.next();!e.done;e=d.next())b0(a,e.value.slot,!1);if(d=c.get("trigger_category_slot_fulfillment"))for(d=g.q(d),e=d.next();!e.done;e=d.next()){e=e.value;a:switch(a0(a.o,
e.slot).A){case "not_filled":f=!0;break a;default:f=!1}f&&(V_(a.ib,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",e.slot),a.o.uk(e.slot))}if(c=c.get("trigger_category_slot_entry"))for(c=g.q(c),d=c.next();!d.done;d=c.next()){d=d.value;V_(a.ib,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);try{var m=a.o,n=d.slot,p=a0(m,n);if(!p)throw new o0("Got enter request for unknown slot");if(!p.w)throw new o0("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==p.o)throw new o0("Tried to enter a slot from stage: "+
p.o);if(p0(p))throw new o0("Got enter request for already active slot");for(var t=g.q(q0(m,n.ab).values()),u=t.next();!u.done;u=t.next()){var z=u.value;if(p!==z&&p0(z))throw new o0("Trying to enter a slot when a slot of same type is already active. Its status: "+z.o);}}catch(B){Y_(B.toString(),d.slot,d.layout);b0(a,d.slot,!0);continue}d=a0(a.o,d.slot);"scheduled"!==d.o&&j0(d.slot,d.o,"enterSlot");d.o="enter_requested";e=d.w;d=e.Va;e=e.slot;if($_(d.o,e)){V_(d.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",
e);f=a0(d.o,e);"enter_requested"!==f.o&&j0(f.slot,f.o,"onSlotEntered");f.o="entered";f=g.q(d.u);for(k=f.next();!k.done;k=f.next())k.value.dl(e);joa(d,e)}}};
joa=function(a,b){var c;if($_(a.o,b)&&p0(a0(a.o,b))&&k0(a.o,b)&&!n0(a.o,b)){W_(a.ib,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(c=k0(a.o,b),null!==c&&void 0!==c?c:void 0));var d=a0(a.o,b);"entered"!==d.o&&j0(d.slot,d.o,"enterLayoutForSlot");d.o="rendering";d.u.startRendering(d.layout)}};
ooa=function(a,b,c,d){if($_(a.o,b)){var e=a.ib,f;var k=(null===(f=Zna.get(d))||void 0===f?void 0:f.cp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";W_(e,k,b,c);a=a0(a.o,b);"rendering"!==a.o&&j0(a.slot,a.o,"exitLayout");a.o="rendering_stop_requested";a.u.Ci(c,d)}};
b0=function(a,b,c){if($_(a.o,b)){if(a.o.Kr(b)||a.o.Gr(b))if(a0(a.o,b).B=!0,!c)return;if(p0(a0(a.o,b)))a0(a.o,b).B=!0,moa(a,b,c);else{if(a.o.Lr(b)&&(a0(a.o,b).B=!0,$_(a.o,b)&&(V_(a.ib,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),a0(a.o,b).C.o()),!c))return;c=k0(a.o,b);V_(a.ib,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);for(var d=a0(a.o,b),e=g.q(b.uh),f=e.next();!f.done;f=e.next()){f=f.value;var k=d.P.get(f.o);k&&(k.xh(f),d.P["delete"](f.o))}e=g.q(b.Bi);for(f=e.next();!f.done;f=
e.next())if(f=f.value,k=d.H.get(f.o))k.xh(f),d.H["delete"](f.o);e=g.q(b.Ai);for(f=e.next();!f.done;f=e.next())if(f=f.value,k=d.G.get(f.o))k.xh(f),d.G["delete"](f.o);void 0!==d.layout&&(e=d.layout,r0(d,e.jg),r0(d,e.kg),r0(d,e.hg));d.C=void 0;d.w=void 0;void 0!==d.u&&(d.u.ko(),d.u=void 0);d=a.o;a0(d,b)&&(d=q0(d,b.ab))&&d["delete"](b.slotId);V_(a.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.u);for(d=a.next();!d.done;d=a.next())d=d.value,d.Jl(b),c&&d.Hl(b,c)}}};
moa=function(a,b,c){if($_(a.o,b)&&p0(a0(a.o,b))){var d=k0(a.o,b);if(d&&n0(a.o,b))ooa(a,b,d,c?"error":"abandoned");else{V_(a.ib,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=a0(a.o,b);if(!e)throw new o0("Cannot exit slot it is unregistered");"enter_requested"!==e.o&&"entered"!==e.o&&"rendering"!==e.o&&j0(e.slot,e.o,"exitSlot");e.o="exit_requested";if(void 0===e.w)throw e.o="scheduled",new o0("Cannot exit slot because adapter is not defined");var f=e.w,k=f.Va,l=f.slot;if($_(k.o,l)){V_(k.ib,
"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);var m=a0(k.o,l);"exit_requested"!==m.o&&j0(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.fl(l);$_(k.o,l)&&a0(k.o,l).B&&b0(k,l,!1)}}catch(t){Y_(t.toString(),b)}}}};
s0=function(a){this.slot=a;this.P=new Map;this.H=new Map;this.G=new Map;this.J=new Map;this.u=this.layout=this.w=this.C=void 0;this.Mi=this.B=!1;this.F=[];this.o="not_scheduled";this.A="not_filled"};
p0=function(a){return"enter_requested"===a.o||a.isActive()};
c0=function(a){Va.call(this,"Layout error: "+a)};
o0=function(a){Va.call(this,"Slot error: "+a)};
t0=function(a,b,c,d,e){g.A.call(this);this.o=a;this.w=b;this.B=c;this.A=d;this.Nq=e;this.u=new Map};
q0=function(a,b){var c=a.u.get(b);return c?c:new Map};
a0=function(a,b){return q0(a,b.ab).get(b.slotId)};
poa=function(a){var b=[];a.u.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};
$_=function(a,b){return null!=a0(a,b)};
n0=function(a,b){var c=a0(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};
k0=function(a,b){var c=a0(a,b);return void 0!==c.layout?c.layout:null};
u0=function(a,b,c){if(g.db(c))throw new o0("No "+b+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.o.Nj.get(d.triggerType))throw new o0("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
d0=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.o.Nj.get(d.triggerType))throw new c0("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
f0=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.o.Nj.get(e.triggerType);f.oh(c,e,b.slot,b.layout?b.layout:null);b.J.set(e.o,f)}};
r0=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.J.get(d.o);e&&(e.xh(d),a.J["delete"](d.o))}};
j0=function(a,b,c){Y_("Slot stage was "+b+" when calling method "+c,a)};
v0=function(a){this.value=a};
w0=function(a){this.value=a};
x0=function(a){this.value=a};
y0=function(a){this.value=a};
z0=function(a){this.value=a};
A0=function(){v0.apply(this,arguments)};
B0=function(a){this.value=a};
C0=function(a){this.value=a};
D0=function(a){this.value=a};
E0=function(a){this.value=a};
F0=function(a){this.value=a};
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,b){this.Va=a;this.slot=b};
P0=function(a,b){var c;a:if((c=b.ab)&&c!==a.ab)c=!1;else{c=g.q(b.pe);for(var d=c.next();!d.done;d=c.next())if(!a.Qa.o.has(d.value)){c=!1;break a}c=!0}return c?!0:!1};
Q0=function(){};
R0=function(){};
S0=function(a,b,c){this.Va=a;this.slot=b;this.lg=c};
T0=function(a){this.lg=a};
U0=function(a,b,c,d){this.Va=a;this.slot=b;this.lg=c;this.ak=d};
qoa=function(a){var b=1E3*a.startSecs;return new g.UD(b,b+1E3*a.durationSecs)};
soa=function(a){var b,c,d,e,f;if(!a.length)throw new TypeError("Expected ad placement renderer");var k=g.q(a).next().value;a=((null===(b=k)||void 0===b?void 0:b.config)||{}).adPlacementConfig;if("AD_PLACEMENT_KIND_MILLISECONDS"!==(null===(c=a)||void 0===c?void 0:c.kind))throw new TypeError("Expected ad placement renderer kind to be milliseconds");var l=(a.adTimeOffset||{}).offsetStartMilliseconds;if(void 0===l)throw new TypeError("Expected start offset");l=Number(l);if(isNaN(l))throw new TypeError("Expected valid start offset");
k=((null===(e=null===(d=k)||void 0===d?void 0:d.renderer)||void 0===e?void 0:e.linearAdSequenceRenderer)||{}).linearAds;if(null===(f=k)||void 0===f||!f.length)throw new TypeError("Expected linear ads");var m=l;k=k.map(function(n){var p=n.instreamVideoAdRenderer;if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");n=dq(p.playerVars);var t=Number(n.length_seconds);if(isNaN(t))throw new TypeError("Expected valid length seconds in player vars");
var u=m;m+=1E3*t;var z=Number(p.trimmedMaxNonSkippableAdDurationMs);z=isNaN(z)?null:z;p=p.pings?SU(p.pings):new Map;return{layoutId:Or(),layoutType:"layout_type_media",Mj:p,jg:[],kg:[],hg:[],ee:"adapter",Qa:new V0([new I0(t),new J0(n),new K0(u),new L0(z)])}});
return roa(l,k,a)};
W0=function(a,b){this.lg=a;this.ak=b};
toa=function(a,b){this.Va=a;this.slot=b};
uoa=function(){};
woa=function(a){g.A.call(this);this.o=a;this.u=voa(this)};
voa=function(a){var b=a.o.Oj,c=b.w,d=new Z_(function(e,f,k,l,m){m=a.o.XN(m);var n=new uoa,p=new R0;return new t0({Mw:new Map([["slot_type_in_player",new T0(a.o.lg)],["slot_type_above_feed",p],["slot_type_below_player",p],["slot_type_forecasting",p],["slot_type_player_bytes",new W0(a.o.lg,a.o.ak)]]),Nj:new Map([["trigger_type_on_layout_self_exit_requested",b.o],["trigger_type_on_element_self_enter_requested",b.o],["trigger_type_on_new_playback_after_content_video_id",b.A],["trigger_type_slot_id_entered",
c],["trigger_type_slot_id_exited",c],["trigger_type_slot_id_scheduled",c],["trigger_type_layout_id_entered",c],["trigger_type_layout_id_exited",c],["trigger_type_on_different_layout_id_entered",c],["trigger_type_media_time_range",m.o],["trigger_type_after_content_video_id_ended",m.o],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",b.u],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",b.u]]),XB:new Map([["slot_type_in_player",n],["slot_type_above_feed",n],["slot_type_below_player",n],["slot_type_forecasting",n]]),
jy:new Map([["slot_type_in_player",a.o.Sk.A],["slot_type_above_feed",a.o.Sk.o],["slot_type_below_player",a.o.Sk.u],["slot_type_forecasting",a.o.Sk.w],["slot_type_player_bytes",a.o.Sk.B]])},e,f,k,l)},[c,
b.o,a.o.Uo,a.o.Tk],a.o.ib);g.C(a,d);return d};
X0=function(a,b,c,d){g.P.call(this);this.Va=a;this.slot=b;this.layout=c;this.o=d;this.u=[]};
xoa=function(a){this.adPlacementConfig=a};
Y0=function(a,b,c){this.o=a;this.Kb=b;this.adPlacementConfig=c;this.u=new Set};
Z0=function(){return["metadata_type_ad_placement_config"]};
zoa=function(a){a.o.has("impression")&&a.o.get("impression")&&a.o.get("impression").forEach(function(b){if(b=b.baseUrl){var c=a.Kb;c.cm=yoa((new xoa(a.adPlacementConfig)).adPlacementConfig,c.cm);c.kh.send(b,c.cm,{})}});
a.u.add("impression")};
Aoa=function(a){a.u.has("impression")||zoa(a)};
a1=function(a,b,c,d,e,f,k,l,m,n){X0.call(this,a,b,c,d);this.Kb=e;this.A=f;this.Cd=k;this.F=l;this.G=m;this.B=n;this.w=null;this.H=$0(this.layout.Qa,"metadata_type_ad_video_id");a=this.A;a.u.push(this);g.C(a,this);a=$0(this.layout.Qa,"metadata_type_ad_placement_config");this.C=new Y0(new Map,e,a)};
Boa=function(a,b){return S_(b,["metadata_type_ad_video_id"],"layout_type_media")&&a.H===$0(b.Qa,"metadata_type_ad_video_id")?!0:!1};
b1=function(a,b,c,d,e,f,k){a1.call(this,a,b,c,d,e,f,k,"metadata_type_action_companion_ad_renderer",function(l,m){return new VV(l,m)},"action-companion")};
Coa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];Z0().forEach(function(b){a.push(b)});
return{pe:a,layoutType:"layout_type_companion_with_action_button"}};
Doa=function(a,b,c,d,e,f,k){a1.call(this,a,b,c,d,e,f,k,"metadata_type_image_companion_ad_renderer",function(l,m){return new Wna(l,m)},"image-companion")};
Eoa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];Z0().forEach(function(b){a.push(b)});
return{pe:a,layoutType:"layout_type_companion_with_image"}};
Foa=function(a,b,c,d,e,f,k){a1.call(this,a,b,c,d,e,f,k,"metadata_type_shopping_companion_carousel_renderer",function(l,m){return new KW(l,m)},"shopping-companion")};
Goa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];Z0().forEach(function(b){a.push(b)});
return{pe:a,layoutType:"layout_type_companion_with_shopping"}};
c1=function(a,b){return S_(a,b.pe,b.layoutType)?!0:!1};
Hoa=function(a,b,c,d){this.Ge=a;this.Kb=b;this.o=c;this.Cd=d};
Ioa=function(a,b,c,d){this.Ge=a;this.Kb=b;this.o=c;this.Cd=d};
Joa=function(a,b,c,d,e){this.Va=a;this.slot=b;this.layout=c;this.Kb=d;this.Gl=e;a=$0(this.layout.Qa,"metadata_type_ad_placement_config");b=new Map;(c=$0(this.layout.Qa,"metadata_type_client_forecasting_ad_renderer").impressionUrls)&&b.set("impression",c);this.o=new Y0(b,this.Kb,a)};
Koa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];Z0().forEach(function(b){a.push(b)});
return{pe:a,layoutType:"layout_type_forecasting"}};
Loa=function(a,b){this.Kb=a;this.Gl=b};
Moa=function(a,b){this.slot=a;this.layout=b};
Noa=function(){var a=["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback"];Z0().forEach(function(b){a.push(b)});
return{pe:a,layoutType:"layout_type_media_layout_player_overlay"}};
d1=function(a,b,c,d,e,f,k){X0.call(this,a,b,c,d);this.he=e;this.Kb=f;this.Cd=k;this.w=!1;this.A=$0(this.layout.Qa,"metadata_type_linked_player_bytes_layout_id")};
Ooa=function(a,b,c,d,e){this.Mr=a;this.Ge=b;this.he=c;this.Kb=d;this.Cd=e};
Poa=function(a,b,c,d,e){this.Va=a;this.slot=b;this.layout=c;this.uf=d;this.u=e;this.o=null};
Qoa=function(a,b){return null==b?null:a.u.find(function(c){return c.layout.layoutId===b})||null};
e1=function(a,b,c,d,e,f){this.Va=a;this.slot=b;this.layout=c;this.Kl=d;this.o=e;this.he=f};
Roa=function(a,b,c,d){this.uf=a;this.Kl=b;this.he=c;this.Kb=d};
Soa=function(a){this.A=new Ooa(a.Mr,a.Ge,a.he,a.Kb,a.Cd);this.o=new Hoa(a.Ge,a.Kb,a.Iv,a.Cd);this.u=new Ioa(a.Ge,a.Kb,a.Iv,a.Cd);this.w=new Loa(a.Kb,a.Gl);this.B=new Roa(a.uf,a.Kl,a.he,a.Kb)};
f1=function(a,b,c,d){g.A.call(this);this.w=a;this.u=b;this.opportunityType=c;this.ib=d};
fZ=function(a,b){U_(a.ib,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a.opportunityType,void 0);var c=a.w.u(b);U_(a.ib,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a.opportunityType,c);if(c.length){var d=a.u();c=g.q(c);for(var e=c.next();!e.done;e=c.next())a:{var f=d;e=e.value;V_(f.ib,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",e);try{var k=f.o;if(g.hc(e.slotId))throw new o0("Slot ID was empty");if(a0(k,e))throw new o0("Duplicate registration for slot.");if(!k.o.Mw.has(e.ab))throw new o0("No fulfillment adapter factory registered for slot of type: "+
e.ab);if(!k.o.XB.has(e.ab))throw new o0("No SlotAdapterFactory registered for slot of type: "+e.ab);u0(k,"trigger_category_slot_entry",e.uh);u0(k,"trigger_category_slot_fulfillment",e.Bi);u0(k,"trigger_category_slot_expiration",e.Ai);var l=f.o,m=q0(l,e.ab);if(a0(l,e))throw new o0("Duplicate slots not supported");m.set(e.slotId,new s0(e));l.u.set(e.ab,m)}catch(kf){Y_(kf.toString(),e);break a}f.o.Mi(e);try{for(var n=f.o,p=a0(n,e),t=g.q(e.uh),u=t.next();!u.done;u=t.next()){var z=u.value,B=n.o.Nj.get(z.triggerType);
B&&(B.oh("trigger_category_slot_entry",z,e,null),p.P.set(z.o,B))}for(var D=g.q(e.Bi),E=D.next();!E.done;E=D.next()){var G=E.value,F=n.o.Nj.get(G.triggerType);F&&(F.oh("trigger_category_slot_fulfillment",G,e,null),p.H.set(G.o,F))}for(var ka=g.q(e.Ai),pa=ka.next();!pa.done;pa=ka.next()){var bc=pa.value,Jc=n.o.Nj.get(bc.triggerType);Jc&&(Jc.oh("trigger_category_slot_expiration",bc,e,null),p.G.set(bc.o,Jc))}var vb=n.o.Mw.get(e.ab).He(n.w,e);p.C=vb;var Za=n.o.XB.get(e.ab).He(n.B,e);p.w=Za}catch(kf){Y_(kf.toString(),
e);b0(f,e,!0);break a}V_(f.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);var xc=a0(f.o,e);"not_scheduled"!==xc.o&&j0(xc.slot,xc.o,"onSlotScheduled");xc.o="scheduled";xc=g.q(f.u);for(var jf=xc.next();!jf.done;jf=xc.next())jf.value.il(e);g0(f,e)}}};
g1=function(a,b,c){f1.call(this,new Toa,a,"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",c);this.o=null};
Uoa=function(a,b){a.o?Y_("Unexpected multiple fetch instructions for the current content"):a.o=b};
Toa=function(){};
h1=function(a,b,c,d){this.Va=a;this.lg=b;this.hc=c;this.w=d;this.o=new Map};
i1=function(a,b,c,d,e,f){a=Voa(a,d);a.bq=b;a.Bh=c;a.Hm=e;a.dn=f};
Voa=function(a,b){a.o.has(b)||a.o.set(b,{instreamVideoAdRenderer:void 0,On:void 0,Bh:void 0,adVideoId:b,Hm:void 0,bq:void 0,dn:void 0});return a.o.get(b)};
Woa=function(a,b){return void 0===a.dn?!1:void 0===a.instreamVideoAdRenderer?(Y_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1):void 0===a.Hm?(Y_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1):void 0===a.On||void 0===a.Bh||a.On!==a.Bh&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==a.Bh?!1:void 0===a.instreamVideoAdRenderer.elementId?(Y_("InstreamVideoAdRenderer has no elementId, kind: "+(a.On+", matching APSR kind: "+
a.Bh+". APR count: "+b.Ah.length+". isAdBreakResponse: "+b.Ar)),!1):"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.Bh&&void 0===a.bq?(Y_("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1):!0};
Xoa=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};
j1=function(a,b,c,d){f1.call(this,a,b,c,d)};
Yoa=function(a,b,c){0!==c.length&&fZ(a,{Ah:c,contentCpn:b,Ar:!1})};
Zoa=function(a,b,c,d,e,f){f1.call(this,new h1(b,d,f,"slot_type_above_feed"),a,"OPPORTUNITY_TYPE_AD_PLACEMENT_RENDERERS_RESPONSE_RECEIVED",e)};
$oa=function(a,b,c,d,e,f){f1.call(this,new h1(b,d,f,"slot_type_below_player"),a,"OPPORTUNITY_TYPE_AD_PLACEMENT_RENDERERS_RESPONSE_RECEIVED",e)};
k1=function(a,b,c,d){f1.call(this,new apa,a,"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",d);this.hc=c};
apa=function(){};
l1=function(){g.A.apply(this,arguments);this.o=new Map};
m1=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_layout_id_entered"};
n1=function(a,b){this.o=a;this.B=b;this.triggerType="trigger_type_layout_id_exited"};
o1=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"};
p1=function(a){this.o=Or();this.w=a;this.triggerType="trigger_type_slot_id_entered"};
q1=function(a){this.o=Or();this.B=a;this.triggerType="trigger_type_slot_id_exited"};
r1=function(a){this.o=Or();this.A=a;this.triggerType="trigger_type_slot_id_scheduled"};
s1=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
t1=function(a){g.A.call(this);this.o=a;this.u=new Map;this.B=new Set;this.A=new Set;this.C=new Set;this.w=new Set};
bpa=function(){this.o=Or();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"};
cpa=function(){this.o=Or();this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"};
u1=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.o)||void 0===c?void 0:c.slotId)||null};
dpa=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};
v1=function(a){this.o=Or();this.layoutId=a;this.triggerType="trigger_type_on_layout_self_exit_requested"};
w1=function(a,b){this.o=a;this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested"};
x1=function(a){g.A.call(this);this.A=a;this.w=new Map;this.u=this.o=null};
epa=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 v1&&e.trigger.layoutId===b&&Yna(e.category)&&c.push(e);c.length&&m0(a.A(),c)};
y1=function(a,b){this.o=a;this.contentVideoId=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id"};
z1=function(a,b){g.A.call(this);var c=this;this.w=a;this.u=new Map;this.o=null;b.addListener(this);g.Ge(this,function(){b.removeListener(c)})};
fpa=function(a){g.A.call(this);this.w=new t1(a.yp);g.C(this,this.w);this.o=new x1(a.yp);g.C(this,this.o);this.u=new u1(a.yp,a.uf);g.C(this,this.u);this.A=new z1(a.yp,a.uf);g.C(this,this.A)};
V0=function(a){var b=new Map;a.forEach(function(c){b.set(c.o(),c)});
this.o=b};
$0=function(a,b){var c=a.o.get(b);if(void 0!==c)return c.get()};
A1=function(a){return Array.from(a.o.keys())};
gpa=function(){};
B1=function(a,b,c,d,e){var f=Or();return{layoutId:f,layoutType:a,Mj:new Map,jg:[new v1(f),new o1(Or(),d)],kg:[],hg:[],ee:"core",Qa:new V0([b,new A0(c),new z0(e)])}};
hpa=function(a,b){var c=Or();return{layoutId:c,layoutType:"layout_type_forecasting",Mj:new Map,jg:[new v1(c)],kg:[],hg:[],ee:"core",Qa:new V0([new M0(a),new z0(b)])}};
roa=function(a,b,c){b.every(function(d){return S_(d,[],"layout_type_media")})||Y_("Unexpect subLayout type for DAI composite layout");
return{layoutId:Or(),layoutType:"layout_type_composite_player_bytes",Mj:new Map,jg:[new bpa],kg:[],hg:[],ee:"core",Qa:new V0([new K0(a),new G0(b),new z0(c)])}};
C1=function(){this.o=Or();this.triggerType="trigger_type_after_content_video_id_ended"};
ipa=function(){this.o=Or();this.triggerType="trigger_type_before_content_video_id_started"};
D1=function(a,b){this.o=a;this.u=b;this.triggerType="trigger_type_media_time_range"};
jpa=function(){};
kpa=function(a,b,c,d,e){var f=Or();return{slotId:f,ab:"slot_type_in_player",uh:[new m1(Or(),b)],Bi:[new p1(f)],Ai:[new y1(Or(),a),new q1(f)],ee:"core",Qa:new V0([new D0(b),new C0(c),new E0(d),new z0(e)])}};
mpa=function(a,b,c,d){var e=Or();return lpa(e,a,new m1(Or(),c),b,d)};
npa=function(a,b,c,d){return lpa(b,a,new w1(Or(),b),c,d)};
opa=function(a,b,c){var d=Or();a:{var e,f;switch(a.kind){case "AD_PLACEMENT_KIND_START":a=new ipa;break a;case "AD_PLACEMENT_KIND_MILLISECONDS":if(null===(e=a.adTimeOffset)||void 0===e||!e.offsetStartMilliseconds){Y_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");break}if(null===(f=a.adTimeOffset)||void 0===f||!f.offsetEndMilliseconds){Y_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");break}e=Number(a.adTimeOffset.offsetStartMilliseconds);a=Number(a.adTimeOffset.offsetEndMilliseconds);
if(isNaN(e)||isNaN(a)||e>=a){Y_("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be > startMs.");break}a=new D1(Or(),new Hi(e,a));break a;case "AD_PLACEMENT_KIND_END":a=new C1;break a;default:Y_("Cannot construct entry trigger from AdPlacementKind: "+(a.kind+"."))}a=void 0}if(a)return{slotId:d,ab:"slot_type_forecasting",uh:[a],Bi:[new p1(d)],Ai:[new q1(d),new y1(Or(),b)],ee:"core",Qa:new V0([new N0(c)])}};
lpa=function(a,b,c,d,e){return{slotId:a,ab:b,uh:[c],Bi:[new p1(a)],Ai:[new y1(Or(),d),new q1(a)],ee:"core",Qa:new V0([new N0(e)])}};
ppa=function(){this.o=new Map};
E1=function(a,b){g.A.call(this);this.Va=a;this.mg=b;this.o=this.u=null;this.mg.addListener(this)};
qpa=function(a){g.A.call(this);this.o=new E1(a.Nq,a.gG);g.C(this,this.o)};
rpa=function(a,b){this.Zp=a;this.o=b};
spa=function(a,b){var c=null;try{c=JSON.parse(a.response)}catch(e){return a.response&&(c=a.response,c.startsWith("GIF89")||(e.params=c.substr(0,256),g.Jo(e))),[]}if(!c||c.adThrottled)return[];c=c.playerAds;if(!c||!c.length)return[];c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return[];if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return c};
F1=function(a){g.A.call(this);this.aa=a;this.listeners=[];this.o=new g.O(this);g.C(this,this.o);this.o.L(this.aa,"aduxclicked",this.onAdUxClicked)};
tpa=function(a,b,c){b=(0,g.Fc)(b,function(d){return new tU(d,c,d.id)});
a.aa.ma("onAdUxUpdate",b)};
G1=function(a){this.o=a;this.listeners=[]};
upa=function(a){this.aa=a};
iX=function(a){return(g.Tx(a.aa.N())||a.aa.N().o)&&g.Q(a.aa.N().experiments,"html5_enable_companion_with_action_on_above_feed_slot")};
jX=function(a){return g.Tx(a.aa.N())&&wV(a.aa)&&g.Q(a.aa.N().experiments,"html5_enable_companion_with_image_on_above_feed_slot")};
kX=function(a){return g.Tx(a.aa.N())&&g.Q(a.aa.N().experiments,"html5_enable_companion_with_shopping_on_above_feed_slot")};
hX=function(a){return(g.Tx(a.aa.N())||a.aa.N().o||g.Xx(a.aa.N())||Wx(a.aa.N())||Lx(a.aa.N()))&&g.Q(a.aa.N().experiments,"html5_enable_video_overlay_on_inplayer_slot")};
vpa=function(a){return g.Q(a.aa.N().experiments,"html5_pacf_enable_dai")};
eZ=function(a){return g.Q(a.aa.N().experiments,"html5_enable_forecasting_in_pacf")};
H1=function(){this.listeners=[]};
wpa=function(a,b,c,d,e){a.listeners.forEach(function(f){if(f.o)Y_(f.o.layoutId===b?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{f.u={slotId:Or(),ab:"slot_type_player_bytes",uh:[],Bi:[],Ai:[],ee:"surface",Qa:new V0([])};var k=[],l=c.B||"";l&&k.push(new A0(l));(l=(l=c.o)&&l.playerOverlay&&l.playerOverlay.instreamAdPlayerOverlayRenderer)&&k.push(new C0(l));k.push(new B0(d));k.push(new E0(e));k.push(new z0(c.ca));f.o={layoutId:b,layoutType:"layout_type_media",
Mj:new Map,jg:[],kg:[],hg:[],ee:"surface",Qa:new V0(k)};koa(f.Va,f.u,f.o);loa(f.Va,f.u,f.o)}})};
$la=function(a,b,c){a.listeners.forEach(function(d){d.o&&d.o.layoutId===b?(noa(d.Va,d.u,d.o,"c"===c?"abandoned":"normal"),d.u=null,d.o=null):Y_("Received AD_ENDED for unknown layout")})};
I1=function(a){this.o=a};
xpa=function(a){var b=void 0===b?new CU(new I1(function(){var c=a.getVideoData(1);return c?c.Ne():""})):b;
this.aa=a;this.kh=b;this.cm=lV(hV(a))};
yoa=function(a,b){if(a){var c={};a.kind?"AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind?a.adTimeOffset&&a.adTimeOffset.offsetStartMilliseconds?c.MIDROLL_POS=gV(yb(Math.round(g.jd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString())):Mq(Error("malformed AdPlacementConfig")):c.MIDROLL_POS=gV(yb("0")):Mq(Error("AdPlacementConfig without kind"));return mV(lV(c),b)}Y_("Unable to merge Macros using adPlacementConfig data because it is null");return b};
ypa=function(a){if(a=a.aa.qb())if(a=MI(a.B))return a;return function(){}};
K1=function(a,b){g.A.call(this);this.aa=a;this.u=b;this.listeners=[];var c=new g.O(this);g.C(this,c);c.L(a,"videodatachange",this.AN);this.o=J1(this);this.contentCpn=J1(this,1).clientPlaybackNonce};
J1=function(a,b){var c=a.aa.getVideoData(b);return c?a.Nm(c):null};
L1=function(a){g.A.call(this);this.aa=a;this.listeners=[];var b=new g.O(this);g.C(this,b);b.L(a,"progresssync",this.o)};
M1=function(a,b){g.A.call(this);this.Va=a;this.aa=b;this.o=new Map;this.u=new Map;this.w=new g.O(this);g.C(this,this.w);this.w.L(this.aa,g.XD("ad"),this.A,this)};
N1=function(a,b,c){g.UD.call(this,b,c,{id:"adtriggercuerange:"+a.o,namespace:"ad",priority:2,visible:!1});this.o=a.o};
zpa=function(a){g.A.call(this);this.o=new M1(a.WO,a.aa);g.C(this,this.o)};
Apa=function(a,b,c){function d(){return p}
g.A.call(this);var e=new F1(a);g.C(this,e);var f=new L1(a);g.C(this,f);var k=new xpa(a);this.mg=new H1;this.o=new upa(a);var l=new K1(a,new ppa);g.C(this,l);this.ib=new T_(this.o);g.C(this,this.ib);this.Tk=new l1;g.C(this,this.Tk);var m=new gpa,n=new jpa,p=null;this.Oj=new fpa({yp:d,uf:l});g.C(this,this.Oj);var t=new g1(d,n,this.ib);g.C(this,t);this.Uo=new k1(d,n,this.o,this.ib);g.C(this,this.Uo);this.w=new woa({XN:function(u){return new zpa({aa:a,WO:u})},
Sk:new Soa({Mr:g.Jx(a.N()),Ge:e,he:f,Kb:k,Iv:d,Cd:this.Tk,Gl:this.Oj.o,uf:l,Kl:a}),Oj:this.Oj,Uo:this.Uo,ib:this.ib,Tk:this.Tk,lg:m,ak:new rpa(b,c)});g.C(this,this.w);p=this.w.u;b=new qpa({gG:this.mg,Nq:p});g.C(this,b);a.N().o?this.u=new $oa(d,t,n,m,this.ib,this.o):this.u=new Zoa(d,t,n,m,this.ib,this.o);g.C(this,this.u);this.A=new G1(this.u)};
O1=function(a){g.gM.call(this,a);var b=this;this.o=null;this.w=new kU(this.player);this.A=new LY(this.player);this.u=new Apa(this.player,this.w,this.A);g.C(this,this.u);this.created=!1;var c=a.N();!Hx(c)||g.Kx(c)||Lx(c)||(c=function(){return b.o},g.C(this,new R_(a,c)),g.C(this,wV(a)?new Q_(a,c):new P_(a,c)))};
Bpa=function(a,b){if(null!==a.o){var c=a.o;switch(b){case "control_play":c.u&&(c=c.u,c.Zg()?c.aa.qb().playVideo():c.wl()&&c.u.Xf());break;case "control_pause":c.u&&(c=c.u,c.Zg()?c.aa.qb().pauseVideo():c.wl()&&c.u.Sg())}}};
Cpa=function(a,b,c,d){return new ZY(a,b,c,{RD:d.u,ND:d.Oj.o,mg:d.mg,hc:d.o})};
g.P1=function(a){if(!Dpa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Epa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
Fpa=function(){if(!g.ie)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.Q1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;ih();a=Yc(a,null);return b.parseFromString(g.Uc(a),"application/xml")}if(Gpa){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.R1=function(a){g.A.call(this);this.u=a;this.o={}};
Hpa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)Hpa(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.Ipa=function(a){g.Bb(a.o,function(b,c){this.o.hasOwnProperty(c)&&bf(b)},a);
a.o={}};
S1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
T1=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.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
fa=aaa(this);ia.prototype.toString=function(){return this.o};
var baa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ia("jscomp_symbol_"+(c||"")+"_"+b++,c)}
var b=0;return a}(),oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},U1;
if("function"==typeof Object.setPrototypeOf)U1=Object.setPrototypeOf;else{var V1;a:{var Jpa={a:!0},Kpa={};try{Kpa.__proto__=Jpa;V1=Kpa.a;break a}catch(a){}V1=!1}U1=V1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=U1;
ra.prototype.F=function(a){this.u=a};
ra.prototype["return"]=function(a){this.A={"return":a};this.o=this.G};
Ca("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=fa.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.J),reject:k(this.B)}};
b.prototype.J=function(k){if(k===this)this.B(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof b)this.P(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.H(k):this.C(k)}};
b.prototype.H=function(k){var l=void 0;try{l=k.then}catch(m){this.B(m);return}"function"==typeof l?this.O(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.P=function(k){var l=this.A();k.Tm(l.resolve,l.reject)};
b.prototype.O=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(B){try{n(u(B))}catch(D){p(D)}}:z}
var n,p,t=new b(function(u,z){n=u;p=z});
this.Tm(m(k,n),m(l,p));return t};
b.prototype["catch"]=function(k){return this.then(void 0,k)};
b.prototype.Tm=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).Tm(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(B){return function(D){u[B]=D;z--;0==z&&n(u)}}
var u=[],z=0;do u.push(void 0),z++,d(m.value).Tm(t(u.length-1),p),m=l.next();while(!m.done)})};
return b});
Ca("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ea(this,b,c).Kx}});
Ca("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
Ca("Array.prototype.find",function(a){return a?a:function(b,c){return Ea(this,b,c).BC}});
Ca("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
Ca("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(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}});
Ca("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(!Ga(m,k)){var n=new c;ha(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(!Ga(m,k))throw Error("WeakMap key fail: "+m);m[k][this.o]=n;return this};
b.prototype.get=function(m){return d(m)&&Ga(m,k)?m[k][this.o]:void 0};
b.prototype.has=function(m){return d(m)&&Ga(m,k)&&Ga(m[k],this.o)};
b.prototype["delete"]=function(m){return d(m)&&Ga(m,k)&&Ga(m[k],this.o)?delete m[k][this.o]:!1};
return b});
Ca("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.o;return la(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&&Ga(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,zd:u}}return{id:n,list:p,index:-1,zd: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;
ma();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.zd?n.zd.value=m:(n.zd={next:this.o,previous:this.o.previous,head:this.o,key:l,value:m},n.list.push(n.zd),this.o.previous.next=n.zd,this.o.previous=n.zd,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.zd&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.u[l.id],l.zd.previous.next=l.zd.next,l.zd.next.previous=l.zd.previous,l.zd.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).zd};
e.prototype.get=function(l){return(l=d(this,l).zd)&&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});
Ca("Array.prototype.keys",function(a){return a?a:function(){return Ha(this,function(b){return b})}});
Ca("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;
ma();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});
Ca("Array.prototype.values",function(a){return a?a:function(){return Ha(this,function(b,c){return c})}});
var Lpa="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)Ga(d,e)&&(a[e]=d[e])}return a};
Ca("Object.assign",function(a){return a||Lpa});
Ca("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}});
Ca("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}});
Ca("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}});
Ca("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push([d,b[d]]);return c}});
Ca("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
Ca("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}});
Ca("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
var Mpa=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=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}();
Ca("Reflect.construct",function(){return Mpa});
Ca("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push(b[d]);return c}});
Ca("Object.fromEntries",function(a){return a?a:function(b){var c={};ma();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}});
Ca("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Ca("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});
Ca("Number.parseInt",function(a){return a||parseInt});
Ca("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
g.W1=g.W1||{};g.v=this||self;Maa=/^[\w+/_-]+[=]{0,2}$/;bd=null;Qa="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.H=Date.now||function(){return+new Date};g.Ua(Va,Error);Va.prototype.name="CustomError";var Zd;g.Ua(Wa,Va);Wa.prototype.name="AssertionError";var bb,lj;bb=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.Npa=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.ve=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.Fc=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.vi=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};
lj=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.ui=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 Hda,Gda,Fda,Ida;Hda=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.Opa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Ppa=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.hn=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]");Gda=/^http:\/\/.*/;Fda=/\s+/;Ida=/[\d\u06f0-\u06f9]/;var Tb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Qpa={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};Yb.prototype.Zf=!0;Yb.prototype.ue=function(){return this.o};
var Xb={},Wb={},Kaa=g.$b("");dc.prototype.Zf=!0;dc.prototype.ue=function(){return this.u.toString()};
dc.prototype.vr=!0;dc.prototype.o=function(){return 1};
var vaa=/%{(\w+)}/g,uaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,cc={},ac={};var qc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ic=/&/g,jc=/</g,kc=/>/g,lc=/"/g,mc=/'/g,nc=/\x00/g,xaa=/[\x00&<>"']/;g.vc.prototype.Zf=!0;g.vc.prototype.ue=function(){return this.u.toString()};
g.vc.prototype.vr=!0;g.vc.prototype.o=function(){return 1};
var zaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,yaa=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,yc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,uc={},tc={};Cc.prototype.Zf=!0;var Bc={};Cc.prototype.ue=function(){return this.o};
var Hc=Ec(""),Baa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Lc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Kc=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"),Caa=/\/\*/;a:{var Rpa=g.v.navigator;if(Rpa){var Spa=Rpa.userAgent;if(Spa){g.Mc=Spa;break a}}g.Mc=""};Tc.prototype.vr=!0;Tc.prototype.o=function(){return this.w};
Tc.prototype.Zf=!0;Tc.prototype.ue=function(){return this.u.toString()};
var Tpa=/^[a-zA-Z0-9-]+$/,Upa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Vpa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Sc={};Yc("<!DOCTYPE html>",0);var Xc=Yc("",0);Yc("<br>",0);var Jaa=Ab(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.Uc(Xc);return!b.parentElement});var Naa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var od=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Dd=/#|$/,Paa=/[?&]($|#)/;Id[" "]=g.Ja;var xh,pI,aU,Wpa,Xpa,Ypa,rx,tx,X1;g.yh=Nc("Opera");g.ie=Nc("Trident")||Nc("MSIE");g.Dw=Nc("Edge");g.Yx=g.Dw||g.ie;xh=Nc("Gecko")&&!(pc(g.Mc,"WebKit")&&!Nc("Edge"))&&!(Nc("Trident")||Nc("MSIE"))&&!Nc("Edge");g.ke=pc(g.Mc,"WebKit")&&!Nc("Edge");pI=Nc("Macintosh");aU=Nc("Windows");g.sx=Nc("Android");Wpa=Gd();Xpa=Nc("iPad");Ypa=Nc("iPod");rx=Hd();tx=pc(g.Mc,"KaiOS");
a:{var Y1="",Z1=function(){var a=g.Mc;if(xh)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Dw)return/Edge\/([\d\.]+)/.exec(a);if(g.ie)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ke)return/WebKit\/(\S+)/.exec(a);if(g.yh)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Z1&&(Y1=Z1?Z1[1]:"");if(g.ie){var $1=Kd();if(null!=$1&&$1>parseFloat(Y1)){X1=String($1);break a}}X1=Y1}var Ld=X1,Saa={},a2;if(g.v.document&&g.ie){var Zpa=Kd();a2=Zpa?Zpa:parseInt(Ld,10)||void 0}else a2=void 0;var Uaa=a2;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Vaa=!g.ie||g.Nd(9),Xaa=!xh&&!g.ie||g.ie&&g.Nd(9)||xh&&g.Md("1.9.1");g.ie&&g.Md("9");var Zaa=g.ie||g.yh||g.ke;g.Sd.prototype.clone=function(){return new g.Sd(this.x,this.y)};
g.Sd.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.Sd.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.Sd.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.h=g.Ud.prototype;g.h.clone=function(){return new g.Ud(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!Wd(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 ee={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=Xd.prototype;g.h.getElementsByTagName=function(a,b){return(b||this.o).getElementsByTagName(String(a))};
g.h.createElement=function(a){return me(this.o,a)};
g.h.appendChild=g.re;g.h.append=function(a,b){ne(Yd(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.contains=g.xe;g.h=Ee.prototype;g.h.AO=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Ni.set(this.Ny(c),[new $aa(a)])};
g.h.Tw=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.Ny(b);return this.Ni.has(b)?this.Ni.get(b):void 0};
g.h.OE=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.Tw(b))&&b.length?b[0]:void 0};
g.h.clear=function(){this.Ni.clear()};
g.h.Ny=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.OE(c);e&&(d=e.Zv);this.AO(d+a,c)};g.A.prototype.ub=!1;g.A.prototype.la=function(){return this.ub};
g.A.prototype.dispose=function(){this.ub||(this.ub=!0,this.Y())};
g.A.prototype.Y=function(){if(this.oi)for(;this.oi.length;)this.oi.shift()()};g.Je.prototype.stopPropagation=function(){this.o=!0};
g.Je.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ke={};var $e=!g.ie||g.Nd(9),$pa=g.ie&&!g.Md("9");!g.ke||g.Md("528");xh&&g.Md("1.9b")||g.ie&&g.Md("8")||g.yh&&g.Md("9.5")||g.ke&&g.Md("528");xh&&!g.Md("8")||g.ie&&g.Md("9");var eba=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.Ja,b),g.v.removeEventListener("test",g.Ja,b)}catch(c){}return a}();var FQ;FQ=g.ke?"webkitAnimationEnd":g.yh?"oanimationend":"animationend";g.Ua(Le,g.Je);var aqa={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?xh&&(Jd(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:aqa[a.pointerType]||"";this.state=a.state;this.u=a;a.defaultPrevented&&this.preventDefault()};
Le.prototype.stopPropagation=function(){Le.Fb.stopPropagation.call(this);this.u.stopPropagation?this.u.stopPropagation():this.u.cancelBubble=!0};
Le.prototype.preventDefault=function(){Le.Fb.preventDefault.call(this);var a=this.u;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,$pa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Me="closure_listenable_"+(1E6*Math.random()|0),bba=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.Sm=!1)):(b=new cba(b,this.src,f,!!d,e),b.Sm=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.fb(e,b),0==e.length&&(delete this.listeners[a],this.o--),!0):!1};
Pe.prototype.zk=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.Ua(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.ca;if(b){var c=[];for(var d=1;b;b=b.ca)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.Ub(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.Y=function(){g.gf.Fb.Y.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.ca=null};
g.h.ia=function(a,b,c,d){return this.u.add(String(a),b,!1,c,d)};
g.h.Tr=function(a,b,c,d){return this.u.add(String(a),b,!0,c,d)};
g.h.Xa=function(a,b,c,d){this.u.remove(String(a),b,c,d)};
g.h.zk=function(a,b,c,d){return this.u.zk(String(a),b,c,d)};mf.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 pf,gba=g.zb;var yf=new mf(function(){return new sf},function(a){a.reset()});
rf.prototype.add=function(a,b){var c=yf.get();c.set(a,b);this.u?this.u.next=c:this.o=c;this.u=c};
rf.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};
sf.prototype.set=function(a,b){this.Sf=a;this.scope=b;this.next=null};
sf.prototype.reset=function(){this.next=this.scope=this.Sf=null};var tf,uf=!1,vf=new rf;Cf.prototype.reset=function(){this.context=this.onRejected=this.w=this.o=null;this.u=!1};
var Df=new mf(function(){return new Cf},function(a){a.reset()});
Bf.prototype.then=function(a,b,c){return Mf(this,g.Oa(a)?a:null,g.Oa(b)?b:null,c)};
Bf.prototype.$goog_Thenable=!0;Bf.prototype.cancel=function(a){if(0==this.o){var b=new Sf(a);g.wf(function(){Of(this,b)},this)}};
Bf.prototype.H=function(a){this.o=0;Af(this,2,a)};
Bf.prototype.J=function(a){this.o=0;Af(this,3,a)};
Bf.prototype.G=function(){for(var a;a=Pf(this);)Qf(this,a,this.o,this.F);this.C=!1};
var Uf=of;g.Ua(Sf,Va);Sf.prototype.name="cancel";g.Ua(g.Vf,g.gf);g.h=g.Vf.prototype;g.h.enabled=!1;g.h.Da=null;g.h.setInterval=function(a){this.rd=a;this.Da&&this.enabled?(this.stop(),this.start()):this.Da&&this.stop()};
g.h.cd=function(){if(this.enabled){var a=(0,g.H)()-this.hy;0<a&&a<.8*this.rd?this.Da=this.gm.setTimeout(this.Qv,this.rd-a):(this.Da&&(this.gm.clearTimeout(this.Da),this.Da=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Da||(this.Da=this.gm.setTimeout(this.Qv,this.rd),this.hy=(0,g.H)())};
g.h.stop=function(){this.enabled=!1;this.Da&&(this.gm.clearTimeout(this.Da),this.Da=null)};
g.h.Y=function(){g.Vf.Fb.Y.call(this);this.stop();delete this.gm};Zf.prototype.B=function(){var a=this.u.values();a=[].concat(g.na(a)).filter(function(b){return b.Ni.size});
a.length&&this.J.flush(a);mba(a);this.w=0;this.o.enabled&&this.o.stop()};
Zf.prototype.C=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.u.has(a)||this.u.set(a,new Fe(a,c))};
Zf.prototype.G=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.H.apply(this,[a,1].concat(g.na(c)))};
Zf.prototype.H=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=this.F.has(a)?void 0:this.u.get(a))&&e instanceof Fe&&(e.w(b,d),this.o.enabled||this.o.start(),this.w++,this.w>=this.A&&this.B())};var Cx,XB;g.pw=Oc();Cx=Gd()||Nc("iPod");XB=Nc("iPad");g.ux=g.Rc();g.Iv=Pc();g.Zx=Qc()&&!Hd();var cg={},gg=null;var Ag=0,Bg=0;var jg=[];ig.prototype.clone=function(){return kg(this.u,this.A,this.w-this.A)};
ig.prototype.clear=function(){this.u=null;this.o=this.w=this.A=0;this.B=!1};
ig.prototype.reset=function(){this.o=this.A};ng.prototype.reset=function(){this.o.reset();this.u=this.w=-1};sg.prototype.length=function(){return this.o.length};
sg.prototype.end=function(){var a=this.o;this.o=[];return a};vg.prototype.reset=function(){this.w=[];this.o.end();this.u=0};var Kg="function"==typeof Uint8Array,Lg=[];Jg.prototype.toString=function(){Zg(this);return this.u.toString()};
Jg.prototype.clone=function(){return new this.constructor($g(Xg(this)))};var Jj;Jj=["av.key","js","unreleased"].slice(-1)[0];var Th=document,ii=window;g.h=ah.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.KT;d=c.wO||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.ry}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=qc(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,"",{ry:0,path:b,domain:c});return d};
g.h.se=function(){return bh(this).keys};
g.h.Bd=function(){return bh(this).values};
g.h.isEmpty=function(){return!this.o.cookie};
g.h.clear=function(){for(var a=bh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Eq=new ah("undefined"==typeof document?null:document);var rba=Ab(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});var bqa;
bqa={gD:["BC","AD"],fD:["Before Christ","Anno Domini"],sD:"JFMAMJJASOND".split(""),xD:"JFMAMJJASOND".split(""),Tu:"January February March April May June July August September October November December".split(" "),dv:"January February March April May June July August September October November December".split(" "),bv:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),ev:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),vv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),gv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
cv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),fv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),TR:"SMTWTFS".split(""),yD:"SMTWTFS".split(""),vD:["Q1","Q2","Q3","Q4"],tD:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Fu:["AM","PM"],Up:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],lv:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],cD:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],tm:6,GD:[5,6],wm:5};g.b2=bqa;g.b2=bqa;g.h=g.hh.prototype;g.h.Iw=g.b2.tm;g.h.Kw=g.b2.wm;g.h.clone=function(){var a=new g.hh(this.date);a.Iw=this.Iw;a.Kw=this.Kw;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()),gh(this,a.getDate()))};
g.h.toString=function(){return[this.getFullYear(),g.gd(this.getMonth()+1,2),g.gd(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};var ih=g.Ja;var uba=/https?:\/\/[^\/]+/,sba={LP:"allow-forms",MP:"allow-modals",NP:"allow-orientation-lock",OP:"allow-pointer-lock",PP:"allow-popups",QP:"allow-popups-to-escape-sandbox",RP:"allow-presentation",SP:"allow-same-origin",TP:"allow-scripts",UP:"allow-top-navigation",VP:"allow-top-navigation-by-user-activation"},xba=Ab(function(){return tba()});var Pba={rS:1,gT:2,QR:3};g.h=ph.prototype;g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new ph(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof ph?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.sh.prototype;g.h.clone=function(){return new g.sh(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Sd?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 wh={};var Rh=!!window.google_async_iframe_id,Sh=Rh&&window.parent||window;Zb(g.$b("//fonts.googleapis.com/css"));var kca={NONE:0,IQ:1};Xh.prototype.isVisible=function(){return this.Wh?.3<=this.ob:.5<=this.ob};var Di={YC:0,RQ:1},Qba={YC:0,pR:1,qR:2},Oba={NONE:0,zR:1,XQ:2};Yh.prototype.getValue=function(){return this.u};
g.r(Zh,Yh);Zh.prototype.setValue=function(a){if(null!==this.u||!g.Lb(this.w,a))return!1;this.u=a;return!0};
g.r($h,Yh);$h.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};ai.prototype.disable=function(){this.w=!1};
ai.prototype.enable=function(){this.w=!0};
ai.prototype.isEnabled=function(){return this.w};
ai.prototype.reset=function(){this.o={};this.w=!0;this.u={}};g.bk=!g.ie&&!Qc();fi.prototype.now=function(){return 0};
fi.prototype.u=function(){return 0};
fi.prototype.w=function(){return 0};
fi.prototype.o=function(){return 0};g.r(hi,fi);hi.prototype.now=function(){return gi()&&ii.performance.now?ii.performance.now():fi.prototype.now.call(this)};
hi.prototype.u=function(){return gi()&&ii.performance.memory?ii.performance.memory.totalJSHeapSize||0:fi.prototype.u.call(this)};
hi.prototype.w=function(){return gi()&&ii.performance.memory?ii.performance.memory.usedJSHeapSize||0:fi.prototype.w.call(this)};
hi.prototype.o=function(){return gi()&&ii.performance.memory?ii.performance.memory.jsHeapSizeLimit||0:fi.prototype.o.call(this)};ki.prototype.isVisible=function(){return 1===ji(Th)};var Eba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;wi.prototype.setInterval=function(a,b){return ii.setInterval(a,b)};
wi.prototype.clearInterval=function(a){ii.clearInterval(a)};
wi.prototype.setTimeout=function(a,b){return ii.setTimeout(a,b)};
wi.prototype.clearTimeout=function(a){ii.clearTimeout(a)};
Ka(wi);Ai.prototype.getContext=function(){if(!this.o){if(!ii)throw Error("Context has not been set and window is undefined.");this.o=wi.getInstance()}return this.o};
Ka(Ai);g.Ua(Bi,Jg);Ei.prototype.Ft=function(a){if("string"===typeof a&&0!=a.length){var b=this.Pa;if(b.w){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)}}}};
Ka(Ei);Hi.prototype.clone=function(){return new Hi(this.start,this.end)};var c2=null;var Mi=g.v.performance,cqa=!!(Mi&&Mi.mark&&Mi.measure&&Mi.clearMarks),Ki=Ab(function(){var a;if(a=cqa){var b;if(null===c2){c2="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(c2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=c2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Li.prototype.disable=function(){this.o=!1;this.events!=this.u.google_js_reporting_queue&&(Ki()&&(0,g.y)(this.events,Ni),this.events.length=0)};
Li.prototype.start=function(a,b){if(!this.o)return null;var c=Ji()||Ii();c=new Sba(a,b,c);var d="goog_"+c.label+"_"+c.uniqueId+"_start";Mi&&Ki()&&Mi.mark(d);return c};
Li.prototype.end=function(a){if(this.o&&"number"===typeof a.value){var b=Ji()||Ii();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Mi&&Ki()&&Mi.mark(b);!this.o||2048<this.events.length||this.events.push(a)}};Qi.prototype.u=function(a,b,c,d,e){e=e||this.A;try{var f=new oi;f.A=!0;si(f,1,"context",a);b.error&&b.meta&&b.id||(b=new Ri(Si(b)));b.msg&&si(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=ni();l.u&&si(f,4,"top",l.u.url||"");si(f,5,"url",l.o.url||"");Fi(this.B,e,f,c)}catch(m){try{Fi(this.B,e,{context:"ecmserr",rctx:a,msg:Si(m),url:l&&l.o.url},c)}catch(n){}}return this.w};
g.r(Ri,Gi);var Pi,Ui,Oi=new Li;(function(){Pi=new Rba;Ui=new Qi;var a=Uh();a&&a.document&&("complete"==a.document.readyState?Wi():Oi.o&&dh(a,"load",function(){Wi()}))})();var Uba=Date.now(),cj=-1,aj=-1,Jk,dj=-1,bj=!1;var qm={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Fk={zD:"start",iD:"firstquartile",qD:"midpoint",CD:"thirdquartile",XC:"complete",pD:"metric",PAUSE:"pause",uD:"resume",wD:"skip",FD:"viewable_impression",rD:"mute",DD:"unmute",jD:"fullscreen",hD:"exitfullscreen",WC:"bufferstart",VC:"bufferfinish",kD:"fully_viewable_audible_half_duration_impression",oD:"measurable_impression",RC:"abandon",eD:"engagedview",lD:"impression",ZC:"creativeview",mD:"loaded",uS:"progress",CLOSE:"close",
vQ:"collapse",bS:"overlay_resize",cS:"overlay_unmeasurable_impression",dS:"overlay_unviewable_impression",fS:"overlay_viewable_immediate_impression",eS:"overlay_viewable_end_of_session_impression",aD:"custom_metric_viewable"},wda="start firstquartile midpoint thirdquartile resume loaded".split(" "),xda=["start","firstquartile","midpoint","thirdquartile"],Bca=["abandon"],Jl={UNKNOWN:-1,zD:0,iD:1,qD:2,CD:3,XC:4,pD:5,PAUSE:6,uD:7,wD:8,FD:9,rD:10,DD:11,jD:12,hD:13,kD:14,oD:15,RC:16,eD:17,lD:18,ZC:19,
mD:20,aD:21,WC:22,VC:23};var Wba={IP:"addEventListener",ZQ:"getMaxSize",aR:"getScreenSize",bR:"getState",cR:"getVersion",zS:"removeEventListener",CR:"isViewable"};if(Th&&Th.URL){var dqa,oh=Th.URL;dqa=!!oh&&0<wba().length;Ui.w=!dqa};mj.prototype.update=function(a){a&&a.document&&(this.G=Wh(!1,a,this.F),this.o=Wh(!0,a,this.F),oj(this,a),nj(this,a))};
Ka(mj);var eqa=new ph(0,0,0,0);uj.prototype.cancel=function(){xi().clearTimeout(this.o);this.o=null};
uj.prototype.schedule=function(){var a=this;this.o=xi().setTimeout(Ci(Ei.getInstance().o.o,Yi(143,function(){a.u++;a.w.GB()})),Vba())};g.h=vj.prototype;g.h.My=function(){return this.po()};
g.h.po=function(){return!1};
g.h.initialize=function(){return this.H=!0};
g.h.Ti=function(){return this.o.S};
g.h.Jk=function(){return this.o.J};
g.h.getName=function(){return this.o.ca};
g.h.Og=function(){return this.o.ax()};
g.h.ax=function(){return{}};
g.h.Vf=function(){return this.o.F};
g.h.Ky=function(){var a=mj.getInstance();a.o=Wh(!0,this.xd,a.F)};
g.h.Ly=function(){nj(mj.getInstance(),this.xd)};
g.h.jH=function(){oj(mj.getInstance(),this.xd)};
g.h.nx=function(){return this.w.o};
g.h.GB=function(){};
g.h.isActive=function(){return this.o.C};
g.h.Zi=function(a){var b=this.o,c=a.Vf();this.o=c>=this.F?a:this;b!==this.o?(this.C=this.o.C,wj(this)):this.C!==this.o.C&&(this.C=this.o.C,wj(this))};
g.h.Ug=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&&Bj(this)}};
g.h.yf=function(){return this.G};
g.h.dispose=function(){this.ub=!0};
g.h.la=function(){return this.ub};g.h=Cj.prototype;g.h.ds=function(){return!0};
g.h.al=function(){};
g.h.Qm=function(){if(this.element){var a=this.element,b=this.u.o.xd;try{try{var c=ij(a.getBoundingClientRect())}catch(n){c=new ph(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Kh(a,b),k=f.x,l=f.y;var m=new ph(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=eqa.clone()}this.o=m}};
g.h.Sv=function(){this.B=this.u.w.o};
g.h.Lf=function(){this.Qm();this.A=new tj(this.u.w,this.o,this.A.B,this.A.o,this.A.A,$i(),this.A.w)};
g.h.dispose=function(){if(!this.la()){var a=this.u;g.gb(a.A,this);a.G&&this.yf()&&Aj(a);this.al();this.ub=!0}};
g.h.la=function(){return this.ub};
g.h.Og=function(){return this.u.Og()};
g.h.Vf=function(){return this.u.Vf()};
g.h.Ti=function(){return this.u.Ti()};
g.h.Jk=function(){return this.u.Jk()};
g.h.Zi=function(){};
g.h.Ug=function(){this.Lf()};
g.h.yf=function(){return this.J};g.h=Dj.prototype;g.h.Vf=function(){return this.o.Vf()};
g.h.Ti=function(){return this.o.Ti()};
g.h.Jk=function(){return this.o.Jk()};
g.h.create=function(a,b,c){var d=null;this.o&&(d=this.jo(a,b,c),yj(this.o,d));return d};
g.h.vy=function(){return this.Zk()};
g.h.Zk=function(){return!1};
g.h.init=function(a){return this.o.initialize()?(yj(this.o,this),this.A=a,!0):!1};
g.h.Zi=function(a){0==a.Vf()&&this.A(a.Ti(),this)};
g.h.Ug=function(){};
g.h.yf=function(){return!1};
g.h.dispose=function(){this.ub=!0};
g.h.la=function(){return this.ub};
g.h.Og=function(){return{}};Gj.prototype.add=function(a,b,c){++this.w;var d=this.w/4096;this.o.push(cca(new Ej(a,b,c),d));this.u=!0;return this};Kj.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Ij(this.o);0<b.length&&(a+="?"+b);return a};Ka(Nj);Oj.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];Pj.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)}};Zj.prototype.update=function(a,b,c,d){this.F=-1!=this.F?Math.min(this.F,b.ob):b.ob;this.P=Math.max(this.P,b.ob);this.O=-1!=this.O?Math.min(this.O,b.Gd):b.Gd;this.U=Math.max(this.U,b.Gd);this.ra.update(b.Gd,c.Gd,b.o,a,d);this.u.update(b.ob,c.ob,b.o,a,d);c=d||c.Wh!=b.Wh?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.o;this.ca.update(c,a,b)};
Zj.prototype.Yh=function(){return this.ca.w>=this.ga};var jca=new ph(0,0,0,0);g.r(ck,g.A);g.h=ck.prototype;g.h.Y=function(){this.Jd.o&&(this.Kh.lt&&(eh(this.Jd.o,"mouseover",this.Kh.lt),this.Kh.lt=null),this.Kh.kt&&(eh(this.Jd.o,"mouseout",this.Kh.kt),this.Kh.kt=null));this.dm&&this.dm.dispose();this.sb&&this.sb.dispose();delete this.co;delete this.Zr;delete this.qC;delete this.Jd.eh;delete this.Jd.o;delete this.Kh;delete this.dm;delete this.sb;delete this.Pa;g.A.prototype.Y.call(this)};
g.h.Pg=function(){return this.sb?this.sb.o:this.position};
g.h.Ft=function(a){Ei.getInstance().Ft(a)};
g.h.yf=function(){return!1};
g.h.An=function(){return new Zj};
g.h.Ld=function(){return this.co};
g.h.gx=function(a){return gk(this,a,1E4)};
g.h.jm=function(a,b,c,d,e,f,k){this.ij||(this.gn&&(a=this.iq(a,c,e,k),d=d&&this.td.ob>=(this.Wh()?.3:.5),this.wu(f,a,d),this.Sr=b,0<a.ob&&-1===this.eC&&(this.eC=b),-1==this.fC&&this.Yh()&&(this.fC=b),-2==this.Wr&&(this.Wr=qj(this.Pg())?a.ob:-1),this.td=a,c&&(this.td.ob=0)),this.Zr(this))};
g.h.wu=function(a,b,c){this.Ld().update(a,b,this.td,c)};
g.h.Zq=function(){return new Xh};
g.h.iq=function(a,b,c,d){c=this.Zq();c.o=b;b=xi().u;b=0===ji(Th)?-1:b.isVisible()?0:1;c.u=b;c.ob=this.yq(a);c.Wh=this.Wh();c.Gd=d;return c};
g.h.qx=function(a,b){if(-1==this.Sr)return 0;var c=a-this.Sr||1;return c>b?1:c};
g.h.Fn=function(a){return this.qx(a,1E4)};
g.h.yq=function(a){return 0===this.opacity&&1===di(this.Pa,"opac")?0:a};
g.h.Wh=function(){return!1};
g.h.mp=function(){return!1};
g.h.jf=function(){return 0};
g.h.Yh=function(){return this.co.Yh()};var ik="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};hk.prototype.next=function(){throw ik;};
hk.prototype.If=function(){return this};g.r(lk,Xh);pk.prototype.getValue=function(){return this.u};
pk.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(qk,Zj);
qk.prototype.update=function(a,b,c,d){if(!b.paused){Zj.prototype.update.call(this,a,b,c,d);var e=mk(b)&&mk(c),f=.5<=(d?Math.min(b.ob,c.ob):c.ob);kj(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.S+=a,this.H+=e?a:0);this.o.update(b.ob,c.ob,b.o,a,d,e);this.w.update(!0,a);this.B.update(e,a);this.J.update(c.fullscreen,a);this.na.update(e&&!f,a);a=Math.floor(b.w/1E3);this.V.update(a,b.isVisible());this.ea.update(a,1<=b.ob);this.da.update(a,mk(b))}};g.r(sk,vca);sk.prototype.w=function(){return!0};
sk.prototype.B=function(){return!1};
sk.prototype.getId=function(){var a=this,b=Mb(Fk,function(c){return c==a.A});
return Jl[b].toString()};
sk.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(vk,Cj);vk.prototype.Tx=function(a){var b=1==di(this.Pa,"od");return aca(a,this.B,this.element,b)};
vk.prototype.Tv=function(){var a=this.u.w;this.timestamp=-1===a.time?$i():a.time};
vk.prototype.Lf=function(){this.Tv();this.Qm();this.Sv();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 ph(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 ph(0,0,0,0);b=a.top>=a.bottom||a.left>=a.right?new ph(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.Tx(b)?b=new ph(0,0,0,0):(c=mj.getInstance().A,e=new ph(0,c.height,c.width,0),c=rj(b,
this.o),d=rj(b,mj.getInstance().o),e=rj(b,e)));b=b.top>=b.bottom||b.left>=b.right?new ph(0,0,0,0):rh(b,-this.o.left,-this.o.top);this.A=new tj(a,this.o,b,c,d,this.timestamp,e)};
vk.prototype.getName=function(){return this.u.getName()};var fqa=new ph(0,0,0,0);g.r(wk,vk);g.h=wk.prototype;g.h.ds=function(){this.w();return!0};
g.h.Ug=function(){vk.prototype.Lf.call(this)};
g.h.Tv=function(){};
g.h.Qm=function(){};
g.h.Lf=function(){this.w();vk.prototype.Lf.call(this)};
g.h.Zi=function(a){a=a.isActive();a!==this.F&&(a?this.w():(mj.getInstance().o=new ph(0,0,0,0),this.o=new ph(0,0,0,0),this.B=new ph(0,0,0,0),this.timestamp=-1));this.F=a};var d2={},Aca=(d2.firstquartile=0,d2.midpoint=1,d2.thirdquartile=2,d2.complete=3,d2);g.r(xk,ck);g.h=xk.prototype;g.h.yf=function(){return!0};
g.h.gx=function(a){return gk(this,a,Math.max(1E4,this.w/3))};
g.h.Fn=function(a){return 2==this.Dc?0:ck.prototype.qx.call(this,a,Math.max(1E4,this.w/3))};
g.h.jm=function(a,b,c,d,e,f,k){var l=this,m=this.J(this)||{};g.Ub(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===Bk(this)&&(f=e);ck.prototype.jm.call(this,a,b,c,d,m,f,k);this.ai&&this.ai.o&&(0,g.y)(this.C,function(n){n.o||(n.o=uk(n,l))})};
g.h.wu=function(a,b,c){ck.prototype.wu.call(this,a,b,c);Ak(this).update(a,b,this.td,c);this.ga=mk(this.td)&&mk(b);-1==this.U&&this.ea&&(this.U=this.Ld().w.o);this.xc.w=0;a=this.Yh();b.isVisible()&&nk(this.xc,"vs");a&&nk(this.xc,"vw");kj(b.volume)&&nk(this.xc,"am");mk(b)&&nk(this.xc,"a");this.cj&&nk(this.xc,"f");-1!=b.u&&(nk(this.xc,"bm"),1==b.u&&nk(this.xc,"b"));mk(b)&&b.isVisible()&&nk(this.xc,"avs");this.ga&&a&&nk(this.xc,"avw");0<b.ob&&nk(this.xc,"pv");Ck(this,this.Ld().w.o,!0)&&nk(this.xc,"gdr");
2E3<=Wj(this.Ld().u,1)&&nk(this.xc,"pmx")};
g.h.An=function(){return new qk};
g.h.Ld=function(){return this.co};
g.h.Zq=function(){return new lk};
g.h.iq=function(a,b,c,d){a=ck.prototype.iq.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.cj;a.paused=2==this.Dc;a.volume=c.volume;kj(a.volume)||(this.ra++,b=this.td,kj(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.w=void 0!==c&&0<=c?c:-1;return a};
g.h.yq=function(a){return mj.getInstance(),this.cj?1:ck.prototype.yq.call(this,a)};
g.h.jf=function(){return 1};
g.h.getDuration=function(){return this.w};var gqa=(0,g.H)();var Ok={'"':'\\"',"\\":"\\\\","/":"\\/","\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;Pk.prototype.reset=function(){this.o=[];this.u=[]};
Ka(Pk);var Sk=Pk.getInstance();Ka(Wk);g.r(Yk,Dj);g.h=Yk.prototype;g.h.getName=function(){return(this.u?this.u:this.o).getName()};
g.h.Og=function(){return(this.u?this.u:this.o).Og()};
g.h.Vf=function(){return(this.u?this.u:this.o).Vf()};
g.h.init=function(a){var b=!1;(0,g.y)(this.w,function(c){c.initialize()&&(b=!0)});
b&&(this.A=a,yj(this.o,this));return b};
g.h.dispose=function(){(0,g.y)(this.w,function(a){a.dispose()});
Dj.prototype.dispose.call(this)};
g.h.vy=function(){return lj(this.w,function(a){return a.My()})};
g.h.Zk=function(){return lj(this.w,function(a){return a.po()})};
g.h.jo=function(a,b,c){return new vk(a,this.o,b,c)};
g.h.Ug=function(a){this.u=a.u};g.r(Zk,vk);g.h=Zk.prototype;g.h.ds=function(){var a=this;this.H||(this.H=$i());if(Xi(298,function(){return Rca(a)}))return!0;
xj(this.u,"msf");return!1};
g.h.Qm=function(){};
g.h.Tx=function(){return!1};
g.h.Sv=function(){};
g.h.Og=function(){var a={};return Object.assign(this.u.Og(),(a.niot_obs=this.H,a.niot_cbk=this.G,a))};var Qca={threshold:[0,.3,.5,.75,1]};g.r(al,Zk);al.prototype.getName=function(){return"nio"};
al.prototype.al=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){}};
al.prototype.Lf=function(){var a=bl(this);0<a.length&&$k(this,a);Zk.prototype.Lf.call(this)};var hoa={},ol=Cx||XB;g.r(rl,Dj);rl.prototype.getName=function(){return"nio"};
rl.prototype.Zk=function(){return g.hl()?!1:"exc"!==Ei.getInstance().sb&&!mj.getInstance().u&&null!=this.o.o.xd.IntersectionObserver};
rl.prototype.jo=function(a,b,c){return new al(a,this.o,b,c)};g.r(tl,vj);tl.prototype.nx=function(){return mj.getInstance().o};
tl.prototype.po=function(){var a=sl();this.F!==a&&(this.o!=this&&a>this.o.F&&(this.o=this,wj(this)),this.F=a);return 2==a};
Ka(tl);Ka(ul);vl.prototype.GB=function(){yl(this,Tk(),!1)};
vl.prototype.A=function(){var a=pj(),b=$i();a?(bj||(cj=b,(0,g.y)(Sk.o,function(c){var d=c.Ld();d.Z=rk(d,b,1!=c.Dc)})),bj=!0):(this.F=Al(this,b),bj=!1,Jk=b,(0,g.y)(Sk.o,function(c){c.gn&&(c.Ld().G=b)}));
yl(this,Tk(),!a)};
Ka(vl);var wl=vl.getInstance();var Bl=null,jm="",im=!1;var e2=Hl([void 0,1,2,3,4,8,16]),f2=Hl([void 0,4,8,16]),hqa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Gl("p0",f2),p1:Gl("p1",f2),p2:Gl("p2",f2),p3:Gl("p3",f2),tos:"tos",mtos:"mtos",mtos1:Fl("mtos1",[0,2,4],!1,f2),mtos2:Fl("mtos2",[0,2,4],!1,f2),mtos3:Fl("mtos3",[0,2,4],!1,f2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Gl("a0",f2),a1:Gl("a1",f2),a2:Gl("a2",f2),a3:Gl("a3",f2),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:Gl("c0",f2),c1:Gl("c1",f2),c2:Gl("c2",f2),c3:Gl("c3",f2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Gl("qmtos",e2),qnc:Gl("qnc",e2),qmv:Gl("qmv",e2),qnv:Gl("qnv",e2),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:Gl("ss0",f2),ss1:Gl("ss1",f2),ss2:Gl("ss2",f2),ss3:Gl("ss3",f2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids"},iqa={c:Cl("c"),at:"at",atos:Fl("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:El(),j:"dom",mtos:Fl("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Cl("ss"),vsv:yb("w2"),t:"t"},jqa={atos:"atos",amtos:"amtos",avt:Fl("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Cl("ss"),t:"t"},kqa={a:"a",tos:El(),at:"at",c:Cl("c"),mtos:Fl("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:yb("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},lqa={tos:El(),at:"at",c:Cl("c"),mtos:Fl("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:yb("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:Fl("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return(0,g.Fc)(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Yca={SQ:"visible",aQ:"audible",SS:"time",US:"timetype"},Ml={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(Ol,sk);Ol.prototype.getId=function(){return this.F};
Ol.prototype.B=function(){return!0};
Ol.prototype.w=function(a){var b=a.Ld(),c=a.getDuration();return lj(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(Pl,sk);Pl.prototype.w=function(a){var b=Uj(a.Ld().o,1);return Ck(a,b)};g.r(Ql,sk);Ql.prototype.w=function(a){return a.Ld().Yh()};g.r(Tl,ada);Tl.prototype.o=function(a){var b=new Rl;b.o=Sl(a,hqa);b.w=Sl(a,jqa);return b};g.r(Ul,wk);Ul.prototype.w=function(){var a=g.w("ima.admob.getViewability"),b=di(this.Pa,"queryid");g.Oa(a)&&b&&a(b)};
Ul.prototype.getName=function(){return"gsv"};g.r(Vl,Dj);Vl.prototype.getName=function(){return"gsv"};
Vl.prototype.Zk=function(){var a=mj.getInstance();Ei.getInstance();return a.u&&!1};
Vl.prototype.jo=function(a,b,c){return new Ul(this.o,b,c)};g.r(Wl,wk);Wl.prototype.w=function(){var a=this,b=g.w("ima.bridge.getNativeViewability"),c=di(this.Pa,"queryid");g.Oa(b)&&c&&b(c,function(d){g.Ob(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.o=jj(d.opt_nativeViewBounds||{});var k=a.u.w;k.o=f?fqa.clone():jj(e);a.timestamp=d.opt_nativeTime||-1;mj.getInstance().o=k.o;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Wl.prototype.getName=function(){return"nis"};g.r(Xl,Dj);Xl.prototype.getName=function(){return"nis"};
Xl.prototype.Zk=function(){var a=mj.getInstance();Ei.getInstance();return a.u&&!1};
Xl.prototype.jo=function(a,b,c){return new Wl(this.o,b,c)};g.r(Yl,vj);g.h=Yl.prototype;g.h.po=function(){return null!=this.u.Ue};
g.h.ax=function(){var a={};this.U&&(a.mraid=this.U);this.O&&(a.mlc=1);a.mtop=this.u.WB;this.B&&(a.mse=this.B);this.V&&(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.Ue[a].apply(this.u.Ue,c)}catch(e){Zi(538,e,.01,function(f){f.method=a})}};
g.h.initialize=function(){var a=this;if(this.H)return!this.Jk();this.H=!0;if(2===this.u.compatibility)return this.B="ng",xj(this,"w"),!1;if(1===this.u.compatibility)return this.B="mm",xj(this,"w"),!1;var b;if(b=1!=di(Ei.getInstance().Pa,"mxd")){a:switch(this.u.WB){case 0:case 3:b=!0;break a;default:b=!1}b=!b}if(b)return this.B="if",xj(this,"w"),!1;mj.getInstance().H=!0;this.xd.document.readyState&&"complete"==this.xd.document.readyState?bm(this):gj(this.xd,"load",function(){xi().setTimeout(Yi(292,
function(){return bm(a)}),100)},292);
return!0};
g.h.Ky=function(){var a=mj.getInstance(),b=em(this,"getMaxSize");a.o=new ph(0,b.width,b.height,0)};
g.h.Ly=function(){mj.getInstance().A=em(this,"getScreenSize")};
g.h.dispose=function(){cm(this);vj.prototype.dispose.call(this)};
Ka(Yl);g.h=fm.prototype;g.h.mk=function(a){dk(a,!1);Mca(a)};
g.h.En=function(){};
g.h.Pl=function(a,b,c,d){var e=this;this.u||(this.u=this.ow());b=c?b:-1;a=null==this.u?new xk(ii,a,b,7):new xk(ii,a,b,7,new sk("measurable_impression",this.u),gda(this));a.Zc=d;Bba(a.Pa);ci(a.Pa,"queryid",a.Zc);a.Ft("");oca(a,function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return e.Ax.apply(e,g.na(k))},function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];
return e.zF.apply(e,g.na(k))});
(d=Wk.getInstance().o)&&fk(a,d);a.Jd.eh&&ul.getInstance();return a};
g.h.Zi=function(a){switch(a.Vf()){case 0:if(a=Wk.getInstance().o)a=a.o,g.gb(a.A,this),a.G&&this.yf()&&Aj(a);hm();break;case 2:xl()}};
g.h.Ug=function(){};
g.h.yf=function(){return!1};
g.h.zF=function(a,b){a.ij=!0;switch(a.jf()){case 1:nm(this,a,b);break;case 2:this.Nt(a)}this.Ut()};
g.h.HF=function(a){Ek(a,0);return Hk(a,"start",pj())};
g.h.Qj=function(a,b,c){yl(wl,[a],!pj());return this.Qg(a,b,c)};
g.h.Qg=function(a,b,c){return Hk(a,c,pj())};
g.h.CF=function(a){return om(a,"firstquartile",1)};
g.h.EF=function(a){a.ea=!0;return om(a,"midpoint",2)};
g.h.IF=function(a){return om(a,"thirdquartile",3)};
g.h.AF=function(a){var b=om(a,"complete",4);yk(a);return b};
g.h.FB=function(a,b,c){b=pj();2!=a.Dc||b||(a.Ld().G=$i());yl(wl,[a],!b);2==a.Dc&&(a.Dc=1);return Hk(a,c,b)};
g.h.GF=function(a,b){var c=this.Qj(a,b||{},"skip");yk(a);return c};
g.h.DF=function(a,b){dk(a,!0);return this.Qj(a,b||{},"fullscreen")};
g.h.BF=function(a,b){dk(a,!1);return this.Qj(a,b||{},"exitfullscreen")};
g.h.Bt=function(a,b,c){b=a.Ld();b.Z=rk(b,$i(),1!=a.Dc);yl(wl,[a],!pj());1==a.Dc&&(a.Dc=2);return Hk(a,c,pj())};
g.h.FF=function(a){yl(wl,[a],!pj());return a.u()};
g.h.rr=function(a){yl(wl,[a],!pj());this.BB(a);yk(a);return a.u()};
g.h.Ax=function(){};
g.h.Nt=function(){};
g.h.BB=function(){};
g.h.uy=function(){};
g.h.Ut=function(){};
g.h.ow=function(){};var tm=(0,g.H)(),vm=!1,wm=!1,xm=!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 um(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 um(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 um(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 um(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 um(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return wm},
function(){return xm},
function(){return um(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 um(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]||sm(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 sm(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 um(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 sm(a.CSS.supports)},
function(){return sm(Intl.Collator)},
function(a){return sm(a.document.createElement("dialog").show)},
function(){return um(8)},
function(a){return sm(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 sm(a.document.createElement("div").animate)},
function(a){return sm(a.document.documentElement.webkitRequestFullScreen)},
function(a){return sm(a.navigator.getBattery)},
function(a){return sm(a.navigator.permissions.query)},
function(){return!1},
function(){return um(9)},
function(){return sm(webkitRequestAnimationFrame)},
function(a){return sm(a.BroadcastChannel.call)},
function(a){return sm(a.FontFace)},
function(a){return sm(a.Gamepad)},
function(){return um(10)},
function(a){return sm(a.MutationEvent)},
function(a){return sm(a.MutationObserver)},
function(a){return sm(a.crypto.getRandomValues)},
function(a){return sm(a.document.body.createShadowRoot)},
function(a){return sm(a.document.body.webkitCreateShadowRoot)},
function(a){return sm(a.fetch)},
function(){return um(11)},
function(a){return sm(a.navigator.serviceWorker.register)},
function(a){return sm(a.navigator.webkitGetGamepads)},
function(a){return sm(a.speechSynthesis.speak)},
function(a){return sm(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return um(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 um(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 um(14)},
function(a){return"undefined"==typeof a.navigator.PT},
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.Ua(ym,rda);ym.prototype.reset=function(){this.o[0]=1732584193;this.o[1]=4023233417;this.o[2]=2562383102;this.o[3]=271733878;this.A=this.w=0};
ym.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;)zm(this,a,f),f+=this.u;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.u){zm(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.u){zm(this,d);e=0;break}}this.w=e;this.A+=b};
ym.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(Am,Tl);Am.prototype.o=function(a){var b=Tl.prototype.o.call(this,a);var c=tm=(0,g.H)();var d=um(5);c=(wm?!d:d)?c|2:c&-3;d=um(2);c=(xm?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=qda());b.B=this.u;b.C=Sl(a,iqa,c,"h",Bm("kArwaWEsTs"));b.A=Sl(a,kqa,{},"h",Bm("b96YPMzfnx"));b.u=Sl(a,lqa,{},"h",Bm("yb8Wev6QDg"));return b};Cm.prototype.o=function(){return g.w(this.u)};g.r(Dm,Cm);Dm.prototype.o=function(a){if(!a.Bj)return Cm.prototype.o.call(this,a);var b=this.A[a.Bj];if(b)return function(c,d,e){b.u(c,d,e)};
Zi(393,Error());return null};g.r(Em,fm);g.h=Em.prototype;g.h.En=function(a,b){var c=this,d=Ei.getInstance(),e=Wk.getInstance();if(null!=e.o)switch(e.o.getName()){case "nis":var f=Fm(this,a,b);break;case "gsv":f=uda(this,a,b);break;case "exc":f=Gm(this,a)}else switch(d.sb){case "nis":f=Fm(this,a,b);break;case "exc":f=Gm(this,a)}f||(b.opt_overlayAdElement?f=void 0:b.opt_adElement&&(f=jda(this,a,b.opt_adElement,b.opt_osdId)));f&&1==f.jf()&&(f.J==g.Ja&&(f.J=function(k){return c.uy(k)}),tda(this,f,b));
return f};
g.h.uy=function(a){a.u=0;a.S=0;if("h"==a.A||"n"==a.A){var b;Ei.getInstance();if(a.Bj&&Jm(this)){var c=this.G[a.Bj];c?b=function(e){return c.o(e)}:null!==c&&Zi(379,Error())}else b=g.w("ima.common.getVideoMetadata");
if(g.Oa(b))try{var d=b(a.Zc)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.A)if(b=g.w("ytads.bulleit.getVideoMetadata"),g.Oa(b))try{d=b(a.Zc)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.A)if(b=g.w("ima.common.getVideoMetadata"),g.Oa(b))try{d=b(a.Zc)}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.Ob(d)?a.u|=32:null!=d.errorCode&&(a.S=d.errorCode,a.u|=64));null==d&&(d={});kda(d,a);kj(d.volume)&&kj(void 0)&&(d.volume*=NaN);return d};
g.h.ow=function(){if(Jm(this))return new Dm("ima.common.triggerExternalActivityEvent",this.w,this.G);var a=vda(this);return null!=a?new Cm(a,this.w):null};
g.h.Nt=function(a){!a.o&&a.ij&&mm(this,a,"overlay_unmeasurable_impression")&&(a.o=!0)};
g.h.BB=function(a){a.SB&&(a.Yh()?mm(this,a,"overlay_viewable_end_of_session_impression"):mm(this,a,"overlay_unviewable_impression"),a.SB=!1)};
g.h.Ax=function(){};
g.h.Ut=function(){};
g.h.Pl=function(a,b,c,d){a=fm.prototype.Pl.call(this,a,b,c,d);this.B&&(b=this.C,null==a.B&&(a.B=new qca),b.o[a.Zc]=a.B,a.B.B=gqa);return a};
g.h.mk=function(a){a&&1==a.jf()&&this.B&&delete this.C.o[a.Zc];return fm.prototype.mk.call(this,a)};
Ka(Em);var Hm=new Rl;Hm.B="stopped";Hm.o="stopped";Hm.w="stopped";Hm.C="stopped";Hm.A="stopped";Hm.u="stopped";Object.freeze(Hm);var mqa=Vi(193,Lm,pm);g.Ia("Goog_AdSense_Lidar_sendVastEvent",mqa,void 0);var nqa=Yi(194,function(a,b){b=void 0===b?{}:b;var c=Im(Em.getInstance(),a,b);return Km(c)});
g.Ia("Goog_AdSense_Lidar_getViewability",nqa,void 0);var oqa=Vi(195,function(){return zi()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",oqa,void 0);var pqa=Yi(196,function(){return g.Mk(zi())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",pqa,void 0);var Cea=(new Date).getTime();g.h=g.Pm.prototype;g.h.Bd=function(){Rm(this);for(var a=[],b=0;b<this.o.length;b++)a.push(this.u[this.o[b]]);return a};
g.h.se=function(){Rm(this);return this.o.concat()};
g.h.isEmpty=function(){return 0==this.w};
g.h.clear=function(){this.u={};this.yh=this.w=this.o.length=0};
g.h.remove=function(a){return Qm(this.u,a)?(delete this.u[a],this.w--,this.yh++,this.o.length>2*this.w&&Rm(this),!0):!1};
g.h.get=function(a,b){return Qm(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Qm(this.u,a)||(this.w++,this.o.push(a),this.yh++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.se(),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.Pm(this)};
g.h.If=function(a){Rm(this);var b=0,c=this.yh,d=this,e=new hk;e.next=function(){if(c!=d.yh)throw Error("The map has changed since the iterator was created");if(b>=d.o.length)throw ik;var f=d.o[b++];return a?f:d.u[f]};
return e};g.Sm.prototype.toString=function(){var a=[],b=this.A;b&&a.push(Zm(b,qqa,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(Zm(b,qqa,!0),"@"),a.push(dd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.u)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(Zm(c,"/"==c.charAt(0)?rqa:sqa,!0));(c=this.w.toString())&&a.push("?",c);(c=this.C)&&a.push("#",Zm(c,tqa));return a.join("")};
g.Sm.prototype.resolve=function(a){var b=this.clone(),c=!!a.A;c?g.Tm(b,a.A):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Um(b,a.o):c=null!=a.B;var d=a.u;if(c)g.Vm(b,a.B);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=fc(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?Wm(b,a.w.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.Sm.prototype.clone=function(){return new g.Sm(this)};
var qqa=/[#\/\?@]/g,sqa=/[#\?:]/g,rqa=/[#\?]/g,Bda=/[#\?@]/g,tqa=/#/g;g.h=Ym.prototype;g.h.add=function(a,b){an(this);this.w=null;a=bn(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){an(this);a=bn(this,a);return Qm(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(){an(this);return 0==this.u};
g.h.forEach=function(a,b){an(this);this.o.forEach(function(c,d){(0,g.y)(c,function(e){a.call(b,e,d,this)},this)},this)};
g.h.se=function(){an(this);for(var a=this.o.Bd(),b=this.o.se(),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.Bd=function(a){an(this);var b=[];if("string"===typeof a)cn(this,a)&&(b=g.jb(b,this.o.get(bn(this,a))));else{a=this.o.Bd();for(var c=0;c<a.length;c++)b=g.jb(b,a[c])}return b};
g.h.set=function(a,b){an(this);this.w=null;a=bn(this,a);cn(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.Bd(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.se(),c=0;c<b.length;c++){var d=b[c],e=dd(d);d=this.Bd(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+dd(d[f]));a.push(k)}}return this.w=a.join("&")};
g.h.clone=function(){var a=new Ym;a.w=this.w;this.o&&(a.o=this.o.clone(),a.u=this.u);return a};var en="://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(" "),Dda=/\bocr\b/;var Eda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Ka(kn);kn.prototype.o=0;g.Ua(ln,Jg);g.Ua(mn,Jg);var Jda=[1];g.Ua(nn,Jg);g.Ua(on,Jg);g.Ua(pn,Jg);g.Ua(qn,Jg);g.Ua(rn,Jg);g.Ua(tn,Jg);g.Ua(vn,Jg);var Mda=[3,6,4],Nda=[[1,2]],Oda=[1],sn=[[1,2,3]],un=[[1,2,3]];wn.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)};
wn.prototype.get=function(a){return!!this.u[a]};g.Ua(g.xn,g.A);g.h=g.xn.prototype;g.h.start=function(){this.stop();this.A=!1;var a=zn(this),b=An(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(raa(this.w),20)};
g.h.stop=function(){if(this.isActive()){var a=zn(this),b=An(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.isActive=function(){return null!=this.o};
g.h.dF=function(){this.A&&this.o&&bf(this.o);this.o=null;this.C.call(this.B,(0,g.H)())};
g.h.Y=function(){this.stop();g.xn.Fb.Y.call(this)};g.Ua(g.I,g.A);g.h=g.I.prototype;g.h.Ek=0;g.h.Y=function(){g.I.Fb.Y.call(this);this.stop();delete this.o;delete this.u};
g.h.start=function(a){this.stop();this.Ek=g.Wf(this.w,void 0!==a?a:this.rd)};
g.h.stop=function(){this.isActive()&&g.v.clearTimeout(this.Ek);this.Ek=0};
g.h.isActive=function(){return 0!=this.Ek};
g.h.rx=function(){this.Ek=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 En=[[],[]],Fn=0,Gn=!1,Wda=0;g.Ua(g.On,g.gf);g.On.prototype.B=function(){this.qe("begin")};
g.On.prototype.A=function(){this.qe("end")};
g.On.prototype.ud=function(){this.qe("finish")};
g.On.prototype.qe=function(a){this.dispatchEvent(a)};var uqa=Ab(function(){if(g.ie)return g.Md("10.0");var a=g.pe("DIV"),b=g.ke?"-webkit":xh?"-moz":g.ie?"-ms":g.yh?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Tpa.test("div"))throw Error("");if("DIV"in Vpa)throw Error("");c=null;var d="";if(b)for(k in b){if(!Tpa.test(k))throw Error("");var e=b[k];if(null!=e){var f=k;if(e instanceof Yb)e=Zb(e);else if("style"==f.toLowerCase()){if(!g.Pa(e))throw Error("");e instanceof Cc||(e=Ic(e));e=Dc(e)}else{if(/^on/i.test(f))throw Error("");
if(f.toLowerCase()in Upa)if(e instanceof dc)e=ec(e).toString();else if(e instanceof g.vc)e=g.wc(e);else if("string"===typeof e)e=g.zc(e).ue();else throw Error("");}e.Zf&&(e=e.ue());f=f+'="'+oc(String(e))+'"';d+=" "+f}}var k="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===Qpa.div?k+=">":(c=Haa(d),k+=">"+g.Uc(c).toString()+"</div>",c=c.o());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Yc(k,c);g.$c(a,b);return""!=g.zh(a.firstChild,"transition")});g.Ua(Pn,g.On);g.h=Pn.prototype;g.h.play=function(){if(1==this.o)return!1;this.B();this.qe("play");this.startTime=(0,g.H)();this.o=1;if(uqa())return g.vh(this.w,this.J),this.F=g.Wf(this.UN,void 0,this),!0;this.gr(!1);return!1};
g.h.UN=function(){g.Ph(this.w);Zda(this.w,this.H);g.vh(this.w,this.C);this.F=g.Wf((0,g.x)(this.gr,this,!1),1E3*this.G)};
g.h.stop=function(){1==this.o&&this.gr(!0)};
g.h.gr=function(a){g.vh(this.w,"transition","");g.v.clearTimeout(this.F);g.vh(this.w,this.C);this.endTime=(0,g.H)();this.o=0;a?this.qe("stop"):this.ud();this.A()};
g.h.Y=function(){this.stop();Pn.Fb.Y.call(this)};
g.h.pause=function(){};var $da={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 dea=Rn("getPropertyValue"),eea=Rn("setProperty");var cea={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Tn.prototype.clone=function(){return new g.Tn(this.o,this.B,this.w,this.C,this.A,this.F,this.u,this.G)};g.Vn.prototype.u=0;g.Vn.prototype.reset=function(){this.o=this.w=this.A;this.u=0};
g.Vn.prototype.getValue=function(){return this.w};(function(){if(aU){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Mc))?a[1]:"0"}return pI?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Mc))?a[0].replace(/_/g,"."):"10"):g.sx?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Mc))?a[1]:""):Wpa||Xpa||Ypa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Mc))?a[1].replace(/_/g,"."):""):""})();var gea=function(){if(g.pw)return Xn(/Firefox\/([0-9.]+)/);if(g.ie||g.Dw||g.yh)return Ld;if(g.Iv)return Hd()?Xn(/CriOS\/([0-9.]+)/):Xn(/Chrome\/([0-9.]+)/);if(g.Zx&&!Hd())return Xn(/Version\/([0-9.]+)/);if(Cx||XB){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Mc);if(a)return a[1]+"."+a[2]}else if(g.ux)return(a=Xn(/Android\s+([0-9.]+)/))?a:Xn(/Version\/([0-9.]+)/);return""}();g.Ua(g.Zn,g.A);g.h=g.Zn.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.$a(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Vh(a)}return!1};
g.h.Vh=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.Ja):(c&&g.gb(c,a),delete this.o[a],delete this.o[a+1],delete this.o[a+2])}return!!b};
g.h.R=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];hea(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.Vh(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&((0,g.y)(b,this.Vh,this),delete this.u[a])}else this.o.length=0,this.u={}};
g.h.Y=function(){g.Zn.Fb.Y.call(this);this.clear();this.w.length=0};g.$n.prototype.set=function(a,b){void 0===b?this.o.remove(a):this.o.set(a,g.Mk(b))};
g.$n.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.$n.prototype.remove=function(a){this.o.remove(a)};g.Ua(ao,g.$n);ao.prototype.set=function(a,b){ao.Fb.set.call(this,a,co(b))};
ao.prototype.u=function(a){a=ao.Fb.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
ao.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.Ua(eo,ao);eo.prototype.set=function(a,b,c){if(b=co(b)){if(c){if(c<(0,g.H)()){eo.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.H)()}eo.Fb.set.call(this,a,b)};
eo.prototype.u=function(a,b){var c=eo.Fb.u.call(this,a);if(c)if(!b&&g.fo(c))eo.prototype.remove.call(this,a);else return c};g.Ua(g.go,eo);g.Ua(ho,iea);ho.prototype.clear=function(){var a=pca(this.If(!0)),b=this;(0,g.y)(a,function(c){b.remove(c)})};g.Ua(io,ho);g.h=io.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.If=function(a){var b=0,c=this.o,d=new hk;d.next=function(){if(b>=c.length)throw ik;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.Ua(jo,io);g.Ua(ko,io);g.Ua(mo,ho);var jea={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},lo=null;g.h=mo.prototype;g.h.isAvailable=function(){return!!this.o};
g.h.set=function(a,b){this.o.setAttribute(no(a),b);oo(this)};
g.h.get=function(a){a=this.o.getAttribute(no(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.o.removeAttribute(no(a));oo(this)};
g.h.If=function(a){var b=0,c=this.o.XMLDocument.documentElement.attributes,d=new hk;d.next=function(){if(b>=c.length)throw ik;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);oo(this)};g.Ua(po,ho);po.prototype.set=function(a,b){this.u.set(this.o+a,b)};
po.prototype.get=function(a){return this.u.get(this.o+a)};
po.prototype.remove=function(a){this.u.remove(this.o+a)};
po.prototype.If=function(a){var b=this.u.If(!0),c=this,d=new hk;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};so.prototype.getValue=function(){return this.u};
so.prototype.clone=function(){return new so(this.o,this.u)};g.h=to.prototype;g.h.remove=function(){var a=this.o,b=a.length,c=a[0];if(!(0>=b)){if(1==b)eb(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.Bd=function(){for(var a=this.o,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.se=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 to(this)};
g.h.isEmpty=function(){return g.db(this.o)};
g.h.clear=function(){eb(this.o)};g.Ua(g.vo,to);/*
 Copyright (c) Microsoft Corporation. All rights reserved.
 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
 this file except in compliance with the License. You may obtain a copy of the
 License at http://www.apache.org/licenses/LICENSE-2.0

 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
 MERCHANTABLITY OR NON-INFRINGEMENT.

 See the Apache Version 2.0 License for specific language governing permissions
 and limitations under the License.
*/
g.Ua(xo,Jg);g.Ua(yo,Jg);var kea=[2,13,14];var Co={};var Do=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ia("yt.config_",Do,void 0);var Ho=[];var vqa=g.w("ytPubsubPubsubInstance")||new g.Zn;g.Zn.prototype.subscribe=g.Zn.prototype.subscribe;g.Zn.prototype.unsubscribeByKey=g.Zn.prototype.Vh;g.Zn.prototype.publish=g.Zn.prototype.R;g.Zn.prototype.clear=g.Zn.prototype.clear;g.Ia("ytPubsubPubsubInstance",vqa,void 0);var Oo=g.w("ytPubsubPubsubSubscribedKeys")||{};g.Ia("ytPubsubPubsubSubscribedKeys",Oo,void 0);var Qo=g.w("ytPubsubPubsubTopicToKeys")||{};g.Ia("ytPubsubPubsubTopicToKeys",Qo,void 0);g.Po=g.w("ytPubsubPubsubIsSynchronous")||{};
g.Ia("ytPubsubPubsubIsSynchronous",g.Po,void 0);var pea=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,qea=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Yo={};var wqa={oS:"PLAYBACK_TYPE_UNKNOWN",iS:"PLAYBACK_TYPE_APPLICATION",hS:"PLAYBACK_TYPE_ADS",mS:"PLAYBACK_TYPE_REMOTE",nS:"PLAYBACK_TYPE_SECONDARY_CAMERA",lS:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",kS:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",jS:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var g2;g2=window;g.N=g2.ytcsi&&g2.ytcsi.now?g2.ytcsi.now:g2.performance&&g2.performance.timing&&g2.performance.now?function(){return g2.performance.timing.navigationStart+g2.performance.now()}:function(){return(new Date).getTime()};var wea=ag("initial_gel_batch_timeout",1E3),jp=Math.pow(2,16)-1,kp=null,lp=0,tea={log_event:"events",log_interaction:"interactions"},xqa=Object.create(null);xqa.log_event="GENERIC_EVENT_LOGGING";xqa.log_interaction="INTERACTION_LOGGING";var uea=new Set(["log_event"]),ep={},bp=0,cp=0,Yp=0,np=!0,dp=g.w("ytLoggingTransportLogPayloadsQueue_")||{};g.Ia("ytLoggingTransportLogPayloadsQueue_",dp,void 0);var ip=g.w("ytLoggingTransportTokensToCttTargetIds_")||{};
g.Ia("ytLoggingTransportTokensToCttTargetIds_",ip,void 0);var fp=g.w("ytLoggingTransportDispatchedStats_")||{};g.Ia("ytLoggingTransportDispatchedStats_",fp,void 0);var yqa=g.w("ytLoggingTransportCapturedTime_")||{};g.Ia("ytytLoggingTransportCapturedTime_",yqa,void 0);var zqa=0,qp=g.ke?"webkit":xh?"moz":g.ie?"ms":g.yh?"o":"",Aqa=g.w("ytDomDomGetNextId")||function(){return++zqa};
g.Ia("ytDomDomGetNextId",Aqa,void 0);var xea={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};tp.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
tp.prototype.Sx=function(){return this.event?!1===this.event.returnValue:!1};
tp.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
tp.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var vp=g.w("ytEventsEventsListeners")||{};g.Ia("ytEventsEventsListeners",vp,void 0);var wp=g.w("ytEventsEventsCounter")||{count:0};g.Ia("ytEventsEventsCounter",wp,void 0);var Bqa=Ab(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),xp=Ab(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var bx=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.Ua(Kp,g.A);Kp.prototype.P=function(a){void 0===a.o&&up(a);var b=a.o;void 0===a.u&&up(a);this.o=new g.Sd(b,a.u)};
Kp.prototype.Pg=function(){return this.o||new g.Sd};
Kp.prototype.F=function(){if(this.o){var a=bx();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.A]=.5<Math.abs((d-this.w)/this.w)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.H();this.w=d}this.B=a;this.C=this.o;this.A=(this.A+1)%4}};
Kp.prototype.Y=function(){window.clearInterval(this.J);g.zp(this.G)};g.r(Op,Aea);Op.prototype.start=function(){var a=g.w("yt.scheduler.instance.start");a&&a()};
Op.prototype.pause=function(){var a=g.w("yt.scheduler.instance.pause");a&&a()};
Ka(Op);Op.getInstance();var Vp={};var Xp=g.w("ytLoggingGelSequenceIdObj_")||{};g.Ia("ytLoggingGelSequenceIdObj_",Xp,void 0);var mq=new function(){var a=window.document;this.o=window;this.u=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return cq(oq(a))},void 0);(0,g.H)();var X_={debug:1,info:2,warn:3,error:4,off:5};var pq=void 0!==XMLHttpRequest?function(){return new XMLHttpRequest}:void 0!==ActiveXObject?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;var sq={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"},Fea="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(" "),
zq=!1;Iq.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.Mk(b))}catch(f){return}else e=escape(b);g.Fq(a,e,c,this.u)};
Iq.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=Gq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Iq.prototype.remove=function(a){this.o&&this.o.remove(a);g.Hq(a,"/",this.u)};new Iq;g.Jq.prototype.isReady=function(){!this.o&&Cq()&&(this.o=Dq());return!!this.o};g.r(Lq,Error);var Ir=new Set,Hr=0;Pq.prototype.initialize=function(a,b,c,d,e,f){var k=this;f=void 0===f?!1:f;b?(this.Dd=!0,g.Wo(b,function(){k.Dd=!1;if(window.botguard)Qq(k,c,d,f);else{var l=Xo(b),m=document.getElementById(l);m&&(Vo(l),m.parentNode.removeChild(m));Nq(new Lq("Unable to load Botguard","from "+b))}},e)):a&&(eval(a),window.botguard?Qq(this,c,d,f):Nq(Error("Unable to load Botguard from JS")))};
Pq.prototype.dispose=function(){this.o=null};var Nea=[],Sq=!1;var Xq={},Qea=0;g.r(Yq,Va);ar.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.o),zf(a)?a:cr(a)):2===this.u&&b?(a=b.call(c,this.o),zf(a)?a:br(a)):this};
ar.prototype.getValue=function(){return this.o};
ar.prototype.$goog_Thenable=!0;g.r(er,Va);er.prototype.name="BiscottiError";g.r(dr,Va);dr.prototype.name="BiscottiMissingError";var gr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},fr=null;var Sea=g.$o("html5_disable_client_tmp_logs");var mr=g.w("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",mr,void 0);g.h=nr.prototype;g.h.get=function(a,b){rr(a);qr(a);var c=void 0!==mr[a]?mr[a].toString():null;return null!=c?c:b?b:""};
g.h.set=function(a,b){rr(a);qr(a);if(null==b)throw Error("ExpectedNotNull");mr[a]=b.toString()};
g.h.remove=function(a){rr(a);qr(a);delete mr[a]};
g.h.save=function(){g.Fq(this.o,this.dump(),63072E3)};
g.h.clear=function(){g.Pb(mr)};
g.h.dump=function(){var a=[],b;for(b in mr)a.push(b+"="+encodeURIComponent(String(mr[b])));return a.join("&")};
Ka(nr);var Uea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Xea={"/youtuberedoriginals":!0,"/originals":!0},Wea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.r(g.O,g.A);g.O.prototype.L=function(a,b,c,d,e){c=Io((0,g.x)(c,d||this.yd));c={target:a,name:b,Va:c};var f;e&&Bqa()&&(f={passive:!0});a.addEventListener(b,c.Va,f);this.Z.push(c);return c};
g.O.prototype.Xa=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.Va);break}};
g.O.prototype.Y=function(){g.yr(this);g.A.prototype.Y.call(this)};g.Ua(g.P,g.A);g.P.prototype.subscribe=function(a,b,c){return this.la()?0:this.kc.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.la()?!1:this.kc.unsubscribe(a,b,c)};
g.P.prototype.pg=function(a){return this.la()?!1:this.kc.Vh(a)};
g.P.prototype.R=function(a,b){return this.la()?!1:this.kc.R.apply(this.kc,arguments)};g.r(g.Cr,g.P);g.h=g.Cr.prototype;g.h.cancel=function(){this.A&&(this.A=!1,this.R("dragend",0,0,null));this.u&&(this.u=!1,this.R("hoverend",0,0,null),g.yr(this.o),Br(this))};
g.h.Ey=function(a){g.yr(this.o);Dr(this,Er("move"),this.Cy);Dr(this,Er("out"),this.Dy);Dr(this,"touchstart",this.ks);this.w&&Dr(this,Er("down"),this.hs);var b=g.Ap(a);a=Dp(a);this.u=!0;this.R("hoverstart",a.x,a.y,b);this.R("hovermove",a.x,a.y,b)};
g.h.Cy=function(a){var b=g.Ap(a);a=Dp(a);if(this.B){var c=this.B;this.B=null;if(Cp(c)==b&&Td(Dp(c),a))return}this.R("hovermove",a.x,a.y,b)};
g.h.Dy=function(a){var b=Dp(a),c=Cp(a);try{if(c&&g.xe(this.C,c)){this.B=a;this.R("hovermove",b.x,b.y,c);return}}catch(d){}g.yr(this.o);Br(this);this.u=!1;this.R("hoverend",b.x,b.y,c)};
g.h.KJ=function(a){this.Ey(a);this.hs(a)};
g.h.hs=function(a){if("number"!==typeof a.button||0==a.button){g.yr(this.o);this.o.L(document,Er("move"),this.JJ);this.o.L(document,Er("up"),this.BG);var b=g.Ap(a);if(g.ke)Dr(this,"dragstart",this.sE);else if(g.Ep(a),(g.Yx||xh)&&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=Dp(a);this.R("dragstart",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)}};
g.h.sE=function(a){g.Ep(a)};
g.h.JJ=function(a){var b=g.Ap(a);b==document&&(b=null);a=Dp(a);this.R("hovermove",a.x,a.y,b);this.R("dragmove",a.x,a.y,b)};
g.h.BG=function(a){g.yr(this.o);this.A=!1;var b=Bp(a),c=g.Ap(a);a=Dp(a);b&&g.xe(this.C,b)?(Dr(this,Er("move"),this.Cy),Dr(this,Er("out"),this.Dy),Dr(this,Er("down"),this.hs),Dr(this,"touchstart",this.ks),this.R("dragend",a.x,a.y,c)):(Br(this),this.u=!1,this.R("dragend",a.x,a.y,c),this.R("hoverend",a.x,a.y,c))};
g.h.ks=function(a){var b=a.changedTouches[0];b&&(g.yr(this.o),Dr(this,"touchmove",this.VO),Dr(this,"touchend",this.Fy),Dr(this,"touchcancel",this.Fy),this.F=b.identifier,a=g.Ap(a),this.u||(this.u=!0,this.R("hoverstart",b.pageX,b.pageY,a)),this.R("hovermove",b.pageX,b.pageY,a),this.w&&(this.A=!0,this.R("dragstart",b.pageX,b.pageY,a),this.R("dragmove",b.pageX,b.pageY,a)))};
g.h.VO=function(a){var b=Fr(this,a);b&&(this.w&&g.Ep(a),a=g.Ap(a),this.R("hovermove",b.pageX,b.pageY,a),this.w&&this.R("dragmove",b.pageX,b.pageY,a))};
g.h.Fy=function(a){var b=Fr(this,a);if(b){g.yr(this.o);Br(this);this.u=!1;var c=g.Ap(a);this.w&&(this.G||g.Ep(a),this.A=!1,this.R("dragend",b.pageX,b.pageY,c));this.R("hoverend",b.pageX,b.pageY,c)}};
g.h.Y=function(){this.w&&(g.ke&&this.C.removeAttribute("draggable"),this.C.style.touchAction="");g.yr(this.o);g.P.prototype.Y.call(this)};Gr.prototype.clone=function(){var a=new Gr,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==La(c)?a[b]=g.Rb(c):a[b]=c}return a};Yf.prototype.flush=function(a){a=void 0===a?[]:a;if(g.$o("enable_client_streamz_web")){a=g.q(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=new nn;c=Rg(c,1,b.A);for(var d=b,e=[],f=0;f<d.o.length;f++)e.push(d.o[f].Ew);c=Rg(c,3,e||[]);d=[];e=[];f=g.q(b.Ni.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.Tw(k)||[],n=[],p=0;p<m.length;p++){var t=m[p];t=t&&t.Zv;var u=new vn;switch(l){case 3:Tg(u,1,un[0],Number(t));
break;case 2:Tg(u,2,un[0],Number(t))}n.push(u)}l=n;for(m=0;m<l.length;m++){p=l[m];n=new rn;n.o||(n.o={});t=p?Xg(p):p;n.o[2]=p;n=Rg(n,2,t);p=k;t=[];u=b;for(var z=[],B=0;B<u.o.length;B++)z.push(u.o[B].Fw);u=z;for(z=0;z<u.length;z++){B=u[z];var D=p[z],E=new tn;switch(B){case 3:Tg(E,1,sn[0],String(D));break;case 2:Tg(E,2,sn[0],Number(D));break;case 1:Tg(E,3,sn[0],"true"==D)}t.push(E)}Yg(n,1,t);d.push(n)}}Yg(c,4,d);d=b=new vg;e=Pg(c,1);null!=e&&Gg(d,1,e);e=Pg(c,5);null!=e&&Dg(d,5,e);e=Ug(c,on,2);null!=
e&&Hg(d,2,e,Rda);e=Pg(c,3);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Gg(d,3,e[f]);e=Pg(c,6);if(0<e.length&&null!=e)for(f=0;f<e.length;f++)Dg(d,6,e[f]);e=Wg(c,rn,4);0<e.length&&Ig(d,4,e,Uda);b=yg(b);b={serializedIncrementBatch:g.dg(b)};Kq("streamzIncremented",b)}}};Jr.prototype.toString=function(){return JSON.stringify(g.Lr(this))};
var afa=1;var Mr=(0,g.H)().toString();var Xr=g.w("ytLoggingTimeDocumentNonce_")||Or();g.Ia("ytLoggingTimeDocumentNonce_",Xr,void 0);g.Ia("yt_logging_screen.getRootVeType",Sr,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.Vr,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",g.Wr,void 0);g.Ia("yt_logging_screen.setCurrentScreen",Yr,void 0);$r.prototype.toString=function(){return this.topic};var Cqa=g.w("ytPubsub2Pubsub2Instance")||new g.Zn;g.Zn.prototype.subscribe=g.Zn.prototype.subscribe;g.Zn.prototype.unsubscribeByKey=g.Zn.prototype.Vh;g.Zn.prototype.publish=g.Zn.prototype.R;g.Zn.prototype.clear=g.Zn.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",Cqa,void 0);var cs=g.w("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",cs,void 0);var es=g.w("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",es,void 0);
var ds=g.w("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",ds,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.r(hs,Zr);var efa=new $r("screen-created",hs),ms=[],ns=0;var $f;g.os=Ab(function(){var a=new jo;return a.isAvailable()?new g.go(a):null});
g.ps=Ab(function(){var a=new ko;return a.isAvailable()?new g.go(a):null});var Rq=new Pq,zs=0;var Iha={FQ:1,LQ:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};Cs.prototype.append=function(a){if(Ds(this,a)){var b=g.Xa(this.u);this.u[this.u.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);Fs(this)}else this.u.push(a);this.o+=a.length};
Cs.prototype.split=function(a){for(var b=new Cs,c=new Cs,d=g.q(this.u),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{Fx:b,vp:c}};var Qs={RA:function(a){a.reverse()},
Vg:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
CO: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\/)/,Vs=/^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)/,lfa=/^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))/,
jja=/^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))/,jfa=/^((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)|(((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\/)/,kfa=/^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)/,ifa=/^((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)|(((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\/.*$)/,
Sfa=/^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)/,
Rfa=/^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:\/\/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)/,
Dqa=/^(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)$|^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$|imasdk\.googleapis\.com$)/,
Eqa=/^(https\:\/\/googleads\.g\.doubleclick\.net)$/;var Ts=!1;ct.prototype.set=function(a,b){this.o[a]!==b&&(this.o[a]=b,this.w="")};
ct.prototype.get=function(a){et(this);return this.o[a]||null};
ct.prototype.clone=function(){var a=new ct(this.A);a.B=this.B;a.u=this.u;a.C=this.C;a.o=g.Rb(this.o);a.w=this.w;return a};
var it=!1,Afa=/(r.+)\.c\.youtube/;g.h=g.ot.prototype;g.h.Wy=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Rf(a))?a.duration:0};
g.h.Vw=function(a){return this.getDuration(a)};
g.h.Me=function(){return this.segments.length?this.segments[0].Ma:-1};
g.h.Bs=function(a){return(a=this.Rf(a))?a.ingestionTime:NaN};
g.h.jb=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.h.Qh=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.zb=function(){return this.segments[0].startTime};
g.h.Vi=function(){return this.segments.length};
g.h.wo=function(){return 0};
g.h.Oe=function(a){return(a=this.vk(a))?a.Ma:-1};
g.h.dr=function(a){return(a=this.Rf(a))?a.u:""};
g.h.Xc=function(a){return(a=this.Rf(a))?a.startTime:0};
g.h.Dn=ba(1);g.h.Pb=function(){return 0<this.segments.length};
g.h.Rf=function(a){a=g.rb(this.segments,new nt(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return 0<=a?this.segments[a]:null};
g.h.vk=function(a){a=g.rb(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.kb(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.Xa(this.segments).endTime:0,c=a[0].Ma-this.jb();1<c&&eb(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.fx=function(){return 0};qt.prototype.skip=function(a){this.o+=a};zt.prototype.Ig=function(a,b,c){(new Uint8Array(this.data.buffer,this.o,c)).set(new Uint8Array(a.buffer,b+a.byteOffset,c));this.o+=c};var h2={},Fqa=(h2.predictStart="predictStart",h2.start="start",h2["continue"]="continue",h2.stop="stop",h2),nfa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var Ft=!1;var Eu=!0;Ju.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};Nu.prototype.P=function(){return this.A};
Nu.prototype.Pn=function(){return this.o.info.Pn()};
Nu.prototype.isVideo=function(){return!!this.o.info.video};Zu.prototype.verify=function(a){if(this.info.Oa!=this.o.o)return a.slength=this.info.Oa.toString(),a.range=this.o.o.toString(),!1;if(1==this.info.o.info.containerType){if(8>this.info.Oa||4==this.info.type)return!0;var b=$u(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=$u(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.w)return 524531317==c||440786851==c}return!0};kv.prototype.set=function(a,b){this.o.get(a);this.u[a]=b;this.w=""};
kv.prototype.get=function(a){return this.u[a]||this.o.get(a)};var Tfa={KP:"adunit",DQ:"detailpage",HQ:"editpage",KQ:"embedded",GR:"leanback",sS:"previewpage",tS:"profilepage",ED:"unplugged",pS:"playlistoverview",MS:"sponsorshipsoffer"};var qw={name:"width",video:!0,valid:640,nf:99999},rw={name:"height",video:!0,valid:360,nf:99999},tw={name:"framerate",video:!0,valid:30,nf:9999},uw={name:"bitrate",video:!0,valid:3E5,nf:2E9},ow={name:"eotf",video:!0,valid:"bt709",nf:"catavision"},xw={name:"channels",video:!1,valid:2,nf:99},vw={name:"cryptoblockformat",video:!0,valid:"subsample",nf:"invalidformat"},ww={name:"decode-to-texture",video:!0,valid:"false",nf:"nope"},Cw={name:"codecs",video:!0,valid:"av01.0.05M.08",nf:"av99.0.05M.08"},yw=
{mT:qw,kR:rw,VQ:tw,hQ:uw,NQ:ow,tQ:xw,yQ:vw,CQ:ww,fQ:Cw};var Efa={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"};pv.prototype.getName=function(){return this.name};
pv.prototype.getId=function(){return this.id};
pv.prototype.getIsDefault=function(){return this.isDefault};
pv.prototype.toString=function(){return this.name};
pv.prototype.getName=pv.prototype.getName;pv.prototype.getId=pv.prototype.getId;pv.prototype.getIsDefault=pv.prototype.getIsDefault;var Lfa={dQ:"auto",VS:"tiny",HR:"light",KS:"small",NR:"medium",FR:"large",iR:"hd720",eR:"hd1080",fR:"hd1440",gR:"hd2160",hR:"hd2880",oR:"highres",UNKNOWN:"unknown"};var i2;i2={};g.rv=(i2.auto=0,i2.tiny=144,i2.light=144,i2.small=240,i2.medium=360,i2.large=480,i2.hd720=720,i2.hd1080=1080,i2.hd1440=1440,i2.hd2160=2160,i2.hd2880=2880,i2.highres=4320,i2);var xv="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");zv.prototype.wa=function(){return this.video};
zv.prototype.Pn=function(){return!!this.zc};
zv.prototype.isVideo=function(){return!!this.video};g.h=Nv.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.u,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.u)};
g.h.oP=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Gfa:this.o.webkitSourceBuffered(this.u)};
g.h.qP=function(){return this.w};
g.h.uP=function(a){this.w=a;this.o.webkitSourceTimestampOffset(this.u,a)};g.h=Ov.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.rI=function(){return this.o.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.w++).toString();this.o.webkitSourceAddId(b,a);a=new Nv(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.rP=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.sP=function(){eb(this.sourceBuffers)};
g.h.pP=function(){return this.u};
g.h.tP=function(a){this.u=a;this.o.webkitSourceSetDuration&&this.o.webkitSourceSetDuration(a)};Pv.prototype.start=function(){return 0};
Pv.prototype.end=function(){return Infinity};g.h=Qv.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 NF=!1;g.r(bw,g.P);g.h=bw.prototype;g.h.appendBuffer=function(a,b,c){c&&(this.u=c);b&&(b.Pn()&&(this.F=this.u),this.A=b);this.supports(0)?this.o.appendBuffer(a):this.o.append(a)};
g.h.abort=function(){try{this.o.abort()}catch(a){}this.u=this.A=null};
g.h.remove=function(a,b){this.o.remove(a,b)};
g.h.un=function(){return this.o.appendWindowStart};
g.h.Sq=function(){return this.o.appendWindowEnd};
g.h.Vt=function(a,b){a>this.un()?(this.o.appendWindowEnd=b,this.o.appendWindowStart=a):(this.o.appendWindowStart=a,this.o.appendWindowEnd=b)};
g.h.mx=function(){return this.B};
g.h.lp=function(a){NF?this.B=a:this.supports(1)&&(this.o.timestampOffset=a)};
g.h.Ab=function(){return NF?this.B:this.supports(1)?this.o.timestampOffset:0};
g.h.Ad=function(){try{return this.o.buffered}catch(a){return Uv([],[])}};
g.h.de=function(){return this.o.updating};
g.h.Ph=function(){return this.u};
g.h.vn=function(){return this.F};
g.h.uu=function(a,b){this.C!=a&&(this.supports(4),this.o.changeType(b));this.C=a};
g.h.Yq=function(){return this.A};
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.kq=function(){return!this.de()};
g.h.isLocked=function(){return!1};
g.h.Ya=function(a){a.to=""+this.o.timestampOffset;a.up=""+ +this.de();a.aw=(this.o.appendWindowStart||0).toFixed(3)+"-"+(this.o.appendWindowEnd||Infinity).toFixed(3);try{a.bu=Vv(this.o.buffered)}catch(b){}return Sv(a)};
g.h.Y=function(){this.supports(3)&&(this.o.removeEventListener("updateend",this.w),this.o.removeEventListener("error",this.w));g.P.prototype.Y.call(this)};g.r(cw,g.P);g.h=cw.prototype;g.h.appendBuffer=function(a,b,c){if(this.o.un()!=this.C+this.u||this.o.Sq()!=this.B+this.u||this.o.Ab()!=this.A+this.u)this.o.supports(1),this.o.Vt(this.C+this.u,this.B+this.u),this.o.lp(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.Vt=function(a,b){this.C=a;this.B=b};
g.h.mx=function(){return this.A+this.u};
g.h.un=function(){return this.C};
g.h.Sq=function(){return this.B};
g.h.lp=function(a){this.A=a};
g.h.Ab=function(){return this.A};
g.h.Ad=function(){return aw(this.o.Ad(),this.u,this.G)};
g.h.de=function(){return this.o.de()};
g.h.Ph=function(){return this.o.Ph()};
g.h.vn=function(){return this.o.vn()};
g.h.uu=function(a,b){return this.o.uu(a,b)};
g.h.supports=function(a){return this.o.supports(a)};
g.h.Yq=function(){return this.o.Yq()};
g.h.isView=function(){return!0};
g.h.kq=function(){return this.o.kq()?this.w:!1};
g.h.isLocked=function(){return this.F&&!this.w};
g.h.Ya=function(a){return this.o.Ya(a)+(";vw."+this.u+"-"+this.G)};
g.h.Y=function(){Ar(this.o,this.H);g.P.prototype.Y.call(this)};
g.h.isActive=function(){return this.w};
g.h.setActive=function(a){this.w=a;this.F=this.F||this.w};dw.prototype.dispose=function(){if(!this.la){if(this.u)try{URL.revokeObjectURL(this.o)}catch(a){}this.w=!0}};
dw.prototype.la=function(){return this.w};
dw.prototype.toString=function(){return"MediaResource {"+this.o+"}"};g.r(ew,g.A);g.h=ew.prototype;g.h.getDuration=function(){return this.w.duration};
g.h.isView=function(){return this.C};
g.h.de=function(){return!!(this.o&&this.o.de()||this.u&&this.u.de())};
g.h.iN=function(){!this.la()&&fw(this)&&this.A&&(this.A(this),this.A=null)};
g.h.hN=function(){this.dispose()};var Gqa={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},j2;a:{var k2=g.Mc;k2=k2.toLowerCase();if(-1!=k2.indexOf("android")){var Hqa=k2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Hqa){var Iqa=parseFloat(Hqa[1]);if(100>Iqa){j2=Iqa;break a}}var Jqa=k2.match("("+g.Ib(Gqa).join("|")+")");j2=Jqa?Gqa[Jqa[0]]:0}else j2=void 0}var zx=j2,yx=0<=zx;mw.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;ol?c=c||Kqa[b]:2.2==zx?c=c||Lqa[b]:fl()&&(c=c||Mqa[b]);return!!c};
var Lqa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Mqa={"application/x-mpegURL":"maybe"},Kqa={"application/x-mpegURL":"maybe"};g.h=Ew.prototype;g.h.Zd=function(){return this.Tf};
g.h.ql=function(){return null};
g.h.Ww=function(){var a=this.ql();return a?+g.fq(a.o).expire:NaN};
g.h.St=function(){};
g.h.getHeight=function(){return this.Tf.wa().height};Gw.prototype.isLocked=function(){return this.w&&!!this.u&&this.u==this.o};
Gw.prototype.A=function(a){return a.video?Nw(this,a.video.quality):!1};
var HK=Iw("auto","hd1080",!1,"l"),bI=Iw("auto","large",!1,"l"),Kw=Iw("auto","auto",!1,"p");Iw("small","auto",!1,"p");var Fx={IR:1,JR:2,KR:3};g.r(Ow,g.P);Ow.prototype.add=function(a,b){!this.Ga[a]&&(b.Vm||b.Wm||b.im)&&(this.Ga[a]=Vb(b),this.R("vast_info_card_add",a))};
Ow.prototype.remove=function(a){var b=this.get(a);delete this.Ga[a];return b};
Ow.prototype.get=function(a){return this.Ga[a]||null};
Ow.prototype.isEmpty=function(){return g.Ob(this.Ga)};Yw.prototype.w=function(a,b){var c=Math.pow(this.B,a);this.u=b*(1-c)+c*this.u;this.A+=a};
Yw.prototype.o=function(){return this.u/(1-Math.pow(this.B,this.A))};$w.prototype.w=function(a,b){var c=Math.min(this.u,Math.max(1,Math.round(a*this.P)));c+this.A>=this.u&&(this.C=!0);for(;c--;)this.B[this.A]=b,this.A=(this.A+1)%this.u;this.G=!0};
$w.prototype.o=function(){return this.H?(ax(this,this.F-this.H)+ax(this,this.F)+ax(this,this.F+this.H))/3:ax(this,this.F)};var Ufa={RED:"red",kT:"white"};var Qfa=/^([0-9\.]+):([0-9\.]+)$/;var qx="blogger books docs duo google-live play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" ");g.r(Mx,g.A);g.h=Mx.prototype;g.h.fa=function(a){return g.Q(this.experiments,a)};
g.h.Td=function(a,b){b=void 0===b?!1:b;this.xa=ox(this.xa,a.video_id);this.fb=ox(this.fb,a.eventid);var c=[],d;for(d in Nqa){var e=Nqa[d],f=a[e];void 0!=f&&(f!=this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.Dm&&(c.sort(),Nq(new Lq("Player client parameters changed after startup",c)));this.userAge=nx(this.userAge,a.user_age);this.P=ox(this.P,a.user_display_image);g.Ys(this.P)||(this.P="");this.Z=ox(this.Z,a.user_display_name);this.jd=ox(this.jd,a.user_gender);this.dd=
ox(this.dd,a.csi_page_type);this.xb=ox(this.xb,a.csi_service_name);this.pc=S(this.pc,a.enablecsi);if(c=a.enabled_engage_types)this.gd=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.Px(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.Kx(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,ol&&(a=$p())&&(b.ebc=a));return g.Ad(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){var d="https://"+g.Px(this)+"/embed/"+a;c&&(d=g.Ad(d,{list:c}));a=!this.fa("enable_responsive_embed_snippet");this.fa("embed_snippet_includes_version")&&(d=g.Ad(d,{ecver:a?"1":"2"}));c=b.width;b=b.height;a?(a=g.fd(d),b='<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'):(a=Math.round(360*c/b),b='<div style="position:relative;height:0;padding-bottom:'+
Math.round(1E4*b/c)/100+'%"><iframe src="'+g.fd(d)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+a+'" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>');return b};
g.h.supportsGaplessAudio=function(){return g.Iv&&!ol&&74<=cl()||g.pw&&g.Md(68)?!0:!1};
var Nqa={iQ:"cbrand",jQ:"cbr",kQ:"cbrver",vR:"c",yR:"cver",xR:"ctheme",wR:"cplayer",PR:"cmodel",UR:"cnetwork",ZR:"cos",aS:"cosver",gS:"cplatform"},Vfa=["www.youtube-nocookie.com","youtube.googleapis.com"];my.prototype.gf=function(){return Ou(this.o[0])};g.h=ry.prototype;g.h.yc=function(){};
g.h.Qk=function(){};
g.h.Hr=function(){return!1};
g.h.Cc=function(){return!!this.o&&this.index.Pb()};
g.h.og=function(){};
g.h.Gy=function(){return!1};
g.h.Ui=function(){};
g.h.di=function(){};
g.h.pj=function(){};
g.h.Uf=function(){};
g.h.Ik=function(){};
g.h.Hy=function(a){return[a]};
g.h.gp=function(a){return[a]};
g.h.To=function(){};
g.h.xn=function(){};g.r(ty,ry);g.h=ty.prototype;g.h.yc=function(){return!1};
g.h.Qk=function(){return!1};
g.h.Gy=function(){return this.w};
g.h.Ui=function(){if(this.w)return[];var a=new Nu(1,this,this.initRange,"getMetadataRequestInfos");return[new my([a],this.S)]};
g.h.di=function(){return null};
g.h.pj=function(a){this.og(a);return this.gi(a.A?a.u+1:a.u,!1)};
g.h.Uf=function(a,b){b=void 0===b?!1:b;var c=this.index.Oe(a);b&&(c=Math.min(this.index.jb(),c+1));return this.gi(c,!0)};
g.h.Ik=function(a){this.o=new Uint8Array($u(a).buffer)};
g.h.Hr=function(){return!1};
g.h.og=function(a){return 0==a.Oa?!0:this.index.jb()>a.u&&this.index.Me()<=a.u+1};
g.h.update=function(a,b,c){this.index.append(a);pt(this.index,c);this.G=b};
g.h.Cc=function(){return this.w?!0:ry.prototype.Cc.call(this)};
g.h.gi=function(a,b){var c=this.index.dr(a),d=this.index.Xc(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 Nu(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,k);return new my([d],c)};
g.h.xn=function(){return this.w?0:this.initRange.length};
g.h.To=function(){return!1};g.r(vy,g.ot);g.h=vy.prototype;g.h.Me=function(){return this.u?this.segments.length?this.vk(this.zb()).Ma:-1:g.ot.prototype.Me.call(this)};
g.h.zb=function(){if(this.F)return 0;if(!this.u)return g.ot.prototype.zb.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Xa(this.segments).endTime-this.C,0);return 0<this.B&&this.vk(a).Ma<this.B?this.Rf(this.B).startTime:a};
g.h.Qh=function(){if(!this.segments.length)return g.ot.prototype.Qh.call(this);var a=this.jb();a=!this.u||a<=this.segments[this.segments.length-1].Ma?this.segments[this.segments.length-1]:zy(this,a,this.segments[this.segments.length-1]);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.Vi=function(){return this.u?this.segments.length?this.jb()-this.Me()+1:0:g.ot.prototype.Vi.call(this)};
g.h.jb=function(){return Math.min(this.J,Math.max(g.ot.prototype.jb.call(this),this.w))};
g.h.Xq=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.Wy=function(a){var b=wy(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.G&&0==a.Ma%(300/this.o)){var c=this.segments[0].Ma,d=Math.floor(this.G/this.o);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.vk=function(a){if(!this.u)return g.ot.prototype.vk.call(this,a);if(!this.segments.length)return null;if(!this.H)return aga(this,a);var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.o));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.o+1);else{b=sb(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.Ma-b.Ma-1))+1)+b.Ma}return this.Rf(b)};
g.h.Rf=function(a){if(!this.u)return g.ot.prototype.Rf.call(this,a);if(!this.segments.length)return null;var b=wy(this,a);if(0<=b)return this.segments[b];if(!this.H)return zy(this,a,this.segments[Math.max(-(b+2),0)]);var c=-(b+1);b=this.o;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.Ma-d.Ma-
1)*(a-d.Ma-1));return new nt(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.r(Ay,ty);g.h=Ay.prototype;g.h.Qk=function(){return!0};
g.h.Cc=function(){return!0};
g.h.og=function(a){if(a.C)return!1;if(this.U&&-1<this.index.w&&0<this.O){var b=a.u<this.index.w,c=this.O>a.B;return!a.P||b&&c}return!0};
g.h.Ui=function(){return[]};
g.h.Uf=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new Nu(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.je,void 0,this.je*this.info.o);return new my([c],"")}return ty.prototype.Uf.call(this,a,b)};
g.h.gi=function(a,b){var c=void 0===c?!1:c;if(yy(this.index,a))return ty.prototype.gi.call(this,a,b);var d=this.index.Xc(a),e=b?0:this.je*this.info.o,f=!b;c=new Nu(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.jb()&&!this.G&&0<e,f);return new my([c],0<=a?"sq/"+a:"")};Fy.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new Fy,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+By(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+By(a,"startNumber")||0;d.F=k;var m=k;var n=+By(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(Ey(By(a,"yt:segmentIngestTime")))/1E3;d.w="SegmentTemplate"==a.parentNode.tagName;d.w&&(d.C=By(a,"media"));var p=c?l-c.Ma: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,B=0;B<=z;B++)if(c&&l<=c.Ma)l++;else{var D=new cga(l,m,t,n+u,k);d.o.push(D);var E=D.startSecs;D=p.getAttribute("yt:cuepointTimeOffset");var G=p.getAttribute("yt:cuepointDuration");if(D&&G){D=parseFloat(D);E=(Ft?+D/f:-D/f)+E;G=parseFloat(G)/f;var F=p.getAttribute("yt:cuepointContext")||null,ka=p.getAttribute("yt:cuepointIdentifier");var pa=p.getAttribute("yt:cuepointEvent");pa=Fqa[pa]||
"unknown";D=new Ct(E,G,F,ka,pa,D)}else D=null;D&&d.A.push(D);l++;m+=t;k+=t;n+=t+u}}d.o.length&&(d.u=g.Xa(d.o))}this.B=d.B;this.u=d.u||this.u;lb(this.o,d.o);lb(this.A,d.A);this.w=d.w;this.C=d.C;this.F=d.getStreamTimeOffset()};
Fy.prototype.getStreamTimeOffset=function(){return this.F};g.r(Gy,ry);g.h=Gy.prototype;g.h.yc=function(){return!1};
g.h.Qk=function(){return!1};
g.h.Ui=function(){if(this.w){var a=new Nu(1,this,null,"otfInit");return[new my([a],this.w)]}a=new Nu(1,this,this.initRange,"otfInitInfo");var b=new Nu(2,this,this.indexRange,"otfIndexInfo");return[new my([a,b])]};
g.h.di=function(){return null};
g.h.pj=function(a){this.og(a);return Hy(this,Su(a),!1)};
g.h.Uf=function(a,b){b=void 0===b?!1:b;var c=this.index.Oe(a);b&&(c=Math.min(this.index.jb(),c+1));return Hy(this,c,!0)};
g.h.Ik=function(a){if(1==a.info.type)this.o||(this.o=Ks(a.o)),a.u&&"http://youtube.com/streaming/otf/durations/112015"==a.u.uri&&kga(this,a.u);else if(2==a.info.type)if(g.dv(this.info)){if(!this.index.Pb()&&(a=g.Pt($u(a),0,1936286840))){var b=[],c=$t(a);a=c.Mt.length;var d=c.xp,e=c.Mt,f=c.em;c=this.indexRange.end+c.Jw+1;for(var k=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new nt(l,k,m,NaN,"range/"+c+"-"+(c+n-1)));k+=m;c+=n}this.index.append(b)}}else if(2==this.info.containerType&&this.o&&(d=new iu(new DataView(this.o.buffer)),
b=Du(d))&&(d=new iu($u(a)),a=Fu(d,b.Rl,this.indexRange.end))){d=[];e=b.mu/b.nu;f=a.length-1;for(c=0;c<f;c++)k=a[c],l=a[c+1],m=k.en*e,d.push(new nt(c,m,l.en*e-m,NaN,"range/"+k.Jh+"-"+(l.Jh-1)));c=a[f].en*e;d.push(new nt(f,c,b.duration*e-c,NaN,"range/"+a[f].Jh+"-"+(b.Rt+b.Rl)));this.index.append(d)}};
g.h.og=function(a){return 0==a.Oa?!0:this.index.jb()>a.u&&this.index.Me()<=a.u+1};
g.h.xn=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.h.To=function(){return!1};g.h=g.Iy.prototype;g.h.wo=function(a){return this.u[a]};
g.h.Xc=function(a){return this.w[a]/this.B};
g.h.Dn=ba(0);g.h.Bs=function(){return NaN};
g.h.getDuration=function(a){a=this.Vw(a);return 0<=a?a/this.B:-1};
g.h.Vw=function(a){return a+1<this.o||this.A?this.w[a+1]-this.w[a]:-1};
g.h.Me=function(){return 0};
g.h.jb=function(){return this.o-1};
g.h.Qh=function(){return this.A?this.w[this.o]/this.B:NaN};
g.h.zb=function(){return 0};
g.h.Vi=function(){return this.o};
g.h.dr=function(){return""};
g.h.Oe=function(a){a=g.rb(this.w.subarray(0,this.o),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Pb=function(){return 0<=this.jb()};
g.h.fx=function(a,b){if(a>=this.jb())return 0;for(var c=0,d=this.Xc(a)+b,e=a;e<this.jb()&&d>this.Xc(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){Jy(this);this.A=!0;this.w[this.o]=b;this.u[this.o]=a};g.r(Ky,ry);g.h=Ky.prototype;g.h.Ui=function(a){var b=new Nu(1,this,this.initRange,"initInfo"),c=new Nu(2,this,this.indexRange,"indexInfo"),d=[],e=[b];Qu(b,c)?e.push(c):(d.push(new my([c])),a=0);isNaN(this.w)&&(a=0);b=e[e.length-1];a=Math.min(a,this.w-(b.range.end-e[0].range.start+1));0<a&&(a=Lu(b.range.end+1,a),e.push(new Nu(4,this,a,"tbdRange")));d.push(new my(e));return d};
g.h.Ik=function(a){if(1==a.info.type){if(this.o)return;this.o=Ks(a.o)}else if(2==a.info.type){if(this.G||0<=this.index.jb())return;if(g.dv(this.info)){var b=this.index,c=$u(a);a=a.info.range.start;var d=g.Pt(c,0,1936286840);c=$t(d);b.B=c.xp;var e=c.uE;b.u[0]=c.Jw+a+d.size;b.w[0]=e;b.A=!0;a=c.em.length;for(d=0;d<a;d++){e=b;var f=c.Mt[d],k=c.em[d];e.o++;Jy(e);e.u[e.o]=e.u[e.o-1]+f;e.w[e.o]=e.w[e.o-1]+k}}else this.G=$u(a)}if(2==this.info.containerType&&this.o&&this.G){c=new DataView(this.o.buffer);b=
this.index;a=this.G;d=this.indexRange.end;e=new iu(c);c=Du(e);if(null!=c&&(b.B=c.nu/c.mu,e=new iu(a),a=Fu(e,c.Rl,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Jh,f=f.en,Jy(d),d.u[d.o]=e,d.w[d.o]=f,d.o++;b.cap(c.Rt+c.Rl,c.duration)}this.G=null}};
g.h.Hy=function(a){var b=this.gp(a.info),c=a.info.range,d=[],e=Js(a.o);a=a.w;for(var f=0;f<b.length;f++){var k=new Uint8Array(e.buffer,b[f].range.start+b[f].w-c.start+e.byteOffset,b[f].Oa);d.push(new Zu(b[f],k,a));a=!1}return d};
g.h.gp=function(a){for(var b=0;b<this.index.jb()&&a.range.start>=this.index.wo(b+1);)b++;return Ly(this,b,a.range.start,a.range.length).o};
g.h.og=function(a){return this.Cc()?!0:isNaN(this.w)?!1:a.range.end+1<this.w};
g.h.di=function(a,b){this.og(a);if(!this.Cc()){var c=Lu(a.range.end+1,b);c.end+1>this.w&&(c=new Ju(c.start,this.w-1));c=[new Nu(4,a.o,c,"getNextRequestInfoByLength")];return new my(c)}4==a.type&&(c=this.gp(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 Ly(this,c,d,b)};
g.h.pj=function(){return null};
g.h.Uf=function(a,b){var c=this.index.Oe(a);b&&(c=Math.min(this.index.jb(),c+1));return Ly(this,c,this.index.wo(c),0)};
g.h.Hr=function(){var a;if(a=this.Cc()&&!isNaN(this.w))a=this.index,a=(a.A?a.u[a.o]:-1)!=this.w;return a};
g.h.yc=function(){return!0};
g.h.Qk=function(){return!1};
g.h.xn=function(){return this.indexRange.length+this.initRange.length};
g.h.To=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};g.r(Oy,g.P);g.h=Oy.prototype;g.h.fg=function(){return Eb(this.o,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.gg=function(){return Eb(this.o,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.Yf=function(){return Eb(this.o,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.ej=function(){return Eb(this.o,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.RN=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Pe=this.w=!0;this.B||(this.B=new ega);iga(this.B,a,this.ga);this.R("refresh");for(a=0;a<b.length;a++){var c=$y(this,b[a]),d=this.isLive&&g.dv(c)&&this.ra;if(!this.o[c.id]){var e=Ty(Cy(b[a],"BaseURL").textContent),f=Cy(b[a],"Initialization"),k=By(f,"sourceURL");f=Ku(By(f,"range"));d&&(k="",f=void 0);this.o[c.id]=new ty(e,c,k,null===
f?void 0:f)}c=this.o[c.id];e=By(b[a],"id","AdaptationSet");e=""!=e?e:By(b[a],"mimetype","AdaptationSet");k=this.B;e=k.w[c.info.id]||k.u[e]||k.o||null;k=e.o;!this.S&&e.getStreamTimeOffset()&&(this.S=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.Ma,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 nt(f.Ma,f.startSecs,f.durationSecs,f.o,t.join("$"),null,f.u))}else{e=nb(Cy(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.B);f=[];for(l=0;l<e.length;l++)f.push(vga(e[l],k[l],d));d=f}c.update(d,this.isLive,this.V)}jga(this.B);return!0}this.duration=Dy(By(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=$y(this,k);e=Cy(k,"BaseURL");d=Ty(e.textContent);f=Cy(k,"SegmentBase");k=Ku(f.attributes.indexRange.value);f=Ku(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(Yy(this,"contentLength")),10);c=new Ky(d,c,f,k,e,NaN);if(!c){b=!1;break a}Ry(this,c)}b=!0}return b};
g.h.lF=function(a){if(this.la())return this;this.O=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.F=1E3*Dy(By(a,"minimumUpdatePeriod"))||Infinity;if(!this.U){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.ca=b}this.isLive=Infinity>this.F&&this.na;this.V=parseInt(By(a,Yy(this,"earliestMediaSequence")),10)||0;
if(b=Date.parse(Ey(By(a,Yy(this,"mpdResponseTime")))))this.G=((0,g.H)()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||(0,g.ui)(a.getElementsByTagName("Period"),this.RN,this);this.C=2;this.R("loaded");cz(this);return this};
g.h.oF=function(a){this.O=a.bi.status;this.C=3;this.R("loaderror");return Gf(a.bi)};
g.h.refresh=function(){if(1!=this.C&&!this.la()){var a=g.Ad(this.sourceUrl,{start_seq:wga(this).toString()});Nf(az(this,a),function(){})}};
g.h.resume=function(){cz(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.Pb()&&(f.F&&(b=!0),k=k.Qh(),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.zb=function(){var a=this.o,b;for(b in a){var c=a[b].index;if(c.Pb())return c.zb()}return 0};
g.h.getStreamTimeOffset=function(){return this.S};
var Uy=null,Vy=!1,Wy=!1,Zy={commentary:1,alternate:2,dub:3,main:4};hz.prototype.clone=function(a){return new hz(this.flavor,a,this.w,this.B)};
hz.prototype.Ya=function(){return{flavor:this.flavor,keySystem:this.o}};
hz.prototype.Zd=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 l2={},oz=(l2.playready=["com.youtube.playready","com.microsoft.playready"],l2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],l2);g.h=g.pz.prototype;g.h.getId=function(){return this.H};
g.h.getName=function(){return this.B};
g.h.isServable=function(){return this.F};
g.h.toString=function(){return this.u+": "+g.qz(this)+" - "+this.C};
g.h.rs=ba(2);g.h.isValid=function(){return!(!this.u||this.o&&!this.o.languageCode)};rz.prototype.getLanguageInfo=function(){return this.rb};
rz.prototype.toString=function(){return this.rb.name};
rz.prototype.getLanguageInfo=rz.prototype.getLanguageInfo;sz.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.r(wz,g.A);wz.prototype.H=function(){(this.F=!this.F&&"widevine"==this.w[this.o[0]].flavor)||this.o.shift();xz(this)};
wz.prototype.J=function(a,b){this.la()||(a.keySystemAccess=b,Kga(this,a),this.A.push(a),g.Q(this.u,"html5_drm_fallback_to_playready_on_retry")||this.G?(this.o.shift(),xz(this)):this.C(this.A))};zz.prototype.He=function(){Pga(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.u)var c=this.u;else{c="";for(var d=g.q(this.w),e=d.next();!e.done;e=d.next())if(e=e.value,e.rb){if(e.rb.getIsDefault()){c=e.rb.getId();break a}c||(c=e.rb.getId())}}d=0;for(e=this.w.length;d<e;++d){var f=this.w[d];f.rb&&f.rb.getId()!=c||(b[f.itag]=f)}c=0;for(d=this.o.length;c<d;++c)e=this.o[c],a.push(Oga(this,b[e.audioItag],e));c=0;for(d=this.o.length;c<d;++c){e=this.o[c];f=a;var k=b[e.audioItag];f.push("#EXT-X-STREAM-INF:BANDWIDTH="+
(e.bitrate+k.bitrate)+',CODECS="'+(e.codecs+","+k.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Bz(k,e)+'",CLOSED-CAPTIONS=NONE'));f.push(Az(this,e.url,""))}return a.join("\n")};g.r(Cz,Ew);Cz.prototype.Ww=function(){return this.w};
Cz.prototype.ql=function(){if(!this.o||this.o.la()){var a=this.u.He();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.o=new dw(a)}return this.o};var Ez=null;g.r(Oz,Ew);Oz.prototype.ql=function(){return new dw(dt(this.o))};
Oz.prototype.St=function(){this.o=jt(this.o)};g.r(Pz,Ew);Pz.prototype.ql=function(){return new dw(this.o)};var sT={HP:"ad",YP:"annotations_module",ZP:"attribution",xQ:"creatorendscreen",JQ:"embed",MQ:"endscreen",WQ:"fresca",jR:"heartbeat",DR:"kids",MR:"remote",OR:"miniplayer",SR:"music",SUBTITLES:"captions",ED:"unplugged",dT:"ux",hT:"visualizer",iT:"webgl",nT:"ypc",oT:"ypc_clickwrap",pT:"yto",bT:""};g.h=g.Qz.prototype;g.h.getHeight=function(){return this.B};
g.h.bx=ba(3);g.h.Uq=function(){return this.w};
g.h.isDefault=function(){return-1!=this.A.indexOf("default")};
g.h.Pb=function(a){return this.C.has(a)};
g.h.Eo=function(a){var b=this.Uq()-1;return g.Od(0==this.o?Math.round(a*this.w/this.O):Math.round(1E3*a/this.o),0,b)};
g.h.xl=function(){return this.w-1};
g.h.Qs=function(){return this.w?0:-1};
g.h.QB=function(){};g.r(Tz,g.P);Tz.prototype.H=function(a,b){this.o=this.o.onload=null;var c=this.levels[a];c.C.add(b);Wz(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Uq()-1);e=[e,c];this.R("l",e[0],e[1])};
Tz.prototype.Y=function(){this.o&&(this.o=this.o.onload=null);g.P.prototype.Y.call(this)};g.r(Yz,Tz);Yz.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};
Yz.prototype.B=function(a,b,c,d){return new g.Qz(a,b,c,d)};g.r($z,g.Qz);g.h=$z.prototype;g.h.Uq=function(){return this.u.Vi()};
g.h.Eo=function(a){var b=this.rows*this.columns*this.H,c=this.u,d=c.jb();a=c.Oe(a);return a>d-b?-1:a};
g.h.xl=function(){return this.u.jb()};
g.h.Qs=function(){return this.u.Me()};
g.h.QB=function(a){this.u=a};g.r(aA,Yz);aA.prototype.u=function(a,b){return Yz.prototype.u.call(this,"$N|"+a,b)};
aA.prototype.B=function(a,b,c){return new $z(a,b,c,this.isLive)};var dA={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},gA={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var ES=16/9,Oqa=[.25,.5,.75,1,1.25,1.5,1.75,2],Pqa=Oqa.concat([3,4,5,6,7,8,9,10,15]);var m2={},dha=(m2.ALWAYS=1,m2.BY_REQUEST=3,m2),n2={},vha=(n2.COLOR_PRIMARIES_BT709="bt709",n2.COLOR_PRIMARIES_BT2020="bt2020",n2),o2={},wha=(o2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",o2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",o2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",o2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",o2),p2={},nA=(p2.FAIRPLAY="fairplay",p2.PLAYREADY="playready",p2.WIDEVINE="widevine",p2),q2={},Aha=(q2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN=
"UNKNOWN",q2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",q2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",q2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",q2),r2={},sha=(r2.UNKNOWN=0,r2.RECTANGULAR=1,r2.EQUIRECTANGULAR=2,r2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=3,r2.MESH=4,r2),s2={},uha=(s2.SPATIAL_AUDIO_TYPE_NONE=0,s2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,s2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,s2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,s2),t2={},tha=(t2.STEREO_LAYOUT_UNKNOWN=
0,t2.STEREO_LAYOUT_LEFT_RIGHT=1,t2.STEREO_LAYOUT_TOP_BOTTOM=2,t2),u2={},rha=(u2.FORMAT_STREAM_TYPE_UNKNOWN=0,u2.FORMAT_STREAM_TYPE_OTF=3,u2);g.r(qA,Zr);g.r(rA,Zr);var Dha=new $r("aft-recorded",qA),dB=new $r("timing-sent",rA);var v2=window,YA=v2.performance||v2.mozPerformance||v2.msPerformance||v2.webkitPerformance||new Cha;var AA=!1;var HA=g.w("ytLoggingLatencyUsageStats_")||{};g.Ia("ytLoggingLatencyUsageStats_",HA,void 0);FA.prototype.tick=function(a,b,c){IA(this,"tick_"+a+"_"+b)||Kq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
FA.prototype.info=function(a,b){var c=Object.keys(a).join("");IA(this,"info_"+c+"_"+b)||(a.clientActionNonce=b,Kq("latencyActionInfo",a))};var w2={},UA=(w2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",w2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",w2.app_startup="LATENCY_ACTION_APP_STARTUP",w2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",w2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",w2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",w2.browse="LATENCY_ACTION_BROWSE",w2.channels="LATENCY_ACTION_CHANNELS",w2.channel="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",w2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
w2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",w2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",w2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",w2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",w2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",w2.chips="LATENCY_ACTION_CHIPS",w2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",w2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",
w2.embed="LATENCY_ACTION_EMBED",w2.home="LATENCY_ACTION_HOME",w2.library="LATENCY_ACTION_LIBRARY",w2.live="LATENCY_ACTION_LIVE",w2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",w2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",w2.prebuffer="LATENCY_ACTION_PREBUFFER",w2.prefetch="LATENCY_ACTION_PREFETCH",w2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",w2.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",w2.results="LATENCY_ACTION_RESULTS",w2.search_ui="LATENCY_ACTION_SEARCH_UI",
w2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",w2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",w2.settings="LATENCY_ACTION_SETTINGS",w2.tenx="LATENCY_ACTION_TENX",w2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",w2.watch="LATENCY_ACTION_WATCH",w2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",w2["watch,watch7"]="LATENCY_ACTION_WATCH",w2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",w2["watch,watch7ad"]="LATENCY_ACTION_WATCH",w2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",w2.wn_comments=
"LATENCY_ACTION_LOAD_COMMENTS",w2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",w2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",w2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",w2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",w2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",w2["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",w2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",w2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
w2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",w2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",w2),x2={},LA=(x2.ad_allowed="adTypesAllowed",x2.yt_abt="adBreakType",x2.ad_cpn="adClientPlaybackNonce",x2.ad_docid="adVideoId",x2.yt_ad_an="adNetworks",x2.ad_at="adType",x2.browse_id="browseId",x2.p="httpProtocol",x2.t="transportProtocol",x2.cpn="clientPlaybackNonce",x2.cseg="creatorInfo.creatorSegment",x2.csn="clientScreenNonce",x2.docid="videoId",x2.GetHome_rid="getHomeRequestId",
x2.GetSearch_rid="getSearchRequestId",x2.GetPlayer_rid="getPlayerRequestId",x2.GetWatchNext_rid="getWatchNextRequestId",x2.GetBrowse_rid="getBrowseRequestId",x2.GetLibrary_rid="getLibraryRequestId",x2.is_continuation="isContinuation",x2.is_nav="isNavigation",x2.b_p="kabukiInfo.browseParams",x2.is_prefetch="kabukiInfo.isPrefetch",x2.is_secondary_nav="kabukiInfo.isSecondaryNav",x2.prev_browse_id="kabukiInfo.prevBrowseId",x2.query_source="kabukiInfo.querySource",x2.voz_type="kabukiInfo.vozType",x2.yt_lt=
"loadType",x2.mver="creatorInfo.measurementVersion",x2.yt_ad="isMonetized",x2.nr="webInfo.navigationReason",x2.nrsu="navigationRequestedSameUrl",x2.ncnp="webInfo.nonPreloadedNodeCount",x2.prt="playbackRequiresTap",x2.plt="playerInfo.playbackType",x2.pis="playerInfo.playerInitializedState",x2.paused="playerInfo.isPausedOnLoad",x2.yt_pt="playerType",x2.fmt="playerInfo.itag",x2.yt_pl="watchInfo.isPlaylist",x2.yt_pre="playerInfo.preloadType",x2.yt_ad_pr="prerollAllowed",x2.pa="previousAction",x2.yt_red=
"isRedSubscriber",x2.rce="mwebInfo.responseContentEncoding",x2.scrh="screenHeight",x2.scrw="screenWidth",x2.st="serverTimeMs",x2.aq="tvInfo.appQuality",x2.br_trs="tvInfo.bedrockTriggerState",x2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",x2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",x2.label="tvInfo.label",x2.is_mdx="tvInfo.isMdx",x2.preloaded="tvInfo.isPreloaded",x2.upg_player_vis="playerInfo.visibilityState",x2.query="unpluggedInfo.query",x2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",
x2.yt_vst="videoStreamType",x2.vph="viewportHeight",x2.vpw="viewportWidth",x2.yt_vis="isVisible",x2.rcl="mwebInfo.responseContentLength",x2.GetSettings_rid="mwebInfo.getSettingsRequestId",x2.GetTrending_rid="mwebInfo.getTrendingRequestId",x2.GetMusicSearchSuggestions_rid="musicInfo.getMusicSearchSuggestionsRequestId",x2),Eha="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
y2={},MA=(y2.mver="MEASUREMENT_VERSION_",y2.pis="PLAYER_INITIALIZED_STATE_",y2.yt_pt="LATENCY_PLAYER_",y2.pa="LATENCY_ACTION_",y2.yt_vst="VIDEO_STREAM_TYPE_",y2),Fha="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 GetLibrary_rid".split(" ");if(g.$o("overwrite_polyfill_on_logging_lib_loaded")){var Qqa=window;Qqa.ytcsi&&(Qqa.ytcsi.info=PA)};var Gha=(0,g.x)(YA.clearResourceTimings||YA.webkitClearResourceTimings||YA.mozClearResourceTimings||YA.msClearResourceTimings||YA.oClearResourceTimings||g.Ja,YA),Rqa=window;g.$o("csi_on_gel")&&Rqa.ytcsi&&(Rqa.ytcsi.tick=ZA);var z2;var Sqa=g.Mc,Tqa=Sqa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Tqa||2>Tqa.length)z2=void 0;else{var A2=Sqa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);z2=A2&&6==A2.length?Number(A2[5].replace("_",".")):0}var YB=z2,dQ=0<=YB;dQ&&0<=g.Mc.search("Safari")&&g.Mc.search("Version");g.r(g.eB,g.P);g.h=g.eB.prototype;g.h.Td=function(a,b){b?(this.jp(a),JB(this)&&zB(this)):(a=a||{},jB(this,a),gB(this,a),this.R("dataupdated"))};
g.h.jp=function(a){a=a||{};var b=a.errordetail;null!=b&&(this.errorDetail=b);b=a.errorcode;null!=b?this.errorCode=b:"fail"==a.status&&(this.errorCode="150");b=a.reason;null!=b&&(this.errorReason=b);b=a.subreason;null!=b&&(this.Lg=b);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||Or());this.cg=S(this.fa("web_player_live_monitor_env")?this.La.cg:!1,a.livemonitor);b=a.raw_embedded_player_response;if(!b){var c=a.embedded_player_response;c&&(b=JSON.parse(c))}b&&(this.hf=b);this.hf&&((b=this.hf.embedPreview)&&
Nha(this,a,b),this.hf.playabilityStatus&&(this.Hq=this.hf.playabilityStatus,VB(this)&&(this.errorDetail="0")));b=a.raw_player_response;b||(c=a.player_response)&&(b=JSON.parse(c));b&&(this.Ia=b);if(this.Ia){(b=this.Ia.annotations)&&eha(this,b);(b=this.Ia.attestation)&&fha(this,b);(b=this.Ia.heartbeatParams)&&iha(this,b);(b=this.Ia.messages)&&kha(this,b);(b=this.Ia.multicamera)&&lha(this,b);(b=this.Ia.overlay)&&mha(this,b);if(b=this.Ia.playabilityStatus)nha(this,b),(c=b.errorScreen)&&zha(this,c);(c=
this.Ia.playbackTracking)&&oha(this,c,a);(c=this.Ia.playerAds)&&pha(this,c,a);(c=this.Ia.playerConfig)&&qha(this,c);var d=this.Ia.streamingData;d&&xha(this,d,c||null);if(d=this.Ia.trackingParams)this.mf=d;if(d=this.Ia.videoDetails)if(yha(this,d,a),Bha(this,d,c||null,a),c=d.isPrivate)this.isPrivate=S(this.isPrivate,c);b&&hha(this,b,d||null);(b=this.Ia.interstitialPods)&&jha(this,b);this.Vd&&this.eventId&&(this.Vd=iq(this.Vd,{ei:this.eventId}));(b=this.Ia.captions)&&b.playerCaptionsTracklistRenderer&&
gha(this,b.playerCaptionsTracklistRenderer);this.Ia.clipConfig&&null!=this.Ia.clipConfig.startTimeMs&&(this.Et=.001*parseInt(this.Ia.clipConfig.startTimeMs,10))}jB(this,a);a.queue_info&&(this.queueInfo=a.queue_info);b=a.hlsdvr;null!=b&&(this.allowLiveDvr=pA("1"==b));this.adQueryId=a.ad_query_id||null;this.adSafetyReason||(this.adSafetyReason=a.encoded_ad_safety_reason||null);this.TD=a.agcid||null;this.Ev=a.ad_id||null;this.Gv=a.ad_sys||null;this.yw=a.encoded_ad_playback_context||null;this.Fh=S(this.Fh,
a.infringe||a.muted);this.authKey=a.authkey;this.Kc=a.authuser;this.mutedAutoplay=S(this.mutedAutoplay,a&&a.playmuted)&&this.fa("embeds_enable_muted_autoplay");this.pk=S(this.pk,a.enable_cardio);this.hn=S(this.hn,a.enable_cardio_before_playback);this.endSeconds=nx(this.endSeconds,this.zt||a.end||a.endSeconds);this.mf=ox(this.mf,a.itct);this.Er=S(this.Er,a.noiba);this.Qn=S(this.Qn,a.is_live_destination);this.ua=S(this.ua,a.live_playback);this.isMdxPlayback=S(this.isMdxPlayback,a.mdx);if(b=a.mdx_control_mode)this.mdxControlMode=
"number"===typeof b?b:g.jd(b);this.Dr=S(this.Dr,a.is_inline_playback_no_ad);this.vf=nx(this.vf,a.reload_count);this.reloadReason=ox(this.reloadReason,a.reload_reason);this.Xl=S(this.Xl,a.show_content_thumbnail);this.Nr=S(this.Nr,a.utpsa);this.ku=S(this.ku,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.gC=a.tkn||null;b=fA(a);0<Object.keys(b).length&&(this.Ye=b);this.Fe=ox(this.Fe,a.vvt);this.mdxEnvironment=ox(this.mdxEnvironment,a.mdx_environment);this.RJ=a.osig;this.eventId||(this.eventId=
a.eventid);this.osid||(this.osid=a.osid);this.playlistId=ox(this.playlistId,a.list);this.hB=a.pyv_view_beacon_url;this.kB=a.pyv_quartile25_beacon_url;this.lB=a.pyv_quartile50_beacon_url;this.mB=a.pyv_quartile75_beacon_url;this.jB=a.pyv_quartile100_beacon_url;if(b=a.remarketing_url)this.remarketingUrl=b;if(b=a.ppv_remarketing_url)this.ppvRemarketingUrl=b;b=a.session_data;!this.yB&&b&&(this.yB=bq(b).feature);this.Ux=1==nx(this.Ux?1:0,a.is_fling);this.vnd=nx(this.vnd,a.vnd);this.wk=ox(this.wk,a.force_ads_url);
this.wf=ox(this.wf,a.ctrl);this.xf=ox(this.xf,a.ytr);this.cn=a.ytrcc;this.AB=a.ytrexp;this.Nl=ox(this.Nl,a.adformat);this.xu=ox(this.xu,a.attrib);this.slotPosition=nx(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Wl=S(this.Wl,a.ssrt);this.videoId=a.docid||a.video_id||a.videoId||a.id||this.videoId;this.Hi=ox(this.Hi,a.vss_credentials_token);this.Ii=ox(this.Ii,a.vss_credentials_token_type);this.Ji=S(this.Ji,a.audio_only);this.zu=S(this.zu,a.aac_high);this.mh=S(this.mh,a.prefer_low_quality_audio);
this.Ml=ox(this.Ml,a.qoe_cat);this.Ri=S(this.Ri,a.download_media);this.Fq=S(this.Fq,a.download_media_in_bg);this.rf=S(this.rf,a.prefer_gapless);Jha(this.Ia)&&(this.adModule=!0,this.Oc.push("ad"));if(b=a.adaptive_fmts)this.adaptiveFormats=b;if(b=a.allow_embed)this.allowEmbed="1"==b;if(b=a.backgroundable)this.backgroundable="1"==b;if(b=a.autonav)this.fj="1"==b;if(b=a.autoplay)this.lh="1"==b;if(b=a.iv_load_policy)this.annotationsLoadPolicy=mx(this.annotationsLoadPolicy,b,Fx);if(b=a.cc_lang_pref)this.captionsLanguagePreference=
ox(b,this.captionsLanguagePreference);if(b=a.cc_load_policy)this.Fg=mx(this.Fg,b,Fx);if(b=a.cached_load)this.Pm=S(this.Pm,b);"0"==a.dash&&(this.rw=!0);if(b=a.dashmpd)this.Xd=g.Ad(b,{cpn:this.clientPlaybackNonce});if(b=a.delay)this.Ke=g.jd(b);b=this.zt||a.end;void 0!=b&&(this.clipEnd=nx(this.clipEnd,b));if(b=a.fmt_list)this.Rq=b;a.fresca_preroll&&this.Oc.push("fresca");a.heartbeat_preroll&&this.Oc.push("heartbeat");this.dj=-Math.floor(10*Math.random());this.Xk=-Math.floor(40*Math.random());if(b=a.is_listed)this.isListed=
S(this.isListed,b);if(b=a.is_private)this.isPrivate=S(this.isPrivate,b);if(b=a.pipable)this.pipable=S(this.pipable,b);this.eu=(this.cq=this.pipable&&this.La.mn)&&(!this.La.showMiniplayerButton||this.fa("web_player_pip"));if(b=a.paid_content_overlay_duration_ms)this.WA=g.jd(b);if(b=a.paid_content_overlay_text)this.QN=b;if(b=a.url_encoded_fmt_stream_map)this.Tj=b;if(b=a.hls_formats)this.hlsFormats=b;if(b=a.hlsvp)this.hlsvp=b;if(b=a.length_seconds)this.lengthSeconds="string"===typeof b?g.jd(b):b;if(b=
a.live_start_walltime)this.Vr="number"===typeof b?b:g.jd(b);if(b=a.live_manifest_duration)this.Wk="number"===typeof b?b:g.jd(b);if(b=a.player_params)this.playerParams=b;if(b=a.partnerid)this.De=nx(this.De,b);if(b=a.probe_url)this.probeUrl=bt(g.Ad(b,{cpn:this.clientPlaybackNonce}));if(b=a.profile_picture)this.Od=ox(b,this.Od);(b=a.pyv_billable_url)&&Zs(b)&&(this.Ll=b);(b=a.pyv_conv_url)&&Zs(b)&&(this.iB=b);fB(this,a);0<this.startSeconds||(this.Wg=this.startSeconds=nx(this.startSeconds,this.Et||this.zr||
a.start||a.startSeconds));b=a.live_utc_start;null!=b&&(this.liveUtcStartSeconds=parseInt(b,10));if(b=a.utc_start_millis)this.liveUtcStartSeconds=.001*parseInt(b,10);if(b=a.stream_time_start_millis)this.rp=.001*parseInt(b,10);b=this.zr||a.start;void 0==b||"1"==a.resume||this.ua||(this.clipStart=nx(this.clipStart,b));if(b=a.url_encoded_third_party_media)this.Lj=eq(b);if(b=a.ypc_offer_button_formatted_text)c=JSON.parse(b),this.Cu=null!=c?c:null,this.JC=b;if(b=a.ypc_offer_button_text)this.Np=b;if(b=a.ypc_offer_description)this.Op=
b;if(b=a.ypc_offer_headline)this.Pp=b;if(b=a.ypc_full_video_message)this.om=b;if(b=a.ypc_offer_id)this.Qp=b;if(b=a.ypc_buy_url)this.Jp=b;if(b=a.ypc_item_thumbnail)this.Kp=b;if(b=a.ypc_item_title)this.Lp=b;if(b=a.ypc_item_url)this.Mp=b;if(b=a.ypc_vid)this.Rp=b;a.ypc_overlay_timeout&&(this.qm=parseInt(a.ypc_overlay_timeout,10));if(b=a.ypc_trailer_player_vars)this.Xj=dq(b);if(b=a.ypc_original_itct)this.wP=b;c=a.onesie_client_key;b=a.onesie_encrypted_client_key;d=a.onesie_client_key_ttl;c&&b&&d&&(c=bA(c),
b=bA(b),this.wt=new aha(c,b));this.xg=ox(this.xg,a.ucid);(0,g.y)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(e){a[e]&&(this.Mc[e]=a[e])},this);
this.Mc.focEnabled=S(this.Mc.focEnabled,a.focEnabled);this.Mc.rmktEnabled=S(this.Mc.rmktEnabled,a.rmktEnabled);this.qp=a.storyboard_spec||null;this.Wn=a.live_storyboard_spec||null;this.dy=a.iv_endscreen_url||null;this.Pr=S(this.Pr,a.iv3_module);this.sn=S(this.sn,a.fresca_module);this.pm=S(this.pm,a.ypc_license_checker_module);this.Ki=S(this.Ki,a.ypc_module);this.Wj=S(this.Wj,a.ypc_clickwrap_module);this.Ki&&this.Oc.push("ypc");this.Wj&&this.Oc.push("ypc_clickwrap");this.cB={video_id:a.video_id,eventid:a.eventid,
cbrand:a.cbrand,cbr:a.cbr,cbrver:a.cbrver,c:a.c,cver:a.cver,ctheme:a.ctheme,cplayer:a.cplayer,cmodel:a.cmodel,cnetwork:a.cnetwork,cos:a.cos,cosver:a.cosver,cplatform:a.cplatform,user_age:a.user_age,user_display_image:a.user_display_image,user_display_name:a.user_display_name,user_gender:a.user_gender,csi_page_type:a.csi_page_type,csi_service_name:a.csi_service_name,enablecsi:a.enablecsi,enabled_engage_types:a.enabled_engage_types};gB(this,a);xB(this)?nB(this)&&(this.ua&&this.Xd?this.Eh=!0:this.Le&&
(this.jj=!0)):yB(this)?this.Eh=!0:!qB(this,this.adaptiveFormats)&&this.Xd&&(this.Eh=!0);if(b=a.adpings)this.Fv=b?dq(b):null;if(b=a.feature)this.Ol=b;if(b=a.referrer)this.referrer=b;this.clientScreenNonce=ox(this.clientScreenNonce,a.csn);this.hp=nx(this.hp,a.root_ve_type);this.Tn=nx(this.Tn,a.kids_age_up_mode);void 0!=a.kids_app_info&&(this.kidsAppInfo=a.kids_app_info);this.km=S(this.km,a.upg_content_filter_mode);if(b=a.unplugged_location_info)this.Pc=b;if(b=a.unplugged_partner_opt_out)this.Pj=ox("",
b);this.Ok=ox(this.Ok,a.internal_ip_override);this.Fr=!!a.is_yto_interstitial;(this.interstitials.length||this.Fr)&&this.Oc.push("yto")};
g.h.N=function(){return this.La};
g.h.fa=function(a){return g.Q(this.La.experiments,a)};
g.h.Nc=function(){return!this.ua||this.allowLiveDvr};
g.h.Jn=function(){return!!(this.va&&this.va.videoInfos&&this.va.videoInfos.length)};
g.h.fG=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.Le=this.Le;c.ln=this.ln;c.kn=this.kn;break;case "widevine":c.lm=this.lm}this.Dj=a;0<this.Dj.length&&(this.sd=this.Dj[0]);zB(this)};
g.h.NK=function(a){this.la()||(pB(this,a),a.w&&a.subscribe("refresh",this.pA,this),ZA("mrc"),Py(a)&&(this.jj=!0),zB(this))};
g.h.MK=function(a){this.la()||(this.Dd=!1,this.R("dataloaderror",new Rv("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.pA=function(){this.la()||(this.ka.w||this.ka.unsubscribe("refresh",this.pA,this),this.ew())};
g.h.ew=function(){if(this.fa("html5_disable_fairplay_dai_killswitch")||!this.ua||!this.sd||"fairplay"!=this.sd.flavor){var a=Xy(this.ka,this.Qr);0<a.length&&(this.R("cuepointupdated",a),this.Qr+=a.length)}};
g.h.Nm=function(a){var b=this;if(this.la())return br();this.sg=this.ie=this.va=null;var c=this.La.deviceParams.c;this.fa("disable_rqs")||(this.dg=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||WB(this));return Mha(this,a).then(void 0,(0,g.x)(this.qG,this,a)).then(void 0,(0,g.x)(this.sG,this)).then(void 0,(0,g.x)(this.rG,this)).then(function(){if(b.fa("html5_probe_media_capabilities")&&b.va)return bha(b.va).then(b.cu,void 0,b)})};
g.h.qG=function(a){if(a&&this.hlsvp)return br();if(this.hlsFormats){a=oB(this.hlsFormats);if(ol||ml()||il()){var b=yz(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.rb&&(f=k.rb.getId(),d[f]||(k=new rz(f,k.rb),d[f]=k,c.push(k)))}var l=0<c.length?c:null}else l=null}else l=null;this.Ln=l;l=this.fa("html5_hls_cpn_killswitch")?"":this.clientPlaybackNonce;return Rga(this.La,this.isAd(),a,this.ag,l).then(this.au,void 0,this)}return br()};
g.h.sG=function(){if(this.Lj&&this.Zx){var a=this.La;var b=this.isAd(),c=$ga(this.Lj);a=Fw(a.w,c,Nx(a,b)).then(this.au,void 0,this)}else a=br();return a};
g.h.rG=function(){var a=oB(this.Tj,this.Rq);if(this.hlsvp){var b=this.hlsvp;var c=this.ag,d={cpn:this.clientPlaybackNonce};-1===b.indexOf("/ibw/")&&(d.ibw=c?String(c):"1369843");b={url:g.Ad(b,d),type:"application/x-mpegURL",quality:"auto",itag:"93"};a.push(b)}b=this.La;c=this.isAd();d={cpn:this.clientPlaybackNonce,c:this.La.deviceParams.c,cver:this.La.deviceParams.cver};this.So&&(d.ptk=this.So,d.oid=this.YA,d.ptchn=this.XA,d.pltype=this.ZA);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 ct(k.url);if(k.s){var l=k.sp,m=Rs(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}for(var n in d)f.set(n,d[n]);k=Fv(k.type,k.quality,k.itag,k.width,k.height);e.push(new Oz(k,f))}}return Fw(b.w,e,Nx(b,c)).then(this.au,void 0,this)};
g.h.cu=function(a){this.va=a;a=this.getAvailableAudioTracks();a=a.concat(this.lk);for(var b=0;b<this.lq.length;b++)for(var c=this.lq[b],d=0;d<a.length;d++){var e=a[d],f=e.rb.id==c.audioTrackId;if(e.rb.isDefault&&b==this.Uv||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.Cq=this.captionTracks[c.defaultCaptionTrackIndex]);void 0!==c.forcedCaptionTrackIndex&&(e.on=this.captionTracks[c.forcedCaptionTrackIndex]);
e.oq=c.visibility||"UNKNOWN"}}if(!this.fa("html5_playbackmanager_infocheck_killswitch")&&this.sd&&this.va&&this.va.videoInfos&&!(0>=this.va.videoInfos.length)&&(a=Cv(this.va.videoInfos[0]),a!=("fairplay"==this.sd.flavor)))for(b=g.q(this.Dj),c=b.next();!c.done;c=b.next())if(c=c.value,a==("fairplay"==c.flavor)){this.sd=c;break}};
g.h.au=function(a){this.sg=a;this.cu(new sz((0,g.Fc)(this.sg,function(b){return b.Zd()})))};
g.h.Sc=function(){var a={};this.Aa&&(a.fmt=Vu(this.Aa),this.Tb&&Vu(this.Tb)!=Vu(this.Aa)&&(a.afmt=Vu(this.Tb)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Fh&&(a.infringe=1);this.Yg&&(a.splay=1);var b=GB(this);b&&(a.live=b);this.lh&&(a.autoplay=1);this.Yo&&(a.sdetail=this.Yo);this.De&&(a.partnerid=this.De);this.osid&&(a.osid=this.osid);return a};
g.h.te=function(){var a=g.Vx(this.La)||this.fa("web_l3_storyboard");if(!this.Id)if(this.Ia&&this.Ia.storyboards){var b=this.Ia.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Id=new Yz(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ka&&(c=Gb(this.ka.o).index)&&(this.Id=new aA(b.spec,this.ka.isLive,c,a))}else this.qp?this.Id=new Yz(this.qp,this.lengthSeconds,void 0,!1,a):this.Wn&&this.ka&&(b=Gb(this.ka.o).index)&&(this.Id=new aA(this.Wn,this.ka.isLive,
b,a));return this.Id};
g.h.getStoryboardFormat=function(){if(this.Ia&&this.Ia.storyboards){var a=this.Ia.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.qp||this.Wn};
g.h.sc=function(){return this.ka&&!isNaN(this.ka.sc())?this.ka.sc():sB(this)?0:this.lengthSeconds};
g.h.zb=function(){return this.ka&&!isNaN(this.ka.zb())?this.ka.zb():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.ka&&this.Aa){var b=this.ka.o[this.Aa.id];if(!b)return null;var c=b.index.Oe(a);b=b.index.Xc(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.la()&&!(!this.videoId&&!this.Lj)};
g.h.Pb=function(){return JB(this)&&!this.Eh&&!this.jj};
g.h.Ac=function(a){if(30==this.De)return(a=this.Ye["default.jpg"])?a:this.videoId?g.Ad("//docs.google.com/vt",{id:this.videoId,authuser:this.Kc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Ye[a];return b||this.La.G||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:Qx(this.La,this.videoId,a)};
g.h.Pe=function(){return this.ua||this.ye||this.Or||!(!this.liveUtcStartSeconds||!this.Wk)};
g.h.Rk=function(){return!!this.ka&&(this.ka.Rk||!this.ye&&!this.ua&&this.ka.w)};
g.h.getAvailableAudioTracks=function(){return this.va?0<this.va.getAvailableAudioTracks().length?this.va.getAvailableAudioTracks():this.Ln||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.Tb&&!Cv(this.Tb))return g.$a(this.getAvailableAudioTracks(),function(d){return d.id==a.Tb.id})||this.lk;
if(this.Ln){if(!this.Sl)for(var b=g.q(this.Ln),c=b.next();!c.done;c=b.next())if(c=c.value,c.rb.getIsDefault()){this.Sl=c;break}return this.Sl||this.lk}return this.lk};
g.h.getPlayerResponse=function(){return this.Ia};
g.h.getPlaylistId=function(){return null};
g.h.wa=function(){return this};
g.h.Th=function(){return this.La.getVideoUrl(this.videoId)};
g.h.fg=function(){return!!this.ka&&this.ka.fg()};
g.h.gg=function(){return!!this.ka&&this.ka.gg()};
g.h.Yf=function(){return!!this.ka&&this.ka.Yf()};
g.h.ej=function(){return!!this.ka&&this.ka.ej()};
g.h.isAd=function(){return!!this.adFormat};
g.h.Ng=function(){if(this.isAd()&&this.videoId!=this.La.xa)return this.La.xa};
g.h.Ne=function(){return this.oauthToken||this.La.nb};
g.h.Vl=function(){return this.Ki};
g.h.useInnertubeDrmService=function(){return!!(this.sd&&"widevine"==this.sd.flavor&&this.Ia&&this.Ia.playerConfig&&this.Ia.playerConfig.webDrmConfig&&this.Ia.playerConfig.webDrmConfig.useInnertubeDrmService)};ZB.prototype.C=function(){if(!$B(this))return null;var a="";this.T&&this.T.cf&&(a=this.T.cf+("&r1b="+this.T.clientPlaybackNonce));var b={};a=(b.atr_challenge=a,b);return(a=this.w?Bs(a):g.w("yt.abuse.player.invokeBotguard")(a))?"r1a="+a:null};
ZB.prototype.B=function(){if(!Rq.o)return Promise.resolve(null);var a="";this.T&&this.T.cf&&(a=this.T.cf+("&r1b="+this.T.clientPlaybackNonce));var b={},c=(b.atr_challenge=a,b);return new Promise(function(d){hfa(c).then(function(e){e?d("r1a="+e):d(null)})})};
ZB.prototype.F=function(a){return"r3a="+Math.floor(this.T.lengthSeconds%g.jd(a.c3a))};
ZB.prototype.A=function(a){a=g.jd(a.c);var b=this.w?parseInt(g.L("DCLKSTAT",0),10):(b=g.w("yt.abuse.dclkstatus.checkDclkStatus"))?b():NaN;return"r6a="+(a^b)};var B2={},Uqa=(B2["api.invalidparam"]=2,B2.auth=150,B2["drm.auth"]=150,B2["heartbeat.net"]=150,B2["heartbeat.servererror"]=150,B2["heartbeat.stop"]=150,B2["html5.unsupportedads"]=5,B2["fmt.noneavailable"]=5,B2["fmt.decode"]=5,B2["fmt.unplayable"]=5,B2["html5.missingapi"]=5,B2["html5.unsupportedlive"]=5,B2["drm.unavailable"]=5,B2);var Vqa=dQ&&4>YB?.1:0,Lka=new dC;dC.prototype.o=null;dC.prototype.getDuration=function(){return this.duration||0};
dC.prototype.getCurrentTime=function(){return this.currentTime||0};
dC.prototype.u=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.r(g.eC,g.A);g.h=g.eC.prototype;g.h.ep=function(){};
g.h.Di=ba(6);g.h.no=function(){return this.w};
g.h.qj=function(a){var b="";a&&(gC(this,a),b=a.o);this.Tc()&&""==b||(b&&this.Tc()!=b&&this.kp(b),XS||a&&a.u||this.load(),this.F||(this.addEventListener("volumechange",this.hw),this.F=!0))};
g.h.mo=function(){var a=this.gb();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Ov(a);a=new ew(a);this.qj(a.Yk);return a};
g.h.playVideo=function(){this.qf()&&this.seekTo(0);!this.Tc()&&this.w&&(g.M(Error("playVideo without src")),this.kp(this.w.o),this.w.u||this.load());var a=this.play();!a&&ZS&&dQ&&7<=YB&&g.Ip(this,"playing",(0,g.x)(function(){g.Ko((0,g.x)(this.Lw,this,this.getCurrentTime(),0),500)},this));
return a};
g.h.Lw=function(a,b){this.gh()||this.getCurrentTime()>a||10<b||(this.play(),g.Ko((0,g.x)(this.Lw,this,this.getCurrentTime(),b+1),500))};
g.h.seekTo=function(a){0<this.fe()&&($S&&dQ&&4>YB&&(a=Math.max(.1,a)),this.ip(a))};
g.h.stopVideo=function(){this.Tc()&&(YS&&ol&&0<this.getCurrentTime()&&this.seekTo(0),this.bp(),this.load(),gC(this,null))};
g.h.Ya=function(){try{var a=this.rj();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Vv(this.Wi(),",",3),vbu:Vv(this.md()),vpa:""+ +this.gh(),vsk:""+ +this.ol(),ven:""+ +this.qf(),vpr:""+this.getPlaybackRate(),vrs:""+this.fe(),vns:""+this.zn(),vec:""+this.Se(),vvol:""+this.getVolume(),vdom:""+ +this.Br(),vsrc:""+ +!!this.Tc(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.B.ia(a,b,!1,this);this.Jq(a)};
g.h.removeEventListener=function(a,b){this.B.Xa(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.Iq=function(){this.C=!1};
g.h.Eq=function(){this.C=!0;this.rh(!0)};
g.h.hw=function(){this.C&&!this.yn()&&this.rh(!0)};
g.h.Y=function(){this.F&&this.removeEventListener("volumechange",this.hw);g.A.prototype.Y.call(this)};
var XS=!1,YS=!0,ZS=!0,$S=!0;g.r(mC,g.Je);mC.prototype.preventDefault=function(){g.Je.prototype.preventDefault.call(this);this.u&&this.u.preventDefault()};
mC.prototype.stopPropagation=function(){g.Je.prototype.stopPropagation.call(this);this.u&&this.u.stopPropagation()};g.r(g.nC,g.eC);g.h=g.nC.prototype;g.h.fh=function(){return!0};
g.h.isView=function(){return!1};
g.h.ep=function(){return!1};
g.h.gb=function(){return this.o};
g.h.Tc=function(){return this.o.src};
g.h.kp=function(a){var b=this.getPlaybackRate();this.o.src=a;this.setPlaybackRate(b)};
g.h.bp=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.lo=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.gh=function(){return this.o.paused};
g.h.ol=function(){return this.o.seeking};
g.h.qf=function(){return this.o.ended};
g.h.yn=function(){return this.o.muted};
g.h.rh=function(a){Mv();this.o.muted=a};
g.h.Wi=function(){return this.o.played||Uv([],[])};
g.h.md=function(){try{var a=this.o.buffered}catch(b){}return a||Uv([],[])};
g.h.Bk=function(){return this.o.seekable||Uv([],[])};
g.h.oo=function(){return this.o.getStartDate?this.o.getStartDate():null};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.ip=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.fe=function(){return this.o.readyState};
g.h.zn=function(){return this.o.networkState};
g.h.Se=function(){return this.o.error?this.o.error.code:null};
g.h.ll=function(){return this.o.error?this.o.error.message:""};
g.h.nl=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.fi=function(){return!!this.o.webkitCurrentPlaybackTargetIsWireless};
g.h.ts=function(){return!!this.o.webkitShowPlaybackTargetPicker()};
g.h.togglePictureInPicture=function(){Lv()?this.o!=window.document.pictureInPictureElement?this.o.requestPictureInPicture():window.document.exitPictureInPicture():Kv()&&this.o.webkitSetPresentationMode("picture-in-picture"==this.o.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.Pg=function(){return Fh(this.o)};
g.h.rj=function(){return g.Ph(this.o)};
g.h.setSize=function(a){return g.Oh(this.o,a)};
g.h.getVolume=function(){return this.o.volume};
g.h.setVolume=function(a){Mv();this.o.volume=a};
g.h.Jq=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 mC(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.ck=ba(8);g.h.fm=ba(10);g.h.Di=ba(5);g.h.hk=ba(12);g.h.rk=function(){vr(this.o)};
g.h.Ck=function(a){return g.zh(this.o,a)};
g.h.Br=function(){return g.xe(document.body,this.o)};
g.h.Y=function(){for(var a in this.u)this.o.removeEventListener(a,this.u[a]);g.eC.prototype.Y.call(this)};oC.prototype.add=function(a){this.o=(this.o+1)%this.u.length;this.u[this.o]=a};
oC.prototype.clear=function(){for(var a=this.u.length,b=0;b<a;b++)this.u[b]=0;this.w=this.o=this.u.length-1};g.r(qC,g.A);qC.prototype.start=function(){this.u.start()};
qC.prototype.stop=function(){this.u.stop()};
qC.prototype.clear=function(){for(var a in this.o)this.o[a].clear()};
qC.prototype.A=function(){for(var a in this.w)this.o[a].update(this.w[a]());this.u.start()};
rC.prototype.update=function(a){this.u?(this.buffer.add(a-this.o||0),this.o=a):this.buffer.add(a)};
rC.prototype.clear=function(){this.buffer.clear();this.o=0};var AC=1;g.r(g.CC,g.A);g.h=g.CC.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.D;var c=a.I,d=a.X;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.Yx&&(a.M||(a.M={}),a.M.focusable="false")}else e=g.pe(a.D);if(c){if(c=EC(this,e,"class",c))FC(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;FC(this,e,"class",d.join(" "))}d=a.W;c=a.K;if(d)d=EC(this,e,"child",d),void 0!==d&&e.appendChild(g.qe(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=EC(this,e,"child",f),null!=f&&e.appendChild(g.qe(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Ka&&(k=BC(),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.te(e,f,d++))}if(d=a.M)for(c=e,f=g.q(Object.keys(d)),k=f.next();!k.done;k=f.next()){k=k.value;var l=d[k];FC(this,c,k,"string"===
typeof l?EC(this,c,k,l):l)}return e};
g.h.ba=function(a,b){"number"===typeof b?g.te(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.ha(c,a[c])};
g.h.ha=function(a,b){var c=this.Wa["{{"+a+"}}"];c&&FC(this,c[0],c[1],b)};
g.h.Y=function(){this.o={};this.Wa={};g.DC(this);g.A.prototype.Y.call(this)};g.r(g.V,g.CC);g.h=g.V.prototype;g.h.tb=function(a,b){this.ha(b||"content",a)};
g.h.show=function(){this.ra||(g.vh(this.element,"display",""),this.ra=!0)};
g.h.hide=function(){this.ra&&(g.vh(this.element,"display","none"),this.ra=!1)};
g.h.Ua=function(a){this.P=a};
g.h.Ea=function(){return this.ra};
g.h.ia=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.Xa=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.Y=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.CC.prototype.Y.call(this)};g.r(g.HC,g.V);g.HC.prototype.subscribe=function(a,b,c){return this.ca.subscribe(a,b,c)};
g.HC.prototype.unsubscribe=function(a,b,c){return this.ca.unsubscribe(a,b,c)};
g.HC.prototype.pg=function(a){return this.ca.pg(a)};
g.HC.prototype.R=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ca.R.apply(this.ca,[a].concat(g.na(c)))};g.r(g.JC,g.HC);g.JC.prototype.ha=function(a,b){g.HC.prototype.ha.call(this,a,b);this.R("size-change")};g.r(OC,g.A);g.h=OC.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.C[a];if(!d&&(d=this.G[a])){var e=this.fa("web_player_disable_ima_uvr")&&/^https?:\/\/imasdk\.googleapis\.com$/.test(c);if(!c||!Us(c,Dqa,Eqa)||e)throw Error('API call from an untrusted origin: "'+c+'"');}e=this.app.N();e.Ag&&!this.P.has(a)&&(this.P.add(a),Kq("webPlayerApiCalled",{callerUrl:e.loaderUrl,methodName:a,origin:c||void 0,playerStyle:e.playerStyle||void 0}));if(d){c=!1;e=g.q(b);for(var f=e.next();!f.done;f=e.next())if(String(f.value).includes("javascript:")){c=!0;
break}c&&g.Jo(Error('Dangerous call to "'+a+'" with ['+b+"]."));return d.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.h.isExternalMethodAvailable=function(a,b){return this.C[a]?!0:!!(this.G[a]&&b&&Us(b,Dqa,Eqa))};
g.h.getBandwidthEstimate=function(){return jx(this.app.N().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.U(this.app);b&&(a={gpu:(0,g.nK)(),d:a},b.ci(new Rv("feedback",!1,a)))};
g.h.getApiInterface=function(){return this.H.slice()};
g.h.getInternalApiInterface=function(){return g.Ib(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.ga.subscribe(a,c)};
g.h.BE=function(a,b){var c=this,d="string"===typeof b?a+b:a+g.Ra(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.ga.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.ga.unsubscribe(a,b)};
g.h.CE=function(a,b){var c="string"===typeof b?a+b:a+g.Ra(b),d=this.B[c];d&&(this.app.ga.unsubscribe(a,d),d=this.B,c in d&&delete d[c])};
g.h.getPlayerState=function(){return IT(this.app)};
g.h.seekTo=function(a,b,c){this.o&&RT(this.app,!0,this.playerType);cU(this.app,a,b,c,this.playerType)};
g.h.seekToStreamTime=function(a,b,c){this.o&&RT(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.U(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.Ab()&&(l=k.getStreamTimeOffset());cU(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.U(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=this.getVideoData();c&&(c.ua||c.isLive)&&cU(this.app,Infinity,a,b,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.getMediaReferenceTime=function(){var a=GT(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.P.volume};
g.h.setVolume=function(a){SC(this,a)};
g.h.isMuted=function(){return this.app.P.muted};
g.h.mute=function(){TC(this)};
g.h.unMute=function(){UC(this)};
g.h.playVideo=function(){this.o&&RT(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!=a||this.app.Ob()?3==a?g.AL(this.app.A).kl("control_play"):this.app.playVideo(a):(a=rM(this.app.A))&&Bpa(a,"control_play")};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!=a||this.app.Ob()?3==a?g.AL(this.app.A).kl("control_pause"):this.app.pauseVideo(a):(a=rM(this.app.A))&&Bpa(a,"control_pause")};
g.h.stopVideo=function(){var a=this.app;a.o.ga&&a.u.R("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.U(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.ya?(a=a.u||a.fa("web_player_admin_origin_killswitch")?a.dc[0]:window.location.origin,a="https://admin.youtube.com"==a||"https://viacon.corp.google.com"==a?Pqa:Oqa):a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.U(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.U(this.app,this.playerType);return a?(a=(0,g.Fc)(GK(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.H.Ae()};
g.h.channelSubscribed=function(){this.ma("SUBSCRIBE",uT(this.app).xg)};
g.h.channelUnsubscribed=function(){this.ma("UNSUBSCRIBE",uT(this.app).xg)};
g.h.getStatsForNerds=function(){return zC(this.app)};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.U(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.U(this.app).getPlaylistSequenceForTime(a)};
g.h.forceFrescaUpdate=function(){var a=JL(this.app.A);a&&a.JE()};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=WC(this);b&&(b.A=a,b.w())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=WC(this);b&&(g.K(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.Ge(b,g.BN(b.F.Za(),b.element)),b.C=!0))};
g.h.confirmYpcRental=function(){var a=g.U(this.app,this.playerType);a&&AK(a,"ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.N().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.N().zh=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 uT(this.app).cq};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"==a&&(a=g.kM(this.app.A))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"==a&&(a=g.kM(this.app.A))&&a.loaded&&a.cP()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(aC(a,b,c),this.playerType),this.o&&RT(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(aC(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=bC(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.o&&RT(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=bC(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.N();if(a.G)return"";var b=uT(this.app),c=void 0;b.ua||(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.G?"":a.getVideoEmbedCode(uT(this.app).videoId,this.app.H.getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return VT(this.app,a,b,c)};
g.h.removeCueRange=function(a){a:{for(var b=this.app,c=VG(b.w.P)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.w.removeCueRange(e);lT(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&&RT(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&&RT(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.o&&RT(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.o&&RT(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.w;c++){var d=a.wa(c);d&&b.push(d.videoId)}return b};
g.h.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.o:-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.kM(d))&&a.Lc(b,c):null};
g.h.getOption=function(a,b,c){var d=g.U(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&!this.fa("embeds_prevent_metadata_leaking_killswitch")?{}:this.setOption(a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;return"captions"==a?(b=g.kM(b))&&b.getOptions():a?null:(a=[],g.kM(b)&&a.push("captions"),a)};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.U(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.Aa&&a.Aa.video){b.video_quality=a.Aa.video.quality;a=a.Aa.video;var c=[];32<a.fps&&c.push("hfr");vv(a)&&c.push("hdr");wv(a)&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.h.showVideoInfo=function(){gT(this.app,!0)};
g.h.hideVideoInfo=function(){gT(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.xa.args.video_id)return!1;var b=(a=(a=g.U(this.app,1))?a.getPlayerState():null)?a.u:null;return!!(a&&b&&g.W(a,128)&&5==Uqa[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.EL(this.app.A);return a?2==this.playerType?{}:a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!=this.playerType){var b=g.EL(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.U(this.app);a&&a.sendAbandonmentPing()};
g.h.setAutonavState=function(a){eU(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.R=function(a,b){for(var c=1;c<arguments.length;++c);this.app.N().Db&&("videodatachange"==a||"resize"==a||"cardstatechange"==a)&&this.app.ga.R.apply(this.app.ga,arguments);this.app.da.R.apply(this.app.da,arguments)};
g.h.ma=function(a,b){this.app.ga.R.apply(this.app.ga,arguments);this.app.da.R.apply(this.app.da,arguments)};
g.h.fa=function(a){return g.Q(this.app.N().experiments,a)};
g.h.Y=function(){if(this.A){for(var a in this.w)this.A[a]=null;this.A=null}this.B={};this.F={};g.A.prototype.Y.call(this)};YC.prototype.isEmpty=function(){return this.endTime==this.startTime};$C.prototype.update=function(){if(this.J){var a=this.u.o()||0,b=g.kD(this.u);if(a!=this.o||dD(this,a,b)){var c;if(!(c=a<this.o||a-this.o>b-this.F+2||dD(this,a,b))){var d=this.u.Sc();c=d.volume;var e=c!=this.O;d=d.muted;d!=this.P?(this.P=d,c=!0):(!e||0<=this.C||(this.O=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(aD(this),this.w=a);this.F=b;this.o=a}}};eD.prototype.send=function(a){if(!this.V){var b=hD(this);b=g.Ad(this.sa,b);if(this.O)this.G&&(a=fD(this)||{},a.method="POST",a.yb={atr:this.G},this.F&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.xq(b,a));else{var c=fD(this,a);c?g.xq(b,c):g.Uq(b,a)}this.V=!0}};
eD.prototype.o=function(a){void 0==a&&(a=NaN);return(1*a.toFixed(3)).toString()};iD.prototype.fa=function(a){return g.Q(this.eb.experiments,a)};
var lD={other:1,none:2,wifi:3,cellular:7};var gka,C2,Uha;
gka={WP:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",bQ:"AUTHENTICATION_MALFORMED",cQ:"AUTHENTICATION_MISSING",gQ:"BAD_REQUEST",mQ:"CAST_SESSION_DEVICE_MISMATCHED",nQ:"CAST_SESSION_VIDEO_MISMATCHED",oQ:"CAST_TOKEN_EXPIRED",pQ:"CAST_TOKEN_FAILED",qQ:"CAST_TOKEN_MALFORMED",rQ:"CGI_PARAMS_MALFORMED",sQ:"CGI_PARAMS_MISSING",EQ:"DEVICE_FALLBACK",OQ:"GENERIC_WITH_LINK_AND_CPN",PQ:"LICENSE",QQ:"VIDEO_UNAVAILABLE",UQ:"FORMAT_UNAVAILABLE",YQ:"GEO_FAILURE",rR:"HTML5_AUDIO_RENDERER_ERROR",sR:"GENERIC_WITHOUT_LINK",
tR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uR:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",AR:"INVALID_DRM_MESSAGE",wS:"PURCHASE_NOT_FOUND",xS:"PURCHASE_REFUNDED",AS:"RENTAL_EXPIRED",CS:"RETRYABLE_ERROR",GS:"SERVER_ERROR",OS:"STOPPED_BY_ANOTHER_PLAYBACK",PS:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",QS:"STREAMING_NOT_ALLOWED",RS:"STREAM_LICENSE_NOT_FOUND",XS:"TOO_MANY_REQUESTS",YS:"TOO_MANY_REQUESTS_WITH_LINK",ZS:"TOO_MANY_STREAMS_PER_ENTITLEMENT",aT:"TOO_MANY_STREAMS_PER_USER",cT:"UNSUPPORTED_DEVICE",
eT:"VIDEO_FORBIDDEN",fT:"VIDEO_NOT_FOUND"};C2={};
g.yK=(C2.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",C2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",C2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",C2.LICENSE="Sorry, there was an error licensing this video.",C2.VIDEO_UNAVAILABLE=
"Video unavailable",C2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",C2.GEO_FAILURE="This video isn't available in your country.",C2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",C2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",C2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",C2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
C2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",C2.PURCHASE_NOT_FOUND="This video requires payment.",C2.PURCHASE_REFUNDED="This video's purchase has been refunded.",C2.RENTAL_EXPIRED="This video's rental has expired.",C2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",C2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",C2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",
C2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",C2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",C2.SERVER_ERROR="There was an internal server error. Please try again later.",C2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",C2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",C2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",
C2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",C2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",C2.TOO_MANY_REQUESTS="Please log in to watch this video.",C2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",C2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",C2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",
C2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",C2.VIDEO_FORBIDDEN="Access to this video is forbidden.",C2.VIDEO_NOT_FOUND="This video can not be found.",C2);
Uha={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"};g.nK=Ab(function(){var a="";try{var b=g.pe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.qD.prototype.isCued=function(){return g.W(this,64)&&!g.W(this,8)&&!g.W(this,4)};
g.qD.prototype.isError=function(){return g.W(this,128)};
g.qD.prototype.toString=function(){return"PSt."+this.o.toString(16)};var Xha=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);g.r(HD,g.A);HD.prototype.ca=function(a,b){if(!this.la()){this.C=NaN;this.u.update();var c=cD(this.u),d=KD(this,c);b&&(d.A=a);var e=this.o.fa("html5_expanded_max_vss_pings")?1E3:400;e=this.J>e;!(1<c.length)&&c[0].isEmpty()||e||(d.u=ID(this,!0,a));d.send();this.J++}};
HD.prototype.F=function(a){var b=this.o.eb,c=this.o.videoData,d={ns:b.O,el:QB(c),eurl:b.Fa,fmt:c.Aa?Vu(c.Aa):0,html5:1,list:c.playlistId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.playerStyle,noflv:1,st:this.o.o(),video_id:c.videoId,metric:a};SB(c)&&(d.autoplay="1");"heartbeat"==a&&(d.tpmt=bD(this.u));g.Ta(d,b.deviceParams);MD(this,g.Ad(g.Q(b.experiments,"cardio_base_url_killswitch")?(b.o?b.protocol+"://www.youtube.com/":b.C)+"live_204":b.C+"live_204",d))};
HD.prototype.Y=function(){g.A.prototype.Y.call(this);g.Mo(this.C);this.C=NaN;var a=this.u;window.clearInterval(a.G);a.G=NaN;g.Mo(this.A)};
HD.prototype.Ya=function(){return hD(JD(this,"playback"))};var Wqa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Wqa).reduce(function(a,b){a[Wqa[b]]=b;return a},{});
var Xqa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Xqa).reduce(function(a,b){a[Xqa[b]]=b;return a},{});
var Yqa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Yqa).reduce(function(a,b){a[Yqa[b]]=b;return a},{});g.r(RD,OC);g.h=RD.prototype;g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2==a&&this.app.Ob()&&(a=1);return a};
g.h.addCueRange=function(a,b,c,d,e){return VT(this.app,a,b,c,d,e)};
g.h.addInfoCardXml=function(a,b,c){this.app.N().F.add(a,{Wm:b,im:c})};
g.h.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.h.getPlayerState=function(a){return IT(this.app,a)};
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.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){cU(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){cU(this.app,a,b,c,d||this.playerType)};
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.o])&&c.encrypted_id!=b.wa().videoId||(a.index=b.o)):xT(this.app,{list:a.list,index:a.index,playlist_length:d.length});eE(this.app.getPlaylist(),a);this.ma("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateLastActiveTime=function(){Sp()};
g.h.updateVideoData=function(a,b){var c=g.U(this.app,this.playerType||1);c&&c.getVideoData().Td(a,b)};
g.h.getPlayerResponse=function(){var a=g.U(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.getStoryboardFrame=function(a,b){var c=this.app.te();if(!c)return null;c=c.levels[b];return c?(c=g.Sz(c,a))?{column:c.column,columns:c.columns,height:c.Ho,row:c.row,rows:c.rows,url:c.url,width:c.Io}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.te();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.Ab();return c.Eo(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.te();return b?(b=b.levels[a])?{index:a,intervalMs:b.o,maxFrameIndex:b.xl(),minFrameIndex:b.Qs()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.te();return a?a.levels.length:0};
g.h.Ab=function(){var a=g.U(this.app,void 0);return a?a.Ab():0};
g.h.getHousebrandProperties=function(){var a=this.app.N();return{Yb:a.Yb,Db:a.Db}};
g.h.getVideoData=function(a){a=void 0===a?this.playerType:a;var b=OC.prototype.getVideoData.call(this,a)||{};if(a=g.U(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.ua,b.isWindowedLive=a.Or,b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.mf,b.ypcOriginalItct=a.wP,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=EB(a),b.paidContentOverlayDurationMs=FB(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds),
a.ka&&Qy(a.ka)&&(b.usingLocalMedia="true");return b};
g.h.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):OC.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){return a?this.app.getDuration(a,b):OC.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3==this.getPresentingPlayerType())return g.AL(this.app.A).getProgressState();var b=this.app.getVideoData(),c=(g.U(this.app,a)||g.U(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=GT(this.app,c),f=this.app.isAtLiveHead(c);var k=this.app;var l=g.U(k,void 0);if(l){l=rT(k,l);var m=NaN;l.o&&(m=iC(l.o));m=0<=m?m:l.getCurrentTime();k=HT(k,m,l)}else k=0;l=this.app.zb(c);m=this.app;(c=g.U(m,c))?(c=qT(m,c),c=HT(m,hL(c),c)):c=0;return{allowSeeking:this.app.Nc(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:k,seekableStart:l,seekableEnd:c}};
g.h.deleteLocalMediaById=function(a){return Yga(a)};
g.h.deleteAllLocalMedia=function(){return Zga()};
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.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.h.canPlayType=function(a){return this.app.canPlayType(a)};
g.h.getPreferredQuality=function(){var a=g.U(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.U(this.app,this.playerType);if(c){var d=Iw(a,b||a,!0,"m");c.T.Fp=d;if(c.H){var e=c.H;if(e.va.o){var f=g.rv[Qw()];e=e.va.videoInfos[0].wa().ac;f>e&&0!=e&&d.o==e||g.qs("yt-player-quality",Mw(d),2592E3)}}JK(c)}};
g.h.getCurrentBroadcastId=function(){var a=JL(this.app.A);return a?a.Sw():null};
g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.h.setCardsVisible=function(a,b,c){var d=g.FL(this.app.A);d&&d.jl()&&d.setCardsVisible(a,b,c)};
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.XC(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.XC(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)};
g.h.zE=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.U(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().lk};
g.h.setAudioTrack=function(a){3==this.getPresentingPlayerType()&&g.AL(this.app.A).kl("control_set_audio_track",a);var b=g.U(this.app,this.playerType);if(b&&!b.la()&&!g.W(b.u,128))if(b.T.va.o)b.w.setAudioTrack(a);else{a:{var c=b.T;if(c.Tb&&!Cv(c.Tb)||a==c.Sl||!c.sg||0>=c.sg.length)c=!1;else{for(var d=g.q(c.sg),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof Cz)){c=!1;break a}var f=a.rb.getId();e.u&&(e.u.u=f,e.o=null)}c.Sl=a;c=!0}}c&&(b.R("internalaudioformatchange",b.T,!0),qK(b)&&b.Sa("hlsaudio",
a.id))}};
g.h.AE=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.U(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.U(this.app,this.playerType);return a&&a.getVideoData().Aa?Mw(a.H?oI(a.S,a.H,vC(a)):Kw):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.U(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.h.showControls=function(){var a=g.XC(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.XC(this);a&&a.showControls(!1)};
g.h.getVisibilityState=function(){var a=this.app.N();a=this.app.G.o&&!g.Q(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.fi(),this.isFullscreen()||Ax(this.app.N()),a,this.isInline(),this.app.G.B,this.app.G.A)};
g.h.isFullscreen=function(){return this.app.isFullscreen()};
g.h.isInline=function(){return this.app.isInline()};
g.h.fi=function(){var a=g.U(this.app,this.playerType);return!!a&&a.J.u};
g.h.getVideoContentRect=function(a){a=this.app.H.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setSafetyMode=function(a){this.app.N().enableSafetyMode=a};
g.h.setUserEngagement=function(a){this.app.N().hd!=a&&(this.app.N().hd=a,(a=g.U(this.app,this.playerType))&&JK(a))};
g.h.setFauxFullscreen=function(a){tr();pT(this.app,a?2:0)};
g.h.toggleFullscreen=function(){var a=this.app.N();a.externalFullscreen?this.isFullscreen()?vr(window.document.documentElement):sr(window.document.documentElement):tr()?this.isFullscreen()?vr(ur()):"3"==a.controlsType?(a=this.app.B.gb())&&sr(a):sr(this.app.H.element):this.ma("onFullscreenToggled",this.isFullscreen())};
g.h.cancelPlayback=function(){var a=rM(this.app.A);a&&a.created&&a.destroy();(a=g.U(this.app))&&a.stopVideo();(a=this.app.A.u.get("endscreen"))&&a.XF()&&g.vL(this.app.u,!0)};
g.h.stopVideo=function(){var a=this.app.N();!g.Q(a.experiments,"disable_new_pause_state3")&&Rx(a)&&"blazer"!=a.playerStyle?this.cancelPlayback():OC.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.U(this.app,this.playerType).Ya(!0)};
g.h.toggleSubtitles=function(){var a=g.kM(this.app.A);a&&a.UO()};
g.h.updateSubtitlesUserSettings=function(a){g.kM(this.app.A).yC(a,!0)};
g.h.getSubtitlesUserSettings=function(){var a=g.kM(this.app.A);return a?a.bF():null};
g.h.resetSubtitlesUserSettings=function(){g.kM(this.app.A).rO()};
g.h.isAtLiveHead=function(a){return this.app.isAtLiveHead(void 0,void 0===a?!0:a)};
g.h.setMinimized=function(a){this.app.setMinimized(a)};
g.h.setInline=function(a){this.app.setInline(a)};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.EL(this.app.A);b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.EL(this.app.A);return a?a.getSphericalProperties():{}};
g.h.setBlackout=function(a){this.app.setBlackout(a)};
g.h.onAdUxClicked=function(a){this.R("aduxclicked",a)};
g.h.setVolume=function(a,b){SC(this,a,b)};
g.h.mute=function(a){TC(this,a)};
g.h.unMute=function(a){UC(this,a)};
g.h.isMutedByMutedAutoplay=function(){return this.app.Na};
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.FL(this.app.A);b&&!b.loaded&&b.load()}OC.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"==a){var b=g.FL(this.app.A);b&&b.loaded&&b.unload()}OC.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=rM(d))&&a.Lc&&a.Lc(b,c);case "kids":return(a=sM(d))&&a.Lc(b,c);case "remote":return(a=g.AL(d))&&a.Lc(b,c);case "unplugged":return(a=tM(d))&&a.Lc(b,c);case "annotations_module":return(a=g.FL(d))&&a.Lc(b,c);case "creatorendscreen":return(a=uM(d))&&a.Lc(b,c)}return OC.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.A;switch(a){case "ad":return(b=rM(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.AL(b))&&b.getOptions();case "annotations_module":return(b=g.FL(b))&&b.getOptions();case "creatorendscreen":return(b=uM(b))&&b.getOptions();case "unplugged":return(b=tM(b))&&b.getOptions();case "kids":return(b=sM(b))&&b.getOptions()}if(!a){a=OC.prototype.getOptions.call(this);if(!a)return a;rM(b)&&a.push("ad");g.AL(b)&&a.push("remote");g.FL(b)&&a.push("annotations_module");
uM(b)&&a.push("creatorendscreen");tM(b)&&a.push("unplugged");sM(b)&&a.push("kids");return a}return OC.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.H.getPlayerSize();return{width:a.width,height:a.height}};
g.h.setGlobalCrop=function(a){this.app.H.setGlobalCrop(a)};
g.h.wakeUpControls=function(){var a=g.XC(this);a&&a.Hs()};
g.h.getVideoAspectRatio=function(){return this.app.H.getVideoAspectRatio()};
g.h.setUseFastSizingOnWatch=function(a){this.app.H.setUseFastSizingOnWatch(a)};
g.h.setInternalSize=function(a,b){this.app.H.setInternalSize(new g.Ud(a,b))};SD.prototype.reset=function(){RA("")};
SD.prototype.tick=function(a,b){ZA(a,b,"")};
SD.prototype.info=function(a,b){bB(a,b,"")};g.r(g.UD,g.A);g.UD.prototype.getId=function(){return this.C};
g.UD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.C+"}["+VD(this.start)+", "+VD(this.end)+"]"};
g.UD.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 $ha=1;g.UD.prototype.getId=g.UD.prototype.getId;g.YD.prototype.toString=function(){return this.type+this.id};g.r(g.$D,g.P);g.h=g.$D.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.o+1<this.w};
g.h.wa=function(a,b,c){a=void 0!=a?a:this.o;a=this.Ga&&a in this.Ga?this.Ga[this.u[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.eB(this.La,a),g.C(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.G=a;a=this.u&&null!=this.u[this.o]?this.u[this.o]:this.o;this.u=[];for(var b=0;b<this.Ga.length;b++)this.u.push(b);this.o=a;this.F++;if(this.G){a=this.u[this.o];for(b=1;b<this.u.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.u[b];this.u[b]=this.u[c];this.u[c]=d}for(b=0;b<this.u.length;b++)this.u[b]==a&&(this.o=b);this.F++}this.R("shuffle")};
g.h.Ac=function(a){a=a||"hqdefault.jpg";var b=this.Ye[a];if(b||this.La.G||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a)return b;if(this.H.length)return Qx(this.La,this.H[0],a)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Th=function(){return this.La.getVideoUrl(this.wa().videoId,this.getPlaylistId())};
g.h.Y=function(){this.C=null;g.Ie(this.Ga);g.P.prototype.Y.call(this)};gE.prototype.la=function(){return this.B};
gE.prototype.dispose=function(){this.B=!0;g.iE(this);this.u=null};g.h=xE.prototype;g.h.Wc=function(){return""};
g.h.abort=function(){};
g.h.aj=function(){return!0};
g.h.xk=function(){return this.B.length};
g.h.qo=function(){return this.u};
g.h.In=function(){return!!this.o.o};
g.h.eg=function(){return!!this.o.o};
g.h.ro=function(){var a=this.o;this.o=new Cs;return a};
g.h.ys=function(){return this.o};
g.h.fu=function(){return!0};
g.h.Lt=function(){return!!this.A};
g.h.sj=function(){return this.A};var lia=0;g.h=yE.prototype;g.h.dO=function(a){this.status=a.status;a.ok?(this.w=a.body.getReader(),this.B?this.w.cancel("Cancelling"):(this.G=a.headers,this.ea(),zE(this))):BE(this)};
g.h.BK=function(a){if(!this.B){var b;window.performance&&window.performance.now&&(b=window.performance.now());var c=Date.now(),d=a.value?a.value:null;this.C&&(this.o.append(this.C),this.C=null);a.done?(this.w=null,BE(this)):(this.u+=d.length,AE(this)?this.o.append(d):this.C=d,this.ga(c,this.u,b),zE(this))}};
g.h.Qy=function(a){this.P=""+a;this.H=!0;BE(this)};
g.h.Wc=function(a){return this.G?this.G.get(a):null};
g.h.aj=function(){return!!this.G};
g.h.qo=function(){return this.u};
g.h.xk=function(){return+this.Wc("content-length")};
g.h.In=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.eg=function(){if(this.U)return!!this.o.o;var a=this.F.u;if(a&&this.S+a>Date.now())return!1;a=this.xk()||0;a=Math.max(16384,.125*a);this.V||(a=Math.max(a,16384));CE(this)&&(a=1);return this.o.o>=a};
g.h.ro=function(){this.eg();this.S=Date.now();this.V=!0;var a=this.o;this.o=new Cs;return a};
g.h.ys=function(){this.eg();return this.o};
g.h.abort=function(){this.w&&this.w.cancel("Cancelling");this.A&&this.A.abort();this.B=!0};
g.h.fu=function(){return!0};
g.h.Lt=function(){return this.H};
g.h.sj=function(){return this.P};g.h=DE.prototype;g.h.qH=function(){if(!this.u){this.status=this.o.status;try{this.response=this.o.response,this.w=this.response.byteLength}catch(a){}this.A=!0;this.B()}};
g.h.sH=function(){2==this.o.readyState&&this.C()};
g.h.rH=function(a){this.u||(this.status=this.o.status,this.F(a.timeStamp,a.loaded))};
g.h.aj=function(){return 2<=this.o.readyState};
g.h.Wc=function(a){try{return this.o.getResponseHeader(a)}catch(b){return g.M(b),""}};
g.h.xk=function(){return+this.Wc("content-length")};
g.h.qo=function(){return this.w};
g.h.In=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.eg=function(){return this.A&&!!this.response&&!!this.response.byteLength};
g.h.ro=function(){this.eg();var a=this.response;this.response=null;return new Cs([new Uint8Array(a)])};
g.h.ys=function(){this.eg();return new Cs([new Uint8Array(this.response)])};
g.h.abort=function(){this.u=!0;this.o.abort()};
g.h.fu=function(){return!1};
g.h.Lt=function(){return!1};
g.h.sj=function(){return""};g.h=EE.prototype;g.h.start=function(a){ME(this,2);this.O=++EE.o;this.u?(this.P=$fa(this.info,this.u.w,this.u.length),this.w=g.py(this.info,this.A,this.Z,this.P)):(this.P=this.info.range,this.w=g.py(this.info,this.A,this.Z));var b=!1;if(this.A.Wa&&2>this.info.u.u&&this.H){var c=this.w.get("aitags");if(c&&(oy(this.info)||this.info.gf())&&this.ca&&"auto"==Qw()&&Vw()){var d=ed(c).split(","),e=[];(0,g.y)(this.ca,function(f){g.cb(d,f)&&e.push(f)});
0<e.length&&(this.w.set("altitags",dd(e.join(","))),b=!0)}}b||(this.H=!1);this.w.set("rn",this.O.toString());0<=a&&this.w.set("rbuf",(1E3*a).toFixed().toString());this.da&&this.w.set("smb","1");a=g.lv(this.w);try{this.o=qia(this,a)}catch(f){g.Jo(f);this.B="net.ssl";NE(this);return}0<this.A.P&&this.U.start()};
g.h.MN=function(){this.F=0;this.info.u.B=(0,g.N)();var a=HE(this);a.A=(0,g.N)();a.started+=1;a=this.timing;a.o=(0,g.H)();a.C=a.o;a.w=0;a.ra=a.o;a.V=0;a.G&&(a.G=[]);a.na=!1;a.sa=!1;a.B=0;a.da=kx(a.u);a.H=Infinity;a.O=Infinity;uE(a);wE(a,a.o);a.ca=(a.U-a.o)/1E3;a.J=NaN;a.Z=null};
g.h.vH=function(a,b,c){if(!this.la()&&this.o){this.C=this.o.status;JE(this,!1);var d=this.timing;a=a>d.o&&4E12>a?a:(0,g.H)();sE(d,a,b);50>a-d.C&&tE(d)&&3!=mE(d)||qE(d,a,b,c);b=this.timing;b.w>b.Na&&nE(b,b.w)&&4>this.state?ME(this,4):RE(this)&&SE(this)&&ME(this,Math.max(3,this.state))}};
g.h.LN=function(){if(!this.la()&&this.o){if(!this.S&&this.o.aj()&&this.o.Wc("X-Walltime-Ms")){var a=parseInt(this.o.Wc("X-Walltime-Ms"),10);this.S=((0,g.H)()-a)/1E3}this.o.aj()&&this.o.Wc("X-Restrict-Formats-Hint")&&this.A.jv&&!Vw()&&g.qs("yt-player-headers-readable",!0,2592E3);if(a=parseInt(this.o.Wc("X-Head-Seqnum"),10))this.V=a}};
g.h.uH=function(){var a=this.o;!this.la()&&a&&(this.U.stop(),this.C=a.status,a=pia(this,a),7==a?NE(this):ME(this,a))};
g.h.nO=function(){if(!this.la()){var a=(0,g.H)(),b=!1;tE(this.timing)?(a=this.timing.U,wE(this.timing),this.timing.U-a>=.8*this.A.P?(this.F++,b=5<=this.F):this.F=0):(b=this.timing,b.F&&vE(b,(0,g.H)()),a-=b.S,this.A.Ef&&0<a&&(this.F+=1),b=a>1E3*this.A.fd);this.F&&this.G&&this.G(this);b?QE(this,!1):this.U.start()}};
g.h.la=function(){return-1==this.state};
g.h.dispose=function(){this.info.gf()&&6!=this.state&&(this.info.o[0].o.B=!1);ME(this,-1);this.G=null;this.U.dispose();this.A.Hc||PE(this)};
EE.DEBUG=!1;EE.o=0;var LE=-1;bF.prototype.skip=function(a){this.o+=a};g.r(eF,g.P);g.h=eF.prototype;g.h.Ct=function(){return this.u.length?this.u[0]:null};
g.h.pl=function(){return this.u.length?this.u[this.u.length-1]:null};
g.h.Ex=function(){return!!this.u.length};
g.h.Kt=function(a,b){this.V&&!Ru(this.V,b.info)&&(this.J=NaN);this.V=b.info;this.w=b.info.o;0==b.info.w?lF(this):!this.w.yc()&&this.A&&Xu(b.info,this.A);this.o?cv(this.o,b):this.o=b;a:{var c=g.dv(this.o.info.o.info);if(3!=this.o.info.type){if(!this.o.info.A)break a;6==this.o.info.type?kF(this,a,this.o):this.so(this.o);this.o=null}for(;this.o;){var d=this.o.o.o;if(0>=this.F&&0==this.C){var e=this.o.o,f=-1,k=-1;if(c){for(var l=0;l+8<e.o;){var m=Ns(e,l),n=Ns(e,l+4);l+=m||1;if(1836019558==n)f=l;else if(1835295092==
n){k=l;break}}0>k&&(f=-1)}else{for(e=new bF(e);;){l=e.o;m=e;try{var p=dF(m,!0),t=dF(m,!1);var u=p;var z=t}catch(B){z=u=-1}m=u;n=z;if(0>m)break;if(408125543!=m)if(524531317==m)k=0>n?-1:e.o+n;else{if(160==m||163==m||175==m){f=l;break}e.skip(n)}}0>f&&(k=-1)}if(0>f)break;this.F=f;this.C=k-f}if(this.F>d)break;this.F?(d=fF(this,this.F),d.w&&!this.w.yc()&&gF(this,d),kF(this,a,d),mF(this,d),this.F=0):this.C&&(d=fF(this,0>this.C?Infinity:this.C),this.C-=d.o.o,mF(this,d))}}this.o&&this.o.info.A&&(mF(this,this.o),
this.o=null)};
g.h.so=function(a){this.w.yc()||0!=a.info.w||!g.dv(a.info.o.info)&&2!=a.info.o.info.containerType||hv(a);if(1==a.info.type)try{gF(this,a),jF(this,a)}catch(c){g.M(c);var b=Tu(a.info);b.hms="1";this.R("error",b||{})}a.info.o.Ik(a);this.B&&XE(this.B,a)};
g.h.kx=function(){return this.u.length};
g.h.Sy=function(){this.u=[];lF(this)};
g.h.vo=function(){this.u.shift()};
g.h.Ty=function(){var a=this.u.reduce(function(b,c){return b+c.o.o},0);
this.o&&(a+=this.o.o.o);return a};
g.h.Cn=function(){return(0,g.Fc)(this.u,function(a){return a.info})};
g.h.Ry=function(a){for(var b=this.u.length-1;0<=b;b--)this.u[b].info.startTime>a&&this.u.pop()};
g.h.uo=function(){this.G&&!this.H.Na&&this.R("placeholderrollback",this.G);this.A=this.G=null;this.V=this.ca;0<=this.P||(this.P=this.J-this.O);lF(this)};
g.h.Vy=function(a){this.U=a};
g.h.zs=function(){return this.J||0};
g.h.Uy=function(){return this.B?UE(this.B):Infinity};
g.h.As=function(a){this.P=a};
g.h.getDuration=function(){return this.w.index.Qh()};
g.h.sr=function(){return!!this.w.F};
g.h.Wx=function(){return!!this.B&&VE(this.B)};
g.h.PB=function(a){this.u.forEach(function(b){var c=ev(b)+a;fv(b,c)});
this.Z=a};nF.prototype.Zt=function(a){this.H=a;qF(this)};
nF.prototype.Ym=function(){this.C=NaN;this.S=0;this.G=null;this.U=0};
nF.prototype.reset=function(){this.Z=pF(this);this.Ym();this.B=[];this.F=[];this.u=this.H=NaN;this.A=this.J=0;this.O=!1};g.r(uF,nF);uF.prototype.reset=function(){nF.prototype.reset.call(this);this.w=8;this.o=new tF(0,0,null)};
uF.prototype.process=function(a){var b=!1;if(this.B.length){if(wF(this)&&this.B.length+a.byteLength<this.w)return sF(this,a,0),0;a=rF(this,a);b=!0}for(var c=0,d=0;c<a.byteLength;){var e=a.byteLength-c,f=NaN;if(wF(this)){if(e<this.w)return sF(this,a,c),0;switch(this.o.type){case 0:f=vF(this,a,c);b||0!=c||(d=this.o.type);break;case 1836019574:case 1836019558:f=vF(this,a,c);break;case 1953653094:e=a;f=c;if(!this.J){var k=this.policy.Gm?this.A:1;this.J=St(xF(this,e,f),k)}f=vF(this,e,f);break;case 1836476516:this.A=
Tt(xF(this,a,c));qF(this);f=this.o.size-8;break;case 1952867444:e=void 0;isNaN(this.u)||(f=xF(this,a,c),this.policy.G?e=this.V(Zt(f),this.A):e=this.u,Yt(f,e),isNaN(this.C)&&(this.C=e),this.u+=this.J,this.S+=this.J);f=this.o.size-8;break;case 1936286840:e=xF(this,a,c),f=$t(e).em[0],this.A=au(e),qF(this),this.J=f,f=this.o.size-8}}else f=Math.min(this.w,e);this.o.offset+=f;this.w-=f;c+=f;if(0==this.w){for(;0!=this.o.type&&this.o.offset==this.o.size&&this.o.parent;)1835295092==this.o.type&&(this.O=!0),
this.o.parent.offset+=this.o.size,this.o=this.o.parent;switch(this.o.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.w=8;break;default:this.w=this.o.size-8}}}0<a.byteLength&&this.F.push(a);return d};
uF.prototype.Rx=function(){return 0==this.o.type&&!this.B.length};g.r(zF,nF);g.h=zF.prototype;g.h.Zt=function(a){nF.prototype.Zt.call(this,a);this.policy.G&&(this.u=this.V(this.u,this.A))};
g.h.reset=function(){nF.prototype.reset.call(this);this.w=32;this.o=new yF(0,0,null)};
g.h.Ym=function(){nF.prototype.Ym.call(this);this.o.parent=new yF(0,0,null);this.P=NaN};
g.h.process=function(a){if(this.B.length){if(this.B.length+a.byteLength<this.w)return sF(this,a,0),0;a=rF(this,a)}for(var b=0;b<a.byteLength;){if(a.byteLength-b<this.w)return sF(this,a,b),0;var c=new DataView(a.buffer,b);c=new iu(c,b);var d=0;switch(this.o.type){case 408125543:case 524531317:case 357149030:case 160:0==this.o.offset&&(ou(c,!1),ou(c,!0)),d=nu(c)-b,this.o.offset+=d;case 0:var e=nu(c),f=ou(c,!1),k=ou(c,!0);this.o=new yF(f,nu(c)-e+k,this.o);break;case 231:ou(c,!1);d=wu(c);isNaN(this.C)&&
(this.policy.G&&(d=this.V(d,this.A)),this.C=d);d=nu(c)-b;this.o.offset+=d;break;case 2807729:ou(c,!1);this.A=1E9/wu(c);d=nu(c)-b;qF(this);this.o.offset+=d;break;case 163:case 161:e=nu(c);ou(c,!1);d=ou(c,!0);e=nu(c)-e;Au(c);this.u=(Au(c)<<8|Au(c))+this.C;isNaN(this.P)||161!=this.o.type||(this.u+=this.P);d+=e;this.o.offset+=d;this.O=!0;break;case 155:d=nu(c);ou(c,!1);this.P=wu(c);this.u+=this.P;d=nu(c)-d;this.o.offset+=d;break;default:d=nu(c),ou(c,!1),xu(c),d=nu(c)-d,this.o.offset+=d}b+=d;for(this.S=
this.u-this.C;0!=this.o.type&&this.o.offset==this.o.size&&this.o.parent;)this.o.parent.offset+=this.o.size,this.o=this.o.parent;switch(this.o.type){case 0:case 408125543:case 524531317:this.w=32;break;default:this.w=this.o.size-this.o.offset}}0<a.byteLength&&this.F.push(a);return 0};
g.h.Rx=function(){return 524531317==this.o.type&&!this.B.length};g.r(AF,g.P);g.h=AF.prototype;g.h.Ct=function(){return this.A.length?this.A[0]:null};
g.h.pl=function(){return this.A.length?this.A[this.A.length-1]:null};
g.h.Ex=function(){return!!this.A.length};
g.h.Kt=function(a,b){var c=this,d=uia(this,a,b);(0,g.y)(d,function(e){c.A.push(e);c.H&&XE(c.H,e)})};
g.h.so=function(a){try{if(1==a.info.type){var b=$u(a);!this.w.Gf&&Bv(a.info.o.info)&&wv(a.info.o.info.wa())&&vu(b);BF(a);a.info.o.info.isVideo()&&sy(a.info.o,b);CF(a);EF(this,a)&&(hv(a),jv(a));if(this.B.info.audio&&g.dv(a.info.o.info)){var c=iv(a);c&&(g.dv(a.info.o.info)&&eu($u(a)),this.ca=!0,this.w.Gc&&this.R("gaplessinfo",c))}}a.info.o.Ik(a);this.w.Ra?GF(this,a):HF(this,a)}catch(d){g.M(d),b=Tu(a.info),b.hms="1",DF(this,b)}this.H&&XE(this.H,a)};
g.h.kx=function(){return this.A.length};
g.h.Sy=function(){this.A=[]};
g.h.vo=function(){this.A.shift()};
g.h.Ty=function(){var a=this.A.reduce(function(b,c){return b+c.o.o},0);
this.u&&(a+=this.u.o.o);return a};
g.h.Cn=function(){return(0,g.Fc)(this.A,function(a){return a.info})};
g.h.Ry=function(a){for(var b=this.A.length-1;0<=b;b--)this.A[b].info.startTime>a&&this.A.pop()};
g.h.uo=function(a){this.U=!1;this.P&&!this.w.Na&&this.R("placeholderrollback",this.P);this.P=null;this.o&&(a=isNaN(this.C)?a.info.o[0].range?a.info.o[0].F:isNaN(this.o.C)?pF(this.o):oF(this.o).startTime:this.C,this.o.reset(),this.O=this.Z,this.C=a);this.S=null};
g.h.Vy=function(a){this.J=a};
g.h.zs=function(){return this.o?pF(this.o):this.G||0};
g.h.Uy=function(){return this.H?UE(this.H):Infinity};
g.h.As=function(a){this.C=a};
g.h.getDuration=function(){return this.B.index.Qh()};
g.h.sr=function(){return!!this.B.F};
g.h.Wx=function(){return!!this.H&&VE(this.H)};
g.h.PB=function(){};MF.prototype.getDuration=function(){return this.o.index.Qh()};nG.prototype.setPlaybackRate=function(a){this.w=Math.max(1,a)};
nG.prototype.getPlaybackRate=function(){return this.w};sG.prototype.then=function(a,b){return this.w.then(a,b)};
sG.prototype.resolve=function(a){this.u(a)};
sG.prototype.reject=function(a){this.o(a)};g.r(tG,g.P);tG.prototype.seek=function(a){a!=this.A&&(this.F=0);this.A=a;var b=this.o.u,c=this.u.u,d=this.u.F,e=vG(this.o,a,this.o.F);d=vG(this.u,this.B.ra?a:e,d);a=Math.max(a,e,d);this.w=!0;this.C.u&&this.B.ga&&(uG(this.o,b),uG(this.u,c));return a};
var wia=2/24;zG.prototype.wa=function(){this.cd("gv")};
zG.prototype.cd=function(a,b){this.B[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};IG.prototype.send=function(){g.xq(this.u,{format:"RAW",responseType:"arraybuffer",timeout:1E4,ud:this.w,Md:this.w,context:this});this.o=(0,g.N)()};
IG.prototype.w=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.N)()-this.o)/1E3).toFixed(3),shost:g.qd(this.u),trigger:this.C};204==a.status||a.response?this.A&&this.A(Sv(b)):this.B(new Rv("pathprobe.net",!1,b))};g.r(JG,g.P);g.r(TG,g.A);TG.prototype.reset=function(){this.started=!1;this.B.stop();this.o.o=[];this.w=[];this.u()};
TG.prototype.u=function(){this.C=!0;if(!this.F){for(var a=3;this.C&&a;)this.C=!1,this.F=!0,Ria(this),this.F=!1,a--;g.xD(this.G())&&(a=RG(this.o,this.A),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.A)/this.P(),this.B.start(a)))}};
TG.prototype.Y=function(){this.w=[];this.o.o=[];g.A.prototype.Y.call(this)};g.r(aH,g.P);g.h=aH.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.R("videoformatchange",Gia(this.F));if(this.B.u){if(this.o.IC){b=uy(this.o);for(var d in this.B.o)this.B.o[d].index.A=b}Tia(this)}this.G&&KG(this.G,this.u.o);this.o.H&&Os()&&this.uc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.C)?0:this.C;this.C=this.B.u?d:a;c?(this.o.ne?(this.xb=c,cH(this,c)):cH(this,!1),g.Bn(this.xa)):(a=0==this.C,zH(this,this.u,this.u.o,a),zH(this,this.A,this.A.o,a),Nf(this.seek(this.C),function(){}),this.ga.wa());
(this.B.Ed||this.B.ng)&&this.uc("minMaxSq","minSq."+this.B.Ed+";maxSq"+this.B.ng)};
g.h.resume=function(){if(this.ea||this.da)this.Ba=this.da=this.ea=!1,this.sf()};
g.h.setAudioTrack=function(a){if(!this.la()){var b=this.F;b.A=b.C.o[a.id];b.J=b.A;this.R("audioformatchange",new jE(b.J,b.B,"m"));this.R("reattachrequired")}};
g.h.setPlaybackRate=function(a){a!=this.O.getPlaybackRate()&&this.O.setPlaybackRate(a)};
g.h.FM=function(a){var b=this.o.Ef;if(!(!(b&&2<=a.state)||5<=a.state||a.F<b||jy(a.info.u,this.o,this.na))){b=this.na;var c=ft(iy(a.info.u));b=hy(b,c);b.o||b.u||b.started||qH(this,a,!0)}if(!this.la()&&3<=a.state){b=this.ga;var d=a.info.o[0].o;c=!b.A&&d.info.video;d=!b.o&&d.info.audio;5==a.state?c?b.cd("vrr"):d&&b.cd("arr"):6==a.state?c?(b.A=a.w?g.lv(a.w):"",Rp(4)):d&&(b.o=a.w?g.lv(a.w):""):4==a.state&&c&&Rp(4);5<=a.state&&(this.o.xa&&(b=lE(a.timing),c=a.timing,this.uc("rqs",Sv({rn:a.O.toString(),rt:b.rt,
pt:b.pt,stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes,d:c.G?c.G.join(""):""}))),a.ea&&this.uc("sbwe3","1",!0));if(5==a.state)a.start(Math.max(0,a.info.o[0].F-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&&QE(b,!0),a.dispose();else{if(this.o.Wa&&a.H&&4<=a.state&&5!=a.state)if(b=a.o?a.o.Wc("X-Response-Itag"):null){b=Iia(this.F,b);c=a.info.range.length-b.xn();b.B=!0;a.info.o[0].o.B=!1;d=b.Ui(c)[0];a.info=d;if(a.u){c=a.u;d=d.o;
c.u=d;var e=d[0].range,f=Js(c.o[0].o);Js(g.Xa(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 Cs([new Uint8Array(f.buffer,l.start-e.start,l.length)])}}a.H=!1;c=this.u;c.o!=b&&(c.o=b);c=this.u;c.u&&(c.u.o=b);this.R("constraint",b.info.wa().quality);(c=a.o?a.o.Wc("X-Segment-Lmt"):null)&&b instanceof Ky&&(isNaN(b.lastModified)||b.lastModified==c||fG(this.u,a))}else a.H=!1;if(6==a.state)pH(this,a);else if(!this.o.H||!SE(a)||5<=a.state)7==a.state&&(b=a.info.o[0].o,
OE(a)?(c=(b.info.video&&1<b.u.u||410==a.C||500==a.C||503==a.C)&&!GG(this.F),d=GE(a),e=b.info.video?this.u:this.A,c&&(d.stun="1"),gH(this,!1,a.B,d),this.la()||(c&&FG(this.F,b),this.o.Ff&&1==a.info.o.length&&0<a.info.o[0].w&&b!=e.o&&this.da?this.R("reattachrequired"):(fG(e,a),this.sf()))):(gH(this,!1,a.B,GE(a)),a.info.gf()?(b.C=a.B,this.sf()):gH(this,!0,"net.retryexhausted",{err:a.B,rn:a.O.toString()})));else if(!pH(this,a)&&this.o.yd)return;this.sf();a:if(this.o.fb&&5<=a.state&&OE(a)&&jy(a.info.u,
this.o,this.na)){b=this.na;c=ft(a.info.u.o);b=hy(b,c);c=b.started+b.w;if(this.o.Df)c+=b.o*this.o.Df;else if(b.o)break a;b.A+this.o.fb*Math.pow(1.6,c)>(0,g.N)()||qH(this,a,!1)}}}};
g.h.sf=function(){hH(this);if(this.w&&fw(this.w)&&!this.w.de()){var a=PF(this.u);a=this.o.cA&&a&&a.C;this.B.isLive&&!a?isNaN(this.U)?(this.U=this.C+3600,gw(this.w,this.U)):this.U<=this.C+1800&&(this.U=Math.max(this.U+1800,this.C+3600),gw(this.w,this.U)):this.w.isView()||(a=Math.max(this.A.getDuration(),this.u.getDuration()),(!isFinite(this.U)||this.U!=a)&&0<a&&(gw(this.w,a),this.U=a))}if(!this.la())if(bz(this.B)&&3==this.B.C)gH(this,!0,"manifest.net.retryexhausted",{rc:this.B.O.toString()});else if(!this.B.w||
!kG(this.u)&&!kG(this.A)||(this.u.B||this.A.B)&&this.o.U?a=!1:(eH(this),this.R("seekplayerrequired",Infinity),a=!0),!a&&(hH(this),RF(this.u),!this.la()&&(RF(this.A),!this.la()))){this.B.u&&(lG(this.u),lG(this.A),yG(this.P),(a=TF(this.u))&&a.u&&(a=a.u.B&&!this.o.Mh,this.uc(a==this.o.u.le?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.o.u.le?"1":"0")+";dfs."+(this.o.Mh?"1":"0"),!0)));if(this.w)uH(this);else if(this.o.V){if(a=TF(this.u)){var b=this.u;b.w.vo();UF(b,a)}if(b=TF(this.A)){var c=this.A;
c.w.vo();UF(c,b)}ZF(this.u)&&ZF(this.A)?(this.R("localmediafetchcomplete",this.o.A),this.dispose()):(a||b)&&g.Bn(this.ca)}bH(this);zH(this,this.u,this.u.o,!1);zH(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";gH(this,!0,c,{metadata:"1",video:this.u.o.C||"",audio:this.A.o.C||""})}else mH(this,this.u,this.A),mH(this,this.A,this.u),this.o.Gu&&this.sa&&!this.ea&&lx(this.V)&&(a=this.sa,b=(0,g.x)(this.R,
this,"error"),c=this.o.Pu?(0,g.x)(this.uc,this,"pathprobe"):null,(new IG(a,"cms",c,b)).send(),this.sa=""),this.o.mn&&this.B.w&&g.Bn(this.xa),this.G&&(a=this.G,a.B?(b=a.G+a.o.Ag,a.A||(b=Math.min(b,a.C+a.o.Wb)),a=Math.max(0,1E3*b-(0,g.H)())):a=NaN,isNaN(a)||g.Bn(this.Eb,a)),g.Bn(this.Ra)}};
g.h.tH=function(a){this.o.ya&&this.w&&this.uc("sbu",a.Ya({a:""+ +(a==this.w.o)}));this.sf()};
g.h.jK=function(a){if(this.w){a=PF(a==this.w.o?this.A:this.u);var b=void 0;a&&(b=Tu(a));gH(this,!0,"fmt.unplayable",b)}};
g.h.yL=function(a){gH(this,!0,"fmt.unparseable",a)};
g.h.QJ=function(a){this.R("needkeyinfo",a)};
g.h.zL=function(a){this.A.o.F=a;this.w&&rH(this.w.o,a)};
g.h.DL=function(a){gH(this,!1,"qoe.avsync",a)};
g.h.AL=function(a,b){this.B.u&&yH(this,b,a==this.u)};
g.h.BL=function(a,b){this.B.u&&fz(this.B,b.Ma,a==this.u)};
g.h.CL=function(a,b){this.B.u&&yH(this,b,a==this.u)};
g.h.wA=function(a,b){var c=this.u.o.index.jb()<=b,d=this.B.u&&this.o.nb;this.H={Qc:a,Ma:b};this.o.nb&&this.ra&&this.J&&(this.ra=!1,"continue"!=a.event&&"stop"!=a.event||xH(this,this.J));this.J&&this.J.Ma==b&&(this.J=null);if(c||d)this.o.Xb&&(a.startSecs+=isNaN(this.S)?0:this.S),c=this.B,c.P.push(a),c.R("cuepointsadded")};
g.h.seek=function(a){if(this.la())return Gf();if(this.u.G||this.A.G)return this.o.Ou?Ff():Gf("seeking to head");hH(this);this.Fa=(0,g.N)();bH(this,a);this.w&&this.w.o&&this.w.u&&(this.w.o.isLocked()||this.w.u.isLocked())&&this.R("reattachrequired");this.C=this.P.seek(a);this.J=null;this.ra=!1;g.Bn(this.ca);return Ff(this.C)};
g.h.getCurrentTime=function(){return this.C};
g.h.Y=function(){fH(this);dG(this.A);dG(this.u);g.P.prototype.Y.call(this)};
g.h.Ya=function(){var a=PF(this.A),b=PF(this.u);a={lct:this.C.toFixed(3),lsk:this.P.w,lmf:HG(this.F),lbw:ix(this.V).toFixed(3),lhd:gx(this.V).toFixed(3),lst:(1E9*(this.V.w.o()||0)).toFixed(3),laa:a?Uu(a):"",lva:b?Uu(b):"",lar:this.A.u?Uu(this.A.u):"",lvr:this.u.u?Uu(this.u.u):""};this.w&&!iw(this.w)&&this.w.o&&this.w.u&&(a.lab=Vv(this.w.o.Ad()),a.lvb=Vv(this.w.u.Ad()));return a};
g.h.uc=function(a,b,c){this.R("ctmp",a,b,void 0===c?!1:c)};
g.h.Lv=function(a,b){var c=a/b;isNaN(this.S)&&(this.S=c-Math.min(c,this.o.gd),this.R("timestamp",this.S));return(c-this.S)*b};
var nH=2/24;g.r(BH,g.P);g.r(CH,BH);CH.prototype.C=function(a,b){if(a&&b){var c=1*Ed(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.Ob(this.o)||(this.o={},this.A.stop(),this.u.stop())),this.o[b]=a,g.Bn(this.u))}};
CH.prototype.B=function(){for(var a in this.o)this.R("rotated_need_key_info_ready",new $E(eja(this.o[a],this.w,a),"fairplay",!0));this.o={}};var D2={},Zqa=(D2.DRM_TRACK_TYPE_AUDIO="AUDIO",D2.DRM_TRACK_TYPE_SD="SD",D2.DRM_TRACK_TYPE_HD="HD",D2.DRM_TRACK_TYPE_UHD1="UHD1",D2);g.r(GH,g.A);GH.prototype.B=function(a){this.la()||(0!=a.status&&a.response?(ZA("drm_net_r"),a=new Uint8Array(a.response),(a=FH(a))?this.w(a):this.o(this,"drm.net","t.p")):this.A(a))};
GH.prototype.A=function(a){this.la()||this.o(this,a.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+a.status)};
GH.prototype.F=function(a){if(!this.la()){ZA("drm_net_r");a:{var b="LICENSE_STATUS_OK"==a.status?0:9999,c=null;try{c=g.fg(a.license)}catch(n){}if(0!=b||c){c=new EH(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()){k=k.value;var l=Zqa[k.trackType];if(l){"HD"==l&&a.isHd720&&(l="HD720");b[l]||(d.push(l),b[l]=!0);var m=null;try{m=g.fg(k.keyId)}catch(n){}if(!m){a=null;break a}e[g.dg(m,4)]=l}}c.o=d;c.u=
e}a=c}else a=null}a?this.w(a):this.o(this,"drm.net","t.p;p.i")}};
GH.prototype.C=function(a){this.la()||(a=a.error,this.o(this,"drm.net.badstatus","t.r;p.i;c."+a.code+";s."+a.status))};g.r(HH,g.A);g.h=HH.prototype;g.h.BH=function(a){if(this.C){var b=a.messageType||"license-request";this.C.call(this.w,new Uint8Array(a.message),b)}};
g.h.CH=function(){this.H&&this.H.call(this.w,this.o.keyStatuses)};
g.h.hA=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.la()||el("xboxone")&&this.A&&this.A.call(this.w,"closed")};
g.h.FA=function(a){this.C&&this.C.call(this.w,a.message,"license-request")};
g.h.EA=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.DA=function(){this.G&&this.G.call(this.w)};
g.h.update=function(a){if(this.o)return this.o.update(a).then(null,Io((0,g.x)(this.hA,this,"t.update")));this.u?this.u.update(a):this.F.addKey?this.F.addKey(this.P.o,a,this.J,this.sessionId):this.F.webkitAddKey(this.P.o,a,this.J,this.sessionId);return cr()};
g.h.Y=function(){this.o&&this.o.close();this.F=null;g.A.prototype.Y.call(this)};g.r(JH,g.A);g.h=JH.prototype;
g.h.createSession=function(a){var b=a.initData;if(this.o.keySystemAccess){var c=this.C.createSession();"com.youtube.fairplay"==this.o.o&&(b=LH(b,this.o.Le));b=c.generateRequest(a.contentType,b);c=new HH(null,null,null,c,null);b.then(null,Io((0,g.x)(c.hA,c,"t.generateRequest")));return c}if(jz(this.o)){c=new Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=
this.w.createSession("video/mp4",b,c);return new HH(null,null,null,null,b)}if(mz(this.o))return b=LH(b,this.o.Le),b=this.w.createSession("video/mp4",b),new HH(null,null,null,null,b);this.u.generateKeyRequest?this.u.generateKeyRequest(this.o.o,b):this.u.webkitGenerateKeyRequest(this.o.o,b);return this.A=new HH(this.u,this.o,b,null,null)};
g.h.FH=function(a){var b=MH(this,a);b&&b.FA(a)};
g.h.EH=function(a){var b=MH(this,a);b&&b.EA(a)};
g.h.DH=function(a){var b=MH(this,a);b&&b.DA(a)};
g.h.Y=function(){g.A.prototype.Y.call(this);delete this.u};var E2={},mja=(E2.widevine="DRM_SYSTEM_WIDEVINE",E2.fairplay="DRM_SYSTEM_FAIRPLAY",E2.playready="DRM_SYSTEM_PLAYREADY",E2);g.r(PH,g.A);g.h=PH.prototype;
g.h.yH=function(a,b){if(!this.la()){OH(this,"onkmtyp"+b);if(!g.Q(this.w.experiments,"html5_provisioning_killswitch"))switch(b){case "license-request":case "license-renewal":case "license-release":break;case "individualization-request":lja(this,a);return;default:this.kc.R("ctmp","message_type","t."+b+";l."+a.byteLength)}this.J||(ZA("drm_gk_f"),this.J=!0,this.kc.R("newsession",this));if(kz(this.u)){var c=QH(a);if(!c)return;a=c}"fairplay"==this.u.flavor&&(a=gu(g.dg(a)));c=new GH(a,++this.S,(0,g.x)(this.lL,
this),(0,g.x)(this.kL,this));g.C(this,c);SH(this,c)}};
g.h.wH=function(){this.la()||(OH(this,"onkyadd"),this.F||(this.kc.R("sessionready"),this.F=!0))};
g.h.zH=function(a){var b=this;this.la()||0>=a.size||(a.forEach(function(c,d){var e=kz(b.u)?d:c,f=new Uint8Array(kz(b.u)?c:d);kz(b.u)&&VH(f);var k=g.dg(f,4);VH(f);f=g.dg(f,4);b.o[k]?b.o[k].status=e:b.o[f]?b.o[f].status=e:b.o[k]={type:"",status:e}}),OH(this,"onksch"),this.kc.R("keystatuseschange",this))};
g.h.xH=function(a){this.la()||NH(this,"drm.keyerror",!0,a)};
g.h.lL=function(a){var b=this;this.la()||(OH(this,"onlcsrsp"),0!=a.statusCode?NH(this,"drm.auth",!0,"t.f;c."+a.statusCode,a.errorMessage||void 0):(ZA("drm_kr_s"),a.heartbeatParams&&this.kc.R("newlicense",a.heartbeatParams),a.o&&(this.C=a.o,this.P=lj(this.C,function(c){return c.includes("HDR")})),a.u&&(this.o=Db(a.u,function(c){return{type:c,
status:"unknown"}})),mz(this.u)&&(a.message=g.fg(hu(a.message))),this.A&&(OH(this,"updtks"),this.A.update(a.message).then(function(){ZA("drm_kr_f");
if(!RH(b))if(OH(b,"ksApiUnsup"),lz(b.u)){var c=TH(b.C);480<g.rv[c]&&b.kc.R("hdentitled",b)}else b.kc.R("keystatuseschange",b)})),this.F&&(this.O=(0,g.N)()),"fairplay"==this.u.flavor&&this.kc.R("fairplay_next_need_key_info",this.H,a.w)))};
g.h.kL=function(a,b,c){if(!this.la()){var d=!1;if(3<=a.u.u||this.U&&36E4<(0,g.N)()-this.O)d=!0,b="drm.net.retryexhausted";OH(this,"onlcsrqerr"+b+c);NH(this,b,d,c);(this.U&&this.F?0:!d&&this.S==a.number)&&nja(this,a)}};
g.h.Y=function(){g.A.prototype.Y.call(this)};
g.h.Ya=function(){var a={requestedKeyIds:this.Z,cryptoPeriodIndex:this.cryptoPeriodIndex};this.A&&(a.keyStatuses=this.o);return a};
g.h.Zd=function(){var a=this.C.join();if(RH(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(ZH,g.A);ZH.prototype.C=function(a){if(!this.la()){var b=new Uint8Array(a.initData);a=new $E(b,a.initDataType);var c=DH(b).replace("skd://","https://"),d={},e=this.u.createSession(a);e&&(g.C(this,e),this.A.push(e),IH(e,function(f){WH(f,e.o,c,d,"fairplay")},function(){},function(){},function(){},this))}};
ZH.prototype.Y=function(){this.A=[];this.o&&this.o.parentNode&&this.o.parentNode.removeChild(this.o);g.A.prototype.Y.call(this)};$H.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
$H.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
$H.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
$H.prototype.findIndex=function(a){return g.ab(this.keys,function(b){return g.ub(a,b)})};g.r(aI,BH);aI.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.w,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.o.push({time:b+c,info:a});g.Bn(this.u,c)};g.r(dI,g.P);g.h=dI.prototype;g.h.GH=function(a){cI(this,"onecpt");gI(this,new Uint8Array(a.initData),a.initDataType)};
g.h.PL=function(a){cI(this,"onndky");gI(this,a.initData,a.contentType)};
g.h.xL=function(){var a=this;if(!this.la())if(!g.Q(this.u.experiments,"html5_drm_set_server_cert")||g.Jx(this.u)&&!g.hl())kI(this);else{var b=hja(this.P);b?b.then(Io(function(c){WB(a.T)&&a.R("ctmp","ssc",c)}),Io(function(c){a.R("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Io(function(){return kI(a)})):kI(this)}};
g.h.mK=function(a){if(!this.la()){g.M(a);var b="t.a";a instanceof DOMException&&(b+=";n."+a.name+";m."+a.message);this.R("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.Hv=function(a){this.A.push(a);fI(this)};
g.h.RL=function(a){this.la()||(cI(this,"onnelcswhb"),a&&!this.ga&&(this.ga=a,this.R("heartbeatparams",a)))};
g.h.TL=function(){this.la()||(cI(this,"newlcssn"),this.A.shift(),this.O=!1,fI(this))};
g.h.VM=function(){if(jz(this.o)&&(cI(this,"onsnrdy"),this.ra--,0==this.ra)){var a=this.C;a.u.msSetMediaKeys(a.w)}};
g.h.HH=function(a){this.la()||(cI(this,"onksch"),jI(this,UH(a,this.ca)))};
g.h.dL=function(){this.la()||this.Z||!lz(this.o)||(cI(this,"onhdet"),this.S=HK,this.R("hdproberequired"),this.R("qualitychange"))};
g.h.Y=function(){this.o.keySystemAccess&&this.J.setMediaKeys(null);this.J=null;this.A=[];for(var a=g.q(this.w.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.w;a.keys=[];a.values=[];this.da&&(this.da.dispose(),this.da=null);g.P.prototype.Y.call(this)};
g.h.Ya=function(){for(var a={systemInfo:this.o.Ya(),sessions:[]},b=g.q(this.w.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ya());return a};
g.h.Zd=function(){return 0>=this.w.values.length?"no session":this.w.values[0].Zd()+(this.G?"/KR":"")};g.r(mI,g.P);mI.prototype.setPlaybackRate=function(a){this.G=a};g.r(wI,g.A);wI.prototype.onError=function(a){this.o.fa("html5_log_non_fatal")&&"player.fatalexception"!==a&&(a.match($qa)?this.S++:this.U++)};
wI.prototype.C=function(){if(!(this.H||0>this.w)){yI(this);var a=g.kD(this.o)-this.w,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.u.u;this.u.isError()?b=c&&"auth"==c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.W(this.u,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.W(this.u,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.W(this.u,16)||g.W(this.u,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.W(this.u,1)&&g.W(this.u,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.W(this.u,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":
g.W(this.u,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.W(this.u,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=GB(this.o.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"==d?c="LIVE_STREAM_MODE_LIVE":"dvr"==d&&(c="LIVE_STREAM_MODE_DVR");d=zI(this.o);var e=0>this.A?a:this.A-this.w;a=this.o.eb.ra+36E5<(0,g.N)();b={started:0<=this.A,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.F,rebufferTimeSecs:this.G,seekCount:this.P,playerCanaryType:d,isAd:this.o.videoData.isAd(),liveMode:c,hasDrm:!!g.DB(this.o.videoData),
isGapless:this.o.videoData.rf};this.o.fa("html5_log_non_fatal")&&(b.networkErrorCount=this.S,b.nonNetworkErrorCount=this.U);!a&&this.o.fa("html5_health_to_gel")&&Kq("html5PlayerHealthEvent",b);this.o.fa("html5_health_to_qoe")&&(b.muted=a,this.V(Sv(b)));this.H=!0;this.dispose()}};
wI.prototype.Y=function(){this.H||this.C();g.A.prototype.Y.call(this)};
var $qa=/\bnet\b/;g.r(BI,g.A);g.h=BI.prototype;g.h.xF=function(){var a=g.kD(this.o);DI(this,a)};
g.h.Fj=function(a){if(!this.la()&&(a=0<=a?a:g.kD(this.o),-1<["PL","B","S"].indexOf(this.w)&&(!g.Ob(this.u)||a>=this.C+30)&&(g.AI(this,a,"vps",[this.w]),this.C=a),!g.Ob(this.u)))if(7E3==this.U&&Nq(Error("Sent over 7000 pings")),7E3<=this.U)this.u={};else{FI(this,a);var b=a,c=this.o.B(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.sa,k=e&&!this.za;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else(0<f||k)&&g.AI(this,b,"df",[f]);
this.sa=d;this.za=e;!g.Q(this.o.eb.experiments,"disable_webgl_reporting")&&0<this.F&&(g.AI(this,a,"glf",[this.F]),this.F=0);a={event:"streamingstats"};this.o.videoData.Aa&&(a.fmt=Vu(this.o.videoData.Aa),(b=this.o.videoData.Tb)&&Vu(b)!=a.fmt&&(a.afmt=Vu(b)));a.cpn=this.o.videoData.clientPlaybackNonce;a.ei=this.o.videoData.eventId;a.el=QB(this.o.videoData);a.docid=this.o.videoData.videoId;a.content_v=this.o.videoData.Ng();a.ns=this.o.eb.O;a.fexp=this.o.eb.experiments.experimentIds.toString();a.cl="303635763";
this.o.videoData.adFormat&&(a.adformat=this.o.videoData.adFormat);(b=GB(this.o.videoData))&&(a.live=b);CB(this.o.videoData)&&(a.drm=1);this.o.fa("html5_qoe_reports_ctt")&&kq()&&this.o.videoData.Hi&&(a.ctt=this.o.videoData.Hi,a.cttype=this.o.videoData.Ii,this.o.videoData.mdxEnvironment&&(a.mdx_environment=this.o.videoData.mdxEnvironment));a.seq=this.U++;g.Ub(a,this.o.eb.deviceParams);b=g.Ad("//"+this.o.eb.Hf+"/api/stats/qoe",a);a=c="";for(var l in this.u)null==this.u[l]?Nq(new Lq("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.Ne();c=this.o.videoData.visitorData;d=b&&kq();e=c&&this.o.eb.sendVisitorIdHeader;d||e?(f={},d&&(f.Authorization="Bearer "+b),e&&(f["X-Goog-Visitor-Id"]=c),g.xq(l,{headers:f,withCredentials:!0,method:"POST",postBody:a})):Wq(l,void 0,a);this.u={}}};
g.h.LB=function(){if(this.o.videoData.sd){var a=this.o.videoData.sd;JI(this,"drm-"+a.flavor);JI(this,"eme-"+(a.keySystemAccess?"final":jz(a)?"ms":"com.youtube.fairplay"==a.o?"ytfp":mz(a)?"safarifp":"nonfinal"))}};
g.h.onError=function(a,b){var c=g.kD(this.o);HI(this,c,a,b);FI(this,c);GI(this)};
g.h.Y=function(){g.A.prototype.Y.call(this);window.clearInterval(this.ra)};
var zja=g.Ja,F2={},xja=(F2[5]="N",F2[-1]="N",F2[3]="B",F2[0]="EN",F2[2]="PA",F2[1]="PL",F2);g.r(KI,g.A);KI.prototype.onError=function(a,b){if(this.o)this.o.onError(a,b);if(this.w)this.w.onError(a)};
KI.prototype.Ya=function(){return this.u?this.u.Ya():{}};g.r(OI,g.P);g.r(XI,g.A);XI.prototype.S=function(){var a=this;if(this.A){var b=this.A,c=b.getCurrentTime(),d=8==this.B.o&&c>this.o,e=Wha(this.B);ZI(this,this.ca,e,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.o)&&0<this.o&&Rha(b,this.o);var f=!c||10<Math.abs(c-this.o);ZI(this,this.da,e&&f,d,"qoe.slowseek",function(){return b.seekTo(a.o)},"set_cmt");
f=e&&Xv(b.md(),this.o);e=!this.u.fa("html5_seek_jiggle_cmt_disable_gapless")||!(!this.w||this.w.o.ea);ZI(this,this.V,f&&e,d,"qoe.slowseek",function(){return b.seekTo(a.o+.001)},"jiggle_cmt");
e=function(){return a.F("newmediaelementrequired")};
ZI(this,this.Z,f,d,"qoe.slowseek",e,"new_elem");if(d=b.nl())d=d.totalVideoFrames,f=d==this.H,ZI(this,this.P,c>this.J&&f,!f,"qoe.longrebuffer",e,"decoder_freeze"),d&&(this.H=d);this.J=c;d=zD(this.B);f=g.AD(this.B);c=d&&f&&Xv(b.md(),c+5);ZI(this,this.U,c,d&&!f,"qoe.longrebuffer",e,"new_elem_nnr");ZI(this,this.O,d&&f,d&&!f,"qoe.longrebuffer",function(){},"timeout");
this.G.start()}};
VI.prototype.reset=function(){this.o=this.u=this.w=0;this.C=!1};
VI.prototype.Ya=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(dJ,g.P);g.h=dJ.prototype;g.h.getCurrentTime=function(){return!isNaN(this.u)&&isFinite(this.u)?this.u:this.o&&pJ(this)?this.o.getCurrentTime()+this.A:this.F||0};
g.h.isAtLiveHead=function(a){if(!this.w)return!1;void 0==a&&(a=this.getCurrentTime());return SI(this.w,a)};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.oC?!1:c.oC,e=void 0===c.pC?0:c.pC,f=void 0===c.Kk?!1:c.Kk;c=void 0===c.ou?0:c.ou;var k=a,l=!isFinite(k)||(this.w?SI(this.w,k):k>=this.sc())||!g.KB(this.T);l||this.R("ctmp","seeknotallowed",k+";"+this.sc());if(!l)return this.C&&(this.C=null,nJ(this)),Ff(this.getCurrentTime());if(a==this.u&&this.O)return this.G;this.O&&gJ(this);this.G||(this.G=new sG);a&&!isFinite(a)&&iJ(this,!1);k=a;(mJ(this)&&!(this.o&&0<this.o.fe()&&0<fC(this.o))||sB(this.T)&&
this.zb()==this.sc(!1)?0:isFinite(k)||!sB(this.T))&&(a=oJ(this,a,f));a&&!isFinite(a)&&iJ(this,!1);this.F=a;this.xa=c;this.u=a;this.w&&(f=this.w,c=a,TI(f,c,!1),UI(f,c));this.R("seekto",a,!d);this.G&&(d?e&&this.ea.start(e):(this.O=!0,bJ(this)));return this.G};
g.h.sc=function(a){if(!this.T.ua)return this.T.sc();if(this.T&&this.T.va&&this.T.va.o){if(!a&&this.w)return RI(this.w);a=this.T.sc();this.U.u&&this.o&&(a=Math.max(a,jC(this.o)));return a+this.A}this.o?il()?(a=this.o.oo().getTime(),a=isNaN(a)?0:Math.max(((0,g.H)()-a)/1E3-30,0)):a=fC(this.o)+this.A||this.A:a=this.A;return a};
g.h.zb=function(){return this.T?this.T.zb()+this.A:this.A};
g.h.Y=function(){jJ(this,null);this.J.dispose();g.P.prototype.Y.call(this)};
g.h.xO=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Ab(),{Kk:b})};
g.h.Ya=function(){var a={};this.B&&Object.assign(a,this.B.Ya());this.o&&Object.assign(a,this.o.Ya());return a};
g.h.GO=function(a){this.A=a};
g.h.FO=function(a){this.na=a};
g.h.getStreamTimeOffset=function(){return sB(this.T)?this.na:this.T.ka?this.T.ka.getStreamTimeOffset():0};
g.h.Ab=function(){return this.A};
g.h.sI=function(a){this.H&&(this.H.o=a.audio.index)};g.r(uJ,g.P);g.h=uJ.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:qJ()?3:b?2:c?1:d?5:e?7:f?8:0};
g.h.setMinimized=function(a){this.o!=a&&(this.o=a,this.ii())};
g.h.setInline=function(a){this.C!=a&&(this.C=a,this.ii())};
g.h.setImmersivePreview=function(a){this.A!=a&&(this.A=a,this.ii())};
g.h.isFullscreen=function(){return 0!=this.w};
g.h.isInline=function(){return this.C};
g.h.isBackground=function(){return qJ()};
g.h.ii=function(){this.R("visibilitychange");var a=this.getVisibilityState(this.u,this.isFullscreen(),this.o,this.isInline(),this.B,this.A);a!=this.G&&this.R("visibilitystatechange");this.G=a};
g.h.Y=function(){tJ(this.F);g.P.prototype.Y.call(this)};var dK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},eK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},fK=/^(\d*)_((\d*)_?(\d*))$/;wJ.prototype.isFinished=function(){return this.o};
wJ.prototype.start=function(){this.started=!0};
wJ.prototype.reset=function(){this.o=this.started=!1};yJ.prototype.encrypt=function(a){var b=this,c;return Da(function(d){if(1==d.o)return ua(d,xJ(b.o.o,a,b.u),2);c=d.u;return d["return"](c)})};
yJ.prototype.decrypt=function(a,b){var c=this,d;return Da(function(e){if(1==e.o)return ua(e,xJ(c.o.o,a,b),2);d=e.u;return e["return"](d)})};FJ.prototype.o=function(){var a=new zJ;DJ(a,1,this.u);DJ(a,2,this.C);DJ(a,6,this.B);DJ(a,15,this.F);var b=this.w;BJ(a,128);BJ(a,b);DJ(a,17,this.A);return EJ(a)};GJ.prototype.o=function(){var a=new zJ;CJ(a,2,this.w);CJ(a,5,this.u);CJ(a,6,this.B);CJ(a,7,this.A);BJ(a,80);BJ(a,1);return EJ(a)};HJ.prototype.o=function(){var a=new zJ;DJ(a,1,"Content-Type");DJ(a,2,"application/x-protobuf");return EJ(a)};IJ.prototype.o=function(){var a=new zJ;CJ(a,1,this.u.o());return EJ(a)};NJ.prototype.o=function(){var a=new zJ;CJ(a,1,this.u.o());DJ(a,2,this.w);return EJ(a)};OJ.prototype.o=function(){var a=new zJ;DJ(a,1,this.w);for(var b=g.q(this.u),c=b.next();!c.done;c=b.next())CJ(a,2,c.value.o());CJ(a,3,this.A.o());return EJ(a)};PJ.prototype.o=function(){var a=new zJ;CJ(a,3,this.u.o());return EJ(a)};RJ.prototype.feed=function(a){Es(this.o,a);SJ(this)};TJ.prototype.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,t,u,z;return Da(function(B){switch(B.o){case 1:return B.B=2,ua(B,Tja(a),4);case 4:b=B.u;va(B,3);break;case 2:c=wa(B);if(c instanceof Rv)return B["return"](Promise.reject(c));d=new Rv("onesie.request",!1);return B["return"](Promise.reject(d));case 3:e=fy(a.T.N());f=b.o();k={method:"POST",body:f,headers:{"Content-Type":"text/plain"}};l=g.Ja;m=function(){UJ(a)};
n=function(){UJ(a);a.o.sj()?a.u=new Rv("onesie.net",!1,{msg:a.o.sj()}):400<=a.o.status?a.u=new Rv("onesie.net.badstatus",!1):a.o.In()?a.B||(a.u=new Rv("onesie.response.noplayerresponse",!1)):a.u=new Rv(204===a.o.status?"onesie.net.nocontent":"onesie.net.connect",!1);a.u&&a.A.reject(a.u)};
p=g.Ja;t=Rja(a);if(!t)return u={url:"0"},z=new Rv("onesie.unavailable.hotconfig",!1,u),B["return"](Promise.reject(z));a.o=new yE(t,l,m,n,p,e,k);return B["return"](a.A)}})};g.r($J,g.P);g.h=$J.prototype;g.h.Y=function(){window.clearInterval(this.Gb);tJ(this.Ra);this.J.unsubscribe("visibilitystatechange",this.Ra);bK(this);cK(this);g.Qp(this.ga);CK(this);this.C&&!YJ(this,"html5_playback_timeline_register_disposable")&&(this.C.dispose(),delete this.C);delete this.H;g.He(this.T);this.V=null;this.sa=!1;this.za=0;g.P.prototype.Y.call(this)};
g.h.getVideoData=function(){return this.T};
g.h.N=function(){return this.A};
g.h.wq=function(){if(this.T.Pb())0<g.R(this.A.experiments,"html5_player_min_build_cl")&&303635763<g.R(this.A.experiments,"html5_player_min_build_cl")&&YK(this,"oldplayer"),fka(this);else if(this.T.Eh||this.T.jj){if(!this.ra||!mK(this))if(this.T.Eh)Lha(this.T);else{var a=this.B;a.o&&(a=a.o,JI(a,"protected"),a.o.videoData.sd?a.LB():a.o.videoData.subscribe("dataloaded",a.LB,a));a=this.T;a.Le||a.ka&&Py(a.ka);var b={};a.ka&&(b=tz(mB(a),a.La.w,a.ka));var c=a.La.experiments,d=a.TB;var e=a.useCobaltWidevine?
a.fa("html5_enable_tvos_widevine")&&il()?rB(a):lB(a,"html5_enable_androidtv_cobalt_widevine")&&el("cobalt")&&el("android")?!0:!1:!1;b=new wz(b,c,d,e);g.C(a,b);a.jj=!1;a.Dd=!0;a=(0,g.x)(a.fG,a);b.C=a;b.A=[];nz(b.u)?xz(b):Mga(b)}}else!this.T.Dd&&this.dc&&cka(this)};
g.h.eM=function(a){var b=this;this.la()||a.videoData.la()||(this.H=a,Gja(this.C,this.H),!this.T.ua||0<this.T.Wg&&!sB(this.T)||(this.seekTo(OK(this)),uK(this,"playbackData")),this.T.va.o&&(this.w?Nq(Error("Duplicated Loader")):MK(this)),JK(this),YJ(this,"html5_nonblocking_media_capabilities")&&uja(a).then(function(){vI(b.S,b.H)}))};
g.h.fM=function(a){this.la()||(a=Tv(a),this.J.isBackground()?(gL(this,"vp_none_avail"),this.xa=null,this.Z.reset()):(this.Z.o=!0,g.ZJ(this,a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Sv(a.details))))};
g.h.sendAbandonmentPing=function(){g.W(this.getPlayerState(),128)||(this.R("internalAbandon"),this.Tt(!0),bK(this),g.Qp(this.ga))};
g.h.getPlayerState=function(){return this.u};
g.h.getPlayerType=function(){return this.fb};
g.h.getPreferredQuality=function(){if(this.H){var a=this.S;var b=this.H,c=Lw(b.videoData.Fp,b.videoData.Rv);"auto"!=Qw()||(c=Lw(c,uI(a,b)));a=Mw(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 Da(function(f){if(1==f.o){if(g.W(a.u,128))return f["return"]();if(a.jd)return a.jd=!1,WK(a),f["return"]();var k=a.B;k.w&&xI(k.w);k.o&&II(k.o);sK(a);g.W(a.u,64)&&iK(a,tD(a.u,8));a.ca.isFinished()&&a.o?a.H||!a.xa?(f.o=2,f=void 0):f=ua(f,a.xa,2):f=f["return"]();return f}if(!a.T.va)return b=a.T.ua&&!g.Bw(a.A.w)?"html5.unsupportedlive":CB(a.T)?"fmt.unplayable":"fmt.noneavailable",Nq(Error("selectableFormats")),g.ZJ(a,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1"),f["return"]();if(a.J.u&&a.T.va.o)return pK(a),f["return"]();if(a.T.ua){c=a.getCurrentTime()<a.zb()-15;d=g.KB(a.T)&&g.W(a.u,4);e=!YJ(a,"html5_dompaused_unpause_killswitch")&&g.W(a.u,1024);e||!c&&!d||(d?(a.seekTo(Infinity),uK(a,"unpauseLiveOnly")):(a.seekTo(a.zb()),uK(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&lJ(a.C)&&(a.seekTo(Infinity),uK(a,"peggedToLive"));if(k=g.W(a.u,256)&&a.T.re)k=a.C,k=k.O&&!isFinite(k.u);if(k)return iK(a,vD(a.u,8,4)),f["return"]()}YJ(a,"html5_sync_seeking_state")&&
g.W(a.u,4)&&g.W(a.u,16)&&iK(a,vD(a.u,9,4));if(qK(a))return!YJ(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.o&&a.o.fi()&&(a.Na=(0,g.N)()),a.A.Gm?g.Ko((0,g.x)(a.Dt,a),0):a.Dt(),f["return"]();a.Dt();f.o=0})};
g.h.qO=function(){EK(this);var a=this.T.ka&&Py(this.T.ka),b=this.o&&this.o.isView();a||b?(this.w&&(a=this.w,a.o.ea=!1,a.w&&uH(a)),QK(this)):(iK(this,tD(this.u,16)),qK(this),g.yD(this.u)&&this.playVideo())};
g.h.getUserPlaybackQualityPreference=function(){return this.T.va&&!this.T.va.o?Mw(this.T.Fp):Qw()};
g.h.getAvailableAudioTracks=function(){return this.T.getAvailableAudioTracks()};
g.h.getAudioTrack=function(){return this.T.getAudioTrack()};
g.h.MG=function(){var a=this.B;a.A.eb.Ba||3==a.A.getVisibilityState()||(a.A.eb.Ba=!0);g.LI(a);if(a.w){var b=a.w;b.O&&0>b.w&&3!=b.o.getVisibilityState()&&xI(b)}a.o&&(a=a.o,a.o.fa("html5_qoe_user_intent_match_health")&&a.ga&&0>a.B&&a.o.eb.Ba&&II(a));g.R(this.A.experiments,"html5_background_quality_cap")&&this.w&&KK(this);this.A.Am&&!this.T.backgroundable&&this.o&&!this.J.u&&(this.J.isBackground()&&this.o.no()?(this.Sa("bgmobile","suspend"),g.zK(this,!0)):this.J.isBackground()||qK(this)&&this.Sa("bgmobile",
"resume"))};
g.h.QL=function(a,b){this.F?hI(this.F,a,b):this.xb.push({type:a,info:b})};
g.h.SL=function(a){this.F?iI(this.F,a):this.Eb.push(a)};
g.h.xA=function(){g.Dw&&this.ea&&this.ea.o&&this.F&&(rja(this.F,this.ea.o),this.ea=null)};
g.h.zN=function(a){this.T.AC=Iw("auto",a,!1,"u");KK(this)};
g.h.KG=function(a){wK(this,a.reason,a.video.info,a.audio.info)};
g.h.rL=function(a){vK(this,a.reason,a.audio.info)};
g.h.sL=function(a){this.R("localmediafetchcomplete",a)};
g.h.ci=function(a){var b=this;jka(this,a);if("fmt.unplayable"!=a.errorCode&&"fmt.unparseable"!=a.errorCode||!TK(this,a.errorCode,a.details)){var c=/^pp/.test(this.T.clientPlaybackNonce);if(ika(a)){var d=18350;this.A.fa("ipp_signature_cipher_killswitch")||(d=g.L("STS",void 0)?g.L("STS",void 0):d);a.details.sts=""+d;if(VK(this)){g.W(this.u,4)||g.W(this.u,512)?(this.jd=!0,cK(this)):(a.o&&(a.details.e=a.errorCode,a.errorCode="qoe.restart",a.o=!1),this.B.onError(a.errorCode,Sv(a.details)),WK(this));return}6048E5<
(0,g.N)()-this.A.ra&&YK(this,"signature")}if(ZK(a)&&this.T.va&&this.T.va.u)this.B.onError(a.errorCode,Sv(a.details)),this.Sa("highrepfallback","1",!0),!YJ(this,"html5_hr_logging_killswitch")&&/^hr/.test(this.T.clientPlaybackNonce)&&btoa&&this.Sa("afmts",btoa(this.T.adaptiveFormats),!0),Oha(this.T),aK(this),cK(this),SK(this),this.playVideo();else if(a.o){c=this.w?this.w.F.w:null;if(ZK(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.A.Yb&&"auth"==a.errorCode&&429==a.details.rc){e="TOO_MANY_REQUESTS";
var f="6"}g.ZJ(this,a.errorCode,e,Sv(a.details),f)}else this.B.onError(a.errorCode,Sv(a.details)),c&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.T.clientPlaybackNonce+"&t="+(0,g.N)(),(new IG(a,"manifest",function(k){b.zh=!0;b.Sa("pathprobe",k)},function(k){return b.B.onError(k.errorCode,Sv(k.details))})).send())}};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.W(this.u,64)||g.W(this.u,2))&&!a)if(g.W(this.u,8))iK(this,vD(this.u,4,8));else return;g.W(this.u,128)||(a?iK(this,tD(this.u,256)):iK(this,vD(this.u,4,8)));this.o&&this.o.pause();g.KB(this.T)&&this.w&&FK(this,!1)};
g.h.stopVideo=function(){this.pauseVideo();this.w&&(FK(this,!1),eH(this.w))};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.W(this.u,2)&&qK(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.Ab())};
g.h.getDuration=function(){return this.T.lengthSeconds?this.T.lengthSeconds+this.Ab():OK(this)?OK(this):0};
g.h.YE=function(){var a=new Nfa;if(this.w){var b=this.A.schedule;a.w=b.H;a.B=b.P;a.bandwidthEstimate=jx(b);a.o="d."+gx(b).toFixed(2)+";st."+(1E9*(b.w.o()||0)).toFixed(2)+";bw."+b.u.o().toFixed(0)+";abw."+b.J.o().toFixed(0)+";v50."+ax(b.A,.5).toFixed(2)+";v92."+ax(b.A,.92).toFixed(2)+";v96."+ax(b.A,.96).toFixed(2)+";v98."+ax(b.A,.98).toFixed(2);b=this.w;if(b.w&&!iw(b.w)&&(a.u=cG(b.u,b.C),a.A=cG(b.A,b.C),b.o.xa)){var c=bG(b.u),d=bG(b.A),e=Vv(b.w.u.Ad(),"_"),f=Vv(b.w.o.Ad(),"_");a.o=(a.o||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=qG(b.O)}else this.o&&(a.u=hC(this.o));a.C=this.ex();return a};
g.h.Ya=function(a){var b={};if(void 0===a?0:a){g.Ta(b,this.B.Ya());this.o&&(g.Ta(b,this.o.Ya()),g.Ta(b,this.fr()));this.w&&g.Ta(b,this.w.Ya());this.F&&(b.drm=this.F.Ya());b.state=this.u.o.toString(16);g.W(this.u,128)&&(b.debug_error=this.u.u);tK(this)&&(b.prerolls=this.U.join(","));this.T.ag&&(b.ismb=this.T.ag);"UNKNOWN"!=this.T.latencyClass&&(b.latency_class=this.T.latencyClass);this.T.isLowLatencyLiveStream&&(b.lowlatency="1");this.T.ua&&(this.T.ka&&dz(this.T.ka)&&(b.segduration=dz(this.T.ka)),
a=this.C,b.lat=a.H?pC(a.H.A):0,b.liveutcstart=this.T.liveUtcStartSeconds);b.relative_loudness=this.T.Ql.toFixed(3);if(a=g.xC(this))b.optimal_format=a.wa().qualityLabel;b.user_qual=Qw()}b.debug_videoId=this.T.videoId;return b};
g.h.addCueRange=function(a){var b=this.P;a=[a];b.u();SG(b.o,a);b.A=NaN;b.u()};
g.h.removeCueRange=function(a){UG(this.P,[a])};
g.h.BN=function(){hK(this)};
g.h.togglePictureInPicture=function(){this.o&&this.o.togglePictureInPicture()};
g.h.LG=function(a){this.yd.stop();var b=a.target.Tc();if(this.o&&this.o.Tc()&&this.o.Tc()==b){mL(this,a.type);switch(a.type){case "error":var c=lC(this.o)||"";if("capability.changed"==c){pK(this);return}if(0<this.o.Se()&&TK(this,c,{msg:this.o.ll()}))return;if(this.J.isBackground()&&4==this.o.Se()){g.zK(this);gL(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,hK(this));break;case "ratechange":this.w&&
this.w.setPlaybackRate(this.o.getPlaybackRate());c=this.P;c.started=!0;c.u();var d=this.B;c=this.getPlaybackRate();if(d.o){d=d.o;var e=g.kD(d.o);c&&c!=d.ya&&(g.AI(d,e,"rate",[c]),d.ya=c);d.Fj(e)}break;case "loadedmetadata":nL(this),this.R("onLoadedMetadata");case "loadstart":window.clearInterval(this.Gb);this.uq()||(this.Gb=Lo((0,g.x)(this.uq,this),100));break;case "progress":case "suspend":$K(this);this.R("onLoadProgress",this,this.o?g.KB(this.T)?1:LB(this.T)?this.isAtLiveHead()||lJ(this.C)?1:Jja(this.C):
kC(this.o):0);break;case "playing":this.O.tick("plev");cL(this);aB("plev");this.hd&&(this.hd=!1,this.isAtLiveHead()||(this.seekTo(Infinity),uK(this,"onPlaying")));break;case "timeupdate":cL(this);c=this.o&&!this.o.getCurrentTime();d=this.o&&0==this.o.fe();if(c&&(!this.Fa||d))return;this.Fa=this.Fa||!!this.o.getCurrentTime();this.uq();$K(this);if(!this.o||this.o.Tc()!=b)return;this.R("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.o.Wi().length&&0==this.o.md().length&&
0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.w)return;break;case "resize":nL(this);this.T.Aa&&"auto"==this.T.Aa.wa().quality&&this.R("internalvideoformatchange",this.T,!1);break;case "pause":if(this.ne&&g.W(this.u,8)&&!g.W(this.u,1024)&&0==this.getCurrentTime()&&g.Zx){gL(this,"safari_autoplay_disabled");return}}if(this.o&&this.o.Tc()==b){this.R("videoelementevent",a);b=this.u;if(!g.W(b,128)){c=this.Ba;e=this.o;var f=this.A.experiments;d=b.o;e=e?e:a.target;var k=e.getCurrentTime();if(!g.W(b,
64)||"ended"!=a.type&&"pause"!=a.type){var l=e.qf()||1<k&&1.1>Math.abs(k-e.getDuration());k="ended"==a.type||"waiting"==a.type||"timeupdate"==a.type&&!g.W(b,4)&&!oD(c,k);if("pause"==a.type&&e.qf()||l&&k)0<e.zn()&&e.Tc()&&(d=14);else switch(a.type){case "error":lC(e)&&(d|=128);break;case "pause":g.W(b,256)?(d^=256)||(d=64):g.W(b,32)||g.W(b,2)||g.W(b,4)||(d=4,g.W(b,1)&&g.W(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.Q(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);oD(c,e.getCurrentTime())&&
(d&=-2);g.W(b,1)&&rD(c,e)&&(d|=1);break;case "seeking":d|=16;g.W(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.W(b,2)||(d|=1);rD(c,e);break;case "timeupdate":f=g.W(b,16),l=g.W(b,4),(g.W(b,8)||f)&&!l&&oD(c,e.getCurrentTime())&&(d=8),rD(c,e)&&(d|=1)}}c=d;d=null;if(c&128)if(l=a.target,d=lC(l)){e="GENERIC_WITHOUT_LINK";f="mediaElem.1";if(l=l.ll())f+=";msg."+l,/AUDIO_RENDERER/.test(l)&&(e="HTML5_AUDIO_RENDERER_ERROR");.001>Math.random()&&(f+=";gpu."+(0,g.nK)());d={errorCode:d,errorMessage:g.yK[e]||
"",Kq:e,vB:f}}else d=null;b=sD(b,c,d)}!g.W(this.u,1)&&g.W(b,1)&&lL(this,"evt_"+a.type);iK(this,b)}}};
g.h.pN=function(){this.Sa("misstimeupdate","");bL(this)&&!g.W(this.u,2)&&WJ(this,!0,!1)};
g.h.cK=function(a){a="available"==a.u.availability;a!=this.pc&&(this.pc=a,this.R("airplayavailabilitychange"))};
g.h.dK=function(){var a=this,b=(0,g.N)();if(isNaN(this.Na)||!(2E3>b-this.Na)){var c=this.o.fi();this.Na=b;c!=this.J.u&&(Kja(this.J,c),pK(this).then(function(){return qK(a)}));
this.R("airplayactivechange")}};
g.h.uq=function(){var a=this.o;a&&this.Fa&&!this.T.re&&!QA("vfp","")&&2<=a.fe()&&!a.qf()&&0<Zv(a.md())&&this.O.tick("vfp");return(a=this.o)&&!this.T.re&&0<a.getDuration()&&(!QA("pbp","")&&a.gh()&&2<=a.fe()&&0<Zv(a.md())&&this.O.tick("pbp"),a=a.getCurrentTime(),oD(this.Ba,a))?(eL(this),!0):!1};
g.h.wF=function(){if(this.o&&!g.W(this.u,128)){this.T.dg&&g.R(this.A.experiments,"html5_log_rebuffer_events")&&mL(this,"pfx");var a=this.getCurrentTime(),b=hC(this.o),c=g.W(this.u,8),d=oD(this.Ba,a),e=pD(this.Ba,a,(0,g.N)(),b);c&&d?iK(this,uD(this.u,1)):c&&e?(c=this.getDuration(),d=YJ(this,"html5_reseek_in_pfx")||YJ(this,"html5_reseek_in_pfx_manifestless_vp9")&&sB(this.T)&&this.T.Aa&&Av(this.T.Aa),!this.T.ua&&c&&1.1>Math.abs(c-a)?this.o.lo()?this.seekTo(0):WJ(this):d&&1.1<b&&8==this.u.o?(c=Vv(this.o.md(),
"_",3),this.Sa("reseek","pfx;ct."+a+";bh."+b+";ranges."+c),this.seekTo(a+.1)):(YJ(this,"html5_reseek_in_pfx_cfl")&&1.1<b&&8==this.u.o&&this.Sa("pfx","cfl.1"),g.AD(this.u)||lL(this,"progress_fix"),iK(this,tD(this.u,1)))):g.W(this.u,4)&&g.AD(this.u)&&5<hC(this.o)&&iK(this,uD(this.u,1));$K(this)}};
g.h.NE=function(){return this.w?qG(this.w.O):jx(this.A.schedule)};
g.h.VE=function(){return this.A.schedule.H};
g.h.ex=function(){return this.isAtLiveHead()&&g.xD(this.u)?this.ix():NaN};
g.h.ix=function(){if(!this.T.ua||!this.T.ka||!this.w)return NaN;var a=sB(this.T)?this.w.ya.o()||0:this.T.ka.G;return(0,g.H)()/1E3-aL(this)-a};
g.h.mF=function(){this.T.ua||this.R("connectionissue")};
g.h.Dt=function(){var a=this;if(this.Ha=this.o.playVideo()){var b=this.Ha;b.then(void 0,function(c){if(!(g.W(a.u,4)||g.W(a.u,256)||a.Ha!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{iK(a,tD(a.u,2048))}catch(e){}gL(a,d);a.ne=!0}})}};
g.h.hL=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.oe)a="drm.sessionlimitexhausted",b=!1;else if(YJ(this,"html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"==a&&2>this.Df&&(this.Df++,aK(this),1<this.T.Dj.length&&(this.T.sd=this.T.Dj[1]),TK(this,a,{detail:c})))return;if(b)this.T.Aa&&vv(this.T.Aa.wa())?(this.A.w.w=!1,this.B.onError("qoe.restart",Sv({e:a,detail:c,r:"hdr"})),pK(this).then(function(){return qK(e)})):
g.ZJ(this,a,d,c);
else this.B.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.Sa("retrydrm","s"),this.oe++,kL(this))};
g.h.jL=function(){var a=this,b=g.R(this.A.experiments,"html5_license_constraint_delay"),c=ql();b&&c?(b=new g.I(function(){JK(a);hK(a)},b),g.C(this,b),b.start()):(JK(this),hK(this))};
g.h.iL=function(){var a=this;g.Dw&&(this.ea=zga(this.T.ka))&&(this.ea.o?g.wf(function(){a.xA()}):cja(this.w,this.ea))};
g.h.IG=function(a){this.R("heartbeatparams",a)};
g.h.JG=function(a){this.Sa("keystatuses",oja(a));var b="auto";this.T.Aa&&(b=this.T.Aa.wa().quality);!XH(a,b,!1)||YH(a,"AUDIO")&&YH(a,"SD")?this.T.Aa&&vv(this.T.Aa.wa())&&(!a.P||XH(a,b,!0))&&lka(this):this.gd?this.R("drmoutputrestricted"):(this.gd=!0,this.Sa("retrydrm","o"),IK(this),kL(this))};
g.h.pL=function(){if(!this.T.re&&this.o&&!this.J.isBackground()){var a="0";0<this.o.fe()&&5<=hC(this.o)&&this.T.va&&this.T.va.o&&(iK(this,tD(this.u,1)),lL(this,"load_soft_timeout"),this.R("playbackstalledatstart"),a="1");fL(this);if(YJ(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},tK(this)&&(a.prerolls=this.U.join(",")),this.w&&g.Ta(a,this.w.Ya()),this.o&&g.Ta(a,this.o.Ya());else{var b=this.T.va;a={restartmsg:a,mfmt:this.T.Jn()?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].zc&&!this.F?"1":"0",mfmtinfo:this.T.Aa?"0":"1",prerolls:tK(this)?this.U.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.Ta(a,c.value.Ya())}this.B.onError("qoe.start15s",Sv(a));this.R("loadsofttimeout")}};
g.h.gN=function(){g.W(this.u,128)||this.G&&hw(this.G)||(this.B.onError("qoe.restart",Sv({detail:"bufferattach"})),this.Ag++,QK(this))};
g.h.Tt=function(a){var b=this;a=void 0===a?!1:a;if(!this.sa){var c=new ZB(this.T,YJ(this,"web_player_inline_botguard"));if("c1a"in c.o&&!$B(c)&&(2==this.za&&.01>Math.random()&&Nq(Error("Botguard not available after 2 attempts")),!a&&5>this.za)){g.Bn(this.Xb);this.za++;return}if("c1b"in c.o){var d=Bja(this.B);d&&Qha(c).then(function(e){e&&!b.sa&&d&&(d(e),b.sa=!0)})}else if(a=Pha(c))Aja(this.B,a),this.sa=!0}};
g.h.zb=function(){return this.C.zb()};
g.h.Ab=function(){return this.C?this.C.Ab():0};
g.h.getStreamTimeOffset=function(){return this.C?this.C.getStreamTimeOffset():0};
g.h.setPlaybackRate=function(a){var b=this.T.va&&this.T.va.videoInfos&&32<this.T.va.videoInfos[0].wa().fps&&g.Jx(this.A);this.Wa!=a&&b&&(this.S.setPlaybackRate(a),IK(this));this.Wa=a;this.o&&this.o.setPlaybackRate(a)};
g.h.getPlaybackRate=function(){return this.Wa};
g.h.getPlaybackQuality=function(){var a="unknown";if(this.T.Aa&&(a=this.T.Aa.wa().quality,"auto"==a&&this.o)){var b=kK(this);b&&0<b.videoHeight&&(a=qv(b.videoWidth,b.videoHeight))}return a};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.B;c.u?(c=JD(c.u,"engage"),c.B=a,c.send(b)):b&&b()};
g.h.isAtLiveHead=function(a,b){return this.T.ua&&(this.lc||(void 0===b?0:b))?this.C.isAtLiveHead(a):!1};
g.h.fr=function(){return this.o?this.o.nl():{}};
g.h.setLoop=function(a){this.Jc=a;this.o&&this.o.setLoop(a)};
g.h.oG=function(a){YJ(this,"html5_unrewrite_timestamps")&&this.Sa("timestamp",a.toString())};
g.h.Sa=function(a,b,c){var d=this.B;d.o&&CI(d.o,a,b,void 0===c?!1:c)};
g.h.fO=function(a,b){this.B.onError(a,Sv(b))};g.r(rL,RD);g.h=rL.prototype;g.h.N=function(){return this.app.N()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){return(a=g.U(this.app,a))&&a.getVideoData()};
g.h.te=function(a){return this.app.te(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.playVideo=function(a){try{if(3==this.getPresentingPlayerType()){g.AL(this.app.A).kl("control_play");return}if(2===this.getPresentingPlayerType()){var b=rM(this.app.A),c;if(c=b){if(null===b.o)var d=0;else{var e=b.o;d=uV(e.o)&&!!e.u&&e.u.wl()}c=d}if(c)return}}catch(f){g.M(f)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.U(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.ua||(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.FL(g.sL(this));d&&d.setCardsVisible(a,b,c)};
g.h.Nc=function(){if(this.N().H)return!1;var a=g.U(this.app,1);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.KB(b)||2==this.getPresentingPlayerType()&&!this.app.Ob()||tK(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.Od(a,0,100);RC(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){RC(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){RC(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.h.getBandwidthEstimate=function(){return jx(this.N().schedule)};
g.h.qb=function(){return g.U(this.app)};
g.h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.Ob=function(){return this.app.Ob()};var ska=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.gM,g.P);g.h=g.gM.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Lc=function(){};
g.h.Bf=function(){return!0};
g.h.Y=function(){this.loaded&&this.unload();g.P.prototype.Y.call(this)};
g.h.Ya=function(){return{}};
g.h.getOptions=function(){return[]};g.vM={};g.r(jM,g.A);g.h=jM.prototype;g.h.ld=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.ld.bind(this,a,void 0,c,d));if(!(d=e))a:{e=uka(this,a);try{if(e){var f=g.vM[a];if(f){d=new f(this.o);break a}"creatorendscreen"==a?wM(this,"annotations_module",b):wM(this,a,b)}else g.OL(this.o,a)}catch(k){g.OL(this.o,a),g.M(k)}d=null}if(e=d)this.u.set(a,e),e.create(),c&&this.o.ma("onApiChange")}};
g.h.Vl=function(){return this.o.getVideoData().Vl()};
g.h.nw=function(){var a=this.u.get("heartbeat");this.ld("heartbeat",this.nw,!1,!0);!a&&this.u.has("heartbeat")&&this.o.R("offlineslatestatechange")};
g.h.Aq=function(){this.ld("annotations_module",this.Aq,!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.lw=function(){if(!this.u.get("ad"))try{lM(this)?this.ld("ad",this.lw,!1,!0):g.OL(this.o,"ad")}catch(a){g.OL(this.o,"ad"),g.M(a)}};
g.h.Y=function(){g.A.prototype.Y.call(this);qM(this,1,!0)};g.r(zM,g.P);g.h=zM.prototype;g.h.AI=function(a){a=Dp(a);if(!Td(a,this.B)){var b=2;this.F&&(b|=8);this.B=a;this.Qb(b,!0)}};
g.h.LJ=function(){this.F&&this.Qb(8,!0);this.Qb(2,!1)};
g.h.Rs=function(a){var b=Dp(a);Td(b,this.B)||(this.B=b,(a=g.Ap(a))&&this.S(a)&&(this.Qb(4,!0),this.o.Xa(this.A),this.A=this.o.L(this.w,"mouseover",this.xz),this.P=this.o.L(this.w,"mouseout",this.xz)))};
g.h.xz=function(a){a=Cp(a);a&&this.S(a)||(this.B=new g.Sd(NaN,NaN),AM(this))};
g.h.eG=function(){this.Qb(1,!0)};
g.h.FE=function(a){a=g.Ap(a);a instanceof Element&&!(0<a.tabIndex)||this.Qb(1,!0)};
g.h.wz=function(){this.F=!0;this.o.Xa(this.C);this.C=this.o.L(document,"mouseup",this.BI)};
g.h.BI=function(){this.F=!1;this.Qb(8,!1);this.o.Xa(this.C);this.C=this.o.L(this.w,"mousedown",this.wz)};
g.h.yz=function(a){if(a=(a=a.changedTouches)&&a[0])this.U=a.identifier,this.o.Xa(this.G),this.G=this.o.L(this.w,"touchend",this.CI,void 0,!0),this.Qb(1024,!0)};
g.h.CI=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.U){var d=c;break}}d&&(this.o.Xa(this.G),this.G=this.o.L(this.w,"touchstart",this.yz,void 0,!0),this.Qb(1024,!1))};
g.h.Qb=function(a,b){var c=!this.u;b?(this.u|=a,a&1&&this.H.start(),a&2&&this.J.start()):(this.u&=~a,a&1&&this.H.stop(),a&2&&this.J.stop(),a&512&&this.O.stop());this.u&512&&!(this.u&128)&&g.Bn(this.O,this.V);var d=!this.u;c!=d&&this.R("autohideupdate",d)};
g.h.toString=function(){return g.P.prototype.toString.call(this)};g.r(g.BM,g.A);g.h=g.BM.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Dp(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.o&&this.o()):this.element.Ea()||(CM(this,!0),this.state=1,a?this.delay.start(a):this.Dp()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ea()&&(CM(this,!0),this.state=4,this.delay.start(this.A)))};
g.h.Dp=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:CM(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();CM(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.Dp()};
g.h.Y=function(){this.element.la()||this.element.element.removeAttribute("aria-hidden");g.A.prototype.Y.call(this)};g.r(g.eN,g.V);
g.eN.prototype.w=function(){var a=this.u.getVideoData(),b=this.u.N();if(a.tc&&a.Pf)var c=b.B?[{D:"div",I:"ytp-large-play-button-circle",M:{style:"background-color: "+a.Pf}},g.X?{D:"div",X:["ytp-icon","ytp-icon-dni-large-play-button"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},K:[{D:"path",M:{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",X:["ytp-icon","ytp-icon-dni-large-lozenge-play-button"]}:{D:"svg",M:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",I:"ytp-dni-large-play-button-bg",M:{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",M:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.B&&!b.Yb?
c=[g.X?{D:"div",X:["ytp-icon","ytp-icon-large-play-button-hover"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",I:"ytp-large-play-button-bg",M:{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",M:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:(g.K(this.element,"ytp-touch-device",b.o),c=[b.Yb?g.X?{D:"div",X:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},K:[{D:"path",I:"ytp-large-play-button-bg",M:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",M:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:g.X?{D:"div",X:["ytp-icon","ytp-icon-large-play-button"]}:{D:"svg",M:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},K:[{D:"path",I:"ytp-large-play-button-bg",M:{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",M:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]);this.ha("largePlayButtonChildren",
c);a.tc&&a.Pf&&!b.B&&this.o["ytp-dni-large-play-button-bg"].setAttribute("fill",a.Pf)};g.r(fN,g.V);g.h=fN.prototype;g.h.show=function(){var a=this;this.Ea()||(this.B.L(this.u,"videodatachange",function(){return g.Bn(a.w)}),this.B.L(this.u,"videoplayerreset",function(){return g.Bn(a.w)}));
g.V.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.yr(this.B);g.V.prototype.hide.call(this)};
g.h.NI=function(){g.Bn(this.w)};
g.h.OI=function(a){var b=this.u.N();g.Q(b.experiments,"disable_new_pause_state3")&&Rx(b)&&(a=a.state.isCued()&&!a.o.isCued()||g.BL(this.u)&&g.W(a.state,2),g.vh(this.element,"transition-delay",a?"2s":""));g.Bn(this.w)};
g.h.ON=function(){g.Bn(this.w)};
g.h.MI=function(){this.A.stop();this.hide();g.Bn(this.w)};
g.h.Az=function(){var a=g.zL(this.u);if(3==this.u.getPresentingPlayerType()&&(g.xD(a)||g.W(a,4)))var b=!0;else(b=g.sL(this.u).u.get("ypc"))&&b.H?b=!0:(b=this.u.N(),b=g.W(a,2)&&uL(this.u)&&b.Ja?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!=this.u.getPresentingPlayerType()?b=!0:(b=!g.Q(this.u.N().experiments,"disable_new_pause_state3"),b=!(!g.W(a,2)||uL(this.u)||b&&g.nT(this.u.app))||g.W(a,1024)?!0:!1));b?(this.A.show(),a=this.u.getVideoData(),this.eP(this.u.getPlaylist(),a)):(this.A.hide(),
g.W(a,1)||this.A.stop())};
g.h.eP=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.eB&&!c.videoId)){var d=g.wL(this.u).getPlayerSize();var e=g.Sx(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Ac("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Ac("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Ac("sddefault.jpg")||c.Ac("hqdefault.jpg")||c.Ac("mqdefault.jpg"))break;if(d=c.Ac("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.r(g.rN,g.V);g.rN.prototype.u=function(){};
g.rN.prototype.B=function(a){for(var b=0;b<this.A.length;b++)this.Xa(this.A[b]);this.A=[];var c=a.Kq;b=this.api.N();if("GENERIC_WITHOUT_LINK"!=c||b.Yb)"TOO_MANY_REQUESTS"==c?(b=this.api.getVideoData(),this.tb(tN(this,"TOO_MANY_REQUESTS_WITH_LINK",b.Th(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=c||b.Yb?this.tb(g.sN(a.errorMessage)):this.tb(tN(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers"));else if(a=b.hostLanguage,c="//support.google.com/youtube/?p=player_error1",
a&&(c=g.Ad(c,{hl:a})),this.tb(tN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),b.ga&&!b.u)for(b=(0,g.x)(this.F,this),a=this.element.getElementsByTagName("a"),c=0;c<a.length;c++){var d=this.L(a[c],"click",b);this.A.push(d)}};
g.rN.prototype.F=function(a){if(g.mN(a,this.api,!Rx(this.api.N()))){a={as3:!1,html5:!0,player:!0,cpn:this.api.getVideoData().clientPlaybackNonce};var b=this.api;b.ma("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&b.toggleFullscreen()}};
var wka=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.r(vN,g.O);vN.prototype.B=function(){this.A();var a=this.o.getVideoData();if(a.isValid()){var b=[];this.o.N().G||b.push({src:a.Ac("mqdefault.jpg"),sizes:"320x180"});this.u.metadata=new MediaMetadata({title:a.title,artist:a.author,artwork:b});b=a=null;g.BL(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));
uN(this,"nexttrack",a);uN(this,"previoustrack",b)}};
vN.prototype.A=function(){var a=g.zL(this.o);a=a.isError()?"none":g.yD(a)?"playing":"paused";this.u.playbackState=a};
vN.prototype.Y=function(){this.u.playbackState="none";this.u.metadata=null;for(var a=g.q(this.w),b=a.next();!b.done;b=a.next())uN(this,b.value,null);g.O.prototype.Y.call(this)};g.r(wN,g.V);wN.prototype.U=function(a,b){xN(this,b);this.C&&yN(this,this.C)};
wN.prototype.S=function(a){var b=this.J.getVideoData();this.w!=b.videoId&&xN(this,b);this.u&&yN(this,a.state);this.C=a.state};
wN.prototype.O=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(AN,g.V);AN.prototype.hide=function(){this.u.stop();this.A.style.display="none";g.V.prototype.hide.call(this)};
AN.prototype.B=function(a){zN(this,a.state)};
AN.prototype.C=function(){zN(this,g.zL(this.w))};
AN.prototype.F=function(){this.A.style.display="block"};g.r(CN,g.V);CN.prototype.A=function(){var a=g.U(this.u.app);a&&a.o&&a.o.ts()};
CN.prototype.w=function(){var a=g.U(this.u.app);g.GC(this,!!a&&a.pc);this.ha("icon",this.u.fi()?g.X?{D:"div",X:["ytp-icon","ytp-icon-airplay-on"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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",X:["ytp-icon","ytp-icon-airplay-off"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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(g.EN,g.V);g.EN.prototype.Y=function(){this.u=null;g.V.prototype.Y.call(this)};g.r(JN,g.V);LN.prototype.update=function(a,b,c,d){this.width=b;this.w=c;this.B=d;this.o=b-c-d;this.position=g.Od(a,c,c+this.o);this.A=this.position-c;this.u=this.A/this.o};g.r(g.ON,g.HC);g.h=g.ON.prototype;g.h.tu=function(){this.V=this.u.length-1;this.sa=0;QN(this,!0)&&QN(this,!1);RN(this)};
g.h.ZI=function(a){if(!g.Fp(a)){var b=!1;switch(g.Gp(a)){case 36:this.w.seekTo(0);b=!0;break;case 35:this.w.seekTo(Infinity);b=!0;break;case 34:this.w.seekBy(-60);b=!0;break;case 33:this.w.seekBy(60);b=!0;break;case 38:this.w.seekBy(5);b=!0;break;case 40:this.w.seekBy(-5),b=!0}b&&g.Ep(a)}};
g.h.Dz=function(a,b){NN(this,b,"newdata"==a)};
g.h.tF=function(){this.Dz("newdata",this.w.getVideoData())};
g.h.YI=function(a){this.H&&!g.W(a.state,32)&&3!=this.w.getPresentingPlayerType()&&this.H.cancel()};
g.h.vC=function(a){(this.J=a)?(this.ha("clipstarticon",SM()),this.ha("clipendicon",SM()),this.ha("clipstarttitle",null),this.ha("clipendtitle",null)):(this.ha("clipstarticon",JM()),this.ha("clipendicon",IM()),this.ha("clipstarttitle","Watch entire video"),this.ha("clipendtitle","Watch entire video"));XN(this);TN(this,this.G,this.na)};
g.h.oM=function(a,b,c){var d=g.Ih(this.element),e=$N(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?parseInt(l,10):0;k&&(a=IN(this.A,Number(c.getAttribute("data-position")),0)*e+g.Ih(this.Wb).x);this.za.x=a-d.x;this.za.y=b-d.y;b=$N(this);c=HN(this.A,b.u);a=f||g.xM(this.fb?c-this.A.o:c);b=b.position+this.Fa;c-=this.w.Ab();if(this.w.N().fa("web_wn_macro_markers")){if(1<this.u.length)for(d=eO(this,this.za.x),
e=0;e<this.u.length;)g.K(this.u[e].u,"ytp-exp-chapter-hover-effect",e===d),e++;d=this.O.B;l=(isNaN(l)?0:l)-35*d;e=bO(this,1E3*c);(e=this.u[e].title)||(l+=16*d);.6===this.O.B&&(l=e?120:136);qR(this.O,b,c,a,!!f,l,e)}else qR(this.O,b,c,a,!!f,l);g.K(g.xL(this.w),"ytp-progress-bar-hover",!g.W(g.zL(this.w),64));VN(this)};
g.h.nM=function(){g.YN(this.O);g.Mn(g.xL(this.w),"ytp-progress-bar-hover")};
g.h.mM=function(a,b){this.F&&(this.F.dispose(),this.F=null);this.Xb=b;this.w.seekTo(HN(this.A,$N(this).u),!1);g.J(this.element,"ytp-drag");(this.nb=g.yD(g.zL(this.w)))&&this.w.pauseVideo()};
g.h.pM=function(){this.Ha=0;g.Mn(this.element,"ytp-pull-ui");g.Mn(this.element,"ytp-pulling");this.F&&(this.F.dispose(),this.F=null);0<this.S&&(this.F=new g.xn((0,g.x)(this.WD,this,(0,g.N)(),this.S,$N(this).position)),this.F.start());if(g.W(g.zL(this.w),32)||3==this.w.getPresentingPlayerType())this.w.seekTo(HN(this.A,$N(this).u)),g.Mn(this.element,"ytp-drag"),this.nb&&!g.W(g.zL(this.w),2)&&this.w.playVideo()};
g.h.WD=function(a,b,c){a=1-Math.pow(1-((0,g.N)()-a)/200,3);c+=a*(this.G*this.C-c);if(0>a||1<a)a=1;ZN(this,(1-a)*b,c,this.G);1>a&&this.F.start()};
g.h.qM=function(a,b){var c=!1,d=!1,e=$N(this);3600<=GN(this.A)&&(ZN(this,this.Xb-b-10,e.position,e.u),d=!0,c=this.S>.1*(this.B?60:40),e=$N(this));g.K(this.element,"ytp-pull-ui",d);c&&g.J(this.element,"ytp-pulling");c=0;e.w&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);this.Ha!=c&&(this.Ha=c,this.F&&(this.F.dispose(),this.F=null),c&&(this.F=new g.xn((0,g.x)(this.vO,this,(0,g.N)(),this.U)),this.F.start()));this.w.seekTo(HN(this.A,e.u),!1)};
g.h.vO=function(a,b){var c=this.C*(this.da-1);this.U=g.Od(b+this.Ha*((0,g.N)()-a)*.3,0,c);g.UN(this);this.w.seekTo(HN(this.A,$N(this).u),!1);0<this.U&&this.U<c&&this.F.start()};
g.h.mA=function(){this.J||(this.ha("clipstarticon",HM()),this.ha("clipendicon",HM()),g.J(this.element,"ytp-clip-hover"))};
g.h.lA=function(){this.J||(this.ha("clipstarticon",JM()),this.ha("clipendicon",IM()),g.Mn(this.element,"ytp-clip-hover"))};
g.h.Zo=function(){this.ga=0;this.ea=Infinity;XN(this);TN(this,this.G,this.na)};
g.h.wC=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.Z[c]){var d=g.pe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Z[c]=b;this.Ba[c]=d;Jn(d,b.style);aO(this,c);g.Q(this.w.N().experiments,"disable_ad_markers_on_content_progress_bar")||this.u[0].C.appendChild(d)}}else hO(this,b)};
g.h.jO=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())hO(this,b.value)};
g.h.Y=function(){WN(this,!1);g.HC.prototype.Y.call(this)};g.r(jO,g.V);g.r(g.lO,g.V);g.lO.prototype.G=function(a){g.W(a.state,32)?mO(this,this.u.te()):this.Ea()&&(g.W(a.state,16)||g.W(a.state,1))||this.A.hide()};
g.lO.prototype.H=function(){var a=g.zL(this.u);(g.W(a,32)||g.W(a,16))&&nO(this)};
g.lO.prototype.C=function(){this.B=NaN;nO(this)};
g.lO.prototype.hide=function(){this.Id&&mO(this,null);g.V.prototype.hide.call(this)};g.r(oO,g.V);oO.prototype.G=function(){g.WL(this.u,this.element);this.u.ma("onFullerscreenEduClicked")};
oO.prototype.w=function(){this.u.isFullscreen()?this.A?this.B.hide():this.B.show():this.hide();g.XL(this.u,this.element,this.u.isFullscreen()&&!this.A)};g.r(pO,g.HC);g.h=pO.prototype;g.h.show=function(){var a=rO(this);g.HC.prototype.show.call(this);this.da&&(this.H.L(window,"blur",this.kb),this.H.L(document,"click",this.XI));a||this.R("show",!0)};
g.h.hide=function(){var a=rO(this);g.HC.prototype.hide.call(this);qO(this);a&&this.R("show",!1)};
g.h.Fd=function(a,b){this.u=a;this.U.show();b?(this.J||(this.J=this.H.L(this.V,"appresize",this.Jv)),this.Jv()):this.J&&(this.H.Xa(this.J),this.J=null)};
g.h.IE=function(){this.u&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded",!0),g.Q(this.V.N().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.xe(this.u,document.activeElement)&&this.focus():this.focus())};
g.h.Jv=function(){g.XC(this.V).Cj(this.element,this.u)};
g.h.kb=function(){var a=rO(this);qO(this);this.U.hide();a&&this.R("show",!1)};
g.h.Ze=function(a,b){rO(this)?this.kb():this.Fd(a,b)};
g.h.XI=function(a){var b=Bp(a);b&&(g.xe(this.element,b)||this.u&&g.xe(this.u,b)||!g.yM(a))||this.kb()};g.r(g.tO,g.V);g.h=g.tO.prototype;g.h.QI=function(){this.w.N().ca?this.w.toggleFullscreen():this.u.Ze(this.element,!0)};
g.h.tA=function(){sO(this);this.u.Fd(this.element,!0)};
g.h.RI=function(){ur()==g.xL(this.w)?this.B.start():(this.B.stop(),this.u&&this.u.hide())};
g.h.cE=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.tA()}};
g.h.Bz=function(){g.GC(this,lN(this.w))};
g.h.MB=function(a){if(a){var b=g.X?{D:"div",X:["ytp-icon","ytp-icon-full-screen-close"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"g",I:"ytp-fullscreen-button-corner-2",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",I:"ytp-fullscreen-button-corner-3",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",I:"ytp-fullscreen-button-corner-0",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",
M:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",I:"ytp-fullscreen-button-corner-1",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.qN(this.w,"Exit full screen","f");document.activeElement==this.element&&g.xL(this.w).focus()}else b=g.X?{D:"div",X:["ytp-icon","ytp-icon-full-screen"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"g",I:"ytp-fullscreen-button-corner-0",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{D:"g",I:"ytp-fullscreen-button-corner-1",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",I:"ytp-fullscreen-button-corner-2",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",I:"ytp-fullscreen-button-corner-3",K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.qN(this.w,"Full screen","f");this.ha("icon",b);this.ha("title",this.u?null:a);HO(this.C.Za())};
g.h.Y=function(){this.u||(this.A(),this.A=null);g.V.prototype.Y.call(this)};g.r(uO,g.V);uO.prototype.B=function(){this.u.ma("onCollapseMiniplayer");g.WL(this.u,this.element)};
uO.prototype.A=function(){this.w=!this.u.isFullscreen();g.GC(this,this.w);g.XL(this.u,this.element,this.w&&this.P)};
uO.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.w&&a)};g.r(vO,pO);g.h=vO.prototype;g.h.show=function(){var a=this.Ea();pO.prototype.show.call(this);a||(this.B.L(this.w,"presentingplayerstatechange",this.Vs),this.B.L(this.w,"videodatachange",this.Vs),this.Vs())};
g.h.hide=function(){this.B&&(g.yr(this.B),pO.prototype.hide.call(this))};
g.h.Vs=function(){var a=this.w.getVideoData(),b=a.Ch,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.V({D:"button",X:["ytp-multicam-menu-item","ytp-button"],M:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},K:[{D:"div",I:"ytp-multicam-menu-item-title",W:"{{cameraName}}"}]}),d.ia("click",g.Sa(this.FK,c),this),d.ba(this.Ga),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=Qx(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.zL(this.w);a=b.length||!a.Pb();g.yD(c)||g.W(c,4)||a||!rO(this)||this.Ze()};
g.h.FK=function(a){var b=this.w.getVideoData(),c=this.w;a=b.Ch[a];b=g.U(c.app,1).getVideoData();var d=c.getCurrentTime();a.id==b.videoId?g.U(c.app)!=g.U(c.app,1)&&(g.TR(c.app,1),b.ua||c.seekTo(d)):(g.TR(c.app,4),c.app.loadVideoByPlayerVars({videoId:a.id,title:b.title,start:b.ua?null:d,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:b.Uz}}}},4))};
g.h.focus=function(){for(var a=this.w.getVideoData(),b=a.Ch,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.Y=function(){g.Ie(this.A);pO.prototype.Y.call(this)};g.r(wO,g.V);wO.prototype.F=function(a){this.w("newdata"==a)};
wO.prototype.w=function(a){var b=this.C.getVideoData(),c=b.Ch,d=g.zL(this.C);d=(g.yD(d)||g.W(d,4))&&0<c.length;g.GC(this,d);a&&(this.A=!0);if(d){this.A&&g.Bn(this.B);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.gN("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Ac("default.jpg")});HO(this.u)}else this.B.stop()};
wO.prototype.G=function(){SQ(this.u,this.element,"More cameras available");this.A=!1};g.r(xO,g.A);xO.prototype.o=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Un(ara,a));1>a&&this.delay.start()};
var ara=new g.Tn(0,0,.4,0,.2,1,1,1),xka=/[0-9.-]+|[^0-9.-]+/g;g.r(EO,g.V);EO.prototype.oc=function(a){this.B=300<=a.width;g.GC(this,this.B);g.XL(this.u,this.element,this.B&&this.P)};
EO.prototype.da=function(){this.u.N().J?this.u.isMuted()?this.u.unMute():this.u.mute():this.Z.Ze(this.element,!0);g.WL(this.u,this.element)};
EO.prototype.ea=function(a){DO(this,a.volume,a.muted)};
EO.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.B&&a)};
var yka=["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"],zka=["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(IO,g.V);IO.prototype.w=function(){this.u.togglePictureInPicture()};g.r(g.KO,g.V);g.KO.prototype.F=function(a){JO(this,a.state)};
g.KO.prototype.B=function(){g.K(this.element,"ytp-play-button-playlist",g.BL(this.u))};
g.KO.prototype.G=function(){g.yD(g.zL(this.u))?this.u.pauseVideo():this.u.playVideo()};g.r(g.OO,g.V);g.h=g.OO.prototype;g.h.yj=function(){PO(this);this.F&&(this.Xa(this.F),this.F=null);this.T=this.u.getVideoData(1);if(this.w=this.u.getPlaylist())this.w.subscribe("shuffle",this.yj,this),this.F=this.L(this.u,"progresssync",this.VI);this.C=QO(this);NO(this);this.oc(g.wL(this.u).getPlayerSize())};
g.h.oc=function(a){a=void 0===a?g.wL(this.u).getPlayerSize():a;var b=g.BL(this.u)||this.A&&g.SL(this.u)||RO(this);g.GC(this,b&&(this.A||400<=a.width))};
g.h.WI=function(a){var b=!0;this.H?b=g.mN(a,this.u):g.Ep(a);b&&(this.A&&5==this.u.getPresentingPlayerType()?this.u.R("ytoprerollinternstitialnext"):this.A?this.u.nextVideo(!0):this.C?this.u.seekTo(0):this.u.previousVideo(!0))};
g.h.VI=function(){var a=QO(this);a!=this.C&&(this.C=a,NO(this))};
g.h.Y=function(){this.B&&(this.B(),this.B=null);PO(this);g.V.prototype.Y.call(this)};g.r(g.SO,g.JC);g.SO.prototype.J=function(){this.setValue(!this.w);this.R("select",this.w)};
g.SO.prototype.getValue=function(){return this.w};
g.SO.prototype.setValue=function(a){this.w=a;this.element.setAttribute("aria-checked",this.w)};g.r(TO,g.SO);TO.prototype.C=function(){g.FL(g.sL(this.A))&&3!=this.A.getPresentingPlayerType()?this.u||(g.JP(this.B,this),this.u=!0):this.u&&(g.KP(this.B,this),this.u=!1);this.setValue(UO(this))};
TO.prototype.F=function(a){UO(this);a?this.A.loadModule("annotations_module"):this.A.unloadModule("annotations_module")};
TO.prototype.Y=function(){this.u&&g.KP(this.B,this);g.SO.prototype.Y.call(this)};g.r(VO,g.HC);VO.prototype.ga=function(){this.R("size-change")};
VO.prototype.focus=function(){this.V.focus()};
VO.prototype.sa=function(){this.R("back")};g.r(g.WO,VO);g.WO.prototype.Z=function(){this.F.R("size-change")};
g.WO.prototype.focus=function(){for(var a=0,b=0;b<this.Ga.length;b++)if("true"==this.Ga[b].element.getAttribute("aria-checked")){a=b;break}this.Ga[a].focus()};g.r(g.$O,g.JC);g.h=g.$O.prototype;g.h.open=function(){g.iP(this.w,this.G)};
g.h.Be=function(a){aP(this);this.A[a].element.setAttribute("aria-checked",!0);this.tb(this.Te(a));this.F=a};
g.h.jq=function(a,b,c){b=new g.JC({D:"div",X:["ytp-menuitem"],M:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},K:[{D:"div",X:["ytp-menuitem-label"],W:"{{label}}"}]},b,this.Te(a,!0));b.ia("click",(0,g.x)(this.bJ,this,a));return b};
g.h.enable=function(a){this.H?a||(this.H=!1,this.zj(!1)):a&&(this.H=!0,this.zj(!0))};
g.h.zj=function(a){a?g.JP(this.w,this):g.KP(this.w,this)};
g.h.Yc=function(a){this.R("select",a)};
g.h.bJ=function(a){this.Yc(a)};
g.h.Te=function(a){return a.toString()};
g.h.aJ=function(a){g.Fp(a)||39!=g.Gp(a)||(this.open(),g.Ep(a))};
g.h.Y=function(){this.H&&g.KP(this.w,this);g.JC.prototype.Y.call(this);for(var a in this.A)this.A[a].dispose()};g.r(cP,g.$O);cP.prototype.C=function(){var a=this.u.getAvailableAudioTracks();1<a.length?(g.bP(this,(0,g.Fc)(a,this.B)),this.O=g.xb(a,this.B,this),this.J.tb(a.length?" ("+a.length+")":""),this.R("size-change"),this.Be(this.B(this.u.getAudioTrack())),this.enable(!0)):this.enable(!1)};
cP.prototype.Yc=function(a){g.$O.prototype.Yc.call(this,a);this.u.setAudioTrack(this.O[a]);this.w.Nd()};
cP.prototype.B=function(a){return a.toString()};g.r(dP,g.SO);dP.prototype.C=function(){var a=this.u.getPresentingPlayerType();if(2!=a&&3!=a&&g.SL(this.u))this.B||(g.JP(this.F,this),this.B=!0,this.A.push(this.L(this.u,"videodatachange",this.C)),this.A.push(this.L(this.u,"videoplayerreset",this.C)),this.A.push(this.L(this.u,"onPlaylistUpdate",this.C)),this.A.push(this.L(this.u,"autonavchange",this.G)),a=this.u.getVideoData(),this.G(a.autonavState));else if(this.B){g.KP(this.F,this);this.B=!1;a=g.q(this.A);for(var b=a.next();!b.done;b=a.next())this.Xa(b.value)}};
dP.prototype.G=function(a){this.setValue(1!=a)};
dP.prototype.H=function(a){var b=this.u;a=a?2:1;b.app.u.ma("onAutonavChangeRequest",1!=a);a&&eU(b.app,a)};
dP.prototype.Y=function(){this.B&&g.KP(this.F,this);g.SO.prototype.Y.call(this)};g.r(g.eP,pO);g.h=g.eP.prototype;g.h.show=function(){pO.prototype.show.call(this);this.Rj()};
g.h.hide=function(){pO.prototype.hide.call(this);1<this.A.length&&g.jP(this)};
g.h.Rj=function(){kP(this);this.Ea()&&(gP(this),g.Oh(this.element,this.size))};
g.h.Nd=function(){var a=this.A.pop(),b=fP(this);hP(this,a,b,!0)};
g.h.MO=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.Mn(b.element,"ytp-panel-animate-back")):(g.J(a.element,"ytp-panel-animate-back"),g.Mn(b.element,"ytp-panel-animate-forward"));g.Oh(this.element,this.size);this.C=new g.I(g.Sa(this.eK,a,b),250,this);this.C.start()};
g.h.eK=function(a){g.Mn(this.element,"ytp-popup-animating");g.DC(a);g.Nn(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.C.dispose();this.C=null};
g.h.UI=function(a){if(!g.Fp(a))switch(g.Gp(a)){case 27:this.kb();g.Ep(a);break;case 37:1<this.A.length&&this.Nd();g.Ep(a);break;case 39:g.Ep(a)}};
g.h.focus=function(){fP(this).focus()};
g.h.Y=function(){pO.prototype.Y.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.r(lP,g.$O);g.h=lP.prototype;g.h.zl=function(){var a=this.u.getPresentingPlayerType();if(2!=a&&3!=a&&(this.C=g.DL(this.u),a=this.u.getAvailableQualityLevels(),g.PL(this.u)&&g.QL(this.u)&&a.unshift("missing-qualities"),rka(this.u)&&a.unshift("inline-survey"),g.bP(this,a),a.length)){this.Ez();this.enable(!0);return}this.enable(!1)};
g.h.Ez=function(){var a=this.u.getPreferredQuality();this.A[a]&&(this.B=this.u.getPlaybackQuality(),this.Be(a),"auto"==a&&this.tb(this.Te(a)))};
g.h.Yc=function(a){"missing-qualities"!=a&&(g.$O.prototype.Yc.call(this,a),this.u.setPlaybackQuality(a),this.w.kb(),this.zl())};
g.h.jq=function(a,b,c){var d=this;if("inline-survey"!=a)return g.$O.prototype.jq.call(this,a,b,c);a=[{D:"span",W:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={sm:c.sm},f=e.next())c.sm=f.value,f=new g.V({D:"span",I:"ytp-menuitem-inline-survey-response",K:[c.sm?g.QM():NM()],M:{tabindex:"0",role:"button"}}),f.ia("click",function(k){return function(){var l=g.U(d.u.app);l&&(l.Sa("iqsr",""+ +k.sm),l.getVideoData().Nx=!0);d.w.kb();d.zl()}}(c)),a.push(f);
return new g.JC({D:"div",I:"ytp-menuitem",M:{"aria-disabled":!0},K:[{D:"div",X:["ytp-menuitem-label"],K:a}]},b)};
g.h.Te=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{D:"a",M:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.u.N().A},W:"Missing options?"};if("inline-survey"==a)return"";var c=[mP(this,a)],d=this.u.getPreferredQuality();b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(mP(this,this.B,["ytp-menu-label-secondary"])));return{D:"div",K:c}};g.r(nP,g.V);nP.prototype.oc=function(a){g.GC(this,this.B&&400<=a.width)};
nP.prototype.C=function(){if(this.A.Ea())this.A.kb();else{var a=g.kM(g.sL(this.u));a&&!a.loaded&&(a.Lc("tracklist",{includeAsr:!0}).length||a.load());this.A.Fd(this.element)}};
nP.prototype.w=function(){var a=(a=g.U(this.u.app))?!!(a.T.Aa&&a.T.Aa.video&&vv(a.T.Aa.video)):!1;var b=this.u.getPresentingPlayerType(),c=2!=b&&3!=b,d=g.wC(this.u),e=c&&!!g.EL(g.sL(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(pP,g.V);g.h=pP.prototype;g.h.eN=function(a){if(!g.Fp(a)){switch(g.Gp(a)){case 37:case 40:var b=-this.H;break;case 39:case 38:b=this.H;break;default:return}this.wi(this.u+b);g.Ep(a)}};
g.h.ML=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.F:this.F;this.wi(b);g.Ep(a)};
g.h.bN=function(a){a=(a-g.Ih(this.w).x)/this.J*this.C+this.minimumValue;this.wi(a)};
g.h.wi=function(a,b){b=void 0===b?"":b;var c=g.Od(a,this.minimumValue,this.maximumValue);""==b&&(b=c.toString());this.ha("valuenow",c);this.ha("valuetext",b);this.U.style.left=(c-this.minimumValue)/this.C*(this.J-this.O)+"px";this.u=c};
g.h.focus=function(){this.S.focus()};g.r(rP,pP);rP.prototype.Z=function(){this.B.setPlaybackRate(this.u,!0)};
rP.prototype.wi=function(a){pP.prototype.wi.call(this,a,sP(this,a).toString());this.A&&(qP(this),this.V())};
rP.prototype.ca=function(){var a=this.B.getPlaybackRate();sP(this,this.u)!=a&&(this.wi(a),qP(this))};g.r(tP,g.HC);tP.prototype.focus=function(){this.u.focus()};g.r(uP,VO);g.r(vP,g.$O);g.h=vP.prototype;g.h.Te=function(a){return"1"==a?"Normal":a.toLocaleString()};
g.h.Fz=function(){var a=this.u.getPresentingPlayerType();this.enable(2!=a&&3!=a);zP(this)};
g.h.zj=function(a){g.$O.prototype.zj.call(this,a);a?(this.O=this.L(this.u,"onPlaybackRateChange",this.eJ),zP(this),xP(this,this.u.getPlaybackRate())):(this.Xa(this.O),this.O=null)};
g.h.eJ=function(a){var b=this.u.getPlaybackRate();this.J.includes(b)||yP(this,b);xP(this,a)};
g.h.Yc=function(a){g.$O.prototype.Yc.call(this,a);a==this.B?this.u.setPlaybackRate(this.C,!0):this.u.setPlaybackRate(parseFloat(a),!0);this.w.Nd()};var G2,bra;G2=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];bra=[{option:0,text:AP(0)},{option:.25,text:AP(.25)},{option:.5,text:AP(.5)},{option:.75,text:AP(.75)},{option:1,text:AP(1)}];
g.CP=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:G2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:AP(.5)},{option:-1,text:AP(.75)},{option:0,text:AP(1)},{option:1,text:AP(1.5)},{option:2,text:AP(2)},
{option:3,text:AP(3)},{option:4,text:AP(4)}]},{option:"background",text:"Background color",options:G2},{option:"backgroundOpacity",text:"Background opacity",options:bra},{option:"windowColor",text:"Window color",options:G2},{option:"windowOpacity",text:"Window opacity",options:bra},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity",
options:[{option:.25,text:AP(.25)},{option:.5,text:AP(.5)},{option:.75,text:AP(.75)},{option:1,text:AP(1)}]}];g.r(BP,g.$O);g.h=BP.prototype;g.h.Be=function(a){g.$O.prototype.Be.call(this,a)};
g.h.Jz=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.O[a]};
g.h.Te=function(a){return this.getOption(a).text||""};
g.h.Yc=function(a){g.$O.prototype.Yc.call(this,a);this.R("settingChange",this.J,this.O[a].option)};
g.h.Kz=function(a){this.R("settingChange",this.J+"Override",!a);this.w.Nd()};g.r(DP,g.WO);DP.prototype.w=function(a,b){this.R("settingChange",a,b)};g.r(FP,g.$O);FP.prototype.B=function(a){return a.languageCode};
FP.prototype.Te=function(a){return this.u[a].languageName||""};
FP.prototype.Yc=function(a){this.R("select",a);g.jP(this.w)};g.r(GP,g.$O);g.h=GP.prototype;g.h.ht=function(a){return g.Ob(a)?"__off__":a.displayName};
g.h.Te=function(a){return"__off__"==a?"Off":"__translate__"==a?"Auto-translate":"__contribute__"==a?"Add subtitles/CC":("__off__"==a?{}:this.C[a]).displayName};
g.h.Yc=function(a){"__translate__"==a?this.B.open():"__contribute__"==a?(this.u.pauseVideo(),this.u.isFullscreen()&&this.u.toggleFullscreen(),a=g.FD(this.u.N(),this.u.getVideoData()),g.kN(a)):(this.u.setOption("captions","track","__off__"==a?{}:this.C[a]),g.$O.prototype.Yc.call(this,a),this.w.Nd())};
g.h.Al=function(){var a=this.u.getOptions();a=a&&-1!=a.indexOf("captions");var b=this.u.getVideoData();b=b&&b.Um;if(a||b){if(a){var c=this.u.getOption("captions","track");var d=this.u.getOption("captions","tracklist",{includeAsr:!0});var e=this.u.getOption("captions","translationLanguages");this.C=g.xb(d,this.ht,this);var f=(0,g.Fc)(d,this.ht);if(e.length&&!g.Ob(c)){var k=c.translationLanguage;if(k&&k.languageName){var l=k.languageName;k=e.findIndex(function(m){return m.languageName==l});
qaa(e,k)}Bka(this.B,e);f.push("__translate__")}e=this.ht(c)}else this.C={},f=[],e="__off__";f.unshift("__off__");this.C.__off__={};b&&f.unshift("__contribute__");this.C[e]||(this.C[e]=c,f.push(e));g.bP(this,f);this.Be(e);c&&c.translationLanguage?this.B.Be(this.B.B(c.translationLanguage)):aP(this.B);a&&EP(this.J,this.u.getSubtitlesUserSettings());this.S.tb(d&&d.length?" ("+d.length+")":"");this.R("size-change");this.enable(!0)}else this.enable(!1)};
g.h.Iz=function(a){this.u.setOption("captions","sampleSubtitles",a)};
g.h.mJ=function(a){var b=this.u.getOption("captions","track");b=g.Rb(b);b.translationLanguage=this.B.u[a];this.u.setOption("captions","track",b)};
g.h.lJ=function(a,b){if("reset"==a)this.u.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.u.updateSubtitlesUserSettings(c)}this.Iz(!0);this.O.start();EP(this.J,this.u.getSubtitlesUserSettings())};
g.h.XM=function(a){a||g.Dn(this.O)};
g.h.Y=function(){g.Dn(this.O);g.$O.prototype.Y.call(this)};g.r(HP,g.eP);HP.prototype.Fd=function(a){IP(this);0<this.B.Ga.length&&g.eP.prototype.Fd.call(this,a)};
HP.prototype.show=function(){g.eP.prototype.show.call(this);g.J(g.xL(this.w),"ytp-settings-shown")};
HP.prototype.hide=function(){g.eP.prototype.hide.call(this);g.Mn(g.xL(this.w),"ytp-settings-shown")};g.r(LP,g.V);
LP.prototype.w=function(){var a=!1;this.u.getOptions().includes("remote")&&(a=1<this.u.getOption("remote","receivers").length);g.GC(this,a&&400<=g.wL(this.u).getPlayerSize().width);var b=1;a&&this.u.getOption("remote","casting")&&(b=2);if(this.A!=b){this.A=b;switch(b){case 1:this.ha("icon",g.X?{D:"div",X:["ytp-icon","ytp-icon-cast-desktop-off"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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.ha("icon",g.DM())}g.K(this.element,"ytp-remote-button-active",!!this.u.getOption("remote","casting"))}};
LP.prototype.C=function(){if(this.u.getOption("remote","quickCast"))this.u.setOption("remote","quickCast",!0);else{var a=this.B,b=this.element;if(rO(a))a.kb();else{IP(a);a:{var c=g.q(a.B.Ga);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.Fd(b));a.Fd(b)}}};g.r(MP,g.V);MP.prototype.F=function(){var a=this.u.app;a.u.ma("SIZE_CLICKED",!a.pc)};
MP.prototype.w=function(){g.GC(this,this.u.app.ne&&!this.u.isFullscreen()&&3!=this.u.getPresentingPlayerType());if(this.Ea()){var a=this.u.isWidescreen();if(this.A!=a){var b=a?g.X?{D:"div",X:["ytp-icon","ytp-icon-default-view"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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",X:["ytp-icon","ytp-icon-theater-mode"]}:{D:"svg",M:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,M:{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().B||null==this.A?this.ha("icon",b):CO(this.C,this.element,b);this.A=a;b=g.qN(this.u,"Default view","t");var c=g.qN(this.u,"Theater mode","t");this.ha("title",a?b:c);HO(this.B)}}};g.r(NP,g.V);NP.prototype.A=function(){this.w.toggleSubtitles()};
NP.prototype.u=function(){var a=!!g.kM(g.sL(this.w));g.GC(this,a&&300<=g.wL(this.w).getPlayerSize().width);a&&this.ha("pressed",!!this.w.getOption("captions","track").displayName)};g.r(g.PP,g.V);
g.PP.prototype.w=function(){var a=g.wL(this.u).getPlayerSize().width,b=a>=this.O&&(!this.C||!g.W(g.zL(this.u),64));g.GC(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.u.getProgressState();if(b){b=this.u.getPresentingPlayerType();var c=g.xM(g.Q(this.u.N().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(b,!1));this.F!=c&&(this.ha("currenttime",c),this.F=c);b=g.xM(g.Q(this.u.N().experiments,"halftime_ux_killswitch")?a.duration:this.u.getDuration(b,!1));
this.G!=b&&(this.ha("duration",b),this.G=b)}this.C&&(a=a.isAtLiveHead,this.H!=a&&(this.H=a,this.w(),b=this.A.element,b.disabled=a,this.A.tb(this.J?"Premiere":"Live"),a?this.B&&(this.B(),this.B=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.B=g.BN(this.S,this.A.element))))};
g.PP.prototype.V=function(a,b){OP(this,b);this.w()};
g.PP.prototype.U=function(a){a.target==this.A.element&&(this.u.seekTo(Infinity),this.u.playVideo())};
g.PP.prototype.Y=function(){this.B&&this.B();g.V.prototype.Y.call(this)};g.r(RP,g.V);g.h=RP.prototype;g.h.nJ=function(){var a=this.F.jc();this.G!=a&&(this.G=a,QP(this,this.u.getVolume(),this.u.isMuted()))};
g.h.oc=function(a){g.GC(this,350<=a.width)};
g.h.fN=function(a){if(!g.Fp(a)){var b=g.Gp(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.Od(c,0,100),0==c?this.u.mute():(this.u.isMuted()&&this.u.unMute(),this.u.setVolume(c)),g.Ep(a))}};
g.h.oJ=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.u.setVolume(this.B+(0>b?-10:10)):this.u.setVolume(this.B+g.Od(b/10,-10,10));g.Ep(a)};
g.h.dN=function(){SP(this,this.A,!0,this.w,this.F.hj());this.V=this.B;this.u.isMuted()&&this.u.unMute()};
g.h.cN=function(a){var b=this.G?78:52,c=this.G?18:12;a-=g.Ih(this.U).x;this.u.setVolume(100*g.Od((a-c/2)/(b-c),0,1))};
g.h.aN=function(){SP(this,this.A,!1,this.w,this.F.hj());0==this.B&&(this.u.mute(),this.u.setVolume(this.V))};
g.h.pJ=function(a){QP(this,a.volume,a.muted)};
g.h.gw=function(){SP(this,this.A,this.C,this.w,this.F.hj())};
g.h.Lz=function(a){SP(this,this.A,this.C,a,this.F.hj())};
g.h.NB=function(a){g.K(this.element,"ytp-volume-control-hover",a);SP(this,a,this.C,this.w,this.F.hj())};
g.h.Y=function(){g.V.prototype.Y.call(this);g.Mn(this.S,"ytp-volume-slider-active")};g.r(g.TP,g.V);g.TP.prototype.A=function(){this.w=!!this.u.getVideoData().videoId;g.GC(this,this.w);g.XL(this.u,this.element,this.w&&this.P);if(this.w){var a=this.u.getVideoUrl(!0,!1,!1,!0);this.ha("url",a)}};
g.TP.prototype.B=function(a){var b=this.u.getVideoUrl(!g.yM(a),!1,!0,!0);g.vx(this.u.N())&&(b=g.Ad(b,g.GD({},"emb_logo")));g.nN(b,this.u,a);g.WL(this.u,this.element)};
g.TP.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.w&&a)};g.r(UP,g.O);g.h=UP.prototype;g.h.Zs=function(){g.SN(this.B);this.ea.w();if(g.Q(this.w.N().experiments,"web_wn_macro_markers")){var a=this.U,b="",c=a.w.u;1<c.length&&(b=1E3*a.A.getProgressState().current,b=bO(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.Hz=function(){this.gt();this.V.u?this.Zs():g.YN(this.B.O)};
g.h.jJ=function(){this.Zs();this.H.start()};
g.h.gt=function(){var a=!this.w.N().o&&300>g.iO(this.B)&&g.xD(g.zL(this.w))&&!!window.requestAnimationFrame,b=!a;this.V.u||(a=b=!1);b?this.J||(this.J=this.L(this.w,"progresssync",this.Zs)):this.J&&(this.Xa(this.J),this.J=null);a?this.H.isActive()||this.H.start():this.H.stop()};
g.h.fP=function(a){var b=this.A.Za();a=!a;if(null!=b.w)if(a)switch(b.w){case 3:case 2:sR(b);b.J.show();break;default:b.J.show()}else b.J.hide();b.U=a};
g.h.ct=function(){var a=this.A.jc(),b=g.wL(this.w).getPlayerSize(),c=WP(this),d=Math.max(b.width-2*c,100);if(this.na!=b.width||this.ra!=a){this.na=b.width;this.ra=a;var e=XP(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";var f=this.B;f.Fa=c;f.C=e;f.B=a;g.UN(f);this.A.Za().ea=e}c=this.o;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.jc()?72:50))));c.S=Math.min(570*(a?1.5:1),d);c.O=e;c.Rj();this.gt();g.Q(this.w.N().experiments,"html5_player_dynamic_bottom_gradient")&&
g.DN(this.sa,b.height)};
g.h.kJ=function(){var a=this.w.getVideoData();this.O.style.background=a.tc?a.Pf:"";g.GC(this.S,a.eu)};g.r(ZP,pO);ZP.prototype.F=function(a){if(this.w.N().B||this.C)a?(YP(this),this.Fd()):(this.A&&$P(this),this.kb())};
ZP.prototype.G=function(a){this.w.isMutedByMutedAutoplay()&&g.ED(a,2)&&this.kb()};
ZP.prototype.onClick=function(){this.w.unMute();$P(this)};g.r(g.aQ,g.O);g.h=g.aQ.prototype;g.h.init=function(){var a=g.zL(this.api);this.Ij(a);this.wg();this.li()};
g.h.zz=function(a,b){if(this.Xb!=b.videoId){this.Xb=b.videoId;var c=this.u;c.V=b&&0<b.Ch.length?5E3:3E3;c.Qb(512,!0);this.wg();g.Q(this.api.N().experiments,"web_player_nitrate_promo_tooltip")&&this.VB()}};
g.h.hM=function(){this.zz("newdata",this.api.getVideoData())};
g.h.sh=function(){var a=g.GL(this.api)&&g.HL(this.api);bQ(this);KL(this.api);return this.Gb||a||KL(this.api)||this.Wb||bQ(this)};
g.h.Sd=function(){var a=!this.sh();g.K(g.xL(this.api),"ytp-menu-shown",!a)};
g.h.DI=function(a){if(!g.xe(g.xL(this.api),a))return!1;for(;a&&!Be(a);)a=a==g.xL(this.api)?null:g.we(a);return!!a};
g.h.Cl=function(a){var b=g.xL(this.api);g.K(b,"ytp-autohide",a);g.K(b,"ytp-autohide-active",!0);this.fd.start(a?250:100);a&&(this.Hc=!1,g.Mn(b,"ytp-touch-mode"));b=this.api;a=!a;b.ma("onVideoAreaChange");b.ma(a?"onShowControls":"onHideControls")};
g.h.pK=function(){g.K(g.xL(this.api),"ytp-autohide-active",!1)};
g.h.OM=function(){this.Gc=!0};
g.h.nF=function(){this.Gc||gQ(this)};
g.h.PM=function(a){g.Q(this.api.N().experiments,"player_doubletap_to_seek")&&(this.Gc=!1,this.Jc&&this.Xa(this.Jc),0==this.sa&&fQ(this,a)?(this.Kn(),this.Ba.start(),this.Jc=this.L(g.wL(this.api),"touchmove",this.OM,void 0,!0)):this.Ba.stop());eQ(this)&&fQ(this,a)&&gQ(this);var b=rO(this.Ra);if(rx&&hQ(this,a))b&&g.Ep(a);else if(this.u.u||cQ(this,Bp(a))||rO(this.Ra)||(g.zL(this.api).isCued(),g.Ep(a)),this.Hc=!0,g.J(g.xL(this.api),"ytp-touch-mode"),this.u.Qb(2,!0),g.Q(this.api.N().experiments,"player_doubletap_to_seek")&&
(b=g.zL(this.api),this.api.Nc()&&(!g.W(b,2)||!uL(this.api)))){b=Date.now()-this.hd;this.sa+=1;if(350>=b){this.ea=!0;b=this.api.getPlayerSize().width/3;var c=g.xL(this.api).getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.sa-1);0<d&&d<b?(this.Ss(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Ss(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Ep(a)}this.hd=Date.now();this.jd.start()}};
g.h.JM=function(a){hQ(this,a)||(eQ(this)||!fQ(this,a)||this.Ba.isActive()||(gQ(this),g.Ep(a)),this.ea&&(this.ea=!1))};
g.h.Kn=function(){};
g.h.Ts=function(){};
g.h.Ss=function(){};
g.h.VB=function(){};
g.h.Fo=function(){var a=g.zL(this.api);g.W(a,2)&&uL(this.api)||(g.yD(a)?this.api.pauseVideo():(this.api.app.fd=!0,this.api.playVideo(),this.V&&document.activeElement==this.V.C&&g.xL(this.api).focus()))};
g.h.KM=function(a){var b=this.api.getPresentingPlayerType();cQ(this,Bp(a))||(a=this.api.N(),g.Q(a.experiments,"player_doubletap_to_seek")&&this.ea?this.ea=!1:(a.ca||g.Q(a.experiments,"player_fullscreen_disabled_killswitch"))&&3!=b&&this.api.toggleFullscreen())};
g.h.LM=function(a){iQ(this,.3,a.scale);g.Ep(a)};
g.h.MM=function(a){iQ(this,.1,a.scale)};
g.h.li=function(){var a=g.wL(this.api).getPlayerSize(),b=g.xL(this.api),c=650<=a.width;g.Iv&&AM(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.ce());g.K(b,"ytp-big-mode",this.jc());this.B&&this.B.u(a)};
g.h.jM=function(a){this.Ij(a.state);this.wg()};
g.h.Vq=function(){var a=!!this.Xb&&!g.tL(this.api),b=2==this.api.getPresentingPlayerType(),c=this.api.N();if(b){if(Xpa&&g.Q(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=rM(g.sL(this.api));a&&(null===b.o?a=!1:(a=b.o,a=(b=a.o.getVideoData(2))?b.isListed&&!a.U:!1));return a}return a&&(c.Df||this.api.isFullscreen()||c.Xb)};
g.h.wg=function(){var a=this.Vq();this.F!=a&&(this.F=a,g.K(g.xL(this.api),"ytp-hide-info-bar",!a))};
g.h.Ij=function(a){var b;(b=a.isCued())||(b=((b=g.U(this.api.app,void 0))?tK(b):!0)&&3!=this.api.getPresentingPlayerType());b!=this.isCued&&(this.isCued=b,this.dd&&this.Xa(this.dd),this.dd=this.L(g.wL(this.api),"touchstart",this.PM,void 0,b));var c=g.xD(a)&&!g.W(a,32)||LL(this.api);this.u.Qb(128,!c);c=3==this.api.getPresentingPlayerType();this.u.Qb(256,c);c=g.xL(this.api);if(g.W(a,2))var d=["ended-mode"];else d=[],g.W(a,8)?d.push("playing-mode"):g.W(a,4)&&d.push("paused-mode"),g.W(a,1)&&!g.W(a,32)&&
d.push("buffering-mode"),g.W(a,32)&&d.push("seeking-mode"),g.W(a,64)&&d.push("unstarted-mode");g.ub(this.Wa,d)||(g.Nn(c,this.Wa),this.Wa=d,g.Ln(c,d));d=this.api.N();var e=g.W(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.Wb);g.W(a,128)&&!g.vx(d)?(this.B||(this.B=new g.rN(this.api),g.C(this,this.B),g.RL(this.api,this.B.element,4)),this.B.B(a.u),this.B.show()):this.B&&(this.B.dispose(),this.B=null)};
g.h.Qf=function(){return g.GL(this.api)&&g.HL(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.tL(this.api)?(g.vL(this.api,!0),!0):!1};
g.h.FI=function(a){this.Wb=a;this.Sd()};
g.h.jc=function(){return!1};
g.h.ce=function(){return!this.jc()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.hj=function(){return this.Hc};
g.h.sl=function(){return null};
g.h.Fs=function(){var a=g.wL(this.api).getPlayerSize();return new g.sh(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.Cj=function(){};
g.h.showControls=function(a){if(void 0!=a){var b=g.wL(this.api);Ax(b.app.N());b.C=!a;GS(b)}};
g.h.Hs=function(){};
g.h.lx=function(){return null};var Fka={seekableStart:0,seekableEnd:1,current:0};g.r(jQ,g.HC);jQ.prototype.B=function(){var a=this.w.getProgressState();this.F.style.width=100*IN(new FN(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
jQ.prototype.C=function(){g.Kx(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.pg(this.u),this.u=-1))};g.r(kQ,g.P);g.h=kQ.prototype;g.h.Nz=function(){return 1E3*this.o.getDuration(this.w)};
g.h.stop=function(){this.A&&this.u.Xa(this.A)};
g.h.Oz=function(){var a=this.o.getProgressState(this.w);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.Q(this.o.N().experiments,"halftime_ux_killswitch")?a.current:this.o.getCurrentTime(this.w,!1)};this.R("b")};
g.h.getProgressState=function(){return this.B};
g.h.tJ=function(a){g.ED(a,2)&&this.R("a")};g.r(lQ,g.V);lQ.prototype.w=function(){this.u.ma("BACK_CLICKED")};g.r(g.mQ,g.V);g.mQ.prototype.show=function(){g.V.prototype.show.call(this);g.Bn(this.u)};
g.mQ.prototype.hide=function(){this.A.stop();g.V.prototype.hide.call(this)};g.r(sQ,g.V);sQ.prototype.Y=function(){this.u&&this.u();g.V.prototype.Y.call(this)};
sQ.prototype.F=function(){g.To("iv-button-mouseover")};
sQ.prototype.C=function(a){g.GL(this.w);var b=g.Kn(g.xL(this.w),"ytp-cards-teaser-shown");g.To("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.w.setCardsVisible(!g.HL(this.w),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.r(tQ,g.V);g.h=tQ.prototype;g.h.tC=function(){g.GL(this.w)&&g.HL(this.w)&&this.Ea()&&4!==this.F.state&&this.yl()};
g.h.RO=function(){this.yl();g.To("iv-teaser-clicked",!!this.u);this.w.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.GI=function(){g.To("iv-teaser-mouseover");this.u&&this.u.stop()};
g.h.mN=function(a){this.u||!a||g.HL(this.w)||this.A&&this.A.isActive()||(Gka(this,a),g.To("iv-teaser-shown"))};
g.h.Us=function(){if(g.vx(this.w.N())&&this.Ea()){var a=this.C.element.offsetLeft,b=g.de("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.eE=function(){g.vx(this.w.N())&&this.S.ce()&&this.Ea()&&this.O.start()};
g.h.zA=function(){this.H.stop();this.u&&this.u.isActive()&&this.J.start()};
g.h.yA=function(){this.J.stop();this.u&&!this.u.isActive()&&this.H.start()};
g.h.LL=function(){this.u&&this.u.stop()};
g.h.IL=function(){this.yl()};
g.h.yl=function(){!this.u||this.B&&this.B.isActive()||(g.To("iv-teaser-hidden"),this.F.hide(),g.Mn(g.xL(this.w),"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.Xa(b.value);this.G=[];this.u&&(this.u.dispose(),this.u=null);rQ(this.C,!0)},330,this),this.B.start())};
g.h.Y=function(){var a=g.xL(this.w);a&&g.Mn(a,"ytp-cards-teaser-shown");g.Ie(this.A,this.B,this.u);g.V.prototype.Y.call(this)};g.r(uQ,g.V);uQ.prototype.B=function(){g.WL(this.w,this.element);var a=!this.u;this.ha("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.ha("pressed",a);vQ(this,a)};g.r(g.zQ,g.V);g.zQ.prototype.B=function(){g.J(this.element,"ytp-sb-subscribed")};
g.zQ.prototype.C=function(){g.Mn(this.element,"ytp-sb-subscribed")};g.Ia("yt.pubsub.publish",g.To,void 0);g.r(CQ,g.V);CQ.prototype.O=function(){GQ(this);this.w.classList.remove("ytp-title-expanded")};
CQ.prototype.H=function(){if(DQ(this)&&!EQ(this)){this.ha("channelTitleFocusable","0");this.F&&this.F.stop();this.A&&(this.A.show(),g.XL(this.u,this.A.element,!0));var a=this.u.getVideoData();this.C&&a.Kj&&a.subscribed&&(this.C.show(),g.XL(this.u,this.C.element,!0));this.w.classList.add("ytp-title-expanded");this.w.classList.add("ytp-title-show-expanded")}};
CQ.prototype.G=function(){this.ha("channelTitleFocusable","-1");this.F&&this.F.start()};
CQ.prototype.J=function(){var a=this.u.getVideoData(),b=this.u.N(),c=!1;2===this.u.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Mf&&!!a.Od:g.vx(b)&&(c=!!a.videoId&&!!a.Mf&&!!a.Od);b=g.dy(this.u.N())+a.Mf;g.vx(this.u.N())&&(b=g.Ad(b,g.GD({},"emb_subscribe_title")));var d=a.Mf,e=a.Od,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.dy(this.u.N())+d,this.B.style.backgroundImage="url("+e+")",this.ha("channelLink",d),this.ha("channelLogoLabel",g.gN("Photo image of $CHANNEL_NAME",
{CHANNEL_NAME:f})),g.J(g.xL(this.u),"ytp-title-enable-channel-logo")):g.Mn(g.xL(this.u),"ytp-title-enable-channel-logo");g.XL(this.u,this.B,c&&this.P);this.A&&(this.A.u=a.xg);this.ha("expandedTitle",a.Mq);this.ha("channelTitleLink",b);this.ha("expandedSubtitle",a.expandedSubtitle)};g.r(HQ,g.JC);HQ.prototype.u=function(a){g.Fp(a)||39!=g.Gp(a)||(this.element.click(),g.Ep(a))};g.r(MQ,g.WO);g.h=MQ.prototype;g.h.KK=function(){pN(this.H.element)};
g.h.YK=function(){NQ(this,this.u.getDebugText(!0))&&nQ(this.U,EM())};
g.h.ZK=function(){NQ(this,this.u.getVideoEmbedCode())&&nQ(this.U,MM());g.WL(this.u,this.w.element);JQ("EMBED",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.bL=function(){NQ(this,this.u.getVideoUrl(!0,!0))&&nQ(this.U,RM());g.WL(this.u,this.B.element);JQ("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.aL=function(){NQ(this,this.u.getVideoUrl(!1,!0))&&nQ(this.U,RM());g.WL(this.u,this.A.element);JQ("COPY_PASTE",this.u.getVideoData().videoId,this.u.getPlaylistId()||void 0)};
g.h.vA=function(a){this.C.setValue(a)};
g.h.uL=function(){var a=this.C.getValue();ET(this.u.app,a);this.O.kb();g.WL(this.u,this.C.element)};
g.h.CM=function(a){this.u.reportPlaybackIssue();if(g.mN(a,this.u,!Rx(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.ma("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.O.kb()};
g.h.YM=function(){this.u.showVideoInfo();this.O.kb()};
g.h.KI=function(a,b){LQ(this,b)};
g.h.Ua=function(a){g.WO.prototype.Ua.call(this,a);g.XL(this.u,this.w.element,a);g.XL(this.u,this.B.element,a);g.XL(this.u,this.A.element,a);g.XL(this.u,this.C.element,a)};g.r(g.PQ,g.eP);g.h=g.PQ.prototype;g.h.show=function(){this.B||(this.B=new MQ(this.w,this.ea,this,this.Z),g.C(this,this.B),g.iP(this,this.B));this.B.vA(jL(this.w.app.C));g.eP.prototype.show.call(this);g.XL(this.w,this.element,!0);this.B.Ua(!0)};
g.h.hide=function(){OQ(this);g.eP.prototype.hide.call(this);g.XL(this.w,this.element,!1);this.B&&this.B.Ua(!1)};
g.h.JK=function(a){var b=Bp(a);if(!(this.Ea()||b&&(g.De(b,"a")||g.De(b,null,"ytp-no-contextmenu",void 0)))){g.Ep(a);QQ(this);b=this.w.getVideoData();g.K(this.element,"ytp-dni",b.tc);this.element.style.left="";this.element.style.top="";a=Dp(a);a.x++;a.y++;this.Fd();var c=document.body;b=new ph(0,Infinity,Infinity,0);var d=$d(c);for(var e=d.o.body,f=d.o.documentElement,k=he(d.o);c=Hh(c);)if(!(g.ie&&0==c.clientWidth||g.ke&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Bh(c,"overflow")){var l=g.Ih(c),
m=new g.Sd(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=ge(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.sh(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Eh(this.element,new g.Sd(d.left,d.top));g.yr(this.G);this.G.L(document,"contextmenu",this.QK);this.G.L(this.w,"fullscreentoggled",this.LI);this.G.L(this.w,"pageTransition",this.ZL)}};
g.h.QK=function(a){if(!g.Fp(a)){var b=Bp(a);g.xe(this.element,b)||this.kb();this.w.N().Yj&&g.Ep(a)}};
g.h.LI=function(){this.kb();QQ(this)};
g.h.ZL=function(){this.kb()};g.r(RQ,g.V);
RQ.prototype.F=function(){var a=this.u.N(),b=this.u.getVideoData(),c=this.u.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);b=!1;c=g.pe("TEXTAREA");c.value=a;c.setAttribute("readonly","");document.body.appendChild(c);if(ol){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&&Ika(this);g.WL(this.u,this.element)};
RQ.prototype.A=function(){var a=this.u.N(),b=this.u.getVideoData();this.C.ce()&&g.vx(a)&&a.B?this.ha("icon",{D:"div",X:["ytp-icon","ytp-icon-share-copylink-large"]}):this.ha("icon",g.X?{D:"div",X:["ytp-icon","ytp-icon-share-copylink"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.ha("title-attr","Copy link");a=g.wL(this.u).getPlayerSize().width;this.w=!!b.videoId&&300<=a&&b.Zl;g.K(this.element,"ytp-copylink-button-visible",this.w);g.GC(this,this.w);HO(this.B);g.XL(this.u,this.element,this.w&&this.P)};
RQ.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.w&&a)};
RQ.prototype.Y=function(){g.V.prototype.Y.call(this);g.Mn(this.element,"ytp-copylink-button-visible")};g.r(TQ,g.V);TQ.prototype.show=function(){g.V.prototype.show.call(this);g.Bn(this.u)};
TQ.prototype.hide=function(){this.A.stop();g.V.prototype.hide.call(this)};g.r(g.UQ,g.O);g.h=g.UQ.prototype;
g.h.Bx=function(a){var b=!1,c=g.Gp(a),d=Bp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.o.N();g.Fp(a)?(e=!1,k=!0):l.Eb&&(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);pQ(this.u,f,!1);this.o.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.o.getVolume()-5,0);pQ(this.u,f,!0);this.o.setVolume(f);k=f=!0;break;case 36:this.o.Nc()&&(this.o.seekTo(0),k=f=!0);break;
case 35:this.o.Nc()&&(this.o.seekTo(Infinity),k=f=!0)}}b&&this.Yt(!0);(b||k)&&this.B.Qb(2,!0);(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Ep(a);l.Db&&(a={keyCode:g.Gp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Fp(a),fullscreen:this.o.isFullscreen()},this.o.ma("onKeyPress",a))};
g.h.Cx=function(a){this.handleGlobalKeyUp(g.Gp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.EL(g.sL(this.o));c&&(c=c.u)&&c.Ea()&&(c.zx(a),b=!0);9==a&&(this.Yt(!0),b=!0);return b};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){d=!1;c=this.o.N();if(c.Eb)return d;if((e=g.EL(g.sL(this.o)))&&(e=e.u)&&e.Ea())switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:d=e.yx(a)}c.Yb||d||(f=f||String.fromCharCode(a).toLowerCase(),this.w+=f,0=="awesome".indexOf(this.w)?(d=!0,7==this.w.length&&(f=g.xL(this.o),e=!g.Kn(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.H&&(nQ(this.u,YM(),"Previous"),
this.o.previousVideo(),d=!0);break;case 78:b&&!c.H&&(nQ(this.u,TM(),"Next"),this.o.nextVideo(),d=!0);break;case 74:this.o.Nc()&&(nQ(this.u,g.X?{D:"div",X:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.Nc()&&(nQ(this.u,g.X?{D:"div",X:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.Nc()&&(nQ(this.u,g.X?{D:"div",X:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.Nc()&&(nQ(this.u,g.X?{D:"div",X:["ytp-icon","ytp-icon-forward-five-seconds"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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(),pQ(this.u,this.o.getVolume(),!1)):(this.o.mute(),pQ(this.u,0,!0));d=!0;break;case 32:case 75:c.H||(b=!g.yD(g.zL(this.o)),g.oQ(this.u,b),b?this.o.playVideo():this.o.pauseVideo(),d=!0);break;case 190:b?c.ya&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b+.25,!0),qQ(this.u,!1),d=!0):this.o.Nc()&&(WQ(this,1),d=!0);break;case 188:b?c.ya&&(b=this.o.getPlaybackRate(),this.o.setPlaybackRate(b-.25,!0),qQ(this.u,
!0),d=!0):this.o.Nc()&&(WQ(this,-1),d=!0);break;case 70:lN(this.o)&&(this.o.toggleFullscreen(),d=!0);break;case 27:this.C()&&(d=!0)}if("3"!=c.controlsType)switch(a){case 67:g.kM(g.sL(this.o))&&(b=this.o.getOption("captions","track"),this.o.toggleSubtitles(),b=!b||b&&!b.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off",nQ(this.u,LM(),b),d=!0);break;case 79:VQ(this,"textOpacity");break;case 87:VQ(this,"windowOpacity");break;case 187:case 61:VQ(this,"fontSizeIncrement",!1,!0);
break;case 189:case 173:VQ(this,"fontSizeIncrement",!0,!0)}var k;48<=a&&57>=a?k=a-48:96<=a&&105>=a&&(k=a-96);null!=k&&this.o.Nc()&&(a=this.o.getProgressState(),this.o.seekTo(k/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),d=!0);d&&this.B.Qb(2,!0)}return d};
g.h.Yt=function(a){g.K(g.xL(this.o),"ytp-probably-keyboard-focus",a);g.K(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.Cz=function(a){g.kM(g.sL(this.o))&&this.o.setOption("captions","sampleSubtitles",a)};
g.h.Y=function(){g.Dn(this.A);g.O.prototype.Y.call(this)};g.r(XQ,pO);g.h=XQ.prototype;g.h.TI=function(a){a=Bp(a);g.xe(this.element,a)&&(g.xe(this.F,a)||g.xe(this.A,a)||this.Ze())};
g.h.kb=function(){pO.prototype.kb.call(this);this.B.df(this.element)};
g.h.show=function(){this.Ea()&&this.C.R("OVERFLOW_PANEL_OPENED");pO.prototype.show.call(this);ZQ(this,!0)};
g.h.hide=function(){pO.prototype.hide.call(this);ZQ(this,!1)};
g.h.SI=function(a){!a&&rO(this)&&this.Ze()};
g.h.focus=function(){0<this.w.length&&this.w[0]&&this.w[0].focus()};g.r($Q,g.V);$Q.prototype.A=function(){var a=g.vx(this.u.N())&&g.BL(this.u)&&g.W(g.zL(this.u),128);this.w=this.C.ce()&&!a;g.K(this.element,"ytp-overflow-button-visible",this.w);this.w&&HO(this.B);g.XL(this.u,this.element,this.w&&this.P)};
$Q.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.w&&a)};
$Q.prototype.Y=function(){g.V.prototype.Y.call(this);g.Mn(this.element,"ytp-overflow-button-visible")};g.r(aR,g.V);aR.prototype.A=function(a){g.mN(a,this.u)&&this.u.playVideoAt(this.w)};g.r(bR,pO);g.h=bR.prototype;g.h.show=function(){pO.prototype.show.call(this);this.F.L(this.A,"videodatachange",this.Ws);this.F.L(this.A,"onPlaylistUpdate",this.Ws);this.Ws()};
g.h.hide=function(){pO.prototype.hide.call(this);g.yr(this.F);cR(this,null)};
g.h.Ws=function(){cR(this,this.A.getPlaylist())};
g.h.fp=function(){var a=this.w.F;if(a==this.G)this.B.element.setAttribute("aria-checked",!1),this.B=this.C[this.w.o];else{for(var b=g.q(this.C),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.w.w;this.C=[];for(c=0;c<b;c++){var d=new aR(this.A,this.w,c);this.C.push(d);d.ba(this.Ga)}this.B=this.C[this.w.o];this.G=a}this.B&&this.B.element.setAttribute("aria-checked",!0)};
g.h.qN=function(a){var b=this.A.getVideoUrl(!0);g.nN(b,this.A,a)};
g.h.focus=function(){this.B.focus()};
g.h.Y=function(){this.hide();pO.prototype.Y.call(this)};g.r(dR,g.V);dR.prototype.A=function(){var a=g.vx(this.w.N());g.K(this.element,"ytp-playlist-menu-button-tiny",400>g.wL(this.w).getPlayerSize().width&&!a);this.u&&2!=this.w.getPresentingPlayerType()?(this.update({text:g.gN("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.u.o+1),PLAYLIST_LENGTH:String(this.u.w)}),title:g.gN("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.u.title})}),this.Ea()||(this.show(),HO(this.B)),this.F=!0):this.Ea()&&(this.hide(),HO(this.B))};
dR.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.w,this.element,this.F&&a)};
dR.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(eR,g.V);
eR.prototype.C=function(a){if(a){this.u=a;a=this.u.text;var b=!1;a&&(this.update({title:a}),b=!0);g.Qh(this.S,b);a=this.u.detailsText;b=!1;a&&(this.update({details:a}),b=!0);g.Qh(this.H,b);a=this.u.acceptButton;b=!1;a&&a.buttonRenderer&&(this.update({acceptButtonText:a.buttonRenderer.text}),b=!0);g.Qh(this.G,b);a=this.u.dismissButton;b=!1;a&&a.buttonRenderer&&(this.update({dismissButtonText:a.buttonRenderer.text}),b=!0);g.Qh(this.J,b)}a=document.querySelectorAll('[data-tooltip-target-id="'+this.u.targetId+
'"]');this.A=0<a.length?a[0]:null;this.w=!0;g.GC(this,this.w);this.A?(a=g.Ph(this.A),a.width&&a.height?(this.O.Cj(this.element,this.A),b=g.wL(this.F).getPlayerSize().height-g.Ph(this.element).height-a.height-12,this.element.style.top=b+"px",b=this.o["ytp-promotooltip-pointer"],a=g.Mh(this.A,g.xL(this.F)).x-parseInt(this.element.style.left,10)+a.width/2-12,b.style.left=a+"px"):this.B()):this.B()};
eR.prototype.B=function(){this.w=!1;g.GC(this,this.w)};g.r(fR,g.V);fR.prototype.A=function(a){g.GC(this,g.W(a.state,2))};
fR.prototype.w=function(){g.zL(this.u);this.u.playVideo()};g.r(g.gR,pO);g.h=g.gR.prototype;g.h.dJ=function(a){a=Bp(a);g.xe(this.O,a)||g.xe(this.F,a)||this.Ze()};
g.h.kb=function(){pO.prototype.kb.call(this);this.A.df(this.element)};
g.h.show=function(){var a=this.Ea();pO.prototype.show.call(this);this.Xs();a||this.w.ma("onSharePanelOpened")};
g.h.Xs=function(){g.J(this.element,"ytp-share-panel-loading");g.Mn(this.element,"ytp-share-panel-fail");var a=this.w.getVideoData(),b=this.w.getPlaylistId(),c=b&&this.G.checked;g.K(this.element,"ytp-share-panel-has-playlist",!!b);a={action_get_share_info:1,video_id:a.videoId};var d=this.w.N();d.Kc&&(a.authuser=d.Kc);d.pageId&&(a.pageid=d.pageId);g.vx(d)&&g.GD(a,"emb_share");c&&(a.list=b);g.xq(d.C+"share_ajax",{method:"GET",onError:(0,g.x)(this.UB,this),onSuccess:(0,g.x)(function(e,f){if(f){if(!this.la()){g.Mn(this.element,
"ytp-share-panel-loading");hR(this);for(var k=f.links,l=0,m=0;m<k.length&&2>l;m++){var n=k[m];a:switch(n.img){case "facebook":var p=g.X?{D:"div",X:["ytp-icon","ytp-icon-share-facebook"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",M:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",M:{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":p=g.X?{D:"div",X:["ytp-icon","ytp-icon-share-twitter"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",M:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",M:{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:p=null}p&&(p=new g.V({D:"a",X:["ytp-share-panel-service-button","ytp-button"],M:{href:n.url,target:"_blank",title:n.sname},K:[p]}),p.ia("click",g.Sa(this.UM,n.url)),g.Ge(p,g.BN(this.A,p.element)),this.B.push(p),l++)}k=new g.V({D:"a",X:["ytp-share-panel-service-button","ytp-button"],K:[{D:"span",I:"ytp-share-panel-service-button-more",K:[g.X?{D:"div",X:["ytp-icon","ytp-icon-share-more"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{D:"rect",
M:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",M:{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"}}]}]}],M:{href:f.more,target:"_blank",title:"More"}});k.ia("click",(0,g.x)(this.FL,this,f.more));g.Ge(k,g.BN(this.A,k.element));this.B.push(k);this.ha("buttons",this.B)}}else this.UB(null,null)},this),
Ud:a,withCredentials:!0});b=this.w.getVideoUrl(!0,!0,!1,!0);this.ha("link",b);this.ha("linkText",b);this.ha("shareLinkWithUrl",g.gN("Share link $URL",{URL:b}));pN(this.C)};
g.h.UB=function(){g.Mn(this.element,"ytp-share-panel-loading");g.J(this.element,"ytp-share-panel-fail")};
g.h.UM=function(a,b){if(g.yM(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.vc?a:g.zc("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(Hd()&&d.navigator&&d.navigator.standalone&&
f&&"_self"!=f)l=g.pe("A"),g.ad(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=d.open("",f,l),c=g.wc(e),d&&(g.Yx&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),d.opener=null,c=g.Zc(g.$b("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.fd(c)+'">'),e=d.document))e.write(g.Uc(c)),
e.close()}else(d=d.open(g.wc(e),f,l))&&c.noopener&&(d.opener=null);if(c=d)c.opener||(c.opener=window),c.focus();g.Ep(b)}};
g.h.FL=function(a,b){g.nN(a,this.w,b)&&this.w.ma("SHARE_CLICKED")};
g.h.cJ=function(a){!a&&rO(this)&&this.Ze()};
g.h.focus=function(){this.C.focus()};
g.h.Y=function(){pO.prototype.Y.call(this);hR(this)};g.r(g.iR,g.V);g.iR.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.Qf(),this.H.Ze(this.element,!1));g.WL(this.u,this.element)};
g.iR.prototype.A=function(){var a=this.u.N(),b=this.u.getVideoData(),c=this.B.ce()&&g.vx(a),d=g.vx(a)&&g.BL(this.u)&&g.W(g.zL(this.u),128);this.ha("icon",c&&a.B?{D:"div",X:["ytp-icon","ytp-icon-sharrow-large"]}:g.X?{D:"div",X:["ytp-icon","ytp-icon-sharrow"]}:{D:"svg",M:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{D:"path",Ka:!0,I:"ytp-svg-fill",M:{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.Zl||d;c=g.wL(this.u).getPlayerSize().width;this.w=!!b.videoId&&c>=this.F&&!a;g.K(this.element,"ytp-share-button-visible",this.w);g.GC(this,this.w);HO(this.C);g.XL(this.u,this.element,this.w&&this.P)};
g.iR.prototype.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.w&&a)};
g.iR.prototype.Y=function(){g.V.prototype.Y.call(this);g.Mn(this.element,"ytp-share-button-visible")};g.r(kR,pO);kR.prototype.show=function(){pO.prototype.show.call(this);this.C.start()};
kR.prototype.hide=function(){pO.prototype.hide.call(this);this.C.stop()};
kR.prototype.Z=function(){var a=this.w.getCurrentTime();a>this.B/1E3&&a<this.A/1E3&&this.show()};g.r(lR,g.V);lR.prototype.C=function(a){g.WL(this.u,this.element);var b=this.u.getVideoUrl(!g.yM(a),!1,!0);g.vx(this.u.N())&&(b=g.Ad(b,g.GD({},"emb_title")));g.nN(b,this.u,a)};
lR.prototype.A=function(){var a=this.u.getVideoData(),b=this.u.N();this.ha("title",a.title);mR(this);if(2==this.u.getPresentingPlayerType()){var c=this.u.getVideoData();c.videoId&&c.isListed&&c.author&&c.Mf&&c.Od?(this.ha("channelLink",c.Mf),this.ha("channelName",c.author)):mR(this)}c=b.externalFullscreen||!this.u.isFullscreen()&&b.Xb;g.K(this.B,"ytp-title-fullerscreen-link",c);b.G||!a.videoId||c?this.w&&(this.ha("url",null),this.Xa(this.w),this.w=null):(this.ha("url",this.u.getVideoUrl(!0)),this.w||
(this.w=this.L(this.B,"click",this.C)))};g.r(g.nR,g.V);g.h=g.nR.prototype;g.h.KL=function(a){3==this.w&&this.lf();(a=a.currentTarget)&&1==a.nodeType&&!this.w&&(a.removeEventListener("mouseover",this.F),a.addEventListener("mouseout",this.Z),g.Q(this.O.experiments,"show_tooltip_on_tab_killswitch")||(a.removeEventListener("focus",this.F),a.addEventListener("blur",this.Z)),rR(this,a,2))};
g.h.HL=function(a){(a=Cp(a))&&g.xe(this.u,a)||this.lf()};
g.h.sA=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;oR(this,c)}};
g.h.iG=function(){Xz(this.A,this.C,160*this.B)};
g.h.lf=function(){switch(this.w){case 2:this.u.removeEventListener("mouseout",this.Z),this.u.addEventListener("mouseover",this.F),g.Q(this.O.experiments,"show_tooltip_on_tab_killswitch")||(this.u.removeEventListener("blur",this.Z),this.u.addEventListener("focus",this.F));case 3:3==this.w&&this.ga.stop();this.S.removeEventListener("appresize",this.ca);this.V||this.u.setAttribute("title",this.G);this.G="";this.u=null;break;case 1:this.A&&(this.A.unsubscribe("l",this.sA,this),this.A=null),this.S.removeEventListener("videoready",
this.ca),this.da.stop()}this.w=null;this.U&&this.J.hide()};
g.h.df=function(a){if(this.u)for(var b=0;b<arguments.length;b++)g.xe(arguments[b],this.u)&&this.lf()};
g.h.Y=function(){null!=this.w&&this.lf();g.V.prototype.Y.call(this)};g.r(g.wR,g.V);g.h=g.wR.prototype;g.h.oc=function(){var a=this.u.getPlayerSize(),b=this.u.N(),c=this.u.getVideoData(),d=g.vx(b)&&g.BL(this.u)&&g.W(g.zL(this.u),128);this.C=b.yi&&300<=a.width&&!c.isAd()&&c.yi&&!d;g.GC(this,this.C);this.B&&zR(this,this.B);g.XL(this.u,this.element,this.C&&this.P)};
g.h.UA=function(){this.w=!0;this.A=!1;vR(this,1);this.u.N().o&&SQ(this.F,this.element);this.u.N().Db&&this.u.ma("WATCH_LATER_VIDEO_ADDED")};
g.h.Mz=function(){return this.u.getVideoData().videoId};
g.h.qJ=function(){var a=this;g.WL(this.u,this.element);var b=this.u.N(),c=this.Mz();b.Kc?uR(this,c):this.u.app.Fa?eM(function(){Kq("embedsItpWatchLaterResult",{accepted:!0});pp();xR(a,c)},function(){Kq("embedsItpWatchLaterResult",{accepted:!1});
yR(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):xR(this,c)};
g.h.GN=function(a,b){this.A=!1;var c="An error occurred. Please try again later.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);yR(this,c)};
g.h.HN=function(){this.A=!1;yR(this,"An error occurred. Please try again later.")};
g.h.VA=function(){this.A=this.w=!1;vR(this,2);this.u.N().Db&&this.u.ma("WATCH_LATER_VIDEO_REMOVED")};
g.h.rJ=function(){this.A=this.w=!1;vR(this,2)};
g.h.Ua=function(a){g.V.prototype.Ua.call(this,a);g.XL(this.u,this.element,this.C&&a)};g.r(AR,g.aQ);g.h=AR.prototype;g.h.Za=function(){return this.J};
g.h.lx=function(){return this.o};
g.h.Nh=function(a,b){b?this.na=a:this.na=null;this.Sd()};
g.h.qk=function(a,b){if(b)this.O.push(a);else for(var c=this.O.length;0<=c;c--)if(this.O[c]==a){this.O.splice(c,1);break}this.u.Qb(64,0<this.O.length)};
g.h.sh=function(){g.GL(this.api)&&g.HL(this.api);bQ(this);KL(this.api);return!!this.na||BR(this)||g.aQ.prototype.sh.call(this)};
g.h.Sd=function(){var a=!this.sh(),b=a&&g.GL(this.api)&&!g.W(g.zL(this.api),2),c=this.ga&&g.BL(this.api)&&g.W(g.zL(this.api),128);a||c?(this.lc.show(),this.pc.show()):(this.lc.hide(),this.pc.hide(),this.J.df(this.A.element));b?(this.ra.A.show(),g.To("iv-button-shown")):(b=this.ra,g.To("iv-button-hidden"),b.A.hide());this.o&&VP(this.o,!a);g.aQ.prototype.Sd.call(this)};
g.h.Cj=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ph(a);d=d||this.o&&g.xe(this.o.u.element,b);if(null==c||!d){var k=g.Ph(b);var l=g.Mh(b,g.xL(this.api));null==c&&(c=l.x+k.width/2)}c-=f.width/2;d?(k=WP(this.o),l=XP(this.o),b=g.wL(this.api).getPlayerSize().height,c=g.Od(c,k,k+l-f.width),f=b-(this.o.A.jc()?72:50)-f.height):g.xe(this.A.element,b)?(k=g.wL(this.api).getPlayerSize().width,c=g.Od(c,12,k-f.width-12),f=this.jc()?this.xb:this.Eb,"gvn"==this.api.N().playerStyle&&
(f+=20),this.ga&&(f-=this.jc()?26:18)):(b=g.wL(this.api).getPlayerSize(),c=g.Od(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.Cl=function(a){a&&(this.J.df(this.A.element),this.o&&this.J.df(this.o.u.element));g.aQ.prototype.Cl.call(this,a)};
g.h.Fs=function(a,b){var c=g.wL(this.api).getPlayerSize();c=new g.sh(0,0,c.width,c.height);if(a||this.u.u&&!this.sh()){if(this.api.N().Df||b){var d=this.jc()?this.xb:this.Eb;c.top+=d;c.height-=d}this.o&&(c.height-=this.o.A.jc()?72:50)}return c};
g.h.HI=function(a){var b=g.xL(this.api);a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.N().externalFullscreen||(b.parentElement.insertBefore(this.Ha.element,b),b.parentElement.insertBefore(this.Fa.element,b.nextSibling))):g.M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),g.DC(this.Ha),g.DC(this.Fa));this.li();this.wg()};
g.h.jc=function(){return this.api.isFullscreen()||!1};
g.h.showControls=function(a){this.Gb=!a;this.Sd()};
g.h.li=function(){var a=this.jc();this.J.B=a?1.5:1;g.K(this.U.element,"ytp-big-mode",a);this.Sd();if(this.ce()&&this.w)this.H&&this.H.Ea()&&YQ(this.w,this.H),this.G&&this.G.Ea()&&YQ(this.w,this.G),this.C&&this.C.Ea()&&YQ(this.w,this.C);else{if(this.w){a=this.w;for(var b=g.q(a.w),c=b.next();!c.done;c=b.next())g.DC(c.value);a.w=[]}this.H&&!g.xe(this.da.element,this.H.element)&&this.H.ba(this.da.element);this.G&&!g.xe(this.da.element,this.G.element)&&this.G.ba(this.da.element);this.C&&!g.xe(this.da.element,
this.C.element)&&this.C.ba(this.da.element)}this.wg();g.aQ.prototype.li.call(this)};
g.h.Vq=function(){if(BR(this)&&!g.BL(this.api))return!1;var a=this.api.getVideoData();return!g.vx(this.api.N())||2==this.api.getPresentingPlayerType()||!this.hf||((a=this.hf||a.hf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.aQ.prototype.Vq.call(this):!1};
g.h.wg=function(){g.aQ.prototype.wg.call(this);g.XL(this.api,this.dc.element,!!this.F);this.xa&&this.xa.Ua(!!this.F);this.nb.Ua(!!this.F);this.Ja&&this.Ja.Ua(this.ce()&&!!this.F);this.G&&this.G.Ua(!this.ce()&&!!this.F);this.H&&this.H.Ua(!this.ce()&&!!this.F);this.C&&this.C.Ua(!this.ce()&&!!this.F);if(!this.F){this.J.df(this.A.element);for(var a=0;a<this.za.length;a++){var b=this.za[a];rO(b)&&b.kb()}}};
g.h.Ij=function(a){this.o&&VP(this.o,this.sh());this.Sd();g.aQ.prototype.Ij.call(this,a)};
g.h.WL=function(){LL(this.api)&&this.u.Qb(128,!1)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.ca?this.ca.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.ca?this.ca.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.Qf=function(){return this.U.Ea()?(this.U.kb(),!0):this.O.length?(this.O[this.O.length-1].kb(),!0):this.na?(this.na.kb(),!0):g.aQ.prototype.Qf.call(this)};
g.h.du=function(a,b){this.kd=b;this.qk(a,b);this.rC()};
g.h.rC=function(){var a=this.kd||rO(this.U);this.fb!=a&&(this.fb=a,this.api.ma("onAutonavPauseRequest",this.fb))};
g.h.GE=function(){CR(this,g.xL(this.api),!0).focus()};
g.h.HE=function(){CR(this,g.xL(this.api),!1).focus()};
g.h.sl=function(){return this.o&&this.o.o};
g.h.Hs=function(){this.u.Qb(2,!0)};
g.h.Kn=function(){this.S.hide()};
g.h.Ts=function(a){g.oQ(this.S,!g.yD(a))};
g.h.Ss=function(a,b,c,d){var e=this.Rb;g.Dn(e.u);e.A.start();e.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.wL(e.w).getPlayerSize().height;var k=g.wL(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.wL(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.gN("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:d.toString()});e.ha("seekTime",d)};
g.h.VB=function(){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.ya||(this.ya=new eR(a.tooltipRenderer,this,this.api),g.C(this,this.ya),g.RL(this.api,this.ya.element,8)),this.ya.C(a.tooltipRenderer))};g.r(g.DR,g.gM);g.DR.prototype.Bf=function(){return!1};
g.DR.prototype.create=function(){var a=this.player.N();Wx(a)&&a.o?this.o=new g.aQ(this.player):this.o=new AR(this.player);g.C(this,this.o);this.o.init();g.OL(this.player,"ux")};Ka(ER);var hT=g.w("ytPlayerUtilsVideoTagPoolInstance")||ER.getInstance();g.Ia("ytPlayerUtilsVideoTagPoolInstance",hT,void 0);g.h=ER.prototype;g.h.Hw=function(a){if(!(this.o.length>=a)){a-=this.o.length;for(var b=0;b<a;b++)GR(this)}};
g.h.aF=function(a,b){if(this.o.length)return this.o.pop();var c=GR(this,a,b);a||g.gb(this.o,c);return c};
g.h.gO=function(a){a&&g.cb(this.u,a)&&(a.src&&(ol&&0<a.readyState&&(a.currentTime=Math.max(Vqa,0)),a.removeAttribute("src"),a.load(),a.o&&a.o.u&&(a.o&&a.o.dispose(),a.o=null)),Jp(a),g.gb(this.u,a),g.gb(this.w,a))};
g.h.LF=function(a){return this.o.length>=(a||1)};
g.h.KD=function(){for(var a=this.w.length-1;0<=a;a--)FR(this,this.w[a]);this.o.length==this.u.length&&4<=this.o.length||(4>this.u.length?this.Hw(4):(this.o=[],(0,g.y)(this.u,function(b){FR(this,b)},this)))};
ER.prototype.fillPool=ER.prototype.Hw;ER.prototype.getTag=ER.prototype.aF;ER.prototype.releaseTag=ER.prototype.gO;ER.prototype.hasTags=ER.prototype.LF;ER.prototype.activateTags=ER.prototype.KD;g.r(g.HR,g.eC);g.h=g.HR.prototype;g.h.isView=function(){return!0};
g.h.ep=function(){var a=this.o.getCurrentTime();if(a<this.u)try{var b=this.o.md(),c=Yv(b,a);return!(this.u<c)}catch(d){}return!1};
g.h.Wi=function(){return aw(this.o.Wi(),this.u,this.A)};
g.h.md=function(){return aw(this.o.md(),this.u,this.A)};
g.h.Bk=function(){return aw(this.o.Bk(),this.u,this.A)};
g.h.getCurrentTime=function(){return this.o.getCurrentTime()-this.u};
g.h.ip=function(a){this.o.ip(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.ep()){this.o.getCurrentTime();try{this.o.ip(this.u)}catch(a){}}return this.o.play()};
g.h.Ya=function(){var a=g.eC.prototype.Ya.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.no=function(){return this.o.no()};
g.h.qj=function(a){this.o.qj(a)};
g.h.mo=function(){return this.o.mo()};
g.h.playVideo=function(){return this.o.playVideo()};
g.h.Iq=function(){this.o.Iq()};
g.h.Eq=function(){this.o.Eq()};
g.h.fh=function(){return this.o.fh()};
g.h.gb=function(){return this.o.gb()};
g.h.Tc=function(){return this.o.Tc()};
g.h.kp=function(a){this.o.kp(a)};
g.h.bp=function(){this.o.bp()};
g.h.getPlaybackRate=function(){return this.o.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.o.setPlaybackRate(a)};
g.h.lo=function(){return this.o.lo()};
g.h.setLoop=function(a){this.o.setLoop(a)};
g.h.canPlayType=function(a,b){return this.o.canPlayType(a,b)};
g.h.gh=function(){return this.o.gh()};
g.h.ol=function(){return this.o.ol()};
g.h.qf=function(){return this.o.qf()};
g.h.yn=function(){return this.o.yn()};
g.h.rh=function(a){this.o.rh(a)};
g.h.oo=function(){return this.o.oo()};
g.h.load=function(){this.o.load()};
g.h.pause=function(){this.o.pause()};
g.h.fe=function(){return this.o.fe()};
g.h.zn=function(){return this.o.zn()};
g.h.Se=function(){return this.o.Se()};
g.h.ll=function(){return this.o.ll()};
g.h.nl=function(){return this.o.nl()};
g.h.fi=function(){return this.o.fi()};
g.h.ts=function(){return this.o.ts()};
g.h.togglePictureInPicture=function(){this.o.togglePictureInPicture()};
g.h.Pg=function(){return this.o.Pg()};
g.h.rj=function(){return this.o.rj()};
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.ck=ba(7);g.h.fm=ba(9);g.h.Di=ba(4);g.h.hk=ba(11);g.h.rk=function(){this.o.rk()};
g.h.Ck=function(a){return this.o.Ck(a)};
g.h.Br=function(){return this.o.Br()};
g.h.stopVideo=function(){this.o.stopVideo()};
g.h.Jq=function(a){this.o.Jq(a)};g.r(JR,g.A);g.h=JR.prototype;g.h.isFinished=function(){return 6==this.B.status};
g.h.getStatus=function(){return this.B};
g.h.Dh=function(){var a=this.u.getVideoData(),b=this.o.getVideoData(),c;if((c=a.va)&&!(c=!a.ka)){c=a.ka;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.Pb()&&(d=!0),k.info.video&&k.index.Pb()&&(e=!0);c.o["0"]&&(e=!0);c=d&&e}if(c)if(this.u.o){k=Oka(this.O,this.u,this.o,this.F);f=KR(this);c=f.qE;e=f.aA;d=f.pE;f=f.Zz;if(!this.H){var l=1E3*this.o.getCurrentTime(),m=this.u.getCurrentTime();m=1E3*(d-c-m);k&&"in-the-past"==k&&(m=0);a=a.isAd();var n=
this.o.B;n.o&&(n=n.o,n.J={sO:CI(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a),bA:l,iO:m,isAd:a});this.H=!0}k?IR(this,"cannot_apply_"+k+";transitionTimeMs."+this.F):2==this.B.status?PR(this):(a=this.u.G)&&hw(a)&&(!fw(a)&&g.hl()?IR(this,"mse_closed"):b.ka&&Py(b.ka)&&a.u&&!a.u.vn()?IR(this,"encr_upgrade"):(b=this.u.o,b.qf()?IR(this,"elem_ended"):0>e?IR(this,"next_player_future"):(this.G=d,this.w=lw(a,c,d,!0),this.A=lw(a,e,f,!1),a=this.o.getVideoData().clientPlaybackNonce,this.u.Sa("gaplessPrep",
"cpn."+a),UK(this.u,this.w),DK(this.u,LR(b,c,d,!this.u.getVideoData().isAd())),MR(this,2),PR(this))))}else IR(this,"no-elem")};
g.h.wj=function(a){var b=OR(this),c=a==b.RB;b=c?this.w.o:this.w.u;c=c?this.A.o:this.A.u;if(b.isActive()&&!c.isActive()){var d=this.G;Xv(a.Ad(),d-.01)&&(MR(this,4),b.setActive(!1),this.o.Sa("sbh","1"),c.setActive(!0));a=this.A.u;this.A.o.isActive()&&a.isActive()&&MR(this,5)}};
g.h.Y=function(){NR(this);if(this.w){var a=this.w.u;this.w.o.o.unsubscribe("updateend",this.wj,this);a.o.unsubscribe("updateend",this.wj,this)}g.A.prototype.Y.call(this)};
g.h.oz=function(a){g.ED(a,128)&&IR(this,"player-error-event")};g.r(QR,g.A);QR.prototype.clearQueue=function(){this.B&&this.B.reject("Queue cleared");RR(this)};
QR.prototype.Y=function(){RR(this);g.A.prototype.Y.call(this)};g.r(VR,g.A);VR.prototype.P=function(){};
VR.prototype.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)UR(this,a);else{b=this.A.qb();var d=b==this.w?this.B:null;$R(this,!1);this.G=a;null!=c&&this.C.start(c);b&&(this.B=d||b.getPlayerState(),NK(b),this.w=b)}};
VR.prototype.Y=function(){$R(this,!1);bM(this);g.A.prototype.Y.call(this)};
var Ska=0;g.r(cS,g.A);g.h=cS.prototype;g.h.yI=function(a){if(this.w==this.o.qb()){var b=this.F.get(a);b||dS(this,"e.unexpectedCueRangeTriggered");iS(this,b.target,b.Ee,a)}else{b=this.u.find(function(e){return e.Yd.Hb==a});
var c=b.Yd,d=c.target;c=c.Ee;d?iS(this,d,c,a):Wka(this,b.Lb,c,a)}};
g.h.tM=function(){var a=this.H;kS(this);a&&(jS(this,a)||dS(this,"e.unexpectedPresentingPlayer"),this.o.qb().addCueRange(a.Yd.Hb))};
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)bS(this,a);else{b=this.o.qb();var d=b==this.B?this.G:null;nS(this,!1);this.S=a;null!=c&&this.O.start(c);b&&(this.G=d||b.getPlayerState(),NK(b),this.B=b)}};
g.h.zI=function(a){var b=this;if(g.ED(a,128)){var c=this.u.find(function(d){return jS(b,d)});
c&&(kS(this),a=new g.qD(8),c=lS(this,c)/1E3,oS(this,c,a))}};
g.h.Y=function(){nS(this,!1);cM(this);g.A.prototype.Y.call(this)};
var Uka=0;g.r(uS,g.A);uS.prototype.get=function(a){sS(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
uS.prototype.set=function(a,b,c){this.remove(a,!0);sS(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())&&vS(this,c,!0);tS(this)};
uS.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(vS(this,c,b),g.ib(this.data,function(d){return d.key===a}),tS(this))};
uS.prototype.Y=function(){var a=this;g.A.prototype.Y.call(this);this.data.forEach(function(b){vS(a,b,!0)});
this.data=[]};g.r(wS,g.A);wS.prototype.w=function(a){this.u=a[a.length-1].intersectionRatio};
wS.prototype.Y=function(){g.A.prototype.Y.call(this);this.u=null;this.o&&this.o.disconnect()};var Xka=Ab(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),xS=!1;g.r(zS,g.V);g.h=zS.prototype;g.h.JF=function(){this.G=new g.sh(0,0,0,0);this.w=new g.sh(0,0,0,0)};
g.h.Go=function(a){g.Ln(this.element,arguments)};
g.h.Ae=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.w;b=!g.Vd(a,new g.Ud(b.width,b.height));var c=HS(this);b&&(this.w.width=a.width,this.w.height=a.height);a=this.app.N();(c||b||a.ga)&&this.app.u.R("resize",this.getPlayerSize())}}};
g.h.II=function(a,b){this.updateVideoData(b)};
g.h.KF=function(a){a.getVideoData()&&this.updateVideoData(a.getVideoData())};
g.h.updateVideoData=function(a){if(this.u){var b=this.app.N();ol&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));BB(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.tn&&a.videoId&&(this.u.poster=a.Ac("default.jpg"));g.Q(b.experiments,"html5_send_origin_for_progressive")&&a.va&&!a.va.o&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.HB(a,"yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.S=px(g.HB(a,"yt:stretch"));this.U=px(g.HB(a,"yt:crop"),!0);g.K(this.element,"ytp-dni",a.tc);this.Ae()};
g.h.setGlobalCrop=function(a){this.J=px(a,!0);this.Ae()};
g.h.getPlayerSize=function(){var a=this.app.N(),b=this.app.u.isFullscreen();if(b&&fl())return new g.Ud(window.outerWidth,window.outerHeight);if(b||a.zm){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.Ud(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.B.width)&&!isNaN(this.B.height))return this.B.clone();if(this.ca&&this.Z&&!this.app.isWidescreen())for(a=
0;a<this.ca.length;a++)if(b=this.ca[a],b.query.matches)return new g.Ud(b.size.width,b.size.height)}return new g.Ud(this.element.clientWidth,this.element.clientHeight)};
g.h.getVideoAspectRatio=function(){return isNaN(this.S)?CS(this):this.S};
g.h.getVideoContentRect=function(a){var b=this.getPlayerSize();a=DS(this,b,this.getVideoAspectRatio(),a);return new g.sh((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.vF=function(){this.u&&GS(this);FS(this)!=this.O&&this.Ae()};
g.h.JI=function(){GS(this)};
g.h.setUseFastSizingOnWatch=function(a){this.Z!=a&&(this.Z=a,this.Ae())};
g.h.setInternalSize=function(a){g.Vd(this.B,a)||(this.B=a,this.Ae())};
g.h.Y=function(){this.H&&g.So(this.H);AS(this);g.V.prototype.Y.call(this)};IS.prototype.click=function(a){this.o.has(a);this.u.has(a);var b=g.Vr();b&&a.visualElement&&g.ls(b,a.visualElement)};g.r(LS,g.V);g.r(NS,g.V);g.h=NS.prototype;g.h.show=function(){g.V.prototype.show.call(this);this.it()};
g.h.hide=function(){g.V.prototype.hide.call(this);this.u.stop()};
g.h.stop=function(){this.u.stop()};
g.h.start=function(){this.u.isActive()||this.it()};
g.h.it=function(){var a=(0,g.N)(),b=zC(this.F);MS(this.w,b.bandwidth_samples);MS(this.C,b.network_activity_samples);MS(this.B,b.live_latency_samples);MS(this.A,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.u.start(a)};pL.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];PS(this,b)};g.r(RS,QS);RS.prototype.u=function(a){return a.subscribeEndpoint};
RS.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(SS,QS);SS.prototype.u=function(a){return a.unsubscribeEndpoint};
SS.prototype.o=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};TS.prototype.fetch=function(a,b){var c=new Request(a,b);return Ff(fetch(c).then(function(d){return d.json()}))};US.prototype.getLocalMediaInfoById=function(a){return wo(this,function c(){return Ba(c,function(d){return d["return"](Wga(a))})})};
US.prototype.getAllLocalMediaInfo=function(){return wo(this,function b(){return Ba(b,function(c){return c["return"](Xga())})})};
US.prototype.w=function(){this.o.shift();0<this.o.length&&VS(this,this.o[0])};g.r(bT,g.A);g.h=bT.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return this.G.getVisibilityState(a,b,c,d,e,f)};
g.h.isVideoInfoVisible=function(){return!(!this.Z||!this.Z.Ea())};
g.h.setIsExternalPlaylist=function(a){this.ca=S(!1,a)};
g.h.kK=function(){fT(this)||g.BT(this,5)};
g.h.gM=function(a){fT(this)||(ZT(this),g.yD(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return Hv(a)};
g.h.N=function(){return this.o};
g.h.getVideoData=function(){return this.C.getVideoData()};
g.h.getVideoLoadedFraction=function(a){a=g.U(this,a);if(!a)return 0;var b=a.getVideoData();if(b.ka&&b.Aa&&b.Tb){var c=b.ka.o;b=!!c[b.Aa.id]&&gt(c[b.Aa.id].u.o)&&!!c[b.Tb.id]&&gt(c[b.Tb.id].u.o)}else b=!1;return b?1:(a=a.o)?kC(a):0};
g.h.Sc=function(){var a={},b=g.kM(this.A);b&&g.Ta(a,b.yG());a.fs=this.u.isFullscreen();a.volume=Math.round(this.u.getVolume());a.mos=this.u.isMuted()?1:0;if(g.Q(this.o.experiments,"html5_enable_embedded_player_visibility_signals")&&this.o.u&&(this.Jc&&(b=this.Jc,b=null==b.u?null:Math.round(100*b.u)/100,null!=b&&(a.inview=b)),b=this.H.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.Sx();1<c&&b.push(c);a.size=b.join(":")}!WS(this,"web_player_clips_vss_killswitch")&&
this.C==this.w&&this.J&&(a.clipid=this.J.postId);return a};
g.h.setLoopRange=function(a){var b=!1;!!this.J!==!!a?b=!0:this.J&&a&&(b=this.J.startTimeMs!==a.startTimeMs||this.J.endTimeMs!==a.endTimeMs||this.J.postId!==a.postId);b&&(WG(this.w.P,"applooprange"),a&&(b=new g.UD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.w.addCueRange(b)),this.J=a,this.u.ma("onLoopRangeChange",a),this.C==this.w&&(this.J&&!FT(this,this.w.getCurrentTime())&&this.Qt(),g.LI(this.C.B)))};
g.h.getLoopRange=function(){return this.J};
g.h.Qt=function(){this.w.seekTo(.001*this.J.startTimeMs)};
g.h.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=eT(this,a);this.w.getPlaybackRate()!=c&&(this.w.setPlaybackRate(c),b&&!this.o.u&&g.qs("yt-player-playback-rate",c),this.u.ma("onPlaybackRateChange",c))}};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3==this.getPresentingPlayerType())return g.AL(this.A).getCurrentTime();var c=g.U(this,a);return c?b?(c=rT(this,c),HT(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.h.getDuration=function(a,b){var c=g.U(this,a);return c?void 0===b||b?(c=qT(this,c),HT(this,c.getDuration(),c)):c.getDuration():0};
g.h.zb=function(a){a=g.U(this,a);if(!a)return 0;a=qT(this,a);return HT(this,a.zb(),a)};
g.h.getDebugText=function(a){var b=this.w.Ya(a);if(this.C&&this.C!=this.w&&(b=iU(b,this.C.Ya(a),"ad_"),a)){var c=b;var d={};var e;if(e=ae("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.de("video-ads");f?(gU(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.de("videoAdUiSkipContainer"),l=g.de("ytp-ad-skip-button-container"),m=k||l;m?(gU(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==Wd(this.B.rj()),b.op=this.B.Ck("opacity"),c=this.B.Pg().y+this.B.rj().height,b.yof=0>=c,b.dis=this.B.Ck("display"));(a=a?(0,g.nK)():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=JL(this.A))&&(b=iU(b,a.Ya(),"fresca_"));return JSON.stringify(b,null,2)};
g.h.getPresentingPlayerType=function(){return 1==this.U?1:fT(this)?3:g.U(this).getPlayerType()};
g.h.GG=function(a){switch(a.type){case "loadedmetadata":QA("fvb","")||this.O.tick("fvb");aB("fvb");this.xb.start();break;case "loadstart":QA("gv","")||this.O.tick("gv");aB("gv");break;case "progress":case "timeupdate":!QA("l2s","")&&2<=Zv(a.target.md())&&this.O.tick("l2s");break;case "playing":g.Yx&&this.xb.start();if(g.Jx(this.o))a=!1;else{var b=g.EL(this.A);a="none"==this.B.Ck("display")||0==Wd(this.B.rj());var c=FS(this.H),d=this.C.getVideoData(),e=Wx(this.o)||g.Ex(this.o);d=kB(d);b=!c||b||e||
d||this.o.Eg;a=a&&!b}a&&(this.C.Sa("hidden","1",!0),this.getVideoData().vf||(WS(this,"html5_new_elem_on_hidden")?(this.getVideoData().vf=1,this.BA(null),this.C.playVideo()):dU(this,"hidden",!0)))}};
g.h.oL=function(a,b){this.u.ma("onLoadProgress",b)};
g.h.jN=function(){this.u.R("playbackstalledatstart")};
g.h.HG=function(a,b){var c=rT(this,a);b=HT(this,c.getCurrentTime(),c);this.u.ma("onVideoProgress",b)};
g.h.RK=function(){this.u.ma("onDompaused")};
g.h.rM=function(){this.u.R("progresssync")};
g.h.CG=function(a){if(1==this.getPresentingPlayerType()){g.ED(a,1)&&!g.W(a.state,64)&&uT(this).ua&&this.w.isAtLiveHead()&&1<this.u.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.ED(a,2)&&mT(this);if(g.W(a.state,128)){var b=a.state;QT(this,5);b=b.u;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.u.ma("onError",Uqa[b.errorCode]||5);this.u.ma("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,zT:b.Kq});6048E5<(0,g.N)()-this.o.ra&&this.u.ma("onReloadRequired")}b=
{};if(g.xD(a.state)&&!g.AD(a.state)&&!QA("pbresume","ad_to_video")&&QA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);OA(b,"ad_to_video");ZA("pbresume",void 0,"ad_to_video")}this.u.R("applicationplayerstatechange",a)}};
g.h.TA=function(a){3!=this.getPresentingPlayerType()&&this.u.R("presentingplayerstatechange",a)};
g.h.EG=function(a){oT(this,BD(a.state));g.W(a.state,1024)&&this.u.isMutedByMutedAutoplay()&&(RC(this,{muted:!1,volume:this.P.volume},!1),CT(this,!1))};
g.h.kM=function(a){g.xD(a.state)&&!g.AD(a.state)&&(oM(this.A),g.yr(this.Gc))};
g.h.iK=function(a,b,c){"newdata"==a&&KT(this);(a=c.getPlayerResponse())&&(a=a.clipConfig)&&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.ma("onPlaybackAudioChange",this.u.getAudioTrack().rb.name)};
g.h.CN=function(a){var b=this.C.getVideoData();a==b&&this.u.ma("onPlaybackQualityChange",a.Aa.wa().quality)};
g.h.ls=function(a,b,c){b==this.w&&(this.o.nb=c.oauthToken);if("newdata"==a)qM(this.A,2),this.u.R("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"==a)if(this.C==this.w){if(c.La.Td(c.cB),!this.w.getPlayerState().isError()){var d=fT(this);uT(this).Pb();d&&g.BT(this,6);tT(this);d||(d=rM(this.A))&&!d.created&&lM(this.A)&&d.create()}}else tT(this);1==b.getPlayerType()&&(this.o.J&&fU(this),this.getVideoData().ua&&!this.o.Mm&&g.ZJ(this.w,"html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),
c.Pb()&&(c.Ll||c.Vo||c.Mc.focEnabled||c.Mc.rmktEnabled||this.getVideoData().Fv)&&(d=this.getVideoData(),NT(this,"part2viewed",1,0x8000000000000),NT(this,"engagedview",Math.max(1,1E3*d.Ke),0x8000000000000),d.ua||(d=1E3*d.lengthSeconds,NT(this,"videoplaytime25",.25*d,d),NT(this,"videoplaytime50",.5*d,d),NT(this,"videoplaytime75",.75*d,d),NT(this,"videoplaytime100",d,0x8000000000000),NT(this,"conversionview",d,0x8000000000000))));this.u.R("videodatachange",a,c,b.getPlayerType())}this.o.Db&&this.u.ma("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});b==this.w&&this.J&&!FT(this,this.w.getCurrentTime())&&this.Qt();a=c.clientScreenNonce;c=c.hp;a&&c?(b=this.na,a!=g.Vr()&&(Yr(a,c),KS(b))):KS(this.na)};
g.h.Xm=function(){xT(this,null);this.u.ma("onPlaylistUpdate")};
g.h.fA=function(a){var b=a.getId(),c=uT(this);if("part2viewed"==b)c.hB&&g.Uq(c.hB),c.Vo&&hU(this,c.Vo);else if("conversionview"==b){var d=this.w.B;d.u&&ND(d.u)}else"engagedview"==b&&g.Uq(c.Ll);if(c.iB){d=c.iB;var e={label:a.getId()};if(g.Q(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.hq(d,e);g.Uq(d)}switch(b){case "videoplaytime25":c.Ht&&hU(this,c.Ht);c.kB&&g.Uq(c.kB);break;case "videoplaytime50":c.It&&hU(this,
c.It);c.lB&&g.Uq(c.lB);break;case "videoplaytime75":c.Jt&&hU(this,c.Jt);c.mB&&g.Uq(c.mB);break;case "videoplaytime100":c.Gt&&hU(this,c.Gt),c.jB&&g.Uq(c.jB)}(b=this.getVideoData().Fv)&&OT(b,a.getId())&&OT(b,a.getId()+"gaia");this.w.removeCueRange(a)};
g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.U(this,a);if(!c)return!1;var d=qT(this,c);c=rT(this,c);return d!=c?d.isAtLiveHead(HT(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.h.seekTo=function(a,b,c,d){b=0!=b;if(d=g.U(this,d))2==this.U&&zT(this),this.Ob(d)?this.S?this.S.seekTo(a,b,c):this.ya.seekTo(a,b,c):d.seekTo(a,{oC:!b,pC:c})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.FG=function(){this.u.ma("SEEK_COMPLETE")};
g.h.TM=function(a,b){var c=a.getVideoData();if(1==this.U||2==this.U)c.startSeconds=b;2==this.U?zT(this):this.u.ma("SEEK_TO",b)};
g.h.aK=function(){this.u.R("airplayactivechange")};
g.h.bK=function(){this.u.R("airplayavailabilitychange")};
g.h.sK=function(){this.u.R("beginseeking")};
g.h.TK=function(){this.u.R("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.U(this,a))?qT(this,a).getVideoData().getStoryboardFormat():null};
g.h.te=function(a){return(a=g.U(this,a))?qT(this,a).getVideoData().te():null};
g.h.Ob=function(a){if(a=a||this.C){a=a.getVideoData();if(this.S)a:{var b=this.S;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.Bb==c.value.Bb){a=!0;break a}a=!1}}else a:if(b=this.ya,a==b.w.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(c=b.next();!c.done;c=b.next())if(a.Bb==c.value.Bb){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.Ob();a=new g.eB(this.o,a);d&&(a.Bb=d);if(!g.Q(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.Nl||"",k=a.breakType||0;g.AI(d,g.kD(d.o),"ad_playback",[e,f,k])}c=void 0===c?Infinity:c;b=b||this.C.getPlayerType();var l;g.Q(this.o.experiments,"html5_gapless_preloading")&&(l=DT(this,b,a,!0));l||(l=aT(this,b),jK(l,a,(0,g.x)(this.Sc,
this)));hS(this,l,c)};
g.h.clearQueue=function(){this.Ha.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d){this.o.Yb&&fM(a);var e=new g.eB(this.o,a);c||(a&&aE(a)?(Rx(this.o)&&!this.ca&&(a.fetch=0),xT(this,a)):this.F&&xT(this,null),a&&this.setIsExternalPlaylist(a.external_list),Rx(this.o)&&!this.ca&&yT(this));return qS(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+"_"+(a.docid||a.video_id||a.videoId||a.id||null)+"_"+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().Bb;f=d==f+"_"+k+"_"+l}f||(this.o.Yb&&fM(a),a=new g.eB(this.o,a),e&&(a.Bb=e),e=b+"_"+a.videoId+"_"+a.Bb,a.si=!0,d=aT(this,b),jK(d,a,(0,g.x)(this.Sc,this)),!g.Q(this.o.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&
1==b&&Ux(this.o)||oK(d,!0),this.Wa.set(e,d,c||3600),c="prefetch_"+a.videoId,WA("prefetch",["pfp"],c),OA({playerInfo:{playbackType:wqa[b]},videoId:a.videoId},c))};
g.h.setMinimized=function(a){this.G.setMinimized(a);a=this.A;(a=a.o.N().showMiniplayerUiWhenMinimized?a.u.get("miniplayer"):null)&&(this.G.o?a.load():a.unload());this.u.R("minimized")};
g.h.setInline=function(a){this.G.setInline(a)};
g.h.setImmersivePreview=function(a){this.G.setImmersivePreview(a)};
g.h.QM=function(){"picture-in-picture"==this.B.gb().webkitPresentationMode?vJ(this.G,!0):vJ(this.G,!1)};
g.h.togglePictureInPicture=function(){var a=g.U(this);a&&a.togglePictureInPicture()};
g.h.cueVideoByPlayerVars=function(a,b){this.o.Yb&&fM(a);if(a&&aE(a)){this.Ba=!0;xT(this,a);var c=this.F.wa();c&&c.isValid()?ST(this,c,b):fE(this.F,(0,g.x)(this.No,this))}else b||(b=this.getPresentingPlayerType()),1==b&&this.Xm(),ST(this,new g.eB(this.o,a),b)};
g.h.cuePlaylist=function(a,b,c,d){this.Ba=!0;a=cC(a,b,c,d);xT(this,a);fE(this.F,(0,g.x)(this.No,this))};
g.h.loadPlaylist=function(a,b,c,d){this.Ba=!1;a=cC(a,b,c,d);xT(this,a);fE(this.F,(0,g.x)(this.No,this))};
g.h.No=function(){var a=this.F.wa();if(a){var b=this.getVideoData();b.lh||!this.Ba?(b=b.Yg,a=qS(this,a),b&&RT(this,a)):ST(this,a)}this.u.ma("onPlaylistUpdate")};
g.h.nextVideo=function(a,b){var c=this,d=this.w.getVideoData().suggestions;if(g.SL(this.u)&&d){d=(0,g.Fc)(d,function(f){return g.MO(c.o,f)});
d=d[0];var e=b?d.zw:d.Nb;g.TT(this,d.wa().videoId,e,d.getPlaylistId(),b)}else this.ca?this.u.ma("onPlaylistNext"):3==this.getPresentingPlayerType()?g.AL(this.A).nextVideo():this.F&&(Rx(this.o)&&!this.u.isFullscreen()?MT(this,"yt.www.watch.lists.next"):(this.F.hasNext(a)&&dE(this.F,bE(this.F)),this.F.A?(d=b&&g.Q(this.o.experiments,"html5_player_autonav_logging"),qS(this,this.F.wa(void 0,b,d),1)):this.Ba=!1))};
g.h.previousVideo=function(a){if(this.ca)this.u.ma("onPlaylistPrevious");else if(3==this.getPresentingPlayerType())g.AL(this.A).wG();else if(this.F)if(Rx(this.o)&&!this.u.isFullscreen())MT(this,"yt.www.watch.lists.prev");else{var b=this.F;(b.loop||a||0<=b.o-1)&&dE(this.F,cE(this.F));this.F.A?qS(this,this.F.wa(),1):this.Ba=!1}};
g.h.playVideoAt=function(a){this.ca?this.u.ma("onPlaylistIndex",a):this.F&&(this.F.A?qS(this,this.F.wa(a),1):this.Ba=!1,dE(this.F,a))};
g.h.getPlaylist=function(){return this.F};
g.h.gK=function(a){this.u.ma("onCueRangeEnter",a.getId())};
g.h.hK=function(a){this.u.ma("onCueRangeExit",a.getId())};
g.h.lK=function(){var a=this;this.getPresentingPlayerType();this.za||(this.za=gs(dB,this.oA,this));TD(this.O,this.C.getVideoData(),XT(this));wT(this)&&this.o.u&&"embedded"==QB(uT(this))&&this.hd&&.01>Math.random()&&Kq("autoplayTriggered",{intentional:this.fd});this.hd=!1;var b=g.Vr(this.yd||(this.G.o?3:0));if(b){var c={cpn:this.getVideoData().clientPlaybackNonce,csn:b};if(g.Q(this.o.experiments,"web_playback_associated_ve")&&null!=this.getVideoData().mf){var d=g.Kr(this.getVideoData().mf);g.ks(b,
d);c.playbackVe=g.Lr(d)}g.Q(this.o.experiments,"kevlar_playback_associated_queue")&&this.getVideoData().queueInfo&&(c.queueInfo=this.getVideoData().queueInfo);Kq("playbackAssociated",c)}WS(this,"web_player_inline_botguard")&&(b=this.getVideoData().botguardData)&&(Eo("BG_I",b.interpreterScript),Eo("BG_IU",b.interpreterUrl),Eo("BG_P",b.program),g.Tx(this.o)&&!WS(this,"web_player_botguard_scheduler_killswitch")||WS(this,"web_player_botguard_use_scheduler")?Mp(function(){As(a.o.ea)}):As(this.o.ea))};
g.h.eL=function(){this.u.R("internalAbandon");WS(this,"html5_ad_module_cleanup_killswitch")||JT(this)};
g.h.oA=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.Db&&this.C?this.u.ma("onApiChange",this.C.getPlayerType()):this.u.ma("onApiChange")};
g.h.EL=function(){var a=this.B;a={volume:g.Od(Math.floor(100*a.getVolume()),0,100),muted:a.yn()};a.muted||CT(this,!1);this.P=g.Rb(a);this.u.ma("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.u.ma("onMutedAutoplayStarts"))};
g.h.XK=function(){var a=$T(this);pT(this,a?1:0);bU(this,!!a)};
g.h.isFullscreen=function(){return this.G.isFullscreen()};
g.h.HM=function(){0!==this.G.w&&1!==this.G.w||pT(this,$T(this)?1:0);this.o.Bg&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.rk()};
g.h.nL=function(a){3!=this.getPresentingPlayerType()&&this.u.R("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.U(this,a))2==this.U?zT(this):(null!=this.Z&&this.Z.Ea()&&this.Z.start(),g.W(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.U(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.w.getVideoData(),b=new g.eB(this.o,{video_id:a.Du||a.videoId,oauth_token:a.oauthToken});b.Ye=g.Rb(a.Ye);QT(this,6);ST(this,b,1);null!=this.Z&&this.Z.stop()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.U(this,b))&&this.o.gd.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.updatePlaylist=function(){yT(this);this.u.ma("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.ne=a;this.pc=b;this.u.R("sizestylechange",a,b);this.H.Ae()};
g.h.isWidescreen=function(){return this.pc};
g.h.isInline=function(){return this.G.isInline()};
g.h.getAdState=function(){if(3==this.getPresentingPlayerType())return g.AL(this.A).getAdState();if(!this.Ob()){var a=rM(this.A);if(a)return a.getAdState()}return-1};
g.h.GM=function(a){var b=this.H.getVideoContentRect();th(this.gd,b)||(this.gd=b,this.C&&JK(this.C),this.w&&this.w!=this.C&&JK(this.w),1==this.G.w&&this.Ra&&bU(this,!0));this.lc&&g.Vd(this.lc,a)||(this.u.R("appresize",a),this.lc=a)};
g.h.Nc=function(){return this.u.Nc()};
g.h.ZM=function(){this.getPresentingPlayerType();dU(this,"signature",void 0,!0)};
g.h.BA=function(){jT(this);iT(this)};
g.h.EM=function(a){UK(a,this.B.mo())};
g.h.IK=function(){this.u.ma("CONNECTION_ISSUE")};
g.h.DG=function(a){this.u.R("heartbeatparams",a)};
g.h.setBlackout=function(a){this.o.Eg=a;this.C&&(g.LI(this.C.B),this.o.J&&fU(this))};
g.h.VL=function(){var a=g.U(this);if(a){var b=!LL(this.u);g.iL(a,b)}};
g.h.qL=function(){this.u.ma("onLoadedMetadata")};
g.h.SK=function(){this.u.ma("onDrmOutputRestricted")};
g.h.Y=function(){this.A.dispose();this.ya.dispose();this.S&&this.S.dispose();this.w.dispose();jT(this);g.Ie(g.Hb(this.Hc),this.F);fs(this.za);this.za=0;g.A.prototype.Y.call(this)};
g.h.setScreenLayer=function(a){this.yd=a};
g.h.fetchLocalMedia=function(){if(this.ra){var a=this.ra,b=a.api.getVideoData();if(b&&!UB(b)){g.zK(g.U(a.api.app,void 0));if(1!=b.Ri&&(b.Ri=!0,b.ka)){b=b.ka;for(var c in b.o){var d=b.o[c];d.B=!1;d.o=null}}a.api.playVideo()}}};
g.h.fetchLocalMediaById=function(a){if(this.ra){var b=this.ra;b.o.includes(a)||(b.o.push(a),1===b.o.length&&VS(b,a))}};
g.h.getLocalMediaInfoById=function(a){return this.ra?this.ra.getLocalMediaInfoById(a):Promise.reject()};
g.h.getAllLocalMediaInfo=function(){return this.ra?this.ra.getAllLocalMediaInfo():Promise.reject()};
g.h.getVideoUrl=function(a,b,c,d,e){return this.J&&this.J.postId?(a=this.o.getVideoUrl(a),a=Fd(a,"v"),a.replace("/watch","/clip/"+this.J.postId)):this.o.getVideoUrl(a,b,c,d,e)};
var cT={};kU.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return lU(this,a,b);var d=1===this.u;d&&this.o.app.O.tick("a_bid_s");var e=nla();if(null!==e)return d&&this.o.app.O.tick("a_bid_f"),lU(this,a,b,e);e=ola();d&&Lf(e,function(){c.o.app.O.tick("a_bid_f")});
return e.then(function(f){return lU(c,a,b,f)})};
kU.prototype.reset=function(){this.w=this.u=1};var cra={BS:"replaceUrlMacros",BR:"isExternalShelfAllowedFor"};g.r(nU,g.UD);var dra={commandMetadata:!0,loggingUrls:!0};g.r(vU,g.A);vU.prototype.Y=function(){this.o={};g.A.prototype.Y.call(this)};
vU.prototype.executeCommand=function(a,b,c){var d=this;c=void 0===c?{}:c;a.loggingUrls&&wU(this,"loggingUrls",a,b,c);Object.keys(a).filter(function(e){return!dra.hasOwnProperty(e)}).forEach(function(e){return wU(d,e,a,b,c)})};xU.prototype.o=function(){return"adLifecycleCommand"};
xU.prototype.Ca=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.wf(function(){b.u.Py()});
break;case "END_LINEAR_AD":g.wf(function(){b.u.Oy()});
break;case "END_LINEAR_AD_PLACEMENT":g.wf(function(){b.u.us()});
break;case "FILL_INSTREAM_SLOT":g.wf(function(){a.elementId&&b.u.Gw(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.wf(function(){a.elementId&&((iX(b.w)||jX(b.w)||kX(b.w))&&b.A.Qq(a.elementId),b.u.Qq(a.elementId))});
break;case "CLEAR_ABOVE_FEED_SLOT":g.wf(function(){(iX(b.w)||jX(b.w)||kX(b.w))&&b.A.xq();b.u.xq()})}};yU.prototype.o=function(){return"adPingingEndpoint"};
yU.prototype.Ca=function(a,b,c){c=void 0===c?{}:c;this.u.send(a,b,c)};zU.prototype.o=function(){return"adPlayerControlsCommand"};
zU.prototype.Ca=function(a){switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var b=this.u;b=uV(b.o)&&b.u.Zg()?b.o.getDuration(2):0;if(0>=b)break;this.u.seekTo(g.Od(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.Ca=function(a){this.aa.ma("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};BU.prototype.o=function(){return"clearCueRangesCommand"};
BU.prototype.Ca=function(){var a=this;g.wf(function(){var b=a.u;FX(b,Array.from(b.F))})};CU.prototype.send=function(a,b,c){try{var d=a.match(od);if("https"===d[1])var e=a;else d[1]="https",e=md("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=fn(e);a=[];lq(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.Ca=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.Ca=function(a){var b=this;switch(a.type){case "SKIP":g.wf(function(){b.u.us()})}};FU.prototype.o=function(){return"pingingEndpoint"};
FU.prototype.Ca=function(){};GU.prototype.o=function(){return"urlEndpoint"};
GU.prototype.Ca=function(a,b){if(a.url){var c=g.gn(a.url,b);g.kN(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.ma("updateKevlarOrC3Companion",b)};QU.prototype.Pk=function(){return!1};
QU.prototype.O=function(){return function(){return null}};g.r(TU,QU);g.h=TU.prototype;g.h.Vc=function(){return!0};
g.h.Ec=function(){return!1};
g.h.isSkippable=function(){return null!=this.V};
g.h.getVideoUrl=function(){return this.J};
g.h.Pk=function(){return!0};g.r(WU,QU);WU.prototype.Vc=function(){return!0};
WU.prototype.Ec=function(){return!0};g.r(cV,QU);cV.prototype.Vc=function(){return!0};
cV.prototype.Ec=function(){return!1};
cV.prototype.Pk=function(){return!0};
cV.prototype.O=function(){return function(){return g.de("video-ads")}};dV.prototype.wb=function(){return this.P};
dV.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.wb().w};var Gla=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];var pV=null;g.r(oV,g.P);g.Ia("ytads.bulleit.getVideoMetadata",function(a){var b=qV();return b.o.hasOwnProperty(a)?b.o[a].sz():{}},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=qV();c=Ila(c);null!==c&&d.R(c,{queryId:a,viewabilityString:b})},void 0);rV.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.gn(a.baseUrl,Hla(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.Ne();m&&(f||(f={}),f.Authorization="Bearer "+m)}g.Uq(e,void 0,d,f)}catch(n){}};g.r(sV,rV);sV.prototype.Ne=function(){return this.o?this.o.Ne():""};g.r(tV,g.A);g.r(yV,g.A);g.r(Y,g.P);g.h=Y.prototype;g.h.sz=function(){return{}};
g.h.Pt=function(){};
g.h.bb=function(a){this.Ie();this.R(a)};
g.h.Dx=function(){};
g.h.Ie=function(){QV(this,this.O,3);this.O=[]};
g.h.getDuration=function(){return this.aa.getDuration(2,!1)};
g.h.Sg=function(){var a=this.vb;zV(a)||!MV(a,"impression")&&!MV(a,"start")||MV(a,"abandon")||MV(a,"complete")||MV(a,"skip")||(BV(a)?HV(a,"pause"):GV(a,"pause"))};
g.h.Xf=function(){this.S||this.F||this.Jb()};
g.h.Uc=function(){JV(this.vb,this.getDuration())};
g.h.Bc=function(){var a=this.vb;!MV(a,"impression")||MV(a,"skip")||MV(a,"complete")||HV(a,"abandon")};
g.h.Tg=function(){var a=this.vb;BV(a)?GV(a,"skip"):!MV(a,"impression")||MV(a,"abandon")||MV(a,"complete")||GV(a,"skip")};
g.h.Jb=function(){if(!this.F){var a=TV(this);this.vb.w.AD_CPN=a;IV(this.vb);this.F=!0}};
g.h.Vb=function(a){a=a||"";var b="",c="",d="";uV(this.aa)&&(b=g.zL(this.aa,2).o,this.aa.app.B&&(c=this.aa.app.B.fe(),null!=this.aa.app.B.Se()&&(d=this.aa.app.B.Se())));var e=this.vb;e.w=mV(e.w,kV(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));GV(e,"error")};
g.h.ji=function(){};
g.h.nB=function(){this.R("e")};
g.h.oB=function(){this.R("j")};
g.h.pB=function(){this.R("k")};
g.h.qB=function(){this.R("l")};
g.h.rB=function(){this.R("m")};
g.h.sB=function(){this.R("n")};
g.h.tB=function(){this.R("s")};
g.h.dispose=function(){this.la()||(this.Ie(),this.u.unsubscribe("e",this.nB,this),this.u.unsubscribe("j",this.oB,this),this.u.unsubscribe("k",this.pB,this),this.u.unsubscribe("l",this.qB,this),this.u.unsubscribe("m",this.rB,this),this.u.unsubscribe("n",this.sB,this),this.u.unsubscribe("s",this.tB,this),Jla(this.u,this),g.P.prototype.dispose.call(this))};
g.h.Aw=function(){return""};g.r(UV,QU);UV.prototype.Vc=function(){return!1};
UV.prototype.Ec=function(){return!0};g.r(VV,sU);g.r(WV,Y);WV.prototype.Zb=function(){var a=this,b=new VV(this.C.o,this.macros),c=this.aa.getVideoData(2),d=b.renderer;g.Q(this.aa.N().experiments,"ignore_video_data_current_ad_check")&&c&&d&&d.adVideoId?YV(this,c,b):c&&c.Od&&XV(c,b)?YV(this,c,b):(this.o=function(e,f,k){f&&2==k&&XV(f,b)&&f.Od&&(a.o&&(a.aa.removeEventListener("videodatachange",a.o),a.o=null),YV(a,f,b))},this.aa.addEventListener("videodatachange",this.o))};
WV.prototype.ji=function(a){NV(this.vb,a)};
WV.prototype.Y=function(){this.o&&(this.aa.removeEventListener("videodatachange",this.o),this.o=null);Y.prototype.Y.call(this)};g.r(ZV,QU);ZV.prototype.Vc=function(){return!0};
ZV.prototype.Ec=function(){return!1};g.r($V,sU);g.r(aW,Y);g.h=aW.prototype;g.h.Zb=function(){0<this.o&&this.Jb()};
g.h.Jb=function(){var a=this;this.Da=new g.I(function(){a.Uc();for(var b=g.q(a.w.o.completionCommands||[]),c=b.next();!c.done;c=b.next())a.A.executeCommand(c.value,a.macros);a.bb("h")},this.o,this);
g.C(this,this.Da);this.Da.start();RV(this,[new $V(this.w.o,this.macros)]);Y.prototype.Jb.call(this)};
g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
g.h.Uc=function(){Y.prototype.Uc.call(this)};
g.h.bb=function(a){this.Da&&this.Da.stop();Y.prototype.bb.call(this,a)};g.r(bW,sU);g.r(cW,Y);cW.prototype.Zb=function(){this.Jb()};
cW.prototype.Jb=function(){RV(this,[new bW(this.o.o,this.macros)]);Y.prototype.Jb.call(this)};
cW.prototype.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
cW.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};g.r(dW,QU);dW.prototype.Vc=function(){return!0};
dW.prototype.Ec=function(){return!1};g.r(eW,QU);eW.prototype.Vc=function(){return!0};
eW.prototype.Ec=function(){return!1};g.r(fW,QU);fW.prototype.Vc=function(){return!1};
fW.prototype.Ec=function(){return!0};g.r(gW,QU);gW.prototype.Vc=function(){return!1};
gW.prototype.Ec=function(){return!0};g.r(hW,QU);hW.prototype.Vc=function(){return!0};
hW.prototype.Ec=function(){return!0};g.r(iW,QU);iW.prototype.Vc=function(){return!0};
iW.prototype.Ec=function(){return!1};g.r(jW,QU);jW.prototype.Vc=function(){return!1};
jW.prototype.Ec=function(){return!0};g.r(kW,QU);kW.prototype.Vc=function(){return!1};
kW.prototype.Ec=function(){return!0};g.r(lW,QU);lW.prototype.Vc=function(){return!0};
lW.prototype.Ec=function(){return!1};g.r(mW,QU);mW.prototype.Vc=function(){return!0};
mW.prototype.Ec=function(){return!1};nW.prototype.create=function(a,b){return a instanceof TU?this.V.create(a,b):a instanceof hW?this.G.create(a,b):a instanceof gW?this.F.create(a,b):a instanceof kW?this.P.create(a,b):a instanceof cV?this.O.create(a,b):a instanceof jW?this.J.create(a,b):a instanceof ZV?this.u.create(a,b):a instanceof iW?this.H.create(a,b):a instanceof UV?this.o.create(a,b):a instanceof mW?this.U.create(a,b):a instanceof lW?this.S.create(a,b):a instanceof WU?this.w.create(a,b):a instanceof eW?this.B.create(a,b):a instanceof
dW?this.A.create(a,b):a instanceof fW?this.C.create(a,b):null};g.r(oW,Y);g.h=oW.prototype;g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
g.h.Sg=function(){Y.prototype.Sg.call(this);this.R("o",2)};
g.h.Xf=function(){Y.prototype.Xf.call(this);this.R("p",1)};
g.h.Jb=function(){Y.prototype.Jb.call(this);this.o.stop();this.w.L(this.aa,g.XD("bltplayback"),this.wI);var a=new g.UD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.NL(this.aa,[a],2);this.R("p",1)};
g.h.Uc=function(){Y.prototype.Uc.call(this);this.bb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};
g.h.Zb=function(){xV(this.aa,!1);var a=this.A.u||{};a.autoplay="1";this.aa.cueVideoByPlayerVars(a,2);this.o.start();this.aa.playVideo(2);this.aa.ma("onAdIntroStateChange",1)};
g.h.bb=function(a){this.o.stop();xV(this.aa,!0);"c"!=a&&MY(this.B.ca);"c"!=a&&this.aa.ma("onAdComplete");this.aa.ma("onAdEnd");this.R(a);this.aa.ma("onAdIntroStateChange",0)};
g.h.wI=function(a){"bltcompletion"==a.getId()&&(g.jR(this.aa.app,"bltplayback",2),JV(this.vb,this.getDuration()))};g.r(pW,sU);g.r(qW,Y);g.h=qW.prototype;g.h.Zb=function(){0>=this.B&&(g.M(Error("durationMs was specified incorrectly with a value of: "+this.B)),this.Uc());this.Jb();this.aa.addEventListener("progresssync",this.G)};
g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("d")};
g.h.Jb=function(){var a=this.aa.N();Y.prototype.Jb.call(this);this.o=Math.floor(this.aa.getCurrentTime());this.w=this.o+this.B/1E3;g.Jx(a)?this.aa.ma("onAdMessageChange",{renderer:this.A.o,startTimeSecs:this.o}):RV(this,[new pW(this.A.o)]);a=(a=this.aa.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Vr();b&&Kq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.w,timeToAdBreakSec:Math.ceil(this.w-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.A.o.videoAdBreakOffsetMs/1E3)});
g.W(g.zL(this.aa,1),512)&&(a=(a=this.aa.getVideoData(1))&&a.clientPlaybackNonce||"",(b=g.Vr())&&Kq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.w,timeToAdBreakSec:Math.ceil(this.w-this.o),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(this.A.o.videoAdBreakOffsetMs/1E3)}),this.Uc())};
g.h.Uc=function(){Y.prototype.Uc.call(this);this.bb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};
g.h.bb=function(a){this.aa.removeEventListener("progresssync",this.G);this.Ie();this.R(a)};
g.h.dispose=function(){this.aa.removeEventListener("progresssync",this.G);Y.prototype.dispose.call(this)};
g.h.Ie=function(){g.Jx(this.aa.N())?this.aa.ma("onAdMessageChange",{renderer:null,startTimeSecs:this.o}):Y.prototype.Ie.call(this)};g.r(rW,sU);g.r(sW,Y);sW.prototype.Zb=function(){RV(this,[new rW(this.C.o,this.macros)])};
sW.prototype.ji=function(a){NV(this.vb,a)};g.r(tW,Y);tW.prototype.Zb=function(){var a=TV(this);this.vb.w.AD_CPN=a;IV(this.vb)};g.r(uW,sU);g.r(vW,sU);g.r(wW,Y);wW.prototype.Zb=function(){var a;if(a=g.Q(this.aa.N().experiments,"render_enhanced_overlays_as_ctas_for_desktop"))a=this.o.o,a=a.contentSupportedRenderer?!!a.contentSupportedRenderer.enhancedTextOverlayAdContentRenderer:!1;a?(a=new vW(this.o.o,this.macros),RV(this,[a])):(a=new uW(this.o.o,this.macros),RV(this,[a]))};g.r(xW,sU);g.r(yW,Y);yW.prototype.Zb=function(){this.Jb()};
yW.prototype.Jb=function(){RV(this,[new xW(this.o.o,this.macros)]);Y.prototype.Jb.call(this)};
yW.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};CW.prototype.sendAdsPing=function(a){this.B.send(a,GW(this),{})};g.r(IW,sU);g.r(JW,Y);JW.prototype.Zb=function(){var a=new IW(this.o.o,this.macros);RV(this,[a])};g.r(KW,sU);g.r(LW,Y);LW.prototype.Zb=function(){var a=new KW(this.C.o,this.macros);RV(this,[a])};
LW.prototype.ji=function(a){NV(this.vb,a)};g.r(OW,g.P);OW.prototype.getProgressState=function(){return this.w};
OW.prototype.start=function(){this.A=Date.now();NW(this,{current:this.o/1E3,duration:this.u/1E3});this.Da.start()};
OW.prototype.stop=function(){this.Da.stop()};g.r(PW,sU);g.r(QW,Y);g.h=QW.prototype;g.h.Zb=function(){this.Jb()};
g.h.Jb=function(){var a=this.A.o;g.Jx(this.aa.N())?(a=Yla(this.B,a),this.aa.ma("onAdInfoChange",a),this.o&&this.o.start()):RV(this,[new PW(a)]);Y.prototype.Jb.call(this)};
g.h.getDuration=function(){return this.A.u};
g.h.Sg=function(){Y.prototype.Sg.call(this);this.o&&this.o.stop()};
g.h.Xf=function(){Y.prototype.Xf.call(this);this.o&&this.o.start()};
g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
g.h.Tg=function(){Y.prototype.Tg.call(this);this.bb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};
g.h.bb=function(a){this.Ie();"c"!=a&&MY(this.G.ca);this.R(a)};
g.h.ji=function(a){switch(a){case "skip-button":this.Tg();break;case "survey-submit":this.bb("h")}};
g.h.Ie=function(){g.Jx(this.aa.N())?(this.o&&this.o.stop(),this.aa.ma("onAdInfoChange",null)):Y.prototype.Ie.call(this)};g.r(RW,sU);g.r(SW,Y);SW.prototype.Zb=function(){this.Jb()};
SW.prototype.Jb=function(){RV(this,[new RW(this.o.o,this.macros)]);Y.prototype.Jb.call(this)};
SW.prototype.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
SW.prototype.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};g.r(TW,sU);g.r(UW,Y);g.h=UW.prototype;g.h.Zb=function(){0<this.o&&this.Jb()};
g.h.Jb=function(){this.Da=new g.I(this.Uc,this.o,this);g.C(this,this.Da);this.Da.start();RV(this,[new TW(this.w.o)]);Y.prototype.Jb.call(this)};
g.h.Uc=function(){Y.prototype.Uc.call(this);this.bb("h");for(var a=g.q(this.w.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.A.executeCommand(b.value,this.macros)};
g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};
g.h.bb=function(a){this.Da&&this.Da.stop();Y.prototype.bb.call(this,a)};g.r(VW,g.A);VW.prototype.start=function(){this.la()||this.o||(this.w=(0,g.H)(),this.o=new g.I(this.B,Math.max(0,this.A-this.u),this),g.C(this,this.o),this.o.start())};
VW.prototype.stop=function(){this.o&&(this.w=this.u=0,WW(this))};
VW.prototype.pause=function(){this.o&&(this.u+=(0,g.H)()-this.w,WW(this))};
VW.prototype.Y=function(){WW(this);g.A.prototype.Y.call(this)};g.r(XW,sU);g.r(YW,sU);g.r(ZW,sU);g.r($W,sU);g.r(aX,sU);g.r(bX,sU);g.r(cX,sU);g.r(dX,Y);g.h=dX.prototype;g.h.sz=function(){return{currentTime:this.aa.getCurrentTime(2,!1),duration:this.o.u,isPlaying:vV(this.aa),isVpaid:!1,isYouTube:!0,volume:this.aa.isMuted()?0:this.aa.getVolume()/100}};
g.h.Zb=function(){if(this.o.H)SV(this),this.bb("i");else{var a=this.o.o.legacyInfoCardVastExtension,b=this.o.B;a&&b&&this.aa.N().F.add(b,{Vm:a});try{var c=this.o.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.fd(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=$d(l).createElement("SCRIPT");
n.type="text/javascript";n.async=!0;var p=waa(g.$b("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.fd(d)+".js"});cd(n,p);l.getElementsByTagName("head")[0].appendChild(n)}}catch(t){Mq(t)}xV(this.aa,!1);d=UU(this.o);e=this.aa.N();g.Q(this.aa.N().experiments,"disable_force_iv_load_policy_on_bulleit")||(d.iv_load_policy=e.o||g.Jx(e)||g.Vx(e)?3:1);f=this.aa.getVideoData(1);f.wf&&(d.ctrl=f.wf);f.xf&&(d.ytr=f.xf);f.cn&&(d.ytrcc=f.cn);f.isMdxPlayback&&(d.mdx="1");d.vvt&&(d.vss_credentials_token=d.vvt,
f.Ii&&(d.vss_credentials_token_type=f.Ii),f.mdxEnvironment&&(d.mdx_environment=f.mdxEnvironment));this.ea&&this.R("r",-1);if(Wx(e)||g.Jx(e))e=pX(this),e=Vla(this.da,e,this.o.o.adNextParams||""),e.attributionInfo=mX(this),this.aa.ma("onAdInfoChange",e);this.H?this.G.start():(this.aa.cueVideoByPlayerVars(d,2),this.G.start(),this.aa.playVideo(2))}};
g.h.Sg=function(){Y.prototype.Sg.call(this);this.R("o",2)};
g.h.Xf=function(){Y.prototype.Xf.call(this);this.R("p",1)};
g.h.Jb=function(){Y.prototype.Jb.call(this);this.G.stop();this.V.L(this.aa,g.XD("bltplayback"),this.xI);var a=new g.UD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.NL(this.aa,[a],2);a=lX(this);this.A.ga=a;if(!hX(this.B)){a=[];var b=this.aa.N(),c=this.aa.getVideoData(2);if(Wx(b)||g.Jx(b)){var d=c&&c.isListed?{channelId:c.xg,channelThumbnailUrl:c.Od||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null;d&&this.aa.ma("onAdMetadataAvailable",d)}g.Jx(b)||(!g.Vx(b)||(g.Q(this.aa.N().experiments,"enable_upg_processed_dvr_dai")?this.H:YY(this.A).Pe())||(c&&c.videoId&&c.isListed&&c.videoId==this.o.B&&(b=c.title,d=c.author,c=c.Od,b&&d&&c?c=[new ZW(b),new YW(c),new $W(d)]:(Nq(new Lq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),RV(this,c)),a.push(mX(this)),c=this.o.C,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),
c=new cX({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.o.isSkippable()&&!VU(this.o)&&(c=pX(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=nX(this)),a.push(new bX(c)))),c=pX(this),a.push(new aX(c)),RV(this,a))}this.aa.isMuted()&&(a=this.vb,c=this.aa.isMuted(),BV(a)||GV(a,c?"mute":"unmute"));this.R("p",1);eX(this)&&(a=null!==YY(this.A)?YY(this.A).clientPlaybackNonce:"",wpa(this.U,fX(this),this.o,a,this),this.P=!0);this.aa.ma("onAdStart",lX(this));a=this.ca;
c=this.o.B||"";(b=a.u.qb())&&b.getVideoData().videoId===c?a.o=MI(b.B):a.o=null;a=g.q(this.o.o.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.A.executeCommand(c.value,this.macros)};
g.h.xI=function(a){"bltcompletion"==a.getId()&&(g.jR(this.aa.app,"bltplayback",2),JV(this.vb,this.getDuration()),gX(this,"h"))};
g.h.Uc=function(){Y.prototype.Uc.call(this);this.bb("h");for(var a=g.q(this.o.o.completeCommands||[]),b=a.next();!b.done;b=a.next())this.A.executeCommand(b.value,this.macros);this.Z=!0};
g.h.Bc=function(){Y.prototype.Bc.call(this);this.bb("c")};
g.h.skip=function(){this.Tg()};
g.h.Tg=function(){Y.prototype.Tg.call(this);this.bb("h")};
g.h.Vb=function(a){Y.prototype.Vb.call(this,a);this.bb("i")};
g.h.bb=function(a){this.G.stop();this.w&&this.w.stop();hX(this.B)||this.Ie();xV(this.aa,!0);"c"!=a&&(MY(this.A.ca),this.aa.ma("onAdComplete"));gX(this,a);this.aa.ma("onAdEnd",lX(this));this.R(a)};
g.h.Ie=function(){var a=this.aa.N();(Wx(a)||g.Jx(a))&&(g.Q(a.experiments,"enable_wta_for_unplugged_mdx")||g.Q(a.experiments,"enable_topsoil_wta_for_halftime")||g.Vx(a)&&g.Jx(a))?this.aa.ma("onAdInfoChange",null):Y.prototype.Ie.call(this)};
g.h.Pt=function(){this.by&&this.aa.playVideo()};
g.h.Dx=function(a){this.w&&(g.AD(a.state)?this.w.start():this.w.pause());g.Q(this.aa.N().experiments,"enable_reset_for_seek_ad_for_web")&&!this.H&&!this.Z&&g.W(a.state,16)&&3<this.aa.getCurrentTime(2,!1)&&cU(this.aa.app,0,!0,void 0,2,!0)};
g.h.by=function(){return 2==this.aa.getPlayerState(2)};
g.h.ji=function(a){var b=this.vb;if(uV(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.J||this.Pt();break;case "ad-info-icon-button":(this.J=this.by())||this.aa.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.aa.N().protocol+"://"+g.Ox(this.aa.N())+"/channel/"+this.o.U;g.kN(a);break;case "ad-title":this.aa.pauseVideo();g.kN(this.aa.getVideoUrl());break;case "visit-advertiser":this.aa.pauseVideo();g.Vx(this.aa.N())&&(a=this.o.C)&&(Mla(this.vb,a.loggingUrls||null),a.urlEndpoint&&a.urlEndpoint.url&&g.kN(a.urlEndpoint.url));a=this.vb;zV(a)||HV(a,"clickthrough");break;case "skip-button":this.Tg()}};
g.h.Aw=function(a,b){if(this.o.H)return SV(this),this.bb("i"),"";if(!Number.isFinite(a))return Mq(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return Mq(Error("Start time is not earlier than end time")),"";var c=1E3*this.o.u,d=UU(this.o),e=this.aa.app;d=e.S?Tka(e.S,d,c,a,b):Vka(e.ya,d,c,a,b);if(a+c>b)if(e=this.aa.app,c=b-a,e.S){var f=void 0;e=g.q(e.S.o);for(var k=e.next();!k.done;k=e.next())if(k=k.value,k.Bb==d){var l=k;break}l&&(void 0==f&&(f=l.Lb),
aS(l,c,f))}else{l=e.ya;e=void 0;k=g.q(l.u);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.Bb==d){f=m;break}f?(void 0==e&&(e=f.Lb),rS(l,f,c,e)):dS(l,"e.InvalidTimelinePlaybackId timelinePlaybackId="+d)}return d};
g.h.dispose=function(){vV(this.aa)&&!this.H&&this.aa.stopVideo(2);gX(this,"c");Y.prototype.dispose.call(this)};qX.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={Oi:null,iy:-Infinity},b=this.o[b]=c);c=a.startSecs+a.o/1E3;if(!(c<b.iy)){b.iy=c;if(b.Oi){if(c<b.Oi.end){a:{c=b.Oi;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}if(null!==a){b.Oi.end=a;b=this.u;c=1E3*a;b.u&&
b.u.zp(c);for(var d=g.q(b.C.values()),e=d.next();!e.done;e=d.next())e.value.zp(c);b.sa.u(a)}return}b.Oi=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}d=Math.max(a.startSecs,0);a={nE:new Hi(d,c),WF:new Ct(d,c-d,a.context,a.identifier,a.event,a.o)}}a&&(c=a.WF,b.Oi=a.nE,this.u.AA(c))}};
qX.prototype.updateTime=function(){};g.r(rX,g.P);
rX.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.startSecs+a.o/1E3;if(!(b<this.A)){this.A=b;if(this.u){if(b<this.u.end&&(null===this.o||b-1<this.o)){a:{switch(a.event){case "start":case "continue":this.o=a.startSecs+a.o/1E3+5;break;case "stop":this.o=null;break;case "predictStart":break a;default:break a}sX(this,this.u.start+a.durationSecs)}return}tX(this)}a:if(b=a.startSecs+a.durationSecs,
b=0>=b?null:b,null!==b){switch(a.event){case "start":case "continue":if(this.w.hasOwnProperty(a.identifier))break a;break;case "predictStart":case "stop":break a;default:break a}var c=Math.max(a.startSecs,0);this.u=new Hi(c,b);a=new Ct(c,b-c,a.context,a.identifier,a.event,a.o);this.w[a.identifier]=null;this.o=a.startSecs+a.o/1E3+5;this.R("Identified a new cuerange",a)}}};
rX.prototype.updateTime=function(a){this.u&&(this.u.end<=a||!(null===this.o||a<this.o))&&tX(this)};g.r(uX,g.A);uX.prototype.u=function(a){g.wb(this.o,1E3*a)};g.r(vX,g.A);g.r(wX,QU);AX.prototype.reset=function(){return new AX(this.u)};g.r(HX,g.P);g.h=HX.prototype;g.h.ki=function(){var a=this.o;return a.o instanceof TU||a.o instanceof cV||a.o instanceof XU||a.o instanceof WU};
g.h.vl=function(){return this.o.o.Ec()};
g.h.wb=function(){return this.o.wb()};
g.h.Co=function(){return fV(this.o)};
g.h.Ms=function(){return eV(this.o)};
g.h.mr=function(a){if(!oU(a)){this.J&&(this.U=this.aa.isAtLiveHead(),this.S=Math.ceil((0,g.H)()/1E3));var b=new DX(this.wc);a=EX(a);GX(b,a)}this.xj()};
g.h.gj=function(){return this.B instanceof kW||this.B instanceof UV||this.B instanceof wX||this.B instanceof fW};
g.h.Vx=function(){return!(this.B instanceof jW)&&!this.gj()};
g.h.wl=function(){return this.B instanceof cV};
g.h.Zg=function(){return this.B instanceof TU};
g.h.xj=function(){kZ(this.wc,this);if(!this.o.B.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.o.J),b=a.next();!b.done;b=a.next())JX(b.value);this.o.B.ad_placement_start=!0}this.F.w=!1;WA("video_to_ad",["apbs"],void 0);this.bB()};
g.h.bB=function(){this.B?this.Zb(this.B):this.Kg()};
g.h.ni=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;rZ(this.wc,0);this.Kg(a,b)};
g.h.dA=function(){this.ni()};
g.h.TJ=function(){GV(this.u.vb,"active_view_measurable")};
g.h.UJ=function(){var a=this.u.vb;zV(a)||OV(a)||GV(a,"active_view_fully_viewable_audible_half_duration")};
g.h.VJ=function(){};
g.h.WJ=function(){};
g.h.XJ=function(){};
g.h.YJ=function(){};
g.h.ZJ=function(){var a=this.u.vb;zV(a)||OV(a)||GV(a,"active_view_viewable")};
g.h.Rw=function(){return this.Zg()?[this.Bn()]:[]};
g.h.Ps=function(a){if(null!==this.u){this.O||(a=new g.CD(a.state,new g.qD),this.O=!0);this.u.Dx(a);var b=a.state;if(this.V&&g.W(b,1024))this.u.Vb("dom_paused");else if(g.ED(a,2))b=this.F,b.O?CX(b):(b.w=!1,WA("ad_to_ad",["apbs"],void 0)),this.u.Uc();else{var c=a;(g.Q(this.aa.N().experiments,"html5_bulleit_handle_gained_playing_state")?g.xD(c.state)&&!g.xD(c.o):g.xD(c.state))?(b=this.F,b.G&&!b.w&&(b.P=!1,b.w=!0,"ad_to_video"!=b.o&&ZA("apbs",void 0,b.o)),this.u.Xf()):b.isError()?this.u.Vb(b.u.errorCode):
g.ED(a,4)&&(this.P||this.u.Sg())}if(g.ED(a,16)&&(b=this.u.vb,!(zV(b)||.5>b.o.getCurrentTime(2,!1)&&!g.Q(b.o.N().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.u;if(c.Pk()){var d=g.Q(b.H.o.N().experiments,"html5_dai_enable_active_view_creating_completed_adblock");c=c.G;d=void 0===d?!1:d;var e=Em.getInstance().En(c,{});e?yk(e):d&&(c=Em.getInstance().Pl(null,$i(),!1,c),c.Dc=3,Vk([c]))}b.u.F.seek=!0}0>DD(a,4)&&!(0>DD(a,2))&&(b=this.u.vb,zV(b)||(BV(b)?HV(b,"resume"):GV(b,"resume")));!g.Q(this.aa.N().experiments,
"html5_dai_handle_suspended_state_killswitch")&&this.Ub&&g.ED(a,512)&&!g.AD(a.state)&&CX(this.F)}};
g.h.vz=function(){};
g.h.resume=function(){this.u&&this.u.Pt()};
g.h.Ns=function(){this.u&&this.u.bb("h")};
g.h.Do=function(){this.Ns()};
g.h.uz=function(a){var b=this.wc;b.w&&g.Q(b.o.N().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.o.ma("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.u.ji(a)};
g.h.Ow=function(){return 0};
g.h.Qw=function(){return 1};
g.h.zp=function(a){this.Ub&&this.o.F&&this.o.wb().start<=a&&a<NX(this)&&dM(this.aa,a,this.o.wb().end)};
g.h.Zb=function(a){g.He(this.u);this.u=a=this.Cg.create(a,lV(iV(this.o)));a.subscribe("c",g.Sa(this.ni,!0),this);a.subscribe("d",g.Sa(this.ni,!0,!0),this);a.subscribe("e",this.TJ,this);a.subscribe("h",this.ni,this);a.subscribe("i",this.dA,this);a.subscribe("j",this.UJ,this);a.subscribe("k",this.VJ,this);a.subscribe("l",this.WJ,this);a.subscribe("m",this.XJ,this);a.subscribe("n",this.YJ,this);a.subscribe("o",this.Os,this);a.subscribe("p",this.Os,this);a.subscribe("r",this.Os,this);a.subscribe("onAdUxUpdate",
this.uz,this);a.subscribe("s",this.ZJ,this);PV(a);KX(this,!1)};
g.h.Kg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.P=!0;g.He(this.u);if(a)var c=!1;else this.Ub?(c=this.aa.getCurrentTime(2,!0),c=1>=Math.abs(c-this.o.wb().end/1E3)):c=!0;if(c&&!this.o.B.hasOwnProperty("ad_placement_end")){c=g.q(this.o.H);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&&(zX(this.Je,{cueIdentifier:this.o.u&&this.o.u.identifier,driftRecoveryMs:c,aB:this.o.wb().start,ny:NX(this)}),this.o.A=null);b||this.Ub?lZ(this.wc,!0):
this.J&&this.Ms()&&this.Zg()?lZ(this.wc,!1,jma(this)):lZ(this.wc,!1);KX(this,!0)};
g.h.Os=function(a){rZ(this.wc,a)};
g.h.Bn=function(){return this.B};
g.h.isLiveStream=function(){return this.J};
g.h.reset=function(){return new HX(this.wc,this.aa,this.F.reset(),this.o,this.Je,this.Pi,this.Cg,this.Ub)};
g.h.Y=function(){g.He(this.u);this.u=null;g.P.prototype.Y.call(this)};PX.prototype.create=function(a){return(a.o instanceof XU?this.A:a.o instanceof wX?this.w:""===a.C?this.o:this.u)(a)};g.r(QX,g.P);g.h=QX.prototype;g.h.wb=function(){return this.o.wb()};
g.h.Co=function(){return fV(this.o)};
g.h.Ms=function(){return eV(this.o)};
g.h.gj=function(){return!1};
g.h.vl=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.mr=function(a){var b=this;if(1!==this.o.w&&2!==this.o.w){var c=[];this.Co()||(c=EX(a));this.o.w=1;Lf(this.B.fetch(this.o.C,{jk:this.o.u||void 0,Hb:this.o.wb(),lu:NY(this.u.ca)}).then(function(d){if(!b.la()){var e=c;g.Q(b.A.N().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.A.isFullscreen();d=mma(b,d);var f=b.w;f.u&&d.isEmpty&&yX("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.o.clientPlaybackNonce);d.Xx||(b.o.w=2,GX(new DX(b.u),e),d.isEmpty||(e=b.u,d=d.Ah,gZ(e,d,!0),d=
bZ(e,d),hZ(e,d)))}},function(){GX(new DX(b.u),c);
var d=b.w;d.u&&yX("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.o.clientPlaybackNonce)}),function(){2!==b.o.w&&(b.o.w=0);
b.Co()&&dZ(b.u)})}};
g.h.xj=function(){};
g.h.zp=function(){};g.r(RX,g.V);RX.prototype.executeCommand=function(a){(a=void 0===a?null:a)&&this.A.executeCommand(a,this.B)};g.r(TX,g.A);TX.prototype.append=function(a){if(!this.G)throw Error("This does not support the append operation");this.Jm(a.gb())};
TX.prototype.Jm=function(a){this.gb().appendChild(a)};
g.r(UX,TX);UX.prototype.gb=function(){return this.o};g.r(WX,g.A);var era=new WeakSet;g.r(Z,g.HC);g.h=Z.prototype;g.h.bind=function(a){if(!this.da&&a.renderer){var b=Object.assign({},VX(this.api,this.oa),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.xa&&g.J(this.element,this.xa);this.G=b&&b.adRendererCommands;this.macros=c;this.F=b.trackingParams||null;null!=this.F&&$X(this,this.element,this.F)};
g.h.clear=function(){};
g.h.hide=function(){g.HC.prototype.hide.call(this);null!=this.F&&aY(this,this.element,!1)};
g.h.show=function(){g.HC.prototype.show.call(this);if(!this.Fa){this.Fa=!0;var a=this.G&&this.G.impressionCommand;a&&this.oa.executeCommand(a,this.macros,null)}null!=this.F&&aY(this,this.element,!0)};
g.h.onClick=function(a){if(this.F&&!era.has(a)){var b=this.element;YL(this.api,b)&&this.Ea()&&g.WL(this.api,b);era.add(a)}(a=this.G&&this.G.clickCommand)&&this.oa.executeCommand(a,this.macros,this.Uw())};
g.h.Uw=function(){return null};
g.h.wJ=function(a){var b=this.O;b.F=!0;b.u=a.touches.length;b.o.isActive()&&(b.o.stop(),b.B=!0);a=a.touches;b.C=XX(b,a)||1!=a.length;var c=a.item(0);b.C||!c?(b.G=Infinity,b.H=Infinity):(b.G=c.clientX,b.H=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.O;a=a.changedTouches.item(0);var c;if(c=Hd()){c=g.Mc;var d="";Nc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Hd()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Nc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):pc(g.Mc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Nc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Nc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.sc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.G,2)+Math.pow(a.clientY-b.H,2)>Math.pow(5,2))b.A=!0};
g.h.uJ=function(a){if(this.O){var b=this.O,c=a.changedTouches;c&&b.F&&1==b.u&&!b.A&&!b.B&&!b.C&&XX(b,c)&&(b.J=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.Y=function(){this.clear(null);this.Xa(this.sa);for(var a=g.q(this.S),b=a.next();!b.done;b=a.next())this.Xa(b.value);g.HC.prototype.Y.call(this)};g.r(cY,g.A);cY.prototype.Y=function(){this.u&&g.zp(this.u);this.o.clear();dY=null;g.A.prototype.Y.call(this)};
cY.prototype.register=function(a,b){b&&this.o.set(a,b)};
var dY=null;g.r(hY,TX);hY.prototype.addEventListener=function(a,b){this.C.subscribe(a,b)};
hY.prototype.removeEventListener=function(a,b){this.C.unsubscribe(a,b)};
hY.prototype.dispatchEvent=function(a){this.C.R(a.type,a)};g.r(iY,g.A);g.h=iY.prototype;g.h.bind=function(a){var b=a.renderer,c=b.trackingParams;if(this.J&&this.J!=c)throw Error("Cannot re-bind presenter with new tracking params");if(c){this.J=c;var d=this.view,e=this.o,f=d.gb();g.UL(e,f,d);g.VL(e,f,c)}this.H=b.impressionEndpoints||[];this.macros=Object.assign({},a.macros);return this.B(a)};
g.h.Ea=function(){return this.O};
g.h.show=function(){this.view.show();this.O=!0;var a=this.o,b=this.view.gb();YL(a,b)&&g.XL(a,b,!0);kY(this,this.H);this.H=[]};
g.h.hide=function(){this.ur();this.O=!1;var a=this.o,b=this.view.gb();YL(a,b)&&g.XL(a,b,!1)};
g.h.ur=function(){this.view.hide()};
g.h.onClick=function(a){a=void 0===a?{}:a;this.G(a);if(this.Ea()){a=this.o;var b=this.view.gb();YL(a,b)&&g.WL(a,b)}};
g.h.executeCommand=function(a){this.A.executeCommand(a,jY(this))};g.r(lY,g.P);g.h=lY.prototype;g.h.show=function(){if(!this.Ea()){this.B.L(document,"click",this.gH);this.o.show();var a=this.o.element,b=g.Ph(Hh(this.A)).width,c=g.Ph(this.A),d=Fh(this.A);a.style.top=d.y+c.height+"px";a.style.right=b-d.x-c.width+"px"}};
g.h.hide=function(){this.Ea()&&(this.o.hide(),g.yr(this.B))};
g.h.Ea=function(){return this.o.Ea()};
g.h.setTitle=function(a){a?this.w.show():this.w.hide();this.w.tb(nY(a))};
g.h.gH=function(a){this.Ea()&&(a=a.target,g.xe(this.A,a)||(g.xe(this.u.o["ytp-ad-info-dialog-confirm-button"],a)?this.R("confirmClick"):g.xe(this.o.element,a)||this.R("externalClick")))};
var qma={wQ:"confirmClick",TQ:"externalClick"};g.r(oY,hY);oY.prototype.setTitle=function(a){this.o.setTitle(a)};
oY.prototype.show=function(){this.o.show()};
oY.prototype.hide=function(){this.o.hide()};
oY.prototype.gb=function(){return this.o.o.element};var rma={TC:oY},tma=["confirmClick","externalClick"];g.r(pY,iY);pY.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.tb(nY(d));b.setTitle(a.title||null);b.o.o.tb(nY(a.dialogMessage||null));g.se(mY(b.o));c=g.q(a.adReasons||[]);for(d=c.next();!d.done;d=c.next())d=d.value,mY(b.o).appendChild(g.oe("li",null,nY(d)));this.u=a.confirmServiceEndpoint||null;return Promise.resolve()};
pY.prototype.ur=function(){iY.prototype.ur.call(this);this.u&&(this.executeCommand(this.u),this.u=null)};
pY.prototype.G=function(a){switch(a.type){case "confirmClick":case "externalClick":this.hide()}};g.r(qY,Z);g.h=qY.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=gY(b.hoverText),g.te(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.tr=function(){this.u&&g.Qh(this.u,!1)};
g.h.iH=function(){this.w.Ea()||this.u&&g.Qh(this.u,!0)};
g.h.hH=function(){this.w.show();this.tr()};
g.h.clear=function(){this.hide()};g.r(rY,RX);g.r(sY,wX);g.h=sY.prototype;g.h.Vc=function(){return!1};
g.h.Ec=function(){return!0};
g.h.dx=function(){var a=this.o,b=new vla;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=tY(a.impressionCommands||[]);b.clickTrackingUrls=tY(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new OU;a.iframeCompanionRenderer=b;return a};
g.h.Zw=function(){return[new g.Ud(300,60)]};
g.h.mw=function(a,b){return new rY(a,b,this.o)};g.r(uY,Y);g.h=uY.prototype;g.h.mr=function(a){if(!oU(a)){var b=new DX(this.G);a=EX(a);GX(b,a)}this.xj()};
g.h.xj=function(){var a=this;if(this.o instanceof sY){var b=this.aa.getVideoData(2);if(!b||b.Dd||(null==this.o.o||this.o.o.adVideoId!=b.videoId)&&!g.Q(this.aa.N().experiments,"ignore_video_data_current_ad_check")){this.w=function(c,d,e){if(d&&2==e&&null!=a.o.o&&a.o.o.adVideoId==d.videoId||g.Q(a.aa.N().experiments,"ignore_video_data_current_ad_check"))a.w&&(a.aa.removeEventListener("videodatachange",a.w),a.w=null),g.Q(a.aa.N().experiments,"populate_companion_metadata_from_vms_html5")?PV(a):d.isListed&&
PV(a)};
this.aa.addEventListener("videodatachange",this.w);return}if(!b.isListed&&!g.Q(this.aa.N().experiments,"populate_companion_metadata_from_vms_html5"))return}PV(this)};
g.h.Zb=function(){var a=this;kZ(this.G,this);if(wV(this.aa)){var b=this.aa.getVideoData(1),c=this.o.dx();null!=c&&(c.macros=Object.assign({},this.macros),this.H.showCompanion(b.videoId,c))}else{var d=this.o.Zw();wla(this.H).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.o.mw(a.aa,a.G,e),null!=f&&(g.C(a,f),k=a.H,k.o&&k.o.showCompanion(f.element,
e.width,e.height)))})}if(this.o instanceof sY){this.B=function(e){var f;
if(f=e.data)try{f=lq(e.source.document.location.origin)}catch(l){f=!1}if(f)if(f=a.o.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.Jo(l)}else"pause-video"==e.data&&a.aa.pauseVideo()};
try{window.addEventListener("message",this.B)}catch(e){g.M(e)}}};
g.h.onAdUxClicked=function(a){NV(this.vb,a)};
g.h.wb=function(){return this.A.wb()};
g.h.Co=function(){return fV(this.A)};
g.h.Ms=function(){return eV(this.A)};
g.h.gj=function(){return!0};
g.h.vl=function(){return this.A.o.Ec()};
g.h.zp=function(){};
g.h.Y=function(){if(this.B)try{window.removeEventListener("message",this.B),this.B=null}catch(a){g.M(a)}this.w&&(this.aa.removeEventListener("videodatachange",this.w),this.w=null);Y.prototype.Y.call(this)};var vma=Object.freeze([ZV,dW,cV,lW,mW,TU]);g.r(wY,HX);g.h=wY.prototype;g.h.Rw=function(){for(var a=this.A.o,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.h.Vx=function(){return(0>=this.C?this.A.o:this.A.o.slice(this.C)).some(function(a){return a.Vc()})};
g.h.wl=function(){return this.G instanceof cV||this.G instanceof lW};
g.h.Zg=function(){return this.G instanceof TU||this.G instanceof dW};
g.h.bB=function(){this.Ub?uV(this.aa)&&IX(this):xY(this)};
g.h.Zb=function(a){var b=vY(a);this.G&&b&&this.H!==b&&(b?mZ(this.wc):oZ(this.wc),this.H=b);this.G=a;this.Ub&&(this.C=this.A.o.findIndex(function(c){return c===a}));
HX.prototype.Zb.call(this,a)};
g.h.Kg=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.Kg.call(this,a,b)};
g.h.Do=function(){this.C=this.A.o.length;this.w&&this.w.bb("h");this.u&&this.u.bb("h");this.Kg()};
g.h.vz=function(){xY(this)};
g.h.Ns=function(){this.ni()};
g.h.Ps=function(a){HX.prototype.Ps.call(this,a);a=a.state;g.W(a,2)&&this.w?this.w.Uc():g.xD(a)?(null==this.w&&(a=this.A.w)&&(this.w=this.Cg.create(a,lV(iV(this.o))),this.w.subscribe("onAdUxUpdate",this.uz,this),PV(this.w)),this.w&&this.w.Xf()):a.isError()&&this.w&&this.w.Vb(a.u.errorCode)};
g.h.ni=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Ub||(rZ(this.wc,0),a?this.Kg(a,b):xY(this))};
g.h.dA=function(){1==this.A.u?this.Kg():this.ni()};
g.h.onAdUxClicked=function(a){HX.prototype.onAdUxClicked.call(this,a);this.w&&this.w.ji(a)};
g.h.Bn=function(){var a=0>=this.C?this.A.o:this.A.o.slice(this.C);return 0<a.length?a[0]:null};
g.h.Y=function(){g.He(this.w);this.w=null;HX.prototype.Y.call(this)};
g.h.ki=function(){return this.H};
g.h.vl=function(){return this.A.o.every(function(a){return a.Ec()})};
g.h.reset=function(){return new wY(this.wc,this.aa,this.F.reset(),this.o,this.Je,this.Pi,this.Cg,this.Ub)};
g.h.Ow=function(){return this.C};
g.h.Qw=function(){return this.A.o.length};g.r(yY,RX);yY.prototype.C=function(a){g.xe(this.w.element,a.target)||(g.Ep(a),SX(this,this.u.onClickCommands),this.executeCommand(this.u.clickthroughEndpoint),this.aa.onAdUxClicked("image-companion"),this.aa.pauseVideo())};g.r(zY,wX);g.h=zY.prototype;g.h.Vc=function(){return!1};
g.h.Ec=function(){return!0};
g.h.dx=function(){var a=new OU;a.imageCompanionAdRenderer=this.o;return a};
g.h.Zw=function(){return this.u};
g.h.mw=function(a,b,c){return new yY(a,b,this.o,c)};g.r(AY,XU);g.r(BY,XU);g.r(CY,XU);DY.prototype.create=function(a,b){function c(F){return new TU(F,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,B=a.multipleInstreamVideoAdRenderer,D=a.linearAdSequenceRenderer,E=a.adsEngagementPanelRenderer,G=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new gW(f):null!=
k?new hW(k):null!=l&&l.iframeUrl?new sY(l):null!=m?new zY(m):null!=n?new cV(n):null!=t?new CY(t,c,this.o):null!=B?new BY(B,c):null!=p?new jW(p):null!=u?new kW(u):null!=z?new UV(z):null!=D?new AY(D,c):null!=E?new fW(E):null!=G?new WU(G):null};EY.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 mU(k.w,k.u,k.Ub,k.A),m=k.Qc;m&&(l.Qc=new Ct(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.Qc=f;e.push(FY(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,iX(this.o)&&null!=f.actionCompanionAdRenderer||jX(this.o)&&null!=f.imageCompanionAdRenderer||
kX(this.o)&&null!=f.shoppingCompanionCarouselRenderer||eZ(this.o)&&null!=f.clientForecastingAdRenderer||(e.push(FY(this,d,c,b)),c++);return e};g.r(GY,g.A);g.r(IY,g.A);IY.prototype.addEventListener=function(a,b){this.o=b};
IY.prototype.removeEventListener=function(){this.o=null};
g.r(JY,g.A);JY.prototype.addEventListener=function(a,b,c){this.o.addEventListener(a,b,c)};
JY.prototype.removeEventListener=function(a,b){this.o.removeEventListener(a,b)};g.r(KY,g.A);LY.prototype.reset=function(){this.o=-1};var OY=null,QY=null,SY=null,UY=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return OY},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return QY},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return SY},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return UY},void 0);g.r(ZY,g.P);g.h=ZY.prototype;
g.h.init=function(){var a=this.o.getVideoData(1);if(a.Pm||g.L("SERVED_VIA_SPF_HISTORY"))g.Q(this.o.N().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?this.O():dZ(this);else{wV(this.o)&&XY(QC(this.o));this.B.L(this.o,"applicationplayerstatechange",this.pz);this.B.L(this.o,g.XD("ad"),this.ul,this);this.B.L(this.o,"crx_ad",this.qz,this);this.B.L(this.o,"aduxclicked",this.eA);this.B.L(this.o,"videodatachange",this.rz);var b=a.getPlayerResponse()||{};b=$Y(b);b=aZ(this,b);b=bZ(this,
b);0<b.length&&hZ(this,b);this.G&&(a.subscribe("cuepointupdated",this.El,this),this.w&&a.ka&&this.El(Xy(a.ka,0)));dZ(this);g.wf(this.uC,this)}};
g.h.Y=function(){this.da=!0;g.yr(this.B);this.G&&YY(this).unsubscribe("cuepointupdated",this.El,this);if(wV(this.o)){var a=QC(this.o);a.removeEventListener("updateKevlarOrC3Companion",PY);a.removeEventListener("onPlaShelfInfoCardsReady",RY);a.removeEventListener("updateEngagementPanelAction",TY);a.removeEventListener("changeEngagementPanelVisibility",VY);window.removeEventListener("yt-navigate-start",WY);UY=SY=OY=null}a=g.q(this.C.values());for(var b=a.next();!b.done;b=a.next())nZ(this,b.value);lZ(this,
!1);this.F.clear();this.V=[];this.S.clear();g.He(this.A);this.A=null;g.He(this.P);this.P=new Map;this.C.clear();g.P.prototype.Y.call(this)};
g.h.ul=function(a){if(!a.o&&(!pU(a)||a.contains(qZ(this)))){var b=g.zL(this.o,1);(this.o.N().fa("html5_sync_seeking_state")?g.W(b,32):!g.W(b,64)&&(g.W(b,32)||g.W(b,16)))?this.S.add(a):(b=this.C.get(a))?((this.w?0:g.Q(this.o.N().experiments,"enable_eviction_protection_for_bulleit"))?b.gj()&&this.A?this.A.vl():!b.gj()&&this.u?this.u.vl():1:1)?b.mr(a):a.o=!0:(b=Error("coordinator not found"),b.params=a.toString(),g.M(b))}};
g.h.qz=function(a){a.o&&(a.o=!1);this.S["delete"](a)};
g.h.El=function(a){dma(this.Ba,a);if(null==this.G)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.na.reduce(b.value)}else 0!=(this.o.getCurrentTime(g.Q(this.o.N().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0)||0)&&(a=a.filter(function(c){return"start"==c.event}),hZ(this,[this.G],a))};
g.h.AA=function(a){hZ(this,[this.G],[a])};
g.h.gL=function(a){dM(this.o,1E3*a)};
g.h.uI=function(a){this.u&&this.u.Ps(a)};
g.h.pz=function(a){0>DD(a,16)&&(this.S.forEach(this.ul,this),this.S.clear())};
g.h.rz=function(){if(this.u){var a=this.u;a.Ub&&IX(a)}if(this.w){a=1E3*this.o.getCurrentTime(g.Q(this.o.N().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0);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.ul(c);break}}};
g.h.EN=function(){var a=null;this.w&&(a=this.o.getCurrentTime(g.Q(this.o.N().experiments,"bulleit_explicitly_use_content_video_ms_for_cue_range")?1:void 0),this.na.updateTime(a));if(uV(this.o)&&this.u){var b=this.o.getCurrentTime(2,!1),c=this.u;if(c.u){var d=c.u;d.F&&EV(d.vb,b,d.getDuration());if(null!==a&&(b=c.o.A,!(null===b||g.Q(c.aa.N().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.o.wb().start,1E3*a<d+b)))){c.o.A=null;var e=NX(c),f=Math.min(a+PT(c.aa.app),e/1E3),k=c.o.u&&c.o.u.identifier;
a<f?(c.aa.seekTo(f,void 0,void 0,1),c=c.Je,a*=1E3,f*=1E3,c.u&&xX({driftRecoveryInfo:{contentCpn:c.o.clientPlaybackNonce,cueIdentifier:k||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*PT(c.w.app)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):zX(c.Je,{cueIdentifier:k,driftRecoveryMs:b,aB:d,ny:e})}}}};
g.h.SJ=function(){this.ya=!0;if(this.u){var a=this.u;a.u&&a.u.Bc()}};
g.h.eA=function(a){if(this.u)this.u.onAdUxClicked(a);if(this.A)this.A.onAdUxClicked(a)};
g.h.vI=function(){if(2==this.o.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.vb;a=a.aa.isMuted();BV(b)||GV(b,a?"mute":"unmute")}};
g.h.tI=function(a){if(this.u){var b=this.u.u.vb;zV(b)||HV(b,a?"fullscreen":"end_fullscreen")}};
g.h.uC=function(){for(var a=[],b=g.q(this.F),c=b.next();!c.done;c=b.next())c=c.value,oU(c)||a.push(c);b=this.o.app;1!=b.getPresentingPlayerType()||lT(b,"cuerangemarkersupdated",a)};
g.h.Py=function(){this.u&&this.u.ki()&&this.u.vz()};
g.h.Oy=function(){this.u&&this.u.ki()&&this.u.Ns()};
g.h.us=function(){this.u&&this.u.ki()&&this.u.Do()};
g.h.Gw=function(a){if(a=this.P.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=hZ(this,[a]))&&0!==a.length&&(a=a[0],jZ(this,a),a.xj()):g.M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.h.Qq=function(a){(a=this.P.get(a))&&(a=hZ(this,[a]))&&0!=a.length&&a[0].xj()};
g.h.xq=function(){iZ(this)};
g.h.seekTo=function(a){uV(this.o)&&this.u.Zg()&&this.o.qb().seekTo(a)};
g.h.resume=function(){this.u&&this.u.resume()};
g.h.executeCommand=function(a,b,c){this.Ra.executeCommand(a,b,Fma(this,void 0===c?null:c))};
g.h.Nw=function(){return this.ra};g.r(tZ,Z);tZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&sZ(a)||"";g.hc(b)?(g.Q(this.api.N().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Jo(Error("Found AdImage without valid image URL")):(this.u?g.vh(this.element,"backgroundImage","url("+b+")"):fe(this.element,{src:b}),fe(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
tZ.prototype.clear=function(){this.hide()};g.r(vZ,Z);
vZ.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.Jo(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.hc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.HC({D:"span",I:"ytp-ad-button-text",W:a}),g.C(this,this.B),this.B.ba(this.element)));null!=b.icon&&(b=uZ(b.icon),null!=
b&&(this.w=new g.HC({D:"span",I:"ytp-ad-button-icon",K:[b]}),g.C(this,this.w)),this.C?g.te(this.element,this.w.element,0):this.w.ba(this.element))}};
vZ.prototype.clear=function(){this.hide()};
vZ.prototype.onClick=function(a){var b=this;Z.prototype.onClick.call(this,a);Jma(this).forEach(function(c){return b.oa.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};g.r(wZ,Z);wZ.prototype.clear=function(){this.dispose()};g.r(zZ,wZ);g.h=zZ.prototype;g.h.init=function(a,b,c){wZ.prototype.init.call(this,a,b,c);g.vh(this.A,"stroke-dasharray","0 "+this.w);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){yZ(this);wZ.prototype.hide.call(this)};
g.h.show=function(){xZ(this);wZ.prototype.show.call(this)};
g.h.ti=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.vh(this.A,"stroke-dasharray",a+" "+this.w))}};g.r(AZ,Z);AZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.ye(this.element,YX(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?sZ(a):"",c=(c=this.api.getVideoData(1))&&c.Xl,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()};
AZ.prototype.isTemplated=function(){return this.u.isTemplated||!1};
AZ.prototype.clear=function(){this.hide()};g.r(CZ,wZ);g.h=CZ.prototype;
g.h.init=function(a,b,c){wZ.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.ga&&g.J(this.w.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.U=null==a||0===a?this.u.Nz():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.A.init(rU("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Xl&&b.thumbnail?this.C.init(rU("ad-image"),b.thumbnail,c):this.H.hide()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.w.hide();this.A.hide();this.C.hide();yZ(this);wZ.prototype.hide.call(this)};
g.h.show=function(){xZ(this);this.w.show();this.A.show();this.C.show();wZ.prototype.show.call(this)};
g.h.ti=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.Z&&a>=this.U?(g.Q(this.api.N().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.J.hide(),this.Z=!0,this.R("t")):this.A&&this.A.isTemplated()&&(a=Math.max(0,Math.ceil((this.U-a)/1E3)),a!=this.ea&&(BZ(this.A,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.r(EZ,g.A);g.h=EZ.prototype;g.h.Y=function(){this.reset();g.A.prototype.Y.call(this)};
g.h.reset=function(){g.yr(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.JL,this);this.B.L(this.w,"mouseout",this.GL,this);this.o?this.o.start():(this.C=this.u=!0,g.vh(this.w,{opacity:this.H}))};
g.h.JL=function(){this.u&&(this.u=!1,this.F.play());this.A.stop();this.o&&this.o.stop()};
g.h.GL=function(){this.C?this.A.start():this.o&&this.o.start()};
g.h.Mv=function(){this.u||(this.u=!0,this.G.play(),this.C=!0)};var Kma=Ab(function(){return new nba}),Pma=Ab(function(){return new Mma});g.r(GZ,wZ);g.h=GZ.prototype;
g.h.init=function(a,b,c){wZ.prototype.init.call(this,a,b,c);this.H=b;this.ea=Qma(this);!b||g.Ob(b)?g.M(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Ob(b.message)?g.M(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=uZ(a),null==b?g.M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.C=new g.HC({D:"button",X:["ytp-ad-skip-button","ytp-button"],K:[{D:"span",I:"ytp-ad-skip-button-icon",
K:[b]}]}),g.C(this,this.C),this.C.ba(this.A.element),this.w=new AZ(this.api,this.oa,"ytp-ad-skip-button-text"),this.w.init(rU("ad-text"),this.H.message,c),g.C(this,this.w),g.te(this.C.element,this.w.element,0)),g.Q(this.api.N().experiments,"bulleit_use_touch_events_for_skip")&&bY(this))};
g.h.clear=function(){this.U.reset();this.hide()};
g.h.hide=function(){this.A.hide();this.w&&this.w.hide();yZ(this);wZ.prototype.hide.call(this);this.Z.stop();this.J&&(this.J(),this.J=null)};
g.h.onClick=function(a){if(null!=this.C&&(a&&g.Ep(a),wZ.prototype.onClick.call(this,a),this.R("u"),!this.ea))this.api.onAdUxClicked(this.componentType)};
g.h.Uw=function(){return"skip"};
g.h.show=function(){this.U.start();this.A.show();this.w&&this.w.show();xZ(this);wZ.prototype.show.call(this);g.Bn(this.Z)};
g.h.ti=function(){this.R("v")};
g.h.nh=function(){};g.r(HZ,g.P);g.h=HZ.prototype;g.h.Nz=function(){return this.u};
g.h.start=function(){this.w||(this.w=!0,this.Da.start())};
g.h.stop=function(){this.w&&(this.w=!1,this.Da.stop())};
g.h.sJ=function(){this.o+=100;var a=!1;this.o>this.u&&(this.o=this.u,this.Da.stop(),a=!0);this.A={seekableStart:0,seekableEnd:this.u/1E3,current:this.o/1E3};this.B&&MW(this.B,this.A.current);this.R("b");a&&this.R("a")};
g.h.getProgressState=function(){return this.A};g.r(IZ,Z);g.h=IZ.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.hc(g.hd(e[0].url))&&(e[0].url=d.Od);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.hc(g.hd(e[0].url))&&(e[0].url=d.Ac());e=b.headline;null!=e&&g.hc(g.hd(e.text))&&(e.text=d.author)}this.H.init(rU("ad-image"),b.image,c);this.V.init(rU("ad-text"),b.headline,c);this.U.init(rU("ad-text"),b.description,c);this.J.init(rU("ad-image"),b.backgroundImage,c);this.u=new vZ(this.api,this.oa,["ytp-ad-action-interstitial-action-button"]);g.C(this,this.u);this.u.ba(this.ya);this.u.init(rU("button"),
b.actionButton.buttonRenderer,c);this.Z=b.navigationEndpoint;this.api.N().o||(this.C.L(this.na,"click",this.Lq,this),this.C.L(this.ga,"click",this.Lq,this),this.C.L(this.ea,"click",this.Lq,this));this.w=new HZ(a);g.C(this,this.w);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.w&&(this.B=new GZ(this.api,this.oa,this.w),g.C(this,this.B),this.B.ba(this.element),this.B.init(rU("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.w&&(this.A=
new CZ(this.api,this.oa,this.w,!1),g.C(this,this.A),this.A.ba(this.element),this.A.init(rU("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.w&&(c=new zZ(this.api,this.oa,this.w),g.C(this,c),c.ba(this.element),c.init(rU("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.yr(this.C);this.hide()};
g.h.show=function(){JZ(!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(){JZ(!1);this.u&&this.u.hide();this.B&&this.B.hide();this.A&&this.A.hide();Z.prototype.hide.call(this)};
g.h.Lq=function(){this.Z&&this.oa.executeCommand(this.Z,this.macros)};g.r(KZ,Z);
KZ.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var d=[],e=g.q(b.adChoiceButtons),f=e.next();!f.done;f=e.next()){var k=(f=f.value)&&f.buttonRenderer;if(!k){g.M(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}k=k.text;if(!k){g.M(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}d.push(f.buttonRenderer);f=g.T(k);a=Math.max(a,
f.length)}e=b.durationMilliseconds||0;if("number"!==typeof e||0>e)g.M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+e));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){g.ye(this.o["ytp-ad-choice-interstitial-head-title"],g.T(b.text));a:switch(f=b.defaultButtonChoiceIndex,f){case 0:case 1:break a;default:g.M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+
f)),f=1}k=a;2!==d.length?d=!1:(this.A=Rma(this,d[0],k,0===f),this.A.show(),this.C=Rma(this,d[1],k,1===f),this.C.show(),d=!0);d?(Sma(this,b.completeCommands,c,e),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&(d=b.adDurationRemaining.timedPieCountdownRenderer,e=this.o["ytp-ad-choice-interstitial"],this.w=new zZ(this.api,this.oa,this.u,!0),g.C(this,this.w),this.w.init(rU("timed-pie-countdown"),d,c),this.w.ba(e)),b&&b.background&&(c=this.o["ytp-ad-choice-interstitial"],b=
sZ(b.background)||"",g.hc(b)?g.Jo(Error("Found ThumbnailDetails without valid image URL")):g.vh(c,"backgroundImage","url("+b+")")),b=8*a+32,a=this.o["ytp-ad-choice-interstitial-button-container"],190<b?(a.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),a.style.width=b+"px"):(a.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),a.style.width=""),this.show()):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."))};
KZ.prototype.clear=function(){this.hide()};g.r(LZ,Z);g.h=LZ.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(rU("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(){Tma(!0);Z.prototype.show.call(this)};
g.h.hide=function(){Tma(!1);Z.prototype.hide.call(this)};
g.h.onClick=function(){};g.r(MZ,Z);
MZ.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 vZ(this.api,this.oa),g.C(this,this.button),this.button.init(rU("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.ba(this.element),this.C&&!g.Kn(this.button.element,"ytp-ad-clickable")&&g.J(this.button.element,"ytp-ad-clickable"),a&&
(this.w=new g.HC({D:"div",I:"ytp-ad-hover-text-container"}),this.B&&(b=new g.HC({D:"div",I:"ytp-ad-hover-text-callout"}),b.ba(this.w.element),g.C(this,b)),g.C(this,this.w),this.w.ba(this.element),b=gY(a),g.te(this.w.element,b,0)),this.show())};
MZ.prototype.hide=function(){this.button&&this.button.hide();this.w&&this.w.hide();Z.prototype.hide.call(this)};
MZ.prototype.show=function(){this.button&&this.button.show();Z.prototype.show.call(this)};g.r(NZ,Z);g.h=NZ.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.Jo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Jo(Error("AdFeedbackRenderer.title was not set.")),Xma(this,b)):g.M(Error("AdFeedbackRenderer.reasons were not set."))};
g.h.clear=function(){Jp(this.B);Jp(this.H);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.Rz=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.R("w");this.hide()};
g.h.yN=function(){this.hide()};
Yma.prototype.isChecked=function(){return this.w.checked};g.r(OZ,Z);g.h=OZ.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.")):Zma(this,b):g.M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.yr(this.u);this.hide()};
g.h.ot=function(){this.hide()};
g.h.nt=function(){var a=this.w.cancelEndpoint;a&&this.oa.executeCommand(a,this.macros);this.hide()};
g.h.qt=function(){var a=this.w.confirmNavigationEndpoint||this.w.confirmEndpoint;a&&this.oa.executeCommand(a,this.macros);this.hide()};g.r(PZ,OZ);PZ.prototype.ot=function(a){OZ.prototype.ot.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
PZ.prototype.nt=function(a){OZ.prototype.nt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
PZ.prototype.qt=function(a){OZ.prototype.qt.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.R("x")};g.r(QZ,Z);g.h=QZ.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.Jo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new vZ(this.api,this.oa,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.C(this,this.u),this.u.init(rU("button"),
a,this.macros),this.u.ba(this.element);b.title&&(a=g.T(b.title),this.ha("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=gY(a[c]);if(!g.hc(d.textContent)){var e=g.oe("LI");e.appendChild(d);this.U.appendChild(e)}}else g.Qh(this.U,!1);b.dialogMessage&&(a=gY(b.dialogMessage,!0),this.ea.appendChild(a));b.confirmLabel&&(a=g.T(b.confirmLabel),this.ha("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.Jo(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?ana(this,a):c&&bna(this,c),this.A=new vZ(this.api,this.oa,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.A),this.A.init(rU("button"),b,this.macros),this.A.ia("click",this.HJ,this),this.A.ba(this.ga)));cna(this)}};
g.h.clear=function(){Jp(this.H);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.J&&this.J.focus()};
g.h.show=function(){this.u&&this.u.show();this.A&&this.A.show();this.V||($ma(this),this.V=!0);this.J=document.activeElement;Z.prototype.show.call(this);this.H.focus()};
g.h.Sz=function(){this.C&&this.C.confirmServiceEndpoint&&this.oa.executeCommand(this.C.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.R("z");this.hide()};
g.h.HJ=function(){var a=this.w?this.w:this.B;a&&!a.Ea()&&(this.hide(),a.show())};g.r(RZ,MZ);RZ.prototype.init=function(a,b,c){MZ.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(ena(this,a,c),this.show())};
RZ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();MZ.prototype.hide.call(this)};
RZ.prototype.show=function(){this.button&&this.button.show();MZ.prototype.show.call(this)};
RZ.prototype.clear=function(){this.hide()};var fna={iconType:"CLOSE"};g.r(SZ,Z);g.h=SZ.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)&&hna(this,a,b.adInfoRenderer)&&(jna(this,!0),this.show(),this.ya.start())};
g.h.onClick=function(a){var b=this;if(!g.xe(this.Ha,a.target)){Z.prototype.onClick.call(this,a);var c=g.Rb(this.macros),d=g.Ph(this.u);c.AW={toString:function(){return d.width.toString()}};
c.AH={toString:function(){return d.height.toString()}};
var e=g.Mh(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.ga.toString()}};
this.Ba.forEach(function(f){return b.oa.executeCommand(f,c)});
this.api.pauseVideo()}};
g.h.clear=function(){jna(this,!1);this.ga=0;aY(this,this.u,!1);this.ya.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;ina(this).forEach(function(b){return a.oa.executeCommand(b,a.macros)});
this.clear()};
g.h.xJ=function(){this.V=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.yJ=function(){this.V||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.BJ=function(){this.V||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.zJ=function(a){if(this.J){var b=g.de("ytp-ad-button",this.J.element);a.target===this.B&&b&&b.click()}};var UZ={iconType:"CLOSE"},YZ=new g.Ud(320,63);g.r(TZ,Z);g.h=TZ.prototype;
g.h.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);this.B=b;this.H=g.kb(this.B.onClickCommands||[]);if(a=this.B.contentSupportedRenderer)a=this.B.contentSupportedRenderer,b=this.B.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.C=g.de("ytp-ad-overlay-ad-info-button-container",this.A.element),WZ(this,b),a=ona(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.C=g.de("ytp-ad-overlay-ad-info-button-container",this.w.element),WZ(this,b),a=pna(this,a.enhancedTextOverlayAdContentRenderer)):
a.imageOverlayAdContentRenderer?(this.C=g.de("ytp-ad-overlay-ad-info-button-container",this.u.element),WZ(this,b),a=qna(this,a.imageOverlayAdContentRenderer)):(g.M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),rna(this,!0))};
g.h.FJ=function(){this.api.app.G.o&&this.clear()};
g.h.clear=function(){rna(this,!1);this.Z.reset();this.J=0;this.A.hide();aY(this,this.A.element,!1);this.w.hide();aY(this,this.w.element,!1);this.u.hide();aY(this,this.u.element,!1);this.hide();this.dispose()};
g.h.nN=function(){this.ga&&this.oa.executeCommand(this.ga,this.macros);this.api.pauseVideo()};
g.h.jt=function(){var a=this;nna(this).forEach(function(b){return a.oa.executeCommand(b,a.macros)});
this.clear()};
g.h.CJ=function(){this.ea=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.h.DJ=function(){this.ea||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.h.GJ=function(){this.ea||2!=this.api.getPlayerState(1)||this.api.playVideo();this.clear()};
g.h.EJ=function(a){a.target===this.C&&g.de("ytp-ad-button",this.na.element).click()};g.r(ZZ,wZ);g.h=ZZ.prototype;g.h.init=function(a,b,c){wZ.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(rU("ad-text"),d,c);this.w.ba(this.A.element);this.H.show(100);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){sna(this,!1);wZ.prototype.hide.call(this);this.A.hide();this.w.hide();yZ(this)};
g.h.show=function(){sna(this,!0);wZ.prototype.show.call(this);xZ(this);this.A.show();this.w.show()};
g.h.ti=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.J&&a>=this.C?(this.H.hide(),this.J=!0):this.w&&this.w.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!=this.U&&(BZ(this.w,{TIME_REMAINING:String(a)}),this.U=a)))}};g.r($Z,wZ);g.h=$Z.prototype;
g.h.init=function(a,b,c){wZ.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Ob(a)?null:a){this.C=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.nv(this.api.N().experiments,"preskip_button_style_ads_backend")&&Hx(this.api.N());this.w=new CZ(this.api,this.oa,this.u,d);this.w.init(rU("preskip-component"),a,c);DZ(this.w);g.C(this,this.w);this.w.ba(this.element);g.Q(this.api.N().experiments,
"enable_pubsub_for_skip_transition_bulleit")&&this.w.subscribe("t",this.lM,this)}else b.skipOffsetMilliseconds&&(this.C=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Ob(b)?null:b;null==b?g.M(Error("SkipButtonRenderer was not set in player response.")):(this.A=new GZ(this.api,this.oa,this.u),this.A.init(rU("skip-button"),b,c),g.C(this,this.A),this.A.ba(this.element),this.show())};
g.h.show=function(){this.H&&this.A?this.A.show():this.w&&this.w.show();xZ(this);wZ.prototype.show.call(this)};
g.h.ti=function(){};
g.h.clear=function(){this.w&&this.w.clear();this.A&&this.A.clear();yZ(this);wZ.prototype.hide.call(this)};
g.h.hide=function(){this.w&&this.w.hide();this.A&&this.A.hide();yZ(this);wZ.prototype.hide.call(this)};
g.h.lM=function(){a_(this,!0)};
g.h.nh=function(){g.Q(this.api.N().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.w||1E3*this.u.getProgressState().current>=this.C&&a_(this,!0):1E3*this.u.getProgressState().current>=this.C&&a_(this,!0)};g.r(b_,Z);b_.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new $Z(this.api,this.oa,this.u),b.ba(this.w),b.init(rU("skip-button"),a.skipAdRenderer,this.macros),g.C(this,b)));this.show()};g.r(c_,wZ);g.h=c_.prototype;g.h.init=function(a,b,c){wZ.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Jo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.w=new AZ(this.api,this.oa);this.w.init(rU("ad-text"),a,{});this.w.ba(this.element);g.C(this,this.w)}this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){yZ(this);wZ.prototype.hide.call(this)};
g.h.ti=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 HZ?a.seekableEnd:this.api.getDuration(2,g.Q(this.api.N().experiments,"halftime_ux_killswitch")?void 0:!1))-a.current;var b=g.xM(a);BZ(this.w,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){xZ(this);wZ.prototype.show.call(this)};g.r(d_,AZ);d_.prototype.onClick=function(a){AZ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.r(e_,wZ);g.h=e_.prototype;
g.h.init=function(a,b,c){wZ.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.hc(g.hd(d[0].url))&&(d[0].url=a.Od)}else Nq(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.H.init(rU("ad-image"),b.image,c);this.C.init(rU("ad-text"),
b.headline,c);this.A.init(rU("ad-text"),b.description,c);this.w.init(rU("button"),b.actionButton.buttonRenderer,c);this.J=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.U=b.startMs||0;xZ(this)}else Mq(Error("FlyoutCtaRenderer has no valid action button."));else Mq(Error("FlyoutCtaRenderer has no description AdText."));else Mq(Error("FlyoutCtaRenderer has no headline AdText."));else Nq(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){wZ.prototype.onClick.call(this,a);this.api.pauseVideo();!g.xe(this.w.element,a.target)&&this.J&&this.oa.executeCommand(this.J,this.macros)};
g.h.nh=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.U&&(yZ(this),g.Mn(this.element,"ytp-flyout-cta-inactive"))}};
g.h.ti=function(){this.clear()};
g.h.clear=function(){this.hide()};
g.h.show=function(){this.w&&this.w.show();wZ.prototype.show.call(this)};
g.h.hide=function(){this.w&&this.w.hide();wZ.prototype.hide.call(this)};g.r(f_,Z);g.h=f_.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.hc(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Qh(this.V,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.U.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=uZ(b.defaultIcon),this.ha("untoggledIconTemplateSpec",c),b.toggledIcon?(this.H=!0,c=uZ(b.toggledIcon),this.ha("toggledIconTemplateSpec",c)):(g.Qh(this.C,!0),g.Qh(this.B,!1)),g.Qh(this.u,!1)):g.Qh(this.U,!1);g.Ob(a)||this.update(a);b.isToggled&&(g.J(this.A,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));g_(this);this.J=this.L(this.element,"change",this.Pz);g.Q(this.api.N().experiments,"bulleit_use_touch_events_for_magpie")&&bY(this,this.J);this.show()}};
g.h.onClick=function(a){0<this.S.length&&(this.toggleButton(!this.isToggled()),this.Pz());Z.prototype.onClick.call(this,a)};
g.h.Pz=function(){var a=this;g.K(this.A,"ytp-ad-toggle-button-toggled",this.isToggled());tna(this,this.isToggled()).forEach(function(b){return a.oa.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");g_(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;g_(this)};
g.h.isToggled=function(){return this.u.checked};g.r(h_,Z);g.h=h_.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&&(una(this,c),g.Q(this.api.N().experiments,"bulleit_use_touch_events_for_magpie")&&bY(this,this.C),this.B.show(100),this.show(),(this.u&&this.u.impressionCommands||[]).forEach(function(e){return d.oa.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.Qz=function(){var a=this.element,b=!g.Kn(a,"ytp-ad-instream-user-sentiment-selected");g.K(a,"ytp-ad-instream-user-sentiment-selected",b);this.u.postMessageAction&&this.api.ma("onYtShowToast",this.u.postMessageAction);this.B.hide()};
g.h.onClick=function(a){0<this.S.length&&this.Qz();Z.prototype.onClick.call(this,a)};g.r(i_,vZ);
i_.prototype.init=function(a,b,c){vZ.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.T(b.text),a=!g.hc(a));a?null==b.navigationEndpoint?g.Jo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Jo(Error("Button style was not a link-style type in renderer,")):(g.Q(this.api.N().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&bY(this),this.show(),b=this.api.N().experiments,g.Q(b,"enable_visibility_check_for_visit_advertiser_in_bulleit")&&(this.A=
FZ(this.element,"visit_advertiser",g.R(b,"visibility_error_html_dump_sample_rate")))):g.Jo(Error("No visit advertiser text was present in the renderer."))};
i_.prototype.hide=function(){vZ.prototype.hide.call(this);this.A&&(this.A(),this.A=null)};g.r(j_,Z);j_.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);a=b.text;g.hc(YX(a))?g.Jo(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 AZ(this.api,this.oa),a.init(rU("simple-ad-badge"),b,c),a.ba(this.element),g.C(this,a)),this.show())};
j_.prototype.clear=function(){this.hide()};g.r(k_,Z);
k_.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new $Z(this.api,this.oa,this.u),c.ba(this.B),c.init(rU("skip-button"),a.skipAdRenderer,this.macros),g.C(this,c)):a.adPreviewRenderer&&(c=new CZ(this.api,this.oa,this.u,!1),c.ba(this.B),c.init(rU("ad-preview"),a.adPreviewRenderer,this.macros),DZ(c),g.C(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=new h_(this.api,this.oa),
c.ba(this.H),c.init(rU("instream-user-sentiment"),a,this.macros),g.C(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new e_(this.api,this.oa,this.u),g.C(this,c),c.ba(this.C),c.init(rU("flyout-cta"),a.flyoutCtaRenderer,this.macros)));b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new j_(this.api,this.oa,!0),g.C(this,c),c.ba(this.w),c.init(rU("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 c_(this.api,this.oa,this.u),g.C(this,c),c.ba(this.w),c.init(rU("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(a=b.adInfoRenderer,a.adHoverTextButtonRenderer&&(c=new RZ(this.api,this.oa,this.element),g.C(this,c),c.ba(this.w),c.init(rU("ad-info-hover-text-button"),a.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&
(a=vna(this)&&this.A?this.A:this.w))&&(c=new i_(this.api,this.oa),g.C(this,c),c.ba(a),c.init(rU("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.N())&&!Ax(b)&&"3"==b.controlsType&&(b=new jQ(this.api,this.u),b.ba(this.J),g.C(this,b));this.show()};
k_.prototype.clear=function(){this.hide()};g.r(l_,Z);
l_.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 vZ(this.api,this.oa,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ba(this.w),a.init(rU("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new f_(this.api,this.oa,["ytp-ad-survey-answer-toggle-button"]),this.u.ba(this.w),g.C(this,this.u),this.u.init(rU("survey-answer-button"),
b.answer.toggleButtonRenderer,c));this.show()};
l_.prototype.clear=function(){this.hide()};g.r(m_,Z);m_.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.u=new f_(this.api,this.oa,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.u.ba(this.w),this.u.init(rU("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.r(n_,vZ);n_.prototype.init=function(a,b,c){vZ.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.T(b.text),a=!g.hc(b));a||g.Jo(Error("No submit text was present in the renderer."))};
n_.prototype.onClick=function(a){this.R("C");vZ.prototype.onClick.call(this,a)};g.r(o_,Z);
o_.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 $Z(this.api,this.oa,this.B),c.ba(this.H),c.init(rU("skip-button"),a,this.w),g.C(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new CZ(this.api,this.oa,this.B,!1),c.ba(this.H),c.init(rU("ad-preview"),a,this.w),DZ(c),g.C(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 n_(this.api,this.oa),c.ba(this.J),c.init(rU("survey-submit"),a,this.w),g.C(this,c),this.A=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new j_(this.api,this.oa,!0),c.ba(this.C),c.init(rU("simple-ad-badge"),a,this.w),g.C(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new c_(this.api,this.oa,this.B),c.ba(this.C),c.init(rU("ad-duration-remaining"),a,this.w),g.C(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&
(a=new RZ(this.api,this.oa,this.element),g.C(this,a),a.ba(this.C),a.init(rU("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
o_.prototype.clear=function(){this.hide()};g.r(p_,Z);p_.prototype.init=function(a,b,c){Z.prototype.init.call(this,a,b,c);zna(this)};
p_.prototype.show=function(){this.B=(0,g.H)();Z.prototype.show.call(this)};
p_.prototype.zB=function(){};g.r(q_,p_);g.h=q_.prototype;g.h.init=function(a,b,c){var d=this;p_.prototype.init.call(this,a,b,c);b.questionText&&g.ye(this.U,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&wna(d,e.instreamSurveyAdAnswerRenderer,c)});
this.H=new Set(this.A.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Ana(this,a,c);b.surveyAdQuestionCommon?yna(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.V=b.submitEndpoints);this.L(this.element,"change",this.IJ);this.show()};
g.h.zB=function(){r_(this,!1);this.C.A.subscribe("C",this.lN,this)};
g.h.IJ=function(a){a.target==this.w.u.u?Bna(this):this.H.has(a.target)&&(this.w.u.toggleButton(!1),r_(this,!0))};
g.h.lN=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.V.map(function(d){if(!d.loggingUrls)return d;
d=g.Sb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Bd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.oa.executeCommand(d,a.macros)})};
g.h.clear=function(){g.Q(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(s_,p_);s_.prototype.init=function(a,b,c){var d=this;p_.prototype.init.call(this,a,b,c);b.questionText&&g.ye(this.U,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&wna(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?yna(this,b.surveyAdQuestionCommon):g.M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
s_.prototype.clear=function(){g.Q(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.r(t_,Z);
t_.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 s_(d.api,d.oa);f.ba(d.u);f.init(rU("survey-question-single-select"),e,c);d.w.push(f);g.C(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new q_(d.api,d.oa),f.ba(d.u),f.init(rU("survey-question-multi-select"),e,c),d.w.push(f),
g.C(d,f))});
this.show()};
t_.prototype.clear=function(){g.Q(this.api.N().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.r(u_,Z);
u_.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){Ena(this.B,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);Ena(this.H,
b.brandImage);g.ye(this.J,g.T(b.text));this.u=new vZ(this.api,this.oa,["ytp-ad-survey-interstitial-action-button"]);g.C(this,this.u);this.u.ba(this.C);this.u.init(rU("button"),b.ctaButton.buttonRenderer,c);this.u.show();var e=b.timeoutCommands;this.A=new HZ(1E3*a);this.A.subscribe("a",function(){d.w.hide();e.forEach(function(f){return d.oa.executeCommand(f,c)});
d.oa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.C(this,this.A);this.L(this.element,"click",function(f){return Dna(d,f,b)});
this.w.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.oa.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"))};
u_.prototype.clear=function(){this.hide()};
u_.prototype.show=function(){Fna(!0);Z.prototype.show.call(this)};
u_.prototype.hide=function(){Fna(!1);Z.prototype.hide.call(this)};g.r(v_,Z);g.h=v_.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 Bf(g.Ja);b.bannerImage?b.iconImage?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?b.navigationEndpoint?(b.adInfoRenderer&&b.adInfoRenderer.adHoverTextButtonRenderer?this.B.init(rU("watch-ad-info-hover-button"),b.adInfoRenderer.adHoverTextButtonRenderer,c):g.M(Error("ActionCompanionAdRenderer has no ad info renderer.")),this.A.init(rU("ad-image"),b.bannerImage,
c),this.ea.init(rU("ad-image"),b.iconImage,c),this.J.init(rU("ad-text"),b.headline,c),this.C.init(rU("ad-text"),b.description,c),this.w.init(rU("button"),b.actionButton.buttonRenderer,c),g.ye(this.o["yt-badge-ad"],"Ad"),this.Z=b.impressionCommands||[],this.U=b.navigationEndpoint,this.H.L(this.element,"click",this.OL,this),Promise.race([this.u,this.ga.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.yr(this.H);this.hide()};
g.h.show=function(){var a=this;this.w.show();Z.prototype.show.call(this);this.Z.forEach(function(b){return a.oa.executeCommand(b,a.macros)})};
g.h.hide=function(){this.w.hide();Z.prototype.hide.call(this)};
g.h.OL=function(a){a=a.target;g.xe(this.B.element,a)||(this.U&&!g.xe(this.w.element,a)&&this.oa.executeCommand(this.U,this.macros),this.api.onAdUxClicked("action-companion"),this.api.pauseVideo())};
g.h.Y=function(){this.u&&(this.u.cancel(),this.u=null);Z.prototype.Y.call(this)};g.r(w_,g.V);w_.prototype.clear=function(){for(var a=g.q(this.Ga),b=a.next();!b.done;b=a.next())g.He(b.value);this.Ga=[]};
w_.prototype.F=function(a){g.Ep(a);this.u=Math.max(0,this.u-x_(this));y_(this)};
w_.prototype.C=function(a){g.Ep(a);this.u=Math.min(this.Ga.length-1,this.u+x_(this));y_(this)};
w_.prototype.Y=function(){this.clear();g.V.prototype.Y.call(this)};g.r(z_,hY);g.h=z_.prototype;g.h.gb=function(){return this.o.element};
g.h.Jm=function(a){var b=this.o,c=new g.V({D:"li",I:"ad-carousel-listitem",K:[{D:"div",I:"ad-carousel-item"}]});c.o["ad-carousel-item"].appendChild(a);b.Ga.push(c);b.B.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 Jna={JP:"adinfoclick",WR:"offerclick",XR:"offernavclick"};g.r(A_,hY);A_.prototype.show=function(){this.u.show()};
A_.prototype.hide=function(){this.u.hide()};
A_.prototype.gb=function(){return this.u.element};var Hna={Xp:A_};g.r(C_,iY);
C_.prototype.B=function(a){var b=this.view;a=a.renderer;this.u=a.clickthroughEndpoint||null;var c=a.headline||null;B_(b.w,"headline",c);B_(b.o,"headline",c);c=a.merchant||null;B_(b.A,"merchant",c);B_(b.w,"merchant",c);B_(b.o,"merchant",c);c=a.priceText||null;B_(b.A,"price",c);B_(b.w,"price",c);B_(b.o,"price",c);c=(c=a.image&&0<a.image.thumbnails.length?a.image.thumbnails[0].url||null:null)?{D:"img",M:{src:c}}:null;b.A.ha("image",c);b.o.ha("image",c);a.rating?(c=a.reviewText||null,g.Nh(b.B.element,
Math.floor(100*a.rating/5)+"%"),B_(b.B,"reviewText",c),b.w.ha("review",b.B),b.o.ha("review",b.B)):(b.w.ha("review",null),b.o.ha("review",null));this.show();return Promise.resolve()};
C_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "offernavclick":this.u&&this.executeCommand(this.u)}};g.r(D_,g.A);D_.prototype.Y=function(){this.B&&g.So(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.Y.call(this)};g.r(E_,hY);E_.prototype.gb=function(){return this.o.element};
E_.prototype.show=function(){this.o.show()};
E_.prototype.hide=function(){this.o.hide()};
E_.prototype.Y=function(){Mna(this.u);hY.prototype.Y.call(this)};var F_={SC:pY,BD:E_,Wp:C_,Tp:z_};g.r(G_,iY);
G_.prototype.B=function(a){var b=this;this.u&&(this.u.cancel(),this.u=null);this.u=new Bf(g.Ja);return Promise.race([this.u,this.view.A]).then(function(){var c=a.renderer,d=b.view,e=c.shopText||null;e=e?gY(e):null;d.o.ha("shopText",e);e=(e=c.sponsoredText||null)?gY(e):null;d.o.ha("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 F_.Wp(b.o,b.A),b.F.push(e),b.w.append(e.view),e.bind({renderer:d,macros:b.macros});y_(b.w.o);Qna(b);b.show()})};
G_.prototype.S=function(){y_(this.w.o)};
G_.prototype.G=function(a){"adinfoclick"==a.type&&this.C.show()};
G_.prototype.Y=function(){this.u&&(this.u.cancel(),this.u=null);g.Ie(this.F);this.F=[];iY.prototype.Y.call(this)};g.r(H_,hY);g.h=H_.prototype;g.h.gb=function(){return this.o.element};
g.h.Jm=function(a){this.A++;this.F.appendChild(a);I_(this)};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.clear=function(){this.A=0;g.se(this.F)};
g.h.scrollLeft=function(){this.u=Math.max(0,this.u-1);I_(this)};
g.h.Y=function(){hY.prototype.Y.call(this)};g.r(J_,hY);g.h=J_.prototype;g.h.gb=function(){return this.o.element};
g.h.show=function(){this.o.show()};
g.h.hide=function(){this.o.hide()};
g.h.Jm=function(a){this.o.tb(a)};
g.h.Y=function(){hY.prototype.Y.call(this);g.He(this.u)};g.r(K_,hY);K_.prototype.show=function(){this.o.show()};
K_.prototype.hide=function(){this.o.hide()};
K_.prototype.gb=function(){return this.o.element};var Tna={Xp:K_};g.r(L_,iY);L_.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.ha("image",a?{D:"img",M:{src:a}}:null);this.show();return Promise.resolve()};
L_.prototype.G=function(){this.u&&this.executeCommand(this.u)};var M_={bD:J_,Wp:L_,Tp:H_};g.r(N_,iY);
N_.prototype.B=function(a){var b=this;this.w&&(this.w.cancel(),this.w=null);this.w=new Bf(g.Ja);return Promise.race([this.w,this.view.w]).then(function(){var c=a.renderer;b.S=c.clickTrackingEndpoints||[];b.P=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(rU("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 M_.Wp(b.o,b.A),b.C.push(e),b.u.append(e.view),e.bind({renderer:d,macros:b.macros});b.show()})};
N_.prototype.G=function(a){switch(void 0===a.type?void 0:a.type){case "companionclick":kY(this,this.S);this.o.onAdUxClicked("shopping-companion");this.o.pauseVideo();break;case "nextbuttonclick":a=this.u;a.u=Math.min(a.A-3,a.u+1);I_(a);break;case "prevbuttonclick":this.u.scrollLeft();break;case "shoptextclick":this.P&&this.executeCommand(this.P)}};
N_.prototype.Y=function(){this.w&&(this.w.cancel(),this.w=null);g.Ie(this.C);this.C=[];iY.prototype.Y.call(this)};g.r(O_,g.O);O_.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 tU&&this.w(b)}};var fra=["pla-shelf","shopping-companion","action-companion"];g.r(P_,O_);P_.prototype.w=function(a){var b=a.id,c=a.content,d=c.componentType;if(fra.includes(d)){var e=this.A();switch(a.actionType){case 1:if(this.u.has(b))break;a=Vna(d,this.o,e);if(!a){g.Jo(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)}}};
P_.prototype.Y=function(){g.Ie([].concat(g.na(this.u.values())))};g.r(Wna,sU);g.r(Q_,O_);
Q_.prototype.w=function(a){var b=a.content;switch(b.componentType){case "pla-shelf":switch(a.actionType){case 1:case 2:this.o.ma("onPlaShelfInfoCardsReady",{renderer:b.renderer,macros:b.macros});break;case 3:this.o.ma("onPlaShelfInfoCardsReady",{})}break;case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.ma("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros});break;case 3:this.o.ma("updateKevlarOrC3Companion",{})}break;
case "action-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.ma("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.ma("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.o.getVideoData(1);this.o.ma("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,macros:b.macros});break;case 3:this.o.ma("updateKevlarOrC3Companion",
{})}break;case "ads-engagement-panel":switch(a.actionType){case 1:case 2:this.o.ma("updateEngagementPanelAction",b.renderer.addAction);this.o.ma("changeEngagementPanelVisibility",b.renderer.expandAction);break;case 3:this.o.ma("changeEngagementPanelVisibility",b.renderer.hideAction),this.o.ma("updateEngagementPanelAction",b.renderer.removeAction)}}};var gra="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(R_,O_);
R_.prototype.w=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!gra.includes(d))switch(a.actionType){case 1:a=this.C();a=Vna(d,this.A,a);if(!a){g.Jo(Error("No UI component returned from ComponentFactory for type: "+d));break}Kb(this.u,b)?g.Jo(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);this.B.append(a.za);break;case 2:b=Xna(this,a);if(null==b)break;b.bind(c);break;case 3:c=Xna(this,a),null!=c&&(g.He(c),Kb(this.u,b)?(c=this.u,b in c&&delete c[b]):g.Jo(Error("Ad UI component does not exist: "+
b)))}}};
R_.prototype.Y=function(){g.Ie(Object.values(this.u));this.u={};O_.prototype.Y.call(this)};g.r(T_,g.A);T_.prototype.logEvent=function(a){U_(this,a)};
var goa=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"]]),boa=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"]]),doa=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"]]),eoa=new Map([["trigger_category_slot_entry","TRIGGER_CATEGORY_SLOT_ENTRY"],["trigger_category_slot_fulfillment",
"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],["trigger_category_slot_expiration","TRIGGER_CATEGORY_SLOT_EXPIRATION"],["trigger_category_layout_exit_normal","TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],["trigger_category_layout_exit_skip","TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],["trigger_category_layout_exit_mute","TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"]]),coa=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"]]),Zna=new Map([["normal",{cp:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{cp:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{cp:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{cp:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",
tp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}]]);g.r(Z_,g.A);Z_.prototype.Y=function(){var a=poa(this.o);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b0(this,b.value,!1)};s0.prototype.isActive=function(){switch(this.o){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
s0.prototype.Lr=function(){switch(this.A){case "fill_requested":return!0;default:return!1}};
s0.prototype.Kr=function(){switch(this.o){case "exit_requested":return!0;default:return!1}};
s0.prototype.Gr=function(){switch(this.o){case "rendering_stop_requested":return!0;default:return!1}};g.r(c0,Va);g.r(o0,Va);g.r(t0,g.A);g.h=t0.prototype;g.h.uk=function(a){a=a0(this,a);a.A="fill_requested";a.C.uk()};
g.h.Mi=function(a){a0(this,a).Mi=!0};
g.h.Lr=function(a){return a0(this,a).Lr()};
g.h.Kr=function(a){return a0(this,a).Kr()};
g.h.Gr=function(a){return a0(this,a).Gr()};v0.prototype.get=function(){return this.value};
g.r(w0,v0);w0.prototype.o=function(){return"metadata_type_action_companion_ad_renderer"};
g.r(x0,v0);x0.prototype.o=function(){return"metadata_type_image_companion_ad_renderer"};
g.r(y0,v0);y0.prototype.o=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.r(z0,v0);z0.prototype.o=function(){return"metadata_type_ad_placement_config"};
g.r(A0,v0);A0.prototype.o=function(){return"metadata_type_ad_video_id"};
g.r(B0,v0);B0.prototype.o=function(){return"metadata_type_content_cpn"};
g.r(C0,v0);C0.prototype.o=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.r(D0,v0);D0.prototype.o=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.r(E0,v0);E0.prototype.o=function(){return"metadata_type_player_bytes_callback"};
g.r(F0,v0);F0.prototype.o=function(){return"metadata_type_get_ad_break_url"};
g.r(G0,v0);G0.prototype.o=function(){return"metadata_type_sub_layouts"};
g.r(H0,v0);H0.prototype.o=function(){return"metadata_type_cue_point"};
g.r(I0,v0);I0.prototype.o=function(){return"metadata_type_video_length_seconds"};
g.r(J0,v0);J0.prototype.o=function(){return"metadata_type_player_vars"};
g.r(K0,v0);K0.prototype.o=function(){return"metadata_type_layout_enter_ms"};
g.r(L0,v0);L0.prototype.o=function(){return"metadata_type_trimmed_max_non_skippable_ad_duration_ms"};
g.r(M0,v0);M0.prototype.o=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.r(N0,v0);N0.prototype.o=function(){return"metadata_type_fulfilled_layout"};O0.prototype.uk=function(){h0(this.Va,this.slot,$0(this.slot.Qa,"metadata_type_fulfilled_layout"))};
O0.prototype.o=function(){var a=this.Va,b=this.slot,c=new o0("Got CancelSlotFulfilling request for "+this.slot.ab+" in DirectFulfillmentAdapter.");Y_(c.toString(),b);b0(a,b,!0)};Q0.prototype.He=function(a,b){return P0(b,{pe:["metadata_type_fulfilled_layout"]})?new O0(a,b):this.o(a,b)};g.r(R0,Q0);R0.prototype.o=function(a,b){throw new o0("Unsupported slot with type: "+b.ab+" and client metadata: "+A1(b.Qa)+" in DefaultFulfillmentAdapterFactory.");};S0.prototype.uk=function(){var a=this.slot.Qa,b=this.Va,c=this.slot;var d=this.slot.ee;var e=$0(a,"metadata_type_linked_player_bytes_layout_id"),f=$0(a,"metadata_type_instream_ad_player_overlay_renderer"),k=$0(a,"metadata_type_player_bytes_callback");a=$0(a,"metadata_type_ad_placement_config");d={layoutId:Or(),layoutType:"layout_type_media_layout_player_overlay",Mj:new Map,jg:[new n1(Or(),e)],kg:[],hg:[],ee:d,Qa:new V0([new D0(e),new C0(f),new E0(k),new z0(a)])};h0(b,c,d)};
S0.prototype.o=function(){var a=this.Va,b=this.slot,c=new o0("Got CancelSlotFulfilling request for "+this.slot.ab+" in InPlayerSlotFulfillmentAdapter.");Y_(c.toString(),b);b0(a,b,!0)};g.r(T0,Q0);T0.prototype.o=function(a,b){if(P0(b,{pe:["metadata_type_linked_player_bytes_layout_id","metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_ad_placement_config"],ab:"slot_type_in_player"}))return new S0(a,b,this.lg);throw new o0("Unsupported slot with type: "+b.ab+" and client metadata: "+A1(b.Qa)+" in InPlayerSlotFulfillmentAdapterFactory.");};U0.prototype.uk=function(){wo(this,function b(){var c=this,d,e,f;return Ba(b,function(k){if(1==k.o)return d=$0(c.slot.Qa,"metadata_type_cue_point"),ua(k,c.ak.fetch({iP:$0(c.slot.Qa,"metadata_type_get_ad_break_url"),jk:d,mE:qoa(d)}),2);e=k.u;2<=e.length&&Y_("Unexpected "+e.length+" ad placement renderers",c.slot);try{f=soa(e),h0(c.Va,c.slot,f)}catch(p){var l=c.Va,m=c.slot,n=new o0("Failed to parse ad placement renderer in PlayerBytesDaiFulfillmentAdapter: "+p.message);Y_(n.toString(),m);b0(l,m,!0)}k.o=
0})})};
U0.prototype.o=function(){var a=this.Va,b=this.slot;V_(a.ib,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);$_(a.o,b)&&(a0(a.o,b).A="fill_canceled",b0(a,b,!1))};g.r(W0,Q0);W0.prototype.o=function(a,b){if(P0(b,{pe:["metadata_type_cue_point","metadata_type_get_ad_break_url"],ab:"slot_type_player_bytes"}))return new U0(a,b,this.lg,this.ak);throw new o0("Unsupported slot with type: "+b.ab+" and client metadata: "+A1(b.Qa)+" in PlayerBytesSlotFulfillmentAdapterFactory.");};uoa.prototype.He=function(a,b){return new toa(a,b)};g.r(woa,g.A);g.r(X0,g.P);g.h=X0.prototype;g.h.bl=function(){return this.slot};
g.h.yk=function(){return this.layout};
g.h.init=function(){this.o.addListener(this)};
g.h.ko=function(){this.o.removeListener(this);this.dispose()};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?e0(this.Va,this.slot,a,new c0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(tpa(this.o,this.u,1),i0(this.Va,this.slot,a))};
g.h.Ci=function(a,b){a.layoutId!==this.layout.layoutId?e0(this.Va,this.slot,a,new c0("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(tpa(this.o,this.u,3),this.u=[],l0(this.Va,this.slot,a,b))};
g.h.Y=function(){this.o.removeListener(this);g.P.prototype.Y.call(this)};g.r(a1,X0);g.h=a1.prototype;g.h.init=function(){X0.prototype.init.call(this);var a=$0(this.layout.Qa,this.F);var b=yoa((new xoa(this.C.adPlacementConfig)).adPlacementConfig,lV(jV()));this.u.push(this.G(a,b))};
g.h.wy=function(a){if(a===this.B){a:{a=this.Cd.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&&Boa(this,a.get(c))){a=!0;break a}a=!1}a?this.Kb.aa.sendVideoStatsEngageEvent(1,void 0,2):this.w?this.w():Y_("Tried to call engagePingCallback but it is null",this.bl(),this.yk())}};
g.h.nj=function(a,b){Boa(this,b)&&(null===this.w?this.w=ypa(this.Kb):Y_("OnLayoutEntered should set engagePingCallback, but it was not null",this.bl(),this.yk()))};
g.h.oj=function(){};
g.h.il=function(){};
g.h.Jl=function(){};
g.h.dl=function(){};
g.h.fl=function(){};
g.h.Aj=function(){};
g.h.Hl=function(){};
g.h.Y=function(){ioa(this.A,this);X0.prototype.Y.call(this)};g.r(b1,a1);g.r(Doa,a1);g.r(Foa,a1);Hoa.prototype.He=function(a,b,c,d){if(c1(d,Coa()))return new b1(a,c,d,this.Ge,this.Kb,this.o(),this.Cd);if(c1(d,Eoa()))return new Doa(a,c,d,this.Ge,this.Kb,this.o(),this.Cd);if(c1(d,Goa()))return new Foa(a,c,d,this.Ge,this.Kb,this.o(),this.Cd);throw new c0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+A1(d.Qa)+" in AboveFeedLayoutRenderingAdapterFactory.");};Ioa.prototype.He=function(a,b,c,d){if(c1(d,Coa()))return new b1(a,c,d,this.Ge,this.Kb,this.o(),this.Cd);throw new c0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+A1(d.Qa)+" in BelowPlayerLayoutRenderingAdapterFactory.");};g.h=Joa.prototype;g.h.bl=function(){return this.slot};
g.h.yk=function(){return this.layout};
g.h.init=function(){};
g.h.ko=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?e0(this.Va,this.slot,a,new c0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(Aoa(this.o),i0(this.Va,this.slot,a),epa(this.Gl,a.layoutId))};
g.h.Ci=function(a,b){a.layoutId!==this.layout.layoutId?e0(this.Va,this.slot,a,new c0("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):l0(this.Va,this.slot,a,b)};Loa.prototype.He=function(a,b,c,d){if(c1(d,Koa()))return new Joa(a,c,d,this.Kb,this.Gl);throw new c0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+A1(d.Qa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.h=Moa.prototype;g.h.bl=function(){return this.slot};
g.h.yk=function(){return this.layout};
g.h.init=function(){};
g.h.ko=function(){};
g.h.startRendering=function(){};
g.h.Ci=function(){};g.r(d1,X0);d1.prototype.init=function(){X0.prototype.init.call(this);var a=$0(this.layout.Qa,"metadata_type_instream_ad_player_overlay_renderer");this.u.push(new aX(a))};
d1.prototype.wy=function(a){a:{var b=this.A;for(var c=g.q(this.Cd.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.Kb.aa.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.he,2===a.aa.getPlayerState(2)&&a.aa.playVideo());break;case "ad-info-icon-button":(this.w=2===this.he.aa.getPlayerState(2))||
this.he.pauseVideo();break;case "visit-advertiser":this.he.pauseVideo();a=$0(this.layout.Qa,"metadata_type_player_bytes_callback").vb;zV(a)||HV(a,"clickthrough");break;case "skip-button":$0(this.layout.Qa,"metadata_type_player_bytes_callback").skip()}};
d1.prototype.Y=function(){X0.prototype.Y.call(this)};Ooa.prototype.He=function(a,b,c,d){if(this.Mr&&c1(d,Noa()))return new Moa(c,d);if(c1(d,{pe:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id"],layoutType:"layout_type_media_layout_player_overlay"}))return new d1(a,c,d,this.Ge,this.he,this.Kb,this.Cd);throw new c0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+A1(d.Qa)+" in InPlayerLayoutRenderingAdapterFactory.");};g.h=Poa.prototype;g.h.bl=function(){return this.slot};
g.h.yk=function(){return this.layout};
g.h.init=function(){this.uf.addListener(this);this.u.forEach(function(a){a.init()})};
g.h.ko=function(){this.o=null;this.u.forEach(function(){});
this.uf.removeListener(this)};
g.h.startRendering=function(){var a,b;if(this.o)Y_("Failed to restart rendering",this.slot,this.layout);else{var c=null===(a=this.uf.o)||void 0===a?void 0:a.layoutId;this.o={bk:Qoa(this,c)};null===(b=this.o.bk)||void 0===b?void 0:b.startRendering();i0(this.Va,this.slot,this.layout)}};
g.h.Ci=function(a,b){var c,d;null===(d=null===(c=this.o)||void 0===c?void 0:c.bk)||void 0===d?void 0:d.Ci(b);this.o=null;l0(this.Va,this.slot,this.layout,b)};
g.h.Mo=function(a){a=a.layoutId;var b,c,d,e=null===(b=this.o)||void 0===b?void 0:b.bk;e&&e.layout.layoutId===a?Y_("Unexpected restart of an ad playback",this.slot,this.layout):(null===(c=e)||void 0===c?void 0:c.Ci("normal"),this.o={bk:Qoa(this,a)},null===(d=this.o.bk)||void 0===d?void 0:d.startRendering())};
g.h.Lo=function(){};e1.prototype.init=function(){var a=1E3*$0(this.layout.Qa,"metadata_type_video_length_seconds");var b=$0(this.layout.Qa,"metadata_type_trimmed_max_non_skippable_ad_duration_ms");a=null!=b&&b<a?b:a;b=$0(this.layout.Qa,"metadata_type_player_vars");var c=$0(this.layout.Qa,"metadata_type_layout_enter_ms");if(Number.isFinite(c)){var d=c+a;a=d<=c?"Start time is not earlier than end time":this.Kl.o(b,2,a,c,d)?null:"Failed to add to playback timeline"}else a="Not supported to play the video after the organic content";
null!==a?Y_(a,this.slot,this.layout):koa(this.Va,this.slot,this.layout)};
e1.prototype.startRendering=function(){loa(this.Va,this.slot,this.layout);var a=this.he.aa.getCurrentTime(2,!1);0<=a&&1>=a&&Aoa(this.o)};
e1.prototype.Ci=function(a){noa(this.Va,this.slot,this.layout,a)};Roa.prototype.He=function(a,b,c,d){a:{var e=$0(d.Qa,"metadata_type_sub_layouts"),f=$0(d.Qa,"metadata_type_ad_placement_config");if(c1(d,{pe:[],layoutType:"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=$0(l.Qa,"metadata_type_video_length_seconds");if(!c1(l,{pe:["metadata_type_video_length_seconds","metadata_type_player_vars","metadata_type_layout_enter_ms","metadata_type_trimmed_max_non_skippable_ad_duration_ms"],
layoutType:"layout_type_media"})||void 0===m){a=null;break a}k.push(new e1(b,c,l,this.Kl,new Y0(l.Mj,this.Kb,f),this.he))}a=new Poa(a,c,d,this.uf,k)}else a=null}if(a)return a;throw new c0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+A1(d.Qa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.r(f1,g.A);g.r(g1,f1);g1.prototype.Mo=function(){};
g1.prototype.Lo=function(a){a=a.clientPlaybackNonce;var b;(null===(b=this.o)||void 0===b?void 0:b.contentCpn)!==a&&(this.o=null)};
g1.prototype.Y=function(){f1.prototype.Y.call(this);this.o=null};
Toa.prototype.u=function(a){var b=a.contentCpn,c=a.getAdBreakUrl;a=a.o;var d=Or();return[{slotId:d,ab:"slot_type_player_bytes",uh:[new cpa],Bi:[new r1(d)],Ai:[new y1(Or(),b)],ee:"core",Qa:new V0([new F0(c),new H0(a)])}]};h1.prototype.u=function(a){var b=[];this.o=new Map;var c=a.Ah.filter(function(m){var n,p,t,u=null===(n=m.config)||void 0===n?void 0:n.adPlacementConfig;n=null===(t=null===(p=m.config)||void 0===p?void 0:p.adPlacementConfig)||void 0===t?void 0:t.kind;m=m.renderer;return u&&n&&m}),d={};
c=g.q(c);for(var e=c.next();!e.done;d={qc:d.qc},e=c.next()){var f=e.value;d.qc=f.renderer;var k=f.config.adPlacementConfig;e=k.kind;if(null!=d.qc.actionCompanionAdRenderer)iX(this.hc)&&(d.qc.actionCompanionAdRenderer.adVideoId?i1(this,f.elementId,e,d.qc.actionCompanionAdRenderer.adVideoId,k,function(m){return function(n,p,t){return B1("layout_type_companion_with_action_button",new w0(m.qc.actionCompanionAdRenderer),n,p,t)}}(d)):Y_("ActionCompanionAdRenderer without adVideoId, kind: "+(e+" + actionButton "+
(void 0===d.qc.actionCompanionAdRenderer.actionButton?"is":"is not")+" undefined. APR count: "+a.Ah.length+". isAdBreakResponse: "+a.Ar)));
else if(d.qc.imageCompanionAdRenderer)jX(this.hc)&&(d.qc.imageCompanionAdRenderer.adVideoId?i1(this,f.elementId,e,d.qc.imageCompanionAdRenderer.adVideoId,k,function(m){return function(n,p,t){return B1("layout_type_companion_with_image",new x0(m.qc.imageCompanionAdRenderer),n,p,t)}}(d)):Y_("ImageCompanionAdRenderer without adVideoId"));
else if(d.qc.shoppingCompanionCarouselRenderer)kX(this.hc)&&(d.qc.shoppingCompanionCarouselRenderer.adVideoId?i1(this,f.elementId,e,d.qc.shoppingCompanionCarouselRenderer.adVideoId,k,function(m){return function(n,p,t){return B1("layout_type_companion_with_shopping",new y0(m.qc.shoppingCompanionCarouselRenderer),n,p,t)}}(d)):Y_("ShoppingCompanionCarouselRenderer without adVideoId"));
else if(d.qc.adBreakServiceRenderer)vpa(this.hc)&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===e&&(e=d.qc.adBreakServiceRenderer.getAdBreakUrl,void 0!==e&&Uoa(this.Va,{getAdBreakUrl:e,contentCpn:a.contentCpn}));else if(d.qc.clientForecastingAdRenderer)eZ(this.hc)&&(e=hpa(d.qc.clientForecastingAdRenderer,k),(e=opa(k,a.contentCpn,e))&&b.push(e));else if(k=Xoa(d.qc))for(k=g.q(k),f=k.next();!f.done;f=k.next())if((f=f.value)&&f.externalVideoId){var l=Voa(this,f.externalVideoId);l.instreamVideoAdRenderer=
f;l.On=e}else Y_("InstreamVideoAdRenderer without externalVideoId")}d=Array.from(this.o.values()).filter(function(m){return Woa(m,a)});
d=g.q(d);for(c=d.next();!c.done;c=d.next())c=c.value,"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Bh?b.push(npa(this.w,c.bq,a.contentCpn,c.dn(c.adVideoId,c.instreamVideoAdRenderer.elementId,c.Hm))):b.push(mpa(this.w,a.contentCpn,c.instreamVideoAdRenderer.elementId,c.dn(c.adVideoId,c.instreamVideoAdRenderer.elementId,c.Hm)));return b};g.r(j1,f1);g.r(Zoa,j1);g.r($oa,j1);g.r(k1,f1);g.h=k1.prototype;
g.h.nj=function(a,b){if(hX(this.hc)&&"layout_type_media"===b.layoutType)if(S_(b,["metadata_type_content_cpn","metadata_type_player_bytes_callback","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"])){var c={XO:b.layoutId,contentCpn:$0(b.Qa,"metadata_type_content_cpn"),VN:$0(b.Qa,"metadata_type_player_bytes_callback"),instreamAdPlayerOverlayRenderer:$0(b.Qa,"metadata_type_instream_ad_player_overlay_renderer"),adPlacementConfig:$0(b.Qa,"metadata_type_ad_placement_config")};
fZ(this,c)}else Y_("Received MediaLayout entered, missing metadata for opportunity. Actual client metadata: "+A1(b.Qa))};
g.h.il=function(){};
g.h.Jl=function(){};
g.h.dl=function(){};
g.h.fl=function(){};
g.h.Aj=function(){};
g.h.Hl=function(){};
g.h.oj=function(){};
apa.prototype.u=function(a){var b=[];b.push(kpa(a.contentCpn,a.XO,a.instreamAdPlayerOverlayRenderer,a.VN,a.adPlacementConfig));return b};g.r(l1,g.A);g.h=l1.prototype;g.h.il=function(){};
g.h.Jl=function(){};
g.h.dl=function(){};
g.h.fl=function(){};
g.h.Aj=function(){};
g.h.Hl=function(a,b){this.o.has(a)&&this.o.get(a)===b&&Y_("Unscheduled a Layout that is currently entered.",a,b)};
g.h.nj=function(a,b){this.o.set(a,b)};
g.h.oj=function(a){this.o["delete"](a)};g.r(t1,g.A);g.h=t1.prototype;
g.h.oh=function(a,b,c,d){if(this.u.has(b.o))throw new o0("Tried to register duplicate trigger for slot.");if(!(b instanceof p1||b instanceof q1||b instanceof r1||b instanceof m1||b instanceof n1||b instanceof o1))throw new o0("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new s1(a,b,c,d);this.u.set(b.o,a);b instanceof r1&&this.B.has(b.A)&&m0(this.o(),[a]);b instanceof p1&&this.A.has(b.w)&&m0(this.o(),[a]);b instanceof m1&&this.w.has(b.u)&&
m0(this.o(),[a])};
g.h.xh=function(a){this.u["delete"](a.o)};
g.h.il=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 r1&&a.slotId===d.trigger.A&&b.push(d);0<b.length&&m0(this.o(),b)};
g.h.Jl=function(a){this.B["delete"](a.slotId)};
g.h.dl=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 p1&&a.slotId===d.trigger.w&&b.push(d);0<b.length&&m0(this.o(),b)};
g.h.fl=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 q1&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&m0(this.o(),b)};
g.h.Aj=function(a){this.C.add(a.layoutId)};
g.h.Hl=function(a,b){this.C["delete"](b.layoutId)};
g.h.nj=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 m1)b.layoutId===e.trigger.u&&c.push(e);else if(e.trigger instanceof o1){var f=e.trigger;a.ab===f.ab&&b.layoutType===f.layoutType&&b.layoutId!==f.B&&c.push(e)}0<c.length&&m0(this.o(),c)};
g.h.oj=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 n1&&b.layoutId===e.trigger.B&&c.push(e);0<c.length&&m0(this.o(),c)};g.r(u1,g.A);u1.prototype.oh=function(a,b,c,d){if(this.u.has(b.o)||this.w.has(b.o))throw new o0("Tried to re-register the trigger.");a=new s1(a,b,c,d);if(a.trigger instanceof cpa)this.u.set(a.trigger.o,a);else if(a.trigger instanceof bpa)this.w.set(a.trigger.o,a);else throw new o0("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.o)&&a.slot.slotId===this.o&&m0(this.A(),[a])};
u1.prototype.xh=function(a){this.u["delete"](a.o);this.w["delete"](a.o)};
u1.prototype.Mo=function(a){a=a.slotId;if(this.o!==a){var b=[];null!==this.o&&b.push.apply(b,g.na(dpa(this.w,this.o)));null!==a&&b.push.apply(b,g.na(dpa(this.u,a)));this.o=a;b.length&&m0(this.A(),b)}};
u1.prototype.Lo=function(){};g.r(x1,g.A);g.h=x1.prototype;g.h.oh=function(a,b,c,d){if(this.w.has(b.o))throw new o0("Tried to register duplicate trigger for slot.");if(!(b instanceof v1||b instanceof w1))throw new o0("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.w.set(b.o,new s1(a,b,c,d))};
g.h.xh=function(a){this.w["delete"](a.o)};
g.h.Py=function(){};
g.h.Oy=function(){};
g.h.us=function(){};
g.h.nj=function(a,b){"slot_type_above_feed"===a.ab&&(null!==this.o?Y_("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.o=b.layoutId)};
g.h.oj=function(a){"slot_type_above_feed"===a.ab&&(null===this.o?Y_("called onLayoutExited with AboveFeedSlot but there is no entered layout"):this.o=null)};
g.h.il=function(){};
g.h.Jl=function(){};
g.h.dl=function(a){"slot_type_above_feed"===a.ab&&(null!==this.u?Y_("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.fl=function(a){"slot_type_above_feed"===a.ab&&(null===this.u?Y_("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.Aj=function(){};
g.h.Hl=function(){};
g.h.xq=function(){null!==this.o&&epa(this,this.o)};
g.h.Qq=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 w1&&d.trigger.slotId===a&&b.push(d);b.length&&m0(this.A(),b)}};
g.h.Gw=function(){};y1.prototype.Ng=function(){return this.contentVideoId};g.r(z1,g.A);z1.prototype.oh=function(a,b,c,d){if(this.u.has(b.o))throw new o0("Tried to register duplicate trigger for slot.");if(!(b instanceof y1))throw new o0("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnNewPlaybackAfterContentVideoIdTriggerAdapter");a=new s1(a,b,c,d);this.u.set(b.o,a);this.o&&b.Ng()!==this.o&&m0(this.w(),[a])};
z1.prototype.xh=function(a){this.u["delete"](a.o)};
z1.prototype.Mo=function(){};
z1.prototype.Lo=function(a){if(a.clientPlaybackNonce!==this.o){this.o=a.clientPlaybackNonce;a=[];for(var b=g.q(this.u.values()),c=b.next();!c.done;c=b.next())c=c.value,c.trigger.Ng()!==this.o&&a.push(c);0<a.length&&m0(this.w(),a)}};g.r(fpa,g.A);g.r(E1,g.A);E1.prototype.init=function(){};
E1.prototype.Y=function(){this.mg.removeListener(this);g.A.prototype.Y.call(this)};g.r(qpa,g.A);rpa.prototype.fetch=function(a){return wo(this,function c(){var d,e,f,k,l=this,m,n;return Ba(c,function(p){if(1==p.o)return d=a,e=d.iP,f=d.mE,k=void 0===d.jk?void 0:d.jk,p.B=2,ua(p,l.Zp.fetch(e,{jk:k,Hb:f,lu:NY(l.o)}),4);if(2!=p.o)return m=p.u,p["return"](spa(m,f));n=wa(p);Y_("Failed to fetch ad break info: "+n);return p["return"]([])})})};g.r(F1,g.A);F1.prototype.addListener=function(a){this.listeners.push(a)};
F1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
F1.prototype.onAdUxClicked=function(a){this.listeners.forEach(function(b){b.wy(a)})};G1.prototype.addListener=function(a){this.listeners.push(a)};
G1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};H1.prototype.addListener=function(a){this.listeners.push(a)};
H1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.r(I1,rV);I1.prototype.Ne=function(){return this.o()};g.r(K1,g.A);g.h=K1.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.AN=function(a){var b=this.Nm(a);this.o=b;this.aa.getPresentingPlayerType();this.listeners.forEach(function(d){d.Mo(b)});
var c=J1(this,1);c.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=c.clientPlaybackNonce,this.listeners.forEach(function(d){d.Lo(c)}))};
g.h.Nm=function(a){var b=a.clientPlaybackNonce;a=this.u.o.get(a.Bb)||{layoutId:null,slotId:null};return Object.assign(Object.assign({},a),{clientPlaybackNonce:b})};
g.h.Y=function(){this.listeners.length=0;this.o=null;g.A.prototype.Y.call(this)};g.r(L1,g.A);L1.prototype.addListener=function(a){this.listeners.push(a)};
L1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
L1.prototype.pauseVideo=function(){this.aa.pauseVideo()};
L1.prototype.o=function(){if(2===this.aa.getPresentingPlayerType())for(var a=this.aa.getCurrentTime(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.o(a)};g.r(M1,g.A);M1.prototype.oh=function(a,b,c,d){if(this.o.has(b.o))throw new o0("Tried to register duplicate trigger for slot.");if(!(b instanceof D1||b instanceof C1))throw new o0("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");var e=b instanceof D1?new N1(b,b.u.start,b.u.end):b instanceof C1?new N1(b,0x7ffffffffffff,0x8000000000000):null;null!=e&&(g.NL(this.aa,[e],1),this.u.set(b.o,e),this.o.set(b.o,new s1(a,b,c,d)))};
M1.prototype.xh=function(a){var b=this.u.get(a.o);b&&g.WT(this.aa.app,[b],1);this.o["delete"](a.o);this.u["delete"](a.o)};
M1.prototype.A=function(a){a instanceof N1&&(a=this.o.get(a.o))&&m0(this.Va,[a])};
g.r(N1,g.UD);g.r(zpa,g.A);g.r(Apa,g.A);g.r(O1,g.gM);g.h=O1.prototype;g.h.create=function(){this.load();this.created=!0};
g.h.load=function(){g.gM.prototype.load.call(this);g.xL(this.player).classList.add("ad-created");var a=this.u.o;if(iX(a)||jX(a)||kX(a)||hX(a)||vpa(a)||eZ(a)){var b=this.player.getVideoData(1);a=b&&b.getPlayerResponse()||{};var c=this.u.A;b=b&&b.clientPlaybackNonce||"";var d=[];if(""===b)Y_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{Yoa(c.o,b,d);c=g.q(c.listeners);for(var e=c.next();!e.done;e=c.next())Yoa(e.value,b,d)}d=$Y(a);a=this.o=Cpa(this.player,this.w,this.A,
this.u);b=a.o.getVideoData(1);b.Pm||g.L("SERVED_VIA_SPF_HISTORY")?g.Q(a.o.N().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.O():dZ(a):(wV(a.o)&&XY(QC(a.o)),a.B.L(a.o,"applicationplayerstatechange",a.pz),a.B.L(a.o,g.XD("ad"),a.ul,a),a.B.L(a.o,"crx_ad",a.qz,a),a.B.L(a.o,"aduxclicked",a.eA),a.B.L(a.o,"videodatachange",a.rz),gZ(a,d,!1),d=aZ(a,d),d=bZ(a,d),0<d.length&&hZ(a,d),a.G&&(b.subscribe("cuepointupdated",a.El,a),a.w&&b.ka&&a.El(Xy(b.ka,0))),dZ(a),g.wf(a.uC,a))}else this.o=
Cpa(this.player,this.w,this.A,this.u),this.o.init()};
g.h.destroy=function(){this.unload();this.created=!1};
g.h.unload=function(){g.gM.prototype.unload.call(this);g.xL(this.player).classList.remove("ad-created");var a=this.o;this.o=null;a.dispose();this.w.reset();this.A.reset()};
g.h.Bf=function(){return!1};
g.h.getAdState=function(){return this.o?this.o.Z:-1};
g.h.getOptions=function(){return Object.values(cra)};
g.h.Lc=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=hV(this.player);Object.assign(d,c.additionalMapping);this.o&&!d.AD_CPN&&(d.AD_CPN=this.o.ga);c=g.gn(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.Ia("yt.player.Application.create",dT,void 0);g.Ia("yt.player.Application.createAlternate",dT,void 0);var hra=g.w("ytcsi.tick");hra&&hra("pe");g.vM.ad=O1;var Epa=/#(.)(.)(.)/,Dpa=/^#(?:[0-9a-f]{3}){1,2}$/i;var Gpa=g.ie&&Fpa();g.Ua(g.R1,g.A);var ira=[];g.h=g.R1.prototype;g.h.ia=function(a,b,c,d){Array.isArray(b)||(b&&(ira[0]=b.toString()),b=ira);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.Tr=function(a,b,c,d){return Hpa(this,a,b,c,d)};
g.h.Xa=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Xa(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=Ue(c),d=!!d,b=Ne(a)?a.zk(b,c,d,e):a?(a=We(a))?a.zk(b,c,d,e):null:null,b&&(bf(b),delete this.o[b.key])};
g.h.Y=function(){g.R1.Fb.Y.call(this);g.Ipa(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};S1.prototype.o=4;S1.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]};
S1.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(S1.BYTES_PER_ELEMENT=4,S1.prototype.BYTES_PER_ELEMENT=S1.prototype.o,S1.prototype.set=S1.prototype.set,S1.prototype.toString=S1.prototype.toString,g.Ia("Float32Array",S1,void 0));T1.prototype.o=8;T1.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]};
T1.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{T1.BYTES_PER_ELEMENT=8}catch(a){}T1.prototype.BYTES_PER_ELEMENT=T1.prototype.o;T1.prototype.set=T1.prototype.set;T1.prototype.toString=T1.prototype.toString;g.Ia("Float64Array",T1,void 0)};})(_yt_player);
