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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ia,ka,oa,pa,qa,ra,sa,ta,ua,baa,caa,va,daa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ma,Ka,Pa,Qa,gaa,haa,Za,$a,ab,iaa,jaa,kaa,bb,laa,db,fb,maa,naa,ib,pb,oaa,vb,wb,paa,Bb,yb,qaa,zb,raa,saa,taa,Lb,Nb,Ob,Sb,Ub,Vb,cc,ec,hc,jc,mc,nc,waa,oc,pc,qc,zc,Ac,Cc,Hc,Nc,Oc,Sc,Qc,Aaa,Daa,Eaa,Faa,Wc,Xc,$c,Zc,bd,ed,Gaa,Haa,dd,Iaa,kd,ld,md,od,qd,sd,td,Laa,ud,vd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Id,Kd,Nd,Pd,Qd,Rd,Naa,Sd,Td,Ud,Vd,Wd,Xd,ee,ge,je,ne,oe,ve,we,ze,xe,Be,De,Ce,Saa,le,Qe,Oe,Pe,Se,Re,ke,Te,Ue,Uaa,Ye,$e,Xe,bf,cf,
df,ef,ff,gf,kf,lf,Vaa,sf,of,Ef,Waa,If,Kf,Mf,Xaa,Nf,Pf,Qf,Rf,Sf,Tf,Uf,Vf,Wf,Xf,$f,Zf,ag,bg,$aa,bba,cba,eba,gg,hg,jg,fba,lg,og,tg,ug,xg,gba,Ag,zg,Bg,hba,Jg,Kg,Lg,iba,Mg,Ng,Og,Pg,Qg,Rg,Sg,jba,Tg,Ug,Vg,kba,lba,Wg,Yg,Xg,$g,ah,dh,bh,nba,ch,eh,fh,hh,gh,oba,ih,qba,pba,rba,lh,sba,nh,oh,ph,mh,qh,tba,rh,uba,vba,uh,xba,vh,wh,xh,yba,zh,Bh,Eh,Kh,Mh,Jh,Fh,Nh,zba,Oh,Ph,Qh,Rh,Bba,Wh,Xh,Yh,Zh,Dba,$h,ai,bi,ci,di,Eba,fi,gi,hi,ii,ji,ki,mi,ni,oi,pi,qi,li,ri,si,ti,Fba,Gba,ui,vi,Hba,wi,xi,Iba,zi,Jba,Ai,Bi,Ci,Kba,Di,Ei,Li,
Ni,Oi,Pi,Qi,Ri,Fi,Mi,Mba,Si,Ti,Vi,Ui,Nba,Oba,Pba,Wi,Xi,Yi,Zi,Tba,Uba,Vba,$i,bj,Wba,Xba,Yba,dj,ej,Zba,fj,$ba,aca,gj,hj,ij,bca,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,cca,dca,vj,eca,xj,wj,Aj,Bj,zj,fca,jca,ica,Dj,kca,lca,mca,oca,nca,pca,Ej,Gj,Ij,Jj,Kj,rca,Mj,Nj,sca,tca,Oj,Pj,Qj,Rj,uca,Sj,Tj,wca,Uj,xca,Vj,Wj,Yj,Zj,bk,ck,dk,gk,hk,ik,kk,mk,nk,Xj,ok,qk,pk,rk,sk,uk,zca,vk,yca,wk,Aca,xk,Bca,Cca,zk,Bk,Ck,Dk,Ek,Ak,Hk,Ik,Fk,Dca,Fca,Gca,Kk,Lk,Mk,Nk,Hca,Ok,Pk,Qk,Rk,Sk,Tk,Uk,Vk,Yk,Xk,Jca,Kca,Zk,al,Wk,$k,Ica,bl,cl,Mca,
Nca,Oca,Pca,gl,hl,il,Qca,dl,jl,kl,Lca,Rca,Sca,Tca,nl,ll,ol,ql,Yca,Uca,ul,vl,wl,xl,yl,zl,jj,Zca,Al,Bl,$ca,ada,bda,cda,dda,Dl,El,Fl,Gl,Hl,Il,gda,hda,Jl,Kl,Ml,Ol,jda,Pl,Ql,Rl,Tl,Vl,Xl,kda,Ul,cm,dm,$l,gm,fm,mda,Yl,Wl,jm,km,lm,mm,om,oda,pm,qm,pda,vm,xm,zm,Am,Cm,Dm,Em,Gm,qda,Hm,Jm,Lm,Mm,Im,Km,ym,Fm,sda,Pm,Nm,Om,Rm,rda,Qm,Vm,Ym,Xm,cn,dn,fn,vda,en,hn,kn,jn,tda,nn,pn,yda,rn,sn,un,vn,wn,xn,yn,Dn,zda,Fn,Gn,Bda,Hn,In,Gda,Cda,Pn,Lda,Qn,Rn,Nda,Un,Vn,Wn,Xn,Oda,$n,ao,bo,co,fo,go,ho,io,ko,lo,oo,po,qo,Rda,Sda,so,to,
xo,uo,yo,Ao,Bo,zo,Tda,Eo,M,Ho,So,Ro,Wda,Xda,Uo,Xo,Yo,Zo,$o,Zda,$da,gp,hp,ip,aea,np,op,bea,qp,sp,pp,vp,yp,xp,wp,Ap,Gp,Fp,cea,fea,eea,Rp,Sp,Tp,Up,Vp,Wp,Xp,aq,Zp,bq,cq,dq,gq,fq,hea,jea,iq,kea,mq,lq,mea,nq,oq,nea,sq,oea,pea,qq,qea,tq,rea,sea,yq,zq,Aq,tea,uea,Hq,vea,wea,Iq,Kq,Lq,Jq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Uq,Vq,Wq,Xq,ar,Yq,yea,cr,dr,zea,Bea,Aea,Zq,er,Cea,br,xea,$q,gr,hr,fr,Dea,ir,jr,Eea,kr,mr,nr,Fea,qr,Iea,sr,tr,ur,wr,vr,Jea,Kea,Lea,Mea,xr,yr,Ar,zr,Oea,Nea,Cr,Dr,Br,Pea,Qea,Ir,Jr,Mr,Nr,Or,Uea,Qr,Sr,Ur,Tr,
Wr,Xr,Yr,$r,Zr,Wea,cs,ds,es,fs,ks,ls,is,Zea,Xea,ms,ps,qs,afa,ns,os,ts,vs,ws,zs,xs,Bs,As,Cs,bfa,Es,Fs,Hs,Js,Ks,Ls,Ms,Os,dfa,Qs,Ss,Ts,Us,Ws,ct,et,dt,Vs,ft,jt,kt,efa,gt,ffa,tt,Dt,Bt,gfa,Ht,Gt,Jt,Ft,It,Kt,Lt,Mt,Nt,Ot,Pt,Qt,ifa,Rt,St,Ut,Vt,Tt,jfa,Wt,Xt,Zt,au,kfa,bu,fu,du,$t,gu,cu,eu,hu,iu,ju,lfa,lu,mu,nu,ou,vu,mfa,qu,xu,zu,Cu,Bu,tu,yu,wu,nfa,Du,Fu,Gu,ofa,Hu,Iu,pu,ru,uu,Au,pfa,Ju,Ku,Lu,Mu,Pu,Nu,qfa,Qu,Ru,Su,Tu,Uu,rfa,Ou,Vu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,ov,qv,pv,rv,tv,uv,vv,wv,sfa,tfa,
Av,Bv,Cv,Ev,Fv,Hv,yfa,Iv,Jv,Kv,Lv,Nv,Ov,Pv,Qv,Mv,Afa,Rv,Sv,Tv,Uv,Vv,Bfa,Wv,Cfa,Dfa,Xv,Yv,Efa,$v,Ffa,Zv,aw,cw,dw,ew,gw,hw,iw,lw,mw,nw,jw,rw,Wu,tw,uw,vw,ww,xw,yw,pw,zw,Aw,Cw,Dw,Ew,Gw,Iw,Jw,Kw,Lw,Mw,Nw,Gfa,Ow,Hfa,Tw,Uw,Ifa,Vw,Kfa,Lfa,Mfa,Nfa,Yw,Ofa,Pfa,Qfa,Rfa,Sfa,Tfa,Zw,Ufa,Rw,Ww,Xw,Jfa,$w,Vfa,Wfa,cx,ex,dx,Xfa,ax,bx,Yfa,Zfa,$fa,aga,cga,fx,dga,ega,hx,ix,fga,lx,rx,px,ux,mx,vx,jx,wx,nx,kx,tx,xx,yx,zx,Bx,Ax,Cx,Ex,Fx,jga,Ix,Jx,Hx,Lx,Mx,Nx,Px,Ox,Qx,Rx,Sx,Tx,Wx,Xx,mga,Ux,oga,Vx,ey,dy,gy,$x,fy,Yx,nga,pga,hy,
iy,Zx,kga,jy,ky,ly,my,ny,oy,py,qy,yy,ty,qga,Ay,uy,vy,sy,wy,ry,zy,Ey,Dy,Cy,Gy,Hy,Iy,Jy,Ky,sga,Ly,My,Ny,Yy,Zy,$y,az,cz,bz,dz,ez,iz,kz,lz,mz,nz,pz,qz,tz,jz,gz,fz,hz,uz,vz,wz,xz,sz,oz,rz,yz,zz,Az,Bz,Dz,Cz,Ez,vga,ox,by,ay,Gz,qx,Hz,Iz,gx,Fz,Jz,Kz,Mz,Lz,xga,Nz,Oz,Qz,Rz,Sz,Tz,Vz,Uz,Wz,yga,Xz,Yz,Zz,$z,aA,zga,Aga,Ega,Fga,Bga,Cga,Dga,bA,cA,Gga,Hga,dA,eA,fA,Iga,gA,iA,Kga,jA,Lga,Mga,kA,lA,Nga,Oga,Pga,mA,Qga,qA,nA,tA,Rga,Sga,uA,Tga,Uga,vA,wA,Vga,xA,yA,Wga,Xga,Yga,rA,Zga,zA,AA,BA,bha,aha,DA,EA,CA,FA,GA,cha,IA,JA,
KA,MA,NA,HA,OA,LA,QA,RA,TA,SA,UA,VA,XA,YA,ZA,$A,fB,bB,iB,cB,lB,jB,mB,eB,hha,nB,aB,pB,qB,rB,sB,uB,vB,wB,xB,yB,iha,zB,BB,CB,DB,tga,EB,jha,FB,GB,HB,IB,kha,KB,LB,JB,MB,NB,OB,PB,lha,TB,QB,mha,VB,nha,WB,oha,pha,YB,$B,ZB,XB,S,aC,bC,cC,dC,eC,DC,EC,HC,IC,pC,uC,fC,yC,xC,BC,LC,NC,PC,UC,mC,VC,lC,WC,wC,YC,ZC,$C,aD,bD,cD,dD,eD,xha,yha,zha,fD,gD,iD,jD,kD,lD,mD,nD,hD,oD,Aha,qD,Dha,Eha,tD,sD,Cha,Bha,rD,uD,Fha,Iha,Jha,Kha,BD,CD,Lha,DD,Mha,xD,ED,FD,wD,Gha,HD,yD,zD,Hha,ID,AD,Nha,Oha,Pha,JD,KD,Qha,LD,MD,Rha,ND,Sha,RD,
OD,QD,PD,UD,Uha,Vha,Wha,ZD,Xha,YD,$D,aE,bE,cE,dE,eE,fE,gE,Yha,Zha,hE,$ha,gga,hga,iE,lE,bia,mE,nE,oE,qE,sE,uE,vE,xE,Lla,Nla,Ola,Pla,wE,zE,BE,Qla,DE,HE,Rla,GE,JE,KE,FE,IE,jE,aia,EE,tE,Kla,Sla,kE,AE,rE,pE,LE,Tla,Ula,NE,Wla,OE,Xla,Vla,Yla,PE,QE,Zla,RE,SE,$la,ama,bma,TE,UE,cma,gma,VE,dma,fma,ema,WE,hma,XE,ima,jma,kma,aF,bF,eF,dF,fF,gF,hF,iF,mma,nma,oma,kF,lF,oF,nF,pma,qF,rF,mF,sF,tF,qma,xF,BF,CF,EF,tma,JF,LF,GF,MF,sma,uma,NF,PF,QF,OF,RF,vma,wma,FF,KF,VF,xma,yma,zma,Bma,WF,XF,Ama,ZF,$F,aG,cG,dG,IF,yF,fG,
AF,zF,hG,UF,Cma,mG,nG,oG,pG,qG,DF,sG,rG,TF,SF,tG,eG,uG,HF,Dma,wF,xG,vF,jF,yG,CE,Ema,BG,CG,DG,EG,Fma,Gma,FG,Hma,HG,GG,YG,ZG,XG,bH,Ima,Jma,cH,dH,jH,Mma,Nma,hH,Kma,pH,qH,rH,Wma,Xma,wH,xH,yH,zH,AH,BH,CH,DH,EH,FH,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,SH,TH,UH,VH,WH,XH,YH,ZH,$H,aI,bI,cI,dI,eI,fI,gI,hI,iI,jI,Yma,mI,nI,oI,pI,qI,rI,sI,kI,tI,vI,Zma,wI,xI,yI,zI,$ma,AI,BI,ana,CI,DI,bna,EI,cna,FI,HI,dna,ena,gna,fna,II,JI,hna,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,ina,UI,VI,WI,XI,ZI,lna,YI,mna,jna,$I,kna,aJ,nna,bJ,cJ,dJ,
eJ,fJ,gJ,hJ,jJ,iJ,kJ,mJ,nJ,pna,oJ,uJ,wJ,qJ,tJ,zJ,sJ,BJ,vJ,CJ,yJ,xJ,EJ,rJ,pJ,FJ,HJ,GJ,IJ,JJ,LJ,NJ,PJ,RJ,SJ,QJ,OJ,TJ,UJ,VJ,WJ,XJ,YJ,qna,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,hK,iK,jK,kK,lK,mK,nK,oK,qK,rK,sK,tK,uK,vK,wK,xK,zK,AK,rna,BK,una,sna,tna,vna,CK,DK,FK,GK,EK,HK,IK,wna,xna,JK,KK,yna,Ana,Bna,zna,MK,LK,NK,OK,PK,QK,RK,SK,TK,XK,YK,ZK,$K,aL,bL,cL,Cna,fL,gL,dL,jL,hL,iL,Dna,kL,Ena,lL,mL,Fna,nL,oL,pL,qL,sL,Gna,Ina,Jna,vL,Kna,uL,tL,Hna,wL,yL,xL,zL,BL,AL,CL,Lna,DL,GL,HL,IL,JL,ML,Nna,OL,QL,RL,SL,TL,UL,WL,Ona,YL,XL,
Pna,Qna,ZL,$L,aM,Sna,cM,bM,dM,Tna,Una,eM,fM,Xna,Wna,hM,iM,gM,jM,kM,lM,Zna,mM,nM,$na,oM,pM,qM,rM,aoa,sM,boa,tM,uM,vM,coa,wM,yM,AM,CM,EM,FM,JM,doa,eoa,GM,HM,IM,KM,NM,LM,PM,WM,foa,SM,TM,XM,QM,hoa,goa,ZM,joa,YM,UM,bN,$M,cN,dN,eN,fN,aN,hN,gN,kN,lN,VL,ioa,rL,jN,qN,rN,sN,tN,uN,vN,koa,wN,xN,zN,BN,loa,CN,W,FN,GN,moa,JN,MN,NN,ON,PN,RN,UN,VN,WN,YN,ZN,$N,noa,bO,ooa,cO,poa,qoa,roa,soa,uoa,fO,gO,hO,voa,iO,jO,kO,lO,mO,nO,pO,qO,rO,sO,tO,woa,uO,vO,xoa,wO,yoa,zoa,Aoa,Coa,Boa,Doa,Eoa,Foa,xO,Goa,yO,Hoa,AO,Joa,Ioa,BO,
CO,Noa,Koa,Moa,Loa,DO,EO,Ooa,FO,GO,Poa,Qoa,Roa,Soa,HO,Toa,Uoa,IO,JO,LO,MO,NO,Voa,Yoa,QO,RO,Zoa,SO,TO,UO,$oa,apa,bpa,XO,cpa,dpa,epa,fpa,YO,WO,gpa,$O,hpa,aP,bP,cP,fP,gP,hP,iP,jP,ipa,kP,jpa,lP,mP,nP,oP,pP,qP,rP,kpa,sP,tP,uP,vP,wP,lpa,npa,mpa,opa,xP,ppa,qpa,yP,rpa,zP,AP,BP,spa,tpa,upa,CP,EP,wpa,FP,GP,HP,IP,ypa,xpa,JP,KP,LP,MP,NP,Apa,zpa,OP,PP,uI,QP,Cpa,SP,Gpa,Ipa,UP,Jpa,VP,TP,WP,XP,ZP,Lpa,Mpa,Npa,Opa,eL,eQ,gQ,hQ,Rpa,Spa,Tpa,Upa,Kpa,Vpa,YP,Xpa,pQ,jQ,cQ,qQ,kQ,aQ,Ypa,Wpa,$P,iQ,mQ,rQ,dQ,fQ,oQ,nQ,$pa,sQ,bqa,
aqa,tQ,X,fqa,uQ,gqa,cqa,hqa,vQ,kqa,iqa,pqa,mqa,lqa,sqa,rqa,tqa,wqa,vqa,zqa,Bqa,Cqa,Gqa,FQ,Dqa,Iqa,Hqa,GQ,vH,Jqa,IQ,sH,MQ,Vma,NQ,OO,OQ,PQ,wQ,QQ,Lqa,EQ,xQ,Mqa,RQ,SQ,AQ,Nqa,oqa,yQ,zQ,DQ,Oqa,TQ,UQ,HQ,CQ,BQ,Eqa,uqa,xqa,VQ,WQ,Pqa,XQ,YQ,ZQ,$Q,aR,bR,cR,dR,eR,lI,Rqa,Qqa,Sqa,Aqa,nqa,jqa,eqa,dqa,qqa,Fqa,yqa,fR,Tqa,gR,pK,bQ,Ppa,JQ,hR,iR,Vqa,Wqa,jR,Xqa,kR,lR,mR,OM,VM,Yqa,Zqa,nR,$qa,ara,Woa,pR,qR,bra,rR,sR,tR,Xoa,KO,dra,era,vR,uH,wR,lQ,oR,gra,hra,ira,xR,yR,jra,kra,lra,mra,zR,AR,LQ,KQ,nra,BR,CR,ora,DR,ER,pra,qra,
FR,GR,HR,JR,IR,KR,rra,LR,sra,MR,NR,OR,PR,SR,tra,QR,ura,vra,TR,UR,wra,VR,xra,WR,yra,zra,Ara,YR,ZR,$R,aS,bS,cS,Bra,Cra,dS,eS,Dra,fS,RR,gS,hS,iS,Era,jS,Fra,kS,lS,mS,nS,oS,Gra,Hra,Jra,Lra,Ira,pS,Mra,Nra,Ora,qS,rS,sS,Kqa,Pra,tS,Qra,uS,Kra,Rra,Sra,Tra,Vra,vS,wS,Wra,xS,Xra,Yra,yS,Zra,zS,$ra,AS,BS,CS,DS,asa,ES,bsa,csa,dsa,esa,GS,fsa,gsa,hsa,isa,ksa,jsa,IS,lsa,msa,tH,nsa,OS,osa,psa,QS,qsa,RS,rsa,ssa,tsa,SS,TS,US,XS,vsa,YS,wsa,xsa,ysa,zsa,Asa,Csa,$S,Bsa,Dsa,aT,bT,Esa,Fsa,Gsa,Isa,Hsa,Jsa,Ksa,Msa,Lsa,Osa,dT,
Tsa,Psa,Usa,Vsa,Rsa,Wsa,Ssa,eT,$sa,Ysa,Zsa,fta,cta,gta,hta,ita,cT,bta,ata,eta,Xsa,jta,gT,kta,Qsa,lta,hT,iT,mta,nta,pta,qta,jT,ota,kT,lT,mT,oT,sta,uta,vta,xta,wta,pT,tta,rT,qT,yta,zta,nT,Ata,sT,vT,Bta,Dta,Cta,uT,Eta,Fta,Gta,Ita,Hta,Jta,wT,tT,Kta,Lta,xT,yT,Nta,Ota,Pta,Mta,Qta,Rta,Sta,Tta,Vta,Xta,Uta,Yta,Zta,$ta,aua,Wta,zT,bua,cua,dua,eua,BT,CT,ET,GT,HT,gua,IT,hua,iua,jua,JT,FT,lua,mua,MT,nua,oua,qua,pua,rua,NT,OT,sua,QT,PT,RT,ST,yua,Aua,Bua,VT,Eua,XT,WT,Fua,aU,Dua,Hua,Cua,$T,Iua,Gua,Kua,ZT,bU,Lua,Mua,
Nua,cra,dU,Oua,Pua,Qua,Rua,Jua,fua,LT,Tua,eU,fU,Uua,Vua,Xua,Yua,jU,iU,Zua,$ua,hU,gU,Wua,mU,lU,nU,kU,ava,pU,eva,rU,tU,uU,vU,wU,cva,sU,xU,dva,gva,hva,iva,oU,jva,qU,fva,kva,bva,lva,nva,ova,mva,yU,zU,BU,CU,DU,AU,EU,pva,qva,FU,HU,iH,rva,uva,tva,sva,vva,xva,GU,IU,JU,KU,LU,MU,NU,yva,zva,PU,QU,RU,Bva,Dva,Cva,Eva,Gva,Fva,SU,TU,Hva,UU,VU,WU,XU,YU,ZU,Iva,Jva,Lva,Mva,Nva,Ova,Pva,Qva,Rva,$U,Sva,Tva,aV,bV,cV,dV,eV,fV,Uva,gV,Vva,Wva,Xva,Yva,Zva,$va,hV,awa,iV,bwa,dwa,cwa,ewa,jwa,hwa,fwa,gwa,iwa,kV,lwa,jV,nwa,oV,
owa,pwa,tV,DJ,uV,vV,swa,twa,wwa,wV,sV,nW,lW,mV,uwa,rW,xwa,tW,oW,vW,uW,sW,yW,AW,zW,nV,Cwa,qwa,qV,wW,FW,Dwa,GW,Ewa,pV,Fwa,CW,EW,kW,ywa,Hwa,Gwa,Jwa,Iwa,HW,Awa,mW,IW,xV,rV,JW,DW,rwa,KW,LW,Lwa,Kwa,pW,Mwa,BW,Nwa,xW,Bwa,vwa,MW,Owa,Qwa,Rwa,Pwa,Swa,NW,OW,Vwa,Uwa,Cq,Fq,Xwa,Wwa,Ywa,PW,Zwa,$wa,axa,SW,TW,cxa,UW,dxa,QW,gxa,exa,RW,fxa,bxa,WW,VW,XW,Y,RM,hxa,ixa,jxa,kxa,aX,$W,bX,eX,pX,qX,Ura,eH,vxa,xxa,CX,Cxa,FX,Exa,Bxa,Fxa,Gxa,EX,Dxa,HX,IX,JX,KX,lxa,LX,oX,Hxa,NX,Ixa,MX,PX,Jxa,SX,TX,YX,Lxa,Mxa,$X,ZX,aY,Nxa,Oxa,cY,
bY,Pxa,eY,fY,Rxa,Qxa,iY,Txa,kY,gY,Uxa,Vxa,Sxa,lY,oY,Wxa,nY,pY,rY,qY,uY,Xxa,Yxa,xY,Zxa,bya,$xa,BY,CY,cya,FY,GY,IY,KY,dya,eya,NY,gya,MY,fya,hya,iya,QY,jya,lya,kya,TY,UY,nya,mya,VY,WY,oya,pya,ZY,rya,qya,$Y,aZ,bZ,sya,cZ,dZ,eZ,fZ,tya,gZ,hZ,vya,uya,xya,wya,mZ,kZ,nZ,lZ,yya,zya,Aya,oZ,pZ,qZ,Bya,tZ,Cya,vZ,wZ,xZ,zZ,AZ,BZ,CZ,Dya,Gya,DZ,Eya,Fya,EZ,Kya,Lya,FZ,Nya,Mya,Oya,Pya,Qya,IZ,KZ,LZ,MZ,Rya,Sya,Tya,Uya,Wya,Xya,Yya,QZ,UZ,$ya,aza,SZ,OZ,RZ,WZ,dza,XZ,TZ,Vya,cza,VZ,Zya,bza,eza,fza,YZ,ZZ,$Z,a_,hza,d_,e_,f_,g_,h_,
i_,iza,j_,l_,k_,m_,n_,jza,o_,kza,mza,lza,p_,q_,nza,r_,s_,oza,t_,pza,u_,qza,v_,w_,A_,z_,rza,y_,D_,sza,tza,E_,F_,H_,uza,vY,yza,RY,vza,C_,xza,SY,wza,zza,Bza,Aza,L_,Cza,M_,Dza,N_,Eza,Fza,Gza,Q_,Jza,Mza,Kza,Iza,R_,P_,Hza,Lza,S_,Oza,Nza,T_,V_,Uza,Y_,Tza,Sza,Z_,U_,$_,yX,Vza,X_,Mla,W_,Wza,Qza,a0,aAa,c0,cAa,dAa,Zza,e0,eAa,f0,Xza,h0,$za,fAa,g0,d0,gAa,zX,hAa,b0,jAa,l0,j0,m0,k0,kAa,n0,o0,mAa,t0,oAa,pAa,lJ,qAa,rAa,w0,v0,u0,sAa,tAa,sxa,txa,uAa,vAa,y0,z0,A0,C0,HAa,CAa,gH,BAa,JAa,KAa,F0,G0,xX,MAa,LAa,H0,uxa,B0,AX,
L0,OAa,M0,O0,FAa,GAa,U0,QAa,T0,D0,pN,SAa,Y0,IAa,Z0,PAa,oxa,TAa,UAa,Q0,R0,P0,b1,ZAa,I0,$Aa,aBa,bBa,bAa,dBa,c1,X0,Pza,J0,i0,d1,e1,eBa,S0,NAa,a1,VAa,gBa,pxa,RAa,YW,iBa,W0,h1,kBa,K0,rX,i1,lBa,mBa,j1,nBa,EAa,$0,oBa,DAa,k1,l1,nAa,pBa,qBa,tBa,vBa,p1,q1,aa,fa,ea,eaa,La,Ta,faa;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 globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=function(a){a={next:a};a[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)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(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.nd=b.prototype};
oa=function(){this.K=!1;this.D=null;this.B=void 0;this.u=1;this.F=this.G=0;this.P=this.C=null};
pa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
qa=function(a,b){a.C={ZA:b,iC:!0};a.u=a.G||a.F};
ra=function(a,b,c){a.u=c;return{value:b}};
sa=function(a,b,c){a.G=b;void 0!=c&&(a.F=c)};
ta=function(a,b){a.u=b;a.G=0};
ua=function(a){a.G=0;var b=a.C.ZA;a.C=null;return b};
baa=function(a){a.P=[a.C];a.G=0;a.F=0};
caa=function(a){var b=a.P.splice(0)[0];(b=a.C=a.C||b)?b.iC?a.u=a.G||a.F:void 0!=b.Kd&&a.F<b.Kd?(a.u=b.Kd,a.C=null):a.u=a.F:a.u=4};
va=function(a){this.u=new oa;this.B=a};
daa=function(a,b){pa(a.u);var c=a.u.D;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.u.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.u.K=!1,e;var f=e.value}catch(h){return a.u.D=null,qa(a.u,h),ya(a)}a.u.D=null;d.call(a.u,f);return ya(a)};
ya=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.K=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,qa(a.u,c)}a.u.K=!1;if(a.u.C){b=a.u.C;a.u.C=null;if(b.iC)throw b.ZA;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
za=function(a){this.next=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D.next,b,a.u.N):(a.u.N(b),b=ya(a));return b};
this["throw"]=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D["throw"],b,a.u.N):(qa(a.u,b),b=ya(a));return b};
this["return"]=function(b){return daa(a,b)};
this[Symbol.iterator]=function(){return this}};
Aa=function(a,b){var c=new za(new va(b));na&&a.prototype&&na(c,a.prototype);return c};
Ba=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
Ca=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+""};
Da=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{UB:e,AG:f}}return{UB:-1,AG:void 0}};
Ea=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Fa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ga=function(a){return a?a:Array.prototype.fill};
Ha=function(a){return a?a:Array.prototype.copyWithin};
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};
Ma=function(a){if(a&&a!=g.v)return Ka(a.document);null===La&&(La=Ka(g.v.document));return La};
Ka=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Na=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.Oa=function(){};
Pa=function(a){a.cf=void 0;a.getInstance=function(){return a.cf?a.cf:a.cf=new a}};
Qa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ra=function(a){var b=Qa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Sa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ua=function(a){return Object.prototype.hasOwnProperty.call(a,Ta)&&a[Ta]||(a[Ta]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=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.z=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.z=gaa:g.z=haa;return g.z.apply(null,arguments)};
g.Va=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.Wa=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Ya=function(a,b){function c(){}
c.prototype=b.prototype;a.nd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Vf=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Za=function(a){return a};
$a=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
ab=function(a,b){$a.call(this,iaa(a,b))};
iaa=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");return d+c[e]};
jaa=function(){};
kaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.u=/[?&]adurl=([^&]*)/.exec(a))&&this.u[1]){try{var c=decodeURIComponent(this.u[1])}catch(d){c=null}this.B=c}};
bb=function(a){return function(){return a}};
g.cb=function(a){return a};
laa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
db=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
fb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
maa=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.gb=function(a){return a[a.length-1]};
naa=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.jb=function(a,b,c){b=ib(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
ib=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.kb=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.nb=function(a,b){return 0<=lb(a,b)};
g.ob=function(a){return 0==a.length};
pb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.rb=function(a,b){var c=lb(a,b),d;(d=0<=c)&&g.qb(a,c);return d};
g.qb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.sb=function(a,b){var c=ib(a,b,void 0);0<=c&&g.qb(a,c)};
oaa=function(a,b){var c=0;naa(a,function(d,e){b.call(void 0,d,e,a)&&g.qb(a,e)&&c++})};
g.tb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ub=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[]};
vb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ra(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.xb=function(a,b,c,d){Array.prototype.splice.apply(a,wb(arguments,1))};
wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
paa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Sa(f)?"o"+g.Ua(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.Cb=function(a,b){a.sort(b||zb)};
qaa=function(a,b){var c=zb;g.Cb(a,function(d,e){return c(b(d),b(e))})};
g.Db=function(a,b){if(!g.Ra(a)||!g.Ra(b)||a.length!=b.length)return!1;for(var c=a.length,d=raa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
raa=function(a,b){return a===b};
g.Eb=function(a,b,c){c=g.Ab(a,b,c);0>c&&g.xb(a,-(c+1),0,b)};
g.Hb=function(a,b,c){var d={};(0,g.Fb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
saa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
taa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Ib=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Jb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Lb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Mb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Nb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ob=function(a){for(var b in a)return a[b]};
g.Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Rb=function(a,b){var c=g.Ra(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Sb=function(a,b){return null!==a&&b in a};
g.Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ub=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Vb=function(a,b){var c=Ub(a,b,void 0);return c&&a[c]};
g.Wb=function(a){for(var b in a)return!1;return!0};
g.Xb=function(a){for(var b in a)delete a[b]};
g.Yb=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.Zb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.$b=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.$b(a[c]);return b};
g.bc=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<ac.length;f++)c=ac[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
cc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ec=function(){if(void 0===dc){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Za,createScript:Za,createScriptURL:Za})}catch(c){g.v.console&&g.v.console.error(c.message)}dc=a}else dc=a}return dc};
hc=function(a,b){this.u=a===fc&&b||"";this.B=gc};
jc=function(a){return a instanceof hc&&a.constructor===hc&&a.B===gc?a.u:"type_error:Const"};
g.kc=function(a){return new hc(fc,a)};
mc=function(a,b){this.B=b===lc?a:""};
nc=function(a){return a instanceof mc&&a.constructor===mc?a.B:"type_error:TrustedResourceUrl"};
waa=function(a,b){var c=jc(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 h=b[f];return h instanceof hc?jc(h):encodeURIComponent(String(h))});
return oc(d)};
oc=function(a){var b=ec();a=b?b.createScriptURL(a):a;return new mc(a,lc)};
pc=function(a,b){return 0==a.lastIndexOf(b,0)};
qc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.rc=function(a){return/^[\s\xa0]*$/.test(a)};
zc=function(a,b){if(b)a=a.replace(tc,"&amp;").replace(uc,"&lt;").replace(vc,"&gt;").replace(wc,"&quot;").replace(xc,"&#39;").replace(yc,"&#0;");else{if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(uc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(vc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(xc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(yc,"&#0;"))}return a};
Ac=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Dc=function(a,b){for(var c=0,d=Bc(String(a)).split("."),e=Bc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var l=d[h]||"",m=e[h]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Cc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Cc(0==l[2].length,0==m[2].length)||Cc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Cc=function(a,b){return a<b?-1:a>b?1:0};
g.Fc=function(a,b){this.B=b===Ec?a:""};
g.Gc=function(a){return a instanceof g.Fc&&a.constructor===g.Fc?a.B:"type_error:SafeUrl"};
Hc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(yaa);return b&&zaa.test(b[1])?new g.Fc(a,Ec):null};
g.Kc=function(a){a instanceof g.Fc||(a="object"==typeof a&&a.lj?a.yg():String(a),a=Ic.test(a)?new g.Fc(a,Ec):Hc(a));return a||Jc};
g.Lc=function(a,b){if(a instanceof g.Fc)return a;a="object"==typeof a&&a.lj?a.yg():String(a);if(b&&/^data:/i.test(a)){var c=Hc(a)||Jc;if(c.yg()==a)return c}Ic.test(a)||(a="about:invalid#zClosurez");return new g.Fc(a,Ec)};
Nc=function(a,b){this.u=b===Mc?a:""};
Oc=function(a){return a instanceof Nc&&a.constructor===Nc?a.u:"type_error:SafeStyle"};
Sc=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){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)?g.Pc(d,Qc).join(" "):Qc(d),b+=c+":"+d+";")}return b?new Nc(b,Mc):Rc};
Qc=function(a){if(a instanceof g.Fc)return'url("'+g.Gc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof hc?jc(a):Aaa(String(a));if(/[{;}]/.test(a))throw new ab("Value does not allow [{;}], got: %s.",[a]);return a};
Aaa=function(a){var b=a.replace(Tc,"$1").replace(Tc,"$1").replace(Uc,"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(Uc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Kc(d).yg();return c+f+b+f+e})};
Faa=function(a){function b(d){Array.isArray(d)?g.Fb(d,b):c+=Oc(d)}
var c="";g.Fb(arguments,b);return c?new Nc(c,Mc):Rc};
Wc=function(a){return-1!=g.Vc.indexOf(a)};
Xc=function(){return Wc("Firefox")||Wc("FxiOS")};
$c=function(){return Wc("Safari")&&!(Zc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Xc()||Wc("Silk")||Wc("Android"))};
Zc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
bd=function(a,b,c){this.B=c===ad?a:"";this.C=b};
g.cd=function(a){return a instanceof bd&&a.constructor===bd?a.B:"type_error:SafeHtml"};
ed=function(a){if(a instanceof bd)return a;var b="object"==typeof a,c=null;b&&a.Iw&&(c=a.u());return dd(zc(b&&a.lj?a.yg():String(a)),c)};
Gaa=function(a){function b(f){Array.isArray(f)?g.Fb(f,b):(f=ed(f),e.push(g.cd(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=ed(fd),d=c.u(),e=[];g.Fb(a,b);return dd(e.join(g.cd(c).toString()),d)};
Haa=function(a){return Gaa(Array.prototype.slice.call(arguments))};
dd=function(a,b){var c=ec();c=c?c.createHTML(a):a;return new bd(c,b,ad)};
g.gd=function(a,b){jc(a);jc(a);return dd(b,null)};
Iaa=function(a){var b=g.kc("Output of CSS sanitizer");jc(b);jc(b);return new Nc(a,Mc)};
g.hd=function(a,b){if(Jaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.cd(b)};
g.id=function(a,b){var c=b instanceof g.Fc?b:g.Lc(b);a.href=g.Gc(c)};
g.jd=function(a,b){a.src=nc(b);var c=Ma(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
kd=function(a,b,c,d){a=a instanceof g.Fc?a:g.Lc(a);b=b||g.v;c=c instanceof hc?jc(c):c||"";return void 0!==d?b.open(g.Gc(a),c,d,void 0):b.open(g.Gc(a),c)};
ld=function(a){return encodeURIComponent(String(a))};
md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.nd=function(a){return a=zc(a,void 0)};
od=function(a){a=String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Kaa("0",Math.max(0,2-b))+a};
g.pd=function(a){return null==a?"":String(a)};
qd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.rd=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b};
sd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
td=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Laa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
ud=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
vd=function(a){return a?decodeURI(a):a};
g.xd=function(a,b){return b.match(wd)[a]||null};
g.yd=function(a){return vd(g.xd(3,a))};
zd=function(a){a=a.match(wd);return ud(a[1],null,a[3],a[4])};
Ad=function(a){a=a.match(wd);return ud(null,null,null,null,a[5],a[6],a[7])};
Bd=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 h=c[d].substring(0,e);f=c[d].substring(e+1)}else h=c[d];b(h,f?md(f):"")}};
Cd=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)]};
Dd=function(a,b){return b?a?a+"&"+b:b:a};
Ed=function(a,b){if(!b)return a;var c=Cd(a);c[1]=Dd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Fd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Fd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+ld(b)))};
Gd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Fd(a[d],a[d+1],c);return c.join("&")};
g.Hd=function(a){var b=[],c;for(c in a)Fd(c,a[c],b);return b.join("&")};
Id=function(a,b){var c=2==arguments.length?Gd(arguments[1],0):Gd(arguments,1);return Ed(a,c)};
g.Jd=function(a,b){var c=g.Hd(b);return Ed(a,c)};
Kd=function(a,b,c){c=null!=c?"="+ld(c):"";return Ed(a,b+c)};
Nd=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};
Pd=function(a,b){var c=a.search(Od),d=Nd(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 md(a.substr(d,e-d))};
Qd=function(a,b){for(var c=a.search(Od),d=0,e,f=[];0<=(e=Nd(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(Maa,"$1")};
Rd=function(a,b,c){return Kd(Qd(a,b),b,c)};
Naa=function(a,b){var c=Cd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)});
c[1]=Dd(e.join("&"),g.Hd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Sd=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Td=function(){return Sd()||Wc("iPad")||Wc("iPod")};
Ud=function(a){Ud[" "](a);return a};
Vd=function(a,b){try{return Ud(a[b]),!0}catch(c){}return!1};
Wd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Xd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Zd=function(a){return Wd(Oaa,a,function(){return 0<=g.Dc(Yd,a)})};
g.$d=function(a){return Number(Paa)>=a};
g.be=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ce=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.de=function(a,b,c){return a+c*(b-a)};
ee=function(a,b){return 1E-6>=Math.abs(a-b)};
g.fe=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ge=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.he=function(a,b){this.width=a;this.height=b};
g.ie=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
je=function(a){return a.width*a.height};
ne=function(a){return a?new ke(le(a)):me||(me=new ke)};
oe=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.qe=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.pe(document,"*",a,b)};
g.re=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.pe(c,"*",a,b)[0]||null}return c||null};
g.pe=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,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
ve=function(a,b){g.Ib(b,function(c,d){c&&"object"==typeof c&&c.lj&&(c=c.yg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ue.hasOwnProperty(d)?a.setAttribute(ue[d],c):pc(d,"aria-")||pc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
we=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.he(a.clientWidth,a.clientHeight)};
ze=function(a){var b=xe(a);a=a.parentWindow||a.defaultView;return g.ye&&g.Zd("10")&&a.pageYOffset!=b.scrollTop?new g.fe(b.scrollLeft,b.scrollTop):new g.fe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
xe=function(a){return a.scrollingElement?a.scrollingElement:g.Ae||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Be=function(a){return a?a.parentWindow||a.defaultView:window};
g.Ee=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Qaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.nd(h.name),'"');if(h.type){f.push(' type="',g.nd(h.type),'"');var l={};g.bc(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Ce(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):ve(f,h));2<d.length&&De(e,f,d,2);return f};
De=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ra(f)||g.Sa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Sa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Fb(h?g.ub(f):f,e)}}};
g.Fe=function(a){return Ce(document,a)};
Ce=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ge=function(a){return document.createTextNode(String(a))};
g.He=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Ie=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Je=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Saa=function(a){return Raa&&void 0!=a.children?a.children:g.Ke(a.childNodes,function(b){return 1==b.nodeType})};
g.Le=function(a){var b;if(Taa&&!(g.ye&&g.Zd("9")&&!g.Zd("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Sa(b)&&1==b.nodeType?b:null};
g.Me=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};
le=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ne=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.He(a);var c=le(a);a.appendChild(c.createTextNode(String(b)))}};
Qe=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&&(!Oe(a)||Pe(a)):b=Oe(a)&&Pe(a);if(b&&g.ye){var c;"function"!==typeof a.getBoundingClientRect||g.ye&&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};
Oe=function(a){return g.ye&&!g.Zd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Pe=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Se=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Re(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.nb(f.className.split(/\s+/),c))},!0,d)};
Re=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};
ke=function(a){this.u=a||g.v.document||document};
Te=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.nd(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=ne(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=waa(g.kc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.nd(a)+".js"});g.jd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Ue=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
Uaa=function(a){return g.Pc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ve=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.We=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
Ye=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Xe(this,a,b,c)};
$e=function(a,b,c){if(Ze.length){var d=Ze.pop();a&&Xe(d,a,b,c);return d}return new Ye(a,b,c)};
Xe=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.af(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D};
bf=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],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.F=!0};
cf=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d};
df=function(a){this.u=$e(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
ef=function(a){var b=a.u;(b=b.u==b.C)||(b=a.D)||(b=a.u,b=b.F||0>b.u||b.u>b.C);if(b)return!1;a.F=a.u.u;b=cf(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0};
ff=function(a){switch(a.B){case 0:if(0!=a.B)ff(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?ff(a):a.u.advance(8);break;case 2:if(2!=a.B)ff(a);else{var b=cf(a.u);a.u.advance(b)}break;case 5:5!=a.B?ff(a):a.u.advance(4);break;case 3:b=a.C;do{if(!ef(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}ff(a)}while(1);break;default:a.D=!0}};
gf=function(a){var b=cf(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&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)h=wb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
kf=function(a){var b=cf(a.u);a=a.u;if(0>b||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b};
lf=function(){this.u=[]};
g.mf=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.nf=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)};
g.qf=function(a,b){void 0===b&&(b=0);of();for(var c=pf[b],d=[],e=0;e<a.length;e+=3){var f=a[e],h=e+1<a.length,l=h?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,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.rf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.qf(b,3)};
Vaa=function(a){var b=[];sf(a,function(c){b.push(c)});
return b};
g.af=function(a){!g.ye||g.Zd("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;sf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
sf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=tf[n];if(null!=p)return p;if(!g.rc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
of();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
of=function(){if(!tf){tf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));pf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===tf[f]&&(tf[f]=e)}}}};
g.uf=function(){this.C=[];this.B=0;this.u=new lf};
g.vf=function(a){for(var b=new Uint8Array(a.B+a.u.length()),c=a.C,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.u.end();b.set(c,e);a.C=[b];return b};
g.wf=function(a,b,c){if(null!=c&&null!=c)if(g.mf(a.u,8*b),a=a.u,0<=c)g.mf(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.zf=function(a,b,c){if(null!=c&&null!=c){g.mf(a.u,8*b);a=a.u;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)));g.xf=b;g.yf=d;c=g.xf;for(b=g.yf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.Af=function(a,b,c){if(null!=c){g.mf(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.yf=0<1/d?0:2147483648,g.xf=0;else if(isNaN(d))g.yf=2147483647,g.xf=4294967295;else if(1.7976931348623157E308<d)g.yf=(c<<31|2146435072)>>>0,g.xf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.yf=(c<<31|d/4294967296)>>>0,g.xf=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);g.yf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.xf=4503599627370496*
d>>>0}g.nf(a,g.xf);g.nf(a,g.yf)}};
g.Bf=function(){};
g.Gf=function(a,b,c,d){a.u=null;b||(b=[]);a.G=void 0;a.C=-1;a.vf=b;a:{if(b=a.vf.length){--b;var e=a.vf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Cf&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.D?(e+=a.C,a.vf[e]=a.vf[e]||g.Df):(Ef(a),a.B[e]=a.B[e]||g.Df);if(d&&d.length)for(b=0;b<d.length;b++)g.Ff(a,d[b])};
Ef=function(a){var b=a.D+a.C;a.vf[b]||(a.B=a.vf[b]={})};
g.Hf=function(a,b){if(b<a.D){var c=b+a.C,d=a.vf[c];return d===g.Df?a.vf[c]=[]:d}if(a.B)return d=a.B[b],d===g.Df?a.B[b]=[]:d};
Waa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.af(a):null};
If=function(a,b){var c=g.Hf(a,b);return null==c?0:c};
g.Jf=function(a,b,c){b<a.D?a.vf[b+a.C]=c:(Ef(a),a.B[b]=c);return a};
Kf=function(a,b,c){0!==c?g.Jf(a,b,c):b<a.D?a.vf[b+a.C]=null:(Ef(a),delete a.B[b]);return a};
g.Ff=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Hf(a,f);null!=h&&(c=f,d=h,g.Jf(a,f,void 0))}return c?(g.Jf(a,c,d),c):0};
g.Lf=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.Hf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}};
Mf=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?Mf(d):d)}return b}if(Cf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Mf(d):d);return b};
Xaa=function(a){var b=g.Na("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(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Nf(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Of[c])c=Of[c];else{c=String(c);if(!Of[c]){var f=/function\s+([^\(]+)/m.exec(c);Of[c]=f?f[1]:"[Anonymous]"}c=Of[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return a};
Nf=function(a,b){b||(b={});b[Pf(a)]=!0;var c=a.stack||"",d=a.N3;d&&!b[Pf(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Nf(d,b));return c};
Pf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Qf=function(a){this.u=a||{cookie:""}};
Rf=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Bc(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}};
Sf=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};
Tf=function(a){return a?a.passive&&Yaa()?a:a.capture||!1:!1};
Uf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Tf(d)),!0):!1};
Vf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Tf(void 0))};
g.Yf=function(a){"number"===typeof a?(this.date=Wf(a,0,1),Xf(this,1)):g.Sa(a)?(this.date=Wf(a.getFullYear(),a.getMonth(),a.getDate()),Xf(this,a.getDate())):(this.date=new Date(g.A()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Xf(this,a))};
Wf=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Xf=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
$f=function(){return!Zf()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
Zf=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
ag=function(a){try{return!!a&&null!=a.location.href&&Vd(a,"foo")}catch(b){return!1}};
bg=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
$aa=function(){var a=[];bg(Zaa,function(b){a.push(b)});
return a};
bba=function(a){return(a=aba.exec(a))&&a[0]||""};
cba=function(){var a=cg;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""};
eba=function(){var a=g.Fe("IFRAME"),b={};g.Fb(dba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.B=function(){this.Rd=this.Rd;this.Zl=this.Zl};
g.C=function(a,b){g.dg(a,g.Va(g.eg,b))};
g.dg=function(a,b){a.Rd?b():(a.Zl||(a.Zl=[]),a.Zl.push(b))};
g.eg=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.fg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ra(d)?g.fg.apply(null,d):g.eg(d)}};
gg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
hg=function(a,b,c){b instanceof g.fe?(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.ig=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
jg=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};
fba=function(){};
lg=function(a,b){if(b!==kg)throw Error("Bad secret");this.u=a};
g.ng=function(a){mg();return oc(a)};
g.F=function(a,b,c){if("string"===typeof b)(b=og(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=og(c,d);f&&(c.style[f]=e)}};
og=function(a,b){var c=pg[b];if(!c){var d=sd(b);c=d;void 0===a.style[d]&&(d=(g.Ae?"Webkit":qg?"Moz":g.ye?"ms":g.rg?"O":null)+Laa(d),void 0!==a.style[d]&&(c=d));pg[b]=c}return c};
g.sg=function(a,b){var c=a.style[sd(b)];return"undefined"!==typeof c?c:a.style[og(a,b)]||""};
tg=function(a,b){var c=le(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
ug=function(a,b){return tg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.wg=function(a,b,c){if(b instanceof g.fe){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.vg(d,!1);a.style.top=g.vg(b,!1)};
xg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
gba=function(a){if(g.ye&&!g.$d(8))return a.offsetParent;var b=le(a),c=ug(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=ug(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.yg=function(a){var b=le(a),c=new g.fe(0,0);var d=b?le(b):document;d=!g.ye||g.$d(9)||"CSS1Compat"==ne(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=xg(a);b=ze(ne(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ag=function(a,b){var c=new g.fe(0,0),d=Be(le(a));if(!Vd(d,"parent"))return c;var e=a;do{var f=d==b?g.yg(e):zg(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.Cg=function(a,b){var c=Bg(a),d=Bg(b);return new g.fe(c.x-d.x,c.y-d.y)};
zg=function(a){a=xg(a);return new g.fe(a.left,a.top)};
Bg=function(a){if(1==a.nodeType)return zg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.fe(a.clientX,a.clientY)};
g.Dg=function(a,b,c){if(b instanceof g.he)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.vg(b,!0);a.style.height=g.vg(c,!0)};
g.vg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eg=function(a){var b=hba;if("none"!=ug(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};
hba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ae&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=xg(a),new g.he(a.right-a.left,a.bottom-a.top)):new g.he(b,c)};
g.Fg=function(a,b){a.style.display=b?"":"none"};
Jg=function(){if(Gg&&!ag(Hg)){var a="."+Ig.domain;try{for(;2<a.split(".").length&&!ag(Hg);)Ig.domain=a=a.substr(a.indexOf(".")+1),Hg=window.parent}catch(b){}ag(Hg)||(Hg=window)}return Hg};
Kg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.he(b.innerWidth,b.innerHeight)).round():we(b||window).round()}catch(d){return new g.he(-12245933,-12245933)}};
Lg=function(a,b,c){try{a&&(b=b.top);var d=Kg(a,b,void 0===c?!1:c),e=ze(ne(b.document).u);if(-12245933==d.width){var f=d.width;var h=new gg(f,f,f,f)}else h=new gg(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new gg(-12245933,-12245933,-12245933,-12245933)}};
iba=function(a){var b={};g.Fb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
oaa(a,function(c){return null===b[c.event]})};
Mg=function(){this.kc=0;this.u=!1;this.B=-1;this.Kl=!1;this.Sf=0};
Ng=function(){this.B=null;this.u=!1};
Og=function(a){Ng.call(this);this.C=a};
Pg=function(){Ng.call(this)};
Qg=function(){Ng.call(this)};
Rg=function(){this.u={};this.C=!0;this.B={}};
Sg=function(a,b,c){a.u[b]||(a.u[b]=new Og(c));return a.u[b]};
jba=function(a){a.u.queryid||(a.u.queryid=new Qg)};
Tg=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
Ug=function(a,b){if(Sb(a.B,b))return a.B[b];var c=a.u[b];if(c)return c.getValue()};
Vg=function(a){var b={},c=g.Jb(a.u,function(d){return d.u});
g.Ib(c,function(d,e){var f=void 0!==a.B[e]?String(a.B[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
kba=function(a){a=Vg(a);var b=[];g.Ib(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lba=function(){this.u=this.xk=null};
Wg=function(){};
Yg=function(){if(!Xg())throw Error();};
Xg=function(){return!(!Zg||!Zg.performance)};
$g=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ah=function(){};
dh=function(a){a=a||bh();for(var b=new ch(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&mba.test(f.url)&&(c=f);if(f.url&&!f.Zw){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new nba(b,e,c)};
bh=function(){var a=g.v,b=[],c=null;do{var d=a;if(ag(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ch(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.Zw=!0);return b};
nba=function(a,b,c){this.u=a;this.B=b;this.C=c};
ch=function(a,b,c){this.url=a;this.kf=b;this.Zw=!!c;this.depth=null};
eh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
fh=function(a,b){var c={};c[a]=b;return[c]};
hh=function(a,b,c,d,e){var f=[];bg(a,function(h,l){var m=gh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
gh=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(gh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(hh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
oba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
ih=function(a,b){this.u=a;this.depth=b};
qba=function(){function a(l,m){return null==l?m:l}
var b=bh(),c=Math.max(b.length-1,0),d=dh(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new ih([f.url,f.Zw?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ih([e.url,2],0));b.url&&b!=f&&h.push(new ih([b.url,0],a(b.depth,c)));d=g.Pc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=bba(b.url))&&d.push([new ih([e,1],a(b.depth,c))]);d.push([]);return g.Pc(d,function(l){return pba(c,l)})};
pba=function(a,b){g.jh(b,function(e){return 0<=e.depth});
var c=g.kh(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2);
d[0]=a;g.Fb(b,function(e){return d[e.depth+1]=e.u});
return d};
rba=function(){var a=qba();return g.Pc(a,function(b){return gh(b)})};
lh=function(){this.B=new ah;this.u=Xg()?new Yg:new Wg};
sba=function(){mh();var a=Zg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Zg.setInterval&&"function"===typeof Zg.clearInterval&&"function"===typeof Zg.setTimeout&&"function"===typeof Zg.clearTimeout)};
nh=function(a){mh();var b=Jg()||Zg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
oh=function(){mh();return rba()};
ph=function(){};
mh=function(){return ph.getInstance().getContext()};
qh=function(a){g.Gf(this,a,null,null)};
tba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
rh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.u)return b.apply(null,g.la(d));try{return a.u=a.D.u.now(),b.apply(null,g.la(d))}finally{a.C+=a.D.u.now()-a.u,a.u=-1,a.B+=1}}};
uba=function(a,b){this.B=a;this.C=b;this.u=new tba(a)};
vba=function(){};
uh=function(){this.C=void 0;this.B=this.G=0;this.F=-1;this.ub=new Rg;Sg(this.ub,"mv",sh).u=!0;Sg(this.ub,"omid",th);Sg(this.ub,"epoh",th).u=!0;Sg(this.ub,"epph",th).u=!0;Sg(this.ub,"umt",th).u=!0;Sg(this.ub,"phel",th).u=!0;Sg(this.ub,"phell",th).u=!0;Sg(this.ub,"oseid",wba).u=!0;var a=this.ub;a.u.sloi||(a.u.sloi=new Pg);a.u.sloi.u=!0;Sg(this.ub,"xdi",th).u=!0;Sg(this.ub,"amp",th).u=!0;Sg(this.ub,"prf",th).u=!0;Sg(this.ub,"gtx",th).u=!0;Sg(this.ub,"mvp_lv",th).u=!0;Sg(this.ub,"vcm",th).u=!0;Sg(this.ub,
"dov",sh).u=!0;Sg(this.ub,"postrxl",th).u=!0;this.ub.B.postrxl=1;Sg(this.ub,"mpv",th).u=!0;Sg(this.ub,"tmout",th).u=!0;this.u=new uba(mh(),this.ub);this.D=!1;this.flags=new vba};
xba=function(){var a="https:";Zg&&Zg.location&&"http:"===Zg.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
vh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof eh)var f=c;else f=new eh,bg(c,function(l,m){var n=f,p=n.D++,r=fh(m,l);n.u.push(p);n.B[p]=r});
var h=f.qd(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&nh(h)}catch(l){}};
wh=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
xh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
yba=function(a,b){var c=xh()||wh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
zh=function(){var a=Jg();this.events=[];this.B=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.u=yh()||(null!=b?b:1>Math.random())};
Bh=function(a){a&&Ah&&yh()&&(Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Eh=function(){var a=Ch;this.F=Dh;this.D="jserror";this.C=!0;this.u=null;this.G=this.B;this.Wa=void 0===a?null:a};
Kh=function(a,b,c,d){return rh(uh.getInstance().u.u,function(){try{if(a.Wa&&a.Wa.u){var e=a.Wa.start(b.toString(),3);var f=c();a.Wa.end(e)}else f=c()}catch(m){var h=a.C;try{Bh(e);var l=new Fh(Jh(m));h=a.G(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Mh=function(a,b,c){var d=Lh;return rh(uh.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Kh(d,a,function(){return b.apply(void 0,f)},c)})};
Jh=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};
Fh=function(a){Sf.call(this,Error(a),{message:a})};
Nh=function(){var a=Jg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Ch.disable())};
zba=function(a){Lh.u=function(b){g.Fb(a,function(c){c(b)})}};
Oh=function(a,b){return Kh(Lh,a,b,void 0)};
Ph=function(a,b){return Mh(a,b,void 0)};
Qh=function(a,b,c,d){Lh.B(a,b,c,d)};
Rh=function(){return Date.now()-Aba};
Bba=function(){var a=uh.getInstance().C,b=0<=Sh?Rh()-Sh:-1,c=Th?Rh()-Uh:-1,d=0<=Vh?Rh()-Vh:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Qh(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
Wh=function(a,b,c){var d=new gg(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
Xh=function(a,b,c,d,e,f,h,l){this.D=a;this.K=b;this.C=c;this.G=d;this.u=e;this.F=f;this.B=h;this.N=l};
Yh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,ag(a)&&(c=a,b=d);return{kf:c,level:b}};
Zh=function(a){var b=a!==a.top,c=a.top===Yh(a).kf,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),Nb(Cba,function(h){return"function"===typeof f[h]})||(e=1));
return{sh:f,compatibility:e,CQ:d}};
Dba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
$h=function(a,b,c,d){var e=void 0===e?!1:e;c=Mh(d,c,void 0);Uf(a,b,c,{capture:e})};
ai=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
bi=function(a){return new gg(a.top,a.right,a.bottom,a.left)};
ci=function(a){var b=a.top||0,c=a.left||0;return new gg(b,c+(a.width||0),b+(a.height||0),c)};
di=function(a){return null!=a&&0<=a&&1>=a};
Eba=function(){var a=g.Vc;return a?ei("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Ac(a,b)})||Ac(a,"OMI/")&&!Ac(a,"XiaoMi/")?!0:Ac(a,"Presto")&&Ac(a,"Linux")&&!Ac(a,"X11")&&!Ac(a,"Android")&&!Ac(a,"Mobi"):!1};
fi=function(){this.C=!ag(Zg.top);this.isMobileDevice=Zf()||$f();var a=bh();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.yd(a[a.length-1].url)||"":"";this.u=new gg(0,0,0,0);this.D=new g.he(0,0);this.F=new g.he(0,0);this.K=new gg(0,0,0,0);this.G=0;this.N=!1;this.B=!(!Zg||!Zh(Zg).sh);this.update(Zg)};
gi=function(a,b){b&&b.screen&&(a.D=new g.he(b.screen.width,b.screen.height))};
hi=function(a,b){var c=a.u?new g.he(a.u.le(),a.u.getHeight()):new g.he(0,0);var d=b;d=void 0===d?Zg:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.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,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.he(f,e)}catch(x){w=new g.he(-12245933,-12245933)}a.F=w};
ii=function(){var a=fi.getInstance();if(0<a.G||a.N)return!0;a=mh().B.isVisible();var b=0===$g(Ig);return a||b};
ji=function(a){this.C=a;this.B=0;this.u=null};
ki=function(a,b,c){this.kf=a;this.ha=void 0===c?"na":c;this.D=[];this.Gd=!1;this.C=new Wh(-1,!0,this);this.u=this;this.K=b;this.P=this.da=this.N=!1;this.Y="uk";this.Rd=!1;this.F=!0};
mi=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.Y=b,a.K=0,a.u!=a||li(a)};
ni=function(a,b){g.nb(a.D,b)||(a.D.push(b),b.Wm(a.u),b.nk(a.C),b.Fi()&&(a.N=!0))};
oi=function(a){a=a.u;a.WC();a.VC();var b=fi.getInstance();b.K=Lg(!1,a.kf,b.isMobileDevice);a.PJ();a.C.u=a.CB()};
pi=function(a){a.N=a.D.length?ei(a.D,function(b){return b.Fi()}):!1};
qi=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.nk(a.C)})};
li=function(a){var b=g.ub(a.D);g.Fb(b,function(c){c.Wm(a.u)});
a.u!=a||qi(a)};
ri=function(a,b,c,d){this.element=a;this.u=new gg(0,0,0,0);this.V=null;this.D=new gg(0,0,0,0);this.B=b;this.ub=c;this.X=d;this.Rd=!1;this.timestamp=-1;this.K=new Xh(b.C,this.element,this.u,new gg(0,0,0,0),0,0,Rh(),0)};
si=function(a){this.Rd=!1;this.u=a;this.D=g.Oa};
ti=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.u=null==b?"":b};
Fba=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Gba=function(a,b){return new ti(a.B,a.u,a.C+b)};
ui=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.u<typeof b.u?!0:typeof a.u>typeof b.u?!1:a.u<b.u};
vi=function(){this.C=0;this.u=[];this.B=!1};
Hba=function(a,b){(0,g.Fb)(b.u,function(c){a.add(c.B,c.u,Fba(c))})};
wi=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;bg(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
xi=function(a){var b=Iba;a.B&&(g.Cb(a.u,function(c,d){return ui(d,c)?1:ui(c,d)?-1:0}),a.B=!1);
return(0,g.kh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Iba=function(a){var b=a.B;a=a.u;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.nb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
zi=function(a){var b=void 0===b?!0:b;this.u=new vi;void 0!==a&&Hba(this.u,a);b&&this.u.add("v",yi,-16)};
Jba=function(a){var b=[],c=[];g.Ib(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
Ai=function(){if(yi&&"unreleased"!==yi)return yi};
Bi=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ai();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);nh(a)};
Ci=function(){this.u=0};
Kba=function(a,b,c){(0,g.Fb)(a.C,function(d){var e=a.u;if(!d.u&&(d.C(b,c),d.D())){d.u=!0;var f=d.B(),h=new vi;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=Ci.getInstance();h.add("i",d.u++);h.add("adk",e);wi(h,f);e=new zi(h);Bi(e)}})};
Di=function(){this.B=this.C=this.D=this.u=0};
Ei=function(a){this.B=a=void 0===a?Lba:a;this.u=g.Pc(this.B,function(){return new Di})};
Li=function(a,b){return Fi(a,function(c){return c.u},void 0===b?!0:b)};
Ni=function(a,b){return Mi(a,b,function(c){return c.u})};
Oi=function(a,b){return Fi(a,function(c){return c.C},void 0===b?!0:b)};
Pi=function(a,b){return Mi(a,b,function(c){return c.C})};
Qi=function(a,b){return Mi(a,b,function(c){return c.B})};
Ri=function(a){g.Fb(a.u,function(b){b.B=0})};
Fi=function(a,b,c){a=g.Pc(a.u,function(d){return b(d)});
return c?a:Mba(a)};
Mi=function(a,b,c){var d=g.kb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Mba=function(a){return g.Pc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Si=function(){this.B=new Ei;this.ka=new Di;this.X=this.K=-1;this.za=1E3;this.Ga=new Ei([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ea=this.Y=-1};
Ti=function(a,b){return Oi(a.B,void 0===b?!0:b)};
Vi=function(a,b){var c=Ui(b);return 0===c?0:Ui(a)/c};
Ui=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Nba=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.Le(a)||a){var d=le(a),e=d&&Be(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Oba=function(a,b,c){if(!a||!b)return!1;b=hg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Jg();ag(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Dba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=le(c))&&b.defaultView&&b.defaultView.frameElement)&&Nba(b,a);d=a===c;a=!d&&a&&Re(a,function(e){return e===c});
return!(b||d||a)};
Pba=function(a,b,c,d){return fi.getInstance().C?!1:0>=a.le()||0>=a.getHeight()?!0:c&&d?Oh(208,function(){return Oba(a,b,c)}):!1};
Wi=function(a,b,c){g.B.call(this);this.position=Qba.clone();this.Xs=this.Xr();this.kx=-2;this.QQ=Date.now();this.bG=-1;this.lastUpdateTime=b;this.Ls=null;this.Ar=!1;this.Kt=null;this.opacity=-1;this.requestSource=c;this.nG=this.lx=g.Oa;this.Gf=new lba;this.Gf.xk=a;this.Gf.u=a;this.fn=!1;this.pl={Ix:null,Gx:null};this.NF=!0;this.wq=null;this.Zm=this.AJ=!1;uh.getInstance().G++;this.pe=this.nw();this.aG=-1;this.qc=null;this.xJ=!1;a=this.ub=new Rg;Sg(a,"od",Rba);Sg(a,"opac",th).u=!0;Sg(a,"sbeos",th).u=
!0;Sg(a,"prf",th).u=!0;Sg(a,"mwt",th).u=!0;Sg(a,"iogeo",th);Sg(a,"postrxl",th).u=!0;(a=this.Gf.xk)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Sba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+td()):a.getAttribute("data-"+td()))&&(fi.getInstance().B=!0);1==this.requestSource?Tg(this.ub,"od",1):Tg(this.ub,"od",0)};
Xi=function(a,b){if(b!=a.Zm){a.Zm=b;var c=fi.getInstance();b?c.G++:0<c.G&&c.G--}};
Yi=function(a,b){if(a.qc){if(b.getName()===a.qc.getName())return;a.qc.dispose();a.qc=null}var c=b.create(a.Gf.u,a.ub,a.Fi());if(c=null!=c&&c.rx()?c:null)a.qc=c};
Zi=function(a,b,c){if(!a.Ls||-1==a.lastUpdateTime||-1===b.B||-1===a.Ls.B)return 0;a=b.B-a.Ls.B;return a>c?0:a};
Tba=function(a,b,c){if(a.qc){a.qc.Vj();var d=a.qc.K,e=d.D,f=e.u;if(null!=d.G){var h=d.C;a.Kt=new g.fe(h.left-f.left,h.top-f.top)}f=a.ku()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.wB(d);a.Ls=d;a.na(f,b,c,!1,h,e,d.N)}};
Uba=function(a){if(a.Ar&&a.wq){var b=1==Ug(a.ub,"od"),c=fi.getInstance().u,d=a.wq,e=a.qc?a.qc.getName():"ns",f=new g.he(c.le(),c.getHeight());c=a.ku();a={GQ:e,Kt:a.Kt,kR:f,ku:c,kc:a.pe.kc,iR:b};if(b=d.B){b.Vj();e=b.K;f=e.D.u;var h=null,l=null;null!=e.G&&f&&(h=e.C,h=new g.fe(h.left-f.left,h.top-f.top),l=new g.he(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={GQ:b.getName(),Kt:h,kR:l,ku:c,iR:!1,kc:e}}else c=null;c&&Kba(d,a,c)}};
Vba=function(a,b,c){b&&(a.lx=b);c&&(a.nG=c)};
$i=function(){};
bj=function(a){if(a instanceof $i)return a;if("function"==typeof a.Ri)return a.Ri(!1);if(g.Ra(a)){var b=0,c=new $i;c.next=function(){for(;;){if(b>=a.length)throw aj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.cj=function(a,b,c){if(g.Ra(a))try{g.Fb(a,b,c)}catch(d){if(d!==aj)throw d;}else{a=bj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==aj)throw d;}}};
Wba=function(a){if(g.Ra(a))return g.ub(a);a=bj(a);var b=[];g.cj(a,function(c){b.push(c)});
return b};
Xba=function(){this.D=this.u=this.C=this.B=this.F=0};
Yba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b};
dj=function(){Mg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
ej=function(a){return di(a.volume)&&.1<=a.volume};
Zba=function(){var a={};this.B=(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.u={};for(var b in this.B)0<this.B[b][1]&&(this.u[b]=0);this.C=0};
fj=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.u[b]&&(a.u[b]=1)};
$ba=function(a){var b=g.Qb(a.B),c=0,d;for(d in a.u)g.nb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
aca=function(a){var b=0,c;for(c in a.u){var d=a.u[c];if(1==d||2==d)b+=a.B[c][1]}return b};
gj=function(){this.u=this.B=0};
hj=function(){Si.call(this);this.C=new Di;this.ha=this.P=this.ba=0;this.N=-1;this.Ka=new Di;this.F=new Di;this.u=new Ei;this.G=this.D=-1;this.V=new Di;this.za=2E3;this.da=new gj;this.Aa=new gj;this.ra=new gj};
ij=function(a,b,c){var d=a.ha;Th||c||-1==a.N||(d+=b-a.N);return d};
bca=function(){this.u=!1};
kj=function(a,b){if(!a.u){if(a.C(b)){var c=jj(a.N,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
lj=function(a,b){this.u=!1;this.D=a;this.N=b;this.B=0};
mj=function(a,b,c,d){ri.call(this,a,b,c,d)};
nj=function(a,b,c){ri.call(this,null,a,b,c);this.G=a.isActive();this.F=0};
oj=function(a){return[a.top,a.left,a.bottom,a.right]};
pj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Wi.call(this,b,c,d);this.Kv=0;this.se={};this.je=new Zba;this.CG={};this.Qe="";this.Dn=null;this.Qa=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.ka=this.P=void 0;this.X=this.V=0;this.da=-1;this.Ga=this.za=!1;this.ea=this.N=this.B=this.bo=this.Ka=0;new Ei;this.ha=this.ra=0;this.Aa=-1;this.Ud=0;this.Y=g.Oa;this.ba=[this.Xr()];this.Ra=2;this.rm={};this.rm.pause="p";this.rm.resume="r";this.rm.skip="s";this.rm.mute="m";this.rm.unmute=
"um";this.rm.exitfullscreen="ef";this.G=null;this.tF=!1};
qj=function(a){0!=a.Ud&&(a.Ud=3)};
rj=function(a){!a.fn&&a.C&&0!=a.Ud&&(Ug(uh.getInstance().ub,"mpv")?a.tF&&a.qc&&2===a.qc.gi()&&kj(a.C,a):kj(a.C,a))};
sj=function(a){return void 0===a?a:Number(a)?ai(a,3):0};
tj=function(a,b){var c;null!=b&&b<a.ba.length?c=b:c=a.ba.length-1;return a.ba[c]};
uj=function(a){var b=!!Ug(uh.getInstance().ub,"umt");return a.P||!b&&!a.ka?0:1};
cca=function(a,b){if(2==a.Ud)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.D/3)?0:c);var d=a.Y(a)||{};d=void 0!==d.currentTime?d.currentTime:a.V;var e=d-a.V,f=0;0<=e?(a.X+=c,a.ha+=Math.max(c-e,0),f=Math.min(e,a.X)):a.ra+=Math.abs(e);0!=e&&(a.X=0);-1==a.Aa&&0<e&&(a.Aa=0<=Vh?Rh()-Vh:-1);a.V=d;return f};
dca=function(a,b){ei(a.K,function(c){return c.D==b.D})||a.K.push(b)};
vj=function(a,b,c){return 15E3<=b?!0:a.za?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.da?b>=a.da:!1:!1};
eca=function(a){var b=ai(a.pe.kc,2),c=a.je.C,d=a.pe,e=tj(a),f=sj(e.D),h=sj(e.G),l=sj(d.volume),m=ai(e.K,2),n=ai(e.X,2),p=ai(d.kc,2),r=ai(e.Y,2),t=ai(e.ea,2);d=ai(d.Sf,2);a=a.hk().clone();a.round();e=Ti(e,!1);return{jR:b,kp:c,Ys:f,Us:h,vo:l,Zs:m,Vs:n,kc:p,ct:r,Ws:t,Sf:d,position:a,It:e}};
xj=function(a,b){wj(a.u,b,function(){return{jR:0,kp:void 0,Ys:-1,Us:-1,vo:-1,Zs:-1,Vs:-1,kc:-1,ct:-1,Ws:-1,Sf:-1,position:void 0,It:[]}});
a.u[b]=eca(a)};
wj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Aj=function(a,b,c){var d=a.CG[b];if(null!=d)return d;d=fca(a,b);var e=Ub(yj,function(f){return f==b});
a=zj(a,d,d,c,gca[yj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Bj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
zj=function(a,b,c,d,e){if(a.fn)return{"if":0};var f=a.hk().clone();f.round();var h=fi.getInstance(),l=uh.getInstance(),m=a.If(),n=a.qc?a.qc.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.QQ;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.qc?a.qc.V:null)f=f.clone(),f.round(),p.cp=oj(f);p.tos=Li(m.B,!1);p.mtos=Ti(m);p.mcvt=m.ka.C;p.ps=void 0;p.vht=ij(m,Rh(),2==a.Ud);p.mut=m.Ka.C;p.a=sj(a.pe.volume);p.mv=sj(m.G);p.fs=a.Zm?1:0;p.ft=m.V.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Li(m.u);p.ssb=
Li(m.Ga,!1);p.amtos=Oi(m.u);p.uac=a.Ka;p.vpt=m.C.u;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=vj(a,m.C.u,!0)?1:0;p.efpf=a.Ra;if("gsv"==n||"nis"==n)n=a.qc,0<n.F&&(p.nnut=n.F);p.tcm=uj(a);p.nmt=a.ra;p.bt=a.ha;p.pst=a.Aa;p.vpaid=a.P;p.dur=a.D;p.vmtime=a.V;p.is=a.je.C;1<=a.u.length&&(p.i0=a.u[0].kp,p.a0=[a.u[0].vo],p.c0=[a.u[0].kc],p.ss0=[a.u[0].Sf],n=a.u[0].position,p.p0=n?oj(n):void 0);2<=a.u.length&&(p.i1=a.u[1].kp,p.a1=Bj(a.u[1].Ys,a.u[1].vo,a.u[1].Us),p.c1=Bj(a.u[1].Zs,a.u[1].kc,a.u[1].Vs),
p.ss1=Bj(a.u[1].ct,a.u[1].Sf,a.u[1].Ws),n=a.u[1].position,p.p1=n?oj(n):void 0,p.mtos1=a.u[1].It);3<=a.u.length&&(p.i2=a.u[2].kp,p.a2=Bj(a.u[2].Ys,a.u[2].vo,a.u[2].Us),p.c2=Bj(a.u[2].Zs,a.u[2].kc,a.u[2].Vs),p.ss2=Bj(a.u[2].ct,a.u[2].Sf,a.u[2].Ws),n=a.u[2].position,p.p2=n?oj(n):void 0,p.mtos2=a.u[2].It);4<=a.u.length&&(p.i3=a.u[3].kp,p.a3=Bj(a.u[3].Ys,a.u[3].vo,a.u[3].Us),p.c3=Bj(a.u[3].Zs,a.u[3].kc,a.u[3].Vs),p.ss3=Bj(a.u[3].ct,a.u[3].Sf,a.u[3].Ws),n=a.u[3].position,p.p3=n?oj(n):void 0,p.mtos3=a.u[3].It);
p.cs=aca(a.je);b&&(p.ic=$ba(a.je),p.dvpt=m.C.B,p.dvs=Qi(m.B,.5),p.dfvs=Qi(m.B,1),p.davs=Qi(m.u,.5),p.dafvs=Qi(m.u,1),c&&(m.C.B=0,Ri(m.B),Ri(m.u)),a.Ml()&&(p.dtos=m.ba,p.dav=m.P,p.dtoss=a.Kv+1,c&&(m.ba=0,m.P=0,a.Kv++)),p.dat=m.F.B,p.dft=m.V.B,c&&(m.F.B=0,m.V.B=0));p.ps=[h.F.width,h.F.height];p.bs=[h.u.le(),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.bo&&(p.vds=a.bo);if(0<a.K.length||a.C)b=g.ub(a.K),a.C&&b.push(a.C),p.pings=g.Pc(b,function(r){return r.toString()});
b=g.Pc(g.Ke(a.K,function(r){return r.F()}),function(r){return r.getId()});
paa(b);p.ces=b;a.B&&(p.vmer=a.B);a.N&&(p.vmmk=a.N);a.ea&&(p.vmiec=a.ea);p.avms=a.qc?a.qc.getName():"ns";a.qc&&g.bc(p,a.qc.ek());d?(p.c=ai(a.pe.kc,2),p.ss=ai(a.pe.Sf,2)):p.tth=Rh()-Cj;p.mc=ai(m.X,2);p.nc=ai(m.K,2);p.mv=sj(m.G);p.nv=sj(m.D);p.lte=ai(a.kx,2);d=tj(a,e);Ti(m);p.qmtos=Ti(d);p.qnc=ai(d.K,2);p.qmv=sj(d.G);p.qnv=sj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.Qe;p.avms||(p.avms="geo");p.psm=m.da.u;p.psv=m.da.getValue();p.psfv=m.Aa.getValue();p.psa=m.ra.getValue();l=kba(l.ub);l.length&&(p.veid=l);a.G&&g.bc(p,
Yba(a.G));return p};
fca=function(a,b){if(g.nb(hca,b))return!0;var c=a.se[b];return void 0!==c?(a.se[b]=!0,!c):!1};
jca=function(){this.u={};var a=Be();Dj(this,a,document);var b=ica();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Dj(this,c,c.document);Dj(this,a.top,a.top.document)}}catch(d){}};
ica=function(){var a=document.documentElement;try{if(!ag(Be().top))return"2";var b=[],c=Be(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"}};
Dj=function(a,b,c){$h(c,"mousedown",function(){return kca(a)},301);
$h(b,"scroll",function(){return lca(a)},302);
$h(c,"touchmove",function(){return mca(a)},303);
$h(c,"mousemove",function(){return nca(a)},304);
$h(c,"keydown",function(){return oca(a)},305)};
kca=function(a){g.Ib(a.u,function(b){1E5<b.C||++b.C})};
lca=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
mca=function(a){g.Ib(a.u,function(b){1E5<b.u||++b.u})};
oca=function(a){g.Ib(a.u,function(b){1E5<b.B||++b.B})};
nca=function(a){g.Ib(a.u,function(b){1E5<b.D||++b.D})};
g.Fj=function(a){var b=[];Ej(new pca,a,b);return b.join("")};
pca=function(){};
Ej=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),Ej(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),Gj(d,c),c.push(":"),Ej(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Gj(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);}}};
Gj=function(a,b){b.push('"',a.replace(qca,function(c){var d=Hj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Hj[c]=d);return d}),'"')};
Ij=function(){this.u=[];this.B=[]};
Jj=function(a,b){return g.jb(a.u,function(c){return c.Qe==b})};
Kj=function(a,b){return b?g.jb(a.u,function(c){return c.Gf.xk==b}):null};
rca=function(a,b){return g.jb(a.B,function(c){return 2==c.di()&&c.Qe==b})};
Mj=function(){var a=Lj;return 0==a.u.length?a.B:0==a.B.length?a.u:g.tb(a.B,a.u)};
Nj=function(a,b){var c=1==b.di()?a.u:a.B,d=ib(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.qc&&b.qc.Bp(),b.dispose(),!0):!1};
sca=function(a){var b=Lj;if(Nj(b,a)){switch(a.di()){case 0:var c=function(){return null};
case 2:c=function(){return rca(b,a.Qe)};
break;case 1:c=function(){return Jj(b,a.Qe)}}for(var d=c();d;d=c())Nj(b,d)}};
tca=function(a,b){var c=Lj,d=g.Ke(a,(void 0===b?0:b)?function(e){return!Jj(c,e.Qe)}:function(e){return!Kj(c,e.Gf.xk)});
c.u.push.apply(c.u,g.la(d))};
Oj=function(a){var b=Lj,c=[];g.Fb(a,function(d){ei(b.u,function(e){return e.Gf.xk===d.Gf.xk&&e.Qe===d.Qe})||(b.u.push(d),c.push(d))})};
Pj=function(){this.u=this.B=null};
Qj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.jb(a.B,function(d){return null!=d&&d.JC()});
a.u&&(a.u.init(c)?oi(a.u.u):b(a.u.u.Rm(),a.u));return null!=a.u};
Rj=function(a){a=uca(a);si.call(this,a.length?a[a.length-1]:new ki(Zg,0));this.C=a;this.B=null};
uca=function(a){if(!a.length)return[];a=(0,g.Ke)(a,function(c){return null!=c&&c.XC()});
for(var b=1;b<a.length;b++)ni(a[b-1],a[b]);return a};
Sj=function(a,b,c,d){ri.call(this,a,b,c,d);this.P=this.N=this.F=this.G=this.C=null};
Tj=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
wca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.kf,d=uh.getInstance().u.u;a.C=new c.IntersectionObserver(rh(d,function(e){return Uj(a,e)}),vca);
d=rh(d,function(){a.C.unobserve(b);a.C.observe(b);Uj(a,Tj(a))});
c.ResizeObserver?(a.G=new c.ResizeObserver(d),a.G.observe(b)):c.MutationObserver&&(a.F=new g.v.MutationObserver(d),a.F.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);Uj(a,Tj(a));return!0};
Uj=function(a,b){try{if(b.length){a.N||(a.N=Rh());var c=xca(b),d=Ag(a.element,a.B.u.kf),e=d.x,f=d.y;a.u=new gg(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=bi(c.intersectionRect);a.D=hg(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.Bp(),Qh(299,l)}};
xca=function(a){return(0,g.kh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
Vj=function(){var a=/Chrome\/(\d+)/.exec(g.Vc);return a?parseFloat(a[1]):NaN};
Wj=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Vc);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("."))};
Yj=function(){return Xj("android")&&Xj("chrome")&&!(Xj("trident/")||Xj("edge/"))&&!Xj("cobalt")};
Zj=function(){return Xj("armv7")||Xj("aarch64")||Xj("android")};
g.ak=function(){return Xj("cobalt")};
bk=function(){return Xj("cobalt")&&Xj("appletv")};
ck=function(){return Xj("(ps3; leanback shell)")||Xj("ps3")&&g.ak()};
dk=function(){return Xj("(ps4; leanback shell)")||Xj("ps4")&&g.ak()};
g.ek=function(){return g.ak()&&(Xj("ps4 vr")||Xj("ps4 pro vr"))};
gk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&600<=parseInt(a[1],10))};
hk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&602<=parseInt(a[1],10))};
ik=function(){return Xj("iemobile")||Xj("windows phone")&&Xj("edge")};
kk=function(){return jk&&Xj("applewebkit")&&!Xj("version")&&(!Xj("safari")||Xj("gsa/"))};
mk=function(){return g.lk&&Xj("version/")};
nk=function(){return Xj("smart-tv")&&Xj("samsung")};
Xj=function(a){var b=g.Vc;return b?0<=b.toLowerCase().indexOf(a):!1};
ok=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
qk=function(){var a=pk();ki.call(this,Zg.top,a,"geo")};
pk=function(){uh.getInstance();var a=fi.getInstance();return a.C||a.B?0:2};
rk=function(){};
sk=function(){this.done=!1;this.u={BH:0,Yz:0,o4:0,TA:0,Lw:-1,WH:0,VH:0,XH:0};this.F=null;this.G=!1;this.B=null;this.K=0;this.C=new ji(this)};
uk=function(){var a=tk;a.G||(a.G=!0,yca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.la(c))}),a.D())};
zca=function(){rk.getInstance();var a=Pj.getInstance();null!=a.u&&a.u.u?oi(a.u.u):fi.getInstance().update(Zg)};
vk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{zca();var d=Rh(),e=uh.getInstance();e.F=d;if(null!=Pj.getInstance().u)for(e=0;e<b.length;e++)Tba(b[e],d,c);else vh(Dh,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Uba(b[d]);++a.u.TA;Aca()}finally{c?g.Fb(b,function(f){f.pe.kc=0}):a.C.schedule()}}};
yca=function(a,b){if(!a.F){var c=Mh(142,b,void 0);mh();var d;Ig.visibilityState?d="visibilitychange":Ig.mozVisibilityState?d="mozvisibilitychange":Ig.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Uf(Ig,d,c,{capture:!1})&&(a.F=c)}};
wk=function(){var a=Pj.getInstance();if(null!=a.u){var b=a.u;g.Fb(Mj(),function(c){return Yi(c,b)})}};
Aca=function(){var a=uh.getInstance();Ug(a.ub,"llp")};
xk=function(a,b){var c=a.K;Th&&(c+=b-Uh);return c};
Bca=function(a){var b=tk;a=void 0===a?function(){return{}}:a;
Lh.D="av-js";Dh.u=.01;zba([function(c){var d=uh.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=Vg(d.ub);if(!b.B){var f=Zg.document,h=0<=Sh?Rh()-Sh:-1,l=Rh();-1==b.u.Lw&&(h=l);var m=fi.getInstance(),n=uh.getInstance(),p=Vg(n.ub),r=Mj();try{if(0<r.length){var t=m.u;t&&(p.bs=[t.le(),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);Zg.screen&&(p.scs=[Zg.screen.width,Zg.screen.height])}else p.url=encodeURIComponent(Zg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Sh;p.bin=n.B;void 0!==Zg.google_osd_load_pub_page_exp&&(p.olpp=Zg.google_osd_load_pub_page_exp);p.deb=[1,b.u.BH,b.u.Yz,b.u.TA,b.u.Lw,0,b.C.B,b.u.WH,b.u.VH,b.u.XH].join("-");p.tvt=xk(b,l);m.B&&(p.inapp=1);if(null!==Zg&&Zg!=Zg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Zg.location.href.substring(0,512)));var x=m.K;p.is=[x.le(),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Zb(b.B);w=uh.getInstance().u;1==Ug(w.C,"prf")?(x=new qh,f=w.u,h=0,-1<f.u&&(h=f.D.u.now()-f.u),x=Kf(x,1,
f.C+h),f=w.u,x=Kf(x,5,-1<f.u?f.B+1:f.B),x=Kf(x,2,w.B.u.C()),x=Kf(x,3,w.B.u.B()),x=Kf(x,4,w.B.u.u()),w={},f=new g.uf,h=g.Hf(x,1),h=null==h?h:+h,h=null==h?0:h,0!==h&&g.Af(f,1,h),h=If(x,2),0!==h&&g.zf(f,2,h),h=If(x,3),0!==h&&g.zf(f,3,h),h=If(x,4),0!==h&&g.zf(f,4,h),h=If(x,5),0!==h&&g.wf(f,5,h),x=g.vf(f),w=(w.pf=g.qf(x),w)):w={};g.bc(t,w);g.bc(c,e,d,t,a());if(e=Ai())d={},g.bc(c,(d.v=encodeURIComponent(e),d))}])};
Cca=function(){var a=yk||Zg;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("&")};
zk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Bk=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?Ak(c,a):c}}};
Ck=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Ak(f,b,c)}};
Dk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Ek=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}};
Ak=function(a,b,c){return void 0===c||c?g.Ke(a,function(d,e){return g.nb(b,e)}):g.Pc(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Hk=function(a,b){var c={sv:"881",cb:"j"};c.nas=Lj.u.length;c.msg=a;if(void 0!==b){var d=Fk(b);d&&(c.e=Gk[d])}return c};
Ik=function(a){return pc(a,"custom_metric_viewable")};
Fk=function(a){var b=Ik(a)?"custom_metric_viewable":a.toLowerCase();return Ub(yj,function(c){return c==b})};
Dca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Fca=function(a){try{var b=a.split(",");return b.length>g.Qb(Eca).length?null:(0,g.kh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Jk[e[0]]||!Jk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Gca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Pi(b.u,a.u):Pi(b.B,a.u);case "tos":return a.B?Ni(b.u,a.u):Ni(b.B,a.u)}return 0};
Kk=function(a,b,c,d){lj.call(this,b,d);this.K=a;this.G=c};
Lk=function(a){lj.call(this,"fully_viewable_audible_half_duration_impression",a)};
Mk=function(a,b){lj.call(this,a,b)};
Nk=function(){this.B=this.D=this.G=this.F=this.C=this.u=""};
Hca=function(){};
Ok=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.bc(f,a);void 0!==c&&g.bc(f,c);a=xi(wi(new vi,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Pk=function(){};
Qk=function(a,b,c){nj.call(this,a,b,c)};
Rk=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
Sk=function(a,b,c){nj.call(this,a,b,c)};
Tk=function(a){a=void 0===a?Zg:a;si.call(this,new ki(a,2))};
Uk=function(){ki.call(this,Zg,2,"mraid");this.ba=0;this.V=this.X=!1;this.G=null;this.B=Zh(this.kf);this.C.u=new gg(0,0,0,0);this.ea=!1};
Vk=function(a,b,c){a.Mk("addEventListener",b,c)};
Yk=function(a){uh.getInstance().D=!!a.Mk("isViewable");Vk(a,"viewableChange",Ica);"loading"===a.Mk("getState")?Vk(a,"ready",Wk):Xk(a)};
Xk=function(a){"string"===typeof a.B.sh.AFMA_LIDAR?(a.X=!0,Jca(a)):(a.B.compatibility=3,a.G="nc",mi(a,"w"))};
Jca=function(a){a.V=!1;var b=1==Ug(uh.getInstance().ub,"rmmt"),c=!!a.Mk("isViewable");(b?!c:1)&&mh().setTimeout(Ph(524,function(){a.V||(Zk(a),Qh(540,Error()),a.G="mt",mi(a,"w"))}),500);
Kca(a);Vk(a,a.B.sh.AFMA_LIDAR,$k)};
Kca=function(a){var b=1==Ug(uh.getInstance().ub,"sneio"),c=void 0!==a.B.sh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.sh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.sh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.sh.AFMA_LIDAR_EXP_1=!b)};
Zk=function(a){a.Mk("removeEventListener",a.B.sh.AFMA_LIDAR,$k);a.X=!1};
al=function(a,b){if("loading"===a.Mk("getState"))return new g.he(-1,-1);var c=a.Mk(b);if(!c)return new g.he(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.he(-1,-1):new g.he(d,c)};
Wk=function(){try{var a=Uk.getInstance();a.Mk("removeEventListener","ready",Wk);Xk(a)}catch(b){Qh(541,b)}};
$k=function(a,b){try{var c=Uk.getInstance();c.V=!0;var d=a?new gg(a.y,a.x+a.width,a.y+a.height,a.x):new gg(0,0,0,0);var e=Rh(),f=ii();var h=new Wh(e,f,c);h.u=d;h.volume=b;c.nk(h)}catch(l){Qh(542,l)}};
Ica=function(a){var b=uh.getInstance(),c=Uk.getInstance();a&&!b.D&&(b.D=!0,c.ea=!0,c.G&&mi(c,"w",!0))};
bl=function(){this.Gd=!1;this.u=null;this.C=new Pk;this.B=null;var a={};this.K=(a.start=this.mJ,a.firstquartile=this.hJ,a.midpoint=this.jJ,a.thirdquartile=this.nJ,a.complete=this.fJ,a.pause=this.Tx,a.resume=this.EF,a.skip=this.lJ,a.viewable_impression=this.ik,a.mute=this.Yn,a.unmute=this.Yn,a.fullscreen=this.iJ,a.exitfullscreen=this.gJ,a.fully_viewable_audible_half_duration_impression=this.ik,a.measurable_impression=this.ik,a.abandon=this.Tx,a.engagedview=this.ik,a.impression=this.ik,a.creativeview=
this.ik,a.progress=this.Yn,a.custom_metric_viewable=this.ik,a.bufferstart=this.Tx,a.bufferfinish=this.EF,a);a={};this.V=(a.overlay_resize=this.kJ,a.abandon=this.Fw,a.close=this.Fw,a.collapse=this.Fw,a.overlay_unmeasurable_impression=function(b){return Aj(b,"overlay_unmeasurable_impression",ii())},a.overlay_viewable_immediate_impression=function(b){return Aj(b,"overlay_viewable_immediate_impression",ii())},a.overlay_unviewable_impression=function(b){return Aj(b,"overlay_unviewable_impression",ii())},
a.overlay_viewable_end_of_session_impression=function(b){return Aj(b,"overlay_viewable_end_of_session_impression",ii())},a);
uh.getInstance().B=3;Lca(this);this.P=this.D=!1};
cl=function(a,b,c,d){b=a.bq(null,d,!0,b);b.F=c;tca([b],a.D);return b};
Mca=function(a,b,c){iba(b);var d=a.B;g.Fb(b,function(e){var f=g.Pc(e.u,function(h){var l=Fca(h);if(null==l)h=null;else if(h=new Dca,null!=l.visible&&(h.u=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=qc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.C=l,h.D=-1):(h.C=-1,h.D=l);h.F=void 0===m?"tos":m}return h});
ei(f,function(h){return null==h})||dca(c,new Kk(e.id,e.event,f,d))})};
Nca=function(a){a=a.B;return[new Mk("viewable_impression",a),new Lk(a)]};
Oca=function(){var a=[];fi.getInstance();var b=uh.getInstance();Ug(b.ub,"dov");a.push(qk.getInstance());Ug(b.ub,"mvp_lv")&&a.push(Uk.getInstance());b=[new Rk,new Tk];b.push(new Rj(a));b.push(new ok(Zg));return b};
Pca=function(a){if(!a.Gd){a.Gd=!0;try{var b=Rh(),c=uh.getInstance(),d=fi.getInstance();Sh=b;c.C=79463069;"o"!==a.u&&(yk=Yh(Zg).kf);if(sba()){tk.u.Yz=0;tk.u.Lw=Rh()-b;var e=Oca(),f=Pj.getInstance();f.B=e;Qj(f,function(){dl(a)})?tk.done||(wk(),ni(f.u.u,a),uk()):d.C?dl(a):uk()}else el=!0}catch(h){throw Lj.reset(),h;
}}};
gl=function(a){tk.C.cancel();fl=a;tk.done=!0};
hl=function(a){if(a.u)return a.u;var b=Pj.getInstance().u;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
il=function(a,b,c){if(null==a.B)return b.bo|=4,!1;a=jj(a.B,c,b);b.bo|=a;return 0==a};
Qca=function(){g.Fb(Lj.u,function(a){return rj(a)})};
dl=function(a){if(!a.P){a.P=!0;var b=[new ok(Zg)],c=Pj.getInstance();c.B=b;Qj(c,function(){gl("i")})?tk.done||(wk(),ni(c.u.u,a),uk()):gl("i")}};
jl=function(a,b,c){if(!b.Qa){var d=Aj(b,"start",ii());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="881v";Bd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Cca();Bd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+xi(wi(new vi,e));Bi(c);b.Qa=!0}};
kl=function(a,b,c){vk(tk,[a],!ii());xj(a,c);4!=c&&wj(a.ba,c,a.Xr);return Aj(a,b,ii())};
Lca=function(a){Bca(function(){var b=ll();null!=a.u&&(b.sdk=a.u);var c=Pj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Rca=function(a,b,c,d){if(a.D)var e=Jj(Lj,b);else e=Kj(Lj,c),null!==e&&e.Qe!==b&&(a.Ho(e),e=null);e||(b=a.bq(c,Rh(),!1,b),0==Lj.B.length&&(uh.getInstance().C=79463069),Oj([b]),e=b,e.F=hl(a),d&&(e.Dn=d));return e};
Sca=function(a,b){b.N=0;for(var c in ml)null==a[c]&&(b.N|=ml[c]);nl(a,"currentTime");nl(a,"duration")};
Tca=function(a){g.Fb(Lj.u,function(b){3==b.Ud&&a.Ho(b)})};
nl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
ll=function(){var a=fi.getInstance(),b={};return b.sv="881",b["if"]=a.C?"1":"0",b.nas=String(Lj.u.length),b};
ol=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
ql=function(a){return!!(1<<a&pl)};
Yca=function(){try{Uca()}catch(d){}var a="a=1&b="+pl+"&",b=[],c=99;g.Fb(Vca,function(d,e){var f=!1;try{f=d(Zg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Fb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Fb(Wca,function(d){var e="false";try{e=d(Zg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Fb(Xca,function(d){var e="";try{e=g.rf(d(Zg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Uca=function(){if(!rl){var a=function(){sl=!0;Zg.document.removeEventListener("webdriver-evaluate",a,!0)};
Zg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){tl=!0;Zg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Zg.document.addEventListener("webdriver-evaluate-response",b,!0);rl=!0}};
ul=function(){this.B=-1};
vl=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
wl=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.u[0];c=a.u[1];e=a.u[2];var f=a.u[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295};
xl=function(){this.B=null};
yl=function(a){return function(b){var c=new vl;c.update(b+a);return Uaa(c.digest()).slice(-8)}};
zl=function(a,b){this.B=a;this.C=b};
jj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="881",e.cb="j",e.e=Zca(b),e);var f=Aj(c,b,ii());g.bc(e,f);c.CG[b]=f;a=2==c.di()?Jba(e).join("&"):a.C.u(e).u;try{return d(c.Qe,a,b),0}catch(h){return 2}}else return 1};
Zca=function(a){var b=Ik(a)?"custom_metric_viewable":a;a=Ub(yj,function(c){return c==b});
return Gk[a]};
Al=function(a,b,c){zl.call(this,a,b);this.D=c};
Bl=function(){bl.call(this);this.G=null;this.F=!1;this.N={};this.C=new xl};
$ca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Mca(a,c,b)};
ada=function(a,b,c){var d=Jj(Lj,b);d||(d=c.opt_nativeTime||-1,d=cl(a,b,hl(a),d),c.opt_osdId&&(d.Dn=c.opt_osdId));return d};
bda=function(a,b,c){var d=Jj(Lj,b);d||(d=cl(a,b,"n",c.opt_nativeTime||-1));return d};
cda=function(a,b){var c=Jj(Lj,b);c||(c=cl(a,b,"h",-1));return c};
dda=function(a){uh.getInstance();switch(hl(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};
Dl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.bc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(Hk("ol",d));if(void 0!==d)if(void 0!==Fk(d))if(el)b=Hk("ue",d);else if(Pca(a),"i"==fl)b=Hk("i",d),b["if"]=0;else if(b=a.ds(b,e))if(a.D&&3==b.Ud)b="stopped";else{b:{"i"==fl&&(b.fn=!0,a.uy());c=e.opt_fullscreen;void 0!==c&&Xi(b,!!c);var f;if(c=!fi.getInstance().B)(c=Ac(g.Vc,"CrKey")||Ac(g.Vc,"PlayStation")||Ac(g.Vc,"Roku")||Eba()||Ac(g.Vc,"Xbox"))||(c=g.Vc,c=Ac(c,"AppleTV")||
Ac(c,"Apple TV")||Ac(c,"CFNetwork")||Ac(c,"tvOS")),c||(c=g.Vc,c=Ac(c,"sdk_google_atv_x86")||Ac(c,"Android TV")),c=!c;c&&(mh(),c=0===$g(Ig));if(f=c){switch(b.di()){case 1:jl(a,b,"pv");break;case 2:a.my(b)}gl("pv")}c=d.toLowerCase();if(f=!f)f=Ug(uh.getInstance().ub,"ssmol")&&"loaded"===c?!1:g.nb(eda,c);if(f&&0==b.Ud){"i"!=fl&&(tk.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Vh=f="number"===typeof f?f:Rh();b.Ar=!0;var h=ii();b.Ud=1;b.se={};b.se.start=!1;b.se.firstquartile=!1;b.se.midpoint=!1;b.se.thirdquartile=
!1;b.se.complete=!1;b.se.resume=!1;b.se.pause=!1;b.se.skip=!1;b.se.mute=!1;b.se.unmute=!1;b.se.viewable_impression=!1;b.se.measurable_impression=!1;b.se.fully_viewable_audible_half_duration_impression=!1;b.se.fullscreen=!1;b.se.exitfullscreen=!1;b.Kv=0;h||(b.If().N=f);vk(tk,[b],!h)}(f=b.rm[c])&&fj(b.je,f);g.nb(fda,c)&&(b.tF=!0,rj(b));switch(b.di()){case 1:var l=Ik(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.V[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Hk(void 0,c);g.bc(e,d);d=e;break b}d=
void 0}3==b.Ud&&(a.D?b.qc&&b.qc.Bp():a.Ho(b));b=d}else b=Hk("nf",d);else b=void 0;else el?b=Hk("ue"):(b=a.ds(b,e))?(d=Hk(),g.bc(d,zj(b,!0,!1,!1)),b=d):b=Hk("nf");return"string"===typeof b?a.D&&"stopped"===b?Cl:a.C.u(void 0):a.C.u(b)};
El=function(a){return uh.getInstance(),"h"!=hl(a)&&hl(a),!1};
Fl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.G,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b};
Gl=function(a,b,c){c=void 0===c?{}:c;a=Dl(Bl.getInstance(),b,c,a);return Fl(a)};
Hl=function(a,b){b=void 0===b?!1:b;var c=Bl.getInstance().ds(a,{});c?qj(c):b&&(c=Bl.getInstance().bq(null,Rh(),!1,a),c.Ud=3,Oj([c]))};
Il=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&&"moz-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==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};
gda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],D=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var H=D^x&(y^D);var N=1518500249}else H=x^y^D,N=1859775393;else 60>w?(H=x&y|D&(x|y),N=2400959708):(H=x^y^D,N=3395469782);H=((r<<5|r>>>27)&4294967295)+H+E+N+t[w]&4294967295;E=D;D=y;y=(x<<30|x>>>2)&4294967295;x=r;r=H}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+D&4294967295;e[4]=e[4]+E&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,dI:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
hda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Fb(d,function(l){e.push(l)}),Jl(e.join(" "));
var f=[],h=[];g.Fb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ob(f)?[c,b,a]:[f.join(":"),c,b,a];g.Fb(d,function(l){e.push(l)});
a=Jl(e.join(" "));a=[c,a];g.ob(h)||a.push(h.join(""));return a.join("_")};
Jl=function(a){var b=gda();b.update(a);return b.dI().toLowerCase()};
Kl=function(a){var b=Il(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Qf(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:")||0==b.indexOf("moz-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Qf(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,hda(Il(d),c,a||null)].join(" "):null}return null};
g.Ll=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Ml=function(a,b){g.Ll.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.B=null;a&&this.init(a,b)};
Ol=function(a){return!(!a||!a[Nl])};
jda=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.ts=e;this.key=++ida;this.Ln=this.gr=!1};
Pl=function(a){a.Ln=!0;a.listener=null;a.u=null;a.src=null;a.ts=null};
Ql=function(a){this.src=a;this.listeners={};this.u=0};
Rl=function(a,b){var c=b.type;c in a.listeners&&g.rb(a.listeners[c],b)&&(Pl(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Tl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ln&&f.listener==b&&f.capture==!!c&&f.ts==d)return e}return-1};
Vl=function(a,b,c,d,e){if(d&&d.once)return Ul(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Vl(a,b[f],c,d,e);return null}c=Wl(c);return Ol(a)?a.wa(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!1,d,e)};
Xl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Sa(e)?!!e.capture:!!e,l=Yl(a);l||(a[Zl]=l=new Ql(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=kda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)lda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($l(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");am++;return c};
kda=function(){var a=mda,b=bm?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};
Ul=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ul(a,b[f],c,d,e);return null}c=Wl(c);return Ol(a)?a.Ms(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!0,d,e)};
cm=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)cm(a,b[f],c,d,e);else d=g.Sa(d)?!!d.capture:!!d,c=Wl(c),Ol(a)?a.Eb(b,c,d,e):a&&(a=Yl(a))&&(b=a.Wo(b,c,d,e))&&dm(b)};
dm=function(a){if("number"!==typeof a&&a&&!a.Ln){var b=a.src;if(Ol(b))Rl(b.B,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent($l(c),d):b.addListener&&b.removeListener&&b.removeListener(d);am--;(c=Yl(b))?(Rl(c,a),0==c.u&&(c.src=null,b[Zl]=null)):Pl(a)}}};
$l=function(a){return a in em?em[a]:em[a]="on"+a};
gm=function(a,b,c,d){var e=!0;if(a=Yl(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.Ln&&(f=fm(f,d),e=e&&!1!==f)}return e};
fm=function(a,b){var c=a.listener,d=a.ts||a.src;a.gr&&dm(a);return c.call(d,b)};
mda=function(a,b){if(a.Ln)return!0;if(!bm){var c=b||g.Na("window.event"),d=new Ml(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 h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=gm(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=gm(c[h],f,!1,d),e=e&&l}return e}return fm(a,new Ml(b,
this))};
Yl=function(a){a=a[Zl];return a instanceof Ql?a:null};
Wl=function(a){if("function"===typeof a)return a;a[hm]||(a[hm]=function(b){return a.handleEvent(b)});
return a[hm]};
g.im=function(){g.B.call(this);this.B=new Ql(this);this.za=this;this.ka=null};
jm=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Ln&&h.capture==c){var l=h.listener,m=h.ts||h.src;h.gr&&Rl(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
km=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
lm=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
mm=function(a){g.v.setTimeout(function(){throw a;},0)};
om=function(a){a=nda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Wc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(nm||(nm=oda()),nm(a)):g.v.setImmediate(a)};
oda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Wc("Presto")&&(a=function(){var e=g.Fe("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.z)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Wc("Trident")&&!Wc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.qA;c.qA=null;e()}};
return function(e){d.next={qA:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
pm=function(){this.B=this.u=null};
qm=function(){this.next=this.scope=this.u=null};
g.um=function(a,b){rm||pda();sm||(rm(),sm=!0);tm.add(a,b)};
pda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);rm=function(){a.then(vm)}}else rm=function(){om(vm)}};
vm=function(){for(var a;a=tm.remove();){try{a.u.call(a.scope)}catch(b){mm(b)}lm(wm,a)}sm=!1};
xm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
zm=function(a){this.Ha=0;this.Lk=void 0;this.Em=this.Wj=this.dm=null;this.ls=this.Wv=!1;if(a!=g.Oa)try{var b=this;a.call(void 0,function(c){ym(b,2,c)},function(c){ym(b,3,c)})}catch(c){ym(this,3,c)}};
Am=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
Cm=function(a,b,c){var d=Bm.get();d.C=a;d.onRejected=b;d.context=c;return d};
Dm=function(a){if(a instanceof zm)return a;var b=new zm(g.Oa);ym(b,2,a);return b};
Em=function(a){return new zm(function(b,c){c(a)})};
Gm=function(a,b,c){Fm(a,b,c,null)||g.um(g.Va(b,a))};
qda=function(a){return new zm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Gm(e,b,c)})};
Hm=function(a){return new zm(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],Gm(m,g.Va(f,l),h);
else b(e)})};
Jm=function(a,b){var c=Cm(b,b,void 0);c.B=!0;Im(a,c);return a};
Lm=function(a,b){return Km(a,null,b,void 0)};
Mm=function(a,b){if(0==a.Ha)if(a.dm){var c=a.dm;if(c.Wj){for(var d=0,e=null,f=null,h=c.Wj;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ha&&1==d?Mm(c,b):(f?(d=f,d.next==c.Em&&(c.Em=d),d.next=d.next.next):Nm(c),Om(c,e,3,b)))}a.dm=null}else ym(a,3,b)};
Im=function(a,b){a.Wj||2!=a.Ha&&3!=a.Ha||Pm(a);a.Em?a.Em.next=b:a.Wj=b;a.Em=b};
Km=function(a,b,c,d){var e=Cm(null,null,null);e.u=new zm(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Qm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.dm=a;Im(a,e);return e.u};
ym=function(a,b,c){0==a.Ha&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ha=1,Fm(c,a.ZQ,a.aR,a)||(a.Lk=c,a.Ha=b,a.dm=null,Pm(a),3!=b||c instanceof Qm||rda(a,c)))};
Fm=function(a,b,c,d){if(a instanceof zm)return Im(a,Cm(b||g.Oa,c||null,d)),!0;if(xm(a))return a.then(b,c,d),!0;if(g.Sa(a))try{var e=a.then;if("function"===typeof e)return sda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
sda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
Pm=function(a){a.Wv||(a.Wv=!0,g.um(a.kI,a))};
Nm=function(a){var b=null;a.Wj&&(b=a.Wj,a.Wj=b.next,b.next=null);a.Wj||(a.Em=null);return b};
Om=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.ls;a=a.dm)a.ls=!1;if(b.u)b.u.dm=null,Rm(b,c,d);else try{b.B?b.C.call(b.context):Rm(b,c,d)}catch(e){Sm.call(null,e)}lm(Bm,b)};
Rm=function(a,b,c){2==b?a.C.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
rda=function(a,b){a.ls=!0;g.um(function(){a.ls&&Sm.call(null,b)})};
Qm=function(a){$a.call(this,a)};
g.Tm=function(a,b){g.im.call(this);this.df=a||1;this.Cq=b||g.v;this.lA=(0,g.z)(this.Te,this);this.vC=g.A()};
g.Um=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.z)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Vm=function(a,b){var c=null;return Lm(new zm(function(d,e){c=g.Um(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Wm=function(a,b){this.B={};this.u=[];this.Uk=this.C=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.Wm)for(c=a.wg(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Ym=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Xm(a.B,d)&&(a.u[c++]=d);b++}a.u.length=c}if(a.C!=a.u.length){var e={};for(c=b=0;b<a.u.length;)d=a.u[b],Xm(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Xm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Zm=function(a,b){this.u=this.N=this.F="";this.D=null;this.G=this.B="";this.K=!1;var c;a instanceof g.Zm?(this.K=void 0!==b?b:a.K,g.$m(this,a.F),this.N=a.N,g.an(this,a.u),g.bn(this,a.D),this.B=a.B,cn(this,a.C.clone()),this.G=a.G):a&&(c=String(a).match(wd))?(this.K=!!b,g.$m(this,c[1]||"",!0),this.N=dn(c[2]||""),g.an(this,c[3]||"",!0),g.bn(this,c[4]),this.B=dn(c[5]||"",!0),cn(this,c[6]||"",!0),this.G=dn(c[7]||"")):(this.K=!!b,this.C=new en(null,this.K))};
g.$m=function(a,b,c){a.F=c?dn(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.an=function(a,b,c){a.u=c?dn(b,!0):b};
g.bn=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
cn=function(a,b,c){b instanceof en?(a.C=b,tda(a.C,a.K)):(c||(b=fn(b,uda)),a.C=new en(b,a.K))};
g.gn=function(a){return a instanceof g.Zm?a.clone():new g.Zm(a,void 0)};
dn=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
fn=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,vda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
vda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
en=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
hn=function(a){a.u||(a.u=new g.Wm,a.B=0,a.C&&Bd(a.C,function(b,c){a.add(md(b),c)}))};
kn=function(a,b){hn(a);b=jn(a,b);return Xm(a.u.B,b)};
g.ln=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set(jn(a,b),g.ub(c)),a.B=a.B+c.length)};
jn=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
tda=function(a,b){b&&!a.D&&(hn(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.ln(this,e,c))},a));
a.D=b};
nn=function(a){if(g.rc(g.pd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Zm(a)}catch(c){return null!=g.jb(mn,function(d){return 0<a.search(d)})}return b.G.match(wda)?!0:null!=g.jb(mn,function(c){return null!=a.match(c)})};
g.on=function(a,b){return a.replace(xda,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.rc(g.pd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
pn=function(){this.B=[];this.u=-1};
yda=function(a){-1==a.u&&(a.u=g.kh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.qn=function(a,b,c){g.B.call(this);this.u=null;this.D=!1;this.G=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.EB,this)};
rn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
sn=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.G=function(a,b,c){g.B.call(this);this.u=a;this.df=b||0;this.B=c;this.C=(0,g.z)(this.FB,this)};
g.tn=function(a){a.stop();a.FB()};
un=function(){this.B=64;this.u=[];this.G=[];this.K=[];this.F=[];this.F[0]=128;for(var a=1;a<this.B;++a)this.F[a]=0;this.D=this.C=0;this.reset()};
vn=function(a,b,c){c||(c=0);var d=a.K;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708):
(f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295};
wn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
xn=function(a){return a.classList?a.classList:wn(a).match(/\S+/g)||[]};
yn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.zn=function(a,b){return a.classList?a.classList.contains(b):g.nb(xn(a),b)};
g.I=function(a,b){if(a.classList)a.classList.add(b);else if(!g.zn(a,b)){var c=wn(a);yn(a,c+(0<c.length?" "+b:b))}};
g.An=function(a,b){if(a.classList)g.Fb(b,function(f){g.I(a,f)});
else{var c={};g.Fb(xn(a),function(f){c[f]=!0});
g.Fb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;yn(a,d)}};
g.Bn=function(a,b){a.classList?a.classList.remove(b):g.zn(a,b)&&yn(a,g.Ke(xn(a),function(c){return c!=b}).join(" "))};
g.Cn=function(a,b){a.classList?g.Fb(b,function(c){g.Bn(a,c)}):yn(a,g.Ke(xn(a),function(c){return!g.nb(b,c)}).join(" "))};
g.K=function(a,b,c){c?g.I(a,b):g.Bn(a,b)};
Dn=function(a,b){var c=!g.zn(a,b);g.K(a,b,c)};
g.En=function(){g.im.call(this);this.Ha=0;this.endTime=this.startTime=null};
zda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Pc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.F(a,"transition",c.join(","))};
Fn=function(a,b,c,d,e){g.En.call(this);this.u=a;this.F=b;this.G=c;this.C=d;this.K=Array.isArray(e)?e:[e]};
Gn=function(a,b,c,d){return new Fn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Bda=function(a){a=Bc(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 Ada))return null}return a};
Hn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
In=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ye&&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)};
Gda=function(a){if(!a)return Rc;var b=document.createElement("div").style,c=Cda(a);g.Fb(c,function(d){var e=g.Ae&&d in Dda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pc(e,"--")||pc(e,"var")||(d=In(Eda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Bda(d),null!=d&&In(Fda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Iaa(b.cssText||"")};
Cda=function(a){g.Ra(a)?a=g.ub(a):(a=g.Qb(a),g.rb(a,"cssText"));return a};
g.Kn=function(a){var b,c=b=0,d=!1;a=a.split(Hda);for(var e=0;e<a.length;e++){var f=a[e];g.Jn.test(f)?(b++,c++):Ida.test(f)?d=!0:Jda.test(f)?c++:Kda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Ln=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.G=d;this.D=e;this.K=f;this.B=h;this.N=l};
g.Mn=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.de(a.u,a.C,b),d=g.de(a.C,a.D,b),e=g.de(a.D,a.B,b);c=g.de(c,d,b);d=g.de(d,e,b);return g.de(c,d,b)};
g.Nn=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.G=c||0};
g.On=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.G?Math.round(a.G*(Math.random()-.5)*2*a.u):0));a.B++};
Pn=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Lda=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};
Qn=function(a){return(a=a.exec(g.Vc))?a[1]:""};
Rn=function(a){return 0<=g.Dc(Mda,a)};
g.Sn=function(a){g.B.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.G=!!a};
Nda=function(a,b,c){g.um(function(){a.apply(b,c)})};
g.Tn=function(a){this.u=a};
Un=function(a){this.u=a};
Vn=function(a){this.data=a};
Wn=function(a){return void 0===a||a instanceof Vn?a:new Vn(a)};
Xn=function(a){this.u=a};
g.Yn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.A()||!!b&&b>g.A()};
g.Zn=function(a){this.u=a};
Oda=function(){};
$n=function(){};
ao=function(a){this.u=a};
bo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a};
co=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a};
fo=function(a,b){this.B=a;this.u=null;if(g.ye&&!g.$d(9)){eo||(eo=new g.Wm);this.u=eo.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),eo.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}};
go=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Pda[b]})};
ho=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
io=function(a,b){this.B=a;this.u=b+"::"};
g.jo=function(a){var b=new bo;return b.isAvailable()?a?new io(b,a):b:null};
ko=function(a,b){this.u=a;this.B=b};
lo=function(a){this.u=[];if(a)a:{if(a instanceof lo){var b=a.wg();a=a.qf();if(0>=this.u.length){for(var c=this.u,d=0;d<b.length;d++)c.push(new ko(b[d],a[d]));break a}}else b=g.Qb(a),a=g.Pb(a);for(d=0;d<b.length;d++)g.mo(this,b[d],a[d])}};
g.mo=function(a,b,c){var d=a.u;d.push(new ko(b,c));b=d.length-1;a=a.u;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
g.no=function(){lo.call(this)};
oo=function(){};
po=function(a){g.Gf(this,a,Qda,null)};
qo=function(a){g.Gf(this,a,null,null)};
Rda=function(a,b){for(;ef(b)&&4!=b.B;)switch(b.C){case 1:var c=kf(b);g.Jf(a,1,c);break;case 2:c=kf(b);g.Jf(a,2,c);break;case 3:c=kf(b);g.Jf(a,3,c);break;case 4:c=kf(b);g.Jf(a,4,c);break;case 5:c=cf(b.u);g.Jf(a,5,c);break;default:ff(b)}return a};
Sda=function(a){a=a.split("");var b=[function(c){c.reverse()},
1216894519,a,-230926342,1184923955,2039764393,312113906,null,-1535069831,786174882,-27052510,-1137194920,571161050,1589660489,1328012717,1822141211,-383049836,1822141211,786174882,a,"let",function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-928081886,-669001013,-575144193,null,-926468947,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
function(c,d){c.push(d)},
771977519,1097521269,1097521269,-1909664275,-341153700,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
a,-1650622354,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(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
"if",1778652502,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
-341153700,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
29594337,null,206838394,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-926468947];b[7]=b;b[25]=b;b[44]=b;b[21](b[19]);b[28](b[7],b[38]);b[42](b[44],b[5]);b[28](b[44],b[8]);b[37](b[7]);b[21](b[42],b[27]);b[22](b[5],b[35]);b[30](b[7]);b[33](b[18],b[14]);b[50](b[18],b[19]);b[20](b[6]);b[5](b[44],b[2]);b[1](b[35],b[22]);b[14](b[1],b[41]);b[20](b[19],b[0]);b[8](b[1],b[31]);b[27](b[1],b[30]);b[8](b[1],b[22]);b[17](b[47]);b[42](b[3],b[14]);b[21](b[9]);b[38](b[22],b[46]);b[24](b[47],b[36]);b[32](b[31],b[11]);b[38](b[41],b[38]);b[26](b[47],b[4]);b[26](b[22],b[23]);b[20](b[41],
b[30]);b[39](b[47],b[16]);b[26](b[8],b[40]);b[39](b[47],b[21]);b[26](b[47],b[37]);b[39](b[41],b[3]);b[51](b[44],b[5]);b[17](b[39],b[36]);b[37](b[1],b[18]);b[19](b[40],b[26]);b[19](b[6],b[7]);b[22](b[40]);b[25](b[6],b[43]);b[8](b[40],b[21]);return a.join("")};
so=function(a){var b=arguments;1<b.length?ro[b[0]]=b[1]:1===b.length&&Object.assign(ro,b[0])};
g.L=function(a,b){return a in ro?ro[a]:b};
to=function(a){return g.L(a,void 0)};
g.vo=function(a){a=uo(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.wo=function(a,b){var c=uo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
xo=function(a){a=uo(a);return Array.isArray(a)?g.Pc(a,function(b){return String(b||"")}):[String(a||"")]};
uo=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
yo=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};
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()}))};
Tda=function(a){Do.forEach(function(b){return b(a)})};
Eo=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){M(b),Tda(b)}}:a};
M=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),so("ERRORS",e))};
g.Fo=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"WARNING",b,c,d]),so("ERRORS",e))};
g.Go=function(a,b){"function"===typeof a&&(a=Eo(a));return window.setTimeout(a,b)};
Ho=function(a,b){"function"===typeof a&&(a=Eo(a));return window.setInterval(a,b)};
g.Io=function(a){window.clearTimeout(a)};
g.No=function(a,b,c){var d=g.Jo();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Ko[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Lo[a]?h():g.Go(h,0)}catch(l){M(l)}},c);
Ko[e]=!0;Mo[a]||(Mo[a]=[]);Mo[a].push(e);return e}return 0};
g.Oo=function(a){var b=g.Jo();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete Ko[c]}))};
g.Qo=function(a,b){var c=g.Jo();return c?c.publish.apply(c,arguments):!1};
So=function(a){var b=g.Jo();if(b)if(b.clear(a),a)Ro(a);else for(var c in Mo)Ro(c)};
g.Jo=function(){return g.v.ytPubsubPubsubInstance};
Ro=function(a){Mo[a]&&(a=Mo[a],g.Fb(a,function(b){Ko[b]&&delete Ko[b]}),a.length=0)};
g.To=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(Uda,""),c=c.replace(Vda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Wda(a,b,c)};
Wda=function(a,b,c){c=void 0===c?null:c;var d=Uo(a),e=document.getElementById(d),f=e&&Bo(e),h=e&&!f;f?b&&b():(b&&(f=g.No(d,b),b=""+g.Ua(b),Vo[b]=f),h||(e=Xda(a,d,function(){Bo(e)||(Ao(e,"loaded","true"),g.Qo(d),g.Go(g.Va(So,d),0))},c)))};
Xda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Fe("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.jd(e,g.ng(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Uo=function(a){var b=document.createElement("a");g.id(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qd(a)};
Xo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Wo+"VisibilityState";if(b in a)return a[b]};
Yo=function(a,b){var c;ei(a,function(d){c=b[d];return!!c});
return c};
Zo=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.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Yda||(this[b]=a[b]);this.scale=a.scale;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.u=a.pageX;this.B=a.pageY}}catch(e){}};
$o=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
Zda=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 Ub(ap,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Sa(e[4])&&g.Sa(d)&&g.Yb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.dp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Zda(a,b,c,d);if(e)return e;e=++bp.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Zo(l);if(!Re(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Zo(l);
l.currentTarget=a;return c.call(a,l)};
h=Eo(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),cp()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);ap[e]=[a,b,c,h,d];return e};
$da=function(a,b){var c=document.body||document;return g.dp(c,"click",function(d){var e=Re(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.ep=function(a){a&&("string"==typeof a&&(a=[a]),g.Fb(a,function(b){if(b in ap){var c=ap[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?cp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ap[b]}}))};
g.fp=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
gp=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.fp(a)};
hp=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};
ip=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.fe(b,c)};
g.jp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.kp=function(a){a=a||window.event;return!1===a.returnValue||a.gC&&a.gC()};
g.lp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
aea=function(a){return $da(a,function(b){return g.zn(b,"ytp-ad-has-logging-urls")})};
g.mp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.dp(a,b,function(){g.ep(e);c.apply(a,arguments)},d)};
np=function(a){for(var b in ap)ap[b][0]==a&&g.ep(b)};
op=function(a){this.P=a;this.u=null;this.D=0;this.G=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.N=g.dp(window,"mousemove",(0,g.z)(this.X,this));this.V=Ho((0,g.z)(this.K,this),25)};
bea=function(){};
qp=function(a,b){return pp(a,0,b)};
g.rp=function(a,b){return pp(a,1,b)};
sp=function(){};
g.tp=function(){return!!g.Na("yt.scheduler.instance")};
pp=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Na("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Go(a,c||0)};
g.up=function(a){if(!isNaN(a)){var b=g.Na("yt.scheduler.instance.cancelJob");b?b(a):g.Io(a)}};
vp=function(a){var b=g.Na("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
yp=function(){var a={},b=void 0===a.sJ?!0:a.sJ;a=void 0===a.aQ?!1:a.aQ;if(null==g.Na("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Ia("_lact",c,window);g.Ia("_fact",c,window);-1==c&&wp();g.dp(document,"keydown",wp);g.dp(document,"keyup",wp);g.dp(document,"mousedown",wp);g.dp(document,"mouseup",wp);b&&(a?g.dp(window,"touchmove",function(){xp("touchmove",200)},{passive:!0}):(g.dp(window,"resize",function(){xp("resize",200)}),g.dp(window,"scroll",function(){xp("scroll",
200)})));
new op(function(){xp("mouse",100)});
g.dp(document,"touchstart",wp,{passive:!0});g.dp(document,"touchend",wp,{passive:!0})}};
xp=function(a,b){zp[a]||(zp[a]=!0,g.rp(function(){wp();zp[a]=!1},b))};
wp=function(){null==g.Na("_lact",window)&&(yp(),g.Na("_lact",window));var a=g.A();g.Ia("_lact",a,window);-1==g.Na("_fact",window)&&g.Ia("_fact",a,window);(a=g.Na("ytglobal.ytUtilActivityCallback_"))&&a()};
Ap=function(){var a=g.Na("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Gp=function(a){a=void 0===a?!1:a;return new zm(function(b){g.Io(Bp);g.Io(Cp);Cp=0;Dp&&Dp.isReady()?(cea(b,a),Ep.clear()):(Fp(),b())})};
Fp=function(){g.vo("web_gel_timeout_cap")&&!Cp&&(Cp=g.Go(Gp,6E4));g.Io(Bp);var a=g.L("LOGGING_BATCH_TIMEOUT",g.wo("web_gel_debounce_ms",1E4));g.vo("shorten_initial_gel_batch_timeout")&&Hp&&(a=dea);Bp=g.Go(Gp,a)};
cea=function(a,b){var c=Dp;b=void 0===b?!1:b;for(var d=Math.round((0,g.O)()),e=Ep.size,f=g.q(Ep),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.$b(g.Ip(c.Ff||g.Jp()));l.events=m;(m=Kp[h])&&eea(l,h,m);delete Kp[h];fea(l,d);g.Lp(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();Mp=Math.round((0,g.O)()-d)},
onError:function(){e--;e||a()},
tR:b});Hp=!1}};
fea=function(a,b){a.requestTimeMs=String(b);g.vo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.vo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Np/2));d++;d>Np&&(d=1);so("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Op&&Mp&&g.vo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Op,roundtripMs:String(Mp)});Op=
c;Mp=0}};
eea=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
Rp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.O)());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:Ap())};g.vo("log_sequence_info_on_gel_web")&&d.Fj&&(a=e.context,b=d.Fj,Pp[b]=b in Pp?Pp[b]+1:0,a.sequence={index:Pp[b],groupKey:b},d.hI&&delete Pp[d.Fj]);d=d.Xh;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Kp[d.token]=a,a=d.token);d=Ep.get(a)||[];Ep.set(a,d);d.push(e);c&&(Dp=new c);c=g.wo("web_logging_max_batch")||
100;e=(0,g.O)();d.length>=c?Gp(!0):10<=e-Qp&&(Fp(),Qp=e)};
Sp=function(){return g.Na("yt.ads.biscotti.lastId_")||""};
Tp=function(a){g.Ia("yt.ads.biscotti.lastId_",a,void 0)};
Up=function(a){for(var b=a.split("&"),c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=md(f[0]||""),l=md(f[1]||"");h in c?Array.isArray(c[h])?vb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(m){gea.hasOwnProperty(f[0])||(m.args=[{key:f[0],value:f[1],query:a}],M(m))}}return c};
Vp=function(a){var b=[];g.Ib(a,function(c,d){var e=ld(d),f;Array.isArray(c)?f=c:f=[c];g.Fb(f,function(h){""==h?b.push(e):b.push(e+"="+ld(h))})});
return b.join("&")};
Wp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Up(a)};
Xp=function(a){a=a.split(",");return a=a.map(function(b){return Wp(b)})};
g.Yp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Wp(1<a.length?a[1]:a[0])):{}};
g.$p=function(a,b){return Zp(a,b||{},!0)};
aq=function(a,b){return Zp(a,b||{},!1)};
Zp=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=Wp(e[1]||"");for(var f in b)if(c||!Sb(e,f))e[f]=b[f];return g.Jd(a,e)+d};
bq=function(a){if(!b)var b=window.location.href;var c=g.xd(1,a),d=g.yd(a);c&&d?(a=a.match(wd),b=b.match(wd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.yd(b)==d&&(Number(g.xd(4,b))||null)==(Number(g.xd(4,a))||null):!0;return a};
cq=function(a){a||(a=document.location.href);a=g.xd(1,a);return null!==a&&"https"==a};
dq=function(a){a=g.yd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
gq=function(a){var b=eq;a=void 0===a?Sp():a;b=Object.assign(fq(b),hea(b));b.ca_type="image";a&&(b.bid=a);return b};
fq=function(a){var b={};b.dt=iea;b.flash="0";a:{try{var c=a.u.top.location.href}catch(f){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Zg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Zg.navigator&&"unknown"!==typeof Zg.navigator.javaEnabled&&!!Zg.navigator.javaEnabled&&Zg.navigator.javaEnabled();Zg.screen&&(b.u_h=Zg.screen.height,b.u_w=Zg.screen.width,b.u_ah=Zg.screen.availHeight,b.u_aw=Zg.screen.availWidth,b.u_cd=
Zg.screen.colorDepth);Zg.navigator&&Zg.navigator.plugins&&(b.u_nplug=Zg.navigator.plugins.length);Zg.navigator&&Zg.navigator.mimeTypes&&(b.u_nmime=Zg.navigator.mimeTypes.length);return b};
hea=function(a){var b=a.u;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var h=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,h,l];c=Kg(!1,a.u.top);d={};e=new pn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=eba();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=yda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=$g(a.B),d.wgl=!!Zg.WebGLRenderingContext,d};
jea=function(){if(!hq)return null;var a=hq();return"open"in a?a:null};
g.jq=function(a){switch(iq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
iq=function(a){return a&&"status"in a?a.status:-1};
kea=function(a,b){b=void 0===b?{}:b;var c=bq(a),d=g.vo("web_ajax_ignore_global_headers_if_set"),e;for(e in kq){var f=g.L(kq[e]);!f||!c&&!lq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||lq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||lq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||lq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Vp(gq(void 0));
return b};
mq=function(a,b){var c=g.yd(a),d=vd(g.xd(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=Wp(b),f={};g.Fb(lea,function(h){e[h]&&(f[h]=e[h])});
return aq(a,f)};
lq=function(a){return g.yd(a)?!1:!0};
mea=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=nq(a,b);var d=oq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(h){if(!e){e=!0;f&&g.Io(f);var l=h.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,h):b.onError&&b.onError.call(p,n,h);b.Kf&&b.Kf.call(p,n,h)};
"JSON"==(b.format||"JSON")&&(l||400<=h.status&&500>h.status)?h.json().then(m,function(){m(null)}):m(null)}});
b.bE&&0<b.timeout&&(f=g.Go(function(){e||(e=!0,g.Io(f),b.bE.call(b.context||g.v))},b.timeout))}else g.pq(a,b)};
g.pq=function(a,b){var c=b.format||"JSON";a=nq(a,b);var d=oq(a,b),e=!1,f=qq(a,function(m){if(!e){e=!0;l&&g.Io(l);var n=g.jq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=nea(a,c,m,b.O3);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};r=b.context||g.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.Kf&&b.Kf.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.kg&&0<b.timeout){var h=b.kg;var l=g.Go(function(){e||(e=!0,f.abort(),g.Io(l),h.call(b.context||g.v,f))},b.timeout)}return f};
nq=function(a,b){b.U3&&(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.Lh;d&&(d[c]&&delete d[c],a=g.$p(a,d));return a};
oq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.fc,h=to("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Uv||g.yd(a)&&!b.withCredentials&&g.yd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.fc&&b.fc[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Wp(e),g.bc(e,f),e=b.UE&&"JSON"==b.UE?JSON.stringify(e):g.Hd(e));f=e||f&&!g.Wb(f);!rq&&f&&"POST"!=b.method&&(rq=!0,M(Error("AJAX request with postData should use POST")));
return e};
nea=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,g.Fo(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?oea(a):null)e={},g.Fb(a.getElementsByTagName("*"),function(h){e[h.tagName]=pea(h)})}d&&sq(e);
return e};
sq=function(a){if(g.Sa(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.gd(g.kc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):sq(a[b])};
oea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
pea=function(a){var b="";g.Fb(a.childNodes,function(c){b+=c.nodeValue});
return b};
qq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Eo(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=jea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.vo("debug_forward_web_query_parameters")&&(a=mq(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=kea(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};
qea=function(){for(var a={},b=g.q(Object.entries(Wp(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};
tq=function(){return"INNERTUBE_API_KEY"in ro&&"INNERTUBE_API_VERSION"in ro};
g.Jp=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),ZB:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),As:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Ow:g.L("INNERTUBE_CONTEXT_HL",void 0),Nw:g.L("INNERTUBE_CONTEXT_GL",void 0),bC:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",dC:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),cC:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.L("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
rea=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.gA||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.Na("gapi.auth.getToken")().L3:b=Kl([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.vo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Ip=function(a){var b={client:{hl:a.Ow,gl:a.Nw,clientName:a.As,clientVersion:a.innertubeContextClientVersion,configInfo:a.ZB}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.L("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=yo();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&g.vo("web_log_app_install_experiments")&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.L("DELEGATED_SESSION_ID")&&
!g.vo("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});b.client=Object.assign(b.client,qea());return{context:b}};
sea=function(a){a=Object.assign({},a);delete a.Authorization;var b=Kl();if(b){var c=new un;c.update(to("INNERTUBE_API_KEY"));c.update(b);a.hash=g.qf(c.digest(),3)}b=new un;b.update(JSON.stringify(a,Object.keys(a).sort()));a=b.digest();b="";for(c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b};
g.vq=function(a,b,c,d,e){uq.set(""+a,b,{DC:c,path:"/",domain:void 0===d?"youtube.com":d,tQ:void 0===e?!1:e})};
g.wq=function(a,b){return uq.get(""+a,b)};
g.xq=function(a,b,c){uq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
yq=function(a){var b;(b=g.jo(a))||(a=new fo(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.u=(a=b)?new Xn(a):null;this.B=document.domain||window.location.hostname};
zq=function(){this.C=!0};
Aq=function(){zq.u||(zq.u=new zq);return zq.u};
tea=function(a,b,c){return Dm(a.u(b,c))};
uea=function(){var a={};for(Bq=new Cq(void 0===a.Gw?g.Fo:a.Gw,void 0===a.handleError?M:a.handleError,void 0===a.logEvent?g.Dq:a.logEvent);0<Eq.length;)switch(a=Eq.shift(),a.type){case "ERROR":Fq(a.payload);break;case "EVENT":Bq.logEvent(a.eventType,a.payload)}};
Hq=function(a,b){Gq||(Bq?Bq.logEvent(a,b):(Eq.push({type:"EVENT",eventType:a,payload:b}),10<Eq.length&&Eq.shift()))};
vea=function(a){if(!a)throw Error();throw a;};
wea=function(a){return a};
Iq=function(a){var b=this;this.B=a;this.state={status:"PENDING"};this.u=[];this.onRejected=[];this.B(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=g.q(b.u);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=g.q(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
Kq=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof Iq?Jq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Lq=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof Iq?Jq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Jq=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Iq?Jq(a,b,f,d,e):d(f)},function(f){e(f)})};
Mq=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Nq=function(a){return new zm(function(b,c){Mq(a,b,c)})};
Oq=function(a){return new Iq(function(b,c){Mq(a,b,c)})};
Pq=function(a,b){return new Iq(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
Qq=function(a,b){this.request=a;this.cursor=b};
Rq=function(a){return Oq(a).then(function(b){return null===b?null:new Qq(a,b)})};
Sq=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.la(c))};
Uq=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?Tq[a]:c;Sq.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;Object.setPrototypeOf(this,Uq.prototype);Gq||(Bq?Fq(this):(Eq.push({type:"ERROR",payload:this}),10<Eq.length&&Eq.shift()))};
Vq=function(a,b,c){Uq.call(this,"UNKNOWN_ABORT",{objectStoreNames:a,dbName:b,mode:c});Object.setPrototypeOf(this,Vq.prototype)};
Wq=function(a){Uq.call(this,"MISSING_OBJECT_STORE",{b4:a},Tq.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Wq.prototype)};
Xq=function(a,b){this.u=a;this.options=b;this.transactionCount=0;this.C=(0,g.O)();this.B=!1};
ar=function(a,b,c,d){return Yq(a,[b],"readwrite",function(e){return Zq($q(e,b),c,d)})};
Yq=function(a,b,c,d){c=void 0===c?"readonly":c;a.transactionCount++;var e=a.u.transaction(b,c);e=new br(e);d=xea(e,d);yea(a,d,b.join(),c);return d};
yea=function(a,b,c,d){var e=(0,g.O)();Lm(b.then(function(){cr(a,!0,c,(0,g.O)()-e)}),function(f){var h=(0,g.O)(),l=a.u.name,m=a.transactionCount,n;
"QuotaExceededError"===f.name?n=new Uq("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:l,mode:d}):"UnknownError"===f.name&&(n=new Uq("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:l,mode:d}));n&&Hq("QUOTA_EXCEEDED",{dbName:l,objectStoreNames:c,transactionCount:m,transactionMode:d});f instanceof Vq&&(Hq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:h-e,transactionCount:a.transactionCount,dbDuration:h-a.C}),a.B=!0);cr(a,!1,c,h-e)})};
cr=function(a,b,c,d){Hq("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.B,duration:d,isSuccessful:b})};
dr=function(a){this.u=a};
zea=function(a,b){return er(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
Bea=function(a,b){return"getAll"in IDBObjectStore.prototype?Oq(a.u.getAll(b,void 0)):Aea(a,b)};
Aea=function(a,b){var c=[];return er(a,{query:b},function(d){c.push(d.getValue());return d["continue"]()}).then(function(){return c})};
Zq=function(a,b,c){return Oq(a.u.put(b,c))};
er=function(a,b,c){a=a.u.openCursor(b.query,b.direction);return fr(a).then(function(d){return Pq(d,c)})};
Cea=function(a,b){var c={},d=c.query;c=c.direction;d="openKeyCursor"in IDBObjectStore.prototype?a.u.openKeyCursor(d,c):a.u.openCursor(d,c);return Rq(d).then(function(e){return Pq(e,b)})};
br=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new zm(function(c,d){b.u.addEventListener("complete",function(){c()});
b.u.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.u.error)});
b.u.addEventListener("abort",function(){var e=b.u.error;if(e)d(e);else if(!b.aborted){e=Vq;for(var f=b.u.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e(h.join(),b.u.db.name,b.u.mode);d(e)}})})};
xea=function(a,b){var c=new zm(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Hm([c,a.done]).then(function(d){return g.q(d).next().value})};
$q=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new dr(c),a.B.set(c,d));return d};
gr=function(a){this.u=a};
hr=function(a,b){this.request=a;this.cursor=b};
fr=function(a){return Oq(a).then(function(b){return null===b?null:new hr(a,b)})};
Dea=function(a,b,c){function d(){p||(p=new Xq(e.result,{closed:n}));return p}
var e=self.indexedDB.open(a,b),f=c.blocked,h=c.blocking,l=c.OQ,m=c.upgrade,n=c.closed,p;m&&e.addEventListener("upgradeneeded",function(r){if(null===r.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===e.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");var t=d(),w=new br(e.transaction);m(t,r.oldVersion,r.newVersion,w)});
f&&e.addEventListener("blocked",function(){f()});
return Nq(e).then(function(r){h&&r.addEventListener("versionchange",function(){h(d())});
r.addEventListener("close",function(){Hq("IDB_UNEXPECTEDLY_CLOSED",{dbName:a,dbVersion:r.version});l&&l()});
return d()})};
ir=function(a,b,c){c=void 0===c?{}:c;return Dea(a,b,c)};
jr=function(a,b){b=void 0===b?{}:b;var c=self.indexedDB.deleteDatabase(a),d=b.blocked;d&&c.addEventListener("blocked",function(){d()});
return Nq(c).then(function(){})};
Eea=function(a,b){for(var c=g.q(Object.keys(b.MD)),d=c.next();!d.done;d=c.next())if(d=d.value,!a.u.objectStoreNames.contains(d))return d};
kr=function(a,b){this.name=a;this.options=b;this.B=!1};
mr=function(a){return lr.open().then(function(b){return b.get("databases",a.actualName).then(function(c){if(c?a.actualName!==c.actualName||a.publicName!==c.publicName||a.userIdentifier!==c.userIdentifier||a.signedIn!==c.signedIn||a.clearDataOnAuthChange!==c.clearDataOnAuthChange:1)return ar(b,"databases",a)})})};
nr=function(a){return lr.open().then(function(b){return b["delete"]("databases",a)})};
Fea=function(){return Ue(this,function b(){var c,d;return Aa(b,function(e){switch(e.u){case 1:if(jk&&gk()&&!hk()&&!g.vo("ytidb_allow_on_ios_safari_v8_and_v9")||g.or)return e["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e["return"](!1)}catch(f){return e["return"](!1)}if(g.vo("ytidb_new_supported_check_with_delete"))return e["return"](new Promise(function(f){Lm(nr("yt-idb-test-do-not-use").then(function(){f(!0)}),function(){f(!1)})}));
if(g.vo("ytidb_new_supported_check_with_add_and_delete"))return e["return"](new Promise(function(f){Lm(mr({actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0,signedIn:!1}).then(function(){return nr("yt-idb-test-do-not-use")}).then(function(){f(!0)}),function(){f(!1)})}));
sa(e,2,3);return ra(e,Lm(ir("yt-idb-test-do-not-use"),function(){}),5);
case 5:if(d=e.B,!d)return e["return"](!1);case 3:baa(e);if(d)try{d.close()}catch(f){}caa(e);break;case 2:return ua(e),e["return"](!1);case 4:return"IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype?e["return"](!0):e["return"](!1)}})})};
qr=function(){if(void 0!==pr)return pr;var a=(0,g.O)();Gq=!0;return pr=new zm(function(b){Fea().then(function(c){Gq=!1;Hq("IS_SUPPORTED_COMPLETED",{duration:(0,g.O)()-a,isSupported:c});b(c)})})};
Iea=function(){return void 0!==rr?rr:rr=qr().then(function(a){Gq=!0;if(!a)return!1;var b=g.q(Gea);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=g.q(Hea);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){Gq=!1;
return a})};
sr=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
tr=function(a){return{actualName:a,publicName:a,userIdentifier:void 0,signedIn:!1}};
ur=function(a){return tr(a);throw new Uq("AUTH_INVALID");};
wr=function(a,b,c,d){return vr().then(function(){var e;sr(a);var f;try{c?f=tr(a):f=ur(a)}catch(h){return Em(h)}f.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1;return Lm(mr(f).then(function(){return ir(f.actualName,b,d)}),function(h){return Lm(nr(f.actualName),function(){}).then(function(){throw h;
})})})};
vr=function(){return qr().then(function(a){if(!a)throw new Uq("IDB_NOT_SUPPORTED");})};
Jea=function(a,b,c){c=void 0===c?{}:c;return wr(a,b,!1,c)};
Kea=function(a,b,c){c=void 0===c?{}:c;return wr(a,b,!0,c)};
Lea=function(a,b){b=void 0===b?{}:b;sr(a);var c;return vr().then(function(){c=ur(a);return jr(c.actualName,b)}).then(function(){return nr(c.actualName)})};
Mea=function(a,b){b=void 0===b?{}:b;sr(a);return vr().then(function(){return jr(a,b)}).then(function(){return nr(a)})};
xr=function(a,b){kr.call(this,a,b);this.options=b;sr(a)};
yr=function(){Iq.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
Ar=function(){g.im.call(this);this.u=zr();Nea(this);Oea(this)};
zr=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Oea=function(a){window.addEventListener("online",function(){a.u=!0;a.D&&a.D()})};
Nea=function(a){window.addEventListener("offline",function(){a.u=!1;a.C&&a.C()})};
Cr=function(a,b){b=void 0===b?{}:b;Br().then(function(){Ar.u||(Ar.u=new Ar);Ar.u.u!==zr()&&M(Error("NetworkStatusManager isOnline does not match window status"));g.pq(a,b)})};
Dr=function(a,b){b=void 0===b?{}:b;Br().then(function(){g.pq(a,b)})};
Br=function(){return Ue(this,function b(){return Aa(b,function(c){return g.vo("networkless_logging")?(2===g.wo("networkless_ytidb_version")&&Iea().then(function(d){return d}),c["return"](qr())):c["return"](!1)})})};
g.Er=function(a){this.Ff=null;a?this.Ff=a:tq()&&(this.Ff=g.Jp())};
g.Lp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Fo(new Sq("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new Sq("innertube xhrclient not ready",b,c,d),M(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",fc:c,UE:"JSON",kg:function(){d.kg()},
bE:d.kg,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
g4:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
f4:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.Ff.bC;f&&(c=f);f=rea(a.Ff.dC||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Ff.innertubeApiVersion+"/"+b;f={alt:"json"};a.Ff.cC&&e.headers.Authorization||(f.key=a.Ff.innertubeApiKey);var h=g.$p(""+c+b,f);Br().then(function(){try{g.vo("use_fetch_for_op_xhr")?mea(h,e):g.vo("networkless_gel")&&d.retry?(e.method="POST",!d.tR&&g.vo("nwl_send_fast_on_unload")?Dr(h,e):Cr(h,
e)):(e.method="POST",e.fc||(e.fc={}),g.pq(h,e))}catch(l){if("InvalidAccessError"==l.name)g.Fo(Error("An extension is blocking network request."));else throw l;}})};
g.Dq=function(a,b,c){c=void 0===c?{}:c;var d=g.Er;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Er==g.Er&&(d=null);Rp(a,b,d,c)};
Pea=function(){this.u=[];this.B=[]};
Qea=function(a){g.Fr(a)};
g.Gr=function(a){g.Fr(a,"WARNING")};
g.Fr=function(a,b){var c=void 0===c?{}:c;c.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(g.vo("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),
a)}if((window&&window.yterr||e)&&!(5<=Hr)&&0!==a.sampleWeight){var h=Xaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.lineNumber||"Not available",m=h.fileName||"Not available";h=h.stack||a.u||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0,p=0;p<a.args.length;p++){var r=a.args[p],t="params."+p;n+=t.length;if(r)if(Array.isArray(r))for(var w=d,x=0;x<r.length&&!(r[x]&&(n+=Ir(x,r[x],t,w),500<n));x++);else if("object"===typeof r)for(w in w=void 0,x=d,
r){if(r[w]&&(n+=Ir(w,r[w],t,x),500<n))break}else d[t]=Jr(r),n+=d[t].length;else d[t]=Jr(r),n+=d[t].length;if(500<=n)break}else if(a.hasOwnProperty("params")&&a.params)if(r=a.params,"object"===typeof a.params)for(p in t=0,r){if(r[p]&&(n="params."+p,w=Jr(r[p]),d[n]=w,t+=n.length+w.length,500<t))break}else d.params=Jr(r);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d.vendor=navigator.vendor);d={message:e,name:f,lineNumber:l,fileName:m,stack:h,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=
d.lineNumber+":"+e);e=g.q(Rea);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.Sx[d.name])for(m=g.q(f.Sx[d.name]),l=m.next();!l.done;l=m.next())if(h=l.value,l=d.message.match(h.Hg)){d.params["error.original"]=l[0];m=h.groups;h={};for(p=0;p<m.length;p++)h[m[p]]=l[p+1],d.params["error."+m[p]]=l[p+1];d.message=f.GC(h);break}window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(!(Kr.has(d.message)||0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){Sea.W("handleError",
d);if(g.vo("kevlar_gel_error_routing")){e=c;a:{f=g.q(Tea);for(l=f.next();!l.done;l=f.next())if(Xj(l.value.toLowerCase())){f=!0;break a}f=!1}if(!f){l={stackTrace:d.stack};d.fileName&&(l.filename=d.fileName);f=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==f.length&&(1!==f.length||isNaN(Number(f[0]))?2!==f.length||isNaN(Number(f[0]))||isNaN(Number(f[1]))||(l.lineNumber=Number(f[0]),l.columnNumber=Number(f[1])):l.lineNumber=Number(f[0]));Lr||(Lr=new Pea);f=Lr;m=d.message;h=d.name;a:{p=
g.q(f.B);for(r=p.next();!r.done;r=p.next())if(r=r.value,d.message&&d.message.match(r.u)){p=r.weight;break a}p=g.q(f.u);for(r=p.next();!r.done;r=p.next())if(r=r.value,r.callback(d)){p=r.weight;break a}p=1}m={level:"ERROR_LEVEL_UNKNOWN",message:m,errorClassName:h,sampleWeight:p};"ERROR"===e?m.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(m.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:l};l={pageUrl:window.location.href};g.L("FEXP_EXPERIMENTS")&&(l.experimentIds=g.L("FEXP_EXPERIMENTS"));
l.kvPairs=[{key:"client.params.errorServiceSignature",value:"msg="+f.B.length+"&cb="+f.u.length}];if(f=d.params)for(h=g.q(Object.keys(f)),p=h.next();!p.done;p=h.next())p=p.value,l.kvPairs.push({key:"client."+p,value:String(f[p])});f=g.L("SERVER_NAME",void 0);h=g.L("SERVER_VERSION",void 0);f&&h&&(l.kvPairs.push({key:"server.name",value:f}),l.kvPairs.push({key:"server.version",value:h}));g.Dq("clientError",{errorMetadata:l,stackTrace:e,logMessage:m});Gp()}}if(!g.vo("suppress_error_204_logging")){e=
d.params||{};c={Lh:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},fc:{url:g.L("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.fc){d.stack&&(c.fc.stack=d.stack);f=g.q(Object.keys(e));for(l=f.next();!l.done;l=f.next())l=l.value,c.fc["client."+l]=e[l];if(e=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),l=f.next();!l.done;l=f.next())l=l.value,
c.fc[l]=e[l];e=g.L("SERVER_NAME",void 0);f=g.L("SERVER_VERSION",void 0);e&&f&&(c.fc["server.name"]=e,c.fc["server.version"]=f)}g.pq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",c)}Kr.add(d.message);Hr++}}}};
Ir=function(a,b,c,d){c+="."+a;a=Jr(b);d[c]=a;return c.length+a.length};
Jr=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Mr=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.la(c))};
Nr=function(){this.wd=!1;this.u=null};
Or=function(a,b,c,d){if(d)try{a.u=new window.botguard.bg(b,c?function(){return c(b)}:g.Oa)}catch(e){g.Gr(e)}else{try{a.u=new window.botguard.bg(b)}catch(e){g.Gr(e)}c&&c(b)}};
Uea=function(a){var b=Pr;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){return d(Error("Timed out waiting for snapshot"))},g.wo("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){b.u.invoke(function(d){return c(d)},!0,a)})]):Promise.resolve(null)};
Qr=function(){return g.wq("CONSENT","").startsWith("YES+")};
Sr=function(){if(!g.vo("disable_ad_status_on_html5_clients")&&(!g.vo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Qr())&&"1"!=g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Rr=!0;"google_ad_status"in window?so("DCLKSTAT",1):so("DCLKSTAT",2)};
try{g.To("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Vea.push(g.rp(function(){if(!(Rr||"google_ad_status"in window)){if(a){var b=""+g.Ua(a);(b=Vo[b])&&g.Oo(b)}Rr=!0;so("DCLKSTAT",3)}},5E3))}};
Ur=function(a,b){var c=g.Zb(b),d;return Lm(new zm(function(e,f){c.onSuccess=function(h){g.jq(h)?e(h):f(new Tr("Request failed, status="+iq(h),"net.badstatus",h))};
c.onError=function(h){f(new Tr("Unknown request error","net.unknown",h))};
c.kg=function(h){f(new Tr("Request timed out","net.timeout",h))};
d=g.pq(a,c)}),function(e){e instanceof Qm&&d.abort();
return Em(e)})};
g.Vr=function(a,b,c,d){function e(h,l,m){return Lm(h,function(n){return 0>=l||403===iq(n.xhr)?Em(new Tr("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(Ur(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new zm(function(l){setTimeout(l,h)})}
return e(Ur(a,b),c-1,d)};
Tr=function(a,b,c){$a.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Wr=function(){this.Ha=0;this.u=null};
Xr=function(a){var b=new Wr;a=void 0===a?null:a;b.Ha=2;b.u=void 0===a?null:a;return b};
Yr=function(a){var b=new Wr;a=void 0===a?null:a;b.Ha=1;b.u=void 0===a?null:a;return b};
$r=function(a){$a.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Zr;this.isTimeout=a instanceof Tr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Qm};
Zr=function(){$a.call(this,"Biscotti ID is missing from server")};
Wea=function(){if(g.vo("disable_biscotti_fetch_on_html5_clients"))return Em(Error("Fetching biscotti ID is disabled."));if(g.vo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Qr())return Em(Error("User has not consented - not fetching biscotti id."));if("1"===g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Em(Error("Biscotti ID is not available in private embed mode"));as||(as=Lm(Ur("//googleads.g.doubleclick.net/pagead/id",bs).then(cs),function(a){return ds(2,a)}));
return as};
cs=function(a){a=a.responseText;if(!pc(a,")]}'"))throw new Zr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Zr;a=a.id;Tp(a);as=Yr(a);es(18E5,2);return a};
ds=function(a,b){var c=new $r(b);Tp("");as=Xr(c);0<a&&es(12E4,a-1);throw c;};
es=function(a,b){g.Go(function(){Lm(Ur("//googleads.g.doubleclick.net/pagead/id",bs).then(cs,function(c){return ds(b,c)}),g.Oa)},a)};
fs=function(){try{var a=g.Na("yt.ads.biscotti.getId_");return a?a():Wea()}catch(b){return Em(b)}};
g.hs=function(){this.u=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=g.wq(this.u);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])&&(gs[d]=c.toString())}}};
g.js=function(a,b){return!!((is("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
ks=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
ls=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
is=function(a){a=void 0!==gs[a]?gs[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Zea=function(){var a=void 0===a?window.location.href:a;if(g.vo("kevlar_disable_theme_param"))return null;var b=vd(g.xd(5,a));if(Xea(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Yp(a).theme;return Yea.get(c)||null}catch(d){}return null};
Xea=function(a){var b=$ea.map(function(c){return c.toLowerCase()});
return!g.vo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
ms=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
ps=function(a){var b;ns()?os()==a&&(b=document):b=a;return b&&(a=Yo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
qs=function(a){return g.jb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
afa=function(){var a=document;return g.jb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
ns=function(){return!!Yo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
os=function(a){a=void 0===a?!1:a;var b=Yo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.rs=function(a){g.B.call(this);this.G=[];this.ra=a||this};
ts=function(a,b,c,d){for(var e=0;e<c.length;e++)a.R(b,c[e],d)};
g.us=function(a){for(;a.G.length;){var b=a.G.pop();b.target.removeEventListener(b.name,b.callback)}};
g.P=function(a){a=void 0===a?!1:a;g.B.call(this);this.rb=new g.Sn(a);g.C(this,this.rb)};
vs=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
ws=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.ys=function(a,b,c,d){g.P.call(this);this.C=!!b;this.G=a;this.P=c||a;this.N=!!d;this.u=new g.rs(this);g.C(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.Ae&&a.setAttribute("draggable","true"),a.style.touchAction="none");xs(this)};
zs=function(a,b,c){a.u.R(a.P,b,c,void 0,!a.C)};
xs=function(a){a.F=null;a.K=null;zs(a,As("over"),a.DD);zs(a,"touchstart",a.Xy);a.C&&zs(a,As("down"),a.UL)};
Bs=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
As=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Cs=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Zb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Zb(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||{}};
bfa=function(a){a instanceof Cs||(a=new Cs(a));return a};
Es=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=g.A();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Ds)for(b=1,c=0;c<Ds.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Ds.charCodeAt(c),b++;return a};
Fs=function(){for(var a=Es(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Gs=function(){return g.Pc(Es(),function(a){return(a&15).toString(16)}).join("")};
Hs=function(a){this.u=a};
g.Is=function(a){return new Hs({trackingParams:a})};
Js=function(a){var b=cfa++;return new Hs({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Ks=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Ls=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Ms=function(a){return g.L(Ls(void 0===a?0:a),void 0)};
g.Ns=function(a){return(a=Ms(void 0===a?0:a))?new Hs({veType:a,youtubeData:void 0}):null};
Os=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},so("csn-to-ctt-auth-info",a));return a};
g.Ps=function(a){a=void 0===a?0:a;var b=g.L(Ks(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.vo("kevlar_client_side_screens")||g.vo("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
dfa=function(a,b,c){var d=Os();(c=g.Ps(c))&&delete d[c];b&&(d[a]=b)};
Qs=function(a){return Os()[a]};
Ss=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(Ks(c))||b!==g.L(Ls(c)))if(dfa(a,d,c),so(Ks(c),a),so(Ls(c),b),0==c||g.vo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Rp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Rs,clientScreenNonce:a},g.Er)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
Ts=function(a,b){this.version=a;this.args=b};
Us=function(a,b){this.topic=a;this.u=b};
Ws=function(a,b){var c=Vs();c&&c.publish.call(c,a.toString(),a,b)};
ct=function(a,b,c){var d=Vs();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Na("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Xs[e])try{if(h&&a instanceof Us&&a!=f)try{var m=a.u,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Uk){var p=new m;m.Uk=p.version}var r=m.Uk}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ub(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){M(t)}},at[a.toString()]?g.tp()?g.rp(l):g.Go(l,0):l())});
Xs[e]=!0;bt[a.toString()]||(bt[a.toString()]=[]);bt[a.toString()].push(e);return e};
et=function(a,b,c){var d=ct(a,function(e){b.apply(c,arguments);dt(d)},c);
return d};
dt=function(a){var b=Vs();b&&("number"===typeof a&&(a=[a]),g.Fb(a,function(c){b.unsubscribeByKey(c);delete Xs[c]}))};
Vs=function(){return g.Na("ytPubsub2Pubsub2Instance")};
ft=function(a){Ts.call(this,1,arguments);this.csn=a};
g.ht=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Pc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Wb(e)||!e.trackingParams&&!e.veType)&&g.Gr(Error("Child VE logged with no data"));d={Xh:Qs(b),Fj:b};"UNDEFINED_CSN"==b?gt("visualElementAttached",c,d):a?Rp("visualElementAttached",c,a,d):g.Dq("visualElementAttached",c,d)};
g.it=function(a,b,c){var d=g.vo("use_default_events_client")?void 0:g.Er;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Xh:Qs(a),Fj:a};"UNDEFINED_CSN"==a?gt("visualElementShown",b,c):d?Rp("visualElementShown",b,d,c):g.Dq("visualElementShown",b,c)};
jt=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={Xh:Qs(b),Fj:b,hI:d};"UNDEFINED_CSN"==b?gt("visualElementHidden",c,d):a?Rp("visualElementHidden",c,a,d):g.Dq("visualElementHidden",c,d)};
kt=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={Xh:Qs(b),Fj:b};"UNDEFINED_CSN"==b?gt("visualElementGestured",c,d):a?Rp("visualElementGestured",c,a,d):g.Dq("visualElementGestured",c,d)};
efa=function(){return g.rf(Math.random()+"")};
gt=function(a,b,c){lt.push({payloadName:a,payload:b,options:c});mt||(mt=et(nt,ffa))};
ffa=function(a){if(lt){for(var b=g.q(lt),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Rp(c.payloadName,c.payload,null,c.options));lt.length=0}mt=0};
g.ot=function(a,b,c){g.ht(g.vo("use_default_events_client")?void 0:g.Er,a,b,[c])};
g.pt=function(a,b){var c=g.vo("use_default_events_client")?void 0:g.Er;g.Fb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Xh:Qs(a),Fj:a};"UNDEFINED_CSN"==a?gt("visualElementShown",d,e):c?Rp("visualElementShown",d,c,e):g.Dq("visualElementShown",d,e)})};
g.qt=function(a,b){var c=g.vo("use_default_events_client")?void 0:g.Er;g.Fb(b,function(d){jt(c,a,d,void 0,void 0)})};
g.rt=function(a,b,c){kt(g.vo("use_default_events_client")?void 0:g.Er,a,b,c)};
tt=function(){this.B=new Set;this.u=new Set;this.C=new Map};
g.wt=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.ut)():vt())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.xt=function(a){var b=vt(),c=(0,g.ut)();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.zt=function(a){try{var b=vt(),c=(0,g.ut)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.At=function(){return g.xt("yt-remote-session-screen-id")};
g.Ct=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.ak())a&&(a=g.Gc(g.Kc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.cd(ed(a)).toString(),a=ld(g.Fj(a))),g.rc(a)||(a=g.Ee("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),le(a).body.appendChild(a)));else if(e)qq(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)qq(a,b,"GET","",d);else{b:{try{var f=new kaa({url:a});if(f.C&&f.B||f.D){var h=vd(g.xd(5,a));var l=!(!h||
!h.endsWith("/aclk")||"1"!==Pd(a,"ri"));break b}}catch(m){}l=!1}l?Bt(a)?(b&&b(),c=!0):c=!1:c=!1;c||gfa(a,b)}};
Dt=function(a,b,c){c=void 0===c?"":c;Bt(a,c)?b&&b():g.Ct(a,b,void 0,void 0,c)};
Bt=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
gfa=function(a,b){var c=new Image,d=""+hfa++;Et[d]=c;c.onload=c.onerror=function(){b&&Et[d]&&b();delete Et[d]};
c.src=a};
Ht=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Ft(a)||c.some(function(e){return!Ft(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Gt(a,d.value);return a};
Gt=function(a,b){for(var c in b)if(Ft(b[c])){if(c in a&&!Ft(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Gt(a[c],b[c])}else if(It(b[c])){if(c in a&&!It(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Jt(a[c],b[c])}else a[c]=b[c];return a};
Jt=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Ft(d)?a.push(Gt({},d)):It(d)?a.push(Jt([],d)):a.push(d);return a};
Ft=function(a){return"object"===typeof a&&!Array.isArray(a)};
It=function(a){return"object"===typeof a&&Array.isArray(a)};
Kt=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.u=e?0:8;this.dataOffset=this.offset+this.u;this.B=e};
Lt=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
Mt=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
Nt=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
Ot=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
Pt=function(a){var b=a.data;var c=a.offset+a.u;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.u+=8;return b};
Qt=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.u;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.u+a.data.byteOffset,c-a.u);a.u=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
ifa=function(a){this.data=new DataView(new ArrayBuffer(a));this.u=0};
Rt=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.u,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.u+=d};
St=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.u=f};
Ut=function(a,b){this.u=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.B=Tt(this,"Sequence-Number");this.K=Tt(this,"Segment-Count");this.N=this.u["Segment-Durations-Ms"]||"";this.ingestionTime=Tt(this,"Ingestion-Walltime-Us")/1E6;this.C=(Tt(this,"First-Frame-Time-Us")+Tt(this,"First-Frame-Uncertainty-Us"))/1E6;this.Jg=Tt(this,"Target-Duration-Us")/1E6;this.G="T"==this.u["Stream-Finished"];this.D="T"==this.u.Streamable;this.cryptoPeriodIndex=Tt(this,"Crypto-Period-Index");
this.F=Tt(this,"Crypto-Period-Seconds")};
Vt=function(a){return parseInt(a.u["Start-Media-Time-Us"],10)/1E6||0};
Tt=function(a,b){return parseInt(a.u[b],10)||0};
jfa=function(a,b){this.u=a;this.duration=b};
Wt=function(a,b,c,d,e){this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.B=e;e.getUint32(4)};
Xt=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};
Zt=function(a,b){var c=g.Yt(a,0,1952868452),d=g.Yt(a,0,1953658222);if(c&&d){c.skip(1);var e=Lt(c)<<16|Mt(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=Ot(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=Lt(d)<<16|Mt(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=Ot(d);e&&d.skip(4);f&&d.skip(4);e=(h?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)h=d.u,l=Ot(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
au=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.Yt(a,0,1836476516))?$t(a):NaN};
kfa=function(a){var b=g.Yt(a,0,1937011556);if(!b)return null;b=bu(a,b.dataOffset+8,1635148593);if(!b)return null;var c=bu(a,b.dataOffset+78,1936995172),d=bu(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),Lt(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=bu(a,d.dataOffset,1886547818)){var h=bu(a,d.dataOffset,1886546020),l=bu(a,d.dataOffset,2037673328);if(!l&&(l=bu(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
Nt(h)/65536,f=Nt(h)/65536,e=Nt(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new Wt(b,c,f,e,a)}return null};
bu=function(a,b,c){for(;cu(a,b);){var d=du(a,b);if(d.type==c)return d;b+=d.size}return null};
g.Yt=function(a,b,c){for(;cu(a,b);){var d=du(a,b);if(d.type==c)return d;b=eu(d.type)?b+8:b+d.size}return null};
fu=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)};
du=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Kt(a,b,c,d)};
$t=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
gu=function(a){a=new Kt(a.data,a.offset,a.size,a.type,a.B);var b=Lt(a);a.skip(7);var c=Ot(a);if(0==b){b=Ot(a);var d=Ot(a)}else b=Pt(a),d=Pt(a);a.skip(2);for(var e=Mt(a),f=[],h=[],l=0;l<e;l++){var m=Ot(a);f.push(m);h.push(Ot(a));a.skip(4)}return{ru:c,gI:b,dB:d,jy:f,pu:h}};
cu=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};
eu=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
hu=function(a){a.skip(4);var b=Qt(a,0),c=Qt(a,0),d=Ot(a),e=Ot(a),f=Ot(a),h=Ot(a),l=Qt(a);return{sQ:b,value:c,ru:d,l4:e,R3:f,id:h,HC:l,offset:a.offset}};
iu=function(a,b){for(var c=bu(a,0,b);c;)c.markAsSkip(),c=bu(a,c.offset+c.size,b)};
ju=function(a,b){for(var c=0,d=[];cu(a,c);){var e=du(a,c);e.type==b&&d.push(e);c=eu(e.type)?c+8:c+e.size}return d};
lfa=function(a,b){var c=g.Yt(a,0,1937011556),d=g.Yt(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.Yt(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var h=e.getUint32(f.dataOffset+12);if(1701733217!=h&&1701733238!=h)return null;h=new ifa(a.byteLength+d);Rt(h,a,0,c.offset+12);h.data.setInt32(h.u,2);h.u+=4;Rt(h,a,c.offset+16,c.size-16);Rt(h,e,e.byteOffset+f.dataOffset+8,d);Rt(h,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.Yt(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(ku)return h.data;d=g.Yt(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
lu=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
mu=function(a){return String.fromCharCode.apply(null,a)};
nu=function(a,b){this.B=a;this.u=0;this.C=b||0};
ou=function(a){return a.u>=a.B.byteLength};
vu=function(a,b,c){var d=new nu(c);if(!pu(d,a))return!1;d=qu(d);if(!ru(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.C+d.u;var e=tu(d,!0);d=a+(d.C+d.u-b)+e;d=9<d?uu(d-9,8):uu(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
mfa=function(a){var b=new nu(a);wu(b);if(pu(b,[408125543,374648427,174,224]))b=qu(b);else return null;for(var c=a=null;!ou(b);){var d=tu(b,!1);if(21432==d)switch(xu(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=qu(b):yu(b)}if(!c)return null;for(var e,f=d=b=null;!ou(c);)switch(tu(c,!1)){case 30321:if(3!=xu(c))return null;break;case 30324:b=zu(c);break;case 30323:f=zu(c);break;case 30325:d=zu(c);break;case 30322:e=tu(c,!0);e=Au(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:yu(c)}return e?new Wt(a,b,f,d,e):null};
qu=function(a){var b=tu(a,!0),c=a.B.byteOffset+a.u;c=new DataView(a.B.buffer,c,Math.min(b,a.B.buffer.byteLength-c));c=new nu(c,a.C+a.u);a.u+=b;return c};
xu=function(a){for(var b=tu(a,!0),c=Bu(a),d=1;d<b;d++)c=256*c+Bu(a);return c};
zu=function(a){var b=tu(a,!0),c=0;4==b?c=a.B.getFloat32(a.u):8==b&&(c=a.B.getFloat64(a.u));a.u+=b;return c};
Cu=function(a){var b=tu(a,!0);return mu(Au(a,b))};
Bu=function(a){return a.B.getUint8(a.u++)};
tu=function(a,b){var c=Bu(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Bu(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Bu(a),d*=128;return b?c-d:c};
yu=function(a){var b=tu(a,!0);a.u+=b};
wu=function(a){var b=a.u;a.u=0;var c=!1;try{ru(a,440786851)&&(a.u=0,ru(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.Fo(d);else throw d;}a.u=b;return c};
nfa=function(a){if(!ru(a,440786851,!0))return null;var b=a.u;tu(a,!1);var c=tu(a,!0)+a.u-b;a.u=b+c;if(!ru(a,408125543,!1))return null;tu(a,!0);if(!ru(a,357149030,!0))return null;var d=a.u;tu(a,!1);var e=tu(a,!0)+a.u-d;a.u=d+e;if(!ru(a,374648427,!0))return null;var f=a.u;tu(a,!1);var h=tu(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer,
a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l};
Du=function(a){var b=a.u,c={Ly:1E6,My:1E9,duration:0,ry:0,jq:0};if(!ru(a,408125543))return a.u=b,null;c.ry=tu(a,!0);c.jq=a.C+a.u;if(ru(a,357149030))for(var d=qu(a);!ou(d);){var e=tu(d,!1);2807729==e?c.Ly=xu(d):2807730==e?c.My=xu(d):17545==e?c.duration=zu(d):yu(d)}else return a.u=b,null;a.u=b;return c};
Fu=function(a,b,c){var d=a.u,e=[];if(!ru(a,475249515))return a.u=d,null;for(var f=qu(a);ru(f,187);){var h=qu(f);if(ru(h,179)){var l=xu(h);if(ru(h,183)){h=qu(h);for(var m=b;ru(h,241);)m=xu(h)+b;e.push({ol:m,vr:l})}}}if(0<e.length&&c==e[0].ol)for(Eu&&g.Fo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].ol+=1;a.u=d;return e};
Gu=function(a){var b=a.u;a.u=0;var c=1E6;pu(a,[408125543,357149030,2807729])&&(c=xu(a));a.u=b;return c};
ofa=function(a,b){var c=a.u;a.u=0;if(160!=a.B.getUint8(a.u)&&!Hu(a)||!ru(a,160))return a.u=c,NaN;tu(a,!0);var d=a.u;if(!ru(a,161))return a.u=c,NaN;tu(a,!0);Bu(a);var e=Bu(a)<<8|Bu(a);a.u=d;if(!ru(a,155))return a.u=c,NaN;d=xu(a);a.u=c;return(e+d)*b/1E9};
Hu=function(a){if(!Iu(a)||!ru(a,524531317))return!1;tu(a,!0);return!0};
Iu=function(a){if(wu(a)){if(!ru(a,408125543))return!1;tu(a,!0)}return!0};
pu=function(a,b){for(var c=0;c<b.length;c++){if(!ru(a,b[c]))return!1;c!=b.length-1&&tu(a,!0)}return!0};
ru=function(a,b,c){c=void 0===c?!1:c;if(ou(a))return!1;for(var d=a.u;tu(a,!1)!=b;)if(yu(a),d=a.u,ou(a))return!1;c&&(a.u=d);return!0};
uu=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};
Au=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
pfa=function(a,b){this.ids=a;this.u=b};
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)};
Mu=function(a,b,c,d,e,f,h,l,m){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.gb=a;this.C=e;this.startTime=b;this.B=h||0;this.range=f||null;this.pending=l||!1;this.u=void 0===m?null:m};
Pu=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.N="";this.B=-1;this.N=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.nb=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.nb==this.range.length:void 0===p?!!this.nb:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.P=this.duration*this.nb/this.range.length,this.G=this.K+this.P):Nu(this);this.V=[];3!=this.type||0<=this.B||!this.u.We()||
g.Gr(new Sq("b168859904",Ou(this)))};
Nu=function(a){a.K=a.startTime;a.P=a.duration;a.G=a.K+a.P};
qfa=function(a,b,c){var d=!(!b||b.u!=a.u||b.type!=a.type||b.B!=a.B);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.C+b.nb==a.C+a.nb:d};
Qu=function(a){return 1==a.type||2==a.type};
Ru=function(a){return 3==a.type||6==a.type};
Su=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.nb==b.range.start+b.C:a.B==b.B?a.C+a.nb==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
Tu=function(a,b){return Su(a,b)||ee(a.G,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
Uu=function(a){return a.B+(a.D?1:0)};
rfa=function(a){1==a.length||g.jh(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].C,b.range.start+b.C+b.nb-1)};
Ou=function(a){a=Vu(a);var b="";g.Ib(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
Vu=function(a){var b={};b.itag=Wu(a.u.info);b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.nb-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.P).toFixed(1);b.off=String(a.C);b.len=String(a.nb);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
Xu=function(a,b){var c=b.B;a.N="updateWithEmsg";a.B=c;b.G&&(a.F=b.G)};
Yu=function(a,b){var c=b.gb;a.N="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Nu(a)};
Zu=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
$u=function(a,b){if(0===a.u.length)return!1;var c=a.u[a.u.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
av=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
bv=function(a){a.D=void 0;a.B=0;a.C=0};
cv=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
dv=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
ev=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!cv(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);bv(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
fv=function(a,b,c){a=ev(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
gv=function(a){a=fv(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
hv=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
iv=function(a,b){a.focus(b);return cv(a,b,4)?dv(a).getUint32(b-a.C):256*(256*(256*hv(a,b)+hv(a,b+1))+hv(a,b+2))+hv(a,b+3)};
jv=function(a,b,c){this.info=a;this.u=b instanceof Zu?b:new Zu([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
kv=function(a){return ev(a.u)};
lv=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=kv(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};
mv=function(a,b,c){var d;if(!(d=!Su(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?$u(a.u,c.u[0]):1);d=c}if(d)return null;c=new Pu(a.info.type,a.info.u,a.info.range,a.info.N,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.nb,a.info.F,a.info.D);d=b.info;c.nb+=d.nb;c.range&&(c.P+=d.P);c.G=d.G;c.D=d.D;c.F=c.F||d.F;d=new Zu;av(d,a.u);av(d,b.u);c=new jv(c,d,a.C);c.B=b.B||a.B;if(a=c.info.range)a=c.u,a=!(1===a.u.length&&0<a.u[0].byteOffset);a&&(c.C=!1);return c};
ov=function(a){g.nv(a.info.u.info)||a.info.u.info.Jd();if(-1!=a.D)return a.D;if(a.B&&Vt(a.B))return a.D=Vt(a.B),a.D;if(g.nv(a.info.u.info)){var b=kv(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;cu(b,f);){var h=du(b,f);1936286840==h.type?e=h.data.getUint32(h.dataOffset+8):1836476516==h.type?e=$t(h):1952867444==h.type&&isNaN(d)&&(d=fu(h));f=eu(h.type)?f+8:f+h.size}!e&&c&&(e=au(c));b=d/e}else b=new nu(kv(a)),c=a.C?b:new nu(new DataView(a.info.u.u.buffer)),d=Gu(c),c=b.u,b.u=0,Hu(b)?ru(b,231)?(d=xu(b)*d/1E9,
b.u=c,b=d):(b.u=c,b=NaN):(b.u=c,b=NaN);a.D=b||a.info.K;return a.D};
qv=function(a,b){0<a.F&&(b-=a.F);var c=ov(a)+b;pv(a,c);a.F=b};
pv=function(a,b){g.nv(a.info.u.info)||a.info.u.info.Jd();a.D=b;if(g.nv(a.info.u.info)){for(var c=kv(a),d=a.info.u.u,e=NaN,f=NaN,h=0;cu(c,h);){var l=du(c,h);isNaN(e)&&(1936286840==l.type?e=l.data.getUint32(l.dataOffset+8):1836476516==l.type&&(e=$t(l)));if(1952867444==l.type){!e&&d&&(e=au(d));var m=fu(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=eu(l.type)?h+8:h+l.size}return!0}c=new nu(kv(a));e=a.C?c:new nu(new DataView(a.info.u.u.buffer));d=b;f=Gu(e);e=c.u;c.u=0;if(Hu(c)&&ru(c,231))if(h=tu(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>h)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c};
rv=function(a){g.nv(a.info.u.info)||a.info.u.info.Jd();if(a.B&&6==a.info.type)return a.B.Jg;if(g.nv(a.info.u.info)){var b=kv(a);var c=0;b=ju(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=gu(d.value),c+=d.pu[0]/d.ru;c=c||NaN;if(!(0<=c))a:{c=kv(a);b=a.info.u.u;d=0;for(var e,f=0;cu(c,d);){var h=du(c,d);if(1836476516==h.type)e=$t(h);else if(1836019558==h.type){!e&&b&&(e=au(b));if(!e){c=NaN;break a}var l=bu(h.data,h.dataOffset,1953653094),m=e,n=bu(l.data,l.dataOffset,1952868452);l=bu(l.data,
l.dataOffset,1953658222);var p=Nt(n);Nt(n);p&2&&Nt(n);n=p&8?Nt(n):0;var r=Nt(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var D=Ot(l);t&&Nt(l);p&&Nt(l);for(var E=t=0;E<D;E++){var H=w?Nt(l):n;x&&Nt(l);p&&0==E||!y||Nt(l);r&&Nt(l);t+=H}f+=t/m}d=eu(h.type)?d+8:d+h.size}c=f||NaN}}else e=new nu(kv(a)),c=a.C?e:new nu(new DataView(a.info.u.u.buffer)),c=ofa(e,Gu(c));return c||a.info.P};
tv=function(a){var b=kv(a);var c=(c=g.Yt(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.Yt(b,0,1836476516))?$t(b):a?au(a):NaN);return c};
uv=function(a){if(!a.B){g.nv(a.info.u.info)||a.info.u.info.Jd();if(g.nv(a.info.u.info)){var b=kv(a),c=bu(b,0,1701671783);if(c){var d=hu(c);var e=d.sQ;d=Xt(d.HC);if(b=bu(b,c.offset+c.size,1701671783)){b=hu(b);for(var f in b)if(c=Xt(b.HC),d&&c)for(var h in c)d[h]=c[h]}e=d?new Ut(d,e):null}else e=null}else{e=new nu(kv(a));f=e.u;e.u=0;d=h=null;if(pu(e,[408125543,307544935,29555,26568]))for(b=qu(e);!ou(b);)c=tu(b,!1),17543==c?d=Xt(Cu(b)):17827==c?h=Cu(b):yu(b);e.u=f;e=d?new Ut(d,h):null}a.B=e}};
vv=function(){this.u=.125;this.B=!1;this.C=0;this.Ue=!1};
wv=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Ym?!1:c.Ym;var e=new vv;e.B=a.ca("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.Q(a.experiments,"html5_time_based_consolidation_ms");a.ca("html5_resume_streaming_requests")&&a.ca("html5_defer_slicing")&&(e.u=0);e.Ue=d||c;return e};
sfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Up(b||"");var c={};g.Fb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.R=function(a,b){return"true"===a.flags[b]};
g.Q=function(a,b){return Number(a.flags[b])||0};
g.xv=function(a,b){var c=a.flags[b];return c?c.toString():""};
g.yv=function(){this.D=new vv;this.Fz=this.Ez=!1;this.vz=2;this.G=20971520;this.K=8388608;this.F=120;this.Ga=3145728;this.Y=62914560;this.Ka=10485760;this.xz=this.yz=this.Df=0;this.ND=!1;this.N=NaN;this.no=0;this.zr=this.GF=2;this.Pi=3;this.Nz=2;this.ba=2097152;this.Lz=1048576;this.V=!1;this.Oi=1800;this.sz=5;this.Ef=10;this.X=15;this.de=1;this.u=1.15;this.B=1.05;this.Bz=!0;this.da=!1;this.Oz=.8;this.EG=this.Bb=!1;this.Qa=6;this.Ve=this.za=!1;this.mo=.5;this.Rb=0;this.Uq=this.Tb=!1;this.Rh=this.Cf=
0;this.xC=2;this.eb=5E3;this.kG=6;this.Aa=!1;this.P=.5;this.dc=2;this.ac=this.PB=0;this.qC=1.5;this.rC=this.Qj=.5;this.he=15;this.rz=1;this.Qz=this.Cz=this.Ph=!1;this.uz=0;this.FF=this.bj=this.PA=this.Iz=this.JG=this.Sh=this.Hz=this.Dz=!1;this.Li=0;this.Rz=this.TG=this.Tz=this.ce=!1;this.Af=0;this.Dc=this.rb=this.qz=this.XF=this.Ni=this.ka=this.aB=this.Oh=this.Sz=!1;this.ha=!0;this.Qh=this.ea=this.Gz=this.Hk=!1;this.sF=!0;this.Qi=!1;this.C="";this.Pj=!1;this.YQ=1048576;this.HG=this.Az=this.md=this.Vg=
!1;this.Bf=46800;this.tb=this.LD=this.Zq=this.ee=this.ue=!1;this.oF=!0;this.ra=this.Is=this.Jz=this.Pz=this.Rj=this.Hs=this.Fr=this.Xz=!1;this.zd=0;this.nF=!1;this.Ra=0;this.WF="";this.Jt=this.zs=!1;this.Mb=!0;this.Pc=this.Sq=this.zz=this.BG=this.Qr=this.PE=this.Mi=!1;this.zf=0;this.Oj=!1};
tfa=function(a,b){1080<b.La().yc&&!a.Ez&&(a.G=36700160,a.K=5242880,a.Ga=10485760,a.ba=4194304,a.Ez=!0);2160<b.La().yc&&!a.Fz&&(a.G=104857600,a.N=13107200,a.Fz=!0);a.Lz=Math.max(65536,Math.min(a.ba,5*b.u))};
Av=function(a){a=a.split("");zv.Ja(a,69);zv.yK(a,54);zv.V7(a,2);zv.Ja(a,56);zv.V7(a,1);zv.yK(a,12);zv.V7(a,3);zv.yK(a,16);return a.join("")};
Bv=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Gr(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Cv=function(a,b){return b&&b.test(a)?!0:!1};
Ev=function(a){return(a=Dv&&Dv.exec(a))?a[0]:""};
Fv=function(a){var b=void 0===b?!1:b;return Bv(Cv(a,ufa),a,b,"Trusted Stream URL")};
g.Gv=function(a){var b=void 0===b?!1:b;return Bv(Cv(a,vfa),a,b,"Trusted Image URL")};
Hv=function(a){var b=void 0===b?!1:b;return Bv(Cv(a,wfa),a,b,"Trusted Promoted Video Domain URL")};
yfa=function(a){var b=void 0===b?!1:b;return Bv(Cv(a,xfa),a,b,"Drm Licensor URL")};
Iv=function(a,b){b=void 0===b?!1:b;return Bv(Cv(a,zfa),a,b,"Captions URL")};
Jv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);g.an(a,document.location.hostname);document.location.port&&g.bn(a,document.location.port);return a.toString()};
Kv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);return a.toString()};
Lv=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
Nv=function(a){Mv(a);return a.C};
Ov=function(a){return a.B?pc(a.B,"local"):"local"===a.scheme};
Pv=function(a){Mv(a);return g.Mb(a.u,function(b){return null!==b})};
Qv=function(a){Mv(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.qd();b=new g.Zm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.u.replace(/^[^.]*/,""),g.an(b,"r"+d+"---"+a[1]+c),b=new Lv(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.an(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.an(b,"www.youtube.com"),c=b.toString()):c=Jv(c);b=new Lv(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Mv=function(a){if(a.B){if(!Fv(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.gn(a.B);a.scheme=b.F;a.C=b.u+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.u;a.u=Rv(c);g.Wa(a.u,
Sv(b.C.toString()));g.Wa(a.u,d);"index.m3u8"===a.u.file&&(delete a.u.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=Sda(b),a.set("n",b))}};
Afa=function(a){Mv(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(Pv(a)){var c=[];g.Ib(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Rv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Tv(c,a[b],a[b+1]);return c};
Sv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Tv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Tv=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};
Uv=function(a){this.Vf=a;this.u={};this.url=""};
Vv=function(a,b){var c=b.indexOf("?");if(0<c){var d=Sv(b.substr(c+1));g.Ib(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=Rv(b);g.Ib(c,function(e,f){this.set(f,e)},a)};
Bfa=function(a){var b=a.Vf.qd(),c=[];g.Ib(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Pv(a.Vf)?"&":"?";return b+a+d};
Wv=function(a,b){var c=new Lv(b),d=c.get("req_id");d&&a.set("req_id",d);g.Ib(a.u,function(e,f){c.set(f,null)});
return c};
Cfa=function(){this.C=this.u=this.B=this.started=this.D=0};
Dfa=function(a){a.D=(0,g.O)();a.started+=1};
Xv=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
Yv=function(a,b){a[b]||(a[b]=new Cfa);return a[b]};
Efa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
$v=function(a,b,c){var d=Yv(c,Nv(a.u));if(d.B>=b.xC||1<=d.u)if(a=Zv(a),c=Yv(c,Nv(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
Ffa=function(a,b){var c=b?Zv(a):a.u;return new Uv(c)};
Zv=function(a){a.C||(a.C=Qv(a.D));return a.C};
aw=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.O)():!0};
g.bw=function(a,b,c){b.Vf===a.u&&(a.u=Wv(b,c));b.Vf===a.C&&(a.C=Wv(b,c))};
cw=function(a,b){this.B=a[0].u.B;this.C=b||"";this.G=this.F="";this.u=a;this.range=this.u[0].range&&0<this.u[0].nb?rfa(this.u):null;this.D=this.bf=NaN;this.K=this.requestId=null};
dw=function(a){return!Qu(a.u[a.u.length-1])};
ew=function(a){return 4==a.u[a.u.length-1].type};
g.fw=function(a,b,c){if(a.G){var d=new Uv(new Lv(a.G));a.F?Vv(d,a.F):a.C&&Vv(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new Uv(new Lv(a.C)):(b=null===a.K?$v(a.B,b,c):a.K,d=Ffa(a.B,b),a.C&&Vv(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.bf)||d.set("headm",a.bf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.N&&g.Ib(a.N,function(e,f){d.set(f,e)});
return d};
gw=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.P*a.u.info.u)};
hw=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=Lu(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.C&&0<=a.C.indexOf("/range/")||"1"==a.B.D.get("defrag")||"1"==a.B.D.get("otf"))return null;d=Lu(0,4096)}else if(e.u.info.video)return null;c=new Pu(5,e.u,d,"createProbeRequestInfo_"+e.N,e.B);a=new cw([c],a.C);a.K=b;return a};
iw=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
lw=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||jw(a,b);this.yc=g.kw[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=h)||(a=g.kw[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||"";this.streamType=n||0};
mw=function(a){return 1280<=a.width||720<=a.height};
nw=function(a){return"smpte2084"===a.u||"arib-std-b67"===a.u};
jw=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=ow[0],f=0;f<ow.length;f++){var h=ow[f],l=g.kw[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
rw=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.B=void 0===e?null:e;this.Cd=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.F=!0;this.C=null;this.containerType=pw(b);this.u=h||0;this.D=l||0;this.Fb=qw[Wu(this)]||""};
Wu=function(a){return a.id.split(";",1)[0]};
tw=function(a){return 0<a.id.indexOf(";")?a.id.split(";")[1]:null};
uw=function(a){return"9"===a.Fb||"("===a.Fb||"9h"===a.Fb||"(h"===a.Fb};
vw=function(a){return"9h"===a.Fb||"(h"===a.Fb};
ww=function(a){return"1"===a.Fb};
g.nv=function(a){return 1===a.containerType};
xw=function(a){return"application/x-mpegURL"===a.mimeType};
yw=function(a){return a.includes("vtt")||a.includes("text/mp4")};
pw=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};
zw=function(a,b,c,d,e){var f=new iw;b in g.kw||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.kw[b],d=Math.round(16*e/9));d=new lw(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new rw(c,a,f,d)};
Aw=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.F=!1;this.G=null;this.P=0;this.B=new Efa(a);this.D=null;this.V=NaN;this.C=null};
g.Bw=function(){this.u=0;this.B=new Float64Array(128);this.C=new Float64Array(128);this.F=1;this.D=!1};
Cw=function(a){a.B.length<a.u+1&&a.resize(2*a.B.length)};
Dw=function(a,b,c,d,e,f){Aw.call(this,a,b,c||void 0,d||void 0);this.N=null;this.index=new g.Bw;this.K=e;this.lastModified=f};
Ew=function(a,b,c,d){for(var e=[];b<=a.index.Qb();b++){var f=a.index,h=b;f=Lu(f.Ct(h),h+1<f.u||f.D?f.B[h+1]-f.B[h]:-1);h=a.index.Fe(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.Qb()&&m+n==f.length;e.push(new Pu(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new cw(e)};
Gw=function(){void 0===Fw&&(Fw=g.jo());return Fw};
Iw=function(a){a=void 0===a?!1:a;var b=Gw();if(!b)return Hw={};if(!Hw||a)try{var c=b.get("yt-player-lv");Hw=JSON.parse(c||"{}")}catch(d){Hw={}}return Hw};
Jw=function(a){var b=Gw();if(b){var c=JSON.stringify(a);b.set("yt-player-lv",c);Hw=a}};
Kw=function(a){return Iw()[a]||0};
Lw=function(){var a=Iw();return Object.keys(a)};
Mw=function(a){var b=Iw();return Object.keys(b).filter(function(c){return b[c]===a})};
Nw=function(a,b,c){c=void 0===c?!1:c;var d=Iw(!0);if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];Jw(d)};
Gfa=function(a){var b=Iw(!0);b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);Jw(b);JSON.stringify(b);return b};
Ow=function(a){return!!a&&1===Kw(a)};
Hfa=function(){var a=Gw();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
Tw=function(){return Ue(this,function b(){var c,d,e,f;return Aa(b,function(h){if(1==h.u){c=Gw();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(Pw)return h.Kd(2);d=Aq().u(Qw);e=sea(d);f=c.get("yt-player-lv-id");return f?f===e?h.Kd(2):ra(h,Rw(),5):(c.set("yt-player-lv-id",e),h.Kd(2))}2!=h.u&&(c.set("yt-player-lv-id",e),Pw=!0);return h["return"](new Promise(function(l,m){Sw().open().then(l,m)}))})})};
Uw=function(a,b){var c=IDBKeyRange.bound(b+"|",b+"~");return Bea($q(a,"index"),c).then(function(d){return d.join(",")})};
Ifa=function(){return Ue(this,function b(){var c;return Aa(b,function(d){c=Sw();return d["return"](c["delete"]())})})};
Vw=function(a,b){return Ue(this,function d(){var e;return Aa(d,function(f){if(1==f.u)return ra(f,Tw(),2);e=f.B;return f["return"](Yq(e,["index","media","metadata","playerdata"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");l=[$q(h,"index")["delete"](l),$q(h,"media")["delete"](l),$q(h,"playerdata")["delete"](l)];b&&l.push($q(h,"metadata")["delete"](a));return yr.all(l).then(function(){})}))})})};
Kfa=function(){return Ue(this,function b(){var c;return Aa(b,function(d){if(1==d.u)return ra(d,Tw(),2);c=d.B;return d["return"](Yq(c,["index","media"],"readwrite",function(e){var f={};return er($q(e,"index"),{},function(h){var l=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),m=yr.resolve(void 0);if(l){var n=l[1];l=l[2];f[n]=f[n]||{};f[n][l]=Ww(h.getValue())}else m=h["delete"]().then(function(){}),Jfa("Deleting unexpected index key "+h.getKey());
return yr.all([h["continue"](),m]).then(function(p){return g.q(p).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value;
var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=Gfa(h);return Cea($q(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||($q(e,"media")["delete"](r.getKey()),r.getKey());return r["continue"]()}).then(function(){return p})})}))})})};
Lfa=function(a,b,c){Ue(this,function e(){var f;return Aa(e,function(h){if(1==h.u)return ra(h,Tw(),2);f=h.B;return h["return"](Yq(f,["index","media"],"readwrite",function(l){var m={},n=b;return er($q(l,"index"),{},function(p){var r=p.getKey().match(/^([\w\-_]+)\|(a|v)$/);if(r){r=r[1];var t=p.getValue();t=Xp(t);!m[r]&&0<t.length&&(t=+t[0].mket,isNaN(t)||(m[r]=t,n+=t))}return p["continue"]()}).then(function(){for(var p=Lw(),r=[];0<p.length&&n>c;){var t=p.shift();
if(t!==a){n-=m[t]||0;delete m[t];var w=IDBKeyRange.bound(t+"|",t+"~");r.push($q(l,"index")["delete"](w));r.push($q(l,"media")["delete"](w));Nw(t,0)}}return yr.all(r).then(function(){})})}))})})};
Mfa=function(a,b){return Ue(this,function d(){var e,f;return Aa(d,function(h){if(1==h.u)return ra(h,Tw(),2);e=h.B;f={details:b};return ra(h,ar(e,"metadata",f,a),0)})})};
Nfa=function(a,b){var c=Math.floor(Date.now()/1E3);Ue(this,function e(){var f,h;return Aa(e,function(l){if(1==l.u)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},ra(l,Tw(),2);h=l.B;return ra(l,ar(h,"playerdata",f,a),0)})})};
Yw=function(a,b,c,d,e){return Ue(this,function h(){var l,m,n;return Aa(h,function(p){if(1==p.u)return l=Kw(a),4===l?p["return"](Promise.resolve(4)):ra(p,Tw(),2);m=p.B;n=Lm(Yq(m,["index","media"],"readwrite",function(r){if(void 0!==d&&void 0!==e){var t=""+a+"|"+b.id+"|"+d;t=Zq($q(r,"media"),e,t)}else t=yr.resolve(void 0);var w=Xw(a,b.isVideo()),x=Xw(a,!b.isVideo());w=Zq($q(r,"index"),c,w);var y=Ww(c);r=y?$q(r,"index").get(x):yr.resolve(void 0);return yr.all([r,t,w]).then(function(D){D=g.q(D).next().value;
var E=Kw(a);4!==E&&y&&void 0!==D&&Ww(D)&&(E=1,Nw(a,E));return E})}),function(r){var t=Kw(a);
if(4===t)return t;Nw(a,4);throw r;});
return p["return"](new Promise(function(r,t){n.then(r,t)}))})})};
Ofa=function(a){return Ue(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return ra(e,Tw(),2);d=e.B;return e["return"](Yq(d,["index"],"readonly",function(f){return Uw(f,a)}))})})};
Pfa=function(a,b,c){return Ue(this,function e(){var f;return Aa(e,function(h){if(1==h.u)return ra(h,Tw(),2);f=h.B;return h["return"](Yq(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return $q(l,"media").get(m)}))})})};
Qfa=function(a){return Ue(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return ra(e,Tw(),2);d=e.B;return e["return"](d.get("playerdata",a))})})};
Rfa=function(a){return Ue(this,function c(){var d,e;return Aa(c,function(f){if(1==f.u)return ra(f,Tw(),2);if(3!=f.u)return d=f.B,ra(f,d.get("metadata",a),3);e=f.B;return f["return"](null===e||void 0===e?void 0:e.details)})})};
Sfa=function(a){return Ue(this,function c(){var d;return Aa(c,function(e){if(1==e.u)return ra(e,Tw(),2);d=e.B;return e["return"](Yq(d,["index","metadata"],"readonly",function(f){return Zw(f,a)}))})})};
Tfa=function(){return Ue(this,function b(){var c;return Aa(b,function(d){if(1==d.u)return ra(d,Tw(),2);c=d.B;return d["return"](Yq(c,["index","metadata"],"readonly",function(e){return yr.all(Lw().map(function(f){return Zw(e,f)}))}))})})};
Zw=function(a,b){var c=$q(a,"metadata").get(b);return Uw(a,b).then(function(d){var e={videoId:b,totalSize:0,downloadedSize:0,status:Kw(b),details:null};if(!d.length)return e;d=Xp(d);d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.totalSize+=+f.mket*+f.avbr,e.downloadedSize+=f.hasOwnProperty("dlt")?(+f.dlt||0)*+f.avbr:+f.mket*+f.avbr;return c.then(function(h){e.details=(null===h||void 0===h?void 0:h.details)||null;return e})})};
Ufa=function(a){return Ue(this,function c(){return Aa(c,function(d){Nw(a,0);return d["return"](Vw(a,!0))})})};
Rw=function(){return Ue(this,function b(){var c;return Aa(b,function(d){c=Gw();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=Gw();e&&(e.remove("yt-player-lv"),Hw=null);return ra(d,Ifa(),0)})})};
Ww=function(a){return!!a&&-1===a.indexOf("dlt")};
Xw=function(a,b){return""+a+"|"+(b?"v":"a")};
Jfa=function(){};
$w=function(){var a=this;this.u=this.B=jaa;this.promise=new zm(function(b,c){a.B=b;a.u=c})};
Vfa=function(a,b){this.K=a;this.u=b;this.F=a.YQ;this.G=new Uint8Array(this.F);this.D=this.C=0;this.B=null;this.N=[];this.V=this.X=null;this.P=new $w};
Wfa=function(a){var b=ax(a);b=Yw(a.K.C,a.u.info,b);bx(a,b)};
cx=function(a){return!!a.B&&a.B.F};
ex=function(a,b){if(!cx(a)){if(1==b.info.type)a.X=Lu(0,b.u.getLength());else if(2==b.info.type){if(!a.B||1!=a.B.type)return;a.V=Lu(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.B.type&&!Su(a.B,b.info)&&(a.N=[],b.info.B!=Uu(a.B)||0!=b.info.C))return;if(b.info.D)a.N.map(function(c){return dx(a,c)}),a.N=[];
else{a.N.push(b);a.B=b.info;return}}a.B=b.info;dx(a,b);Xfa(a)}};
dx=function(a,b){for(var c=0,d=fv(b.u);c<d.length;){var e=Math.min(d.length-c,a.G.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.G.set(f,a.C);a.C+=e;c+=e;if(a.C==a.G.length){if(b.info===a.B&&cx(a)&&c===d.length)break;e=ax(a);e=Yw(a.K.C,a.u.info,e,a.D,a.G);bx(a,e);a.G=new Uint8Array(a.F);a.C=0;a.D+=1}}};
Xfa=function(a){if(cx(a)){var b=new Uint8Array(a.G.buffer,0,a.C);var c={lmt:a.u.lastModified,docid:a.K.C,fmtid:a.u.info.id,type:a.u.info.mimeType.split(";")[0],csz:a.F,clen:a.D*a.F+a.C};c="local://localhost/videoplayback?"+Vp(c);c={itag:Wu(a.u.info),type:a.u.info.mimeType,bitrate:8*a.u.info.u,lmt:""+a.u.lastModified,init:a.X.toString(),index:a.V.toString(),mket:Math.round(a.u.index.fk()).toString(),avbr:Math.round(a.u.info.D).toString(),url:c};var d=tw(a.u.info);d&&(c.xtags=d);c=Vp(c);b=Yw(a.K.C,
a.B.u.info,c,a.D,b);bx(a,b,!0)}};
ax=function(a){var b={itag:Wu(a.u.info),dlt:Math.round(a.B?a.B.G:0),mket:Math.round(a.u.index.fk()),avbr:Math.round(a.u.info.D),csz:a.F,lmt:a.u.lastModified};(a=tw(a.u.info))&&(b.xtags=a);return Vp(b)};
bx=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.P.resolve(d)},function(d){a.P.reject(d)})};
Yfa=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 h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b};
Zfa=function(a){a=ju(a,1886614376);g.Fb(a,function(b){return!b.B});
return g.Pc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
$fa=function(a){var b=g.kh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Fb(a,function(e){c.set(e,d);d+=e.length});
return c};
aga=function(a,b){this.B=a;this.K=this.G=!1;this.length=b?b:0;this.C=0;this.D=null;this.u=[];this.F=null;this.length?1!=this.B.length||this.B[0].nb||(this.B[0].nb=this.length):1==this.B.length||g.jh(this.B,function(c){return!!c.range})};
cga=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
fx=function(a,b,c){var d=this;this.vk=a;this.Yd=b;this.loaded=this.status=0;this.error="";a=Ku(this.vk.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new Zu;dga(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
dga=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,D;return Aa(c,function(E){if(1==E.u){d.status=200;e=d.vk.get("docid");f=md(d.vk.get("fmtid")||"");h=+(d.vk.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=E.u)return p<=n?ra(E,Pfa(e,f,p),5):E.Kd(0);r=E.B;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);D=new Uint8Array(r.buffer,
x,y);d.u.append(D);d.loaded+=y;d.loaded<l.length&&d.Yd(g.A(),d.loaded);p++;return E.Kd(2)})})};
ega=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
hx=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.rg?!1:e.rg;var f=void 0===e.oi?!1:e.oi,h=void 0===e.Jl?!1:e.Jl,l=e.ti,m=e.gb;e=e.bf;this.ea=null;this.ba=this.u=NaN;this.za=0;this.X=this.da=this.B=this.D=NaN;this.ra=this.ha=this.isActive=!1;this.C=0;this.Y=NaN;this.N=this.G=Infinity;this.V=NaN;this.Aa=!1;this.K=this.P=NaN;this.F=this.ka=void 0;this.rg=d;this.oi=f;this.Jl=h;this.ti=l;this.gb=m;this.bf=e;this.schedule=a;this.Ga=b;this.Ka=c;this.snapshot=gx(this.schedule)};
ix=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.Ga.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.ba-a.u).toFixed(),elbowBytes:a.za.toFixed()}};
fga=function(a){a.u=g.A();a.D=a.u;a.B=0;a.da=a.u;a.X=0;a.F&&(a.F=[]);a.ha=!1;a.ra=!1;a.C=0;a.snapshot=gx(a.schedule);a.G=Infinity;a.N=Infinity;jx(a);kx(a,a.u);a.Y=(a.P-a.u)/1E3;a.K=NaN;a.ka=void 0};
lx=function(a){!a.K&&a.ea&&(a.K=a.ea(),3===a.K&&(a.ka=new ega(a.schedule)));return a.K};
rx=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=lx(a);if(3===h&&f){var l=a.ka;l.B.push({a4:f,s4:isNaN(l.u)?NaN:d-l.u,j4:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&px(a,.05,f)):px(a,e,f),a.ra=!0):mx(a,c)&&(1===h&&(d=(b-a.u)/1E3,nx(a)||a.oi||ox(a.schedule,d)),a.ba=b,a.za=c,a.isActive=!0);a.oi||qx(a.schedule,e,f);a.D=b;a.B=c};
px=function(a,b,c){if(!a.oi){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Jl;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.G=sx())}};
ux=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(tx(b-a.da,c-a.X));a.da=b;a.X=c};
mx=function(a,b){return b?a.ti&&1!==lx(a)?!0:2048<=b:!1};
vx=function(a){return mx(a,a.B)};
jx=function(a){a.V=a.u+1E3*a.snapshot.delay;a.Aa=!1};
wx=function(a,b){a.ti&&void 0!==a.gb&&void 0!==a.bf&&(a.G=Math.min(a.G,gga(a.ti,a.gb,a.u,b)),a.N=Math.min(a.N,hga(a.ti,a.gb,a.u,b,a.bf)),a.G<=a.u?jx(a):(a.V=a.G,a.Aa=!0))};
nx=function(a){a.ti&&wx(a,g.A());return a.Aa};
kx=function(a,b){b=void 0===b?g.A():b;if(a.ti){wx(a,b);var c=a.K?a.ti?1!==lx(a):!1:a.G!==a.N;if(c){if(c=a.N,b<c){a.P=a.N;return}}else c=a.G;c=Math.max(c,a.V)}else c=a.V;var d=a.Ga-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=vx(a)?d+b:d+Math.max(b,c);a.P=d};
tx=function(a,b){for(var c="";4095<a;)c+=tx(4095,0),a-=4095;for(;4095<b;)c+=tx(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))};
xx=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
yx=function(a){if(a.So())return!1;a=a.Wd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
zx=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.Y=b;this.X=c;this.ba=d;this.policy=e;this.status=0;this.response=void 0;this.V=!1;this.B=0;this.N=NaN;this.aborted=this.G=this.P=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new Zu;this.id=iga++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
Bx=function(a){a.C.read().then(function(b){if(!a.la()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,Ax(a)?a.u.append(e):a.F=e,a.Y(d,a.B,c),Bx(a))}},function(b){a.onError(b)}).then(void 0,M)};
Ax=function(a){var b=a.Wd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.Ue&&yx(a)&&b};
Cx=function(a,b,c,d){var e=this;this.status=0;this.la=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()};
this.C=c;this.D=b;this.F=d;a=Eo(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",Eo(function(f){e.Yd(f)}),!1)};
Ex=function(){this.C=this.u=0;this.B=Array.from({length:Dx.length}).fill(0)};
Fx=function(){};
jga=function(){this.name="gtfta";this.startTimeMs=(0,g.O)();this.UH=!1};
Ix=function(a,b){var c=this;return Gx?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.O)();e=b.apply(c,e);Hx(a,(0,g.O)()-f);return e}:b};
Jx=function(a,b){if(Gx){var c=(0,g.O)();b();Hx(a,(0,g.O)()-c)}else b()};
Hx=function(a,b){a in Kx||(Kx[a]=new Ex);Kx[a].uF(b)};
Lx=function(){return g.xt("yt-player-quality")||"auto"};
Mx=function(){var a={values:{},hj:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
Nx=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Px=function(a,b){return+Ox()[Nx(a,b)]||8192};
Ox=function(){return g.xt("yt-player-performance-cap")||{}};
Qx=function(a){g.wt("yt-player-watch-later-pending",a)};
Rx=function(){return g.xt("yt-player-headers-readable")||!1};
Sx=function(a){g.wt("yt-player-playback-on-reload",a)};
Tx=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
Wx=function(a,b,c,d,e,f){var h=this,l=void 0===f?{}:f;f=void 0===l.QE?[]:l.QE;var m=void 0===l.xq?!1:l.xq;l=void 0===l.il?0:l.il;this.B=a;this.info=b;this.timing=c;this.timing.ea=function(){var n;if(kga(h)){if(n=h.B.FF&&!(!window.performance||!window.performance.now)&&h.u&&h.u.Xm()&&h.u.Ii())n=h.u,n=n.policy.Ue&&yx(n);n=n?h.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.ha=d;this.V=e;this.state=1;this.xq=m;this.P=++lga;this.D=g.fw(this.info,this.B,this.ha);this.D.set("rn",this.P.toString());this.D.set("rbuf",(1E3*l).toFixed().toString());this.xq&&this.D.set("smb","1");this.ka=f||null;this.N=mga(this);this.K=0;this.F=null;this.G=0;this.C=null;this.X=0;this.Aa=this.da=!1;this.ba=this.Y=null;this.ra=this.B.Oi*(this.B.Mb?Xv(Ux(this)):1);this.ea=new g.G(this.mQ,this.ra,this);this.info.B.F=(0,g.O)();Dfa(Ux(this));fga(this.timing);try{this.u=nga(this),this.ea.start()}catch(n){g.Fo(n),
this.F="net.ssl",g.um(function(){return Vx(h)})}};
Xx=function(a){var b=ix(a.timing);b.shost=Nv(a.D.Vf);b.rn=a.P.toString();a.G&&(b.rc=a.G.toString());b.itag=""+Wu(a.info.u[0].u.info);b.ml=""+ +a.info.u[0].u.me();b.sq=""+a.info.u[0].B;if(a.D){var c=a.D.Vf;Mv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.G&&500!=a.G&&503!=a.G||(b.fmt_unav="true");a.u&&a.u.Sl()&&(b.msg=a.u.Sl());a.xq&&(b.smb="1");a.C&&(a=a.C.u,a.length&&lv(a[0],b));return b};
mga=function(a){if(!(ew(a.info)&&a.info.rg()&&a.B.Ph&&a.ka)||2<=a.info.B.B||"auto"!==Lx()||!Rx())return!1;var b=a.D.get("aitags");if(!b)return!1;var c=md(b).split(","),d=[];g.Fb(a.ka,function(e){g.nb(c,e)&&d.push(e)});
if(!d.length)return!1;a.D.set("altitags",ld(d.join(",")));return!0};
Ux=function(a){return Yv(a.ha,Nv(a.D.Vf))};
oga=function(a,b){if(400<=b.status)return a.F="net.badstatus",6;if(!b.us())return a.F=204==b.status?"net.nocontent":"net.connect",6;var c="";if(Yx(a)){var d=b.nx();2048>=d.getLength()&&(c=fv(d),c=mu(c),c=Fv(c)?c:"")}if(c){d=Ux(a);(0,g.O)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.D;g.bw(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.lt();if((d=!!a.info.range&&a.info.range.length)&&d!=c||b.iy())return a.F="net.closed",6;Zx(a,!0);if(a.B.oF&&!d&&a.C&&(d=a.C.u,d.length&&!lv(d[0])))return a.F="net.closed",
6;e=$x(a)?b.Wd("X-Bandwidth-Est"):0;if(d=$x(a)?b.Wd("X-Bandwidth-Est3"):0)a.Aa=!0,a.B.Hz&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ha){d.ha=!0;if(!d.oi){e=e>d.u&&4E12>e?e:g.A();ux(d,e,c);rx(d,e,c);var h=lx(d);if(2===h&&f)px(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.P.u||!d.schedule.P.u)&&!d.ra&&vx(d)&&px(d,f,c),vx(d)&&ay(d.schedule,c,d.C);by(d.schedule,(e-d.u)/1E3||.05,d.B,d.Y,d.rg,d.Jl)}d.deactivate()}c=Ux(a);(0,g.O)();c.started=0;c.B=0;c.u=0;a.info.B.B=0;(0,g.O)()<
cy+3E5||!a.D||Ov(a.D.Vf)||!(c=Nv(a.D.Vf))||0>c.indexOf("googlevideo.com")||(g.wt("yt-player-bandaid-host",{bQ:c},432E3),cy=(0,g.O)());return 5};
Vx=function(a){if("net.timeout"==a.F){var b=a.timing,c=g.A();if(!b.oi){c=c>b.u&&4E12>c?c:g.A();ux(b,c,1024*b.X);var d=(c-b.u)/1E3;2!==lx(b)&&(vx(b)?(b.C+=(c-b.D)/1E3,ay(b.schedule,b.B,b.C)):(nx(b)||b.oi||ox(b.schedule,d),b.ba=c));by(b.schedule,d,b.B,b.Y,b.rg,b.Jl);qx(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.F&&("net.timeout"==a.F||"net.connect"==a.F?(b=Ux(a),b.B+=1):(b=Ux(a),b.u+=1),a.info.B.B++);dy(a,6)};
ey=function(a){a.la();var b=Ux(a);return 100>b.B&&b.u<a.B.kG};
dy=function(a,b){a.state=b;4<=a.state&&(a.B.ee?fy(a):a.timing.deactivate());a.V&&a.V(a)};
gy=function(a,b){if(b){var c=Ux(a);c.C+=1}fy(a);a.F="net.timeout";Vx(a)};
$x=function(a){return g.jh(a.info.u,function(b){return 3==b.type})};
fy=function(a){a.u&&a.u.abort();a.timing.deactivate()};
Yx=function(a){var b=a.u.Wd("content-type"),c=a.u.So();return(!a.u.Ii()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
nga=function(a){var b=(0,g.z)(a.IP,a),c=(0,g.z)(a.KP,a),d=(0,g.z)(a.JP,a);if(Ov(a.D.Vf))return new fx(a.D,c,b);var e=a.D.qd();return a.B.da&&(a.B.Qz&&!isNaN(a.info.bf)&&a.info.bf>a.B.uz?0:xx())?new zx(e,c,b,d,a.B.D):new Cx(e,c,b,d)};
pga=function(a){a.C&&a.C.F?(a=a.C.F,a=new Pu(a.type,a.u,a.range,"getEmptyStubAfter_"+a.N,a.B,a.startTime+a.duration,0,a.C+a.nb,0,!1)):(a=a.info.u[0],a=new Pu(a.type,a.u,a.range,"getEmptyStubBefore_"+a.N,a.B,a.startTime,0,a.C,0,!1));return a};
hy=function(a){return 1>a.state?!1:a.C&&a.C.u.length||a.B.ra&&a.u.gh()?!0:!1};
iy=function(a){a.B.ra&&Zx(a,!1);return a.C?a.C.u:[]};
Zx=function(a,b){if(b||a.u.gh()&&!Yx(a)&&!a.N){if(!a.C){if(a.u.Ii())a.info.range&&(c=a.info.range.length);else var c=a.u.lt();a.C=new aga(a.info.u,c)}for(;a.u.gh();)a:{c=a.C;var d=a.u.mt(),e=b&&!a.u.gh();c.D&&(av(c.D,d),d=c.D,c.D=null);for(var f=0,h=0,l=g.q(c.B),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.nb<=c.C)f+=m.nb;else{d.getLength();if(Qu(m)&&!e&&c.C+d.getLength()-h<f+m.nb){c.D=d.split(h).nm;break a}var n=c.C-f;var p=c,r=m;if(1==r.type){p.G=!0;var t=!1}else 3==r.type||4==r.type?
(r=p.G&&!p.K,p.K=!0,t=r):t=!1;p=c;var w=m,x=n;r=h;var y=d;n=t||m.u.SC()&&!n;var D=!!e;t=y.getLength()-r;w.range&&(t=Math.min(w.nb-x,t));D=w.range?w.C+x+t==w.range.length:D;w=new Pu(w.type,w.u,w.range,"reslice_"+w.N,w.B,w.startTime,w.duration,w.C+x,t,D&&w.F,D);x=t;r=y.split(r).nm.split(x).ws;p.u.push(new jv(w,r,n));p=t;c.C+=p;h+=p;f+=m.nb;if(h==d.getLength())break}d.getLength()}}};
kga=function(a){if(!a.B.D.Ue||!isNaN(a.info.bf)&&0<a.info.bf)return!1;if(!a.u.Xm())return!0;if(!yx(a.u))return!1;if(isNaN(a.info.bf)){var b=a.u.Wd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
jy=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Jd=!1};
ky=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 h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=new df(b.subarray(c+f,c+f+l)),n=new po;for(f=m;ef(f)&&4!=f.B;)switch(f.C){case 2:var p=kf(f),r=p;g.Hf(n,2).push(r);break;case 4:p=kf(f);g.Jf(n,4,p);break;case 7:p=cf(f.u);g.Jf(n,7,p);break;case 9:p=cf(f.u);g.Jf(n,9,p);break;case 10:p=cf(f.u);
g.Jf(n,10,p);break;case 11:p=bf(f.u);g.Jf(n,11,p);break;case 12:p=cf(f.u);g.Jf(n,12,p);break;case 13:r=p=kf(f);g.Hf(n,13).push(r);break;case 14:p=new qo;r=f;var t=p,w=Rda,x=r.u.C,y=cf(r.u),D=r.u.u+y;r.u.C=D;w(t,r);r.u.u=D;r.u.C=x;r=n;t=p;w=qo;g.Lf(r,w,14);var E=r.u[14];E||(E=r.u[14]=[]);var H=t?t:new w,N=g.Hf(r,14);E.push(H);N.push(H.vf);break;case 15:p=gf(f);g.Jf(n,15,p);break;case 16:p=gf(f);g.Jf(n,16,p);break;case 1:p=bf(f.u);g.Jf(n,1,p);break;case 3:p=gf(f);g.Jf(n,3,p);break;case 5:p=gf(f);g.Jf(n,
5,p);break;case 6:p=gf(f);g.Jf(n,6,p);break;case 8:p=kf(f);g.Jf(n,8,p);break;default:ff(f)}f=n;if(null!=f){var J=f;break a}}catch(Ja){}}c+=e}J=null}catch(Ja){J=null}}if(null!=J)for(b=g.Hf(J,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=g.Hf(J,10),null!=b&&0<b&&!a.Jd&&a.u!==b&&(a.u=b),J=g.Hf(J,2),J=!J.length||J[0]instanceof Uint8Array?J:g.Pc(J,Waa),J=g.q(J),b=J.next();!b.done;b=J.next())a.B.push(g.qf(b.value,4))};
ly=function(a){this.u=a;this.offset=0};
my=function(a){if(a.offset>=a.u.getLength())throw Error();return hv(a.u,a.offset++)};
ny=function(a,b){b=void 0===b?!1:b;var c=my(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=my(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+my(a),d*=128;return b?c:c-d};
oy=function(a,b,c){g.P.call(this);var d=this;this.C=a;this.B=[];this.u=null;this.X=-1;this.N=0;this.ea=NaN;this.P=0;this.D=b;this.Ga=c;this.G=NaN;this.ka=0;this.ra=-1;this.F=this.V=this.Aa=this.Y=this.da=this.K=this.ba=null;this.C.C&&(this.F=new Vfa(this.C,this.D),this.F.P.promise.then(function(e){d.F=null;1==e&&d.W("localmediachange",e)},function(){d.F=null;
d.W("localmediachange",4)}),Wfa(this.F));
this.za=!1;this.ha=0};
py=function(a){return a.B.length?a.B[0]:null};
qy=function(a){return a.B.length?a.B[a.B.length-1]:null};
yy=function(a,b,c){if(a.da){if(a.C.zs){var d=a.da;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||ee(d.K,e.K)&&d.B===e.B?!1:Tu(d,e)}else d=Tu(a.da,c.info);d||(a.G=NaN,a.ka=0,a.ra=-1)}a.da=c.info;a.D=c.info.u;0==c.info.C?ry(a):!a.D.We()&&a.K&&Xu(c.info,a.K);a.u?(c=mv(a.u,c),a.u=c):a.u=c;a:{c=g.nv(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?sy(a,b,a.u):ty(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.X&&0==a.N){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=iv(f,l),n=iv(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new ly(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=ny(p,!0),t=ny(p,!1);var w=r;var x=t}catch(D){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.X=h;a.N=
e-h}if(a.X>d)break;a.X?(d=uy(a,a.X),d.C&&!a.D.We()&&vy(a,d),sy(a,b,d),wy(a,d),a.X=0):a.N&&(d=uy(a,0>a.N?Infinity:a.N),a.N-=d.u.getLength(),wy(a,d))}}a.u&&a.u.info.D&&(wy(a,a.u),a.u=null)};
ty=function(a,b){!a.D.We()&&0==b.info.C&&(g.nv(b.info.u.info)||b.info.u.info.Jd())&&uv(b);if(1==b.info.type)try{vy(a,b),zy(a,b)}catch(d){M(d);var c=Vu(b.info);c.hms="1";a.W("error",c||{})}b.info.u.rs(b);a.F&&ex(a.F,b)};
qga=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0);
a.u&&(b+=a.u.u.getLength());return b};
Ay=function(a){return g.Pc(a.B,function(b){return b.info})};
uy=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.nb);var e=c.u.split(d),f=e.ws;e=e.nm;var h=new Pu(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new jv(h,f,c.C);c=new Pu(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.nb-d,c.info.F,c.info.D);c=new jv(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
vy=function(a,b){b.u.getLength();var c=kv(b);if(!a.C.Iz&&vw(b.info.u.info)&&"bt2020"===b.info.u.info.La().primaries){var d=new nu(c);pu(d,[408125543,374648427,174,224,21936,21937])&&(d=d.C+d.u,129==c.getUint8(d)&&1==c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;uw(d)&&!vw(d)&&(d=kv(b),wu(new nu(d)),vu([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.D&&(g.nv(d.info)?d.D=kfa(c):d.info.Jd()&&(d.D=mfa(c))));b.info.u.info.Jd()&&
b.info.isVideo()&&(c=kv(b),wu(new nu(c)),vu([408125543,374648427,174,224],30320,c)&&vu([408125543,374648427,174,224],21432,c));if(a.C.Oj&&b.info.u.info.Jd()){c=kv(b);var e=new nu(c);if(pu(e,[408125543,374648427,174,29637])){d=tu(e,!0);e=e.C+e.u;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.D.info.audio&&g.nv(b.info.u.info)){d=kv(b);c=g.Yt(d,0,1701606260);f=g.Yt(d,0,1836476516);if(c&&f){c.skip(2);var h=Mt(c),l=Ot(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(Pt(c)),e.push(Pt(c)),
m.push(Mt(c)),n.push(Mt(c));else for(h=0;h<l;++h)d.push(Nt(c)),e.push(Nt(c)),m.push(Mt(c)),n.push(Mt(c));c=$t(f);c=new jfa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.nv(b.info.u.info))for(d=kv(b),e=g.Yt(d,0,1701082227);e;)e.markAsSkip(),e=g.Yt(d,e.offset+e.size,1701082227);a.za=!0;a.C.sF&&a.W("gaplessinfo",c)}}a.D.We()||b.info.u.u||b.info.u.indexRange||(g.nv(b.info.u.info)?(c=kv(b),(d=bu(c,0,1836019574))?(d=d.offset+d.size,e=new Uint8Array(d),e.set(new Uint8Array(c.buffer,c.byteOffset,d)),c=e):c=null):
c=nfa(new nu(kv(b))),c&&(b.info.u.u=c))};
sy=function(a,b,c){if(a.D.We()){if(a.za&&a.D.We()&&c.info.B==c.info.u.index.Qb()&&(b=kv(c),b=g.Yt(b,0,1953658222))){b.skip(1);var d=Lt(b)<<16|Mt(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=Ot(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Ot(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.ba&&!!a.ba.D.C)if(b=c.info.isVideo())b=tv(c),h=a.ba,By?(l=1/b,b=Cy(a,b)>=Cy(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.D.We()&&c.info.B==c.info.u.index.Qb()&&
(b=a.ba,By?(l=tv(c),h=1/l,l=Cy(a,l),b=Cy(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,Zt(kv(c),b))}else{h=!1;a.K||(uv(c),c.B&&(a.K=c.B,h=!0,Xu(c.info,c.B),e=c.info.u.info,d=kv(c),g.nv(e)?iu(d,1701671783):e.Jd()&&vu([408125543],307544935,d)));if(d=e=rv(c))d=c.info.u.info.Jd()&&160==hv(c.u,0);if(d)a.P+=e,a.G=l+e;else{if(a.C.Tz){if(l=f=a.Ga(ov(c),1),0<=a.G&&6!=c.info.type){f-=a.G;var n=f-a.ka;d=c.info.B;var p=c.info.K,r=a.Y?a.Y.B:-1,t=a.Y?a.Y.K:-1,w=a.Y?a.Y.duration:-1;m=a.C.Af&&f>
a.C.Af;var x=a.C.zf&&n>a.C.zf;1E-4<Math.abs(n)&&(a.C.TG&&a.W("avsyncissue",{audio:""+ +!!a.D.info.audio,sq:d.toFixed(),sliceStart:p,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*n).toFixed(),skipRewrite:""+(+m||x)}),a.ra=d);n=0;a.C.Rz&&(m||x||(l=a.G),a.C.Sz&&a.ba&&!a.D.info.audio&&g.nv(c.info.u.info)&&(x=a.ba,m=x.ra,x=x.ka,p=.02<Math.abs(x-f),(d==m||d>m&&d>a.ra)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(x-f))/e)),Zt(kv(c),d),d=rv(c),n=e-d,e=d)));a.ka=
f+n}}else isNaN(a.G)?f=c.info.startTime:f=a.G,l=f;pv(c,l)?(isNaN(a.ea)&&(a.ea=l),a.P+=e,a.G=l+e):(l=Vu(c.info),l.smst="1",a.W("error",l||{}))}if(h&&a.K){h=Dy(a,!0);Yu(c.info,h);a.u&&Yu(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())Yu(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.V=h,a.W("placeholderinfo",h),Ey(a))}}zy(a,c);a.ha&&qv(c,a.ha);a.Y=c.info};
wy=function(a,b){if(b.info.D){a.Aa=b.info;if(a.K){var c=Dy(a,!1);a.W("segmentinfo",c);a.V||Ey(a);a.V=null}ry(a)}a.F&&ex(a.F,b);if(c=qy(a))if(c=mv(c,b,a.C.Fr)){a.B.pop();a.B.push(c);return}a.B.push(b)};
ry=function(a){a.u=null;a.X=-1;a.N=0;a.K=null;a.ea=NaN;a.P=0;a.V=null};
zy=function(a,b){if(a.D.info.Cd){if(b.info.u.info.Jd()){var c=new nu(kv(b));if(pu(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=tu(c,!0);c=16!=d?null:Au(c,d)}else c=null;d="webm"}else b.info.V=Zfa(kv(b)),c=$fa(b.info.V),d="cenc";c&&c.length&&(c=new jy(c,d),c.Jd=b.info.u.info.Jd(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.C.Is&&b.B&&b.B.F&&(c.u=b.B.F),a.W("needkeyinfo",c))}};
Ey=function(a){var b=a.K,c;b.u["Cuepoint-Type"]?c=new St(Fy?parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(b.u["Cuepoint-Total-Duration-Sec"])||0,b.u["Cuepoint-Context"],b.u["Cuepoint-Identifier"]||"",rga[b.u["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.ea,a.W("cuepoint",c,b.B))};
Dy=function(a,b){var c=a.K;if(c.u["Stitched-Video-Id"]||c.u["Stitched-Video-Duration-Us"]||c.u["Stitched-Video-Start-Frame-Index"]||c.u["Serialized-State"]){var d=c.u["Stitched-Video-Id"]?c.u["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.u["Stitched-Video-Duration-Us"])for(var f=g.q(c.u["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((parseInt(h.value,10)||0)/1E6);e=[];if(c.u["Stitched-Video-Start-Frame-Index"])for(f=g.q(c.u["Stitched-Video-Start-Frame-Index"].split(",").slice(0,
-1)),h=f.next();!h.done;h=f.next())e.push(parseInt(h.value,10)||0);d=new pfa(d,c.u["Serialized-State"]?c.u["Serialized-State"]:"")}return new Mu(c.B,a.ea,b?c.Jg:a.P,c.ingestionTime,"sq/"+c.B,void 0,void 0,b,d)};
Cy=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ha*b)/b:a.ha;a.D.C&&c&&(c+=a.D.C.u);return c+a.getDuration()};
Gy=function(a,b){0>b||(a.B.forEach(function(c){return qv(c,b)}),a.ha=b)};
Hy=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Iy=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
Jy=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};
Ky=function(a,b){return 0<=Jy(a,b)};
sga=function(a,b){if(!a)return NaN;var c=Jy(a,b);return 0<=c?a.start(c):NaN};
Ly=function(a,b){if(!a)return NaN;var c=Jy(a,b);return 0<=c?a.end(c):NaN};
My=function(a){return a&&a.length?a.end(a.length-1):NaN};
Ny=function(a,b){var c=Ly(a,b);return 0<=c?c-b:0};
Yy=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 Hy(d,e)};
Zy=function(a,b,c){this.X=a;this.u=b;this.D=[];this.C=new oy(a,b,c);this.B=this.K=null;this.ha=0;this.ba=b.info.u;this.ea=0;this.N=b.en();this.G=-1;this.ka=b.en();this.F=this.N;this.P=!1;this.da=this.Y=this.V=-1};
$y=function(a,b){b&&By&&Gy(a.C,b.qw());a.K=b};
az=function(a){return a.K&&a.K.Tr()};
cz=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();bz(a,b);b=b.timing;a.ha=(b.D-b.u)/1E3}a.D.length&&hy(a.D[0])&&!a.D[0].info.rg()&&bz(a,a.D[0])};
bz=function(a,b){if(hy(b)){if(iy(b).length){b.da=!0;var c=b.C;var d=c.u;c.u=[];c.F=g.gb(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())dz(a,b,d.value)}};
dz=function(a,b,c){switch(c.info.type){case 1:case 2:ty(a.C,c);break;case 4:var d=c.info.u.TC(c);c=c.info;var e=a.B;e&&e.u==c.u&&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.B==c.B&&e.C==c.C&&e.nb==c.nb&&(a.B=g.gb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())dz(a,b,c.value);break;case 3:yy(a.C,b,c);break;case 6:yy(a.C,b,c),a.B=c.info}};
ez=function(a,b){var c=b.info;c.u.info.u>=a.ba&&(a.ba=c.u.info.u)};
iz=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Ye(),e=Ly(d,b),f=NaN,h=az(a);h&&(f=Ly(d,h.u.index.Fe(h.B)));if(e==f&&a.B&&a.B.nb&&fz(gz(a),0))return b}a=hz(a,b,c);return 0<=a?a:NaN};
kz=function(a,b){a.u.me();var c=hz(a,b);if(0<=c)return c;c=a.C;c.F?(c=c.F,c=c.B&&3==c.B.type?c.B.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.fj(b).u[0];jz(a)&&a.K&&a.K.abort();a.ea=0;return a.B.startTime};
lz=function(a){a.N=!0;a.F=!0;a.G=-1;kz(a,Infinity)};
mz=function(a){var b=0;g.Fb(a.D,function(c){var d=b;c=c.C&&c.C.length?cga(c.C):gw(c.info);b=d+c},a);
return b+=qga(a.C)};
nz=function(a,b){if(!a.K)return 0;var c=az(a);if(c&&c.F)return c.G;c=a.K.Ye(!0);return Ny(c,b)};
pz=function(a){oz(a);a=a.C;a.B=[];ry(a)};
qz=function(a,b){if(a.D.length){if(a.D[0].info.u[0].startTime<=b)return;oz(a)}for(var c=a.C,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();a.D.length?a.B=g.gb(g.gb(a.D).info.u):a.C.B.length?a.B=qy(a.C).info:a.B=az(a);a.B&&b<a.B.startTime&&(a.ea=0,a.u.me()?a.B=a.u.fj(b,!0).u[0]:a.B=null)};
tz=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)rz(a,b);else{for(;c<a.D.length;)rz(a,a.D.pop());var d=sz(a);a.X.Mb&&d&&d.u.We()&&ei(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.nb&&d.C+d.nb>e.C&&d.C+d.nb<=e.C+e.nb})?a.B=d:Ru(b.info.u[0])?a.B=pga(b):a.B=null}};
jz=function(a){var b;!(b=!a.X.Zq&&"f"===a.u.info.Fb)&&(b=a.X.Vg)&&(b=a.C,b=!!b.F&&cx(b.F));if(b)return!0;b=az(a);if(!b)return!1;var c=b.F&&b.D;return a.ka&&0<a.V?c||b.B>=a.V:c};
gz=function(a){var b=[],c=az(a);c&&b.push(c);b=g.tb(b,Ay(a.C));g.Fb(a.D,function(d){g.Fb(d.info.u,function(e){d.da&&(b=g.Ke(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.nb<=e.range.start+e.C+e.nb:f.B==e.B&&f.C>=e.C&&(f.C+f.nb<=e.C+e.nb||e.D))}));
(Ru(e)||4==e.type)&&b.push(e)})});
a.B&&!qfa(a.B,g.gb(b),a.B.u.We())&&b.push(a.B);return b};
fz=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Tu(a[c-1],a[c]))return!1;return!0};
hz=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.nb)return NaN;a=gz(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.K<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:fz(a,c?b:0)?a[b].startTime:NaN};
uz=function(a){return ei(a.D,function(b){return 3<=b.state})};
vz=function(a){return!(!a.B||a.B.u==a.u)};
wz=function(a){return vz(a)&&a.u.me()&&a.B.u.info.u<a.u.info.u};
xz=function(a,b,c){return(a=sz(a))&&!a.F?a.G>b&&a.G<b+c:!1};
sz=function(a){var b=qy(a.C);return b?b.info:az(a)};
oz=function(a){g.Fb(a.D,function(b){rz(this,b)},a);
a.D=[];a.B=null};
rz=function(a,b){var c=a.X.Mb&&b.info.u[0].u.We();b.da&&!c&&(c=a.C,c.V&&!c.C.Oh&&c.W("placeholderrollback",c.V),c.V=null,c.K=null,c.da=c.Aa,c.G-=c.P,ry(c));b.dispose()};
yz=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.Zg()};
zz=function(a){var b=a.B;b&&-1==b.B&&(a=qy(a.C))&&Ru(a.info)&&(a=a.info.B,b.N="updateLastSliceRequested",b.B=a)};
Az=function(a){return ei(a.D,function(b){return b.N})};
Bz=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
Dz=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.D=!1;this.G=!0;this.B=Math.round(a*this.resolution);this.values=Array(this.B);for(a=0;a<this.B;a++)this.values[a]=Infinity;this.N=Cz(this);this.F=c;this.K=d};
Cz=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
Ez=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.G&&(g.Cb(a.N,function(c,d){return a.values[c]-a.values[d]}),a.G=!1);
return a.values[a.N[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
vga=function(a){var b=new tga;this.policy=a;this.P=b;this.K=this.X=0;this.B=-1;this.F=this.G=sx();this.V=new Dz(4,1,.6,.4);this.C=new Dz(10,1,.5,.4);this.u=a.B?new Bz(a.u):new Dz(a.u,20,.5,.4);this.N=new Dz(5,1,.25);this.D=new Dz(30,1,.5);a=uga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.V.C(1,Math.min(+a.delay,2));0<a.stall&&this.C.C(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=sx()};
ox=function(a,b){a.V.C(1,b);-1<a.B&&3E4<sx()-a.B&&Fz(a)};
by=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.N.C(b,c/b);f||(a.G=sx());e||a.D.C(1,b-d)};
ay=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<sx()-a.B&&Fz(a)};
Gz=function(a){a=a.V.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
qx=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.X+=b)};
Hz=function(a){a=a.u.u();return 0<a?a:1};
Iz=function(a){var b=Hz(a);b=1/((a.C.u()||0)+1/b);a=a.N.u();return Math.max(b,0<a?a:1)};
gx=function(a){return{delay:Gz(a),stall:a.C.u()||0,byterate:Hz(a),init:a.F}};
Fz=function(a){wga(gx(a));a.B=sx()};
Jz=function(a){return 4E3<=sx()-a.G};
Kz=function(a,b){this.B=a;this.u=b;this.C=1};
Mz=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.md&&(d=Math.abs(d));d/=a.C;var f=1/Iz(a.B);var h=.9*(d-a.u.Pi);h=Math.max(h,Gz(a.B)+2048*f);c=h/f*a.u.Oz/(b+c);c=Math.min(c,d);a.u.he&&e&&(c=Math.max(c,a.u.he));return Lz(a,c,b)};
Lz=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.Nz*c),Math.min(Math.min(a.u.ba,31*c),Math.ceil(b*c))))||65536};
xga=function(a,b){var c=Lz(a,b.video?a.u.GF:a.u.zr,b.u);return a.u.no&&b.video?Math.max(c,a.u.no):c};
Nz=function(a){var b=Iz(a.B);if(a.u.EG)return b;var c=a.u.Lz,d=1E-9+Gz(a.B);b*=Math.min(1,c/(b*d));a.u.mo&&(c=((Ez(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.mo*c);return b};
Oz=function(a){return Nz(a)/a.C};
g.Pz=function(){this.segments=[]};
Qz=function(a,b){if(b>a.Qb())a.segments=[];else{var c=ib(a.segments,function(d){return d.gb>=b},a);
0<c&&a.segments.splice(0,c)}};
Rz=function(a,b,c,d,e,f){f=void 0===f?0:f;Aw.call(this,a,b,d);this.index=e||new g.Pz;this.Jg=f;this.X=c;this.N=!0;if(this.K=!c)this.F=!0};
Sz=function(a){return a.D.Ue||a.D.Ue?a.da&&xx()?3:2:a.bj?-1:1};
Tz=function(a){var b=void 0===a?{}:a;a=void 0===b.Jg?0:b.Jg;var c=void 0===b.eA?!1:b.eA,d=void 0===b.UA?0:b.UA,e=void 0===b.Vd?0:b.Vd,f=void 0===b.fg?Infinity:b.fg,h=void 0===b.EC?0:b.EC;b=void 0===b.tf?!1:b.tf;this.segments=[];this.u=a;this.C=d;this.B=c;this.D=this.G=-1;this.N=e;this.V=f;this.K=null;this.P=h;this.F=b};
Vz=function(a,b,c){b=Uz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
Uz=function(a,b){return Bb(a.segments,function(c){return b-c.gb})};
Wz=function(a,b,c){c=void 0===c?{}:c;Rz.call(this,a,b,"",void 0,void 0,c.Jg||0);this.index=new Tz(c)};
yga=function(a,b,c,d,e){this.gb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
Xz=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""};
Yz=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};
Zz=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};
$z=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
aA=function(){this.u=[];this.B=null;this.G=0;this.D=[];this.C=!1;this.K="";this.F=-1};
zga=function(a){var b=a.D;a.D=[];return b};
Aga=function(){this.D=[];this.u=null;this.B={};this.C={}};
Ega=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,h=null;"Period"==f.nodeName?h=Bga(a):"AdaptationSet"==f.nodeName?h=Cga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=Dga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);vb(d,zga(h))}vb(a.D,d);qaa(a.D,function(l){return 1E3*l.startSecs+l.u})};
Fga=function(a){a.u&&(a.u.u=[]);g.Ib(a.B,function(b){b.u=[]});
g.Ib(a.C,function(b){b.u=[]})};
Bga=function(a){a.u||(a.u=new aA);return a.u};
Cga=function(a,b){a.B[b]||(a.B[b]=new aA);return a.B[b]};
Dga=function(a,b){a.C[b]||(a.C[b]=new aA);return a.C[b]};
bA=function(a,b,c,d,e){Aw.call(this,a,b,d||void 0,e||void 0);this.index=new g.Pz;this.K=c};
cA=function(a,b,c){var d=a.index.pw(b),e=a.index.Fe(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.u&&(h=a.info.u*f);c=b==a.index.Qb()&&0<h;a=new Pu(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new cw([a],d)};
Gga=function(a,b){if(!a.index.Fc()){for(var c=[],d=b.K,e=b.N.split(",").filter(function(r){return 0<r.length}),f=0,h=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new Mu(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
Hga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
dA=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
eA=function(){this.endTime=this.startTime=0;this.length=1};
fA=function(){this.buffered=new eA;this.appendWindowStart=this.appendWindowEnd=-1;this.mode="sequence";this.onerror=this.onabort=null;this.timestampOffset=-1;this.updating=!1};
Iga=function(a,b){return gA(function(c,d){return g.Vr(c,d,4,1E3)},a,b)};
g.hA=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=mu(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
gA=function(a,b,c){b.match(Jga);return a(b,c).then(function(d){var e=g.hA(d);return e?gA(a,e,c):d})};
iA=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.ea=this.duration=0;this.tf=this.G=this.isLive=this.C=!1;this.fg=this.Vd=0;this.isOtf=this.Ag=!1;this.V=(0,g.O)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ha=this.Y=0;this.F=null;this.ra=!!b&&g.R(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.X=[];this.Aa=!!b&&g.R(b,"html5_live_self_init_segments");this.D=null;this.za=c;this.ka=!b||!g.R(b,"html5_manifest_without_credentials");
this.N=0;this.ba=!!b&&g.R(b,"disable_html5_manifest_namespace_redux");this.da="";this.P=NaN;this.ha=b&&g.R(b,"disable_html5_duration_caching")?Infinity:10;this.vj=this.Pl=this.B=0};
Kga=function(a){return g.Mb(a.u,function(b){return!!b.info.video&&nw(b.info.video)})};
jA=function(a){return g.Mb(a.u,function(b){return!!b.info.Cd})};
Lga=function(a){return g.Mb(a.u,function(b){return yw(b.info.mimeType)})};
Mga=function(a){return Nb(a.u,function(b){return b.info.video?b.Tt():!0})};
kA=function(a){return g.Mb(a.u,function(b){return Ov(b.B.u)})};
lA=function(a,b){a.u[b.info.id]=b};
Nga=function(a,b,c,d){c=void 0===c?0:c;var e=new iA("",d,!1);e.duration=c||0;g.Fb(a,function(f){var h=mA(f,b,e.duration),l=Ku(f.init),m=Ku(f.index),n=parseInt(f.clen,10),p=nA(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&lA(e,new Dw(p,h,l,m,n,f))});
return e};
Oga=function(a,b,c,d){c=void 0===c?0:c;var e=new iA("",d,!1);e.duration=c||0;g.Fb(a,function(f){var h=mA(f,b,e.duration),l=nA(f.url,f.sp,f.s);if(!g.nv(h)){var m=d&&g.R(d,"html5_manifestless_vp9_otf"),n=d&&g.R(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?lA(e,new bA(l,h,"sq/0",null,null)):(m=Ku(f.init),f=Ku(f.index),lA(e,new bA(l,h,"",m,f))))});
e.isOtf=!0;return e};
Pga=function(a,b,c,d){var e=new iA("",d,!0);g.Fb(a,function(f){var h=mA(f,c),l=nA(f.url,f.sp,f.s),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.Vd=e.Vd||n;e.fg=e.fg||p;var r=!yw(h.mimeType),t=d&&g.Q(d,"html5_manifestless_max_segment_history");l&&lA(e,new Wz(l,h,{Jg:m,eA:r,UA:f,Vd:n,fg:p,EC:t,tf:b}))});
e.C=!b;e.Ag=!0;e.isManifestless=!0;e.isLive=!b;e.tf=b;e.G=!!e.Vd&&!!e.fg&&isFinite(e.fg);return e};
mA=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 h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new lw(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===oA&&(oA=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));
if((oA||pA)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"==l.u&&(r="16"),"arib-std-b67"==l.u&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new iw(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new dA(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Hga(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(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new rw(e,d,l,h,m,p,n,c,f)};
Qga=function(a){return ei(a,function(b){return 3==+b.stream_type})?3:0};
qA=function(a,b){return a.F?wb(a.F.D,b):a.X.length?wb(a.X,b):[]};
nA=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Lv(a,!0);a.set("alr","yes");c&&(c=Av(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
tA=function(a,b){var c=Xz(b,"id");c=c.replace(":",";");var d=Xz(b,"mimeType"),e=Xz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(Xz(b,"bandwidth"),10)/8;var f=parseInt(Yz(b,"BaseURL").getAttribute(rA(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(Xz(b,"width"),10);var l=parseInt(Xz(b,"height"),10),m=parseInt(Xz(b,"frameRate"),10),n=Rga(Xz(b,rA(a,"projectionType")));a:switch(Xz(b,rA(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}Xz(b,"video_level");h=new lw(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=parseInt(Xz(b,"audioSamplingRate"),10),m=parseInt(Xz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Sga(Xz(b,rA(a,"spatialAudioType"))),l=new iw(l,m,n),m=Xz(b,"lang")||"und",n=Yz(b,"Role")){var r=Xz(n,"value")||"";Sb(sA,r)?(n=m+"."+sA[r],p="main"==r,m=Xz(b,rA(a,"langName"))||m+" - "+r,m=new dA(m,
n,p)):m=null}else m=null;p=null;if(n=Yz(b,"ContentProtection"))if(g.ak())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 rw(c,d,l,h,m,p,e,f)};
Rga=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}};
Sga=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}};
uA=function(a,b){b=void 0===b?"":b;a.Ha=1;a.V=(0,g.O)();return Lm(Iga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.ka}).then((0,g.z)(a.SI,a)),(0,g.z)(a.UI,a))};
Tga=function(a,b,c){return uA(new iA(a,b,c),a)};
Uga=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 Mu(b.gb,b.startSecs,b.durationSecs,b.u,d,e,b.B)};
vA=function(a){return a.isLive&&(0,g.O)()-a.V>=a.K};
wA=function(a){var b=a.K;isFinite(b)&&(vA(a)?a.refresh():(b=Math.max(0,a.V+b-(0,g.O)()),a.D||(a.D=new g.G(a.refresh,b,a),g.C(a,a.D)),a.D.start(b)))};
Vga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Fc())return c.Qb()+1}return 0};
xA=function(a){return a.Pl&&a.B?a.Pl-a.B:0};
yA=function(a){if(!isNaN(a.P))return a.P;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Fc()){b=0;for(c=d.Zg();c<=d.Qb();c++)b+=d.getDuration(c);b/=d.Tm();b=.5*Math.round(b/.5);d.Tm()>a.ha&&(a.P=b);return b}if(a.isLive&&(d=b[c],d.Jg))return d.Jg}return NaN};
Wga=function(a,b){var c=Vb(a.u,function(e){return e.index.Fc()});
if(!c)return NaN;c=c.index;var d=c.bh(b);return c.Fe(d)==b?b:d<c.Qb()?c.Fe(d+1):NaN};
Xga=function(a,b){g.Ib(a.u,function(c){g.Ib(b,function(d,e){var f=c.B;f.u.set(e,d);f.D.set(e,d);f.C&&f.C.set(e,d)})})};
Yga=function(a,b){if(!a.u["0"]){var c=new rw("0","fakesb",void 0,new lw(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new Rz(new Lv("http://www.youtube.com/videoplayback"),c,"fake"):new Dw(new Lv("http://www.youtube.com/videoplayback"),c,new Ju(0,0),new Ju(0,0),0,NaN)}};
rA=function(a,b){return a.ba?"yt:"+b:a.da+":"+b};
Zga=function(a){return g.jb(Object.values(a.u),function(b){return b.info.Cd&&b.info.video?480<b.info.video.yc&&"H"==b.info.Fb:!1})};
zA=function(a,b,c,d){g.P.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.P=d;this.G=0;this.K=this.F.isManifestless&&!this.F.tf;this.C=!1;this.N=null};
AA=function(a,b){var c=a.u.index,d=a.B.B;Vz(c,d)||b&&b.B==d?(a.F=!Vz(c,d),a.P=!Vz(c,d)):(a.F=!0,a.P=!0)};
BA=function(a,b,c){if(!a.u.me())return 0!=b&&oz(a),b;var d=iz(a,b);if(!isNaN(d))return d;pz(a);return c&&(c=Ly(c.Ye(),b),!isNaN(c))?(kz(a,c+$ga),b):kz(a,b)};
bha=function(a,b,c,d){if(a.C&&a.D){var e=aha(a,b,c);if(-1!=e){a.B.F=!1;a.u.F=!1;a.K=!0;g.um(function(){CA(a,"seekreason","behindMinSq");DA(a,e)});
return}}c?a.B.P=!1:a.u.P=!1;0<=iz(a.B,a.D)&&0<=iz(a.u,a.D)?((a.B.F||a.u.F)&&CA(a,"iterativeSeeking","done;count."+a.G,!1),a.B.F=!1,a.u.F=!1):d&&g.um(function(){if(a.K||!a.P.ha)a.P.Rj?EA(a):c&&DA(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.la()&&l;var m=-1!=a.B.G&&-1!=a.u.G,n=!a.B.P&&!a.u.P;l&&m&&n&&(a.D>=f&&a.D<f+h+.1?((c?a.B:a.u).F=!1,a.B.F||a.u.F||(CA(a,"iterativeSeeking","done;count."+a.G,!1),a.G=0)):8>a.G?(a.G++,CA(a,"iterativeSeeking","inprogress;count."+a.G+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(CA(a,"iterativeSeeking","incomplete;count."+a.G+";target."+a.D+";actual."+f,!1),a.G=0,a.B.F=!1,a.u.F=!1,a.W("seekplayerrequired",f+.1,!0)))}})};
aha=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.bh(a.D);return(Vz(c,a.F.Vd)||b.gb==a.F.Vd)&&d<a.F.Vd?a.F.wc():-1};
DA=function(a,b){!a.la()&&a.K&&-1!=a.B.G&&-1!=a.u.G&&(a.K=!1,a.W("seekplayerrequired",b+.1,a.P.Rj))};
EA=function(a){var b=-1!=a.B.G,c=-1!=a.u.G;if(!b||!c)if(b=!b&&py(a.B.C),c=!c&&py(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.G=py(c.C).info.B,-1!=b.G){var d=Math.max(b.u.index.Fe(b.G),c.u.index.Fe(c.G));CA(a,"seekreason","initManifestlessSync");g.um(function(){return DA(a,d)});
a.N&&(a.N.resolve(d+.1),a.N=null)}};
CA=function(a,b,c,d){a.W("ctmp",b,c,void 0===d?!1:d)};
FA=function(a,b){Ts.call(this,1,arguments)};
GA=function(a,b){Ts.call(this,1,arguments);this.u=a};
cha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
IA=function(a){var b=HA(a);if(b.aft)return b.aft;a=g.L((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
JA=function(a){return!!g.Na("yt.timing."+(a||"")+"pingSent_")};
KA=function(a,b){g.Ia("yt.timing."+(b||"")+"pingSent_",a,void 0)};
MA=function(a){return g.Na("ytcsi."+(a||"")+"data_")||LA(a)};
NA=function(a){a=MA(a);a.info||(a.info={});return a.info};
HA=function(a){a=MA(a);a.tick||(a.tick={});return a.tick};
OA=function(a){var b=MA(a).nonce;b||(b=Fs(),MA(a).nonce=b);return b};
LA=function(a){var b={tick:{},info:{}};g.Ia("ytcsi."+(a||"")+"data_",b,void 0);return b};
QA=function(a){var b=HA(a||""),c=IA(a);c&&!PA&&(Ws(dha,new FA(Math.round(c-b._start),a)),PA=!0)};
RA=function(){var a=g.Na("ytcsi.debug");a||(a=[],g.Ia("ytcsi.debug",a,void 0),g.Ia("ytcsi.reference",{},void 0));return a};
TA=function(a){a=a||"";var b=SA();if(b[a])return b[a];var c=RA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
SA=function(){var a=g.Na("ytcsi.reference");if(a)return a;RA();return g.Na("ytcsi.reference")};
UA=function(){this.u=0};
VA=function(){UA.u||(UA.u=new UA);return UA.u};
XA=function(a,b){WA[b]=WA[b]||{count:0};var c=WA[b];c.count++;c.time=(0,g.O)();a.u||(a.u=qp(function(){var d=(0,g.O)(),e;for(e in WA)WA[e]&&6E4<d-WA[e].time&&delete WA[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Sq("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Gr(c)),!0):!1};
YA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.vo("csi_on_gel")||!!MA(a).useGel};
ZA=function(a){a=MA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
$A=function(a){LA(a);eha();KA(!1,a);a||(g.L("TIMING_ACTION")&&so("PREVIOUS_ACTION",g.L("TIMING_ACTION")),so("TIMING_ACTION",""))};
fB=function(a,b,c,d){d=d?d:a;aB(d);var e=d||"",f=SA();f[e]&&delete f[e];var h=RA(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;TA(d||"").info.actionType=a;$A(d);MA(d).useGel=!0;so(d+"TIMING_AFT_KEYS",b);so(d+"TIMING_ACTION",a);bB("yt_sts","c",d);cB("_start",c,d);if(YA(d)){a={actionType:dB[to((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:dB[to("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.Ps())a.clientScreenNonce=b;b=OA(d);VA().info(a,b)}g.Ia("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);eB(d)};
bB=function(a,b,c){if(null!==b)if(NA(c)[a]=b,YA(c)){var d=b;b=ZA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in gB){b=gB[a];g.nb(fha,b)&&(d=!!d);a in hB&&"string"===typeof d&&(d=hB[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Ht({},e)}else g.nb(gha,a)||g.Gr(new Sq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&iB(b,c)}else TA(c||"").info[a]=b};
iB=function(a,b){if(YA(b)){var c=TA(b||"");Ht(c.info,a);c=ZA(b);"gelInfos"in c||(c.gelInfos={});Ht(c.gelInfos,a);c=OA(b);VA().info(a,c)}};
cB=function(a,b,c){var d=HA(c);if(g.vo("use_first_tick")&&jB(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;kB.mark&&(pc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),kB.mark(e))}e=b||(0,g.O)();d[a]=e;e=ZA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.O)();if(YA(c)){TA(c||"").tick[a]=b||(0,g.O)();e=OA(c);if("_start"===a){var f=VA();XA(f,"baseline_"+e)||g.Dq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else VA().tick(a,e,b);QA(c);e=!0}else e=!1;e||(eB(c),TA(c||"").tick[a]=b||(0,g.O)());
return d[a]};
lB=function(a){var b="above_the_fold";kB&&kB.measure&&(pc(b,"measure_")||(b="measure_"+b),a?kB.measure(b,a):kB.measure(b))};
jB=function(a,b){var c=HA(b);return a in c};
mB=function(a,b){jB("_start",b)&&!jB(a,b)&&cB(a,void 0,b)};
eB=function(a){if(!JA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=HA(a);if(g.Na("ytglobal.timing"+(a||"")+"ready_")&&b&&jB("_start")&&IA(a))if(QA(a),a)nB(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&&nB(a)}}};
hha=function(){switch(Xo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
nB=function(a){if(!YA(a)){var b=HA(a),c=NA(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=IA(a);var l=HA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&NA(a).yt_pvis&&"youtube"===e&&(bB("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.O)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+"."+
m));f.rt=e.join(",");b=!!c.ap;g.vo("debug_csi_data")&&(c=g.Na("yt.timing.csiData"),c||(c=[],g.Ia("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&b?Dt(f):g.Ct(f);KA(!0,a);Ws(oB,new GA(p.aft+(Number(h)||0),a))}};
aB=function(a){if(YA(a))jB("_start",a)&&cB("aa",void 0,a);else if(!JA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(cB("aa",void 0,a),bB("ap",1,a),bB("yt_fss","c",a),nB(a))}};
pB=function(){this.B=this.C=0;this.F={}};
qB=function(a,b,c,d,e,f){g.P.call(this);this.B=this.u=null;this.D=!1;this.C=f?1:0;this.N=this.F=NaN;this.G=0;this.K=b;this.V=a;this.P=c;this.P.C.subscribe("cuepoint",this.X,this);this.Y=d;this.ba=e};
rB=function(a,b){if(a.u){a.B=null;a.D=!1;var c=b.startTime+a.G-a.u.ze.startSecs;0>=c||(c=new St(a.u.ze.startSecs-(a.K.Dc&&!isNaN(a.G)?a.G:0),c,a.u.ze.context,a.u.ze.identifier,"stop",a.u.ze.u+1E3*b.duration),a.W("ctmp","cuepointdiscontinuity","segNum."+b.gb,!1),a.X(c,b.gb))}};
sB=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.tB=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
uB=function(a){var b=void 0===b?!1:b;if(a instanceof sB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Fr(a):g.Gr(a);return new sB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
vB=function(a,b,c){g.P.call(this);var d=this;this.u=a;this.F=b;this.P=c;this.V=this.C=this.G=null;this.K=0;this.D=function(e){return d.W(e.type,d)};
this.supports(3)&&(this.u.addEventListener("updateend",this.D),this.u.addEventListener("error",this.D));this.X=0;this.N=Hy([],[]);this.B=!1};
wB=function(){return!(!window.SourceBuffer||!SourceBuffer.prototype.changeType)};
xB=function(){var a=g.Na("yt.player.utils.videoElement_");a||(a=g.Fe("VIDEO"),g.Ia("yt.player.utils.videoElement_",a,void 0));return a};
yB=function(a){var b=xB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
iha=function(a){try{var b=zB('video/mp4; codecs="avc1.42001E"')||zB('video/webm; codecs="vp9"');return(zB('audio/mp4; codecs="mp4a.40.2"')||zB('audio/webm; codecs="opus"'))&&(b||!a)||yB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
zB=function(a){if(/opus/.test(a)&&(g.AB&&!Rn("38")||g.AB&&Xj("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!dk())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!yB(a)};
BB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
CB=function(){var a=xB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
DB=function(){var a=xB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
tga=function(){this.u=0};
EB=function(a,b){this.u=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.oR,set:this.sR});Object.defineProperty(this,"buffered",{get:this.mR})};
jha=function(){this.length=0};
FB=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.u=a;this.B=NaN;this.C=0;Object.defineProperty(this,"duration",{get:this.nR,set:this.rR});Object.defineProperty(this,"readyState",{get:this.pR});this.u.addEventListener("webkitsourceclose",(0,g.z)(this.qR,this),!0)};
GB=function(a,b,c,d){g.P.call(this);var e=this;this.u=a;this.N={error:function(){!e.la()&&e.isActive()&&e.W("error",e)},
updateend:function(){!e.la()&&e.isActive()&&e.W("updateend",e)}};
vs(this.u,this.N);this.B=b;this.P=c;this.G=0;this.F=Infinity;this.D=0;this.K=this.C=d};
HB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
IB=function(a,b){b=void 0===b?!1:b;g.B.call(this);this.F=new g.rs(this);g.C(this,this.F);this.B=this.u=null;this.C=a;var c=this.C;c=c.GL?c.u.webkitMediaSourceURL:window.URL.createObjectURL(c);this.wp=new HB(c,!0);this.G=b;this.D=null;ts(this.F,this.C,["sourceopen","webkitsourceopen"],this.gP);ts(this.F,this.C,["sourceclose","webkitsourceclose"],this.fP)};
kha=function(a,b){JB(a)?g.um(function(){return b(a)}):a.D=b};
KB=function(a,b){try{a.C.duration=b}catch(c){}};
LB=function(a){return!!a.u||!!a.B};
JB=function(a){try{return"open"==a.C.readyState}catch(b){return!1}};
MB=function(a){try{return"closed"==a.C.readyState}catch(b){return!0}};
NB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
OB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.u:a.u,f=a.B.isView()?a.B.u:a.B,h=new IB(a.C,!0);h.wp=a.wp;e=new GB(e,b,c,d);b=new GB(f,b,c,d);h.u=e;h.B=b;g.C(h,e);g.C(h,b);JB(a)||a.u.Qn(a.u.pc());return h};
PB=function(a,b,c){this.experiments=a;this.V=b;this.X=void 0===c?!1:c;this.F=!!g.Na("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.N=new Set;this.G=!0;this.B=!g.R(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.P=g.R(this.experiments,"html5_disable_vp9_encrypted");a=g.Na("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
lha=function(a,b){var c=Wu(b);if("0"===c)return!0;var d=b.mimeType;if(g.R(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.N.has(b.Fb))return!1}else if(ww(b)&&a.K)return!1;if(b.video&&(nw(b.video)||"bt2020"===b.video.primaries)&&!(QB(a,RB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches))||"338"===c&&!(g.AB?Rn(53):g.SB&&Rn(64)))return!1;var e={};b.video&&(b.video.width&&(e[RB.WIDTH.name]=
b.video.width),b.video.height&&(e[RB.HEIGHT.name]=b.video.height),b.video.fps&&(e[RB.FRAMERATE.name]=b.video.fps),b.video.u&&(e[RB.EOTF.name]=b.video.u),b.u&&(e[RB.BITRATE.name]=8*b.u),"("===b.Fb&&(e[RB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(e[RB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(e[RB.CHANNELS.name]=b.audio.u);a.C&&uw(b)&&(e[RB.EXPERIMENTAL.name]="allowed");for(var f=g.q(Object.keys(RB)),h=f.next();!h.done;h=
f.next()){h=RB[h.value];var l;if(l=e[h.name])(l=h===RB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.R(a.experiments,"html5_ignore_h264_framerate_cap")&&h===RB.FRAMERATE&&("H"===l.Fb||"h"===l.Fb)),l=!(l||h===RB.DECODETOTEXTURE&&!g.R(a.experiments,"html5_decode_to_texture_cap"));if(l)if(QB(a,h))if(a.u){if(a.u[h.name]<e[h.name])return!1}else d=d+"; "+h.name+"="+e[h.name];else if(vw(b)&&h===RB.EOTF)return!1}!g.R(a.experiments,"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.yc&&b.Cd&&
(d+="; hdcp=2.2");return"227"===c&&!g.R(a.experiments,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.R(a.experiments,"html5_enable_new_hvc_enc")?!1:a.isTypeSupported(d)};
TB=function(){var a=Yj()&&!Rn(29),b=Xj("google tv")&&Xj("chrome")&&!Rn(30),c=bk();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.UB=function(a,b){b=void 0===b?!1:b;return TB()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(xB(),"application/x-mpegURL")?!0:!1};
QB=function(a,b){b.name in a.D||(a.D[b.name]=mha(a,b));return a.D[b.name]};
mha=function(a,b){if(a.u)return!!a.u[b.name];if(b===RB.BITRATE&&g.R(a.experiments,"html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===RB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
VB=function(){g.P.call(this);this.items={}};
nha=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
WB=function(a){try{return g.af(a)}catch(b){return null}};
oha=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?WB(b.clientKey):null;var c=b.encryptedClientKey?WB(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.O)():null;a&&c&&d&&(this.u=new nha(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=WB(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
pha=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
YB=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.B.call(this);var c=this;this.values=a;this.hj=b;this.B={};this.C=this.u=0;this.D=new g.G(function(){XB(c)},1E4);
g.C(this,this.D)};
$B=function(a,b){ZB(a,b);return a.values[b]&&a.hj[b]?a.values[b]/Math.pow(2,a.u/a.hj[b]):0};
ZB=function(a,b){if(!a.values[b]){var c=Mx();a.values=c.values||{};a.hj=c.halfLives||{};a.B=c.values?Object.assign({},c.values):{}}};
XB=function(a){var b=Mx();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=$B(a,e);a.B=c}b=a.hj;c={};c.values=a.B;c.halfLives=b;g.wt("yt-player-memory",c,2592E3)};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
aC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
bC=function(a,b){return void 0===b||null===b?a:Number(b)};
cC=function(a,b){return void 0===b||null===b?a:b.toString()};
dC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(qha);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
eC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.vo("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
DC=function(a,b,c){g.B.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.zd=this.Mb=this.Bb=this.zf=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.mj=NaN;this.Dc=!1;this.ra=0;this.dc=this.Ph=this.vg=!1;a=a?g.Zb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=cC("",a.csp_nonce);this.experiments=new sfa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Aa=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;this.ca("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(w){d=""}this.Rb=d;this.Ve=(d=window.location.ancestorOrigins)?Array.from(d):[];d=!this.ca("web_player_context_config_embeds_fields_killswitch");this.B=S(!1,b&&d?b.isEmbed:a.is_embed);if(b&&b.device){var e=b.device;e.brand&&(this.deviceParams.cbrand=e.brand);e.browser&&(this.deviceParams.cbr=e.browser);e.browserVersion&&(this.deviceParams.cbrver=
e.browserVersion);this.deviceParams.c=e.interfaceName||"WEB";this.deviceParams.cver=e.interfaceVersion||"html5";e.interfaceTheme&&(this.deviceParams.ctheme=e.interfaceTheme);this.deviceParams.cplayer=e.interfacePlayerType||"UNIPLAYER";e.model&&(this.deviceParams.cmodel=e.model);e.network&&(this.deviceParams.cnetwork=e.network);e.os&&(this.deviceParams.cos=e.os);e.osVersion&&(this.deviceParams.cosver=e.osVersion);e.platform&&(this.deviceParams.cplatform=e.platform)}else this.deviceParams.c=a.c||"web",
this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.ca("wpcc_loader_url_killswitch")?this.loaderUrl=this.B||fC(this)&&b.loaderUrl?b.loaderUrl||"":this.Rb:this.loaderUrl=this.B||fC(this)&&a.loaderUrl?cC("",a.loaderUrl):this.Rb;this.C=Cv(this.loaderUrl,rha);e=this.loaderUrl;var f=void 0===f?!1:f;this.Uq=Bv(Cv(e,sha),e,f,"Trusted Ad Domain URL");this.ha=S(!1,a.privembed);this.protocol=0===this.Rb.indexOf("http:")?"http":"https";this.P=Ev((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||
"")||Ev(this.Rb)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;e="detailpage";"adunit"===f?e=this.B?"embedded":"detailpage":"embedded"===f||this.C?e=aC(e,f,tha):f&&(e="embedded");this.ba=e;yp();f=null;e=b?b.playerStyle:a.ps;var h=g.nb(gC,e);!e||h&&!this.C||(f=e);this.playerStyle=f;this.N=(this.G=g.nb(gC,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Sq=!this.N;this.Y=S(!1,a.disableplaybackui);this.Tb=xB().defaultPlaybackRate?
hC||g.lk||iC?g.SB&&Rn("20")||g.AB&&Rn("4")||g.rg&&Rn("11")||hk():!(g.rg&&!Xj("chrome")||hC||Xj("android")||Xj("silk")):!1;this.Qj=S(!1,a.enable_faster_speeds);this.u=S("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?f=!0:(f=Number(g.A()/1E3),e=g.hs.getInstance(),f=this.ca("block_desktop_background_playback_with_mobile_cookie")&&e&&f>Number(e.get("dhmu",f.toString())));this.no=f;this.Qa="3"===this.controlsType||this.u||S(!1,a.use_media_volume);this.V=DB();this.zs=
g.jC;this.Qh=S(!1,b&&d?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=S(!1,b&&d?b.pfpChazalUi:a.pfp_chazal_ui);var l;b?void 0!==b.hideInfo&&(l=!b.hideInfo):l=a.showinfo;this.Mi=g.kC(this)&&!this.Qh||S(!lC(this)&&!mC(this)&&!this.G,l);this.Rh=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);l=this.u&&nC&&null!=oC&&0<oC&&2.3>=oC;f=b?b.useNativeControls:a.use_native_controls;e=this.u&&!this.ca("embeds_enable_mobile_custom_controls");f=pC(this)||!l&&S(e,f)?"3":"1";e=b?b.controlsType:
a.controls;this.controlsType="0"!==e&&0!==e?f:"0";this.md=this.u;this.color=aC("red",b&&d?b.progressBarColor:a.color,uha);this.zr="3"===this.controlsType||S(!1,b&&d?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.za=!this.B;this.Ni=(f=!this.za&&!mC(this)&&!this.N&&!this.G&&!lC(this))&&!this.zr&&"1"===this.controlsType;this.eb=g.qC(this)&&f&&"0"===this.controlsType&&!this.Ni;this.Jt=this.Fr=l;this.Oi=rC&&!g.Zd(601)?!1:!0;this.mo=this.B||!1;this.Ga=mC(this)?"":(this.loaderUrl||
a.post_message_origin||"").substring(0,128);this.widgetReferrer=cC("",b&&d?b.widgetReferrer:a.widget_referrer);var m;b&&d?b.disableCastApi&&(m=!1):m=a.enablecastapi;this.de=(m=!this.C||S(!0,m))&&"1"===this.controlsType&&!this.u&&(mC(this)||g.qC(this)||g.sC(this))&&!g.tC(this)&&!uC(this);this.Is=BB()||CB();m=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.Df=!this.u&&!Xj("nintendo wiiu")&&!Xj("nintendo 3ds")||m;m=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);l=this.ca("embeds_enable_muted_autoplay")&&
g.kC(this);this.Ef=m&&l&&this.V&&!pC(this);m=(mC(this)||lC(this))&&"blazer"===this.playerStyle;this.ee=b?!!b.disableFullscreen:!S(!0,a.fs);this.ka=!this.ee&&(m||ns());this.Oh=this.ca("uniplayer_block_pip")&&(Yj()&&Rn(58)&&!mk()||jk);m=g.kC(this)&&!this.Qh;var n;b?void 0!==b.disableRelatedVideos&&(n=!b.disableRelatedVideos):n=a.rel;this.rb=m||S(!this.G,n);this.Li=S(!1,b&&d?b.enableContentOwnerRelatedVideos:a.co_rel);this.F=mk()&&0<oC&&4.4>=oC?"_top":"_blank";this.Pc=g.sC(this);this.Bf=S("blazer"===
this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":n="bl";break;case "gmail":n="gm";break;case "books":n="gb";break;case "docs":n="gd";break;case "duo":n="gu";break;case "google-live":n="gl";break;case "google-one":n="go";break;case "play":n="gp";break;case "chat":n="hc";break;case "hangouts-meet":n="hm";break;case "photos-edu":case "picasaweb":n="pw";break;default:n="yt"}this.X=n;this.ie=cC("",b&&d?b.authorizedUserIndex:a.authuser);var p;b?void 0!==b.disableWatchLater&&
(p=!b.disableWatchLater):p=a.showwatchlater;this.Rk=(this.B&&!this.ha||!!this.ie)&&S(!this.N,this.C?p:void 0);this.ce=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.loop=S(!1,a.loop);this.pageId=cC("",a.pageid);this.Hs=S(!0,a.canplaylive);this.ni=S(!1,a.livemonitor);this.disableSharing=S(this.G,b?b.disableSharing:a.ss);(p=a.video_container_override)?(n=p.split("x"),2!==n.length?p=null:(p=Number(n[0]),n=Number(n[1]),p=isNaN(p)||isNaN(n)||0>=p*n?null:new g.he(p,n))):p=null;this.Pi=p;this.mute=
b?!!b.startMuted:S(!1,a.mute);this.Cf=!this.mute&&S("0"!==this.controlsType,a.store_user_volume);p=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:aC(void 0,p,vC);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":cC("",a.cc_lang_pref);p=aC(2,b&&d?b.captionsLanguageLoadPolicy:a.cc_load_policy,vC);"3"===this.controlsType&&2===p&&(p=3);this.Ui=p;this.ue=b?b.hl||"en_US":cC("en_US",a.hl);this.region=b?b.contentRegion||"US":cC("US",a.cr);
this.hostLanguage=b?b.hostLanguage||"en":cC("en",a.host_language);this.Oj=!this.ha&&Math.random()<g.Q(this.experiments,"web_player_api_logging_fraction");this.da=!this.ha;this.enabledEngageTypes=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);this.mj=bC(this.mj,a.ismb);p=a;g.xv(this.experiments,"html5_qoe_intercept")?p=g.xv(this.experiments,"html5_qoe_intercept"):this.Sq?(p=p.vss_host||"s.youtube.com",this.ca("www_for_videostats")&&"s.youtube.com"===p&&(p=wC(this.P)||"www.youtube.com")):p=
"video.google.com";this.Qi=p;this.Mg(a,!0);this.K=new VB;g.C(this,this.K);p=b?b.innertubeApiKey:cC("",a.innertube_api_key);n=b?b.innertubeApiVersion:cC("",a.innertube_api_version);m=b?b.innertubeContextClientVersion:cC("",a.innertube_context_client_version);this.ea={innertubeApiKey:to("INNERTUBE_API_KEY")||p,innertubeApiVersion:to("INNERTUBE_API_VERSION")||n,ZB:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),As:this.deviceParams.c,innertubeContextClientVersion:to("INNERTUBE_CONTEXT_CLIENT_VERSION")||
m,Ow:this.hostLanguage,Nw:this.region,bC:to("INNERTUBE_HOST_OVERRIDE")||"",dC:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),cC:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Sh=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new PB(this.experiments,this.ca("html5_force_hfr_support")?!0:xC(this)||ck()||dk()||yC(this),g.AB&&g.Zd(56)||g.SB&&g.Zd(54)||yC(this));p=this.mj;n=this.experiments;m=new pha;g.zC(this)&&(m.B=!0,m.D=.1);g.R(n,"html5_ewma_bandwidth_estimator")&&(m.B=
!0);g.R(n,"html5_pctile_bandwidth_estimator")&&(m.B=!1);p&&(m.C=p/8);m.u=g.Q(n,"html5_bandwidth_window_size")||m.u;this.schedule=new vga(m);this.enableSafetyMode=S(!1,a.enable_safety_mode);p=this.Y?!1:mC(this)&&"blazer"!==this.playerStyle;var r;b&&d?null!=b.disableAutonav&&(r=!b.disableAutonav):r=a.allow_autonav;this.tb=S(p,r);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:S(!1,a.send_visitor_id_header);this.Ka=(0,g.O)();var t;"docs"===this.playerStyle&&(b&&d?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);
this.disableNativeContextMenu=S(!1,t);this.Rj=xC(this)&&this.ca("enable_skip_intro_button");this.embedConfig=cC("",b&&d?b.serializedEmbedConfig:a.embed_config);this.he=S(!1,a.full_window);this.Ra=!g.AC(this)&&!BC(this)&&!g.tC(this)&&!uC(this)&&!0;this.livingRoomAppMode=aC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode,CC);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.Zq=1E-4>Math.random();this.Af=a.onesie_hot_config?new oha(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic;this.Qr=c;this.ac=new YB;g.C(this,this.ac)};
EC=function(a,b){return!a.G&&Yj()&&Rn(55)&&"3"===a.controlsType&&!b};
g.FC=function(a){a=wC(a.P);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.GC=function(a){return g.tC(a)?"music.youtube.com":g.FC(a)};
HC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
IC=function(a){return mC(a)&&!g.AC(a)};
pC=function(a){return rC&&!a.Rh||Xj("nintendo wiiu")||Xj("nintendo 3ds")?!0:!1};
uC=function(a){return"area120-boutique"===a.playerStyle};
g.tC=function(a){return"music-embed"===a.playerStyle};
g.zC=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
fC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
yC=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.JC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
xC=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.KC=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
BC=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.AC=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
LC=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.MC=function(a){return g.AC(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||LC(a)};
NC=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.OC=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
PC=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.QC=function(a){return g.KC(a)&&a.ca("web_player_i_see_captions")};
g.TC=function(a){return(a.deviceHasDisplay&&g.AB&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.Zd(51):!0:!1)||(a.deviceHasDisplay&&g.SB&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.Zd(48):g.Zd(38):!1)||(a.deviceHasDisplay&&g.rg&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.Zd(37):g.Zd(27):!1)||a.deviceHasDisplay&&g.RC&&!ik()&&g.Zd(11)||a.deviceHasDisplay&&g.SC&&g.Zd("604.4")};
UC=function(a){if(g.qC(a)&&nC)return!1;if(g.SB){if(!g.Zd(47)||!g.Zd(52)&&g.Zd(51))return!1}else if(g.SC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
mC=function(a){return"detailpage"===a.ba};
g.qC=function(a){return"embedded"===a.ba};
VC=function(a){return"leanback"===a.ba};
lC=function(a){return"adunit"===a.ba||"gvn"===a.playerStyle};
g.sC=function(a){return"profilepage"===a.ba};
g.kC=function(a){return a.B&&g.qC(a)&&!lC(a)&&!a.G};
WC=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.Gr(new Sq("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.XC=function(a){var b=g.GC(a);!a.ca("yt_embeds_disable_new_error_lozenge_url")&&vha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
wC=function(a){var b=g.yd(a);return(a=Number(g.xd(4,a))||null)?b+":"+a:b};
YC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
ZC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
$C=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
aD=function(a,b,c,d){return new ZC(g.kw[a]||0,g.kw[b]||0,c,d)};
bD=function(a){var b=g.kw.auto;return a.B===b&&a.u===b};
cD=function(a){var b=a.u||a.B;return Vb(wha,function(c){return g.kw[c]===b})||"auto"};
dD=function(a,b){var c=g.kw[b];return a.B<=c&&(!a.u||a.u>=c)};
eD=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.B&&!a.has(c.B.id)){var d=new YC(c.id,c.B);a.add(c.B.id);this.audioTracks.push(d)}};
xha=function(){this.ea=this.ra=this.u=this.D=this.C=this.G=this.K=this.X=this.V=!1;this.Y=!0;this.ba=!1;this.F=0;this.ka=!1;this.da=Infinity;this.dv=!1;this.Aa=!0;this.P=this.N=!1;this.B={};this.ha=!1};
yha=function(a){if(a.X)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ka&&b.unshift("1");a.u&&b.unshift("h");return b};
zha=function(a){var b=["o","a","A"];a.G&&(b=["m","M"].concat(b));a.C&&(b=["mac3","MAC3"].concat(b));a.D&&(b=["meac3","MEAC3"].concat(b));a.V&&(b=["so","sa"].concat(b));a.ra&&b.unshift("a");a.K&&b.unshift("ah");return b};
fD=function(a,b,c){b=void 0===b?{}:b;if(QB(a.D,RB.AV1_CODECS)&&QB(a.D,RB.HEIGHT)&&QB(a.D,RB.BITRATE))return b.isCapabilityUsable=!0,8192;try{var d=Tx();if(d)return b.localPref=d}catch(f){}d=g.Q(a.experiments,"html5_av1_thresh");var e=g.Q(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.Q(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.Q(a.experiments,"html5_av1_thresh_arm"))&&Zj()&&(b.isArm=
!0,d=a);if(c){if((a=c.videoInfos.find(function(f){return ww(f)}))&&a.C)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(Px("1",c.fps),Px("1",30));b.perfCap=a;d=Math.min(d,a);nw(c)&&(b.hdr="1",d*=.75)}else c=Px("1",30),b.perfCap30=c,d=Math.min(d,c),c=Px("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
gD=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Xg=this.keySystemAccess=null;this.Dr=this.Er=-1;this.fo=null;this.D="";this.F=!!d&&g.R(d,"edge_nonprefixed_eme");this.D=d?g.xv(d,"html5_hdcp_probing_stream_url"):""};
iD=function(a){return a.F?!1:!a.keySystemAccess&&!!hD()&&"com.microsoft.playready"===a.u};
jD=function(a){return"com.microsoft.playready"===a.u};
kD=function(a){return g.or&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
lD=function(a){return!a.keySystemAccess&&!!hD()&&"com.apple.fps.1_0"===a.u};
mD=function(a){return"com.youtube.fairplay"===a.u};
nD=function(a){return"fairplay"===a.flavor};
hD=function(){var a=window,b=a.MSMediaKeys;gk()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
oD=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.AB&&!g.ak())return Rn("45");if(g.or||g.ye)return g.R(a,"edge_nonprefixed_eme");if(g.SB)return Rn("47");if(g.SC){var b=g.Q(a,"html5_safari_desktop_eme_min_version");if(b)return Rn(b)}return!g.R(a,"html5_disable_nonprefixed_eme_for_other")};
Aha=function(a,b,c){var d=bk(),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.la(e),g.la(pD.playready)):[].concat(g.la(pD.playready),g.la(e))};
qD=function(a,b,c){var d={};if(kA(c)){for(var e in c.u)a=c.u[e],d[a.info.Fb]=[a.info];return d}for(var f in c.u){e=c.u[f];var h=Wu(e.info);""==e.info.Fb||("304"==h||"266"==h)&&a.Y||a.ea&&"h"==e.info.Fb&&e.info.video&&1080<e.info.video.yc||a.ba&&e.info.video&&4320<=e.info.video.yc&&32<e.info.video.fps||!lha(b,e.info)||"(h"==e.info.Fb&&!b.B||(h="MAC3"==e.info.Fb||"MEAC3"==e.info.Fb||"M"==e.info.Fb,c.isLive&&h&&!a.N||(d[e.info.Fb]=d[e.info.Fb]||[],d[e.info.Fb].push(e.info)))}c=g.q(Object.keys(d));for(f=
c.next();!f.done;f=c.next())f=f.value,d[f]&&d[f][0].isVideo()&&(d[f]=Bha(a,d[f]),d[f]=Cha(b,d[f]));return g.Jb(d,function(l){return!!l.length})};
Dha=function(a,b,c){var d={};g.Ib(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.Cd&&c&&l.Cd[c.flavor]&&c.B[l.mimeType])(l="("!=l.Fb&&"(h"!=l.Fb)||(l=(QB(a,RB.CRYPTOBLOCKFORMAT)||a.X)&&!a.P),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
Eha=function(a,b,c,d,e){function f(t){return!!h[t]}
e=void 0===e?!1:e;var h=qD(a,b,c);jA(c)&&(h=Dha(b,h,d));if(kA(c))return a=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].audio}),b=g.jb(Object.values(h),function(t){return!!t.length&&!!t[0].video}),a&&b||Xr(),Yr(new eD(b,a));
b=zha(a);b=g.jb(b,f);d=h[b];if(!b)return Xr();h["9"]&&h.h&&c.Ag&&!a.P&&delete h["9"];var l=h["9h"]?"9h":"9",m=[];if(a.ha&&!a.u)m=Kga(c)?h["1"]||h["9h"]?[].concat(h["1"],h["9h"]).filter(function(t){return t}):[].concat(h["9"],h.h).filter(function(t){return t}):[].concat(h["1"],h["9"],h.h).filter(function(t){return t});
else if(0<a.F&&h[l]&&h["1"]){if(e)c=h["1"],e=h[l];else{var n=Math.min(a.F,rD(h["1"])),p=rD(h[l]),r=function(t){return t<=n||t>p};
c=h["1"].filter(function(t){return r(t.La().yc)});
c.length&&(a.B.highestAv1Resolution=c[c.length-1].La().yc);e=h[l].filter(function(t){return!r(t.La().yc)});
e.length&&(a.B.higestVp9Resolution=e[e.length-1].La().yc)}m=[].concat(c,e).filter(function(t){return t})}if(m.length&&!a.u)return sD(m,d),Yr(new eD(m,d,tD(h,"",b)));
c=yha(a);c=g.jb(c,f);if(!c)return Xr();a.Aa&&"1"==c&&h[l]&&(a=rD(h["1"]),rD(h[l])>a&&(c=l));"9"==c&&h.h&&(a=rD(h["9"]),rD(h.h)>1.5*a&&(c="h"));a=h[c];if(!a.length)return Xr();sD(a,d);return Yr(new eD(a,d,tD(h,c,b)))};
tD=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)?(sD(d,e),new eD(d,e)):null};
sD=function(a,b){g.Cb(a,function(c,d){return d.La().height*d.La().width-c.La().height*c.La().width||d.u-c.u});
g.Cb(b,function(c,d){return d.u-c.u})};
Cha=function(a,b){var c=g.kh(b,function(d,e){return 32<e.La().fps?Math.min(d,e.La().width):d},Infinity);
Infinity>c&&(b=a.G&&(a.V||QB(a,RB.FRAMERATE))?g.Ke(b,function(d){return 32<d.La().fps||d.La().width<c}):g.Ke(b,function(d){return!(32<d.La().fps)}));
ck()&&(b=g.Ke(b,function(d){return"299"!=Wu(d)}));
return b};
Bha=function(a,b){return b=g.Ke(b,function(c){return c.La().yc<=a.da})};
rD=function(a){return g.kh(a,function(b,c){return Math.max(b,c.La().yc)},0)};
uD=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
Fha=function(a,b,c,d){this.ha=a;this.u=b;this.K=c;this.N=d;this.F=vD;this.B=this.X=null;this.Y=-1;this.D=this.G=null;this.C=[];this.da={};this.V=0;this.ba=this.P=!1;this.ea=0;this.ra=new Set;this.Aa=!1;this.ka=null};
Iha=function(a,b,c){wD(a,b);Gha(a,c);a.X=a.G;Hha(a);a.B=a.D;return xD(a)};
Jha=function(a,b){if($C(a.F,b))return null;if("m"==b.reason&&b.isLocked())return wD(a,b),a.V=a.C.length-1,yD(a),zD(a),a.ba=a.ba||a.B!=a.D,a.B=a.D,new uD(a.G,a.B,b.reason);"r"==b.reason&&(a.Y=-1);wD(a,b);zD(a);if("r"==b.reason&&a.D==a.B)return new uD(a.G,a.D,b.reason);if(a.B&&a.D&&AD(a,a.B.info)<AD(a,a.D.info)){var c=a.F.reason;a.P=a.P||"r"==c||"u"==c||"v"==c}return null};
Kha=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,xD(a)}else a.X=b;return null};
BD=function(a,b){b.V=(0,g.O)();a.Y=-1;wD(a,a.F);a.P=a.u.PE};
CD=function(a){for(var b=(0,g.O)()-6E4,c=g.q(a.N.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].V>b)return!0;return!1};
Lha=function(a){return new uD(a.X,a.B,a.F.reason)};
DD=function(a){return a.F.isLocked()};
Mha=function(a){return 0<a.C.length&&0==a.V};
xD=function(a){a.Y=(0,g.O)();a.P=!1;return new uD(a.X,a.B,a.F.reason)};
ED=function(a){var b=!DD(a)&&-1<a.Y&&8E3>(0,g.O)()-a.Y,c=a.D&&3*AD(a,a.D.info)<Oz(a.ha);if(!b||c)yD(a),zD(a),a.ba=a.ba||a.D!=a.B};
FD=function(a,b){for(var c={},d=g.q(b),e=d.next();!e.done;e=d.next())if((e=e.value)&&e.video){var f=e.video.yc,h=c[f],l=h&&ww(h)&&h.video.yc>a.u.Ra,m=f<=a.u.Ra?ww(e):uw(e);if(!h||l||m)c[f]=e}return c};
wD=function(a,b){a.F=b;var c=a.N.videoInfos;if(!DD(a)){var d=(0,g.O)()-6E4;c=g.Ke(c,function(p){if(p.u>this.u.N)return!1;p=this.K.u[p.id];var r=p.info.Fb;return this.u.Jt&&this.ra.has(r)||p.V>d?!1:4<p.B.B||4<p.P||p.G?!1:!0},a);
if(CD(a)){var e=g.Ke(c,function(p){p=Wu(p);return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.N.videoInfos);e=g.Ke(c,b.D,b);if(a.u.nF||a.u.zz){var f="m"===b.reason||"s"===b.reason;a.u.BG&&GD&&g.SC&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.C}));
if(!wB()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.yc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.yc==h});
var l=FD(a,f)[h].Fb;e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==l})}}var m=FD(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==m[p.video.yc].Fb})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return AD(this,p)-AD(this,r)},a));
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(g.qb(e,c),c--):AD(a,f)*a.u.u>AD(a,n)&&(g.qb(e,c-1),c--)}c=e[e.length-1];a.Aa=!!a.B&&!!a.B.info&&a.B.info.Fb!=c.Fb;a.C=e;tfa(a.u,c)};
Gha=function(a,b){if(b)a.G=a.K.u[b];else{var c=g.jb(a.N.u,function(d){return!!d.B&&d.B.isDefault});
c=c||a.N.u[0];a.G=a.K.u[c.id]}yD(a)};
HD=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].La().quality;)c++;var d=Oz(a.ha)/a.u.u;return AD(a,b.info)+AD(a,a.C[c])>d};
yD=function(a){if(!a.G||!a.u.C&&!a.u.Pj)if(!a.G||!a.G.info.B)if(a.G=a.K.u[a.N.u[0].id],1<a.N.u.length){var b=!1;if(a.u.Hk){if(b=!0,a.u.Gz){var c=ib(a.N.u,function(d){return"250"===Wu(d)});
0<=c&&(a.G=a.K.u[a.N.u[c].id],b=HD(a,a.G))}}else b=a.F.isLocked()?240>a.F.u:HD(a,a.G);b&&(a.G=a.K.u[g.gb(a.N.u).id])}};
zD=function(a){a.u.Mi&&(a.ka=a.ka||new g.G(function(){a.u.Mi&&a.B&&!CD(a)&&1===Math.floor(10*Math.random())?BD(a,a.B):a.ka.start()},6E4),a.ka.Hb());
if(!a.D||!a.u.C&&!a.u.Pj)if(DD(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.gb(a.C).id];else{for(var b=Math.min(a.V,a.C.length-1),c=Oz(a.ha),d=AD(a,a.G.info),e=c/a.u.B-d;0<b&&!(AD(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(AD(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.V=b}};
Hha=function(a){var b=a.u.B,c=Oz(a.ha)/b-AD(a,a.G.info);b=g.kb(a.C,function(d){return AD(this,d)<c},a);
0>b&&(b=0);a.V=b;a.D=a.K.u[a.C[b].id]};
ID=function(a,b){a.u.Ra=fD(b,{},a.N);wD(a,a.F);ED(a);a.P=a.D!=a.B};
AD=function(a,b){if(!a.da[b.id]){var c=a.K.u[b.id].index.vB(a.ea,15);c=b.D&&a.B&&a.B.index.Fc()?c||b.D:c||b.u;a.da[b.id]=c}c=a.da[b.id];a.u.Rb&&b.video&&b.video.yc>a.u.Rb&&(c*=1.5);return c};
Nha=function(a,b){var c=Vb(a.K.u,function(d){return Wu(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Oha=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Mga(a.K)){for(var d=Math.max(0,a.V-2);d<a.V&&d<a.C.length;d++){var e=Wu(a.C[d]);mw(a.C[d].La())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.Cz)for(d=Math.max(0,a.V-3);0<=d&&!c;d--)mw(a.C[d].La())||(c=!0,b.push(Wu(a.C[d])))}return b};
Pha=function(){this.il=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
JD=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
KD=function(a){return a.data[a.u]||0};
Qha=function(a){this.D=new JD(50);this.u=null;this.C=this.B=0;this.F=a};
LD=function(a,b,c,d){this.u=a;this.G=b;this.F=d;this.D=c;this.C=0};
MD=function(a,b,c,d){g.P.call(this);this.u=a;this.ea=b;this.ba=c;this.X=d;this.Y=NaN;this.C=this.P=this.F=null;this.B=this.K=this.N=this.G=NaN;this.D=!1;this.V=NaN};
Rha=function(a,b,c,d){return a.Aa&&a.ka&&3===Sz(a)?new MD(a,b,c,d):null};
ND=function(a,b){if(a.u.aB){var c=b.info.u;if(0>=c)a.V=NaN;else{var d=Iz(a.ea),e=b.index.u;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*e+a.u.P)/c,e-a.u.dc))}}};
Sha=function(a,b){var c=g.A()/1E3,d=c-a.G,e=c-a.N,f=e>=a.u.Qj,h=!1;if(f){var l=0;!isNaN(b)&&b>a.K&&(l=b-a.K,a.K=b);l/e<a.u.qC&&(h=!0);a.N=c}c=d>=a.u.dc&&!a.D;if(!f&&!c&&OD(a,b))return NaN;c&&(a.D=!0);a:{d=h;c=g.A()/1E3-(a.ba.u()||0)-a.P.C-a.u.P;f=a.C.startTime;c=f+c;if(d){if(isNaN(b)){PD(a,NaN,"n",b);f=NaN;break a}d=b-a.u.ac;d<c&&(c=d)}else a.D&&(d=c+a.u.P-a.Y+a.u.rC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.ac))),c=d);f=c=Math.max(c,f)}a.B=f;if(isNaN(a.B))return QD(a),NaN;if(!h&&OD(a,b))return RD(a,
b),NaN;if(a.B<=a.C.startTime)return PD(a,NaN,"y",b),QD(a),NaN;if(!a.X(a.B,!1))return!RD(a,b)&&h&&(PD(a,NaN,"t",b),QD(a)),NaN;h=a.B;PD(a,h,"s",b);QD(a);return h};
RD=function(a,b){return a.X(a.B,!0)?!1:(PD(a,NaN,"ns",b),QD(a),!0)};
OD=function(a,b){return isNaN(b)?!0:isNaN(a.B)?!1:b<a.B+(a.D?a.u.ac:a.u.PB)};
QD=function(a){a.F=null;a.P=null;a.C=null;a.G=NaN;a.N=NaN;a.K=NaN;a.B=NaN;a.D=!1};
PD=function(a,b,c,d){var e=Xx(a.F);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.B).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.G).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.P.C).toFixed(0);e.ssr_fa=a.D?"1":"0";e.ssr_o=(1E3*a.ba.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.C.u.index;Vz(b,a.C.B,!0)&&(e.ssr_ist=(1E3*b.Fe(a.C.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.C.B)).toFixed(0));e=g.tB(e);a.W("ctmp","ssr",e,!1)};
g.TD=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=Tha++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||SD.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.jh(d.thumbnails,function(e){return g.Gv(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
UD=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Uha=function(a,b){switch(a.style){case SD.CHAPTER_MARKER:return b?8:5;case SD.AD_MARKER:return 6;case SD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.VD=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.WD=function(a){return"crn_"+a};
g.XD=function(a){return"crx_"+a};
Vha=function(){this.B=g.VD;this.u=[]};
Wha=function(a,b,c){var d=[];for(b=YD(a,b);b<a.u.length;++b){var e=a.u[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
ZD=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
Xha=function(a){return a.u.slice(YD(a,0x7ffffffffffff),a.u.length)};
YD=function(a,b){var c=Bb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
$D=function(a,b){for(var c=NaN,d=g.q(a.u),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};
aE=function(a,b){if(1<b.length&&b.length>a.u.length)a.u=a.u.concat(b),a.u.sort(a.B);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.u.length||0<a.B(d,a.u[a.u.length-1])?a.u.push(d):g.Eb(a.u,d,a.B)};
bE=function(a,b,c,d){g.B.call(this);this.V=a;this.X=b;this.K=c;this.N=d;this.C=NaN;this.F=this.G=this.started=!1;this.B=[];this.P=new g.G(this.ph,250,this);g.C(this,this.P);this.D=new g.G(this.ph,0,this);g.C(this,this.D);this.u=new Vha};
cE=function(a,b){if(!a.la()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.B.indexOf(d);0<=e&&a.B.splice(e,1);var f=a.u;e=f.u;d=g.Ab(e,d,f.B);0<=d&&g.qb(e,d)}a.ph()}};
dE=function(a){return a.la()?[]:a.u.u};
eE=function(a,b){var c=dE(a).filter(function(d){return d.namespace===b});
cE(a,c);return c};
fE=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.B.indexOf(e)&&(a.B.push(e),c.push([1,e]))}return c};
gE=function(a,b){var c=[];if(!b.length)return c;b.sort(g.VD);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.B.splice(a.B.indexOf(e),1),c.push([2,e]);return c};
Yha=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.N(g.WD(e.namespace),e):a.N(g.XD(e.namespace),e)}};
Zha=function(a){a=void 0===a?{}:a;var b=a.Ue,c=a.Aq,d=a.Qb,e=a.Sm;this.bj=a.bj;this.Ue=b;this.Aq=c;this.Qb=d;this.Sm=e};
hE=function(a,b){if(0>b)return!0;var c=a.Qb();return b<c||b===c&&!a.bj||b===c&&(c=a.Sm())&&b===c.gb?!0:!1};
$ha=function(a,b,c){if(!hE(a,b))return 0;if(!a.Ue||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Qb();return b<c||b===c&&(a=a.Sm())&&b===a.gb&&!a.pending?2:1};
gga=function(a,b,c,d){if(hE(a,b))return d;b=0;a.Ue&&(b=.2);return c+1E3*(a.Aq+b)};
hga=function(a,b,c,d,e){b=$ha(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.Aq;a.Ue&&(c+=1E3*a.Aq);return c};
iE=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isBackground?!1:d.isBackground;var e=void 0===d.En?!1:d.En,f=void 0===d.Ds?!1:d.Ds;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isBackground=c;this.En=e;this.Ds=f;this.videoDuration=d};
lE=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.P.call(this);var m=this;this.ba=a;this.u=b;this.F=c;this.ra=new pB;this.dc=h||null;this.Y=new Kz(a,b);this.K=new Fha(this.Y,b,this.F,d);a=Iha(this.K,e,f&&f.id);this.D=new Zy(this.u,a.audio,(0,g.z)(this.fA,this));this.B=new Zy(this.u,a.video,(0,g.z)(this.fA,this));jE(this,this.D);jE(this,this.B);this.B.C.ba=this.D.C;this.C=null;this.Qa={updateend:this.uP,error:this.yM};this.md=new g.G(this.rh,0,this);g.C(this,this.md);this.Rb=new g.G(this.rh,1E3,this);
g.C(this,this.Rb);this.zd=new g.G(this.rh,void 0,this);g.C(this,this.zd);this.ac=new g.G(this.rh,1E4,this);g.C(this,this.ac);this.X=this.G=NaN;this.Aa=this.Mb=0;this.ka=this.eb=this.ha=!1;this.Ga="";this.Ka=new Bz(5);this.za={};this.tb=NaN;(this.P=Rha(this.u,this.ba,this.Ka,function(n,p){return kE(m,n,p)}))&&this.P.subscribe("ctmp",this.Oc,this);
this.N=new zA(this.F,this.B,this.D,this.u);g.C(this,this.N);this.V=new qB(this.F,this.u,this.B,this.N,this.D,l);g.C(this,this.V);this.V.subscribe("ctmp",this.Oc,this);aia(this,this.N);this.Dc=NaN;this.Tb=null;this.da=NaN;this.Pc=!1;this.Bb=0;this.ea=!1};
bia=function(a){var b=a.B.u.index;a.Tb=new Zha({bj:a.u.bj,Ue:a.u.D.Ue,Aq:b.u,Qb:function(){return b.Qb()},
Sm:function(){return b.Sm()}})};
mE=function(a,b){b=b||a.B&&a.B.B&&a.B.B.startTime||a.G;var c=a.B;var d=a.K;var e=d.D&&d.D.index.bh(b)||0;d.ea!=e&&(d.da={},d.ea=e,wD(d,d.F));ED(d);d.D&&!d.D.index.Fc()&&(d.ea=-1);d=d.D;c.u!=d&&(c.u=d);c=a.D;d=a.K.G;c.u!=d&&(c.u=d)};
nE=function(a,b){a.eb=b;a.ea||(a.ha=!0)};
oE=function(a){a.C&&a.C.u&&a.C.B&&(ws(a.C.u,a.Qa,a),ws(a.C.B,a.Qa,a));$y(a.D,null);$y(a.B,null);a.C=null};
qE=function(a,b){b=void 0===b?!1:b;oE(a);b?a.ea=!0:a.u.Qh?nE(a,a.Pc):nE(a,!1);pE(a)};
sE=function(a){a.C&&MB(a.C)&&(qE(a),a.u.Pz&&rE(a,!0,"fmt.unplayable",{unexpected:1}))};
uE=function(a,b,c){var d=a.V;if(2===d.C||3===d.C||a.ha&&(!Jz(a.ba)||a.eb)||a.u.Vg&&!Jz(a.ba))return!1;if(a.F.isManifestless){if(0<b.D.length&&b.B&&-1==b.B.B||b.D.length>=a.u.rz&&!a.u.Tb||!a.u.Dz&&0<b.D.length&&!a.u.D.Ue)return!1;if(b.N)return!a.F.isLive||!isNaN(a.tb)}if(Az(b))return!1;if(!(b.B||a.F.isManifestless&&a.u.Tb&&b.N)){if(!b.u.me())return!1;kz(b,a.G)}d=b.D.length+c.D.length;(uz(b)||uz(c)||a.F.isLive&&(!a.u.Tb||!b.D.length))&&--d;if(d+1>=a.u.vz)return!1;d=b.B;if(!d)return!0;if(!aw(d.u.B))return!1;
4==d.type&&d.u.me()&&(b.B=g.gb(d.u.hu(d)),d=b.B);if(!d.F&&!d.u.xj(d))return!1;var e=a.F.tf||a.F.G;if(a.F.isManifestless&&e){e=b.u.index.Qb();var f=c.u.index.Qb();e=Math.min(e,f);if(0<b.u.index.G&&0<e&&d.B>=e)return b.V=e,c.V=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(wz(b)&&!a.u.V)return!0;if(d.F||mz(b)&&mz(b)+mz(c)>a.u.Ga)return!1;e=!b.F&&!c.F;f=b==a.B&&a.ea;if(!(c=!!(c.B&&!c.B.F&&c.B.G<d.G)&&(!a.F.isManifestless||c.B&&c.B.G&&d.G)&&e&&!f||a.u.ha&&!b.F&&c.F)&&(c=Ru(d))){c=d.G;a:if(d=a.V,d=d.u?
d.u.ze:null,a.ea&&d)a=d.startSecs+d.durationSecs;else{d=tE(a,b,!0);!DD(a.K)&&0<a.u.X&&(e=((0,g.O)()-a.Mb)/1E3,d=Math.min(d,a.u.X+a.u.de*e));d=a.G+d;if(a.u.Rh&&(e=Kla(a)+a.u.Rh,e<d)){a.Oc("mrl","ori."+d+";mod."+e,!0);a.u.HG&&(a.Mb=(0,g.O)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
vE=function(a,b,c){if((!a.C||JB(a.C)&&!a.u.V)&&!a.N.C&&a.K.P){var d=a.G;a=a.Y;c=Mz(a,b.u.info.u,c.u.info.u,0);var e=Gz(a.B)+c/Iz(a.B);qz(b,d+Math.max(e,e+a.u.Ef-c/b.u.info.u))}};
xE=function(a,b,c){if(uE(a,b,c)){var d=Lla(a,b,c);if(d)if(a.u.Xz&&a.F.isManifestless&&!b.N&&0>d.u[0].B)a.Oc("invalidsq",Ou(d.u[0]));else{if(a.Ra){var e=d.u[0].u.info.id,f=d.u[0].B,h=d.u[0].K;0>f&&!isNaN(a.V.N)&&(f=a.V.N,h=a.V.F);var l=Mla(a.Ra.u,h,f,e);a.u.Ve&&a.Oc("sdai","itag."+e+".sg."+f+".st."+h.toFixed(3)+".url."+!!l+".other."+c.Y);l&&f>c.Y?(0>d.u[0].B&&0<f&&(d.F="sq/"+f),d.G=l):b.Y=f}a.u.Hs&&-1!=d.u[0].B&&d.u[0].B<a.F.Vd&&(d=b.u.Vl(a.F.Vd,!1));a=wE(a,d);b.D.push(a);b.B=g.gb(a.info.u)}}};
Lla=function(a,b,c){if(b.N){if(a.F.isLive){var d=a.F.Vd&&a.F.G?b.u.Vl(a.F.Vd,!1):b.u.fj(Infinity);d.bf=a.tb}else d=b.u.Vl(0,!1);a.P?0==d.bf&&(d.D=a.P.V):d.D=a.Dc;return d}d=b.B;if(!d.u.me())return d.u.We()?(a=Mz(a.Y,b.u.info.u,c.u.info.u,0),a=d.u.Ul(d,a)):a=d.gk(),a;a.u.Pc||!a.K.P||a.u.V||a.F.isManifestless||(vE(a,b,c),b.B||kz(b,a.G));if(!b.B)return null;d=b.B;var e=d.G-a.G,f=!d.range||0==d.nb&&0==d.C?0:d.range.length-(d.C+d.nb),h=d.u;Nla(a,b,e)&&0==f&&(a.F.isManifestless?h=b.u:(h=d.startTime+yE,
d.nb&&(h+=d.duration),kz(b,h),d=b.B,h=d.u));h.We()?(c=Mz(a.Y,h.info.u,c.u.info.u,e,Mha(a.K)&&a.ka),d=Ola(d,c,vz(b))):(0>d.B&&(c=Vu(d),c.pr=""+b.D.length,a.N.C&&(c.sk="1"),a.Oc("nosq",d.N+";"+g.tB(c))),d=h.gk(d));a.ea&&d.u.forEach(function(l){l.type=6});
return d};
Nla=function(a,b,c){if(!vz(b)||!b.u.me())return!1;var d=Math.min(15,.5*tE(a,b,!0));return wz(b)||c<=d||a.K.P};
Ola=function(a,b,c){b=a.u.Ul(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!=a.u)b=a.u.Ul(a,b.u[0].nb);else{c=b.u[b.u.length-1];var d=c.nb/b.range.length;!c.D&&.4>d&&(b=a.u.Ul(a,b.range.length-c.nb))}return b};
Pla=function(a,b){var c=gw(b),d=a.Y,e=Math.min(2.5,Gz(d.B));d=Nz(d);var f=Qu(b.u[0]),h=Ov(b.B.u),l=a.u.Vg,m;a.Tb?m={rg:f,oi:h,Jl:l,ti:a.Tb,gb:b.u[0].B,bf:b.bf}:m={rg:f,oi:h,Jl:l};return new hx(a.ba,c,c-e*d,m)};
wE=function(a,b){Ru(b.u[b.u.length-1])&&zE(a,Kha(a.K,b.u[0].u));var c=Pla(a,b);a.u.Ve&&(c.F=[]);var d={il:Math.max(0,b.u[0].K-a.G)};a.u.Ph&&ew(b)&&b.u[0].u.info.video&&(d.QE=Oha(a.K));a.ea&&(d.xq=!0);return new Wx(a.u,b,c,a.za,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.B:a.D;if(!(2<=e.state)||4<=e.state||!e.u.Ii()||!a.u.zd||e.K||!(!a.C||a.ha||nz(h,a.G)>a.u.zd)){var l=a.u.Li;if(!(!l||4<=e.state||e.K<l||$v(e.info.B,a.u,a.za))){l=a.za;var m=Nv(Zv(e.info.B));l=Yv(l,m);l.u||l.B||l.started||(l=
hw(e.info,!0,a.u.Sh))&&wE(a,l)}if(!a.la()&&2<=e.state){l=a.ra;var n=e.info.u[0].u;m=!l.D&&n.info.video;n=!l.u&&n.info.audio;4==e.state?m?l.Te("vrr"):n&&l.Te("arr"):5==e.state?m?(l.D=e.qd(),vp(4)):n&&(l.u=e.qd()):3==e.state&&m&&vp(4);4<=e.state&&(a.u.za&&(l=ix(e.timing),m=e.timing,a.Oc("rqs",g.tB({rn:e.P.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.u.Ii(),d:m.F?m.F.join(""):""}))),e.Aa&&a.Oc("sbwe3","1",!0));if(4==e.state)tz(h,e),ew(e.info)&&AE(a,h,f,!0),a.rh();
else if(4<=e.state&&5==e.info.u[0].type)5==e.state&&(f=(e.info.u[0].u.info.video?a.B:a.D).D[0]||null)&&f.K&&gy(f,!0),e.dispose();else{if(!e.isFailed()&&e.N&&2<=e.state&&4!=e.state)if(f=e.u?e.u.Wd("X-Response-Itag"):null){f=Nha(a.K,f);h=e.info.range.length-f.Ur();f.F=!0;e.info.u[0].u.F=!1;l=f.zl(h)[0];e.info=l;if(e.C){h=e.C;l=l.u;h.B=l;m=l[0].range;n=fv(h.u[0].u);fv(g.gb(h.u).u);for(var p=0;p<h.u.length;p++){h.u[p].info=l[p];var r=l[p].range;h.u[p].u=new Zu([new Uint8Array(n.buffer,r.start-m.start,
r.length)])}}e.N=!1;h=a.B;h.u!=f&&(h.u=f);h=a.B;h.B&&(h.B.u=f);a.W("constraint",f.info.La().quality);(h=e.u?e.u.Wd("X-Segment-Lmt"):null)&&f instanceof Dw&&(isNaN(f.lastModified)||f.lastModified==h||tz(a.B,e))}else e.N=!1;if(5==e.state){if(BE(a,e),a.V&&(f=a.V,h=e.info,l=a.Ra,0!==f.C&&l&&h.u[0].isVideo()))if(f.u&&f.u.gb===h.u[0].B)if(m=f.u.ze.event,"start"===m)f.N=h.u[0].B+1,f.F=NaN,f.C=3,CE(l);else if("continue"===m){if(1===f.C||5===f.C)f.N=h.u[0].B,f.F=h.u[0].K,f.C=2,CE(l)}else"stop"==m&&(f.C=5);
else 1===f.C&&(f.C=5)}else if(a.u.da&&hy(e)&&!(4<=e.state)&&!BE(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&(f=e.info.u[0].u,h=e.F,ey(e)?(l=(f.info.video&&1<f.B.B||410==e.G||500==e.G||503==e.G)&&!CD(a.K),m=Xx(e),n=f.info.video?a.B:a.D,l&&(m.stun="1"),rE(a,!1,h,m),a.la()||(l&&BD(a.K,f),a.u.Ni&&1==e.info.u.length&&0<e.info.u[0].C&&f!=n.u&&a.ka?a.W("reattachrequired"):(tz(n,e),a.rh()))):Ov(f.B.u)?(a.W("localplaybackfailed"),f={err:e.F,rn:e.P.toString()},h=g.rf(e.u.Sl()||""),a.Oc("dldbrerr",h||
"none"),rE(a,!1,"net.closed",f)):(rE(a,!1,h,Xx(e)),e.info.rg()?(f.G=h,a.rh()):rE(a,!0,"net.retryexhausted",{err:h,rn:e.P.toString()})));a.rh();a.u.eb&&4<=e.state&&ey(e)&&$v(e.info.B,a.u,a.za)&&(f=a.za,h=Nv(e.info.B.u),f=Yv(f,h),f.D+a.u.eb*Xv(f)>(0,g.O)()||(e=hw(e.info,!1,a.u.Sh))&&wE(a,e))}}}e=void 0}return e},d)};
zE=function(a,b){b&&a.W("videoformatchange",b)};
BE=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;Qla(a,d,b);b.info.rg()&&!dw(b.info)&&(g.Fb(iy(b),function(e){ty(d.C,e)}),a.W("metadata",c));
cz(d);return!!py(d.C)};
Qla=function(a,b,c){if(a.F.isManifestless&&b){b.N&&(c.la(),4<=c.state||c.u.Ii()||hy(c),b.N=!1);c.X&&a.Ka.C(1,c.X);c.u&&(c.Y=parseInt(c.u.Wd("X-Head-Seqnum"),10));b=c.Y;c.u&&(c.ba=parseInt(c.u.Wd("X-Head-Time-Millis"),10));c=c.ba;a=a.F;for(var d in a.u){var e=a.u[d].index,f=c;e.B&&(b&&(e.G=Math.max(e.G,b)),f&&(e.D=Math.max(e.D,f)))}}};
DE=function(a){a.md.Hb()};
HE=function(a){var b=a.C.u,c=a.C.B;a.D.u.C&&EE(a,b,a.D.u.C);if(Rla(a)){if(a.u.Uq){if(!b.xl()){var d=py(a.D.C);d&&FE(a,b,d)}c.xl()||(b=py(a.B.C))&&FE(a,c,b)}a.Aa||(a.Aa=(0,g.O)())}else{if(a.Aa){d=(0,g.O)()-a.Aa;var e=nz(a.D,a.G),f=nz(a.B,a.G);a.Oc("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Aa=0}if(a.P){d=a.P;e=a.D;f=My(a.C.B.Ye());if(d.F)d=Sha(d,f);else{if(f=py(e.C)){var h=f.B;h&&h.D&&h.C&&(e=e.D.length?e.D[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.bf&&
e.u.Ii()&&(d.F=e,d.P=h,d.C=f.info,d.G=g.A()/1E3,d.N=d.G,d.K=d.C.startTime)}d=NaN}d&&a.W("seekplayerrequired",d,!0)}d=!1;GE(a,a.B,c)&&(d=!0,e=a.ra,e.C||(e.C=g.A(),e.Te("vda"),mB("vda","video_to_ad"),e.B&&vp(4)));if(a.C&&!MB(a.C)&&(GE(a,a.D,b)&&(d=a.ra,d.B||(d.B=g.A(),d.Te("ada"),mB("ada","video_to_ad"),d.C&&vp(4)),d=!0),!a.la()&&a.C)){!a.u.ea&&jz(a.B)&&jz(a.D)&&JB(a.C)&&!a.C.uf()&&(e=az(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,JB(e)&&e.C.endOfStream(),Fz(a.ba)));e=a.u.xz;f=a.u.ND;d||!(0<e||f)||!JB(a.C)||
jz(a.B)||jz(a.D)||(b.Gq(a.G,f,e),c.Gq(a.G,f,e));if(c=d)c=a.C,c=!(c.u?c.u.supports(0):NB());c&&DE(a)}}};
Rla=function(a){var b;(b=Az(a.B))||(b=a.V,b=1===b.C||2===b.C||3===b.C);if(b)return!0;if(a.u.rb)return!1;if(b=a.N.C){b=a.Y;var c=a.B,d=a.D;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=Ay(c.C).concat(Ay(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.nb;c=c.u.info.u+d.u.info.u;e/=c;b=10<e?!0:10>c*(10-e)/Oz(b)}(b=!b)||(b=a.B,b=0<b.D.length&&1==b.C.B.length&&py(b.C).info.P<b.ha)}if(b)return!0;if(!a.ka||!a.u.Qa||10>a.G||360<a.B.u.info.La().yc)return!1;b=xz(a.B,a.G,a.u.Qa)||xz(a.D,
a.G,a.u.Qa);return(0<a.B.D.length||0<a.D.D.length||uE(a,a.B,a.D)||uE(a,a.D,a.B))&&b};
GE=function(a,b,c){if(c.uf())return!0;if(!c.ov())return!1;var d=py(b.C);if(!d||6==d.info.type)return!1;var e=d.info,f=az(b);!f||f.D||Su(f,e)||c.abort();!c.Uo()||wB()?c.ez(e.u.info.containerType,e.u.info.mimeType):e.u.info.containerType!=c.Uo()&&a.Oc("ctu","ct."+wB()+";prev_c."+c.Uo()+";curr_c."+e.u.info.containerType);if(a.F.C&&0==d.info.C&&(g.nv(d.info.u.info)||a.u.XF)){if(null==c.xl()){e=az(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.V,f=d.info.V,e.length!=f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Db(e[h],
f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.xl(),f=d.info.u.u,e=e!==f&&!g.Db(e,f);e&&a.Oc("initchg","it."+d.info.u.info.id+".ty."+d.info.type+".seg."+d.info.B);a.u.Bb&&!e&&(g.nv(d.info.u.info)?(iu(kv(d),1836019574),iu(kv(d),1718909296)):(e=new nu(kv(d)),Iu(e),ru(e,524531317,!0),d.u=d.u.split(e.C+e.u).nm),d.C=!1)}a.u.Qi&&d.C&&(d.C=!1);e=a.P&&!!a.P.F&&b.u.info.audio;f=a.F.isManifestless||d.C;if(!(a.F.C&&0!=d.info.C||f&&!e)&&FE(a,c,d))return!0;if(e)return!1;e=a.G+tE(a,b,!1);if(!(e=d.info.K>e)){a:if(a.u.ue&&
(!d.info.C||d.info.D)&&a.Oc("sba",c.qb({as:Ou(d.info)})),e=d.C?d.info.u.u:null,f=fv(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=IE(a,c,f,d.info,e),"s"==e)a.Bb=0,a=!0;else{a.u.LD||(c.abort(),pz(b));if("i"==e||"x"==e)JE(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.u,e.G=Math.floor(.8*e.G),e.Y=Math.floor(.8*e.Y),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Ka=Math.floor(.8*e.Ka),e.F=Math.floor(.8*e.F)),!c.uf()&&!a.C.isView()&&c.Gq(Math.min(a.G,d.info.startTime),
!0,5))){a=!1;break a}a.W("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();ez(b,d);return!0};
JE=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.G=e,d.u.info.video&&!CD(a.K)&&BD(a.K,d.u)):"i"==c&&(15>a.Bb?(a.Bb++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Vu(d);d.mrs=a.C.C.readyState;d.origin=b;d.reason=c;rE(a,f,e,d)};
KE=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=yw(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,Vz(h,b.gb)||(h.qD(b),e=!0))}bha(a.N,b,c,e);c&&(a=a.V,a.K.tb&&(a.Y.C&&!a.K.Qr?(a.B=null,a.D=!1):(c=a.u&&a.B&&a.u.gb==a.B.gb-1,c=a.u&&c&&"stop"!=a.u.ze.event&&"predictStart"!=a.u.ze.event,a.B&&a.B.gb<b.gb&&(c?rB(a,a.B):a.D=!0),a.B=b)))};
FE=function(a,b,c){c.info.u.me();var d=c.info.u.u;if(null==d||b.xl()==d)return!1;var e=d,f=b.Sr();if(a.u.Qi&&f&&b.isView()&&g.nv(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=lfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Oc("fenc","1")}f=null;h=c.info.u.zl(0);h.length&&(f=h[0].u[0]);a.u.Sq&&b.abort();d=IE(a,b,e,f,d);return"s"!=d?(JE(a,"sepInit",d,c.info),!0):b.uf()};
IE=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 M(f),"u";c=Iy(b.Ye()).replace(/,/g,"_");d=g.rf(f.message);a.Oc("quex","br."+c+";t."+(a.C?b==a.C.B?"v":"a":"u")+";e."+d);return"q"}return MB(a.C)?"m":"s"};
jE=function(a,b){b.C.subscribe("needkeyinfo",a.cM,a);b.C.subscribe("error",a.MN,a);b.C.subscribe("avsyncissue",a.LN,a);var c=(0,g.z)(a.PN,a,b);b.C.subscribe("placeholderinfo",c,void 0);c=(0,g.z)(a.QN,a,b);b.C.subscribe("placeholderrollback",c,void 0);c=(0,g.z)(a.RN,a,b);b.C.subscribe("segmentinfo",c,void 0);c=a.NN.bind(a);b.C.subscribe("gaplessinfo",c,void 0);c=a.ON.bind(a);b.C.subscribe("localmediachange",c,void 0)};
aia=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.ea||a.W("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Oc(c,d,!1)});
b.subscribe("error",function(c,d,e){rE(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.G=c})};
EE=function(a,b,c){var d=0+c.duration;c=-c.u;0==b.Rr()&&d==b.iw()||b.vy(0,d);c!=b.pc()&&(b.Qn(c),By&&Gy(a.D.C,b.qw()))};
tE=function(a,b,c){if(a.ha)return 1;var d=b.u.info.audio?a.u.K:a.u.G;!a.u.V&&DD(a.K)&&(d=Math.max(d,b.u.info.audio?a.u.Ka:a.u.Y));c&&(d+=a.u.Ga);var e=DD(a.K)?b.B?b.B.u.info.u:b.u.info.u:b.ba;d/=e;0<a.u.Df&&a.C&&JB(a.C)&&(b=b.u.info.video?a.C.B:a.C.u)&&!b.uf()&&(b=b.Ye(),e=Jy(b,a.G),0<=e&&(b=a.G-b.start(e),d+=Math.max(0,Math.min(b-a.u.Df,a.u.yz))));0<a.u.F&&(d=Math.min(d,a.u.F));a.u.Cf&&c&&!DD(a.K)&&(c=a.K,c=AD(c,g.gb(c.C))+AD(c,c.N.u[0]),c=a.u.Cf*(c/Nz(a.Y)),c<d&&15>c&&a.Oc("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
Kla=function(a){if(!a.dc)return Infinity;var b=g.Ke(dE(a.dc),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.G)return c.start/1E3;return Infinity};
Sla=function(a,b){var c=gz(a.B).find(function(d){return d.startTime>=b&&kE(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
kE=function(a,b,c){if(!(a.B.u.me()&&a.D.u.me()&&a.C&&a.C.B&&a.C.u))return!1;if(c&&a.F.isManifestless&&(-1==a.B.G||-1==a.D.G))return!0;var d=iz(a.B,b,c);if(isNaN(d))return!1;a=iz(a.D,a.u.ka?b:d,c);return isNaN(a)?!1:!0};
AE=function(a,b,c,d){c.me()||c.F||!aw(c.B)||(d=c.zl(d?xga(a.Y,c.info):0),g.Fb(d,function(e){if("f"!=e.u[0].u.info.Fb){var f=wE(this,e);dw(e)&&(b.D.push(f),b.B=g.gb(f.info.u))}},a),c.F=!0)};
rE=function(a,b,c,d){a.la()||(d=new sB(c,b,d),g.Ua(a),g.tB(d.details),a.W("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
pE=function(a){pz(a.D);pz(a.B)};
LE=function(a){a.D.C.F=null;a.B.C.F=null;a.u.C="";a.u.Vg=!1};
Tla=function(a,b){var c=b.info.video?a.B:a.D;null!=c&&AE(a,c,b,!1)};
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.ME=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(Ula(d))}return 1==b.length?b[0]:g.Ee("SPAN",null,b)};
Ula=function(a){var b=null,c=a.text;a.bold&&(b=g.Ee("B",null,b||c));a.italics&&(b=g.Ee("I",null,b||c));a.strikethrough&&(b=g.Ee("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.Ee("A",null,b||c),g.id(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.Ee("SPAN",null,c)};
NE=function(a,b,c,d){d=void 0===d?!1:d;g.B.call(this);this.experiments=b;this.useCobaltWidevine=d;this.u=[];this.B={};this.D={};this.callback=null;this.F=!1;this.C=[];this.initialize(a,!c)};
Wla=function(a,b){a.callback=b;a.C=[];oD(a.experiments)?OE(a):Vla(a)};
OE=function(a){if(!a.la())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Xla(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Eo(function(e){if(!a.la()){c.keySystemAccess=e;if(jD(c)){e=xB();for(var f=g.q(Object.keys(a.D[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.B[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())c.B[h.value.contentType]=!0;if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())c.B[f.value.contentType]=!0}a.C.push(c);a.ca("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),OE(a)):a.callback(a.C)}}),Eo(function(){a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;
a.F||a.u.shift();OE(a)}))}};
Xla=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};jD(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.D[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.F?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),h.push({contentType:e,robustness:"SW_SECURE_DECODE"}),
a.ca("html5_query_sw_secure_crypto_for_android")&&(mk()||Yj())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Vla=function(a){if(hD()&&g.SC)a.C.push(new gD("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Yla(),c=g.jb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.D[e.flavor])b(l,d)&&(e.B[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Yla=function(){var a=hD();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=xB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
PE=function(a){this.Ma=a};
QE=function(a,b,c){if(c)return Xr();var d={};c=xB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Be().mimeType)){var f=e.Ma.La().quality;if(!d[f]||d[f].Be().Jd())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Fb(ow,function(l){(l=d[l])&&h.push(l)});
return h.length?Yr(h):Xr()};
Zla=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
RE=function(a,b,c){a.cpn&&(b=g.Jd(b,{cpn:a.cpn}));c&&(b=g.Jd(b,{h4:c}));return b};
SE=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
$la=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.u){f=b.u;var h=f.getId().split(".")[0];h&&(d+='LANGUAGE="'+h+'",');a.u||f.getIsDefault()||(e="NO");f=f.getName()}h="";null!==c&&(h=c.itag.toString());a=RE(a,b.url,h);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(SE(b,c)+'",URI="'+(a+'"'))};
ama=function(a){for(var b=[],c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
bma=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.u=void 0===p?null:p;this.audioChannels=r;this.D=(null===l||void 0===l?void 0:l.split(","))||[];this.C=m||null;this.Cd=n||"";this.B=""};
TE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new dA(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new bma(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
UE=function(a,b,c){this.Ma=a;this.B=b;this.expiration=c;this.u=null};
cma=function(a,b){if(!(jk||gk()||bk()))return null;var c=TE(b,g.R(a.experiments,"html5_filter_fmp4_in_hls"));if(!c)return null;for(var d=[],e={},f=g.q(Object.keys(c)),h=f.next();!h.done;h=f.next()){h=g.q(c[h.value]);for(var l=h.next();!l.done;l=h.next()){var m=l.value;m.u&&(l=m.u.getId(),e[l]||(m=new YC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
gma=function(a,b,c,d,e){if(!(jk||gk()||bk()))return Xr();var f=dma(c),h=TE(c,g.R(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return Xr();g.R(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||ema(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.Q(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.R(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var D=g.q(y.D);for(var E=D.next();!E.done;E=D.next())if(E=E.value,h[E]){y.B=E;break}y.B||(y.B=fma(h,y));if(E=h[y.B]){c.push(y);D="fairplay"===y.Cd?l:null;var H="";"PQ"===y.C?H="smpte2084":"HLG"===y.C&&(H="arib-std-b67");H&&(t=H);n.push(VE(E,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,D,H));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}D=n.reduce(function(N,J){return J.Be().isEncrypted()&&
N},!0)?l:null;
d=Math.max(d,g.Q(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(VE(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,D,t));return QE(a.D,n,EC(a,b))};
VE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new rw(d,"application/x-mpegURL",new iw(0,t,null,w),new lw(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Zla(a,b,c);a.D=n?n:1369843;return new UE(d,a,l)};
dma=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};
fma=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Cd===b.Cd&&!e.audioChannels)return d}return""};
ema=function(a){for(var b=new Set,c=g.q(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.q(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
WE=function(a,b){this.Ma=a;this.u=b};
hma=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new Lv(h.url,!0);if(h.s){var l=h.sp,m=Av(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=zw(h.type,h.quality,h.itag,h.width,h.height);e.push(new WE(h,f))}}return QE(a.D,e,EC(a,b))};
XE=function(a,b){this.Ma=a;this.u=b};
ima=function(a){var b=[];g.Fb(a,function(c){if(c&&c.url){var d=zw(c.type,"medium","0");b.push(new XE(d,c.url))}});
return b};
jma=function(a,b,c){c=ima(c);return QE(a.D,c,EC(a,b))};
kma=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=WB(a.ustreamerConfig))};
g.YE=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.u=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.ZE=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
aF=function(a){for(var b={},c=g.q(Object.keys($E)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[$E[d]];e&&(b[d]=e)}return b};
bF=function(a,b){for(var c={},d=g.q(Object.keys($E)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Gv(f)&&(c[$E[e]]=f)}return c};
eF=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(cF)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=cF[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=dF(h.url);g.Gv(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=dF(a.url),g.Gv(a)&&(b["maxresdefault.jpg"]=a));return b};
dF=function(a){return a.startsWith("//")?"https:"+a:a};
fF=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return lma[a];return null};
gF=function(a){return a&&a.baseUrl||""};
hF=function(a){a=g.Yp(a);for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
iF=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Rg=c)};
mma=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=jF(d.baseUrl);if(!e)return;d=new g.YE({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.qv=b.audioTracks||[];a.pA=b.defaultAudioTrackIndex||0;b.translationLanguages?a.tv=g.Pc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}):
a.tv=[];
a.kr=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
nma=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m)return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Wp(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,co:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,co:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f,
co:0===h?5:7})}}};
oma=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
kF=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
lF=function(a){g.P.call(this);this.u=null;this.C=new g.no;this.u=null;this.G=new Set;this.crossOrigin=a||""};
oF=function(a,b,c){c=mF(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Fc(e)){d=a;var f=c,h=f+"-"+e;d.G.has(h)||(d.G.add(h),g.mo(d.C,f,{yC:f,zD:e}))}nF(a)};
nF=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=pma(a,b)}};
pma=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.yC].qd(b.zD);c.onload=function(){var d=b.yC,e=b.zD;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);nF(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.kw()-1);e=[e,d];a.W("l",e[0],e[1])};
return c};
g.pF=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d};
qF=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;lF.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
rF=function(a,b,c){return(a=a.levels[b])?a.zt(c):-1};
mF=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].le()>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
sF=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.pF.call(this,a,b,c,0);this.B=null;this.G=d?3:0};
tF=function(a,b,c,d){qF.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].eD(c)};
qma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Jd(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.uF=function(a,b){g.P.call(this);this.Pa=a;this.adModule=!1;this.adaptiveFormats="";this.bA=this.adSafetyReason=this.adQueryId=this.Zu=null;this.uo="";this.Cd=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.qg="";this.ev=this.Xq=this.BC=!1;this.pC=null;this.ho=this.tm=this.Nq=this.ew=this.Gs=!1;this.Tc=null;this.bl=!1;this.cq=NaN;this.Ux={};this.Ny=this.cycToken=null;this.author="";this.ak=0;this.vv=!1;this.Ui=null;this.kv=this.QA=!1;this.clientScreenNonce=
this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Xj=this.zo="";this.contentCheckOk=!1;this.Ug=0;this.Br=this.Lo=!1;this.endSeconds=0;this.fo=this.Xg=this.Ma=this.Qv=null;this.dw="";this.wd=!1;this.mj=this.an=0;this.cv=this.pipable=this.Il=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.ni=this.isPrivate=this.isListed=this.Vw=this.mutedAutoplay=this.Fk=!1;this.jx="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Yw=this.np=
this.tf=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Kc=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Ei=0;this.reloadReason="";this.dx=this.mC=this.nj=!1;this.keywords={};this.kh="";this.Js=0;this.Hq=!1;this.liveChunkReadahead=NaN;this.Ns=0;this.jn=null;this.vp=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.uj=[];this.Pe=[];this.racyCheckOk=!1;this.TE={};this.iq=0;this.Ia=null;this.autonavState=
1;this.jA=null;this.shortDescription="";this.vg=this.Fy=!1;this.ou=this.qk=this.startSeconds=0;this.Cu=this.mA=this.zG=vD;this.Un=this.suggestions=null;this.Ky=!1;this.expandedSubtitle=this.Yv=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.yv=void 0;this.Ca=[];this.hlsFormats=this.Iq="";this.Os=this.nu=this.Og=this.Dj=this.Fg=this.kq=this.ys=null;this.pg="vvt";this.ne=!1;this.nz=null;this.KG="";this.Pq=NaN;this.Nu=this.Ju=this.Iu=this.Hu=this.Gu=this.Mu=this.Mq=this.Lu=this.Oq=
this.Ku="";this.jo=null;this.BF=!1;this.Uc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.RB=this.QB=NaN;this.Hn=this.pp=this.al=this.aC=this.SB=!1;this.qq=!0;this.Gh={};this.captionTracks=[];this.qv=[];this.pA=0;this.tv=[];this.kr=!1;this.Go=new YC("und",new dA("Default","und",!0));this.ex=0;this.Yc=null;this.Jn=[];this.Yk=[];this.jz=this.Yp="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.WA=this.Ko=this.ug=this.Ov=this.bv=this.Wu=null;
this.wr=!1;this.be=null;this.Tw=this.Jo=this.useCobaltWidevine=this.OF=this.Ll=this.Ej=!1;this.rk=this.Hl=NaN;this.defraggedFromSubfragments=this.Ym=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Hk=this.lz=this.sm=!1;this.interstitials=[];this.Lc=this.Ww=!1;this.Xp=this.GD=this.cj="";this.isVisualizerEligible=!1;this.Qt=null;this.Xb="";this.ri=this.YB=!1;this.ED=this.Lq="";this.Wx=this.Qx=this.Pw=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=
NaN;this.showShareButton=!0;this.uq=!1;this.Sn=this.Rk=!0;this.errorDetail=this.userGenderAge="";this.Oy=this.Py=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.ai=this.errorReason=this.errorCode=null;this.qr=this.mr="";this.Vg=this.Mm=!1;this.vj=this.Pl=this.fg=this.Vd=0;this.tp=this.fetchType=null;this.VE=!0;this.gG=void 0;this.Yq=-1;this.Rn=this.Qk=!1;this.Ro=null;this.ca("web_player_ux_module_wait")&&
this.Pa.Ra&&this.Pe.push("ux");this.Qk=this.ca("web_new_autonav_countdown");this.Rn=this.ca("web_new_big_thumbnail_endscreen");this.setData(b)};
xF=function(a,b){a.fflags=cC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.qg=Kv(c));a.Xq=S(a.Xq,b.iv_ads_only);a.ev=S(a.ev,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=cC(a.author,b.author);a.zo=jF(b.ttsurl)||a.zo;a.vv=S(a.vv,b.cc_asr);a.Xj=cC(a.Xj,b.channel_path);a.channelBanner=cC(a.channelBanner,b.channel_banner);a.videoCountText=cC(a.videoCountText,b.video_count_text);a.autonavState=aC(a.autonavState,b.autonav_state,rma);a.clientPlaybackNonce=cC(a.clientPlaybackNonce,
b.cpn);a.subscribed=S(a.subscribed,b.subscribed);a.rawViewCount=bC(a.rawViewCount,b.view_count);a.shortViewCount=cC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=cC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=cC(a.lengthText||"",b.lengthText);a.xo=cC(a.xo||"",b.xo);a.title=cC(a.title,b.title);a.subtitle=cC(a.subtitle,b.subtitle);a.Yv=cC(a.Yv,b.expanded_title);a.expandedSubtitle=cC(a.expandedSubtitle,b.expanded_subtitle);a.uo=cC(a.uo,b.aria_label);a.ypcPreview=cC(a.ypcPreview,
b.ypc_preview);a.oz=cC(a.oz,b.ypc_origin);a.ne=S(a.ne,b.ypc_is_premiere_trailer);a.Lq=cC(a.Lq,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.BF=S(a.BF,b.requires_purchase);a.showShareButton=!S(!a.showShareButton,b.ss);a.Rk=S(a.Rk,b.showwatchlater);a.Sn=S(a.Sn,b.shownotifybutton);a.uq=S(a.uq,b.copy_share);if(c=b.keywords)a.keywords=vF(c.split(","));if(c=b.rvs)a.suggestions=Xp(c);a.contentCheckOk=S(a.contentCheckOk,b.cco);a.racyCheckOk=S(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,
b.is_living_room_deeplink);a.oauthToken=cC(a.oauthToken,b.oauth_token);a.kh=cC(a.kh,b.kpt);a.visitorData=cC(a.visitorData,b.visitor_data);if(c=b.session_data)a.yd=Up(c);if(c=b.endscreen_autoplay_session_data)a.Qv=Up(c);a.Cr=cC(a.Cr,b.endscreen_ad_tracking_data);a.DG=S(a.DG,b.wait_for_vast_info_cards_xml);a.Iy=S(a.Iy,b.suppress_creator_endscreen);a.lC=S(a.lC,b.is_trueview_action);a.fG=cC(a.fG,b.tracking_list);a.mr=cC(a.mr,b.clip);a.qr=cC(a.qr,b.clipt);wF(a,b)};
BF=function(a,b){var c,d,e,f,h,l=b.raw_watch_next_response;if(!l){var m=b.watch_next_response;m&&(l=JSON.parse(m))}if(l){a.watchNextResponse=l;l=a.watchNextResponse.contents;var n;if(l){if(n=l.singleColumnWatchNextResults){var p=bC(0,b.autoplay_count);if(n.autoplay&&n.autoplay.autoplay&&!n.playlist){var r=n.autoplay.autoplay.sets;n={};m={};var t=null;if(r){for(var w=g.q(r),x=w.next();!x.done;x=w.next())if((x=x.value.autoplayVideoRenderer)&&x.compactVideoRenderer){t=x.compactVideoRenderer;break}if(r=
r[0].autoplayVideo)(r=r.clickTrackingParams)&&(n.itct=r),n.autonav="1",n.playnext=String(p)}else n.feature="related-auto";if(t){m.autonav="1";m.video_id=t.videoId;if(p=t.shortBylineText)m.author=g.T(p);if(p=t.title)m.title=g.T(p)}m.endscreen_autoplay_session_data=g.Hd(n);a.suggestions=[m]}}n=l.twoColumnWatchNextResults}l=a.watchNextResponse.playerOverlays;if(l&&(l=l.playerOverlayRenderer)){if(m=l.endScreen)if(m=m.watchNextEndScreenRenderer)var y=m.results;if(m=l.videoDetails){var D=m.embeddedPlayerOverlayVideoDetailsRenderer;
if(m=m.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.cw=m.title,a.bw=m.byline}if(m=l.actions)for(m=g.q(m),p=m.next();!p.done;p=m.next())p=p.value,p.likeButtonRenderer&&(a.likeButtonRenderer=p.likeButtonRenderer);if(m=null===(c=l.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer)a.multiMarkersPlayerBarRenderer=null===(d=m.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.yv=null===(f=null===(e=m.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||
void 0===f?void 0:f.chapters,a.WP=null===(h=m.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer;g.qC(a.Pa)&&(a.Rk=!!l.addToMenu);yF(a,l.shareButton);if(m=l.productsInVideoOverlayRenderer)a.shoppingOverlayRenderer=m.shoppingOverlayRenderer;if(l=l.autoplay)var E=l.playerOverlayAutoplayRenderer}!y&&n&&(l=n.endScreen&&n.endScreen.endScreen)&&(y=l.results);n&&(l=n.desktopOverlay&&n.desktopOverlay.desktopOverlayConfigRenderer)&&(l.suppressShareButton&&(a.showShareButton=!1),l.suppressWatchLaterButton&&
(a.Rk=!1));D&&zF(a,b,D);D=bC(0,b.autoplay_count);if(y){l=n||null;m=E||null;p=[];t=!0;y=g.q(y);for(r=y.next();!r.done;r=y.next()){x=r.value;w=void 0;r=null;if(x.endScreenVideoRenderer){x=x.endScreenVideoRenderer;var H=x.title;r={id:x.videoId,length_seconds:x.lengthInSeconds};var N=x.publishedTimeText;N&&(r.publishedTimeText=g.T(N));if(N=x.shortBylineText)r.author=g.T(N);if(N=x.shortViewCountText)r.short_view_count_text=g.T(N);H&&(r.title=g.T(H),(H=H.accessibility)&&(H=H.accessibilityData)&&H.label&&
(r.aria_label=H.label));if(H=x.navigationEndpoint)if(w=H.clickTrackingParams,H=H.watchEndpoint)r.XA=H;if(H=x.thumbnailOverlays)for(H=g.q(H),N=H.next();!N.done;N=H.next())if(N=N.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===N.style){r.live_playback="1";break}else if("UPCOMING"===N.style){r.isUpcoming=!0;break}x=eF(x.thumbnail);x=aF(x);x.iurlmq&&(x={iurlmq:x.iurlmq,iurlhq:x.iurlmq});Object.assign(r,x)}else if(x.endScreenPlaylistRenderer){x=x.endScreenPlaylistRenderer;w=x.navigationEndpoint;if(!w)continue;
r=w.watchEndpoint;if(!r)continue;r=r.videoId;r={list:x.playlistId,video_id:r,playlist_length:x.videoCount,thumbnail_ids:r};if(H=x.title)r.playlist_title=g.T(H);if(H=x.shortBylineText)r.playlist_author=g.T(H);w=w.clickTrackingParams;x=eF(x.thumbnail);Object.assign(r,aF(x))}r&&(r.session_data=g.Hd({itct:w}),t?(AF(r,l,m,D),p.splice(0,0,r),t=!1):p.push(r))}a.suggestions=p}if(E){a.VE=!!E.preferImmediateRedirect;a.Qk=a.Qk||!!E.webShowNewAutonavCountdown;a.Rn=a.Rn||!!E.webShowBigThumbnailEndscreen;if(a.Qk||
a.Rn){y=E;n=n||null;l={id:y.videoId};if(m=y.videoTitle)l.title=g.T(m),(m=m.accessibility)&&(m=m.accessibilityData)&&m.label&&(l.aria_label=m.label);if(m=y.byline)l.author=g.T(m);if(m=y.publishedTimeText)l.publishedTimeText=g.T(m);if(m=y.thumbnailOverlays)for(m=g.q(m),p=m.next();!p.done;p=m.next())if(p=p.value.thumbnailOverlayTimeStatusRenderer)if("LIVE"===p.style){l.live_playback="1";break}else if("UPCOMING"===p.style){l.isUpcoming=!0;break}else if("DEFAULT"===p.style&&p.text){l.lengthText=g.T(p.text);
break}m=eF(y.background);m=aF(m);m.iurlmq&&(m={iurlmq:m.iurlmq,iurlhq:m.iurlmq});Object.assign(l,m);if(m=y.nextButton)if(m=m.buttonRenderer)if(p=m.navigationEndpoint)if(m=p.clickTrackingParams,l.session_data=g.Hd({itct:m}),m=p.watchEndpoint)l.XA=m;y.topBadges&&(m=y.topBadges[0])&&(m=m.metadataBadgeRenderer)&&"BADGE_STYLE_TYPE_PREMIUM"==m.style&&(l.tq=!0);if(m=y.alternativeTitle)l.xo=g.T(m);AF(l,n,y,D);a.suggestions||(a.suggestions=[]);a.suggestions[0]=l}null!=E.countDownSecs&&(a.Yq=1E3*E.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&
(a.Gh=eF(a.watchNextResponse.currentVideoThumbnail))}};
CF=function(a){return!!(a.Ia&&a.Ia.videoInfos&&a.Ia.videoInfos.length)};
EF=function(a){if(a.ca("html5_single_format_policy")&&a.Ro)return a.Ro;var b=a.ri,c=!!a.ma&&(a.ma.oj()||a.ma.pj()||a.ma.kj()),d=a.Pa,e=!!a.ma&&a.ma.Ag,f=DF(a),h=a.lz;a.isAd();var l=a.isOtf(),m=a.dv(),n=new xha;n.X=f;n.K=h&&d.C;Xj("windows nt 5.1")&&!g.SB&&(n.u=!0);c&&nC&&6>=oC&&(n.u=!0);if(f=c)f=d.ca("disable_html5_ambisonic_audio")||!(g.TC(d)||d.ca("html5_enable_spherical")||d.ca("html5_enable_spherical3d"))?!1:UC(d);f&&(n.V=!0);b&&(n.u=!0,n.ra=!0);l&&!g.R(d.experiments,"html5_otf_prefer_vp9")&&
(n.u=!0);QB(d.D,RB.CHANNELS)&&(g.R(d.experiments,"html5_enable_aac51")&&(n.G=!0),g.R(d.experiments,"html5_enable_ac3")&&(n.C=!0),g.R(d.experiments,"html5_enable_eac3")&&(n.D=!0));g.R(d.experiments,"html5_block_8k_hfr")&&(n.ba=!0);!g.R(d.experiments,"html5_kaios_hd_killswitch")&&iC&&(n.da=480);if(e||c)n.Y=!1;n.ea=!1;b=fD(d,n.B);0<b&&2160>b&&(wB()||g.R(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=wB(),n.F=b);2160<=b&&(n.ka=!0);Tx()&&(n.B.serveVp9OverAv1IfHigherRes=!1,n.Aa=!1);
n.dv=m;m=g.or||nk()&&!m?!1:!0;n.P=m;n.ha=g.R(d.experiments,"html5_format_hybridization");bk()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.C=!0,n.D=!0);a.isLivePlayback&&(d=a.Kc&&a.Pa.ca("html5_enable_audio_51_for_live_dai"),m=!a.Kc&&a.Pa.ca("html5_enable_audio_51_for_live_non_dai"),n.N=d||m);return a.Ro=n};
tma=function(a){a.Xg||a.ma&&jA(a.ma);var b={};a.ma&&(b=qD(EF(a),a.Pa.D,a.ma));b=new NE(b,a.Pa.experiments,a.OF,sma(a));g.C(a,b);a.pp=!1;a.wd=!0;Wla(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Xg=a.Xg;e.Er=a.Er;e.Dr=a.Dr;break;case "widevine":e.fo=a.fo}a.Jn=c;0<a.Jn.length&&(a.Yc=a.Jn[0]);FF(a)})};
JF=function(a,b){var c;(c=!b)||(c=!(!GF(a)&&a.adaptiveFormats));if(c)return null;HF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(pA=!0);c=IF(b);var d=a.Cd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.tf,l=a.Pa.experiments,m=Qga(c);d=f||h?Pga(c,h,d,l):3==m?Oga(c,d,e,l):Nga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=nA(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.np=!0)));if(c=d.isManifestless)c=!(a.ca("html5_manifestless_vp9")||a.ca("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!uma(d));return c?(d.dispose(),null):d};
LF=function(a,b){var c=JF(a,b);if(!c)return!1;KF(a,c);return!0};
GF=function(a){return bk()&&!MF(a)};
MF=function(a){return HF(a,"html5_enable_tvos_dash_dogfood")||a.ca("html5_enable_tvos_dash")&&(a.ca("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
sma=function(a){return a.useCobaltWidevine?a.ca("html5_enable_tvos_widevine")&&bk()?MF(a):HF(a,"html5_enable_androidtv_cobalt_widevine")&&Xj("cobalt")&&Xj("android")?!0:!1:!1};
uma=function(a){return a.isManifestless&&zB('video/webm; codecs="vp9"')&&g.Mb(a.u,function(b){return uw(b.info)})};
NF=function(a){return!(!a.ma||!a.ma.isManifestless)};
PF=function(a){if(!xx())return!1;if(a.ca("html5_streaming_debug"))return!0;if(g.or)return!1;if(g.ak()){var b=Wj();if(16<=b&&17>b)return!1}return!NF(a)||"ULTRALOW"!=a.latencyClass&&21530001!=OF(a)?window.AbortController?a.ca("html5_streaming_xhr")||a.ca("html5_streaming_xhr_manifestless")&&NF(a)?!0:!1:!1:!0};
QF=function(a){var b=NF(a),c=PF(a);return(a.hasSubfragmentedFmp4||a.Ym)&&b?c&&xx()?3:2:a.defraggedFromSubfragments&&b?-1:1};
OF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ma&&5<=yA(a.ma)?21530001:a.liveExperimentalContentId};
RF=function(a){return bk()&&MF(a)?!1:!TB()||a.QA?!0:!1};
vma=function(a){a.wd=!0;a.al=!1;if(!a.sg&&SF(a))Ofa(a.videoId).then(function(d){a:{var e=JF(a,a.adaptiveFormats);if(e)if(d=JF(a,d)){if(0<g.Q(a.Pa.experiments,"hoffle_cache_size_secs")){var f=a.videoId,h=Kw(f);0!==h&&Nw(f,h,!0)}f=g.q(Object.keys(d.u));for(h=f.next();!h.done;h=f.next()){var l=h.value;h=d.u[l];l=e.u[l];if(!l||h.lastModified<l.lastModified){TF(a,!0);a.tp=new iE(a.videoId,2,{En:!0});d.dispose();KF(a,e);break a}}e.dispose();KF(a,d)}else KF(a,e)}a.W("ctmp","dlac","r")},function(){return LF(a,
a.adaptiveFormats)}).then(function(){FF(a)});
else{Fv(a.sg)||g.Gr(new Sq("DASH MPD Origin invalid: ",a.sg));var b=a.sg,c=g.Q(a.Pa.experiments,"dash_manifest_version")||4;b=g.Jd(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Jd(b,{pacing:0}));Tga(b,a.Pa.experiments,a.isLivePlayback).then(function(d){a.la()||(KF(a,d,!0),cB("mrc"),FF(a))},function(d){a.la()||(a.wd=!1,a.W("dataloaderror",new sB("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
cB("mrs")}};
wma=function(a,b){a.tp=b};
FF=function(a){a.la()||(a.wd=!1,a.W("dataloaded"))};
KF=function(a,b,c){c=void 0===c?!1:c;a.ma=b;g.C(a,b);b.Vd=a.Vd;b.fg=a.fg;b.vj=a.vj;b.Pl=a.Pl;UF(a)&&a.Pe.push("webgl");a.ma.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.jn=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(c?b.subscribe("refresh",a.ZD,a):b.subscribe("cuepointsadded",a.xA,a));jA(b)&&(a.pp=!0)};
VF=function(a){return a.Cd?!0:!!a.ma&&jA(a.ma)};
xma=function(a,b){var c=b||RF(a);return a.ma&&!c?(DF(a)&&Yga(a.ma,a.isLivePlayback),HF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Pa.D.C=!0),Eha(EF(a),a.Pa.D,a.ma,a.Yc,a.ca("html5_dynamic_av1_hybrid_threshold")).then(function(d){WF(a,d);/^av/.test(a.clientPlaybackNonce)&&a.Ro&&a.W("ctmp","av1",g.tB(a.Ro.B))})):Xr()};
yma=function(a,b){if(b&&a.hlsvp)return Xr();if(a.hlsFormats){var c=IF(a.hlsFormats);a.ys=cma(a.Pa,c);var d=a.clientPlaybackNonce;return gma(a.Pa,a.isAd(),c,a.mj,d).then(function(e){for(var f,h,l=0,m=g.q(e),n=m.next();!n.done;n=m.next())n=n.value,(null===(h=null===(f=n.Be())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.Be().audio.u);2<l&&a.W("ctmp","hlschl",l);XF(a,e)})}return Xr()};
zma=function(a){return a.Un&&a.mC?jma(a.Pa,a.isAd(),a.Un).then(function(b){XF(a,b)}):Xr()};
Bma=function(a){var b=IF(a.Iq,a.dw);if(a.hlsvp){var c=qma(a.hlsvp,a.clientPlaybackNonce,a.mj);b.push(c)}return hma(a.Pa,a.isAd(),b,Ama(a)).then(function(d){XF(a,d)})};
WF=function(a,b){a.Ia=b;var c=a.getAvailableAudioTracks();c=c.concat(a.Go);for(var d=0;d<a.qv.length;d++)for(var e=a.qv[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.pA||l){if(e.captionTrackIndices)for(l=0;l<e.captionTrackIndices.length;l++)h.captionTracks[l]=a.captionTracks[e.captionTrackIndices[l]];void 0!==e.defaultCaptionTrackIndex&&(h.D=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.B=a.captionTracks[e.forcedCaptionTrackIndex]);
h.C=e.visibility||"UNKNOWN"}}if(a.Yc&&a.Ia&&a.Ia.videoInfos&&!(0>=a.Ia.videoInfos.length)&&(c=xw(a.Ia.videoInfos[0]),c!=("fairplay"==a.Yc.flavor)))for(d=g.q(a.Jn),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.Yc=e;break}};
XF=function(a,b){a.Dj=b;WF(a,new eD(g.Pc(a.Dj,function(c){return c.Be()})))};
Ama=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Pa.deviceParams.c,cver:a.Pa.deviceParams.cver};a.St&&(b.ptk=a.St,b.oid=a.NE,b.ptchn=a.ME,b.pltype=a.OE);return b};
g.YF=function(a){return GF(a)&&a.Xg?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Ma&&a.Ma.Cd||null};
ZF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.paidContentOverlayText};
$F=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.rd(b.durationMs):a.paidContentOverlayDurationMs};
aG=function(a){var b="";if(a.jx)return a.jx;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.bG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
cG=function(a){return!!(a.sg||a.adaptiveFormats||a.Iq||a.Un||a.hlsvp)};
dG=function(a){var b=g.nb(a.Pe,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.wd&&(cG(a)||g.nb(a.Pe,"fresca")||g.nb(a.Pe,"heartbeat")||b)};
IF=function(a,b){var c=Xp(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 h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c};
yF=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.uq=!!c.copyTextEndpoint)}};
fG=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.ug=c);if(a.ug){if(c=a.ug.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.ug.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.cj=d,a.Lc=!0):(a.cj="",a.Lc=!1);if(d=c.defaultThumbnail)a.Gh=eF(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&zF(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.cw=d.title,a.bw=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Rk=!!c.addToWatchLaterButton;yF(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&
(a.Qt=new kma(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.rd(c.videoDurationSeconds));a.ca("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&kF(a,c.webPlayerActionsPorting);if(a.ca("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];var e=Number(c.currentIndex);if(c.contents)for(var f=0,h=c.contents.length;f<h;f++){var l=c.contents[f].playlistPanelVideoRenderer;
if(l){var m=l.shortBylineText?g.T(l.shortBylineText):"",n=l.title?g.T(l.title):"";d.push({author:m,encrypted_id:l.videoId,title:n,channel_path:f===e?b.channel_path:"",profile_picture:f===e?b.profile_picture:""})}}d={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(d.title=g.T(c.titleText));c.shortBylineText&&(d.author=g.T(c.shortBylineText));a.WA=d}}a.ug.playabilityStatus&&(a.Ko=a.ug.playabilityStatus,eG(a)&&(a.errorDetail="0",a.Ko&&(c=a.Ko.embeddedPlayerErrorMessageRenderer)))&&
(a.VA=c.embeddedPlayerErrorMessageRenderer);(c=a.ug.attestation)&&iF(a,c)}};
AF=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.Hd(d)};
zF=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.Sn=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.Py=b.toggledServiceEndpoint||null,a.Oy=b.defaultServiceEndpoint||null):(a.Py=b.defaultServiceEndpoint||null,a.Oy=b.toggledServiceEndpoint||
null))}};
g.gG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
hG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
UF=function(a){return a.pj()||a.oj()||a.bn()||a.kj()};
Cma=function(a){a.Ia=a.Ia.B};
g.iG=function(a){if(a.Iy)return null;var b=a.pC;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.jG=function(a){return a.Iy?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.kG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.lG=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.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};
mG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Pa.ba};
nG=function(a){if(a.isAd()&&a.videoId!=a.Pa.Mb)return a.Pa.Mb};
oG=function(a){return a.Fk||"detailpage"==mG(a)||a.mutedAutoplay};
pG=function(a){if(oG(a)){if("detailpage"==mG(a))return a.Il||0<a.Ei;if("adunit"!=mG(a)||!a.Kn)return!0}return!1};
qG=function(a){var b=1,c=g.Q(a.Pa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.cq;g.R(a.Pa.experiments,"html5_enable_per_format_loudness")&&a.Ia&&a.Ia.u&&a.Ia.u[0]&&a.Ux[a.Ia.u[0].id]&&(c=a.Ux[a.Ia.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
DF=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Pa.deviceParams.c&&"MUSIC"===a.Pa.deviceParams.ctheme;!a.sm&&(NC(a.Pa)||c)&&b.includes(a.musicVideoType)&&(a.sm=!0);if(b=g.ak())b=/Starboard\/([0-9]+)/.exec(g.Vc),b=10>(b?parseInt(b[1],10):NaN);c=a.Pa;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Pa.deviceParams.ctheme;
var d;if(d=!a.sm)c||(c=a.Pa,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.ca("cast_prefer_audio_only_for_atv_and_uploads")||a.ca("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.sm=!0);return!a.Pa.deviceHasDisplay||a.sm&&a.Pa.C};
sG=function(a){return rG(a)&&!!a.adaptiveFormats};
rG=function(a){return!!(a.ca("hoffle_save")&&a.Mm&&a.Pa.C)};
TF=function(a,b){if(a.Mm!=b&&(a.Mm=b)&&a.ma){var c=a.ma,d;for(d in c.u){var e=c.u[d];e.F=!1;e.u=null}}};
SF=function(a){return!(!(a.ca("hoffle_load")&&a.adaptiveFormats&&Ow(a.videoId))||a.Mm)};
tG=function(a){if(!a.ma||!a.Ma||!a.Tc)return!1;var b=a.ma.u;return!!b[a.Ma.id]&&Ov(b[a.Ma.id].B.u)&&!!b[a.Tc.id]&&Ov(b[a.Tc.id].B.u)};
eG=function(a){return(a=a.Ko)&&a.showError?a.showError:!1};
uG=function(a){return a.ca("disable_rqs")?!1:HF(a,"html5_high_res_logging")};
HF=function(a,b){return a.ca(b)?!0:(a.fflags||"").includes(b+"=true")};
Dma=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
wF=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Vt=c.quartile_0_url,a.by=c.quartile_25_url,a.ey=c.quartile_50_url,a.gy=c.quartile_75_url,a.Zx=c.quartile_100_url,a.Wt=c.quartile_0_urls,a.dy=c.quartile_25_urls,a.fy=c.quartile_50_urls,a.hy=c.quartile_75_urls,a.ay=c.quartile_100_urls)};
xG=function(a){return a?TB()?!0:vG&&5>wG?!1:!0:!1};
vF=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
jF=function(a){if(a){if(Iv(a))return a;a=Jv(a);if(Iv(a,!0))return a}return""};
yG=function(a){this.u=a};
CE=function(a){a=a.u;a.F.isActive()||(g.R(a.D.experiments,"html5_high_res_logging")&&a.u.jb("sdai","adf.1"),a.F.start())};
Ema=function(a,b){Ao(a,"version",b)};
g.zG=function(a,b){this.type=a||"";this.id=b||""};
g.AG=function(a,b){g.P.call(this);this.Pa=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.wd=this.loaded=!1;this.yd=this.Qv=this.Zp=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Gh={};this.Ks=0;var c=b.session_data;c&&(this.yd=Up(c));this.JH=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.ZL="1"===b.mob;this.title=b.playlist_title||"";this.description=
b.playlist_description||"";this.author=b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.wd||(this.listId=new g.zG("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":Fma(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.zG(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):Gma(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.Gh=bF(b,"playlist_");this.ZF=(c=b.thumbnail_ids)?c.split(","):[]};
BG=function(a){return!!(a.playlist||a.list||a.api)};
CG=function(a){var b=a.index+1;return b>=a.length?0:b};
DG=function(a){var b=a.index-1;return 0>b?a.length-1:b};
EG=function(a,b){a.index=g.be(b,0,a.length-1);a.startSeconds=0};
Fma=function(a,b){if(!a.wd){a.listId=new g.zG("SR",b);var c={search_query:b};a.ZL&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
Gma=function(a){if(!a.wd){var b=b||a.listId;b={list:b};var c=a.La();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
FG=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=a.La();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.wd=!1;a.loaded=!0;a.Ks++;a.Zp&&a.Zp()}};
Hma=function(){};
HG=function(){this.u={};var a=g.wq("CONSISTENCY");a&&GG(this,{encryptedTokenJarContents:a})};
GG=function(a,b){if(b.encryptedTokenJarContents&&(a.u[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.u[b.encryptedTokenJarContents]},1E3*c);
g.vq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
YG=function(){var a=g.L("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.L("INNERTUBE_CLIENT_NAME")&&(this.localStorage=XG(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.u=void 0)};
ZG=function(){YG.u||(YG.u=new YG);return YG.u};
XG=function(a){return void 0===a.localStorage?new yq("yt-client-location"):a.localStorage};
g.aH=function(a,b){b=void 0===b?!0:b;var c=g.L("INNERTUBE_CONTEXT");if(!c)return g.Fr(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.$b(c);var d=b,e,f;c.client||(c.client={});var h=c.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.L("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;
h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var l=void 0===l?!1:l;g.hs.getInstance();var m=g.js(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.vo("kevlar_apply_prefers_color_theme")&&(m=g.js(0,165)?"USER_INTERFACE_THEME_DARK":g.js(0,174)?"USER_INTERFACE_THEME_LIGHT":!g.vo("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");
l=l?m:Zea()||m;h.userInterfaceTheme=l;if(g.vo("web_log_connection")){a:{if(m=(l=window.navigator)?l.connection:void 0){l=$G[m.type||"unknown"]||"CONN_UNKNOWN";m=$G[m.u||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===l&&"CONN_UNKNOWN"!==m&&(l=m);if("CONN_UNKNOWN"!==l)break a;if("CONN_UNKNOWN"!==m){l=m;break a}}l=void 0}l&&(h.connectionType=l)}g.vo("web_populate_graft_url_killswitch")||"MWEB"!==h.clientName&&"WEB"!==h.clientName||(h.mainAppWebInfo={graftUrl:g.v.location.href});g.vo("web_populate_time_zone_itc_killswitch")||
(l="undefined"!==typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:void 0,l&&(h.timeZone=l));(l=g.wq("EXPERIMENTS_DEBUG"))?h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;h=yo();HG.u||(HG.u=new HG);l=g.Pb(HG.u.u);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.hs.getInstance();h=g.js(0,58);l=l.get("gsml","");c.user=Object.assign({},c.user);h&&(c.user.enableSafetyMode=h);l&&(c.user.lockedSafetyMode=
!0);(h=g.L("DELEGATED_SESSION_ID"))&&!g.vo("pageid_as_header_web")&&(c.user.onBehalfOfUser=h);d&&(d=g.Ps())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.vo("web_enable_client_location_service")&&(d=ZG(),c.client||(c.client={}),d.u?(c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.u.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.u.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.u.coords.accuracy):d.locationPlayabilityToken&&
(c.client.locationPlayabilityToken=d.locationPlayabilityToken));if(g.vo("web_enable_ad_signals_in_it_context")){d=null===(e=c.adSignalsInfo)||void 0===e?void 0:e.consentBumpParams;e=gq(void 0);h=e.bid;delete e.bid;c.adSignalsInfo={params:[],bid:h};e=g.q(Object.entries(e));for(h=e.next();!h.done;h=e.next())l=g.q(h.value),h=l.next().value,l=l.next().value,null===(f=c.adSignalsInfo.params)||void 0===f?void 0:f.push({key:h,value:""+l});!Qr()&&d&&(c.adSignalsInfo.consentBumpParams=d)}return c};
bH=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Ima=function(){var a=null;fs().then(function(b){return a=b},function(b){return a=bH(b)});
return a};
Jma=function(){var a=Vm(1E3,"NO_BID");return Jm(Lm(qda([fs(),a]),bH),function(){return a.cancel()})};
cH=function(a){return a.tb?g.js(g.hs.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
dH=function(a){this.u=a;this.C=g.Q(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.D=this.B=1};
jH=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Eo,f=c.od;d=void 0===d?"":d;c=a.u.getVideoData(1);var h=a.u.T().Pj,l={AD_BLOCK:a.B++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:cH(a.u.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*eH(a.u),LACT:Ap(),LIVE_INDEX:e?a.D++: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.u.getVisibilityState(),P_H:g.fH(a.u).getPlayerSize().height,P_W:g.fH(a.u).getPlayerSize().width,
YT_REMOTE:h?h.join(","):""},m=fq(eq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(e=a.u.T().Aa)&&dq(b)&&(d.forced_experiments=e);b=aq(g.on(b,l),d);a.u.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!=d.length)return Em(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;e=e.next().value;g.R(a.u.T().experiments,"get_midroll_info_wexit")&&(f=Kma(a,b,l),f={rpc_data:JSON.stringify(f)},b=aq(b,f));f={};c.oauthToken&&cq()&&(f.Authorization="Bearer "+c.oauthToken);c=Wp(e);
e=a.u.T();return g.R(e.experiments,"get_midroll_info_wexit")?Ur(b,{Uv:!0,format:"RAW",headers:f,method:"POST",fc:c,timeout:a.C,withCredentials:!0}):g.R(e.experiments,"get_midroll_info_use_client_rpc")?(c=gH(a.u.app),a=hH(a,b,l),iH(c,a,"/youtubei/v1/player/ad_break")):g.MC(e)?Ur(d,{Uv:!0,format:"RAW",headers:f,method:"POST",fc:c,timeout:a.C,withCredentials:!0}):Ur(b,{Uv:!0,format:"RAW",headers:f,method:"GET",timeout:a.C,withCredentials:!0})};
Mma=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=bq(b),f=kH(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=kH(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Vp(gq(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];Lma.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
Nma=function(a,b,c){var d=!1;if(""==b)return d;b.split(",").forEach(function(e){var f={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},l="ACTIVE";"!"==e[0]&&(e=e.substring(1),l="INACTIVE");e=e.split("-");3>e.length||(e[0]in lH&&(h.clientName=lH[e[0]]),e[1]in mH&&(h.platform=mH[e[1]]),h.applicationState=l,h.clientVersion=2<e.length?e[2]:"",c?(f.remoteClient=h,a.remoteContexts?a.remoteContexts.push(f):a.remoteContexts=[f]):a.remoteClients?a.remoteClients.push(h):a.remoteClients=
[h],d=!0)});
return d};
hH=function(a,b,c){var d=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?c.DRIFT_FROM_HEAD_MS:0,e=Oma.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=Pma.test(b),h=Qma.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Rma.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(parseInt(l[1],10))?parseInt(l[1],10):1;var m=Sma.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.FC(a.u.T()),p=g.aH(a.u.getVideoData(1).zg,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Mma(p,b,r.toString(),a.u.T());var t={splay:!1,lactMilliseconds:c.LACT.toString(),
playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18575,autonavState:cH(a.u.T())},w={};Nma(w,c.YT_REMOTE,g.R(a.u.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=nH.includes(n)?void 0:g.wq("PREF")){w=a.split(/[:&]/);for(var x=0,y=w.length;x<y;x++){var D=w[x].split("=");if(("SML"==D[0].toUpperCase()||"GSML"==D[0].toUpperCase())&&1<D.length&&"TRUE"==D[1].toUpperCase()){p.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
oH)for(a=a.split(/[:&]/),x=oH.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,D=a.length;y<D;y++){var E=a[y].split("=");if(E[0]==w&&parseInt("0x"+E[1],16)&x){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=Tma.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&h&&(p.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};e={adBlock:c.AD_BLOCK,params:e,breakIndex:l,breakPositionMs:m,clientPlaybackNonce:c.CPN,topLevelDomain:n,isProxyAdTagRequest:f,
context:p,adSignalsInfoString:Vp(gq(r.toString())),overridePlaybackContext:b};h&&(e.videoId=h);c.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(e.breakLengthMs=(1E3*c.AD_BREAK_LENGTH).toString());d&&(e.driftFromHeadMs=d.toString());return e};
Kma=function(a,b,c){var d=g.wq("dkv"),e=Uma.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.FC(a.u.T()),h=new Hma;h.clientName=a.u.T().ea.As.toString();h.host=f;h.u=void 0;f=nH.includes(f)?void 0:g.wq("PREF");return{adBreakRequest:hH(a,b,c),adsCookie:d,clientInfo:h,lact:c.LACT.toString(),mediaTimeMs:e,vis:c.VIS,playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,ytRemote:c.YT_REMOTE,prefCookie:f,signatureTimestamp:18575}};
pH=function(a,b,c){if(c&&c!==a.Xa)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.xa.u.has(c.value))return!1;return!0};
qH=function(a,b,c){this.u=a;this.B=b;this.C=c};
rH=function(a,b,c,d,e,f){g.B.call(this);this.ob=a;this.bb=b;this.hc=c;this.Ba=d;this.B=e;this.u=f};
Wma=function(a,b,c){c.om?(sH(a.ob.get(),"opportunity_type_ad_break_service_response_received",function(){return[]},b.slotId),Vma(a.B,b)):tH(a.u,c.Pg,b.slotId)};
Xma=function(a,b,c,d){var e=uH(a.Ba.get(),1);sH(a.ob.get(),"opportunity_type_ad_break_service_response_received",function(){return vH(a.hc.get(),c,d,e.clientPlaybackNonce,e.DA,e.daiEnabled,e)},b)};
wH=function(a,b){this.B=b;this.triggerType="trigger_type_before_content_video_id_started";this.triggerId=a(this.triggerType)};
xH=function(a){this.value=a};
yH=function(a){this.value=a};
zH=function(a){this.value=a};
AH=function(a){this.value=a};
BH=function(){xH.apply(this,arguments)};
CH=function(a){this.value=a};
DH=function(a){this.value=a};
EH=function(a){this.value=a};
FH=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(){xH.apply(this,arguments)};
JH=function(a){this.value=a};
KH=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
PH=function(a){this.value=a};
QH=function(a){this.value=a};
RH=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
ZH=function(a){this.value=a};
$H=function(a){this.value=a};
aI=function(a){this.value=a};
bI=function(a){this.value=a};
cI=function(a){this.value=a};
dI=function(a){this.value=a};
eI=function(a){this.value=a};
fI=function(a){this.value=a};
gI=function(){xH.apply(this,arguments)};
hI=function(){xH.apply(this,arguments)};
iI=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
jI=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Xk=c;this.args=[];b&&this.args.push(b)};
Yma=function(a,b,c,d,e,f,h){b=kI(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof jI?b:lI(a,d,e,b,c);return a instanceof jI?a:[a]};
mI=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
nI=function(a){return"slot_type_player_bytes"===a.Xa&&a.Nb instanceof wH};
oI=function(a,b){this.B=b;this.triggerType="trigger_type_layout_id_entered";this.triggerId=a(this.triggerType)};
pI=function(a,b,c,d,e,f){this.D=b;this.B=c;this.visible=d;this.C=void 0===e?!1:e;this.F=void 0===f?!1:f;this.triggerType="trigger_type_media_time_range";this.triggerId=a(this.triggerType)};
qI=function(a){return a?"layout:  "+a.layoutType:""};
rI=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof pI&&a.C||a instanceof oI&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
sI=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random())b=b||null,c=c||null,a=a instanceof Error?a:new Sq(a),d.category="H5 Ads Control Flow",b&&(d.slot=b?"slot:  "+b.Xa:""),c&&(d.layout=qI(c)),e&&(d.known_error_aggressively_sampled=!0),Mr(a,d),g.Gr(a)};
kI=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Gg:new Pn(-0x8000000000000,-0x8000000000000),Xt:d},null!=c&&(d.Nm=new Pn(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Gg:new Pn(0x7ffffffffffff,0x8000000000000),Xt:d},null!=c&&(d.Nm=new Pn(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||sI("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||sI("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new jI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Gg:new Pn(a,e),Xt:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Nm=new Pn(a,e)}return d;default:return new jI("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
tI=function(a,b,c,d,e,f){g.B.call(this);this.ob=a;this.hc=b;this.Xu=c;this.ya=d;this.u=e;this.Ba=f};
vI=function(a){return(a=uI(a.xa,"metadata_type_fulfilled_layout"))?a.layoutType:a};
Zma=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&mI(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=kI(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof jI||d.push({range:f.Gg,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start});
a=!1;for(e=0;e<d.length-1;e++)if(d[e].range.end>d[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),sI("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
wI=function(a,b,c,d){this.C=a;this.ze=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
xI=function(a,b,c,d,e){g.TD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
yI=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
zI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
$ma=function(a){return a.end-a.start};
AI=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Pn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Pn(Math.max(0,b.C-b.u),0x7ffffffffffff):new Pn(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.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new Pn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.ze;a=1E3*d.startSecs;if(c){if(a<b.B)return new Pn(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new Pn(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new Pn(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
BI=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
ana=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
CI=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
DI=function(a){this.u=a};
bna=function(a){var b=new DI(a.J);return{vI:function(){return b}}};
EI=function(a,b){this.u=a;this.Aa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.N={};this.P=0};
cna=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
case "viewable_impression":return"adviewableimpression";default:return null}};
FI=function(){g.P.call(this);var a=this;this.u={};g.dg(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
HI=function(){if(null===GI){GI=new FI;Bl.getInstance().u="b";var a=Bl.getInstance(),b="h"==hl(a)||"b"==hl(a),c=!(uh.getInstance(),!1);b&&c&&(a.F=!0,a.G=new jca)}return GI};
dna=function(a,b,c){a.u[b]=c};
ena=function(a){this.C=a;this.B={};this.u=$f()?500:g.zC(a.T())?1E3:2500};
gna=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return fna(a,c)};
fna=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,h=e.maxBitrate;f>a.u||h<a.u||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,h=e.minBitrate,f>a.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<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,h=e.maxBitrate,f<a.u||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
II=function(a,b){this.u=a;this.F=b;this.B=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};
JI=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||[]]])};
hna=function(a){return(a=a.pings)?Object.fromEntries(JI(a)):{}};
KI=function(a,b,c,d,e){EI.call(this,a,hna(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.za=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new II(0,[]);this.G=this.ba=null;this.Ga=b;this.da=[];this.F={};this.ra=null;this.B=0;this.V=this.Y=this.C=null;this.ha=d;this.ka=e;this.X=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.ra=b);this.F=Wp(this.u.playerVars||"");if(b=this.u.external)this.da=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=gna(this.Ga,this.da))?(this.Y=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.Y)+"&type="+encodeURIComponent(b)):this.V=Error("Nonplayable third party ad media file.");else if(this.ha&&g.R(this.ha,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.ba=this.F.ucid||null,this.B=bC(this.B,this.F.length_seconds),this.ka&&this.C&&(this.X=this.ka(this.C)),this.F.cta_conversion_urls)try{this.F.cta_conversion_urls=
JSON.parse(this.F.cta_conversion_urls)}catch(f){M(f)}this.G=this.u.clickthroughEndpoint||null;this.D=new II(0,[this.B])};
LI=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
MI=function(a){return 0<a.B&&7.05>=a.B};
NI=function(){EI.apply(this,arguments)};
OI=function(){this.B=[];this.D=null;this.C=0};
PI=function(a,b){b&&a.B.push(b)};
QI=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};
RI=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};
SI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
TI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
ina=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=QI(a.impressionCommands)||[];b.error=QI(a.errorCommands)||[];b.mute=QI(a.muteCommands)||[];b.unmute=QI(a.unmuteCommands)||[];b.pause=QI(a.pauseCommands)||[];b.rewind=QI(a.rewindCommands)||[];b.resume=QI(a.resumeCommands)||[];b.skip=QI(a.skipCommands)||[];b.close=QI(a.closeCommands)||[];b.clickthrough=QI(a.clickthroughCommands)||[];b.fullscreen=QI(a.fullscreenCommands)||[];b.active_view_viewable=QI(a.activeViewViewableCommands)||
[];b.active_view_measurable=QI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=QI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=QI(a.endFullscreenCommands)||[];b.channel_clickthrough=QI(a.channelClickthroughCommands)||[];b.abandon=QI(a.abandonCommands)||[];b.progress=RI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=RI(a.progressCommands.filter(function(c){return TI(c)&&ee(SI(c),0)}));
b.first_quartile=RI(a.progressCommands.filter(function(c){return TI(c)&&ee(SI(c),.25)}));
b.midpoint=RI(a.progressCommands.filter(function(c){return TI(c)&&ee(SI(c),.5)}));
b.third_quartile=RI(a.progressCommands.filter(function(c){return TI(c)&&ee(SI(c),.75)}));
b.complete=RI(a.progressCommands.filter(function(c){return TI(c)&&ee(SI(c),1)}));
return b};
UI=function(a){EI.call(this,a,ina(a));this.B=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};
VI=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.V=a.placementEndPings||[];this.C=d.ze;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.D=(this.K=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=AI(b,d);if(null==f)d=new xI(b,new Pn(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(oo.getInstance().u++).toString(36);var h=d.daiEnabled||d.ze;f=new xI(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.ze||0<d.u)if(d=AI(b,d,!0))h=new xI(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.Y=d[0];this.u=d[1];this.B=c;this.N=!1;this.G={};this.P={};this.F=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
WI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
XI=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
ZI=function(a){var b={};jna(a,b);kna(b);b.LACT=YI(function(){return Ap().toString()});
b.VIS=YI(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=YI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
lna=function(a){var b={};if(!a.kind)return g.Fr(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Fr(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=YI(bb(Math.round(g.rd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=YI(bb("0"));return b};
YI=function(a){return{toString:function(){return a()}}};
mna=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]=h(n))}
if(!b||g.Wb(b))return a;var f=Object.assign({},a),h=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};
jna=function(a,b){b.CPN=YI(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.Gr(Error("Video data is null.")),c=null);return c});
b.AD_MT=YI(function(){return $I(a,2)});
b.MT=YI(function(){return $I(a,1)});
b.P_H=YI(function(){return g.fH(a).getPlayerSize().height.toString()});
b.P_W=YI(function(){return g.fH(a).getPlayerSize().width.toString()});
b.PV_H=YI(function(){return g.fH(a).getVideoContentRect().height.toString()});
b.PV_W=YI(function(){return g.fH(a).getVideoContentRect().width.toString()})};
$I=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
kna=function(a){a.CONN=YI(bb("0"));a.WT=YI(function(){return Date.now().toString()})};
aJ=function(a){var b=Object.assign({},{});b.MIDROLL_POS=WI(a)?YI(bb(Math.round(a.u.start/1E3).toString())):YI(bb("0"));return b};
nna=function(a){var b={};b.SLOT_POS=YI(bb(a.D.u.toString()));return b};
bJ=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};
cJ=function(a){for(var b={},c=g.q(ona),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
dJ=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.la(b)));return c};
eJ=function(){};
fJ=function(a){this.u=a};
gJ=function(a){this.u=a;cq()};
hJ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null})};
jJ=function(a){return iJ(a)&&1==a.getPlayerState(2)};
iJ=function(a){a=a.Vb();return void 0!==a&&2==a.getPlayerType()};
kJ=function(a){a=a.T();return xC(a)&&!g.MC(a)&&"desktop-polymer"==a.playerStyle};
mJ=function(a,b){var c=a.T();pC(c)||"3"!=c.controlsType||lJ(g.fH(a),b)};
nJ=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};
pna=function(a){this.u=a;var b=Bl.getInstance();a=a.Kc();b.D!==a&&((b.D=a)||Tca(b))};
oJ=function(a,b,c,d,e,f,h){f=void 0===f?new gJ(new fJ(d.getVideoData(1))):f;h=void 0===h?!1:h;g.B.call(this);this.B=a;this.P=b;this.C=c;this.u=d;this.N=e;this.G=f;this.K=Array.from(this.B.Aa.progress||[]);this.K.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={wz:.25,Kz:.5,Mz:.75};this.F=null;this.V=h};
uJ=function(a,b,c){!pJ(a)&&0<c&&(qJ(a,b),rJ(a)?sJ(a,b,c):tJ(a,b,c))};
wJ=function(a,b){pJ(a)||(rJ(a)?(qJ(a,0,!0),sJ(a,b,b)):(qJ(a,0,!0),tJ(a,0,0,!0)),vJ(a,"complete"))};
qJ=function(a,b,c){for(c=void 0===c?!1:c;a.B.P<a.K.length;){var d=xJ(a,"progress"),e=a.K[a.B.P];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&(e=e.headers||[],a.G.send(f,yJ(a),d,e));a.B.P++}else break}};
tJ=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.wz||d)&&vJ(a,"first_quartile");(b>=c*a.D.Kz||d)&&vJ(a,"midpoint");(b>=c*a.D.Mz||d)&&vJ(a,"third_quartile")};
zJ=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;vJ(a,b)};
sJ=function(a,b,c){if(0<c&&0<b){var d=g.AJ(a.u,a.u.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(zJ(a,"first_quartile",b,c*a.D.wz),zJ(a,"midpoint",b,c*a.D.Kz),zJ(a,"third_quartile",b,c*a.D.Mz))}a.F=b};
BJ=function(a,b){for(var c=xJ(a,b),d=g.q(a.B.Aa[b]||[]),e=d.next();!e.done;e=d.next()){var f=e.value;if(e=f.baseUrl)f=f.headers||[],a.G.send(e,yJ(a),c,f)}a.B.N[b]=!0};
vJ=function(a,b){a.B.N.hasOwnProperty(b)||BJ(a,b)};
CJ=function(a,b){return a.B.N.hasOwnProperty(b)};
yJ=function(a){for(var b={},c=ZI(a.u),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.C)};
xJ=function(a,b){var c=a.P;var d=a.B;if(d.mp()){var e=nJ(b);if(null==e)d={};else{var f;(f=d.ea()())||(f=(f=c.u)&&f.Vb?(f=f.Vb())&&2==f.getPlayerType()?DJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=Gl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
EJ=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.u.getPresentingPlayerType())a.u.sendVideoStatsEngageEvent(1,void 0,2);else if(a.N){var c=a.N.u;c&&c()}else M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
rJ=function(a){return!g.R(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.V};
pJ=function(a){return rJ(a)&&!CJ(a,"impression")};
FJ=function(a){return rJ(a)&&CJ(a,"seek")};
HJ=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.u=e;this.B=f;this.id=GJ(a)};
GJ=function(a){return a+(":"+(oo.getInstance().u++).toString(36))};
IJ=function(a){this.u=a};
JJ=function(a,b){if(0===b||1===b&&(a.u.u||g.MC(a.u)||g.zC(a.u)||BC(a.u)||!g.SC))return!0;var c=g.re("video-ads");return null!=c&&"none"!==tg(c,"display")};
g.KJ=function(a,b){this.state=a;this.zj=b};
LJ=function(a,b){return g.U(a.state,b)&&!g.U(a.zj,b)?1:!g.U(a.state,b)&&g.U(a.zj,b)?-1:0};
g.MJ=function(a,b){return 0<LJ(a,b)};
NJ=function(a,b,c,d,e,f,h){f=void 0===f?0:f;h=void 0===h?!1:h;g.P.call(this);this.J=a;this.Fa=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.gF,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.hF,this);this.B.subscribe("adoverlaymeasurableimpression",this.iF,this);this.B.subscribe("adoverlayunviewableimpression",this.jF,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.kF,this);this.B.subscribe("adoverlayviewableimmediateimpression",
this.lF,this);this.B.subscribe("adviewableimpression",this.mF,this);this.ad=b;this.Y=[];this.macros=c;this.F=!1;this.V=!JJ(new IJ(this.J.T()),f);this.daiEnabled=h};
PJ=function(a){a.daiEnabled&&!g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")&&sI("AdCoordinator registered for play",void 0,void 0,{adCpn:OJ(a),contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce,adEverStarted:a.F,adBlocked:a.V});a.V?a.Ed("ui_unstable"):a.Od()};
RJ=function(a,b){vb(a.Y,b);QJ(a,b,1)};
SJ=function(a){a=a.Fa;a.C=dJ(a.C,bJ(0,"No playable media files can be selected"));vJ(a,"error")};
QJ=function(a,b,c){0!=b.length&&(b=g.Pc(b,function(d){return new BI(d,c,d.id)}),a.W("onAdUxUpdate",b))};
OJ=function(a){return(a=a.J.getVideoData(2))&&a.clientPlaybackNonce||""};
TJ=function(a,b,c,d,e,f,h,l){NJ.call(this,a,b,e,f,h);this.u=this.D=null;this.P=!1;this.da=c;this.ba=d;this.ha=l};
UJ=function(a){if(!a.ha)return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.da)return a.Pk(),!0;var b=a.J.getVideoData(2);a.P=b?a.ba===b.videoId:!1;a.D=function(c,d){a.P=d?a.ba===d.videoId:!1};
a.J.addEventListener("videodatachange",a.D);a.u=function(){a.P&&(a.D&&(a.J.removeEventListener("videodatachange",a.D),a.D=null),a.u&&(a.J.removeEventListener("onAdStart",a.u),a.u=null),a.Pk())};
a.J.addEventListener("onAdStart",a.u);return!0};
VJ=function(){EI.apply(this,arguments)};
WJ=function(a,b,c,d,e){HJ.call(this,"action-companion",a,b,c,d,e)};
XJ=function(a,b,c,d,e,f){TJ.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.R(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_action"));this.C=null;this.G=new WJ(this.ad.u,this.macros)};
YJ=function(a,b){if(!b)return!1;var c=a.G.renderer;return c&&c.adVideoId==b.videoId};
qna=function(a){var b={};b.abandon=a.abandonCommands&&QI(a.abandonCommands.commands)||[];return b};
ZJ=function(a){EI.call(this,a,qna(a))};
$J=function(a,b){HJ.call(this,"ad-action-interstitial",a,b)};
aK=function(a,b,c,d,e,f){NJ.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.Wa=null;this.D=f};
bK=function(a,b){HJ.call(this,"ad-choice-interstitial",a,b)};
cK=function(a,b,c,d,e,f){NJ.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
dK=function(a){EI.call(this,a);this.B=Wp(this.u.playerVars||"")};
eK=function(){EI.apply(this,arguments)};
fK=function(){EI.apply(this,arguments)};
gK=function(){EI.apply(this,arguments)};
hK=function(){EI.apply(this,arguments)};
iK=function(){EI.apply(this,arguments)};
jK=function(){EI.apply(this,arguments)};
kK=function(){EI.apply(this,arguments)};
lK=function(a,b,c,d,e,f,h,l,m,n,p,r,t){this.ba=a;this.K=b;this.P=c;this.V=d;this.B=e;this.N=f;this.u=h;this.Y=l;this.X=m;this.C=n;this.F=p;this.D=r;this.G=t};
mK=function(a,b,c,d,e){NJ.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.G(function(){f.Ed("load_timeout")},1E4);
g.C(this,this.u);this.C=new g.rs(this);g.C(this,this.C)};
nK=function(a){HJ.call(this,"ad-message",a)};
oK=function(a,b,c,d,e,f,h){NJ.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.G=h;this.N=!1;this.D=this.u=0;this.P=function(){var m=l.J.getProgressState().current;m<l.u?l.Td():m>l.D&&l.Ge()}};
qK=function(a){if(a.G&&a.N){a.N=!1;a=g.q(a.G.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.u){b=c.u;c.u=void 0;c.B=void 0;c=c.C();pK(c.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Ke(b)}else sI("Received AdNotify terminated event when no slot is active")}}};
rK=function(a,b){HJ.call(this,"ads-engagement-panel",a,b)};
sK=function(a,b,c,d,e){NJ.call(this,a,b,c,d,e)};
tK=function(a,b,c,d){HJ.call(this,"invideo-overlay",a,b,c,d);this.u=d};
uK=function(a,b,c,d,e){NJ.call(this,a,b,c,d,e);this.u=b};
vK=function(a,b){HJ.call(this,"persisting-overlay",a,b)};
wK=function(a,b,c,d,e){NJ.call(this,a,b,c,d,e);this.u=b};
xK=function(){HJ.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""};
g.yK=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Su:c.Su},e=d.next())e=e.value,c.Su=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Su}}(c));
return a};
zK=function(a){return a?g.T(a):null};
AK=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
rna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
BK=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
una=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(sna(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=zK(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
tna(a,b,c,d))}};
sna=function(a,b,c){var d=zK(b.confirmLabel)||"",e=zK(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(zK(l.value)||"");a.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
tna=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:zK(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=AK(b.navigationEndpoint);var h=BK(b[1]),l=[BK(b[0])];(b=rna(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
vna(a,e,d)}}};
vna=function(a,b,c){a.muteAdInfo.goneText=zK(b.title)||"";a.muteAdInfo.questionText=zK(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=zK(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=zK(e.reason)||"";e=AK(e.endpoint)[0];a.push({label:d,url:e})}};
CK=function(a,b){var c=new xK;c.adBadgeText="Ad";1<a.B&&(c.adPodPositionInfoString=g.yK("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.u+1),ADS_COUNT:String(a.B)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.u+1;c.adPodLength=a.B;null!=a.C&&(c.adBreakEndSeconds=a.C/1E3);b&&(c.adVideoId=b);return c};
DK=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=ZI(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b]=f[b];this.D=c;this.G=d;this.F=e};
FK=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?EK(a,e):a.D.mk()};
b.skipShown=function(){EK(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
GK=function(a,b,c){una(b,c,function(d){EK(a,d)},function(d){a.sendAdsPing(d)})};
EK=function(a,b){if(b){var c=HK(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
HK=function(a){if(g.R(a.G.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.C;for(var b={},c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
IK=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null}};
wna=function(a,b,c,d,e,f,h){this.u=c;this.B=new DK(a,b,d,e,f);this.C=h};
xna=function(a,b,c){var d=IK();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){EK(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":FK(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":GK(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=MI(a.u)&&!d.isSkippable;d.isPostroll=a.u.isPostroll;a.u.isSkippable();b=a.u.C;c=a.u.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.u.G)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.X;return d};
JK=function(a,b,c,d,e){HJ.call(this,"shopping-companion",a,b,c,d,e)};
KK=function(a,b,c,d,e,f){TJ.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e,g.R(a.T().experiments,"only_show_companion_with_video_ad_or_command_for_shopping"));this.C=new JK(this.ad.u,this.macros)};
yna=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};
Ana=function(a,b,c,d,e,f){this.u=new DK(a,b,c,d,e,zna(f))};
Bna=function(a,b){var c=IK();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){EK(a.u,e)};
var d=yna(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":FK(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":GK(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
zna=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=YI(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=YI(a);return b};
MK=function(a,b,c){g.P.call(this,!0);var d=this;this.G=b;this.F=c;this.B=a;this.Wa=new g.Tm(200);this.Wa.wa("tick",function(){var e=Date.now(),f=e-d.D;d.D=e;d.u+=f;d.u>=d.B&&(d.u=d.B,d.Wa.stop());e=d.u/1E3;d.F&&d.F.Hc(e);LK(d,{current:e,duration:d.B/1E3})});
g.C(this,this.Wa);this.u=0;this.C=null;g.dg(this,function(){d.C=null});
this.D=0};
LK=function(a,b){a.G.va("onAdPlaybackProgress",b);a.C=b};
NK=function(a){HJ.call(this,"survey",a)};
OK=function(a,b,c,d,e,f,h){NJ.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new g.rs;g.C(this,this.C);this.C.R(this.J,"resize",function(){450>g.fH(l.J).getPlayerSize().width&&(g.us(l.C),l.Td())});
this.K=0;this.G=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.zC(a.T())?new MK(1E3*b.B,a,f):null)g.C(this,this.u),this.C.R(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,EK(l.G.u,m&&m.timeoutCommands)):g.Fr(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
PK=function(a,b){HJ.call(this,"survey-interstitial",a,b)};
QK=function(a,b,c,d,e){NJ.call(this,a,b,c,d,e,1);this.u=b};
RK=function(a){HJ.call(this,"ad-text-interstitial",a)};
SK=function(a,b,c,d,e,f){NJ.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Wa=null;this.D=f};
TK=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.yd(window.location.href);e&&d.push(e);e=g.yd(a);if(g.nb(d,e)||!e&&pc(a,"/"))if(g.vo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.id(d,a),a=d.href),a&&(d=Ad(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Ps()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+qd(d).toString(36),c=c?g.Hd(c):"",g.vq(d,c,f||5))}else f=b,c="ST-"+qd(d).toString(36),
f=f?g.Hd(f):"",g.vq(c,f,5)};
g.UK=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.Jd(a,b)+c;a=a instanceof g.Fc?a:g.Lc(a);d.href=g.Gc(a)};
g.VK=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&&TK(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.UK(a))};
g.WK=function(a,b,c){c&&TK(a,c);c=g.Kc(a);c=g.Gc(c);a!=c&&g.Fo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||qd(a).toString(36))};
XK=function(a){a=void 0===a?null:a;HJ.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
YK=function(a){a=void 0===a?null:a;HJ.call(this,"ad-title");this.videoTitle=a};
ZK=function(a){a=void 0===a?null:a;HJ.call(this,"advertiser-name");this.channelName=a};
$K=function(a,b,c,d){HJ.call(this,"player-overlay",a,{},b,d);this.C=c;this.u=d};
aL=function(a){HJ.call(this,"skip-button",a)};
bL=function(a){HJ.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Zb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
cL=function(a,b,c,d,e,f,h,l,m,n,p){NJ.call(this,a,b,c,d,e,1,l);var r=this;this.X=!0;this.G=n;this.u=b;this.C=h;this.ba=new g.rs(this);g.C(this,this.ba);this.D=new g.G(function(){r.Ed("load_timeout")},1E4);
g.C(this,this.D);this.ha=!g.R(a.T().experiments,"bulleit_unstarted_event_killswitch");this.N=!1;this.da=m(this);this.ea=f;this.K=p;this.P=!1};
Cna=function(a){if(a.daiEnabled&&g.R(a.J.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.u.D,c=b.D,d=b.C,e=b.u;b=b.F;if(void 0===c)g.Fr(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Fr(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.B)}};
fL=function(a,b){if(null!==a.G&&a.P){a.P=!1;for(var c=dL(a),d=g.q(a.G.listeners),e=d.next();!e.done;e=d.next())if(e=e.value,e.u&&e.u.layoutId===c){var f="adabandoned"===b?"abandoned":"normal";eL(e.C(),e.B,e.u,f);e.B=null;e.u=null}else sI("Received AD_ENDED for unknown layout")}};
gL=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
dL=function(a){if(a=a.u.u.elementId)return a;g.Fr(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
jL=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.J.T();if(g.MC(d)&&!c.skipOrPreviewRenderer){var e=a.J.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.MC(d)&&g.Fr(new Sq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!MI(a.u)?d.skipAdRenderer=hL(a):d.adPreviewRenderer=iL(a,!1,MI(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Wb(c.skipOrPreviewRenderer)&&
g.Fr(new Sq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
hL=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=iL(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
iL=function(a,b,c){var d=a.J.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.yK("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.yK("You can skip to video in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.yK("Video will play after ad",{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;
f={};f.url=HC(a.J.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
Dna=function(a){function b(x,y){var D=a.YP,E=Object.assign({},{});E.FINAL=YI(bb("1"));E.SLOT_POS=YI(bb("0"));return dJ(D,cJ(E),y)}
function c(x){return null==x?{create:function(){return null}}:{create:function(y,D,E){var H=b(y,D);
D=a.Eq(y,H);y=x(y,H,D,E);g.C(y,D);return y}}}
var d=c(function(x,y,D){return new uK(a.J,x,y,D,a.mf)}),e=c(function(x,y,D,E){return new KK(a.J,x,y,D,a.mf,E)}),f=c(function(x,y,D){return new aK(a.J,x,y,D,a.mf,a.Ea)}),h=c(function(x,y,D){return new wK(a.J,x,y,D,a.mf)}),l=c(function(x,y,D,E){return new XJ(a.J,x,y,D,a.mf,E)}),m=c(function(x,y,D){return new SK(a.J,x,y,D,a.mf,a.Ea)}),n=c(function(x,y,D){return new QK(a.J,x,y,D,a.mf)}),p=c(function(x,y,D){return new cK(a.J,x,y,D,a.mf,a.Ea)}),r=c(function(x,y,D){return new oK(a.J,x,y,D,a.mf,a.Ea,a.sj)}),
t=c(function(x,y,D){return new mK(a.J,x,y,D,a.mf,a.Ea)}),w=c(function(x,y,D){return new sK(a.J,x,y,D,a.mf)});
this.u=new lK({create:function(x,y){var D=dJ(b(x,y),cJ(nna(x))),E=a.Eq(x,D),H=new cL(a.J,x,D,E,a.mf,a.QH,a.Ea,a.daiEnabled,function(N){return new wna(a.Ea,D,x,N,a.J,a.Ah,a.daiEnabled)},a.tj,a.Xf);
g.C(H,E);return H}},d,e,{create:function(x,y){var D=a.Eq(x,y),E=new OK(a.J,x,y,D,a.mf,a.Ea,function(H,N){return new Ana(a.Ea,y,H,a.J,a.Ah,N)});
g.C(E,D);return E}},f,h,l,m,n,p,r,t,w)};
kL=function(a,b,c){this.B=a;this.u={};this.D=void 0===b?!1:b;this.C=void 0===c?!1:c};
Ena=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}var d=Math.max(a.startSecs,0);return{YH:new Pn(d,c),vJ:new St(d,c-d,a.context,a.identifier,a.event,a.u)}};
lL=function(){this.u=[]};
mL=function(a,b,c){var d=g.Ab(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
Fna=function(a){this.B=new lL;this.u=new kL(a.ZH,a.gQ,a.UP)};
nL=function(){EI.apply(this,arguments)};
oL=function(a){nL.call(this,a);g.Pc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.he(b.width,b.height)})};
pL=function(a){this.u=a};
qL=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
sL=function(a,b){var c=a.u;g.um(function(){return rL(c,b,1)})};
Gna=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
Ina=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;tL({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Hna(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&uL("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&uL("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
Jna=function(a,b,c){a.B&&tL({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
vL=function(a,b){a.B&&tL({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.zC-b.RE).toString(),driftFromHeadMs:Math.round(1E3*eH(a.C)).toString()}})};
Kna=function(a,b){a.B&&tL({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.IH}})};
uL=function(a,b){tL({daiStateTrigger:{errorType:a,contentCpn:b}})};
tL=function(a){g.Dq("adsClientStateChange",a)};
Hna=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"}};
wL=function(a){this.J=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.fh=!1;this.adFormat=null;this.clientName=(a=!g.R(this.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.J.T().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.J.T().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.J.T().deviceParams.cbrand:"";this.G=a?this.J.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
yL=function(a,b,c,d,e,f){xL(a);var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=e?xL(a):(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=f?"live":"vod",a.D=d+1===e,a.fh=!0,a.fh&&(bB("c",a.clientName,a.actionType),bB("cver",a.clientVersion,a.actionType),g.R(a.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")||
(bB("cbrand",a.F,a.actionType),bB("cmodel",a.G,a.actionType)),bB("yt_pt",a.playerType,a.actionType),bB("yt_pre",a.preloadType,a.actionType),bB("yt_abt",Lna(a.B),a.actionType),a.contentCpn&&bB("cpn",a.contentCpn,a.actionType),a.videoId&&bB("docid",a.videoId,a.actionType),a.adCpn&&bB("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&bB("ad_docid",a.adVideoId,a.actionType),bB("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&bB("ad_at",a.adFormat,a.actionType)))};
xL=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.fh=!1;a.u=!1};
zL=function(a){a.u=!1;fB("video_to_ad",["apbs"],void 0,void 0)};
BL=function(a){a.D?AL(a):(a.u=!1,fB("ad_to_ad",["apbs"],void 0,void 0))};
AL=function(a){a.u=!1;fB("ad_to_video",["pbresume"],void 0,void 0)};
CL=function(a){a.fh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&cB("apbs",void 0,a.actionType))};
Lna=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"}};
DL=function(){};
g.EL=function(a){return(a=Mna[a.toString()])?a:"LICENSE"};
g.FL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
GL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.FL(b,c)};
HL=function(a,b){return GL(a,a.state|b)};
IL=function(a,b){return GL(a,a.state&~b)};
JL=function(a,b,c){return GL(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.KL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.LL=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
ML=function(a){return a.Kb()&&!g.U(a,16)&&!g.U(a,32)};
Nna=function(a){return g.U(a,8)&&g.U(a,16)};
g.NL=function(a){return g.U(a,1)&&!g.U(a,2)};
OL=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
QL=function(a){var b=g.Ke(g.Qb(PL),function(c){return!!(a&PL[c])});
g.Cb(b);return"yt.player.playback.state.PlayerState<"+b.join(",")+">"};
RL=function(a,b,c,d,e,f,h,l){g.P.call(this);this.dd=a;this.J=b;this.u=d;this.F=this.u.B instanceof EI?this.u.B:null;this.B=null;this.Y=!1;this.K=c;this.V=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ba=0;this.ea=!1;this.Tg=e;this.Km=f;this.Sj=h;this.X=!1;this.daiEnabled=l};
SL=function(a){if(iJ(a.J)){var b=a.J.getVideoData(2),c=a.u.P[b.Xb]||null;if(!c)return g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||sI("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:b.clientPlaybackNonce,contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Et(),!0;if(!a.B||a.B&&a.B.ad!==c)g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||sI("AdPlacementCoordinator played an ad due to ad to ad transition",void 0,void 0,{adCpn:b.clientPlaybackNonce,
contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Od(c)}else if(1===a.J.getPresentingPlayerType()&&(g.R(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||sI("AdPlacementCoordinator ended due to ad to content transition",void 0,void 0,{contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.B))return a.Et(),!0;return!1};
TL=function(a){(a=a.baseUrl)&&g.Ct(a,void 0,nn(a))};
UL=function(a,b){yL(a.K,a.u.u.u,b,a.hB(),a.jB(),a.isLiveStream())};
WL=function(a){VL(a.dd,a.u.u,a);a.daiEnabled&&!a.u.N&&(Ona(a,a.kB()),a.u.N=!0)};
Ona=function(a,b){for(var c=XL(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=YL(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Pna(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+YL(p)},0);
Jna(a.Tg,$ma(a.u.u),c);Kna(a.Tg,{cueIdentifier:a.u.C&&a.u.C.identifier,IH:e})};
YL=function(a){var b=1E3*a.B;return 0<parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10):b};
XL=function(a){var b=a.u.u.end;a=mL(a.Km,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Pna=function(a,b,c,d){var e=a.Sj.create(b,cJ(aJ(a.u)),a.u.u.u);c=e.YA(c,d);g.eg(e);if(!c)return!1;a.u.P[c]=b;return!0};
Qna=function(a){if(a.ea)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.ba;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
ZL=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
$L=function(){var a=this;this.F=[];this.G=[];this.u=[];this.N=!1;this.D=[];this.B=this.K=!1;this.P=new Map;g.vo("screen_manager_wait_for_csn")&&(g.vo("web_lifecycles")&&Rna[0].push(this.V),ct("loggingScreenCreated",function(){a.V()}),ct("clearWaitForNavigationJobs",function(){a.D=[]}))};
aM=function(){$L.u||($L.u=new $L);return $L.u};
Sna=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.B&&a.C&&a.C();var h=g.Ps(c),l=g.Ns(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.ht(a.client,h,l,[g.Is(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.ht(a.client,h,l,[g.Is(d.playerResponse.trackingParams)]))})};
cM=function(a,b){bM(a,g.Is(b),void 0,void 0)};
bM=function(a,b,c,d){if(a.B&&!d)a.F.push([b,c]);else{var e=g.Ps(d);c=c||g.Ns(d);e&&c&&g.ht(a.client,e,c,[b])}};
dM=function(a,b){var c=void 0===c?0:c;a.P.set(b,c);"UNDEFINED_CSN"===g.Ps(c)||a.B||bM(a,b,void 0,c)};
Tna=function(a){var b=aM();g.Na("midTransition")||"UNDEFINED_CSN"===g.Ps()?b.D.push(a):a()};
Una=function(a,b,c){c=void 0===c?{}:c;a.B=!0;a.C=function(){eM(a,b,c);var f=g.Ns(c.layer);if(f){for(var h=g.q(a.F),l=h.next();!l.done;l=h.next())l=l.value,bM(a,l[0],l[1]||f,c.layer);f=g.q(a.G);for(h=f.next();!h.done;h=f.next()){l=h.value;h=l[0];var m=l[1];if(a.B)a.G.push([h,m]);else{var n=g.Is(h);if(l=g.Ps())h=a.client,m={csn:l,ve:n.getAsJson(),clientData:m},n={Xh:Qs(l),Fj:l},"UNDEFINED_CSN"==l?gt("visualElementStateChanged",m,n):h?Rp("visualElementStateChanged",m,h,n):g.Dq("visualElementStateChanged",
m,n)}}}};
g.Ps(c.layer)||a.C();if(c.OA)for(var d=g.q(c.OA),e=d.next();!e.done;e=d.next())Sna(a,e.value,c.layer);else g.Fr(Error("Delayed screen needs a data promise."))};
eM=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.SP?c.SP:c.layer;var e=g.Ps(d);d=g.Ns(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));e&&"UNDEFINED_CSN"!==e&&d&&jt(a.client,e,d,!0);try{var h=a.client,l=f,m=c.LA,n=c.Xh,p=Vna(),r={csn:p,pageVe:(new Hs({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:
l&&g.Gr(new Sq("newScreen() parent element does not have a VE - rootVe",b));m&&(r.cloneCsn=m);m={Xh:n,Fj:p};h?Rp("screenCreated",r,h,m):g.Dq("screenCreated",r,m);Ws(nt,new ft(p));var t=p}catch(w){Mr(w,{iq:b,rootVe:d,parentVisualElement:void 0,Q3:e,i4:f,LA:c.LA});g.Fr(w);return}Ss(t,b,c.layer,c.Xh);a.u[a.u.length-1]&&!a.u[a.u.length-1].csn&&(a.u[a.u.length-1].csn=t||"");g.vo("screen_manager_wait_for_csn")&&(g.Ia("midTransition",!1,void 0),Ws("loggingScreenCreated"),a.K=!1);bB("csn",t);tt.getInstance().clear();
a.B=!1;a.C=void 0;b=g.Ns(c.layer);e=g.q(a.P);for(f=e.next();!f.done;f=e.next())f=g.q(f.value),t=f.next().value,f.next().value===c.layer&&b&&bM(a,t,b,c.layer);g.vo("c3_client_side_screens")&&!a.N&&(c=Js(49980),b=Js(49981),g.Ia("historyVes",{backButtonVe:c,forwardButtonVe:b},void 0),dM(a,c),dM(a,b),a.N=!0)};
fM=function(a,b,c,d,e,f){g.P.call(this);this.F=a;this.B=b;this.C=c;this.G=d;this.u=e;this.D=f;Wna(this)};
Xna=function(a,b){var c={isEmpty:!0,kC:!1,Pg:[]};if(!b)return c;b&&b.trackingParams&&cM(aM(),b.trackingParams);if(b&&b.adThrottled)return c.kC=!0,c;var d=b.playerAds;if(!d||!d.length)return c;d=d.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.ob(d))return c;if(0<a.u.u.end){var e=a.u.u.end.toString();d.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)})}c.Pg=d;
c.isEmpty=!1;return c};
Wna=function(a){[a.u.Y,a.u.u].filter(function(b){return null!=b}).forEach(function(b){VL(a.B,b,a)})};
hM=function(a,b,c,d,e,f,h,l){RL.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.G=-1;this.N=this.C=null;this.P=gM(this.Yr())};
iM=function(a){a.G++;var b=a.Yr();b?a.Od(b):a.ck()};
gM=function(a){return a?Yna.some(function(b){return a instanceof b}):!1};
jM=function(){nL.apply(this,arguments)};
kM=function(a){return a.length?g.Pc(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
lM=function(a,b,c,d,e,f,h){TJ.call(this,b,d.B,d.u.u,d.B.u.adVideoId,e,f,h,g.R(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_image"));this.ka=c;this.G=d;this.C=d.B;this.X=a;this.N=this.ea=this.K=null;a=this.G.u;a.visible=!1;VL(this.X,a,this)};
Zna=function(a){this.u=new ZL(function(b){b=new RL(a.dd,a.J,a.KA(),b,a.Tg,a.Km,a.Sj,a.daiEnabled);WL(b);return b},function(b){return new fM(a.Xu,a.dd,a.J,a.Vu,b,a.Tg)},function(b){var c=a.Eq(b.B);
b=new lM(a.dd,a.J,a.RH,b,a.FQ,c,a.mf);g.C(b,c);return b},function(b){b=new hM(a.dd,a.J,a.KA(),b,a.Tg,a.Km,a.Sj,a.daiEnabled);
WL(b);return b})};
mM=function(a,b){OI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Dq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),PI(this,new eK(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),PI(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new ZJ(e.adActionInterstitialRenderer),PI(this,e)):e.adIntroRenderer&&(e=new dK(e.adIntroRenderer),
PI(this,e),this.C=1),this.B.filter(function(f){return f instanceof KI}).forEach(function(f,h){if(f instanceof KI){var l=new II(h,c);
f.D=l}})};
nM=function(a,b){OI.call(this);var c=a.persistingOverlay;this.D=c&&c.persistingAdOverlayRenderer?new hK(c.persistingAdOverlayRenderer):null;PI(this,$na(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new UI(c.instreamSurveyAdRenderer);break a}}c=null}PI(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.C=1,c=new ZJ(c.adActionInterstitialRenderer)):c=null:c=null;PI(this,c)};
$na=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.C=1,new ZJ(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new kK(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Dq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new eK(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new jK(b.surveyTextInterstitialRenderer):null};
oM=function(a,b,c){this.C=a;this.u=b;this.B=c};
pM=function(a){var b=new fJ(a.EA),c=new gJ(b);return{qI:function(){return b},
ow:function(){return c}}};
qM=function(a){this.u=a};
rM=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.u.create(e,f):null;return new VI(b,c,h,d)}catch(l){M(l)}};
aoa=function(a){var b=new qM(a.CH);return{gB:function(){return b}}};
sM=function(a){g.B.call(this);this.u=a;this.C=new pna(a.J);this.B=new hJ(a.J);g.C(this,this.B)};
boa=function(a){return function(){return new wL(a.u.J)}};
tM=function(a){return function(b,c){return new oJ(b,a.C,c,a.u.J,a.B,a.u.Ah,a.u.daiEnabled)}};
uM=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null});
var c=qs(a);if(c){var d=function(){b.u&&b.u(!!os())};
this.B.addEventListener(c,d);g.dg(this,function(){b.B.removeEventListener(c,d)})}};
vM=function(a){g.B.call(this);this.u=a};
coa=function(a){var b=window.document;return g.MC(a.T())?new uM(b):new vM(a)};
wM=function(a){g.B.call(this);this.u=new Gna(a.J,a.contentCpn,a.daiEnabled)};
yM=function(a){xM=a&&a.data};
AM=function(a){zM=a&&a.data};
CM=function(a){BM=a&&a.data};
EM=function(a){DM=a&&a.data};
FM=function(){DM=BM=xM=null};
JM=function(){g.B.call(this);var a=this;this.Mc=new Map;this.u=new Map;GM(this,"commandExecutorCommand",function(b,c,d){b=b.commands;b=void 0===b?[]:b;c=void 0===c?{}:c;d=void 0===d?{}:d;a.la();b=g.q(b);for(var e=b.next();!e.done;e=b.next())a.executeCommand(e.value,c,d)});
HM(this,"commandExecutorCommand",function(b,c){IM(a,b.commands,c)});
GM(this,"clickTrackingParams",function(){});
HM(this,"clickTrackingParams",function(){})};
doa=function(a,b){GM(a,b.ci(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
eoa=function(a,b){HM(a,b.ci(),function(c,d){b.jj(c,d)})};
GM=function(a,b,c){a.la();a.Mc.get(b)&&M(Error("Extension name "+b+" already registered"));a.Mc.set(b,c)};
HM=function(a,b,c){a.la();a.u.get(b)&&M(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
IM=function(a,b,c){b=void 0===b?[]:b;a.la();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())KM(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())KM(a,b.value,c)};
KM=function(a,b,c){a.la();b.loggingUrls&&LM(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;MM.hasOwnProperty(d)||LM(a,d,e,c)}};
NM=function(a,b,c,d,e){e=void 0===e?{}:e;(a=a.Mc.get(b))&&"function"===typeof a||new Sq("Unhandled field",b);try{a(c,d,e)}catch(f){M(f)}};
LM=function(a,b,c,d){(a=a.u.get(b))||new Sq("Unhandled field",b);try{a(c,d)}catch(e){M(e)}};
PM=function(a,b,c,d,e){g.P.call(this);var f=this;this.u=b;this.ra=null;this.Rb=c;this.ea=e.Xf;this.da=e.Gk;c=this.u.getVideoData(1).getPlayerResponse()||{};this.C=!OM(this.ea)&&c.playerConfig&&c.playerConfig.daiConfig&&(c.playerConfig.daiConfig.enableDai||c.playerConfig.daiConfig.enableServerStitchedDai)||!1;this.Bb=bna({J:b}).vI();this.B=this.D=null;this.F=new Map;this.Aa=[];c=this.u.T().experiments;var h=pM({EA:b.getVideoData(1)}),l=new sM({Ah:h.ow(),J:b,daiEnabled:this.C});g.C(this,l);this.G=new Set;
this.ka=-1;this.ha=[];this.V=null;this.P=new Map;this.X=new Map;this.Y=new Set;this.K=new g.rs(this);g.C(this,this.K);this.N=new g.rs(this);g.C(this,this.N);this.za=this.tb=this.Ga=!1;this.ba=g.MC(b.T());this.ac=d;d=new wM({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,P3:this,daiEnabled:this.C,J:this.u});g.C(this,d);this.Mb=d.u;d=new Fna({ZH:this,gQ:g.R(c,"html5_recognize_predict_start_cue_point"),UP:g.R(c,"html5_persist_cue_range_killswitch")});this.Qa=d.u;this.Ra=d.B;var m=cc(cJ(ZI(this.u)));
e=new Dna({Ea:this,QH:l.B,mf:HI(),Ah:h.ow(),J:this.u,YP:m,Eq:tM(l),daiEnabled:this.C,tj:e.tj,Xf:this.ea,sj:e.sj});this.Tb=(new Zna({Vu:this.Rb,Sj:e.u,Xu:a,dd:this,RH:this.Bb,mf:HI(),KA:boa(l),Tg:this.Mb,Km:this.Ra,J:this.u,FQ:m,Eq:function(n){return tM(l)(n,m)},
daiEnabled:this.C})).u;this.Ka=aoa({CH:new oM(new ena(b),c,function(n){return f.X.has(n)?f.X.get(n):null})}).gB();
this.eb=coa(this.u);g.C(this,this.eb);this.dc=VC(this.u.T())?g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
WM=function(a,b){var c=a.u.getVideoData(1);if(c.kv||g.L("SERVED_VIA_SPF_HISTORY"))g.R(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.da.u():QM(a);else{if(kJ(a.u)){var d=RM(a.u);d.addEventListener("updateKevlarOrC3Companion",yM);d.addEventListener("onPlaShelfInfoCardsReady",AM);d.addEventListener("updateEngagementPanelAction",CM);d.addEventListener("changeEngagementPanelVisibility",EM);window.addEventListener("yt-navigate-start",FM)}a.K.R(a.u,"applicationplayerstatechange",
a.CM);a.K.R(a.u,g.WD("ad"),a.Mt,a);a.K.R(a.u,g.XD("ad"),a.dN,a);a.K.R(a.u,"aduxclicked",a.oM);a.K.R(a.u,"videodatachange",a.wP);d=foa(a,b);d=SM(a,d);d=TM(a,d);0<d.length&&UM(a,d);a.V&&(c.subscribe("cuepointupdated",a.Lx,a),a.C&&c.ma&&a.Lx(qA(c.ma,0)));VM(a.ea)||QM(a);g.um(a.eR,a)}};
foa=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.C&&g.MC(a.u.T())&&a.u.getVideoData(1).Ag()||(a.V=c),!1):!0})};
SM=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})};
TM=function(a,b){a.X=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.X.set(c.hostElementId,c),!1):!0})};
XM=function(a,b){return b.every(function(c){c=a.F.get(c);return null==c?(M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof fM?!1:c instanceof RL?!c.li():!0})};
QM=function(a){var b=goa(a);if(0<b.length){VM(a.ea)||XM(a,b)&&a.da.u();var c=g.Q(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.ba&&g.zC(a.u.T())?(c=new g.G(function(){YM(a,b)},c),g.C(a,c),c.start()):g.um(function(){YM(a,b)})}else VM(a.ea)||a.da.u()};
hoa=function(a,b){if(!b)return{};var c=!!a.B&&a.B||null;c?(c=c.B,c=c.ad.mp()?xJ(c.Fa,b):{}):c={};return c};
goa=function(a){for(var b=ZM(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.G["delete"](d.value);return b};
ZM=function(a){var b=[];a=g.q(a.G);for(var c=a.next();!c.done;c=a.next())c=c.value,yI(c)&&b.push(c);return b};
joa=function(a,b,c){c=void 0===c?null:c;b=a.Ka.create(b,ioa(a),a.ha.length,c);a.ha=a.ha.concat(b);return b};
YM=function(a,b){if(!a.la())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.Mt(d.value)};
UM=function(a,b,c){b=joa(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.Tb.create(d)})};
bN=function(a,b){b.cn()?(g.eg(a.D),a.D=b):($M(a,b),b.jC()&&aN(a,b))};
$M=function(a,b){a.D&&a.D.Ip().start<b.Ip().start&&((g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")&&cN(a)||g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")&&dN(a)||g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping")&&eN(a))&&b.li()?fN(a):b.Uw()&&fN(a))};
cN=function(a){return!!a.D&&a.D.Cs()};
dN=function(a){return!!a.D&&a.D.Sw()};
eN=function(a){return!!a.D&&a.D.Fs()};
fN=function(a){var b=a.Bb,c=b.u.getVideoData(1);b.u.va("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId});g.eg(a.D);a.D=null};
aN=function(a,b){a.B&&gN(a,a.C);a.B=b;b.li()&&hN(a)};
hN=function(a){a.Ga||(a.N.R(a.u,"presentingplayerstatechange",a.HL),a.N.R(a.u,"internalAbandon",a.eM),a.N.R(a.u,"progresssync",a.BP),a.N.R(a.u,"onVolumeChange",a.DP),a.N.R(a.eb,"fullscreentoggled",a.qN),a.Ga=!0);g.I(a.u.getRootNode(),"ad-showing");a.C||(g.I(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&kJ(a.u)&&g.I(a.u.getRootNode(),"ad-teal-design"),g.iN(a.u.app,2))};
gN=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.li()&&(iJ(a.u)||a.C);d=b&&d&&d.reset()||null;a.B&&jN(a,a.B);a.B=null;a.ka=-1;e&&kN(a,c);a.za||a.da.u();b&&d&&(d.Ip().B=!1,WL(d))};
kN=function(a,b){g.us(a.N);a.Ga=!1;g.Bn(a.u.getRootNode(),"ad-showing");a.C||(a.dc?(a.za||a.da.u(),lN(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),lN(a)),g.Bn(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.Bn(a.u.getRootNode(),"ad-teal-design"));b&&b(a.u)};
lN=function(a){if(a.tb)!a.ba&&g.zC(a.u.T())&&(g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.mN(a.u,2);else if(g.mN(a.u,2),!a.ba){var b=g.AJ(a.u,1);g.U(b,4)&&!g.U(b,2)&&a.u.playVideo()}};
VL=function(a,b,c){if(b instanceof xI){if(a.ba&&zI(b)&&g.U(g.AJ(a.u,1),64)&&!a.C){var d=1E3*a.u.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.F.has(b)?M(Error(b.toString()+" has already been seen")):(a.G.add(b),a.F.set(b,c),yI(b)||g.nN(a.u,[b],1))}else M(Error("Should use AdCueRange instead of CueRange"))};
ioa=function(a){var b=1E3*a.u.getDuration(1);return new wI(b,1E3*a.u.getCurrentTime(1)||0,g.R(a.u.T().experiments,"enable_upg_processed_dvr_dai")?a.C:a.u.getVideoData(1).Ag(),g.R(a.u.T().experiments,"html5_recognize_predict_start_cue_point"))};
rL=function(a,b,c){g.oN(a.u.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.G["delete"](c),a.F["delete"](c)};
jN=function(a,b){for(var c=a.F,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.eg(b)};
qN=function(a,b){pN(a.u.app,b);switch(b){case 1:a.ka=1;break;case 0:a.ka=0}};
rN=function(a){g.rs.call(this);this.u=a;this.R(this.u,"onAdUxUpdate",this.N)};
sN=function(a,b,c,d,e){HJ.call(this,"image-companion",a,b,c,d,e)};
tN=function(a){rN.call(this,a)};
uN=function(a){g.B.call(this);this.u=a};
vN=function(a){uN.call(this,!0);this.B=a};
koa=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.ra});
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 Ap().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
wN=function(a,b){g.B.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.G=this.D=!1;this.V=null;var d=(0,g.z)(a,b);this.u=new g.G(function(){return d(c.V)},300);
g.C(this,this.u);this.P=this.N=Infinity};
xN=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
zN=function(){var a="ytp-id-"+yN.toString();yN++;return a};
g.AN=function(a){g.B.call(this);this.Aa={};this.Tb={};this.element=this.createElement(a)};
BN=function(a,b,c,d){if("{{"===d.substr(0,2))a.Tb[d]=[b,c];else return d};
loa=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.I?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Fe("BR"));c.push(g.Ge(h))}):c.push(g.Ge(e))}return c};
CN=function(a,b,c,d){if("child"===c){g.He(b);var e;void 0===d?e=void 0:!Array.isArray(d)||d&&"string"===typeof d.I?e=[d]:e=d;c=loa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.F(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Gc(g.Kc(a))),b.setAttribute(c,a))};
g.V=function(a){g.AN.call(this,a);this.Za=!0;this.N=!1;this.listeners=[]};
g.DN=function(a,b){b?a.show():a.hide()};
g.EN=function(a){g.V.call(this,a);this.ba=new g.P;g.C(this,this.ba)};
W=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.EN.call(this,c);this.api=a;this.Ea=b;this.macros={};this.componentType=d;this.K=null;this.rb=h;this.layoutId=e;this.u=f;this.Ga=null;this.eb=new vN(this.element);g.C(this,this.eb);this.Ra=this.R(this.element,"click",this.onClick);this.ea=[];this.Y=new wN(this.onClick,this);g.C(this,this.Y);this.tb=!1;this.V=null};
FN=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Fo(Error("Got null or undefined adText object")),"";var c=g.pd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Fo(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};
GN=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].url)?"":g.pd(a.thumbnails[0].url)};
moa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
JN=function(a,b,c){g.HN(a.api,b,a);g.IN(a.api,b,c)};
MN=function(a,b,c){g.KN(a.api,b)&&g.LN(a.api,b,c,a.u)};
NN=function(a,b){b=void 0===b?null:b;var c=a.api.T();!(0<a.ea.length)&&c.u&&g.R(a.api.T().experiments,"use_touch_events_for_bulleit_mweb")&&(iC?0:"ontouchstart"in document.documentElement&&($f()||Zf()))&&(a.Eb(a.Ra),b&&a.Eb(b),a.ea=[a.R(a.element,"touchstart",a.OL,a),a.R(a.element,"touchmove",a.NL,a),a.R(a.element,"touchend",a.ML,a)])};
ON=function(a){return a&&a.thumbnails&&!g.ob(a.thumbnails||null)&&a.thumbnails[0].url?g.pd(a.thumbnails[0].url):""};
PN=function(a,b,c,d,e,f){f=void 0===f?!1:f;W.call(this,a,b,{I:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.B=f;this.hide()};
g.QN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}};
RN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{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.SN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{I:"path",U:{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.TN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{I:"path",U:{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"}}]}};
UN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",U:{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"}}]}};
VN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
WN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.XN=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{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"}}]}};
YN=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}};
ZN=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{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"}}]}};
$N=function(){return{I:"svg",U:{viewBox:"0 0 24 24"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{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"}}]}};
noa=function(){return{I:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{I:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",U:{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.aO=function(){return{I:"svg",U:{viewBox:"0 0 24 24"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{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"}}]}};
bO=function(){return{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",U:{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"}}]}};
ooa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
cO=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.dO=function(){return{I:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{I:"path",U:{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"}}]}};
poa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
qoa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}};
roa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}};
soa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.eO=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.toa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}};
uoa=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
fO=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}};
gO=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{I:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{I:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",U:{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{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{I:"path",U:{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{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{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"}},{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.XN();case "INFO_OUTLINE":return noa();case "REMOVE_CIRCLE":return{I:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",U:{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 cO();case "LIKE":return g.aO();case "DISLIKE":return $N();default:return g.Gr(new Sq("Unexpected icon:",a)),null}};
hO=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",ia:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});W.call(this,a,b,e,void 0===f?"button":f,c,d);this.B=this.C=this.D=null;this.F=h;this.hide()};
voa=function(a){var b=null;null!=a.B&&(b=[a.B.serviceEndpoint,a.B.navigationEndpoint].filter(function(c){return null!=c}),a.B.command&&(b=b.concat(a.B.command)));
return b||[]};
iO=function(a,b,c,d,e,f,h){W.call(this,a,b,c,d,e,f);this.B=h;g.C(this,this.B);this.ha=this.F=-1};
jO=function(a){a.B&&-1===a.F&&(a.F=a.B.subscribe("b",a.Ik,a),a.ha=a.B.subscribe("a",a.hm,a),a.Ik())};
kO=function(a){null!=a.B&&-1!==a.F&&(a.B.Ck(a.F),a.B.Ck(a.ha),a.ha=-1,a.F=-1)};
lO=function(a,b,c,d,e,f){f=void 0===f?!1:f;iO.call(this,a,b,{I:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{I:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{I:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{I:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{I:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.D=this.ga("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.G=f;this.hide()};
mO=function(a,b,c,d,e,f){W.call(this,a,b,{I:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.B=null;this.hide()};
nO=function(a,b){b&&g.Ne(a.element,FN(a.B,b))};
g.oO=function(a,b,c,d,e,f){g.B.call(this);this.element=a;this.state=null;c||a.hide();this.C=b;this.D=void 0===d?b:d;this.u=f;this.B=e;this.delay=new g.G(this.Au,0,this);g.C(this,this.delay)};
pO=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
qO=function(a,b,c,d,e,f){iO.call(this,a,b,{I:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.ra=-1;this.C=new g.EN({I:"span",L:"ytp-ad-preview-container"});g.C(this,this.C);this.D=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-preview-text");g.C(this,this.D);this.D.fa(this.C.element);this.P=new g.EN({I:"span",L:"ytp-ad-preview-image"});g.C(this,this.P);this.G=new PN(this.api,this.Ea,this.layoutId,this.u);g.C(this,this.G);this.G.fa(this.P.element);this.P.fa(this.C.element);
this.C.fa(this.element);this.X=new g.oO(this.C,400,!1,100,function(){return h.hide()});
g.C(this,this.X);this.da=0;this.ka=!1;this.za=f;this.hide()};
rO=function(a){a.X.show(100);a.show()};
sO=function(a,b,c,d,e){e=void 0===e?0:e;g.B.call(this);this.C=a;this.B=!1;this.P=d;this.G=!1;this.u=null;0<b&&(this.u=new g.G(this.hA,b,this),g.C(this,this.u));this.D=new g.G(this.hA,c,this);g.C(this,this.D);this.N=Gn(this.C,e,1,d);g.C(this,this.N);this.K=Gn(this.C,0,d,1);g.C(this,this.K);this.F=new g.rs;g.C(this,this.F)};
tO=function(a,b,c,d,e){iO.call(this,a,b,{I:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var f=this;this.P=null;this.da=!1;this.D=new g.EN({I:"span",ia:["ytp-ad-skip-button-container"]});g.C(this,this.D);this.D.fa(this.element);this.C=this.G=null;this.ka=new g.oO(this.D,500,!1,100,function(){return f.hide()});
g.C(this,this.ka);this.X=new sO(this.D.element,15E3,5E3,.5,.5);g.C(this,this.X);this.hide()};
woa=function(a){a=a.P&&a.P.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
uO=function(a,b){g.P.call(this);this.F=b;this.G=new g.rs(this);g.C(this,this.G);this.B=a;this.Wa=new g.Tm(100);g.C(this,this.Wa);this.G.R(this.Wa,"tick",this.KL);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.C=!1;this.u=0;this.start()};
vO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{I:"div",L:"ytp-ad-action-interstitial-background-container"},{I:"div",L:"ytp-ad-action-interstitial-slot",S:[{I:"div",L:"ytp-ad-action-interstitial-card",S:[{I:"div",L:"ytp-ad-action-interstitial-image-container"},{I:"div",L:"ytp-ad-action-interstitial-headline-container"},{I:"div",L:"ytp-ad-action-interstitial-description-container"},{I:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Ka=this.ga("ytp-ad-action-interstitial-image-container");this.P=new PN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-image");g.C(this,this.P);this.P.fa(this.Ka);this.za=this.ga("ytp-ad-action-interstitial-headline-container");this.ha=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-headline");g.C(this,this.ha);this.ha.fa(this.za);this.ra=this.ga("ytp-ad-action-interstitial-description-container");this.da=new mO(this.api,
this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-description");g.C(this,this.da);this.da.fa(this.ra);this.Bb=this.ga("ytp-ad-action-interstitial-background-container");this.X=new PN(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-action-interstitial-background",!0);g.C(this,this.X);this.X.fa(this.Bb);this.Qa=this.ga("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.G=new g.rs;g.C(this,this.G);this.ka=null;this.hide()};
xoa=function(a){var b=g.re("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
wO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-choice-interstitial",S:[{I:"div",L:"ytp-ad-choice-interstitial-main-content",S:[{I:"div",L:"ytp-ad-choice-interstitial-head-title"},{I:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c,d);this.F=this.D=this.B=this.C=null;this.G=new g.oO(this,0,!1,0);g.C(this,this.G);this.hide()};
yoa=function(a,b){var c=ON(b)||"";g.rc(c)?g.Fo(Error("Found ThumbnailDetails without valid image URL")):g.F(a,"backgroundImage","url("+c+")")};
zoa=function(a,b){var c=a.ga("ytp-ad-choice-interstitial-head-title");g.Ne(c,g.T(b))};
Aoa=function(a){switch(a){case 0:case 1:return a;default:return M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
Coa=function(a,b,c,d){if(2!==b.length)return!1;a.B=Boa(a,b[0],c,0===d);a.B.show();a.D=Boa(a,b[1],c,1===d);a.D.show();return!0};
Boa=function(a,b,c,d){var e=a.ga("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.R(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.R(a.api.T().experiments,"self_podding_highlight_non_default_button");d&&h.push("ytp-ad-choice-interstitial-button-default");d===!m&&h.push(l);d=new hO(a.api,a.Ea,a.layoutId,a.u,h,"button",!1,f);g.C(a,d);d.init(GJ("button"),
b,a.macros);d.fa(e);d.element.style.width=8*c+32+"px";return d};
Doa=function(a,b){var c=8*b+32,d=a.ga("ytp-ad-choice-interstitial-button-container");190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
Eoa=function(a,b,c,d){a.C=new uO(d);a.C.subscribe("a",function(){a.G.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Ea.executeCommand(f.value,c)});
g.C(a,a.C)};
Foa=function(a,b,c){var d=a.ga("ytp-ad-choice-interstitial");a.F=new lO(a.api,a.Ea,a.layoutId,a.u,a.C,!0);g.C(a,a.F);a.F.init(GJ("timed-pie-countdown"),b,c);a.F.fa(d)};
xO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.C=this.ga("ytp-ad-text-interstitial");this.B=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-text-interstitial-message");g.C(this,this.B);this.B.fa(this.C);this.hide()};
Goa=function(a){var b=g.re("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
yO=function(){g.B.call(this);var a=this;this.u=new Map;this.B=aea(function(b){if(b.target&&(b=a.u.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Ct(b[c],void 0,void 0)})};
Hoa=function(){null==zO&&(zO=new yO);return zO};
AO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=Ioa(c);if(d){c=g.Ee("SPAN",null,d);break a}}c=g.Ge(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Joa(e,b))}return 1==c.length?c[0]:g.Ee("SPAN",null,c)};
Joa=function(a,b){var c=null,d=a.text;b&&(d=Ioa(d)||d);a.bold&&(c=g.Ee("B",null,c||d));a.italics&&(c=g.Ee("I",null,c||d));a.strikethrough&&(c=g.Ee("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.Ee("A",null,c||d);g.id(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),Hoa().register(c,e),g.I(c,"ytp-ad-has-logging-urls")}return c||g.Ee("SPAN",
null,d)};
Ioa=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.Ee("BR")),b.push(a[c]);return b}return null};
BO=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;W.call(this,a,b,{I:"span",ia:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.C=null;this.G=f;this.F=e;this.hide()};
CO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-feedback-dialog-background",S:[{I:"div",L:"ytp-ad-feedback-dialog-container",S:[{I:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-feedback-dialog-title",S:[{I:"span",Z:"{{title}}"}]},{I:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{I:"div",L:"ytp-ad-info-dialog-feedback-options"},{I:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{I:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.B=null;this.F=this.ga("ytp-ad-feedback-dialog-cancel-button");this.P=this.ga("ytp-ad-feedback-dialog-confirm-button");this.X=this.ga("ytp-ad-info-dialog-feedback-options");this.da=this.ga("ytp-ad-feedback-dialog-title");this.G=this.C=null;this.hide()};
Noa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new hO(a.api,a.Ea,a.layoutId,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.B),a.B.init(GJ("button"),c,a.macros),a.B.wa("click",a.xD,a),a.B.fa(a.element));b.title&&(c=g.T(b.title),a.ua("title",c));b.reasonsTitle&&(c=g.T(b.reasonsTitle),a.ua("reasonsTitle",c));b.reasons&&Koa(a,b.reasons);b.cancelLabel&&(c=g.T(b.cancelLabel),a.ua("cancelLabel",c),g.dp(a.F,"click",function(){return a.xD()}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ua("confirmLabel",c),g.dp(a.P,"click",function(){return Loa(a)}));
b.undoRenderer&&Moa(a,b.undoRenderer)};
Koa=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.Fo(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Fo(Error("AdFeedbackReason.endpoint was not set.")):(d=new DO(d,e),g.C(a,d),a.X.appendChild(d.Na()),a.D.push(d)))}};
Moa=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new hO(a.api,a.Ea,a.layoutId,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.C),a.C.init(GJ("ad-feedback-undo-mute-button"),c,a.macros),a.C.wa("click",a.tP,a),a.C.fa(a.da)):g.Fo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Loa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Ea.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.W("f"),a.hide())};
DO=function(a,b){this.B=b;this.u=new g.EN({I:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{I:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{I:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.T(a)}]});this.C=this.u.ga("ytp-ad-feedback-dialog-reason-input")};
EO=function(a,b,c,d,e,f){e=void 0===e?[]:e;W.call(this,a,b,{I:"div",ia:["ytp-ad-confirm-dialog-background"],S:[{I:"div",L:"ytp-ad-confirm-dialog-container",S:[{I:"div",ia:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-confirm-dialog-messages"},{I:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{I:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{I:"button",ia:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{I:"span",L:"ytp-ad-button-icon",S:[g.XN()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.G=this.ga("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ga("ytp-ad-confirm-dialog-cancel-button");this.X=this.ga("ytp-ad-confirm-dialog-confirm-button");this.P=this.ga("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new g.rs;g.C(this,this.B);this.C=null;this.hide()};
Ooa=function(a,b){if(b.title){var c=g.T(b.title);a.ua("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=AO(d.value),a.P.appendChild(d)}b.cancelLabel&&(c=g.T(b.cancelLabel),a.ua("cancelLabel",c),a.B.R(a.F,"click",function(e){return a.Dx(e)}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ua("confirmLabel",c),a.B.R(a.X,"click",function(e){return a.Kx(e)}));
a.B.R(a.G,"click",function(e){return a.Jx(e)})};
FO=function(a,b,c,d){EO.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
GO=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-info-dialog-background",S:[{I:"div",L:"ytp-ad-info-dialog-container",S:[{I:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{I:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{I:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{I:"div",L:"ytp-ad-info-dialog-message"},{I:"div",L:"ytp-ad-info-dialog-mute-container"},{I:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{I:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.B=this.C=null;this.P=this.ga("ytp-ad-info-dialog-confirm-button");this.za=this.ga("ytp-ad-info-dialog-mute-container");this.ra=this.ga("ytp-ad-info-dialog-message");this.da=this.ga("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.ka=e;this.G=null;this.ha=!1;this.X=null;this.hide()};
Poa=function(a){(a.G&&a.G.impressionEndpoints||[]).forEach(function(b){return a.Ea.executeCommand(b,a.macros)})};
Qoa=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new CO(a.api,a.Ea,a.layoutId,a.u),g.C(a,a.C),a.C.init(GJ("ad-feedback-dialog"),c,a.macros),a.C.fa(a.ka),a.C.subscribe("f",function(){return a.W("h")}))};
Roa=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new FO(a.api,a.Ea,a.layoutId,a.u),g.C(a,a.F),a.F.init(GJ("ad-mute-confirm-dialog"),c,a.macros),a.F.fa(a.ka),a.F.subscribe("g",function(){return a.W("h")}))};
Soa=function(a){a.B&&a.B.wa("click",a.yD,a);g.dp(a.P,"click",function(){return a.yD()})};
HO=function(a,b,c,d,e,f){BO.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.B=null;this.D=e;this.hide()};
Toa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new GO(a.api,a.Ea,a.layoutId,a.u,a.D),g.C(a,a.B),a.B.init(GJ("ad-info-dialog"),b,c),a.B.fa(a.D),a.B.subscribe("i",function(){return a.W("k")}),a.B.subscribe("h",function(){return a.W("j")}))};
Uoa=function(a,b,c){null==a.button?M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-long"):(Toa(a,b,c),a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-short"),a.button.wa("click",function(){a.B&&!a.B.Za&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
IO=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Da=b;this.layoutId=d;this.B=0;this.u=new Set;this.C=Array.from(this.D.get("progress")||[]);this.C.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.F={adPlacementConfig:c,FC:e}};
JO=function(){return["metadata_type_ad_placement_config"]};
LO=function(a){var b=a.Da.get();return KO(b,a.F)};
MO=function(a,b){var c=a.D.get(b)||[];Voa(a,b,c);a.u.add(b)};
NO=function(a,b){a.u.has(b)||MO(a,b)};
Voa=function(a,b,c){var d=a.Da.get();a=a.layoutId;c=void 0===c?[]:c;var e=OO(d.td.get(),a);if(e)for(b=Woa(d.fb.get(),a,b),a=KO(d,Xoa(e),e),c=g.q(c),e=c.next();!e.done;e=c.next())e=e.value,e.baseUrl&&d.Ah.send(e.baseUrl,a,b,e.headers);else sI("Trying to track from an unknown layout")};
Yoa=function(a,b){b=void 0===b?PO:b;b.width<PO.width&&(b=PO);return a.width<b.width||a.height<b.height};
QO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
RO=function(a,b,c){c=void 0===c?PO:c;c.width<PO.width&&(c=PO);if(a.width<c.width||a.height<c.height)return{Ou:3,Jq:501,errorMessage:"ad("+QO(c)+") larger than container("+QO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Ou:3,Jq:501,errorMessage:"ad("+QO(c)+") to container("+QO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Ou:3,Jq:501,errorMessage:"ad("+QO(c)+") covers container("+QO(a)+") center."}};
Zoa=function(a,b){var c=uI(a.xa,"metadata_type_ad_placement_config");return new IO(a.Rc,b,c,a.layoutId)};
SO=function(a){return uI(a.xa,"metadata_type_invideo_overlay_ad_renderer")};
TO=function(a){return g.R(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
UO=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-overlay-slot",S:[{I:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.P=[];this.F=this.Ka=this.ra=null;a=this.ga("ytp-ad-overlay-container");this.ka=new sO(a,45E3,6E3,.3,.4);g.C(this,this.ka);TO(this.api)||(this.ha=new g.G(this.clear,45E3,this),g.C(this,this.ha));this.D=$oa(this);g.C(this,this.D);this.D.fa(a);this.C=apa(this);g.C(this,this.C);this.C.fa(a);this.B=bpa(this);g.C(this,this.B);this.B.fa(a);this.Qa=this.da=null;this.za=
!1;this.G=null;this.X=0;this.hide()};
$oa=function(a){var b=new g.EN({I:"div",L:"ytp-ad-text-overlay",S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[gO(VO)]}]},{I:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{I:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return WO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return WO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Ex);b.hide();return b};
apa=function(a){var b=new g.EN({I:"div",ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[gO(VO)]}]},{I:"div",L:"ytp-ad-overlay-text-image",S:[{I:"img",U:{src:"{{imageUrl}}"}}]},{I:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{I:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{I:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return WO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return WO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Ex);a.R(b.ga("ytp-ad-overlay-text-image"),"click",a.kP);b.hide();return b};
bpa=function(a){var b=new g.EN({I:"div",L:"ytp-ad-image-overlay",S:[{I:"div",L:"ytp-ad-overlay-ad-info-button-container"},{I:"div",L:"ytp-ad-overlay-close-container",S:[{I:"button",L:"ytp-ad-overlay-close-button",S:[gO(VO)]}]},{I:"div",L:"ytp-ad-overlay-image",S:[{I:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.R(b.ga("ytp-ad-overlay-image"),"click",function(c){return WO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.Ex);b.hide();return b};
XO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.re("video-ads ytp-ad-module")||null;null==d?M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.da=new g.EN({I:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.da),a.da.fa(d),d=new HO(a.api,a.Ea,a.layoutId,a.u,a.da.element,!1),g.C(a,d),d.init(GJ("ad-info-hover-text-button"),c,a.macros),a.G?
(d.fa(a.G,0),d.subscribe("k",a.iM,a),d.subscribe("j",a.WN,a),a.R(a.G,"click",a.jM),c=g.re("ytp-ad-button",d.element),a.R(c,"click",a.PL),a.Qa=d):M(Error("Ad info button container within overlay ad was not present.")))}}else g.Fo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
cpa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
dpa=function(a,b){if(YO(a,ZO)||a.api.app.visibility.u)return!1;var c=FN(b.title),d=FN(b.description);if(g.rc(c)||g.rc(d))return!1;JN(a,a.D.element,b.trackingParams||null);a.D.ua("title",FN(b.title));a.D.ua("description",FN(b.description));a.D.ua("displayUrl",FN(b.displayUrl));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.D.show();a.ka.start();MN(a,a.D.element,!0);TO(a.api)||(a.R(a.api,"resize",function(){YO(a,ZO)&&a.clear()}),a.R(a.api,"minimized",a.TN));
a.R(a.D.element,"mouseover",function(){a.X++});
return!0};
epa=function(a,b){if(YO(a,ZO)||a.api.app.visibility.u)return!1;var c=FN(b.title),d=FN(b.description);if(g.rc(c)||g.rc(d))return!1;JN(a,a.C.element,b.trackingParams||null);a.C.ua("title",FN(b.title));a.C.ua("description",FN(b.description));a.C.ua("displayUrl",FN(b.displayUrl));a.C.ua("imageUrl",GN(b.image));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.Ka=b.imageNavigationEndpoint||null;a.C.show();a.ka.start();MN(a,a.C.element,!0);TO(a.api)||a.R(a.api,"resize",function(){YO(a,ZO)&&a.clear()});
a.R(a.C.element,"mouseover",function(){a.X++});
return!0};
fpa=function(a,b){if(a.api.app.visibility.u)return!1;var c=moa(b.image),d=c;c.width<ZO.width&&(d=ZO);if(0==c.width||0==c.height||YO(a,d))return!1;JN(a,a.B.element,b.trackingParams||null);a.B.ua("imageUrl",GN(b.image));a.B.ua("width",c.width);a.B.ua("height",c.height);b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);d=a.B.ga("ytp-ad-image-overlay");g.F(d,"max-width",c.width+"px");a.B.show();MN(a,a.B.element,!0);TO(a.api)||(a.ha.start(),a.R(a.api,"resize",function(){YO(a,c)&&a.clear()}));
a.R(a.B.element,"mouseover",function(){a.X++;TO(a.api)?a.api.W("aduxmouseover","invideo-overlay",a.layoutId):a.ha.stop()});
a.R(a.B.element,"mouseout",function(){TO(a.api)?a.api.W("aduxmouseout","invideo-overlay",a.layoutId):a.ha.start()});
return!0};
YO=function(a,b){var c=g.fH(a.api).getPlayerSize();if(!g.R(a.api.T().experiments,"drop_overlay_ads_on_cba_violation"))return b.width>c.width||b.height>c.height;var d=a.api.fi(!0,!1);return(c=RO(c,c.height-(d.height+d.top),b))?(a.ra&&c&&(d=g.Zb(a.macros),d.ERRORCODE=c.Jq.toString(),d.ERROR_MSG=c.errorMessage,a.Ea.executeCommand(a.ra,d)),!0):!1};
WO=function(a,b,c){var d=g.Zb(a.macros),e=g.Eg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Cg(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.X.toString()}};
a.P.forEach(function(h){return a.Ea.executeCommand(h,d)});
a.api.pauseVideo()};
gpa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
$O=function(a,b,c,d,e){iO.call(this,a,b,{I:"div",L:"ytp-ad-message-overlay",S:[{I:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.da=-1;this.ka=this.ga("ytp-ad-message-slot");this.D=new g.EN({I:"span",L:"ytp-ad-message-container"});this.D.fa(this.ka);g.C(this,this.D);this.C=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-message-text");g.C(this,this.C);this.C.fa(this.D.element);this.P=new g.oO(this.D,400,!1,100,function(){return f.hide()});
g.C(this,this.P);this.G=0;this.X=!1;this.hide()};
hpa=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
aP=function(a,b,c,d,e){iO.call(this,a,b,{I:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.P=!1;this.G=0;this.D=this.C=null;this.hide()};
bP=function(a,b){if(!a.P)if(a.P=!0,a.C&&(b?a.C.X.hide():a.C.hide()),b){var c=a.D;c.ka.show();c.show()}else a.D.show()};
cP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-persisting-overlay",S:[{I:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.C=this.ga("ytp-ad-persisting-overlay-skip");this.B=e;g.C(this,this.B);this.hide()};
g.dP=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 h="";0<d&&(h+=" "+d+" Days");if(0<d||0<e)h+=" "+e+" Hours";d=(h+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{h="";0<d&&(h+=d+":",10>e&&(h+="0"));if(0<d||0<e)h+=e+":",10>f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d};
g.eP=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)};
fP=function(a,b,c,d,e,f){iO.call(this,a,b,{I:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()};
gP=function(a,b,c,d){mO.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
hP=function(a,b,c,d,e){iO.call(this,a,b,{I:"div",ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{I:"div",L:"ytp-flyout-cta-icon-container"},{I:"div",L:"ytp-flyout-cta-body",S:[{I:"div",L:"ytp-flyout-cta-text-container",S:[{I:"div",L:"ytp-flyout-cta-headline-container"},{I:"div",L:"ytp-flyout-cta-description-container"}]},{I:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.D=new PN(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-icon");g.C(this,this.D);this.D.fa(this.ga("ytp-flyout-cta-icon-container"));
this.P=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-headline");g.C(this,this.P);this.P.fa(this.ga("ytp-flyout-cta-headline-container"));this.G=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-flyout-cta-description");g.C(this,this.G);this.G.fa(this.ga("ytp-flyout-cta-description-container"));this.C=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.C(this,this.C);this.C.fa(this.ga("ytp-flyout-cta-action-button-container"));this.X=null;this.da=0;this.hide()};
iP=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=GJ("ytp-ad-toggle-button-input");W.call(this,a,b,{I:"div",ia:["ytp-ad-toggle-button"].concat(e),S:[{I:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},S:[{I:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{I:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{I:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{I:"input",
L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{I:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{I:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ga("ytp-ad-toggle-button");this.B=this.ga("ytp-ad-toggle-button-input");this.ga("ytp-ad-toggle-button-label");this.X=this.ga("ytp-ad-toggle-button-icon");this.G=this.ga("ytp-ad-toggle-button-untoggled-icon");this.F=this.ga("ytp-ad-toggle-button-toggled-icon");this.ha=this.ga("ytp-ad-toggle-button-text");
this.C=null;this.P=!1;this.da=null;this.hide()};
jP=function(a){a.P&&(a.isToggled()?(g.Fg(a.G,!1),g.Fg(a.F,!0)):(g.Fg(a.G,!0),g.Fg(a.F,!1)))};
ipa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
kP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.B=null;this.D=new iP(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.D);this.D.fa(this.element);this.C=new iP(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.C);this.C.fa(this.element);this.F=new g.oO(this,400,!1,500,function(){return f.hide()});
g.C(this,this.F);this.G=null;this.hide()};
jpa=function(a,b){a.D.init(GJ("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(GJ("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.G=a.R(a.element,"change",a.wD)};
lP=function(a,b,c,d){hO.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
mP=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{I:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()};
nP=function(a,b){this.B=a;this.u=b};
oP=function(a,b){return a.B+b*a.getLength()};
pP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.be(a,0,1)};
qP=function(a,b){g.EN.call(this,{I:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{I:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.C(this,this.B);this.G=this.ga("ytp-ad-persistent-progress-bar");this.u=-1;this.R(a,"presentingplayerstatechange",this.F);this.hide();this.F()};
rP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-player-overlay",S:[{I:"div",L:"ytp-ad-player-overlay-flyout-cta"},{I:"div",L:"ytp-ad-player-overlay-instream-info"},{I:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",L:"ytp-ad-player-overlay-progress-bar"},{I:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.G=this.ga("ytp-ad-player-overlay-flyout-cta");this.C=this.ga("ytp-ad-player-overlay-instream-info");this.D=null;kpa(this)&&(a=g.Ee("div"),
g.I(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new gP(this.api,this.Ea,this.layoutId,this.u),c.fa(a),c.init(GJ("ad-title"),{text:b.title},this.macros),g.C(this,c)),this.D=a);this.F=this.ga("ytp-ad-player-overlay-skip-or-preview");this.X=this.ga("ytp-ad-player-overlay-progress-bar");this.P=this.ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.C(this,this.B);this.hide()};
kpa=function(a){a=a.api.T();return NC(a)&&a.u};
sP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ga("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
tP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ga("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
uP=function(a,b,c,d){hO.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
vP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-player-overlay",S:[{I:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{I:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.G=this.ga("ytp-ad-survey-player-overlay-instream-info");this.C={};this.P=this.ga("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.X=this.ga("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.C(this,this.F);this.hide()};
wP=function(a,b,c,d,e){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-question",S:[{I:"div",ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ga("ytp-ad-survey-question");this.ka=this.ga("ytp-ad-survey-question-background");this.da=this.ga("ytp-ad-survey-question-text");
this.answers=this.ga("ytp-ad-survey-answers");this.X=this.ga("ytp-ad-survey-question-player-overlay");this.G=null;this.D=[];this.B=null;this.F=g.A()};
lpa=function(a,b,c){var d=new sP(a.api,a.Ea,a.layoutId,a.u);d.fa(a.answers);d.init(GJ("survey-answer"),b,c);a.D.push(d)};
npa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&ON(c)||"",g.rc(c)?g.Fo(Error("Found ThumbnailDetails without valid image URL")):g.F(a.ka,"backgroundImage","url("+c+")"));mpa(a,b)}else M(Error("addCommonComponents() needs to be called before starting countdown."))};
mpa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new uO(b.durationMilliseconds,a.Ea);g.C(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new vP(a.api,a.Ea,a.layoutId,a.u,a.B);
d.fa(a.X);d.init(GJ("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.G=d;g.C(a,d);a.wF()}catch(e){M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new qP(a.api,a.B),d.fa(a.X),g.C(a,d)):M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
opa=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 g.A()-a.F})};
xP=function(a,b,c,d){wP.call(this,a,b,c,d,"survey-question-multi-select");this.C=null;this.ha=[];this.P=null;this.hide()};
ppa=function(a,b,c){a.C=new tP(a.api,a.Ea,a.layoutId,a.u);a.C.fa(a.answers);a.C.init(GJ("survey-none-of-the-above"),b,c)};
qpa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
yP(a,!0)};
yP=function(a,b){var c=a.G,d=rpa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof aP&&!c.B.P&&bP(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
rpa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
zP=function(a,b,c,d){wP.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
AP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey",S:[{I:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.B=this.ga("ytp-ad-survey-questions");this.C=[];this.hide()};
BP=function(a,b,c,d){W.call(this,a,b,{I:"div",L:"ytp-ad-survey-interstitial",S:[{I:"div",L:"ytp-ad-survey-interstitial-contents",S:[{I:"div",L:"ytp-ad-survey-interstitial-logo",S:[{I:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.F=this.ga("ytp-ad-survey-interstitial");this.G=this.ga("ytp-ad-survey-interstitial-contents");this.B=null;this.X=this.ga("ytp-ad-survey-interstitial-text");this.P=this.ga("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.oO(this,500,!1,300);g.C(this,this.C)};
spa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.F;b=a.B.element.contains(b.target);if(d||b)a.C.hide(),d&&c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})};
tpa=function(a,b){var c=b&&ON(b)||"";if(g.rc(c))g.Fo(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ye&&10>document.documentMode)d=Rc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Fe("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Gda(e.style)}c=Faa(d,Sc({"background-image":'url("'+c+'")'}));a.style.cssText=Oc(c)}};
upa=function(a){var b=g.re("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
CP=function(a,b){b=void 0===b?2:b;g.P.call(this);this.u=a;this.B=new g.rs(this);g.C(this,this.B);this.F=vpa;this.D=null;this.B.R(this.u,"presentingplayerstatechange",this.LL);this.D=this.B.R(this.u,"progresssync",this.uD);this.C=b;1===this.C&&this.uD()};
EP=function(a,b){rN.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({I:"div",ia:["video-ads","ytp-ad-module"]});g.C(this,c);iC&&g.I(c.element,"ytp-ads-tiny-mode");this.F=new vN(c.element);g.C(this,this.F);g.DP(this.D,c.element,4);g.C(this,Hoa())};
wpa=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Fo(Error("Component not found for element id: "+b.id));return c||null};
FP=function(a){this.controller=a};
GP=function(a){this.Do=a};
HP=function(a){this.Do=a};
IP=function(a,b,c){this.Do=a;this.dg=b;this.uh=c};
ypa=function(a,b,c){var d=a.Do();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.dg.u.entries()),f=e.next();!f.done;f=e.next()){f=g.q(f.value);var h=f.next().value;f.next();"slot_type_player_bytes"===h.Xa&&"core"===h.ab&&(b=!0)}b?(c=xpa(a,c))?a.uh.hp(c):sI("No triggering layout ID available when attempting to mute."):g.um(function(){d.yp()})}};
xpa=function(a,b){if(b)return b;for(var c=g.q(a.dg.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if("slot_type_in_player"===d.Xa&&"core"===d.ab)return e.layoutId}};
JP=function(){};
KP=function(){};
LP=function(a,b){this.po=a;this.Da=b};
MP=function(a){this.J=a};
NP=function(a,b){this.Ah=a;this.Da=b};
Apa=function(a){g.B.call(this);this.u=a;this.B=zpa(this)};
zpa=function(a){var b=new JM;g.C(a,b);a=g.q([new FP(a.u.DH),new LP(a.u.po,a.u.Da),new GP(a.u.EH),new MP(a.u.J),new NP(a.u.Ah,a.u.Da),new IP(a.u.aM,a.u.dg,a.u.uh),new HP(a.u.NH),new JP,new KP]);for(var c=a.next();!c.done;c=a.next())c=c.value,doa(b,c),eoa(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())GM(b,c.value,function(){});
return b};
OP=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.xa.u.has(c.value))return!1;return!0};
PP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
uI=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
QP=function(a){return Array.from(a.u.keys())};
Cpa=function(a){var b;return(null===(b=Bpa.get(a))||void 0===b?void 0:b.yq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
SP=function(a,b){var c={type:Dpa.get(b.Xa)||"SLOT_TYPE_UNSPECIFIED",entryTriggerType:b.Nb?RP.get(b.Nb.triggerType)||"TRIGGER_TYPE_UNSPECIFIED":"TRIGGER_TYPE_UNSPECIFIED",controlFlowManagerLayer:Epa.get(b.ab)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Nb;if(d){var e={type:RP.get(d.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===d.triggerType&&(e.layoutIdEnteredTriggerData={enteredLayoutId:d.B});
c.debugData.slotEntryTriggerData=e}}return c};
Gpa=function(a,b){var c={type:Fpa.get(b.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:Epa.get(b.ab)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Ipa=function(a,b,c,d){b={opportunityType:Hpa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Pc(d||[],function(e){return SP(a,e)}),
associatedSlotId:c});return b};
UP=function(a,b){return function(c){return Jpa(TP(a),b.slotId,b.Xa,b.feedPosition,b.ab,b.Nb,c.layoutId,c.layoutType,c.ab)}};
Jpa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:SP(a,{slotId:b,Xa:c,feedPosition:d,ab:e,Nb:f,te:[],gf:[],xa:new PP([])}),layoutData:Gpa(a,{layoutId:h,layoutType:l,ab:m,Ld:[],kd:[],jd:[],Md:[],Rc:new Map,xa:new PP([]),sd:{}})}}};
VP=function(a){this.ya=a;this.u=.1>Math.random()};
TP=function(a){return a.u||g.R(a.ya.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
WP=function(a,b,c,d){g.B.call(this);this.B=b;this.Ab=c;this.ya=d;this.u=a(this,this,this,this,this);g.C(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
XP=function(a,b){a.B.add(b);g.C(a,b)};
ZP=function(a,b,c){sI(c,b,void 0,void 0,c.Xk);YP(a,b,!0)};
Lpa=function(a,b,c){if($P(a.u,b))if(aQ(a.u,b).D=c?"filled":"not_filled",null===c){bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Bi(b);YP(a,b,!1)}else{bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.Ci(b);if(aQ(a.u,b).F)YP(a,b,!1);else{bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!aQ(f,b))throw new cQ("Unknown slotState for onLayout");
if(!f.Mc.rj.get(b.Xa))throw new cQ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Xa);if(g.ob(c.Ld)&&g.ob(c.kd)&&g.ob(c.jd)&&g.ob(c.Md))throw new cQ("Layout has no exit triggers.");dQ(f,0,c.Ld);dQ(f,1,c.kd);dQ(f,2,c.jd);dQ(f,6,c.Md)}catch(n){eQ(a,b,c,n);YP(a,b,!0);return}a.u.Dm(b);try{var h=a.u,l=aQ(h,b),m=h.Mc.rj.get(b.Xa).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new cQ("Already had LayoutRenderingAdapter registered for slot");l.C=m;fQ(h,l,0,c.Ld);fQ(h,l,1,c.kd);
fQ(h,l,2,c.jd);fQ(h,l,6,c.Md)}catch(n){gQ(a,b);YP(a,b,!0);eQ(a,b,c,n);return}bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.yh(b,c);gQ(a,b);Kpa(a,b)}}};
Mpa=function(a,b,c){bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.yh(b,c)};
Npa=function(a,b){pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);$P(a.u,b)&&(aQ(a.u,b).D="fill_canceled",YP(a,b,!1))};
Opa=function(a,b,c){bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Nd(b,c)};
eL=function(a,b,c,d){bQ(a.Ab,Cpa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Xd(b,c,d)};
eQ=function(a,b,c,d){sI(d,b,c,void 0,d.Xk);YP(a,b,!0)};
gQ=function(a,b){if($P(a.u,b)){aQ(a.u,b).Dm=!1;var c=hQ,d=aQ(a.u,b),e=[].concat(g.la(d.K));pb(d.K);c(a,e)}};
hQ=function(a,b){b.sort(function(h,l){return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):h.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,$P(a.u,e.slot))if(aQ(a.u,e.slot).Dm)aQ(a.u,e.slot).K.push(e);else{Ppa(a.Ab,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(Qpa.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&Rpa(a,e,f);(d=c.get(3))&&Spa(a,d);(d=c.get(4))&&Tpa(a,d);(c=c.get(5))&&Upa(a,c)};
Rpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&iQ(a.u,d.slot)&&Vpa(a,d.slot,d.layout,c)};
Spa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())YP(a,d.value.slot,!1)};
Tpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(aQ(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.Qo(d.slot))}};
Upa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.zh(d.slot);try{var h=a.u,l=d.slot,m=aQ(h,l);if(!m)throw new jI("Got enter request for unknown slot");if(!m.B)throw new jI("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new jI("Tried to enter a slot from stage: "+m.u);if(jQ(m))throw new jI("Got enter request for already active slot");
for(var n=g.q(kQ(h,l.Xa+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&jQ(r)){e=void 0;var t=h;f=r;var w=l,x=lQ(t.oa.get(),1,!1),y=uH(t.Ba.get(),1),D=qI(f.layout),E=f.slot.Nb,H=Wpa(t,E),N=rI(E,H),J=w.xa.u.has("metadata_type_fulfilled_layout")?qI(uI(w.xa,"metadata_type_fulfilled_layout")):"unknown",Ja=w.Nb,wa=Wpa(t,Ja),Xa=rI(Ja,wa);t=H;w=wa;if(t&&w){if(t.start>w.start){var Kb=g.q([w,t]);t=Kb.next().value;w=Kb.next().value}e=t.end>w.start}else e=!1;throw new jI("Trying to enter a slot when a slot of same type is already active.",
{details:x+" |"+(N+" |"+Xa),activeSlotStatus:f.u,activeLayout:D?D:"empty",enteringLayout:J,hasOverlap:String(e),contentCpn:y.clientPlaybackNonce,contentVideoId:y.videoId});}}}catch(eb){sI(eb,d.slot,mQ(a.u,d.slot),void 0,eb.Xk);YP(a,d.slot,!0);continue}d=aQ(a.u,d.slot);"scheduled"!==d.u&&nQ(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Sv()}};
Kpa=function(a,b){var c;if($P(a.u,b)&&jQ(aQ(a.u,b))&&mQ(a.u,b)&&!iQ(a.u,b)){bQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=mQ(a.u,b))&&void 0!==c?c:void 0);var d=aQ(a.u,b);"entered"!==d.u&&nQ(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
Vpa=function(a,b,c,d){if($P(a.u,b)){var e=a.Ab,f;var h=(null===(f=Bpa.get(d))||void 0===f?void 0:f.gq)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";bQ(e,h,b,c);a=aQ(a.u,b);"rendering"!==a.u&&nQ(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.Tk(c,d)}};
YP=function(a,b,c){if($P(a.u,b)){if(a.u.ax(b)||a.u.Xw(b))if(aQ(a.u,b).F=!0,!c)return;if(jQ(aQ(a.u,b)))aQ(a.u,b).F=!0,Xpa(a,b,c);else if(a.u.bx(b))aQ(a.u,b).F=!0,$P(a.u,b)&&(pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=aQ(a.u,b),b.D="fill_cancel_requested",b.G.u());else{c=mQ(a.u,b);pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=aQ(a.u,b),e=b.Nb,f=d.X.get(e.triggerId);f&&(f.Lg(e),d.X["delete"](e.triggerId));e=g.q(b.te);for(f=e.next();!f.done;f=e.next()){f=
f.value;var h=d.P.get(f.triggerId);h&&(h.Lg(f),d.P["delete"](f.triggerId))}e=g.q(b.gf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.N.get(f.triggerId))h.Lg(f),d.N["delete"](f.triggerId);null!=d.layout&&(e=d.layout,oQ(d,e.Ld),oQ(d,e.kd),oQ(d,e.jd),oQ(d,e.Md));d.G=void 0;null!=d.B&&(d.B.release(),d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;aQ(d,b)&&(d=kQ(d,b.Xa+"_"+b.feedPosition))&&d["delete"](b.slotId);pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d=
a.next())d=d.value,d.Di(b),c&&d.zi(b,c)}}};
Xpa=function(a,b,c){if($P(a.u,b)&&jQ(aQ(a.u,b))){var d=mQ(a.u,b);if(d&&iQ(a.u,b))Vpa(a,b,d,c?"error":"abandoned");else{pK(a.Ab,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=aQ(a.u,b);if(!e)throw new jI("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&nQ(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new jI("Cannot exit slot because adapter is not defined");e.B.Xv()}catch(f){sI(f,b,void 0,void 0,f.Xk)}}}};
pQ=function(a){this.slot=a;this.X=new Map;this.P=new Map;this.N=new Map;this.V=new Map;this.C=this.layout=this.B=this.G=void 0;this.Dm=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"};
jQ=function(a){return"enter_requested"===a.u||a.isActive()};
cQ=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Xk=c;this.args=[];b&&this.args.push(b)};
qQ=function(a,b,c,d,e,f,h,l){g.B.call(this);this.Mc=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Cb=f;this.oa=h;this.Ba=l;this.u=new Map};
kQ=function(a,b){var c=a.u.get(b);return c?c:new Map};
aQ=function(a,b){return kQ(a,b.Xa+"_"+b.feedPosition).get(b.slotId)};
Ypa=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};
Wpa=function(a,b){if(b instanceof pI)return b.B;if(b instanceof oI){var c=OO(a.Cb.get(),b.B);if(c=null===c||void 0===c?void 0:uI(c.xa,"metadata_type_ad_placement_config"))return c=kI(c,0x7ffffffffffff),c instanceof jI?void 0:c.Gg}};
$P=function(a,b){return null!=aQ(a,b)};
iQ=function(a,b){var c=aQ(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
mQ=function(a,b){var c=aQ(a,b);return null!=c.layout?c.layout:null};
rQ=function(a,b,c){if(g.ob(c))throw new jI("No "+Zpa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Mc.mg.get(d.triggerType))throw new jI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
dQ=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Mc.mg.get(d.triggerType))throw new cQ("No trigger adapter registered for "+Zpa.get(b)+" trigger of type: "+d.triggerType);};
fQ=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.Mc.mg.get(e.triggerType);f.Ig(c,e,b.slot,b.layout?b.layout:null);b.V.set(e.triggerId,f)}};
oQ=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.V.get(d.triggerId);e&&(e.Lg(d),a.V["delete"](d.triggerId))}};
nQ=function(a,b,c){sI("Slot stage was "+b+" when calling method "+c,a)};
$pa=function(a){return sQ(a.cm).concat(sQ(a.mg)).concat(sQ(a.ej)).concat(sQ(a.Gj)).concat(sQ(a.rj))};
sQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.ki&&b.push(c);return b};
bqa=function(a){g.B.call(this);this.u=a;this.B=aqa(this)};
aqa=function(a){var b=new WP(function(c,d,e,f){return new qQ(a.u.Mc,c,d,e,f,a.u.Cb,a.u.oa,a.u.Ba)},new Set($pa(a.u.Mc).concat(a.u.listeners)),a.u.Ab,a.u.ya);
g.C(a,b);return b};
tQ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){g.eg(b.u);b.u=null})};
X=function(a){return new tQ(a)};
fqa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,uQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return cqa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={wm:b.wm},h=f.next()){b.wm=h.value;h={};for(var l=g.q(b.wm.av),m=l.next();!m.done;h={Mj:h.Mj},m=l.next())h.Mj=m.value,m=function(n,p){return function(r){return n.Mj.IA(r,p.wm.adVideoId,p.wm.instreamVideoAdRenderer.elementId,n.Mj.Zz)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Mj.Bm?a.push(dqa(c,d,h.Mj.aA,e,h.Mj.adSlotLoggingData,m)):a.push(eqa(c,d,e,b.wm.instreamVideoAdRenderer.elementId,h.Mj.adSlotLoggingData,m))}return a};
uQ=function(a,b,c){if(b=gqa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=hqa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Bs=c)}else sI("InstreamVideoAdRenderer without externalVideoId")}};
gqa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
cqa=function(a){if(void 0===a.instreamVideoAdRenderer)return sI("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.av),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.IA)return!1;if(void 0===c.Zz)return sI("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Bs||void 0===c.Bm||a.Bs!==c.Bm&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Bm)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return sI("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Bs,"matching APSR kind":c.Bm}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Bm&&void 0===c.aA)return sI("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
hqa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Bs:void 0,adVideoId:b,av:[]});return a.get(b)};
vQ=function(a,b,c,d,e,f,h){d?hqa(a,d).av.push({aA:b,Bm:c,Zz:e,adSlotLoggingData:f,IA:h}):sI("Companion AdPlacementSupportedRenderer without adVideoId")};
kqa=function(a,b,c,d,e,f,h){if(!iqa(a))return new jI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[jqa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=wQ(e.Ua.get(),"layout_type_sliding_text_player_overlay",m);var p={layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",ab:"core"},r=new xQ(e.u,d);return{layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",Rc:new Map,Ld:[r],kd:[],
jd:[],Md:[],ab:"core",xa:new PP([new MH(l)]),sd:n(p)}})]};
iqa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
pqa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!lqa(a))return function(){return new jI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=mqa(h);return 0>=l?function(){return new jI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=nqa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=wQ(e.Ua.get(),"layout_type_survey",t);var x={layoutId:t,layoutType:"layout_type_survey",ab:"core"},y=new xQ(e.u,d),D=new yQ(e.u,t),E=new zQ(e.u,t),H=new oqa(e.u);return{layoutId:t,layoutType:"layout_type_survey",Rc:new Map,Ld:[y,H],kd:[D],jd:[],Md:[E],ab:"core",xa:new PP([new LH(h),new GH(b),new fI(l/1E3)]),sd:w(x)}}),r=kqa(a,c,p.slotId,d,e,m,n);
return r instanceof jI?r:[p].concat(g.la(r))}};
mqa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b};
lqa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||
{}).skipAdRenderer&&b?!0:!1};
sqa=function(a,b,c,d,e){var f=[];try{var h=[],l=qqa(a,d,function(t){t=rqa(t.slotId,c,b,e(t),d);h=t.LQ;return t.bI});
f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof jI)return r;f.push.apply(f,g.la(r))}}catch(t){return new jI(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
rqa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={TF:h,UF:0,IQ:n};l=l.map(function(t){return tqa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new II(w,n);
return t(x)});
var r=l.map(function(t){return t.cI});
return{bI:uqa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),vqa(b),d,m),LQ:l.map(function(t){return t.KQ})}};
tqa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Wp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=wqa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.TF,t=c.UF,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.TF=y;c.UF++;c.IQ.push(x);var D=m.pings?JI(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(H){var N=m.adLayoutLoggingData,J=m.sodarExtensionData,Ja=wQ(d.Ua.get(),"layout_type_media",a),wa={layoutId:Ja,layoutType:"layout_type_media",ab:"adapter"};H={layoutId:Ja,layoutType:"layout_type_media",Rc:D,Ld:[],kd:[],jd:[],Md:[],ab:"adapter",xa:new PP([new JH(h),new TH(x),new UH(n),new WH(r),
new XH(y),new YH(t),new QH({current:null}),E&&new KH(E),new GH(f),new IH(p),new HH(H),J&&new VH(J)].filter(xqa)),sd:e(wa),adLayoutLoggingData:N};N=pqa(m,f,h,H.layoutId,d);return{cI:H,KQ:N}}};
wqa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
vqa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
zqa=function(a,b,c,d,e,f,h,l){a=yqa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=wQ(b.Ua.get(),"layout_type_forecasting",n);var p={layoutId:n,layoutType:"layout_type_forecasting",ab:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"layout_type_forecasting",Rc:r,Ld:[new AQ(b.u,n)],kd:[],jd:[],Md:[],ab:"core",xa:new PP([new $H(e),new GH(c)]),sd:m(p)}});
return a instanceof jI?a:[a]};
Bqa=function(a,b,c,d,e,f,h,l){a=Aqa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=wQ(b.Ua.get(),"layout_type_in_video_text_overlay",p),r=BQ(b,t,"layout_type_in_video_text_overlay",e,c,r,CQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=wQ(b.Ua.get(),"layout_type_in_video_enhanced_text_overlay",p),r=BQ(b,t,"layout_type_in_video_enhanced_text_overlay",e,c,r,CQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=wQ(b.Ua.get(),"layout_type_in_video_image_overlay",
p),p=CQ(b,n,p),p.push(new DQ(b.u,t)),r=BQ(b,t,"layout_type_in_video_image_overlay",e,c,r,p)):r=new cQ("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new cQ("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof jI?a:[a]};
Cqa=function(a,b,c){if(!b.playerVars)return new jI("No playerVars available in AdIntroRenderer.");var d=Wp(b.playerVars);d.autoplay="1";return function(e){var f=e.slotId;e=c(e);f=wQ(a.Ua.get(),"layout_type_media",f);var h={layoutId:f,layoutType:"layout_type_media",ab:"adapter"};return{HQ:{layoutId:f,layoutType:"layout_type_media",Rc:new Map,Ld:[],kd:[],jd:[],Md:[],ab:"adapter",xa:new PP([new UH(d)]),sd:e(h)},TH:[new EQ(a.u,f)],SH:[]}}};
Gqa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var x=Dqa(t.playerVars,l,p),y=new II(0,[t.Wq]);w=m(w);var D=n.get(t.Du.externalVideoId);x=Eqa(b,"core",t.Du,c,x,t.Wq,f,y,w,D);return{layoutId:x.layoutId,layoutType:x.layoutType,Rc:x.Rc,Ld:x.Ld,kd:x.kd,jd:x.jd,Md:x.Md,ab:x.ab,xa:x.xa,sd:x.sd,adLayoutLoggingData:x.adLayoutLoggingData}}
var t=FQ(e);if(t instanceof cQ)return new jI(t);if(r instanceof jI)return r;a=Fqa(a,c,f,h,d,r);return a instanceof jI?a:[a]};
FQ=function(a){if(!a.playerVars)return new cQ("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new cQ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Wp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new cQ("Expected valid length seconds in player vars"):
{Du:a,playerVars:b,Wq:c}};
Dqa=function(a,b,c){a.iv_load_policy=c;b.Qf&&(a.ctrl=b.Qf);b.Re&&(a.ytr=b.Re);b.Yi&&(a.ytrcc=b.Yi);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.pg&&(a.vss_credentials_token_type=b.pg),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));return a};
Iqa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new jI("Received invalid LinearAdSequenceRenderer.");b=Hqa(b,c,e,f,l,m,n,p);if(b instanceof jI)return new jI(b);a=Fqa(a,c,f,h,d,b);return a instanceof jI?a:[a]};
Hqa=function(a,b,c,d,e,f,h,l){return function(m){a:{b:{var n=[];for(var p=g.q(c.linearAds),r=p.next();!r.done;r=p.next())if(r=r.value,r.instreamVideoAdRenderer){r=FQ(r.instreamVideoAdRenderer);if(r instanceof cQ){n=new jI(r);break b}n.push(r.Wq)}}if(!(n instanceof jI)){p=0;r=[];for(var t=[],w=[],x=g.q(c.linearAds),y=x.next();!y.done;y=x.next())if(y=y.value,y.adIntroRenderer){y=Cqa(a,y.adIntroRenderer,f);if(y instanceof jI){n=y;break a}y=y(m);r.push(y.HQ);t=[].concat(g.la(y.TH),g.la(t));w=[].concat(g.la(y.SH),
g.la(w))}else if(y.instreamVideoAdRenderer){y=FQ(y.instreamVideoAdRenderer);if(y instanceof cQ){n=new jI(y);break a}var D=Dqa(y.playerVars,e,l),E=new II(p,n),H=f(m),N=h.get(y.Du.externalVideoId);E=Eqa(a,"adapter",y.Du,b,D,y.Wq,d,E,H,N);y={layoutId:E.layoutId,layoutType:E.layoutType,Rc:E.Rc,Ld:[],kd:[],jd:[],Md:[],ab:E.ab,xa:E.xa,sd:E.sd,adLayoutLoggingData:E.adLayoutLoggingData};D=E.kd;E=E.jd;p++;r.push(y);t=[].concat(g.la(D),g.la(t));w=[].concat(g.la(E),g.la(w))}else{n=new jI("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}n={JQ:r,kd:t,jd:w}}}r=n;r instanceof jI?m=r:(t=m.slotId,n=r.JQ,p=r.kd,r=r.jd,m=f(m),t=wQ(a.Ua.get(),"layout_type_composite_player_bytes",t),w={layoutId:t,layoutType:"layout_type_composite_player_bytes",ab:"core"},m={layoutId:t,layoutType:"layout_type_composite_player_bytes",Rc:new Map,Ld:[new AQ(a.u,t)],kd:p,jd:r,Md:[],ab:"core",xa:new PP([new RH(n)]),sd:m(w)});return m}};
GQ=function(a,b,c,d,e,f){this.bb=a;this.xb=b;this.Ya=c;this.u=d;this.Yh=e;this.loadPolicy=void 0===f?1:f};
vH=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,D,E,H=[];if(0===b.length)return H;b=b.filter(iI);for(var N=new Map,J=new Map,Ja=g.q(b),wa=Ja.next();!wa.done;wa=Ja.next())(wa=wa.value.renderer.remoteSlotsRenderer)&&wa.hostElementId&&J.set(wa.hostElementId,wa);Ja=g.q(b);for(wa=Ja.next();!wa.done;wa=Ja.next()){wa=wa.value;var Xa=Jqa(a,N,wa,d,e,f,h,J);Xa instanceof jI?sI(Xa,void 0,void 0,{renderer:wa.renderer,config:wa.config.adPlacementConfig,kind:wa.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
H.push.apply(H,g.la(Xa))}if(null===a.u||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),H.length||a||sI("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(w=b[0])||void 0===w?void 0:w.renderer}),H;c=c.filter(iI);H.push.apply(H,g.la(fqa(N,c,a.bb.get(),a.u,d)));H.length||sI("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(D=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===D?void 0:D.kind,renderer:null===(E=b[0])||
void 0===E?void 0:E.renderer});return H};
Jqa=function(a,b,c,d,e,f,h,l){function m(w){return UP(a.Ya.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)vQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.xb.get(),H=n.actionCompanionAdRenderer,N=UP(a.Ya.get(),w);return HQ(E,w.slotId,"layout_type_companion_with_action_button",new yH(H),x,y,D,H.impressionPings,H.impressionCommands,N,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)vQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.xb.get(),H=n.imageCompanionAdRenderer,N=UP(a.Ya.get(),w);return HQ(E,w.slotId,"layout_type_companion_with_image",new CH(H),x,y,D,H.impressionPings,H.impressionCommands,N,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)vQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.xb.get(),H=n.shoppingCompanionCarouselRenderer,N=UP(a.Ya.get(),w);return HQ(E,w.slotId,"layout_type_companion_with_shopping",new DH(H),x,y,D,H.impressionPings,H.impressionEndpoints,N,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!mI(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Yh)return new jI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");Kqa(a.Yh,{adPlacementRenderer:c,contentCpn:d,DA:e});return[]}return Yma(a.bb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return zqa(a.bb.get(),a.xb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return Bqa(a.bb.get(),
a.xb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return sqa(a.bb.get(),a.xb.get(),c,d,m);uQ(b,n,r);return Iqa(a.bb.get(),a.xb.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return uQ(b,n,r),Gqa(a.bb.get(),a.xb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
IQ=function(a){g.B.call(this);this.u=a};
sH=function(a,b,c,d){a.u().Cg(b,d);c=c();a=a.u();JQ(a.Ab,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;pK(d.Ab,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.rc(c.slotId))throw new jI("Slot ID was empty");if(aQ(e,c))throw new jI("Duplicate registration for slot.");if(!e.Mc.ej.has(c.Xa))throw new jI("No fulfillment adapter factory registered for slot of type: "+c.Xa);if(!e.Mc.Gj.has(c.Xa))throw new jI("No SlotAdapterFactory registered for slot of type: "+
c.Xa);rQ(e,5,c.Nb?[c.Nb]:[]);rQ(e,4,c.te);rQ(e,3,c.gf);var f=d.u,h=c.Xa+"_"+c.feedPosition,l=kQ(f,h);if(aQ(f,c))throw new jI("Duplicate slots not supported");l.set(c.slotId,new pQ(c));f.u.set(h,l)}catch(ae){sI(ae,c,void 0,void 0,ae.Xk);break a}d.u.Dm(c);try{var m=d.u,n=aQ(m,c),p=c.Nb,r=m.Mc.mg.get(p.triggerType);r&&(r.Ig(5,p,c,null),n.X.set(p.triggerId,r));for(var t=g.q(c.te),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Mc.mg.get(x.triggerType);y&&(y.Ig(4,x,c,null),n.P.set(x.triggerId,y))}for(var D=
g.q(c.gf),E=D.next();!E.done;E=D.next()){var H=E.value,N=m.Mc.mg.get(H.triggerType);N&&(N.Ig(3,H,c,null),n.N.set(H.triggerId,N))}var J=m.Mc.ej.get(c.Xa).get(),Ja=m.C,wa=c;var Xa=KQ(wa,{Xe:["metadata_type_fulfilled_layout"]})?new LQ(Ja,wa):J.u(Ja,wa);n.G=Xa;var Kb=m.Mc.Gj.get(c.Xa).get().u(m.F,c);Kb.init();n.B=Kb}catch(ae){sI(ae,c,void 0,void 0,ae.Xk);YP(d,c,!0);break a}pK(d.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.jg(c);wa=g.q(d.B);for(var eb=wa.next();!eb.done;eb=wa.next())eb.value.jg(c);
gQ(d,c)}};
MQ=function(a,b,c,d){g.B.call(this);var e=this;this.ob=a;this.bb=b;this.wb=c;this.u=new Map;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(e)})};
Vma=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.te),f=e.next();!f.done;f=e.next())f=f.value,f instanceof pI?(c=Math.min(c,f.B.start),d=Math.max(d,f.B.end)):sI("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Pn(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.wb.get().addCueRange(d,c.start,c.end,!1,a)};
NQ=function(){g.B.apply(this,arguments);this.ki=!0;this.u=new Map;this.B=new Map};
OO=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}sI("Trying to retrieve an unknown layout")};
OQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
PQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;a.B.set(b,c+1);return b+"_"+c}return Fs()};
wQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;a.u.set(b,d+1);return c+"_"+b+"_"+d}return Fs()};
QQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;a.C.set(b,c+1);return b+"_"+c}return Fs()};
Lqa=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)};
EQ=function(a,b){this.C=b;this.triggerType="trigger_type_layout_exited_for_reason";this.triggerId=a(this.triggerType)};
xQ=function(a,b){this.C=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)};
Mqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
RQ=function(a,b){this.C=b;this.Xa="slot_type_player_bytes";this.layoutType="layout_type_media";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)};
SQ=function(a,b){this.C=b;this.Xa="slot_type_in_player";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)};
AQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)};
Nqa=function(a,b){this.opportunityType="opportunity_type_ad_break_service_response_received";this.associatedSlotId=b;this.triggerType="trigger_type_on_opportunity_received";this.triggerId=a(this.triggerType)};
oqa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)};
yQ=function(a,b){this.B=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)};
zQ=function(a,b){this.B=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)};
DQ=function(a,b){this.durationMs=45E3;this.layoutId=b;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)};
Oqa=function(a,b,c,d,e,f){a=c.WB?c.WB:wQ(f,"layout_type_media_layout_player_overlay",a);var h={layoutId:a,layoutType:"layout_type_media_layout_player_overlay",ab:b};return{layoutId:a,layoutType:"layout_type_media_layout_player_overlay",Rc:new Map,Ld:[new xQ(function(l){return QQ(f,l)},c.Zy)],
kd:[],jd:[],Md:[],ab:b,xa:d,sd:e(h),adLayoutLoggingData:c.adLayoutLoggingData}};
TQ=function(a,b){var c=this;this.ya=a;this.Ua=b;this.u=function(d){return QQ(c.Ua.get(),d)}};
UQ=function(a,b,c,d,e){return Oqa(b,c,d,new PP([new NH(d.Zy),new KH(d.instreamAdPlayerOverlayRenderer),new PH(d.XP),new GH(d.adPlacementConfig),new TH(d.videoLengthSeconds),new fI(d.JJ)]),e,a.Ua.get())};
HQ=function(a,b,c,d,e,f,h,l,m,n,p){b=wQ(a.Ua.get(),c,b);var r={layoutId:b,layoutType:c,ab:"core"},t=new Map;l?t.set("impression",l):m&&sI("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":m.length,adPlacementKind:h.kind,companionType:d.u()});return{layoutId:b,layoutType:c,Rc:t,Ld:[new AQ(a.u,b),new RQ(a.u,f)],kd:[],jd:[],Md:[],ab:"core",xa:new PP([d,new IH(e),new GH(h)]),sd:n(r),adLayoutLoggingData:p}};
CQ=function(a,b,c){var d=[];d.push(new SQ(a.u,c));g.R(a.ya.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
BQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,ab:"core"};return{layoutId:b,layoutType:c,Rc:new Map,Ld:h,kd:[new Lqa(a.u,b)],jd:[],Md:[],ab:"core",xa:new PP([new BH(d),new GH(e)]),sd:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
Eqa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"layout_type_media",ab:b};d=[new GH(d),new HH(l),new IH(c.externalVideoId),new JH(h),new KH(c.playerOverlay.instreamAdPlayerOverlayRenderer),new hI({impressionCommands:c.impressionCommands,onAbandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,adVideoProgressCommands:c.adVideoProgressCommands}),new UH(e),new QH({current:null}),new TH(f)];e=wQ(a.Ua.get(),"layout_type_media_layout_player_overlay",PQ(a.Ua.get(),
"slot_type_in_player"));d.push(new OH(e));c.adNextParams&&d.push(new zH(c.adNextParams));c.clickthroughEndpoint&&d.push(new AH(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new gI(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new VH(c.sodarExtensionData));n&&d.push(new eI(n));return{layoutId:p,layoutType:"layout_type_media",Rc:JI(c.pings),Ld:[new AQ(a.u,p)],kd:c.skipOffsetMilliseconds?[new yQ(a.u,e)]:[],jd:[new yQ(a.u,e)],Md:[],ab:b,xa:new PP(d),sd:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
uqa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return OP(p,[],["layout_type_media"])})||sI("Unexpect subLayout type for DAI composite layout");
b=wQ(a.Ua.get(),"layout_type_composite_player_bytes",b);var n={layoutId:b,layoutType:"layout_type_composite_player_bytes",ab:"core"};return{layoutId:b,layoutType:"layout_type_composite_player_bytes",Rc:f,Ld:[new Mqa(a.u)],kd:[],jd:[],Md:[],ab:"core",xa:new PP([new WH(c),new XH(m),new RH(d),new GH(e),new aI(h)]),sd:l(n)}};
xqa=function(a){return null!=a};
VQ=function(a,b,c){this.B=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)};
WQ=function(a,b,c){this.layoutId=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)};
Pqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
XQ=function(a,b,c){this.C=b;this.B=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)};
YQ=function(a,b){this.B=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)};
ZQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)};
$Q=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)};
aR=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)};
bR=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)};
cR=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)};
dR=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)};
eR=function(a){var b=this;this.Ua=a;this.u=function(c){return QQ(b.Ua.get(),c)}};
lI=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=PQ(a.Ua.get(),"slot_type_ad_break_request"),l=[];d.Nm&&d.Nm.start!==d.Gg.start&&l.push(new pI(a.u,c,new Pn(d.Nm.start,d.Gg.start),!1));l.push(new pI(a.u,c,new Pn(d.Gg.start,d.Gg.end),d.Xt));d={getAdBreakUrl:b.getAdBreakUrl,rF:d.Gg.start,qF:d.Gg.end};b=new cR(a.u,h);f=[new cI(d)].concat(g.la(f));return{slotId:h,Xa:"slot_type_ad_break_request",feedPosition:1,Nb:b,te:l,gf:[new YQ(a.u,c),new aR(a.u,h),new bR(a.u,h)],ab:"core",xa:new PP(f),adSlotLoggingData:e}};
Rqa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(Qqa(a,b,e.value));return d};
Qqa=function(a,b,c){return null!=c.u&&c.u===a?c.clone(b):c};
Sqa=function(a,b,c,d){var e=PQ(a.Ua.get(),"slot_type_in_player");c=new oI(a.u,c);var f={slotId:e,Xa:"slot_type_in_player",feedPosition:1,ab:"core",Nb:c};return{slotId:e,Xa:"slot_type_in_player",feedPosition:1,Nb:c,te:[new $Q(a.u,e)],gf:[new YQ(a.u,b),new aR(a.u,e)],ab:"core",xa:new PP([new bI(d(f))])}};
Aqa=function(a,b,c,d,e,f){var h=fR(a,b,c,d);if(h instanceof jI)return h;h instanceof pI&&(h=new pI(a.u,h.D,h.B,h.visible,h.C,!0));d=h instanceof pI?new XQ(a.u,c,h.B):null;b=PQ(a.Ua.get(),"slot_type_in_player");f=f({slotId:b,Xa:"slot_type_in_player",feedPosition:1,ab:"core",Nb:h},d);return f instanceof cQ?new jI(f):{slotId:b,Xa:"slot_type_in_player",feedPosition:1,Nb:h,te:[new $Q(a.u,b)],gf:[new YQ(a.u,c),new aR(a.u,b)],ab:"core",xa:new PP([new bI(f)]),adSlotLoggingData:e}};
nqa=function(a,b,c,d){var e=PQ(a.Ua.get(),"slot_type_in_player");c=new oI(a.u,c);var f={slotId:e,Xa:"slot_type_in_player",feedPosition:1,ab:"core",Nb:c};return{slotId:e,Xa:"slot_type_in_player",feedPosition:1,Nb:c,te:[new $Q(a.u,e)],gf:[new YQ(a.u,b),new aR(a.u,e)],ab:"core",xa:new PP([new bI(d(f))])}};
jqa=function(a,b,c,d,e){var f=PQ(a.Ua.get(),"slot_type_in_player");c=new WQ(a.u,d,c);d={slotId:f,Xa:"slot_type_in_player",feedPosition:1,ab:"core",Nb:c};return{slotId:f,Xa:"slot_type_in_player",feedPosition:1,Nb:c,te:[new $Q(a.u,f)],gf:[new YQ(a.u,b)],ab:"core",xa:new PP([new bI(e(d))])}};
eqa=function(a,b,c,d,e,f){var h=PQ(a.Ua.get(),b);return Tqa(a,h,b,new oI(a.u,d),c,e,f)};
dqa=function(a,b,c,d,e,f){return Tqa(a,c,b,new ZQ(a.u,c),d,e,f)};
qqa=function(a,b,c){var d=PQ(a.Ua.get(),"slot_type_player_bytes"),e=new Pqa(a.u),f={slotId:d,Xa:"slot_type_player_bytes",feedPosition:1,ab:"core",Nb:e};return{slotId:d,Xa:"slot_type_player_bytes",feedPosition:1,Nb:e,te:[new dR(a.u,d)],gf:[new YQ(a.u,b)],ab:"core",xa:new PP([new bI(c(f)),new ZH({})])}};
Fqa=function(a,b,c,d,e,f){var h=PQ(a.Ua.get(),"slot_type_player_bytes");b=fR(a,b,c,d);if(b instanceof jI)return b;f=f({slotId:h,Xa:"slot_type_player_bytes",feedPosition:1,ab:"core",Nb:b});return f instanceof jI?f:{slotId:h,Xa:"slot_type_player_bytes",feedPosition:1,Nb:b,te:[new $Q(a.u,h)],gf:[new aR(a.u,h),new YQ(a.u,c)],ab:"core",xa:new PP([new bI(f)]),adSlotLoggingData:e}};
yqa=function(a,b,c,d,e,f){var h=PQ(a.Ua.get(),"slot_type_forecasting");b=fR(a,b,c,d);if(b instanceof jI)return b;d={slotId:h,Xa:"slot_type_forecasting",feedPosition:1,ab:"core",Nb:b};return{slotId:h,Xa:"slot_type_forecasting",feedPosition:1,Nb:b,te:[new $Q(a.u,h)],gf:[new aR(a.u,h),new YQ(a.u,c)],ab:"core",xa:new PP([new bI(f(d))]),adSlotLoggingData:e}};
fR=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new wH(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=kI(b,d);if(b instanceof jI)return b;b=b.Gg;return new pI(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new VQ(a.u,c,e);default:return new jI("Cannot construct entry trigger",{kind:b.kind})}};
Tqa=function(a,b,c,d,e,f,h){var l={slotId:b,Xa:c,feedPosition:1,ab:"core",Nb:d};return{slotId:b,Xa:c,feedPosition:1,Nb:d,te:[new $Q(a.u,b)],gf:[new YQ(a.u,e),new aR(a.u,b)],ab:"core",xa:new PP([new bI(h(l))]),adSlotLoggingData:f}};
gR=function(a,b,c){g.B.call(this);this.ya=a;this.u=b;this.Ba=c;this.eventCount=0};
pK=function(a,b,c){JQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
bQ=function(a,b,c,d){JQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
Ppa=function(a,b,c,d){g.R(a.ya.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&JQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c)};
JQ=function(a,b,c,d,e,f,h,l,m,n){if(g.R(a.ya.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.R(a.ya.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=TP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.Q(a.ya.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:uH(a.Ba.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=uH(a.Ba.get(),1).Ag;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=SP(p,f));h&&(a.layoutData=Gpa(p,h));l&&(f={type:RP.get(l.trigger.triggerType)||"TRIGGER_TYPE_UNSPECIFIED",category:Uqa.get(l.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},a.triggerData=f);c&&(a.opportunityData=Ipa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Dq("adsClientStateChange",{adsClientEvent:b})}};
hR=function(){this.u=new Map};
iR=function(a,b,c,d,e){g.B.call(this);this.C=b;this.oa=c;this.ya=d;this.Hd=e;this.listeners=[];var f=new g.rs(this);g.C(this,f);f.R(a,"internalAbandon",this.B);g.dg(this,function(){g.us(f)})};
Vqa=function(a,b,c,d,e,f,h){var l;if(""===b)sI("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.u=b;a.oa.get().vi(b,c,d,e,f,h);null===(l=a.Hd)||void 0===l?void 0:l.get().vi(b,c,d,e,f,h);a.C.vi(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.vi(b,c,d,e,f,h)}};
Wqa=function(a,b){a.u=void 0;for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())d.value.Ql(b)};
jR=function(a){g.B.call(this);this.J=a;this.u=new Map;this.B=new g.rs(this);g.C(this,this.B);this.B.R(this.J,g.WD("ad"),this.C,this);this.B.R(this.J,g.XD("ad"),this.D,this)};
Xqa=function(a,b,c,d,e){g.TD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
kR=function(a){this.J=a};
lR=function(a){return g.R(a.J.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
mR=function(a){var b=g.KC(a.J.T())||a.J.T().u||g.OC(a.J.T())||PC(a.J.T())||BC(a.J.T()),c=NC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");a=g.zC(a.J.T())&&!g.MC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||c||a};
OM=function(a){return g.R(a.J.T().experiments,"html5_pacf_enable_dai")};
VM=function(a){return g.R(a.J.T().experiments,"html5_handle_preroll_lock_in_pacf")};
Yqa=function(a){return g.R(a.J.T().experiments,"html5_recognize_predict_start_cue_point")};
Zqa=function(a){return g.R(a.J.T().experiments,"drop_overlay_ads_on_cba_violation")};
nR=function(a,b){this.oa=a;this.J=b;this.u=new Map;HI().subscribe("adactiveviewmeasurable",this.C,this);HI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);HI().subscribe("adviewableimpression",this.D,this)};
$qa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?sI("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),dna(HI(),b,{To:function(){return{currentTime:lQ(a.oa.get(),2,!1),duration:c,Kb:2===a.oa.get().getPresentingPlayerType()&&1===oR(a.oa.get(),2),Y3:!1,Z3:!0,volume:a.oa.get().isMuted()?0:a.oa.get().getVolume()/100}}}))};
ara=function(a,b){a.u.has(b)?(a.u["delete"](b),delete HI().u[b]):sI("Unexpected unregistration of layout in LidarApi")};
Woa=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.R(a.J.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Hl(b,a),{};c=nJ(c);if(null===c)return{};var d=a.J.Vb();d=d&&2===d.getPlayerType()&&DJ(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.oa.get().isFullscreen()};return Gl(c,b,a)};
pR=function(a,b){this.u=a;this.C=b};
qR=function(a,b,c,d){var e=void 0===e?new pR(function(){var f=a.getVideoData(1);return f?f.Ze():""},function(){return a.T().pageId}):e;
this.J=a;this.td=b;this.fb=c;this.Ba=d;this.po=e;this.B=null;this.u=new Map;this.Ah=new gJ(e)};
bra=function(a,b,c,d){d=void 0===d?[]:d;(c=OO(a.td.get(),c))?(c=KO(a,Xoa(c),c),b.hasOwnProperty("baseUrl")?a.po.send(b,c):a.Ah.send(b,c,{},d)):sI("Trying to ping from an unknown layout")};
rR=function(a){if(a=a.J.Vb())if(a=cra(a.G))return a;return function(){}};
sR=function(a,b){a.u.has(b.Vo())?sI("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.Vo(),b)};
tR=function(a,b){a.u["delete"](b.Vo())||sI("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Xoa=function(a){var b=uI(a.xa,"metadata_type_ad_placement_config");a=uI(a.xa,"metadata_type_sub_layout_index");return{adPlacementConfig:b,FC:a}};
KO=function(a,b,c){var d=c?dra(a):{};c=c?era(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZI(a.J)),lna(b.adPlacementConfig)),(e.SLOT_POS=YI(function(){return(b.FC||0).toString()}),e)),c),d),(f.FINAL=YI(function(){return"1"}),f.AD_CPN=YI(function(){var l;
return(null===(l=uH(a.Ba.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(fra));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
dra=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=YI(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=YI(function(){return Math.round(Date.now()/1E3).toString()});
return c};
era=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.hw();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Ou.toString(),d.ERRORCODE=c.Jq.toString(),d.ERROR_MSG=c.errorMessage,d};
g.uR=function(){g.rs.apply(this,arguments)};
vR=function(a,b){g.B.call(this);this.J=a;this.Ec=b;this.listeners=[];var c=new g.uR(this);g.C(this,c);c.R(a,"videodatachange",this.xP);this.u=uH(this);this.contentCpn=uH(this,1).clientPlaybackNonce};
uH=function(a,b){var c=a.J.getVideoData(b);return c?a.dr(c):null};
wR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=function(){sI("Called 'doUnlockPreroll' before it's initialized.")};
var b=new g.rs(this);g.C(this,b);b.R(a,"progresssync",this.yO);b.R(a,"presentingplayerstatechange",this.pO);b.R(a,"fullscreentoggled",this.gK);b.R(a,"onVolumeChange",this.hK);b.R(a,"minimized",this.Ai);b.R(a,"resize",this.Sa)};
lQ=function(a,b,c){return a.J.getCurrentTime(b,c)};
oR=function(a,b){return g.AJ(a.J,b)};
gra=function(a){var b=g.fH(a.J).getPlayerSize();a=a.J.fi(!0,!0);return b.height-(a.height+a.top)};
hra=function(a,b){var c=a.J.T();pC(c)||"3"!==c.controlsType||lJ(g.fH(a.J),b)};
ira=function(a,b,c){g.B.call(this);var d=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(d.ya,d.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(d.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Ya=X(function(){return new VP(d.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(d.bb,d.xb,d.Ya,null,null)});
g.C(this,this.hc);this.Ba=X(function(){return new vR(b,d.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.fb=X(function(){return new nR(d.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,d.Cb,d.fb,d.Ba)});
g.C(this,this.Da);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var e=new iR(b,this.Gb,this.oa,this.ya);this.Bd=X(function(){return e});
this.Aj=e;this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.Mc={cm:new Map,ej:new Map,mg:new Map,Gj:new Map,rj:new Map};this.listeners=[];this.qe={Ib:this.Ib,Wk:null,tj:null,Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:null,uh:{hp:function(){}},
dg:this.Cb.get()}};
xR=function(a){this.u=a};
yR=function(){};
jra=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Te(b.siub,b.scs,b.bgub,b.bgp)};
kra=function(a,b,c,d,e){this.callback=a;this.slot=b;this.xb=c;this.Ya=d;this.ya=e;this.u=null};
lra=function(a,b,c){a.u&&sI("Currently active request ongoing for slot. This should never happen",a.slot);a.u=b();a.u.then(function(d){a.u=null;c&&c(d);var e;if(e=lR(a.ya.get()))if(e=!d.om)a:{e=g.q(a.slot.te);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof wH){e=!0;break a}e=!1}if(e)for(e=g.q(d.Pg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&sI("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.om?"layout_type_throttled_ad_break_response":"layout_type_ad_break_response";f=a.xb.get();var h=a.slot.slotId,l=UP(a.Ya.get(),{slotId:a.slot.slotId,Xa:a.slot.Xa,feedPosition:a.slot.feedPosition,ab:a.slot.ab,Nb:a.slot.Nb}),m=wQ(f.Ua.get(),e,h),n={layoutId:m,layoutType:e,ab:"core"};d={layoutId:m,layoutType:e,Rc:new Map,Ld:[new Nqa(f.u,h)],kd:[],jd:[],Md:[],ab:"core",xa:new PP([new dI(d)]),sd:l(n)};Lpa(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Qm||ZP(a.callback,a.slot,new jI(d,void 0,!0))})};
mra=function(a){if(null==a.u)Npa(a.callback,a.slot);else try{a.u.cancel(),a.u=null,Npa(a.callback,a.slot)}catch(b){a.u=null,ZP(a.callback,a.slot,new jI(b))}};
zR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Sc=c;this.B=new kra(a,b,d,e,f)};
AR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Sc=c;this.B=new kra(a,b,d,e,f)};
LQ=function(a,b){this.callback=a;this.slot=b};
KQ=function(a,b){return pH(a,b.Xe,b.Xa)?!0:!1};
nra=function(){};
BR=function(a,b,c,d){this.Sc=a;this.xb=b;this.Ya=c;this.ya=d};
CR=function(){};
ora=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
DR=function(a,b){return OP(a,b.Xe,b.lh)?!0:!1};
ER=function(a){this.B=a};
pra=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.u=e;a=uI(this.layout.xa,"metadata_type_ad_placement_config");this.Fa=new IO(c.Rc,this.Da,a,c.layoutId)};
qra=function(){var a=["metadata_type_client_forecasting_ad_renderer"];JO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["layout_type_forecasting"]}};
FR=function(a,b,c){this.Da=a;this.B=b;this.fb=c};
GR=function(a,b,c,d){g.P.call(this);this.callback=a;this.slot=b;this.layout=c;this.B=d;this.Lj=[]};
HR=function(a,b,c,d,e,f,h){e=uI(c.xa,e);a=LO(a);var l=fb(function(){d.Nd(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.sd},function(){l()}))};
JR=function(a,b,c,d,e,f,h,l){if(b===a){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"slot_type_player_bytes"===b.Xa&&IR(f,c.get(b))){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():sI("Tried to call engagePingCallback but it is null",h,l)}};
IR=function(a,b){return OP(b,["metadata_type_ad_video_id"],["layout_type_media"])&&a===uI(b.xa,"metadata_type_ad_video_id")?!0:!1};
KR=function(a,b,c,d,e,f,h,l){GR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.ki=!0;this.Wg=null;this.qo="action-companion";this.Vk=uI(c.xa,"metadata_type_ad_video_id");XP(this.Qd(),this);a=uI(c.xa,"metadata_type_ad_placement_config");this.Fa=new IO(c.Rc,this.Da,a,c.layoutId)};
rra=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];JO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["layout_type_companion_with_action_button"]}};
LR=function(a,b,c,d,e,f,h){GR.call(this,a,b,c,d);this.oa=e;this.Da=f;this.td=h;this.u=!1;this.C=uI(this.layout.xa,"metadata_type_linked_player_bytes_layout_id")};
sra=function(){return{Xe:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],lh:["layout_type_media_layout_player_overlay"]}};
MR=function(a,b,c,d,e,f,h){return DR(c,sra())?new LR(a,b,c,d,e,f,h):null};
NR=function(a,b,c,d){this.Ob=a;this.oa=b;this.Da=c;this.td=d};
OR=function(a){return!a.zj.Kb()&&a.state.Kb()};
PR=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
SR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){g.B.call(this);var E=this;this.callback=a;this.slot=b;this.layout=c;this.Qd=d;this.Da=f;this.fb=h;this.bd=l;this.Wc=m;this.Ba=n;this.oa=p;this.wb=r;this.Ic=t;this.oc=w;this.fd=x;this.Yb=y;this.ld=D;this.ki=!0;this.adCpn="";this.D=!1;this.u="not_rendering";a=uI(this.layout.xa,"metadata_type_ad_placement_config");this.Fa=new IO(c.Rc,this.Da,a,c.layoutId);this.B=new g.G(function(){QR(E,"load_timeout",new cQ("Media layout load timeout."))},1E4);
this.F=fb(function(){"rendering_stop_requested"!==E.u&&RR(e,c.layoutId);E.C?E.callback.Xd(E.slot,E.layout,E.C):sI("Received layout exit signal when not in layout exit flow.",E.slot,E.layout)})};
tra=function(){for(var a=["metadata_type_ad_video_id","metadata_type_player_vars","metadata_type_player_bytes_callback_ref","metadata_type_instream_video_ad_commands","metadata_type_video_length_seconds"],b=g.q(JO()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Xe:a,lh:["layout_type_media"]}};
QR=function(a,b,c){a.G={Ou:3,Jq:"load_timeout"===b?402:400,errorMessage:c.message};eQ(a.callback,a.slot,a.layout,c)};
ura=function(a,b,c){c=void 0===c?!1:c;var d=a.Fa,e=1E3*b,f=c;for(f=void 0===f?!1:f;d.B<d.C.length;){var h=d.C[d.B];if(h.offsetMilliseconds<=e||f)Voa(d,"progress",[h]),d.B++;else break}d=uI(a.layout.xa,"metadata_type_video_length_seconds");(b>=.25*d||c)&&NO(a.Fa,"first_quartile");(b>=.5*d||c)&&NO(a.Fa,"midpoint");(b>=.75*d||c)&&NO(a.Fa,"third_quartile")};
vra=function(a,b){yL(a.Ic.get(),uI(a.layout.xa,"metadata_type_ad_placement_config").kind,b,1,1,!1)};
TR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.Qd=a;this.B=b;this.Da=c;this.fb=d;this.bd=e;this.Wc=f;this.Ba=h;this.oa=l;this.wb=m;this.Ic=n;this.oc=p;this.fd=r;this.Yb=t;this.ld=w};
UR=function(a,b,c,d,e,f,h,l){g.B.call(this);this.B=a;this.u=b;this.C=c;this.ob=d;this.bb=e;this.Ya=f;this.ya=h;this.Ba=l;this.ki=!0};
wra=function(a){var b;return mR(a.ya.get())||(null===(b=uH(a.Ba.get()))||void 0===b?0:b.daiEnabled)&&OM(a.ya.get())?!0:!1};
VR=function(a){var b,c=null===(b=uI(a.xa,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=uI(a.xa,"metadata_type_content_cpn"),f=uI(a.xa,"metadata_type_instream_ad_player_overlay_renderer"),h=uI(a.xa,"metadata_type_ad_placement_config"),l=uI(a.xa,"metadata_type_video_length_seconds");var m=a.xa.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?uI(a.xa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.xa.u.has("metadata_type_layout_enter_ms")&&a.xa.u.has("metadata_type_layout_exit_ms")?
(uI(a.xa,"metadata_type_layout_exit_ms")-uI(a.xa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Zy:d,contentCpn:e,XP:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,JJ:m,adLayoutLoggingData:a.adLayoutLoggingData,WB:uI(a.xa,"metadata_type_linked_in_player_layout_id")}}else a=null;return a};
xra=function(a,b){this.callback=a;this.slot=b};
WR=function(){};
yra=function(a,b,c){this.callback=a;this.slot=b;this.oa=c};
zra=function(a,b,c){this.callback=a;this.slot=b;this.oa=c;this.u=!1};
Ara=function(a){a.u&&(a.oa.get().u(),a.u=!1)};
YR=function(a){this.oa=a};
ZR=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
$R=function(a){g.B.call(this);this.sx=a;this.kb=new Map};
aS=function(a,b){$R.call(this,a);var c=this;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
bS=function(a){g.B.call(this);this.u=a;this.ki=!0;this.kb=new Map;this.F=new Set;this.C=new Set;this.D=new Set;this.G=new Set;this.B=new Set};
cS=function(a,b){g.B.call(this);var c=this;this.u=a;this.kb=new Map;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
Bra=function(a,b,c){var d=[];a=g.q(a.values());for(var e=a.next();!e.done;e=a.next())e=e.value,e.trigger instanceof YQ&&e.trigger.B===b===c&&d.push(e);return d};
Cra=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof wH&&e.trigger.B===b&&c.push(e);return c};
dS=function(a,b,c,d){g.B.call(this);var e=this;this.C=a;this.wb=b;this.oa=c;this.Ba=d;this.kb=new Map;this.u=new Set;this.B=new Set;c.get().addListener(this);g.dg(this,function(){c.get().removeListener(e)})};
eS=function(a,b,c,d,e,f,h,l,m,n){if(uH(a.Ba.get(),1).clientPlaybackNonce!==m)throw new jI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.kb.set(c.triggerId,{bundle:new ZR(b,c,d,e),Hm:f});a.wb.get().addCueRange(f,h,l,n,a)};
Dra=function(a,b){for(var c=g.q(a.kb.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.Hm)return d}return""};
fS=function(a){g.B.call(this);this.C=a;this.ki=!0;this.kb=new Map;this.B=this.u=null};
RR=function(a,b){for(var c=[],d=g.q(a.kb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof AQ){var f;if(f=e.trigger.layoutId===b)f=(f=Qpa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&hQ(a.C(),c)};
gS=function(a){g.B.call(this);this.u=a;this.ki=!0;this.kb=new Map};
hS=function(a,b,c,d,e,f){g.B.call(this);this.C=a;this.ud=b;this.Ya=c;this.Ba=d;this.ya=e;this.Ua=f;this.u=this.B=null;this.ud.get().addListener(this)};
iS=function(a,b){this.Vu=a;this.ya=b};
Era=function(a,b){if(!a)return{Pg:[],om:!0};a.trackingParams&&cM(aM(),a.trackingParams);if(a.adThrottled)return{Pg:[],om:!0};var c=a.playerAds;if(!c||!c.length)return{Pg:[],om:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Pg:[],om:!1};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{Pg:c,
om:!1}};
jS=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=new g.rs(this);g.C(this,this.u);this.u.R(this.J,"aduxclicked",this.onAdUxClicked);this.u.R(this.J,"aduxmouseover",this.fK);this.u.R(this.J,"aduxmouseout",this.eK);this.u.R(this.J,"muteadaccepted",this.pM)};
Fra=function(a,b,c){b=g.Pc(b,function(d){return new BI(d,c,d.id)});
a.J.va("onAdUxUpdate",b)};
kS=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
lS=function(a){this.J=a};
mS=function(a){this.J=a};
nS=function(a){this.J=a};
oS=function(){this.listeners=[]};
Gra=function(a){this.J=a};
Hra=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ba=d;this.Of=e;this.Hd=f;this.oa=h;this.Fa=l;this.Da=m;this.B=n;this.u=null;this.driftRecoveryMs=uI(c.xa,"metadata_type_drift_recovery_ms")||null};
Jra=function(a,b){var c=Ira(a,b);a.u={Th:c};c&&c.startRendering()};
Lra=function(a){var b=uI(a.layout.xa,"metadata_type_layout_enter_ms"),c=uI(a.layout.xa,"metadata_type_layout_exit_ms");a=Kra(a.Hd.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
Ira=function(a,b){return null==b?null:a.B.find(function(c){return c.layout.layoutId===b})||null};
pS=function(a,b){var c;a.Da.get();var d={driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Ba.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.sd.adClientDataEntry},b)};g.Dq("adsClientStateChange",d)};
Mra=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.Of=d;this.Fa=e;this.oa=f;this.Ec=h;this.fb=l;this.bd=m;this.X=!0;this.u=null};
Nra=function(a,b,c,d){var e=uI(a.layout.xa,"metadata_type_video_length_seconds");0>=e||0>=c||g.U(b,16)||g.U(b,32)||(PR(c,.25*e,d)&&NO(a.Fa,"first_quartile"),PR(c,.5*e,d)&&NO(a.Fa,"midpoint"),PR(c,.75*e,d)&&NO(a.Fa,"third_quartile"))};
Ora=function(a){return Object.assign(Object.assign({},qS(a)),{adPlacementConfig:uI(a.xa,"metadata_type_ad_placement_config"),subLayouts:uI(a.xa,"metadata_type_sub_layouts").map(qS)})};
qS=function(a){return{enterMs:uI(a.xa,"metadata_type_layout_enter_ms"),exitMs:uI(a.xa,"metadata_type_layout_exit_ms")}};
rS=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,D){this.Qd=a;this.B=b;this.Ba=c;this.Of=d;this.oa=e;this.Da=f;this.Ec=h;this.Hd=l;this.fb=m;this.bd=n;this.Wc=p;this.wb=r;this.Ic=t;this.oc=w;this.fd=x;this.Yb=y;this.ld=D};
sS=function(a,b,c,d,e,f){g.B.call(this);var h=this;this.ob=a;this.bb=b;this.Ba=c;this.Hd=e;this.oa=f;this.u=null;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(h)});
e.get().addListener(this);g.dg(this,function(){e.get().removeListener(h)})};
Kqa=function(a,b){if(uH(a.Ba.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)sI("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.Hd.get().u),d=c.next();!d.done;d=c.next())Pra(a,a.u,d.value)}};
Pra=function(a,b,c){var d=lQ(a.oa.get(),1,!1);sH(a.ob.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.bb.get();var f=1E3*c.startSecs;f={Gg:new Pn(f,f+1E3*c.durationSecs),Xt:!1};var h=c.startSecs+c.durationSecs;f.Nm=c.startSecs<=d?new Pn(1E3*(c.startSecs-4),1E3*h):new Pn(1E3*Math.floor(d+Math.random()*Math.max(0,c.startSecs-d-10)),1E3*h);return[lI(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,f,b.adPlacementRenderer.adSlotLoggingData,[new SH(c)])]})};
tS=function(a,b){var c;g.B.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
Qra=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};
uS=function(a,b,c,d){g.B.call(this);this.J=a;this.Ba=b;this.ya=c;this.Da=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new kL(this,Yqa(c.get()));this.C=new lL;Rra(this)};
Kra=function(a,b,c){return mL(a.C,b,c)};
Rra=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.Mx,a);a.B.clear();a.u.length=0;c=(null===(b=c.ma)||void 0===b?void 0:qA(b,0))||[];a.Mx(c)};
Sra=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";default:throw Error("Unexpected cuepoint event");}};
Tra=function(a){this.J=a};
Vra=function(a,b,c){Ura(a.J,b,c)};
vS=function(){this.listeners=new Set};
wS=function(a,b,c,d,e,f,h,l){GR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.ki=!0;this.Wg=null;this.qo="image-companion";this.Vk=uI(c.xa,"metadata_type_ad_video_id");XP(this.Qd(),this);a=uI(c.xa,"metadata_type_ad_placement_config");this.Fa=new IO(c.Rc,this.Da,a,c.layoutId)};
Wra=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];JO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["layout_type_companion_with_image"]}};
xS=function(a,b,c,d,e,f,h,l){GR.call(this,a,b,c,d);this.Da=e;this.Qd=f;this.td=l;this.ki=!0;this.Wg=null;this.qo="shopping-companion";this.Vk=uI(c.xa,"metadata_type_ad_video_id");XP(this.Qd(),this);a=uI(c.xa,"metadata_type_ad_placement_config");this.Fa=new IO(c.Rc,this.Da,a,c.layoutId)};
Xra=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];JO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["layout_type_companion_with_shopping"]}};
Yra=function(a,b,c,d,e){this.Ob=a;this.Da=b;this.Qd=c;this.td=d;this.fb=e};
yS=function(a,b,c,d,e,f,h,l,m,n){GR.call(this,f,a,b,e);this.Da=c;this.u=h;this.oa=l;this.Yb=m;this.ya=n;this.Fa=Zoa(b,c)};
Zra=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];JO().forEach(function(b){a.push(b)});
return{Xe:a,lh:["layout_type_in_video_text_overlay","layout_type_in_video_enhanced_text_overlay"]}};
zS=function(a,b,c,d,e,f,h,l,m,n,p){GR.call(this,f,a,b,e);this.Da=c;this.u=h;this.D=l;this.oa=m;this.Yb=n;this.ya=p;this.Fa=Zoa(b,c)};
$ra=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
AS=function(a,b,c,d,e,f,h,l,m){this.Ob=a;this.oa=b;this.Da=c;this.td=d;this.fb=e;this.B=f;this.C=h;this.Yb=l;this.ya=m};
BS=function(a){g.B.call(this);this.u=a;this.kb=new Map};
CS=function(a,b){for(var c=[],d=g.q(a.kb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&hQ(a.u(),c)};
DS=function(a){g.B.call(this);this.C=a;this.ki=!0;this.kb=new Map;this.u=new Map;this.B=new Map};
asa=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.B.get(e.value.triggerId))&&c.push(e)}return c};
ES=function(a,b,c){g.B.call(this);this.C=a;this.si=b;this.Ua=c;this.u=this.B=void 0;this.si.get().addListener(this)};
bsa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,"slot_type_above_feed",f.Yh)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.ud=X(function(){return new oS});
g.C(this,this.ud);this.si=X(function(){return new vS});
g.C(this,this.si);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.Hd=X(function(){return new uS(b,f.Ba,f.ya,f.Da)});
g.C(this,this.Hd);this.Of=X(function(){return new Tra(b)});
g.C(this,this.Of);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.bd=X(function(){return new yR});
this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya,this.Hd);this.Bd=X(function(){return h});
this.Aj=h;this.Yh=new sS(this.ob,this.bb,this.Ba,this.Bd,this.Hd,this.oa);g.C(this,this.Yh);this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.nl=new BS(a);g.C(this,this.nl);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ol=new tS(a,this.Ba);g.C(this,this.Ol);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.pm=new DS(a);g.C(this,this.pm);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.Wz=X(function(){return new Yra(f.Ob,f.Da,a,f.Cb,f.fb)});
g.C(this,this.Wz);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.Me=X(function(){return new rS(a,f.Ub,f.Ba,f.Of,f.oa,f.Da,f.Ec,f.Hd,f.fb,f.bd,f.Wc,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.eh=X(function(){return new AS(f.Ob,f.oa,f.Da,f.Cb,f.fb,f.nl,f.pm,f.Yb,f.ya)});
g.C(this,this.eh);this.Yu=new ES(a,this.si,this.Ua);g.C(this,this.Yu);this.Cj=new hS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ua);g.C(this,this.Cj);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_live_stream_break_signal",this.Yh],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",
this.ye],["slot_type_above_feed",this.lc],["slot_type_forecasting",this.lc],["slot_type_in_player",this.lc],["slot_type_player_bytes",this.lc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",
this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_on_different_slot_id_enter_requested",this.Ta],["trigger_type_close_requested",this.nl],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",this.Vc],["trigger_type_media_time_range",this.Vc],["trigger_type_not_in_media_time_range",this.Vc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ol],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.Ol],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le],["trigger_type_time_relative_to_layout_enter",this.pm]]),Gj:new Map([["slot_type_above_feed",this.jc],["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Oe]]),rj:new Map([["slot_type_above_feed",
this.Wz],["slot_type_ad_break_request",this.xe],["slot_type_forecasting",this.Ae],["slot_type_player_bytes",this.Me],["slot_type_in_player",this.eh]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:this.Ub,tj:this.ud.get(),Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:this.si.get(),uh:this.gd,dg:this.Cb.get()}};
csa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,null,null)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.ud=X(function(){return new oS});
g.C(this,this.ud);this.si=X(function(){return new vS});
g.C(this,this.si);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.bd=X(function(){return new yR});
g.C(this,this.bd);this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya);this.Bd=X(function(){return h});
this.Aj=h;this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.nl=new BS(a);g.C(this,this.nl);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.pm=new DS(a);g.C(this,this.pm);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.eh=X(function(){return new AS(f.Ob,f.oa,f.Da,f.Cb,f.fb,f.nl,f.pm,f.Yb,f.ya)});
g.C(this,this.eh);this.Me=X(function(){return new TR(a,f.Ub,f.Da,f.fb,f.bd,f.Wc,f.Ba,f.oa,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.Yu=new ES(a,this.si,this.Ua);g.C(this,this.Yu);this.Cj=new hS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ua);g.C(this,this.Cj);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",this.ye],["slot_type_forecasting",this.lc],
["slot_type_in_player",this.lc],["slot_type_player_bytes",this.lc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",
this.Ta],["trigger_type_on_different_slot_id_enter_requested",this.Ta],["trigger_type_close_requested",this.nl],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",this.Vc],["trigger_type_media_time_range",this.Vc],["trigger_type_not_in_media_time_range",this.Vc],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",
this.Le],["trigger_type_time_relative_to_layout_enter",this.pm]]),Gj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Oe]]),rj:new Map([["slot_type_ad_break_request",this.xe],["slot_type_forecasting",this.Ae],["slot_type_in_player",this.eh],["slot_type_player_bytes",this.Me]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:null,tj:this.ud.get(),Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:this.si.get(),
uh:this.gd,dg:this.Cb.get()}};
dsa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,null,null)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.ud=X(function(){return new oS});
g.C(this,this.ud);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.bd=X(function(){return new yR});
g.C(this,this.bd);this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya);this.Bd=X(function(){return h});
this.Aj=h;this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.LE=X(function(){return new NR(f.Ob,f.oa,f.Da,f.Cb)});
g.C(this,this.LE);this.Me=X(function(){return new TR(a,f.Ub,f.Da,f.fb,f.bd,f.Wc,f.Ba,f.oa,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.Cj=new hS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ua);g.C(this,this.Cj);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",this.ye],["slot_type_forecasting",this.lc],["slot_type_in_player",this.lc],["slot_type_player_bytes",
this.lc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_after_content_video_id_ended",this.Vc],["trigger_type_media_time_range",this.Vc],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Gj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_above_feed",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",
this.Oe]]),rj:new Map([["slot_type_ad_break_request",this.xe],["slot_type_forecasting",this.Ae],["slot_type_in_player",this.LE],["slot_type_player_bytes",this.Me]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:null,tj:this.ud.get(),Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:null,uh:this.gd,dg:this.Cb.get()}};
esa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,null,null)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.ud=X(function(){return new oS});
g.C(this,this.ud);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.bd=X(function(){return new yR});
g.C(this,this.bd);this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya);this.Bd=X(function(){return h});
this.Aj=h;this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.eh=X(function(){return new NR(f.Ob,f.oa,f.Da,f.Cb)});
g.C(this,this.eh);this.Me=X(function(){return new TR(a,f.Ub,f.Da,f.fb,f.bd,f.Wc,f.Ba,f.oa,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.Cj=new hS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ua);g.C(this,this.Cj);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",this.ye],["slot_type_forecasting",this.lc],["slot_type_in_player",this.lc],["slot_type_player_bytes",
this.lc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_media_time_range",this.Vc],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Gj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Oe]]),rj:new Map([["slot_type_ad_break_request",this.xe],["slot_type_forecasting",
this.Ae],["slot_type_in_player",this.eh],["slot_type_player_bytes",this.Me]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:null,tj:this.ud.get(),Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:null,uh:this.gd,dg:this.Cb.get()}};
GS=function(a,b,c,d,e,f,h,l){LR.call(this,a,b,c,d,e,f,h);this.Am=l};
fsa=function(a,b,c,d,e){this.Ob=a;this.oa=b;this.Da=c;this.td=d;this.Am=e};
gsa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.Am=X(function(){return new Gra(b)});
g.C(this,this.Am);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,null,null)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.ud=X(function(){return new oS});
g.C(this,this.ud);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.bd=X(function(){return new yR});
g.C(this,this.bd);this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya);this.Bd=X(function(){return h});
this.Aj=h;this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.Me=X(function(){return new TR(a,f.Ub,f.Da,f.fb,f.bd,f.Wc,f.Ba,f.oa,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.FG=X(function(){return new fsa(f.Ob,f.oa,f.Da,f.Cb,f.Am)});
g.C(this,this.FG);this.Cj=new hS(a,this.ud,this.Ya,this.Ba,this.ya,this.Ua);g.C(this,this.Cj);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",this.ye],["slot_type_forecasting",this.lc],["slot_type_in_player",this.lc],["slot_type_player_bytes",
this.lc]]),mg:new Map([["trigger_type_skip_requested",this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",
this.hd],["trigger_type_after_content_video_id_ended",this.Vc],["trigger_type_media_time_range",this.Vc],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Gj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",this.Oe]]),rj:new Map([["slot_type_ad_break_request",
this.xe],["slot_type_forecasting",this.Ae],["slot_type_in_player",this.FG],["slot_type_player_bytes",this.Me]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:null,tj:this.ud.get(),Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:null,uh:this.gd,dg:this.Cb.get()}};
hsa=function(a,b,c,d){this.Ob=a;this.oa=b;this.Da=c;this.td=d};
isa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ua=X(function(){return new OQ});
g.C(this,this.Ua);this.xb=X(function(){return new TQ(f.ya,f.Ua)});
g.C(this,this.xb);this.Cb=X(function(){return new NQ});
g.C(this,this.Cb);this.ob=X(function(){return new IQ(a)});
g.C(this,this.ob);this.bb=X(function(){return new eR(f.Ua)});
g.C(this,this.bb);this.Ec=X(function(){return new hR});
g.C(this,this.Ec);this.fd=X(function(){return new IJ(b.T())});
g.C(this,this.fd);this.Ob=X(function(){return new jS(b)});
g.C(this,this.Ob);this.Yb=X(function(){return new xR(e)});
g.C(this,this.Yb);this.Ic=X(function(){return new wL(b)});
g.C(this,this.Ic);this.wb=X(function(){return new jR(b)});
g.C(this,this.wb);this.Wc=X(function(){return new lS(b)});
g.C(this,this.Wc);this.oc=X(function(){return new mS(b)});
g.C(this,this.oc);this.ya=X(function(){return new kR(b)});
g.C(this,this.ya);this.Sc=X(function(){return new iS(d,f.ya)});
g.C(this,this.Sc);this.Ya=X(function(){return new VP(f.ya)});
g.C(this,this.Ya);this.hc=X(function(){return new GQ(f.bb,f.xb,f.Ya,null,f.Yh,3)});
g.C(this,this.hc);this.ld=X(function(){return new nS(b)});
g.C(this,this.ld);this.Ba=X(function(){return new vR(b,f.Ec)});
g.C(this,this.Ba);this.Ab=new gR(this.ya,this.Ya,this.Ba);g.C(this,this.Ab);this.Hd=X(function(){return new uS(b,f.Ba,f.ya,f.Da)});
g.C(this,this.Hd);this.Of=X(function(){return new Tra(b)});
g.C(this,this.Of);this.oa=X(function(){return new wR(b)});
g.C(this,this.oa);this.bd=X(function(){return new yR});
this.fb=X(function(){return new nR(f.oa,b)});
g.C(this,this.fb);this.Da=X(function(){return new qR(b,f.Cb,f.fb,f.Ba)});
g.C(this,this.Da);this.Gb=new tI(this.ob,this.hc,c,this.ya,a,this.Ba);g.C(this,this.Gb);var h=new iR(b,this.Gb,this.oa,this.ya,this.Hd);this.Bd=X(function(){return h});
this.Aj=h;this.Ne=new UR(VR,FS,function(l,m,n,p){return UQ(f.xb.get(),l,m,n,p)},this.ob,this.bb,this.Ya,this.ya,this.Ba);
g.C(this,this.Ne);this.Yh=new sS(this.ob,this.bb,this.Ba,this.Bd,this.Hd,this.oa);g.C(this,this.Yh);this.Nc=new MQ(this.ob,this.bb,this.wb,this.Bd);g.C(this,this.Nc);this.Ib=new rH(this.ob,this.bb,this.hc,this.Ba,this.Nc,c);g.C(this,this.Ib);this.ye=X(function(){return new BR(f.Sc,f.xb,f.Ya,f.ya)});
g.C(this,this.ye);this.lc=X(function(){return new CR});
g.C(this,this.lc);this.gd=new aS(a,this.Ob);g.C(this,this.gd);this.Ta=new bS(a);g.C(this,this.Ta);this.hd=new cS(a,this.Bd);g.C(this,this.hd);this.Vc=new dS(a,this.wb,this.oa,this.Ba);g.C(this,this.Vc);this.Ol=new tS(a,this.Ba);g.C(this,this.Ol);this.Ub=new fS(a);g.C(this,this.Ub);this.Le=new gS(a);g.C(this,this.Le);this.jc=X(function(){return new WR});
g.C(this,this.jc);this.Oe=X(function(){return new YR(f.oa)});
g.C(this,this.Oe);this.xe=X(function(){return new ER(f.Ib)});
g.C(this,this.xe);this.Ae=X(function(){return new FR(f.Da,f.Ub,f.fb)});
g.C(this,this.Ae);this.Me=X(function(){return new rS(a,f.Ub,f.Ba,f.Of,f.oa,f.Da,f.Ec,f.Hd,f.fb,f.bd,f.Wc,f.wb,f.Ic,f.oc,f.fd,f.Yb,f.ld)});
g.C(this,this.Me);this.eh=X(function(){return new hsa(f.Ob,f.oa,f.Da,f.Cb)});
g.C(this,this.eh);this.Mc={cm:new Map([["opportunity_type_ad_break_service_response_received",this.Ib],["opportunity_type_live_stream_break_signal",this.Yh],["opportunity_type_player_bytes_media_layout_entered",this.Ne],["opportunity_type_player_response_received",this.Gb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Nc]]),ej:new Map([["slot_type_ad_break_request",this.ye],["slot_type_forecasting",this.lc],["slot_type_in_player",this.lc],["slot_type_player_bytes",this.lc]]),mg:new Map([["trigger_type_skip_requested",
this.gd],["trigger_type_layout_id_entered",this.Ta],["trigger_type_layout_id_exited",this.Ta],["trigger_type_layout_exited_for_reason",this.Ta],["trigger_type_on_different_layout_id_entered",this.Ta],["trigger_type_slot_id_entered",this.Ta],["trigger_type_slot_id_exited",this.Ta],["trigger_type_slot_id_fulfilled_empty",this.Ta],["trigger_type_slot_id_fulfilled_non_empty",this.Ta],["trigger_type_slot_id_scheduled",this.Ta],["trigger_type_before_content_video_id_started",this.hd],["trigger_type_after_content_video_id_ended",
this.Vc],["trigger_type_media_time_range",this.Vc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ol],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ol],["trigger_type_on_layout_self_exit_requested",this.Ub],["trigger_type_on_element_self_enter_requested",this.Ub],["trigger_type_on_new_playback_after_content_video_id",this.hd],["trigger_type_on_opportunity_received",this.Le]]),Gj:new Map([["slot_type_ad_break_request",this.jc],["slot_type_forecasting",this.jc],["slot_type_in_player",this.jc],["slot_type_player_bytes",
this.Oe]]),rj:new Map([["slot_type_ad_break_request",this.xe],["slot_type_forecasting",this.Ae],["slot_type_player_bytes",this.Me],["slot_type_in_player",this.eh]])};this.listeners=[this.Cb.get()];this.qe={Ib:this.Ib,Wk:null,tj:null,Xf:this.ya.get(),Gk:this.oa.get(),Gb:this.Gb,sj:null,uh:this.gd,dg:this.Cb.get()}};
ksa=function(a,b,c,d){g.B.call(this);var e=this;this.u=jsa(function(){return e.B},a,b,c,d);
g.C(this,this.u);this.B=(new bqa(this.u)).B;g.C(this,this.B)};
jsa=function(a,b,c,d,e){try{var f=b.T();if(g.KC(f))var h=new bsa(a,b,c,d,e);else if(g.OC(f))h=new csa(a,b,c,d,e);else if(PC(f))h=new esa(a,b,c,d,e);else if(BC(f))h=new dsa(a,b,c,d,e);else if(NC(f))h=new gsa(a,b,c,d,e);else if(g.AC(f))h=new isa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),sI("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,X3:e.deviceParams.cver,W3:e.deviceParams.ctheme,
V3:e.deviceParams.cplayer,k4:e.playerStyle}),new ira(a,b,c,d)}};
g.HS=function(a){g.P.call(this);this.loaded=!1;this.player=a};
IS=function(a){g.HS.call(this,a);var b=this;this.u=null;this.D=new dH(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=pM({EA:a.getVideoData(1)});e=new Apa({DH:new qH(d,b.B.u.qe.Wk,b.B.B),po:e.qI(),EH:d,NH:d,aM:d,uh:b.B.u.qe.uh,Ah:e.ow(),J:b.player,Xf:b.B.u.qe.Xf,Da:b.B.u.Da,dg:b.B.u.qe.dg});b.C=e.B;return b.C};
this.B=new ksa(this.player,this,this.D,this.F);g.C(this,this.B);this.created=!1;var c=a.T();!xC(c)||g.AC(c)||BC(c)||(c=function(){return b.u},g.C(this,new EP(a,c)),g.C(this,new tN(a,c)))};
lsa=function(a){var b=a.B.u.qe.Gb,c=b.u().u;c=kQ(c,"slot_type_player_bytes_1");var d=[];c=g.q(c.values());for(var e=c.next();!e.done;e=c.next())d.push(e.value.slot);var f=!1;c="";e=void 0;d=g.q(d);for(var h=d.next();!h.done;h=d.next())if(h=h.value,nI(h)){if(f){f=uH(b.Ba.get(),1).clientPlaybackNonce;var l=h.Nb instanceof wH?h.Nb.B:"",m=vI(h);sI("More than 1 preroll playerBytes slot detected",void 0,void 0,{slots_match_cpn:c===l,prev_matches_cpn:c===f,collision_matches_cpn:l===f,prev_layout_type:e,
collision_layout_type:m})}f=!0;c=h.Nb instanceof wH?h.Nb.B:"";e=vI(h)}(b=f)||(b=a.u,b=!XM(b,ZM(b)));b||a.B.u.qe.Gk.u()};
msa=function(a){a=g.q(a.B.u.qe.dg.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"slot_type_player_bytes"===b.Xa&&"core"===b.ab)return!0;return!1};
tH=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.qe.Xf,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=nsa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);Xma(a.B.u.qe.Ib,c,d.Cn,b);a.u&&0<d.jl.length&&(a=a.u,b=d.jl,b=SM(a,b),b=TM(a,b),b=UM(a,b)||[],a.C&&g.R(a.u.T().experiments,"html5_dai_debug_bulleit_cue_range")&&a.Aa.push.apply(a.Aa,g.la(b)))};
nsa=function(a,b,c){var d={jl:[],Cn:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;if(c)f=OM(l);else if(null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h)f=!0;else if(null!=f.actionCompanionAdRenderer)f=!!f.actionCompanionAdRenderer.controlFlowExperimentEnabled;else if(null!=f.imageCompanionAdRenderer)f=!!f.imageCompanionAdRenderer.controlFlowExperimentEnabled;
else if(null!=f.shoppingCompanionCarouselRenderer)f=!!f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled;else if(null!=f.invideoOverlayAdRenderer)f=lR(l);else if(null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer)f=g.R(l.J.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf");else if(f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds)if(f.linearAdSequenceRenderer.adStart)f=!1;else{if(h=g.R(l.J.T().experiments,"html5_enable_composite_vod_lsar_ad_intro_on_pacf"))a:if(f=
f.linearAdSequenceRenderer.linearAds,1>=f.length||!f[0].adIntroRenderer)h=!1;else{for(h=1;h<f.length;h++)if(!f[h].instreamVideoAdRenderer){h=!1;break a}h=!0}f=h}else f=!1;f?d.Cn.push(e):d.jl.push(e)}return d};
OS=function(a){if(!JS){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);JS=new Uint8Array(256);KS=[];LS=[];MS=[];NS=[];for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;JS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;KS.push(b<<24|e<<16|e<<8|h);LS.push(h<<24|KS[f]>>>8);MS.push(e<<24|LS[f]>>>8);NS.push(e<<24|MS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);e=[];for(c=0;4>c;c++)e.push(a[4*c]<<24|a[4*c+1]<<16|a[4*
c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(JS[a>>16&255]^d)<<24|JS[a>>8&255]<<16|JS[a&255]<<8|JS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
osa=function(a,b){for(var c=0;4>c;c++)a.u[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.B=16};
psa=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=KS[c>>>24]^LS[d>>16&255]^MS[e>>8&255]^NS[f&255]^b[h++];var m=KS[d>>>24]^LS[e>>16&255]^MS[f>>8&255]^NS[c&255]^b[h++];var n=KS[e>>>24]^LS[f>>16&255]^MS[c>>8&255]^NS[d&255]^b[h++];f=KS[f>>>24]^LS[c>>16&255]^MS[d>>8&255]^NS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=JS[c[0]>>>24]^b[h]>>>24,a[d++]=JS[c[1]>>16&255]^b[h]>>16&255,a[d++]=JS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=JS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.PS=function(){g.B.call(this);this.C=null;this.K=this.G=!1;this.F=new g.im;g.C(this,this.F)};
QS=function(a){a=a.Yo();return 1>a.length?NaN:a.end(a.length-1)};
qsa=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
RS=function(a){return Ny(a.nf(),a.getCurrentTime())};
rsa=function(a,b){if(0==a.gg()||0<a.oh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.Yo();if(d.length||!c)return Ky(d,b)}return c};
ssa=function(a){var b=a.nf();return 0<My(b)&&a.getDuration()?Ly(b,a.getCurrentTime()):0};
tsa=function(a){var b=a.nf();return 0<My(b)&&a.getDuration()?b.end(b.length-1):0};
SS=function(a){var b=a.getDuration();return Infinity==b?1:b?ssa(a)/b:0};
TS=function(a){switch(a.oh()){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}};
US=function(a,b,c){g.Ll.call(this,b,a);this.B=c||null};
g.VS=function(a){g.PS.call(this);this.u=a;this.B={}};
g.WS=function(a,b,c,d){d=void 0===d?!1:d;g.PS.call(this);this.u=a;this.B=b;this.D=c;this.N=d};
XS=function(){this.u=[];this.B=[];this.C=[]};
vsa=function(a,b,c){c=g.Fe(c?"AUDIO":"VIDEO");g.Wa(c,usa);g.dp(c,"loadeddata",(0,g.z)(c.LH,c));rC&&6<=wG&&g.dp(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):YS(a,c);return c};
YS=function(a,b){g.nb(a.B,b)&&!g.nb(a.u,b)&&(b.src||b.load(),g.rb(a.C,b)||a.u.push(b))};
wsa=function(){mB("bg_l","player_att");ZS=(0,g.O)()};
xsa=function(a){a=void 0===a?{}:a;var b=Pr;a=void 0===a?{}:a;return b.u?b.u.invoke(void 0,void 0,a):null};
ysa=function(a){a=void 0===a?{}:a;return Uea(a)};
zsa=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if($S(c)){var e="";c.videoData&&c.videoData.Rg&&(e=c.videoData.Rg+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);mB("bg_v","player_att");e=c.C?xsa(e):g.Na("yt.abuse.player.invokeBotguard")(e);mB("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else mB("bg_e","player_att"),e="r1c=1";return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=
function(e){e=Number(e.c);
var f=c.C?parseInt(g.L("DCLKSTAT",0),10):(f=g.Na("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.Rg?this.u=Wp(this.videoData.Rg):this.u={}};
Asa=function(a){if(a.videoData&&a.videoData.Rg){for(var b=[a.videoData.Rg],c=g.q(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.u[d]&&a.B[d]&&(d=a.B[d](a.u))&&b.push(d);return b.join("&")}return null};
Csa=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return Bsa(a)});
if(a.videoData&&a.videoData.Rg){for(var c=[a.videoData.Rg],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.u[e]&&b[e]&&(e=b[e](a.u))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
$S=function(a){return a.C?Pr.Gd():(a=g.Na("yt.abuse.player.botguardInitialized"))&&a()};
Bsa=function(a){if(!$S(a))return mB("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.Rg&&(b=a.videoData.Rg+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?ysa:g.Na("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){mB("bg_v","player_att");e(d).then(function(h){h?(mB("bg_s","player_att"),f("r1a="+h)):(mB("bg_e","player_att"),f("r1c=2"))},function(){mB("bg_e","player_att");
f("r1c=3")})})};
Dsa=function(a){var b=a.interval,c=a.hq,d=a.GG,e=a.drmSessionId;this.url=a.url;this.interval=b;this.hq=c;this.GG=d;this.drmSessionId=e};
aT=function(){g.P.apply(this,arguments)};
bT=function(a,b,c,d){aT.call(this);var e=this;this.C=-1;this.u={};this.D=new g.G(this.F,0,this);g.C(this,this.D);this.B=new g.G(function(){e.la()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.C(this,this.B);d.subscribe("fairplay_next_need_key_info",this.G,this)};
Esa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
Fsa=function(a,b,c){a=a.match(wd);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.toString()):0===f.indexOf("ek=")?d.push("ek="+ld(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};
Gsa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
Isa=function(a){var b=mu(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=Xt(b.slice(d+2));if(null==b)return null;a=new Gsa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.EL(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Dsa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,hq:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=Hsa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Hsa=function(a){if(!a)return{};a=a.split(";");var b={};g.Fb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
Jsa=function(a,b){g.B.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.Nn(5E3,2E4,.2)};
Ksa=function(a,b,c){a.onSuccess=b;a.onError=c};
Msa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.la())if(0!==e.status&&e.response)if(cB("drm_net_r"),e=new Uint8Array(e.response),e=Isa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Lsa(a,e)},
onError:function(e){Lsa(a,e)}};
c&&(b=Rd(b,"access_token",c));g.pq(b,d)};
Lsa=function(a,b){if(!a.la())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
Osa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.la()){cB("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.af(f.license)}catch(x){}if(0!==h||l){l=new Gsa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=Nsa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;try{w=
g.af(r.keyId)}catch(x){}w&&(n[g.qf(w,4)]=t)}}l.u=m;l.B=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.la())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
kg:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.gA="Bearer "+d);g.Lp(c,"player/get_drm_license",b,e)};
dT=function(a,b,c,d){g.P.call(this);this.videoData=a;this.C=b;this.da=c;this.sessionId=d;this.F={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.V=!1;this.D=null;this.ba=[];this.G=[];this.X=!1;this.u={};this.Y=NaN;this.status="";this.N=!1;this.B=a.Yc;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.C.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Tf&&(a.vvt=this.videoData.Tf,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.C.ie&&(a.authuser=this.C.ie);this.C.pageId&&(a.pageid=this.C.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ca("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vc))?e[1]:"")&&(a.cdt=e)}this.F=a;this.F.session_id=d;this.P=!0;"widevine"===this.B.flavor&&(this.F.hdr="1");"playready"===this.B.flavor&&(b=Number(g.xv(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.F.mfpe=""+
b),this.P=!1,this.videoData.ca("html5_playready_enable_non_persist_license")&&(this.F.pst="0"));b=nD(this.B)?Esa(c.initData).replace("skd://","https://"):this.B.C;this.videoData.ca("enable_shadow_yttv_channels")&&(b=new g.Zm(b),document.location.origin&&document.location.origin.includes("green")?g.an(b,"web-green-qa.youtube.com"):g.an(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Pd(this.baseUrl,"ek")||"";if(b=Pd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ea=
this.videoData.ca("html5_use_drm_retry");this.ba=c.B;cT(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
Tsa=function(a,b){cT(a,"createkeysession");a.status="gr";cB("drm_gk_s");a.url=Psa(a);try{a.D=b.createSession(a.da,function(d){cT(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.W("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.D&&(Qsa(a.D,function(d,e){Rsa(a,d,e)},function(d){a.la()||a.error("drm.keyerror",!0,d)},function(){a.la()||(cT(a,"onkyadd"),a.K||(a.W("sessionready"),a.K=!0))},function(d){Ssa(a,d)}),g.C(a,a.D))};
Psa=function(a){var b=a.baseUrl;yfa(b)||a.error("drm.net",!0,"t.x");if(!Pd(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.C.experiments.experiments[e]});
0<c.length&&(a.F.fexp=c.join())}c=g.q(Object.keys(a.F));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Rd(b,d,a.F[d]);return b};
Usa=function(a){var b={};Object.assign(b,a.F);return b};
Vsa=function(a,b){var c=new Dsa({GG:g.qf(b),drmSessionId:a.sessionId});a.W("heartbeatparams",c)};
Rsa=function(a,b,c){if(!a.la())if(b){cT(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Wsa(a,b);return;default:a.W("ctmp","message_type","t."+c+";l."+b.byteLength)}a.V||(cB("drm_gk_f"),a.V=!0,a.W("newsession",a));if(a.videoData.ca("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.N&&"widevine"===a.B.flavor)a.N&&"license-request"!==c&&cT(a,"wvrenew.mt."+c,!0),Vsa(a,b);
else{if(jD(a.B)&&(b=Xsa(b),!b))return;nD(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=lu(g.qf(b)));b=new Jsa(b,++a.requestNumber);Ksa(b,function(d,e){Ysa(a,d,e)},function(d,e,f,h){if(!a.la()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.Q(a.C.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.ea&&36E4<(0,g.O)()-a.Y);h&&(l=!0,e="drm.net.retryexhausted");cT(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&Zsa(a,d)}});
g.C(a,b);$sa(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
Wsa=function(a,b){cT(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.C.deviceParams);c=g.Jd("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:mu(b)}),responseType:"arraybuffer"};
g.Vr(c,d,3,500).then(Eo(function(e){if(!a.la()){e=new Uint8Array(e.response);var f=mu(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.W("ctmp","drminfo","provisioning"),a.D&&a.D.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),Eo(function(e){a.la()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
Ssa=function(a,b){a.la()||0>=b.size||(b.forEach(function(c,d){var e=jD(a.B)?d:c,f=new Uint8Array(jD(a.B)?c:d);jD(a.B)&&ata(f);var h=g.qf(f,4);ata(f);f=g.qf(f,4);a.u[h]?a.u[h].status=e:a.u[f]?a.u[f].status=e:a.u[h]={type:"",status:e}}),bta("Key statuses changed: "+cta(a,",")),cT(a,"onkeystatuschange"),a.status="kc",a.W("keystatuseschange",a))};
eT=function(a){var b;if(b=a.P&&null!=a.D)a=a.D,b=!(!a.u||!a.u.keyStatuses);return b};
$sa=function(a,b){a.status="km";cB("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.Er(a.C.ea),d=g.Ip(c.Ff||g.Jp());d.drmSystem=dta[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.qf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.error("drm.net",!0,"t.r;ic.0");return}var e=a.C.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Tf&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Tf,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.kh&&
(d.context.user.kidsParent={oauthToken:a.videoData.kh});if(nD(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;h<e.length;h+=2)f.push(parseInt(e.substring(h,h+2),16));d.fairplayKeyId=g.qf(f)}Osa(b,d,c,a.videoData.Ze())}else Msa(b,a.url,a.videoData.oauthToken);a.status="rs"};
Ysa=function(a,b,c){if(!a.la()){if(a.requestNumber!==c&&"widevine"===a.B.flavor&&((a.C.ca("html5_drm_ignore_out_of_order_responses")||a.C.ca("html5_drm_ignore_out_of_order_responses_cfl"))&&cT(a,"drmOOO."+a.requestNumber+"."+c,!0),a.C.ca("html5_drm_ignore_out_of_order_responses")))return;cT(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(cB("drm_kr_s"),a.videoData.ca("outertube_streaming_data_always_use_staging_license_service")&&b.heartbeatParams&&
b.heartbeatParams.url&&(c=a.B.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.W("newlicense",b.heartbeatParams),b.u&&(a.G=b.u,a.N=!0,a.X=ei(a.G,function(d){return d.includes("HDR")})),b.B&&(a.u=Lb(b.B,function(d){return{type:d,
status:"unknown"}})),lD(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.af(mu(b.message)):mD(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=lu(g.qf(b.message))),a.D&&(cT(a,"updtks"),a.status="ku",a.D.update(b.message).then(function(){cB("drm_kr_f");
if(!eT(a))if(cT(a,"ksApiUnsup"),kD(a.B)){var d=eta(a.G);480<g.kw[d]&&a.W("hdentitled",a)}else a.W("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.rf(d.message);
a.error("drm.keyerror",!0,d)})),a.K&&(a.Y=(0,g.O)()),nD(a.B)&&a.W("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
Zsa=function(a,b){var c=b.u.getValue();c=new g.G(function(){$sa(a,b)},c);
g.C(a,c);c.start();g.On(b.u);cT(a,"rtyrq")};
fta=function(a,b){if(!eT(a)&&kD(a.B)&&!b)return"large";var c=[],d=!0;if(eT(a))for(var e=g.q(Object.keys(a.u)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.u[f].status&&c.push(a.u[f].type),"unknown"!==a.u[f].status&&(d=!1);if(!eT(a)||d)c=a.G;return eta(c)};
cta=function(a,b){for(var c=[],d=g.q(Object.keys(a.u)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.u[e].type+"_"+a.u[e].status);return c.join(b)};
gta=function(a){var b=a.status+".";return eT(a)?b+cta(a,"."):b+a.G.join(".")};
hta=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.u)if("output-restricted"===a.u[d].status&&(b=a.u[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
ita=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
cT=function(a,b,c){((void 0===c?0:c)||uG(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.W("ctmp","drmlog",b)};
bta=function(){};
ata=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};
eta=function(a){return g.nb(a,"UHD2")?"highres":g.nb(a,"UHD1")?"hd2160":g.nb(a,"HD")?"hd1080":g.nb(a,"HD720")?"hd720":"large"};
Xsa=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(fT(Vaa(a.childNodes[0].nodeValue)).buffer):null:null};
jta=function(a,b,c,d,e){var f;"playready"===e?f=Xsa(a):"fairplay"===e&&(f=lu(g.qf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Naa(c,d),g.Vr(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=Isa(h))&&h.message&&b.update(h.message)}))};
gT=function(a,b,c,d,e){g.B.call(this);this.element=a;this.N=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.G=this.C=this.F=null;this.D=new g.rs(this);g.C(this,this.D);kta(this)};
kta=function(a){a.u?(a.D.R(a.u,"message",a.YJ),a.D.R(a.u,"keystatuseschange",a.ZJ),a.u.closed&&a.u.closed.then(Eo(function(){a.la()||Xj("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(ts(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.tE),ts(a.D,a.B,["mskeyerror","webkitkeyerror"],a.sE),ts(a.D,a.B,["mskeyadded","webkitkeyadded"],a.rE))};
Qsa=function(a,b,c,d,e){a.F=b;a.C=c;a.G=d;a.K=e};
lta=function(a,b,c){M(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
hT=function(a,b){g.B.call(this);this.element=a;this.u=b;this.G={};this.D=null;this.F=new g.rs(this);this.C=this.B=null;g.C(this,this.F)};
iT=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.la()||(a.B=b,a.element.setMediaKeys(b))});
iD(a.u)?a.C=new (hD())(a.u.u):lD(a.u)?(a.C=new (hD())(a.u.u),a.element.webkitSetMediaKeys(a.C)):mta(a);return null};
mta=function(a){ts(a.F,a.element,["keymessage","webkitkeymessage"],a.cK);ts(a.F,a.element,["keyerror","webkitkeyerror"],a.bK);ts(a.F,a.element,["keyadded","webkitkeyadded"],a.aK)};
nta=function(a){return"widevine"===a.u.flavor&&a.u.fo&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.fo):null};
pta=function(a,b){var c=ota(b,a.u.Xg);c=a.C.createSession("video/mp4",c);return new gT(null,null,null,null,c)};
qta=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);c=a.C.createSession("video/mp4",b,c);return new gT(null,null,null,null,c)};
jT=function(a,b){var c=a.G[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c};
ota=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<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};
kT=function(a,b){g.B.call(this);this.u=g.Fe("video");this.B=null;this.D=[];this.F=new g.rs(this);this.C=new gD("fairplay","com.youtube.fairplay","",b);this.C.Xg=a;g.C(this,this.F);this.init()};
lT=function(a,b,c){aT.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.G(function(){var e=d.u.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.C.values.length)f=!0;else{for(var h=g.q(d.C.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.W("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.O)(),d.B.start(Math.max(0,e)))},0);
g.C(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
mT=function(){this.keys=[];this.values=[]};
oT=function(a,b,c){g.P.call(this);this.element=a;this.videoData=b;this.B=c;this.u=this.videoData.Yc;this.drmSessionId=this.videoData.drmSessionId||g.Gs();this.C=new mT;this.K=new mT;this.P=new mT;this.D=[];this.Aa=2;this.ba=new g.rs(this);this.za=this.ha=!1;this.heartbeatParams=null;this.Y=this.da=this.ea=this.V=!1;this.G=null;this.ka=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||hD()||oD(c.experiments);c=g.R(this.B.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.Jo:g.R(this.B.experiments,
"html5_drm_start_from_null_constraint");this.N="fairplay"===this.u.flavor||c?vD:rta;this.F=new hT(this.element,this.u);g.C(this,this.F);iD(this.u)&&(this.X=new hT(this.element,this.u),g.C(this,this.X));g.C(this,this.ba);c=this.element;this.u.keySystemAccess?this.ba.R(c,"encrypted",this.dK):ts(this.ba,c,iD(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.aO);sta(this);a:switch(c=this.u,a=this.B.experiments,b=this.C,c.flavor){case "fairplay":19.2999<Wj()?(a=c.Er,c=c.Dr,c>=a&&(c=.75*a),b=.5*(a-
c),c=new bT(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new lT(g.R(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.G=c)g.C(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.cA,this);oD(this.B.experiments);nT(this,"cks"+this.u.Be());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Ga=new kT(this.videoData.Xg,this.B.experiments),g.C(this,this.Ga))};
sta=function(a){var b=iT(a.F);b?b.then(Eo(function(){tta(a)}),Eo(function(c){if(!a.la()){M(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(nT(a,"mdkrdy"),a.V=!0);
a.X&&(b=iT(a.X))};
uta=function(a,b,c){a.za=!0;c=new jy(b,c);a.B.ca("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));a.B.ca("html5_process_all_encrypted_events")?pT(a,c):a.B.ca("html5_eme_loader_sync")?pT(a,c):0!==a.D.length&&a.videoData.Ia&&a.videoData.Ia.xc()?qT(a):pT(a,c)};
vta=function(a,b){nT(a,"onneedkeyinfo");g.R(a.B.experiments,"html5_eme_loader_sync")&&(a.P.get(b.initData)||a.P.set(b.initData,b));pT(a,b)};
xta=function(a,b){if(iD(a.u)&&!a.ea){var c=Yfa(b);if(0!==c.length){var d=new jy(c);a.ea=!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){wta(a,f,d)})},null)}}};
wta=function(a,b,c){var d=b.createSession(),e=a.C.values[0],f=Usa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);jta(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.da=!0,yta(a,fta(e,a.da)))});
d.generateRequest("cenc",c.initData)};
pT=function(a,b){if(!a.la()){nT(a,"onInitData");if(g.R(a.B.experiments,"html5_eme_loader_sync")&&a.videoData.Ia&&a.videoData.Ia.xc()){var c=a.P.get(b.initData),d=a.K.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.K.remove(c);a.P.remove(c)}nT(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ha&&!a.videoData.isLivePlayback?a.B.ca("html5_process_all_encrypted_events")&&qT(a):g.R(a.B.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Jd||(a.ha=!0,c=b.u,ky(b),c&&
!b.Jd&&b.u!==c&&a.W("ctmp","cpsmm","emsg."+c+";pssh."+b.u),a.W("widevine_set_need_key_info",b)):a.cA(b)}};
tta=function(a){if(!a.la())if(g.R(a.B.experiments,"html5_drm_set_server_cert")&&!g.zC(a.B)){var b=nta(a.F);b?b.then(Eo(function(c){uG(a.videoData)&&a.W("ctmp","ssc",c)}),Eo(function(c){a.W("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Eo(function(){rT(a)})):rT(a)}else rT(a)};
rT=function(a){a.la()||(a.V=!0,nT(a,"onmdkrdy"),qT(a))};
qT=function(a){if(a.za&&a.V&&!a.Y){for(;a.D.length;){var b=a.D[0];if(a.C.get(b.initData))if("fairplay"===a.u.flavor)a.C.remove(b.initData);else{a.D.shift();continue}ky(b);break}a.D.length&&a.createSession(a.D[0])}};
yta=function(a,b){var c=aD("auto",b,!1,"l");if(g.R(a.B.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.Jo:g.R(a.B.experiments,"html5_drm_start_from_null_constraint")){if($C(a.N,c))return}else if(dD(a.N,b))return;a.N=c;a.W("qualitychange");nT(a,"updtlq"+b)};
zta=function(a){if(0>=a.C.values.length){var b="ns;";a.V||(b+="nr;");return b+="ql."+a.D.length}return gta(a.C.values[0])};
nT=function(a,b,c){c=void 0===c?!1:c;a.la()||(uG(a.videoData)||c)&&a.W("ctmp","drmlog",b)};
Ata=function(a){var b;if(b=g.ak()){var c;b=!(null===(c=a.F.B)||void 0===c||!c.u)}b&&(b=a.F,b=b.B&&b.B.u?b.B.u():null,nT(a,"mtr."+g.qf(b,3),!0))};
sT=function(a,b,c){g.P.call(this);this.videoData=a;this.Pa=b;this.playerVisibility=c;this.P=0;this.B=this.u=null;this.V=this.G=this.D=!1;this.N=this.K=0;this.C=NaN;this.F=0};
vT=function(a,b,c){var d=!1,e=a.P+3E4<(0,g.O)()||!1,f;if(f=a.videoData.ca("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.C);f&&(c.nonfg="paused",e=!0,a.W("pausevideo"));f=a.videoData.Ma;if(!e&&((null===f||void 0===f?0:ww(f))||(null===f||void 0===f?0:uw(f))))if(a.videoData.ca("html5_disable_codec_on_platform_errors"))a.Pa.D.N.add(f.Fb),d=e=!0,c.cfalls=f.Fb;else{var h;if(h=a.videoData.ca("html5_disable_codec_for_playback_on_error")&&
a.u){h=a.u.K;var l=f.Fb;h.ra.has(l)?h=!1:(h.ra.add(l),h.Y=-1,wD(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Fb)}if(!e)return Bta(a,c);a.P=(0,g.O)();e=a.videoData;e=e.Fg?e.Fg.oB()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");tT(a,"qoe.restart",c);if(e&&Cta(a))return uT(a),!0;Xj("philips")&&Dta(a);!a.videoData.ca("html5_disable_codec_on_platform_errors")&&f&&ww(f)?(a.Pa.D.disableAv1(),d=!0):a.u?(b=a.u,c=(c=az(b.B)||b.B.B)?c.u:b.B.u,c.P+=1,BD(b.K,c)):a.videoData.Fg&&a.videoData.Fg.sy();a.W("newelementrequired",
d);return!0};
Bta=function(a,b){if(a.videoData.vg)return!1;a.Pa.ra+=1;if(10>=a.Pa.ra)return!1;b.exiled=""+a.Pa.ra;tT(a,"qoe.start15s",b);a.W("playbackstalledatstart");return!0};
Dta=function(a){if("GAME_CONSOLE"!==a.Pa.deviceParams.cplatform)try{window.close()}catch(b){}};
Cta=function(a){return a.D||"yt"!==a.Pa.X?!1:a.videoData.vg?25>a.videoData.Ei:!a.videoData.Ei};
uT=function(a){a.D||(a.D=!0,a.W("signatureexpiredreloadrequired"))};
Eta=function(a,b){if(a.B&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.B.oh();b.details.merr=c?c.toString():"0";b.details.msg=a.B.pn()}};
Fta=function(a,b){return"html5.invalidstate"===b.errorCode&&a.Pa.ca("html5_new_element_on_invalid_state")||"fmt.unplayable"===b.errorCode||"fmt.unparseable"===b.errorCode?vT(a,b.errorCode,b.details):!1};
Gta=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
Ita=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18575";if(Cta(a))return c?(a.G=!0,a.W("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),tT(a,b.errorCode,b.details),uT(a)),!0;6048E5<(0,g.O)()-a.Pa.Ka&&Hta(a,"signature");return!1};
Hta=function(a,b){try{window.location.reload();tT(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Pa.ca("tvhtml5_retire_old_players")&&g.zC(a.Pa)&&Dta(a)};
Jta=function(a,b){a.Pa.D.B=!1;tT(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.W("formatupdaterequested")};
wT=function(a,b,c,d){a.W("clienttemp",b,c,(void 0===d?{Hy:!1}:d).Hy)};
tT=function(a,b,c){a.W("qoeerror",b,c)};
Kta=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
Lta=function(a){navigator.mediaCapabilities?xT(a.videoInfos).then(function(){return a},function(){return a}):Yr(a)};
xT=function(a){var b=navigator.mediaCapabilities;if(!b)return Yr(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.u||1E6,framerate:d.video.fps||30}:null})});
return Hm(c).then(function(d){for(var e=0;e<d.length;e++)a[e].F=d[e].smooth,a[e].C=d[e].powerEfficient;return a},function(){return a})};
yT=function(a,b){g.P.call(this);this.u=a;this.V=b;this.P=this.G=this.K=this.C=this.B=this.F=this.N=this.D=0;this.playbackRate=1};
Nta=function(a,b,c){!g.R(a.u.experiments,"html5_tv_ignore_capable_constraint")&&g.zC(a.u)&&(c=c.compose(Mta(a,b)));return c};
Ota=function(a){return a.ca("html5_exponential_memory_for_sticky")?.5>$B(a.u.ac,"sticky-lifetime")?"auto":Lx():Lx()};
Pta=function(a){var b=new ZC(0,0,!1,"o");1<a.playbackRate&&(b=new ZC(0,480,!0,"o"));return b};
Mta=function(a,b){if(g.zC(a.u)&&QB(a.u.D,RB.HEIGHT))var c=b.Ia.videoInfos[0].La().yc;else{c=b.Ia.xc();var d;pC(a.u)&&(d=window.screen&&window.screen.width?new g.he(window.screen.width,window.screen.height):null);d||(d=a.u.Pi?a.u.Pi.clone():a.V.getPlayerSize());(rC||GD||c)&&d.scale(g.JC());c=d;DF(b.videoData)||sG(b.videoData);var e=b.Ia.videoInfos;if(e.length){d=.85;var f=e[0].La();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||nC||(d=.45);f=e[0];var h=f.La();e=g.q(e);for(var l=
e.next();!l.done&&!(f=h=l.value,h=h.La(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===Wu(f)?jw(h.width,h.height):h.quality;c=aD("auto",c,!1,"r")}else c=vD;c=c.u}c&&(c=Math.max(c,360));return new ZC(0,c,!1,"r")};
Qta=function(a,b){var c;a:if((c=b.Ia)&&c.videoInfos.length){for(var d=g.q(c.videoInfos),e=d.next();!e.done;e=d.next())if(e=e.value,e.F){c=e.La().yc;break a}c=c.videoInfos[0].La().yc}else c=0;Zj()&&!g.zC(a.u)&&uw(b.Ia.videoInfos[0])&&(c=Math.min(c,g.kw.large));return new ZC(0,c,!1,"o")};
Rta=function(a,b){var c=0;!a.u.u||g.qC(a.u)||ik()||g.R(a.u.experiments,"mweb_uniplayer_auto_quality")||g.R(a.u.experiments,"hls_for_vod")||(c=g.kw.medium);var d=g.Q(a.u.experiments,"html5_default_quality_cap");if(d){var e=b.Ia.xc()&&!b.videoData.Qf&&!b.videoData.Cd,f=g.Q(a.u.experiments,"html5_quality_cap_min_age_secs");e&&f&&(e=a.u.schedule.F,e=(0,g.O)()-e>1E3*f);e&&(c=c?Math.min(c,d):d)}d=g.Q(a.u.experiments,"html5_random_playback_cap");f=/[a-h]$/;d&&f.test(b.videoData.clientPlaybackNonce)&&(c=
c?Math.min(c,d):d);(d=g.Q(a.u.experiments,"html5_not_vp9_supported_quality_cap"))&&!zB('video/webm; codecs="vp9"')&&(c=c?Math.min(c,d):d);if(f=d=g.Q(a.u.experiments,"html5_hfr_quality_cap"))a:{f=b.Ia;if(f.xc())for(f=g.q(f.videoInfos),e=f.next();!e.done;e=f.next())if(32<e.value.La().fps){f=!0;break a}f=!1}f&&(c=c?Math.min(c,d):d);(d=g.Q(a.u.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(c=c?Math.min(c,d):d);return new ZC(0,c,!1,"d")};
Sta=function(a,b){return Ue(a,function d(){var e;return Aa(d,function(f){if(!b.Ia.xc())return f["return"](void 0);e=b.Ia.videoInfos;return f["return"](xT(e))})})};
Tta=function(a,b){return Ue(a,function d(){var e,f,h=this;return Aa(d,function(l){if(1==l.u)return(e=b.Ia.videoInfos.find(function(m){return ww(m)}))?null!==e.C?l.Kd(2):ra(l,xT([e]),2):l["return"](!1);
f=e.C||!1;h.W("ctmp","mcrsp","itag."+e.id+";smooth."+ +e.F+";efficient."+ +f);return l["return"](f)})})};
Vta=function(a,b){if(!b.videoData.Ma||a.ca("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.N&&(a.D=0);a.D++;a.N=g.A();if(4!==a.D)return!1;Uta(a,b.videoData.Ma);return!0};
Xta=function(a,b,c,d){if(!b||!c||!b.videoData.Ma)return!1;var e=g.Q(a.u.experiments,"html5_df_downgrade_thresh"),f=a.ca("html5_log_media_perf_info"),h=g.Q(a.u.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.O)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.O)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.G,m=c.totalVideoFrames-a.P;a.G=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.Ej&&a.W("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(d)return a.B=0,a.C=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.C=0<h&&60*d>h?a.C+1:0;if(!e||g.zC(a.u))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;Uta(a,b.videoData.Ma);a.W("ctmp","dfd",Wta());return!0};
Uta=function(a,b){var c=b.La().yc-1,d=b.Fb,e=b.La().fps,f=Ox();d=Nx(d,e);0<+f[d]&&(c=Math.min(+f[d],c));f[d]!==c&&(f[d]=c,g.wt("yt-player-performance-cap",f,604800));a.W("av1hybridthresholdchange")};
Yta=function(a,b){if(!b.Ia.xc())return vD;var c=a.u.ca("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.Q(a.u.experiments,"html5_performance_cap_floor");e=a.u.u?240:e;for(var f=g.q(b.Ia.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!ww(l))if(h=Px(l.Fb,l.La().fps),l=l.La().yc,Math.max(h,e)>=l){d=l;break}}return new ZC(0,d,!1,"b")};
Zta=function(a,b){var c=g.Q(a.u.experiments,"html5_background_quality_cap"),d=g.Q(a.u.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==Ota(a)||Ap()/1E3<d?vD:b?new ZC(0,c,!1,"v"):vD};
$ta=function(a,b){var c=g.Q(a.u.experiments,"html5_autonav_quality_cap"),d=g.Q(a.u.experiments,"html5_autonav_cap_idle_secs");return c&&b.videoData.Il&&Ap()/1E3>d?new ZC(0,c,!1,"e"):vD};
aua=function(a,b){a.ca("html5_log_media_perf_info")&&(a.W("ctmp","perfdb",Wta()),a.W("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.W("ctmp","mcdb",b.Ia.videoInfos.filter(function(c){return!1===c.F}).map(function(c){return Wu(c)}).join("-")))};
Wta=function(){var a=Lb(Ox(),function(b){return""+b});
return g.tB(a)};
zT=function(a,b){g.B.call(this);this.provider=a;this.G=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.FL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.G(this.send,6E4,this);this.C=!1;g.C(this,this.delay)};
bua=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.AT(a.provider),a.delay.start()))};
cua=function(a){if(!(0>a.B)){var b=g.AT(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.NL(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
dua=function(a){switch(a.u.Qr){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
eua=function(a){return(!a.ca("html5_health_to_gel")||a.u.Ka+36E5<(0,g.O)())&&(a.ca("html5_health_to_gel_canary_killswitch")||a.u.Ka+36E5<(0,g.O)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===dua(a))?a.ca("html5_health_to_qoe"):!0};
BT=function(a,b,c,d,e){var f={format:"RAW"},h={};bq(a)&&cq()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.Kf=e);return 1<Object.keys(f).length?f:null};
CT=function(a,b,c,d,e,f){cq()&&c.token&&(a=g.Jd(a,{ctt:c.token,cttype:c.Ry,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Yp(a),Object.keys(c).includes("cpn")),f?Dr(a,b):Cr(a,b)):b?(f=g.Yp(a),Object.keys(f).includes("cpn"),g.pq(a,b)):g.Ct(a,d)};
ET=function(a){g.B.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.ra=NaN;this.Bc="N";this.G=this.Qa=this.za=this.ha=this.C=0;this.X=this.Ra="";this.Ga=this.Y=NaN;this.Aa=0;this.rb=-1;this.Ka=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ea=this.V=!1;this.tb=[];this.N=null;this.P=this.ba=this.D=!1;this.B=-1;this.ka=!1;this.eb=new g.G(this.cJ,750,this);this.K=this.adCpn="";this.adFormat=void 0;g.C(this,this.eb);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&
a.then(function(c){b.N=c});
g.DT(this,0,"vps",["N"])};
g.DT=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
GT=function(a,b){var c=a.provider.B();g.DT(a,b,"cmt",[c.toFixed(3)]);c=a.provider.N();if(a.F&&1E3*c>a.F.KD+100&&a.F){var d=a.F,e=d.isAd;a.da=1E3*b-d.qQ-(1E3*c-d.KD)-d.iQ;FT(a,"gllat","l."+a.da.toFixed()+";prev_ad."+ +e);delete a.F}};
HT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.AT(a.provider);var c=a.provider.D();if(!isNaN(a.Y)&&!isNaN(c.B)){var d=c.B-a.Y;0<d&&g.DT(a,b,"bwm",[d,(c.D-a.Ga).toFixed(3)])}a.Y=c.B;a.Ga=c.D;isNaN(c.bandwidthEstimate)||g.DT(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.Ej&&c.u&&FT(a,"bwinfo",c.u);a.N&&g.DT(a,b,"bat",[a.N.level,a.N.charging?"1":"0"]);d=a.provider.getVisibilityState();a.rb!==d&&(g.DT(a,b,"vis",[d]),a.rb=d);GT(a,b);(d=fua(a.provider))&&d!==a.Aa&&(g.DT(a,b,"conn",[d]),
a.Aa=d);gua(a,b,c)};
gua=function(a,b,c){if(!isNaN(c.il)){var d=c.il;c.C<d&&(d=c.C);g.DT(a,b,"bh",[d.toFixed(3)])}};
IT=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(g.kh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.G(a.reportStats,0,a)).start()};
hua=function(a){a.provider.videoData.Hn&&JT(a,"prefetch");a.provider.videoData.Ei&&FT(a,"reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.Ei);a.provider.videoData.ni&&JT(a,"monitor");a.provider.videoData.isLivePlayback&&JT(a,"live");a.provider.videoData.Qf&&FT(a,"ctrl",a.provider.videoData.Qf,!0);if(a.provider.videoData.Re){var b=a.provider.videoData.Re.replace(/,/g,"_");FT(a,"ytp",b,!0)}a.provider.videoData.xF&&(b=a.provider.videoData.xF.replace(/,/g,"."),FT(a,"ytrexp",
b,!0));if(!g.R(a.provider.u.experiments,"html5_disable_gpu_reporting")){var c=a.provider.u.experiments;b=a.provider.videoData;c=g.R(c,"enable_white_noise")||g.R(c,"enable_webgl_noop")||g.R(c,"enable_gpu_logging");var d=b.bn()||b.oj()||b.pj()||b.kj(),e=b.Ia&&ww(g.gb(b.Ia.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.KT)())&&(a.u.gpu=[b])}a.ra=Ho(function(){a.reportStats()},1E4)};
iua=function(a,b,c,d){var e=a.provider.B();c=[c,e.toFixed(3)];d&&c.push(d);g.DT(a,b,"error",c);a.P=!0};
jua=function(a){0<=a.B||(a.provider.u.dc||3!==a.provider.getVisibilityState()?a.B=g.AT(a.provider):a.ka=!0)};
JT=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
FT=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!==a.tb.indexOf(b);f||a.tb.push(b);if(!d||!f){/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d&&!/^t[.]/.test(c)){var h=1E3*g.AT(a.provider);c="t."+h.toFixed()+";"+c}kua(b,c);e.push(b+":"+c);a.u.ctmp=e;IT(a);return h}};
lua=function(a,b,c,d,e,f,h){1===f&&a.reportStats();a.adCpn=b;a.K=c;a.adFormat=h;b=g.AT(a.provider);c=a.provider.B();1===f&&g.DT(a,b,"vps",[a.Bc]);h=a.u.xvt||[];h.push("t."+b.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+f+";np.0;c."+d+";d."+e);a.u.xvt=h;0===f&&(a.reportStats(),a.adCpn="",a.K="",a.adFormat=void 0)};
mua=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.G=this.F=0;this.P=this.provider.De().volume;this.N=this.provider.De().muted;this.C=LT(this.provider)};
MT=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.gb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.F+=a.u-a.B;a.C=LT(a.provider);a.B=a.u};
nua=function(a){return a.F+a.provider.B()-a.B};
oua=function(a){a.segments.length&&a.u===a.B||MT(a);var b=a.segments;a.segments=[];return b};
qua=function(a){pua(a);a.G=Ho(function(){a.update()},100);
a.lastUpdateTime=g.AT(a.provider);a.C=LT(a.provider)};
pua=function(a){window.clearInterval(a.G);a.G=NaN};
rua=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
NT=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.nj=this.ha=this.isFinal=this.eb=this.ba=this.autoplay=this.autonav=!1;this.Ka="yt";this.B=this.F=null;this.sendVisitorIdHeader=this.za=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.da="delayplay"===c;this.ea="atr"===c;this.tb="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.Qi+"/api/stats/"+c;this.ac=!b.ca("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.Lc;d&&(this.ha=d.fs,d.rtn&&(this.B=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.Bb=d.mos,this.Rb=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Ra=d.inview),d.size&&(this.Qa=d.size));this.deviceParams=g.Zb(b.deviceParams);this.rb=b.Ga;this.experimentIds=b.experiments.experimentIds;this.Aa=b.ue;this.Ka=b.X;this.region=b.region;this.userAge=b.userAge;this.Ga=b.zf;this.dc=Ap();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.N=
g.R(b.experiments,"vss_pings_using_networkless");this.P=g.R(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.Ze();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=pG(a);this.autonav=a.Il||this.autonav;this.contentVideoId=nG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.ba=a.Lc;a.Nh&&(this.G=a.Nh,this.Y=a.pg);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.ak=a.ak;this.Ug=
a.Ug;a.Ma&&(this.videoFormat=Wu(a.Ma),a.Tc&&Wu(a.Tc)!==this.videoFormat&&(this.X=Wu(a.Tc)));a.ma&&kA(a.ma)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.ac?"embedded_unbranded":mG(a);this.nj=a.nj;this.an=a.an;if(b=aG(a))this.Mb=b;this.vp=a.vp;this.Eg=a.Eg;this.eventId=a.eventId;this.playlistId=a.fG||a.playlistId;this.au=a.au;this.Qf=a.Qf;this.Re=a.Re;this.oq=a.oq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=
a.osid;this.Rx=a.Rx;this.referrer=a.referrer;this.aq=a.vF||a.aq;this.Xn=a.Xn;this.yu=a.yu;this.userGenderAge=a.userGenderAge;this.Vq=a.Vq};
OT=function(a,b){return BT(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
sua=function(a,b,c,d,e,f){b.cmt=b.len;b.lact="0";d=d().toFixed(3);b.rt=Number(d).toString();a=g.Jd(a,b);e?(null==c&&(c={}),f?Dr(a,c):Cr(a,c)):c?g.pq(a,c):g.Ct(a)};
QT=function(a){var b={ns:a.Ka,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.ak),ei:a.eventId,fmt:a.videoFormat,fs:a.ha?"1":"0",rt:a.u(a.Tb),of:a.Rx,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.rb,lact:a.dc,live:a.Mb,cl:(341488979).toString(),mos:a.Bb,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Rb};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Wa(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.ba&&(b.dni="1");a.isFinal&&(b["final"]="1");a.nj&&(b.splay="1");a.Ug&&(b.delay=a.Ug);a.Aa&&(b.hl=a.Aa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ga&&(b.uga=a.Ga+a.userAge);void 0!==a.ra&&(b.len=a.u(a.ra));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.u(a.B));a.aq&&(b.feature=a.aq);a.playlistId&&(b.list=a.playlistId);a.Qf&&(b.ctrl=a.Qf);a.Re&&(b.ytr=a.Re);a.oq&&(b.ssrt="1");a.X&&(b.afmt=a.X);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.ka&&(b.lio=a.u(a.ka));a.D?(b.idpj=a.an,b.ldpj=a.vp,null!=a.F&&(b.rti=a.u(a.F)),a.Vq&&(b.ald=a.Vq)):void 0!==a.adType&&(b.at=a.adType);a.Qa&&(a.C||a.da)&&(b.size=a.Qa);null!=a.Ra&&(a.C||a.da)&&(b.inview=a.u(a.Ra));a.D&&(b.volume=PT(a,g.Pc(a.segments,function(d){return d.volume})),b.muted=PT(a,g.Pc(a.segments,function(d){return d.muted?1:0})),b.st=PT(a,g.Pc(a.segments,function(d){return d.startTime})),b.et=PT(a,g.Pc(a.segments,function(d){return d.endTime})),ei(a.segments,
function(d){return 1!==d.playbackRate})&&(b.rate=PT(a,g.Pc(a.segments,function(d){return d.playbackRate}))),ei(a.segments,function(d){return"-"!==d.zm})&&(b.als=g.Pc(a.segments,function(d){return d.zm}).join(",")));
ei(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=PT(a,g.Pc(a.segments,function(d){return d.visibilityState})));
ei(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=PT(a,g.Pc(a.segments,function(d){return d.connectionType})));
ei(a.segments,function(d){return 0!==d.C})&&(b.blo=PT(a,g.Pc(a.segments,function(d){return d.C})));
ei(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Pc(a.segments,function(d){return d.B}).join(","));
ei(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Pc(a.segments,function(d){return d.clipId}).join(","));
if(ei(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Pc(a.segments,function(d){return d.u}).join(",")}cq()&&a.G&&(b.ctt=a.G,b.cttype=a.Y,b.mdx_environment=a.mdxEnvironment);
a.tb&&(b.etype=void 0!==a.K?a.K:0);a.Xn&&(b.uoo=a.Xn);a.yu&&(b.upt=a.yu);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=tua[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
PT=function(a,b){return g.Pc(b,a.u).join(",")};
RT=function(a){var b=g.aH(),c=a.zg;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=mG(a);c=a.T();"leanback"===f?e="WATCH":c.ca("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.ni?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(c.Aa){f=c.Aa.split(",");e=[];f=g.q(f);for(var h=f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.getPlayerType())d.playerType=
e;if(e=c.deviceParams.ctheme)d.theme=e;a.Hq&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.be)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;if(e=a.mdxControlMode)d.mdxControlMode=uua[e];b.request=d;d=b.user||{};if(e=a.Tf)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.kh)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};b.user=d;if(d=a.contextParams)b.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce=
a;if(a=c.Ga)b.thirdParty={embedUrl:a};return b};
ST=function(a,b,c){var d=a.videoId,e=RT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ap()),referer:document.location.toString(),signatureTimestamp:18575};g.hs.getInstance();a.Il&&(h.autonav=!0);g.js(0,141)&&(h.autonavState=g.js(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.js(0,66);pG(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.Rw&&(h.fling=!0);var l=a.Pm;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=vua[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",
value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.Ns;if(null!=l){l={startWalltime:String(l)};if(m=a.jn)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.nj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.R(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.Re)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),
m={clientName:wua[n[0]]||"UNKNOWN_INTERFACE",platform:xua[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.Yi)l.skippableAdsSupported=m.split(",").includes("ska");h.mdxContext=l}l=b.width;
0<l&&(h.playerWidthPixels=l);if(b=b.height)h.playerHeightPixels=b;0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);a.ca("hoffle_save")&&rG(a)&&(d.forOffline=!0);if(a=a.T().embedConfig)d.serializedThirdPartyEmbedConfig=a;return d};
yua=function(a){var b=a.T();g.hs.getInstance();var c={context:RT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===mG(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Li&&(c.showContentOwnerOnly=!0);g.js(0,141)&&(c.autonavState=g.js(0,140)?"STATE_OFF":"STATE_ON");return c};
Aua=function(a,b,c,d){var e=window.location.search;if(38===b.Eg&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Jd("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.dM});if(30===b.Eg&&"docs"===a.playerStyle)return g.Jd("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.ie,authkey:b.authKey,eurl:a.Ga});if(33===b.Eg&&"google-live"===a.playerStyle)return g.Jd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.X&&g.Fr(Error("getVideoInfoUrl for invalid namespace: "+a.X));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Ga,ps:a.playerStyle,el:mG(b),hl:a.ue,list:b.playlistId,agcid:b.bA,aqi:b.adQueryId,sts:18575,lact:Ap()};g.Wa(f,a.deviceParams);a.Aa&&(f.forced_experiments=a.Aa);b.Tf?(f.vvt=b.Tf,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Ze()&&(f.access_token=b.Ze());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Wu&&(f.ad_id=b.Wu);null!==b.bv&&(f.ad_sys=b.bv);null!==b.Ov&&(f.encoded_ad_playback_context=b.Ov);b.Ky&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ui&&2!==a.Ui&&(f.cc_load_policy=a.Ui);a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Cr&&(f.endscreen_ad_tracking=b.Cr);var h=a.K.get(b.videoId);h&&h.Fq&&(f.ic_track=h.Fq);b.zg&&(f.itct=b.zg);pG(b)&&
(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Il&&(f.autonav="1");b.Vw&&(f.noiba="1");g.R(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Re&&(f.ytr=b.Re)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Re);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Yi&&(f.ytrcc=b.Yi);b.dx&&(f.utpsa="1");b.Rw&&(f.is_fling="1");b.Tw&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Pm&&(h=3===b.Pm.split("|").length,f.force_ad_params=h?b.Pm:"||"+b.Pm);b.Hn&&(f.preload=
b.Hn);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.nj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");nG(b)&&(f.content_v=nG(b));b.ni&&(f.livemonitor=1);a.ie&&(f.authuser=a.ie);a.pageId&&(f.pageid=a.pageId);a.Bb&&(f.ei=a.Bb);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Ns&&(f.live_start_walltime=b.Ns);a.C&&b.jn&&(f.live_manifest_duration=b.jn);a.C&&b.playerParams&&(f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.Ny&&
(f.tkn=b.Ny);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.kh&&(f.kpt=b.kh);b.Js&&(f.kids_age_up_mode=b.Js);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Hq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.be?(h=null!=b.be.latitudeE7&&null!=b.be.longitudeE7?b.be.latitudeE7+","+b.be.longitudeE7:",",h+=","+(b.be.clientPermissionState||0)+","+(b.be.locationRadiusMeters||"")+","+(b.be.locationOverrideToken||"")):h=null;h&&
(f.uloc=h);b.lp&&(f.internalipoverride=b.lp);a.embedConfig&&(f.embed_config=a.embedConfig);a.Li&&(f.co_rel="1");0<a.Ve.length&&(f.ancestor_origins=Array.from(a.Ve).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.mr&&b.qr&&(f.clip=b.mr,f.clipt=b.qr);b.wr&&(f.disable_watch_next="1");a.ca("web_player_gvi_wexit_diff")&&
(f.player_request=JSON.stringify(ST(b,c,d)));a.ca("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(yua(b)));for(var l in f)!zua.has(l)&&f[l]&&512<String(f[l]).length&&(g.Gr(Error("GVI param too long: "+l)),f[l]="");b=a.P;g.AC(a)&&(b=Ev(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.P);a=g.Jd(b+"get_video_info",f);e&&(a=mq(a,e));return a};
g.TT=function(a,b){return a.P+"timedtext_video?ref=player&v="+b.videoId};
g.UT=function(a,b){a.feature=b;return a};
Bua=function(a){var b={};a.yF&&(b.ytrext=a.yF);return g.Wb(b)?void 0:b};
VT=function(a){g.B.call(this);this.provider=a;this.currentPlayerState="paused";this.B=NaN;this.K=[10,10,10,40];this.P=this.N=0;this.ba=this.Y=this.da=this.ea=this.X=this.V=this.C=!1;this.D=NaN;this.F=this.G=void 0;this.u=new mua(a)};
Eua=function(a){if(!a.C){g.R(a.provider.u.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.iq||g.Fo(Error("Playback for EmbedPage"));var b=WT(a,"playback");a.K=[10+a.provider.videoData.an,10,10,40+a.provider.videoData.vp-a.provider.videoData.an,40];qua(a.u);b.B=XT(a,!0);b.send();if(a.provider.videoData.St){b=a.provider.u;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.St,oid:c.NE,ptchn:c.ME,pltype:c.OE,content_v:nG(c)};
b=g.Jd(b.P+"ptracking",c);ZT(a,b)}a.provider.videoData.Lo&&($T(a,"playback"),a.D||Cua(a));a.provider.videoData.Ug||Dua(a);a.C=!0;a=a.u;a.u=a.provider.B();a.lastUpdateTime=g.AT(a.provider);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.K=!0}};
XT=function(a,b,c){c=void 0===c?NaN:c;var d=g.AT(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.K[a.N];a.N+1<a.K.length&&a.N++;var f=c+e;a.B=g.Go(function(){if(!a.la()){a.B=NaN;a.u.update();var h=oua(a.u),l=Fua(a,h);b&&(l.F=f);var m=a.provider.ca("html5_expanded_max_vss_pings")?1E3:400;m=a.P>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=XT(a,!0,f));l.send();a.P++}},1E3*(f-d));
return f};
WT=function(a,b){var c=a.provider,d=c.De();g.Wa(d,c.videoData.De());g.Wa(d,{state:a.currentPlayerState});c=new NT(a.provider.videoData,a.provider.u,b,d);c.ak=a.provider.B();a.provider.videoData.isLivePlayback||(c.ra=a.provider.F());a.provider.videoData.ma&&(d=a.provider.videoData.ma.Ce(c.ak))&&(c.ka=d-c.ak);c.Tb=g.AT(a.provider);c.segments=[LT(a.provider)];a.provider.videoData.enableServerStitchedDai&&a.F&&a.G&&(c.clientPlaybackNonce=a.F,c.videoId=a.G);return c};
Fua=function(a,b){var c=WT(a,"watchtime");c.segments=b;c.ak=a.u.u;return c};
aU=function(a){a.u.update();return Fua(a,oua(a.u))};
Dua=function(a){a.provider.videoData.remarketingUrl&&!a.ea&&(ZT(a,a.provider.videoData.remarketingUrl),a.ea=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.da&&(ZT(a,a.provider.videoData.youtubeRemarketingUrl),a.da=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(ZT(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ba&&(ZT(a,a.provider.videoData.ppvRemarketingUrl),a.ba=!0);Gua(a)};
Hua=function(a){if(!a.la()&&a.C){a.currentPlayerState="paused";var b=aU(a);b.isFinal=!0;b.send();g.Io(a.D);a.dispose()}};
Cua=function(a){a.D=Ho(function(){$T(a,"heartbeat")},3E4)};
$T=function(a,b){var c=a.provider.u,d=a.provider.videoData,e={ns:c.X,el:mG(d),eurl:c.Ga,fmt:d.Ma?Wu(d.Ma):0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.B(),video_id:d.videoId,metric:b};pG(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=nua(a.u));g.Wa(e,c.deviceParams);ZT(a,g.Jd(c.P+"live_204",e))};
Iua=function(a,b,c){a.V||(c||(c=WT(a,"atr")),c.V=b,c.send(),a.V=!0)};
Gua=function(a){a.provider.videoData.Uc.eventLabel=mG(a.provider.videoData);a.provider.videoData.Uc.playerStyle=a.provider.u.playerStyle;a.provider.videoData.Kn&&(a.provider.videoData.Uc.feature="pyv");a.provider.videoData.Uc.vid=a.provider.videoData.videoId;var b=a.provider.videoData.Uc;a=a.provider.videoData;a=a.isAd()||!!a.Kn;b.isAd=a};
Kua=function(a){var b=WT(a,"engage");b.K=1;a=Jua(a.provider);return g.Va(sua,b.uri,QT(b),OT(b),a,b.N,b.P)};
ZT=function(a,b){var c=a.provider.videoData.Ze(),d=a.provider.ca("web_player_vss_pageid_header")?a.provider.u.pageId:void 0,e=a.provider.u.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.R(a.provider.u.experiments,"vss_pings_using_networkless"),h=g.R(a.provider.u.experiments,"vss_send_then_write");c=BT(b,d,e,c,void 0);CT(b,c,{token:a.provider.videoData.Nh,Ry:a.provider.videoData.pg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
bU=function(a){g.B.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.currentVideoId=void 0;this.C=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.Un&&(this.u=new VT(this.provider),g.C(this,this.u),this.qoe=new ET(this.provider),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.currentVideoId=this.provider.videoData.videoId)&&this.C.set(this.currentVideoId,this.u));eua(this.provider)&&(this.B=new zT(this.provider,function(c){b.qoe&&FT(b.qoe,
"h5h",c,void 0)}),g.C(this,this.B))};
g.cU=function(a){a.provider.videoData.enableServerStitchedDai?a.currentVideoId&&(a=a.C.get(a.currentVideoId))&&MT(a.u):a.u&&MT(a.u.u)};
Lua=function(a,b,c,d){a.qoe&&(a=a.qoe,g.DT(a,g.AT(a.provider),"ad_playback",[b,c,d]))};
Mua=function(a,b){a.u&&Iua(a.u,b)};
Nua=function(a){if(!a.u)return null;var b=WT(a.u,"atr");return function(c){a.u&&Iua(a.u,c,b)}};
cra=function(a){return a.u?Kua(a.u):function(){}};
dU=function(a,b){this.C=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
Oua=function(a){a=a.timerName;bB("yt_sts","p",a);cB("_start",void 0,a)};
Pua=function(a,b,c){var d=g.qC(b.Pa)&&b.Pa.Df&&oG(b);if(b.Pa.Bf&&(mC(b.Pa)||VC(b.Pa)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||so("TIMING_ACTION",a.C.csiPageType);a.C.csiServiceName&&so("CSI_SERVICE_NAME",a.C.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,cB(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,bB(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}bB("yt_pvis",hha(),a.timerName);bB("yt_pt","html5",a.timerName);
c&&!jB("pbs",a.timerName)&&a.tick("pbs",c);c=a.C;!VC(c)&&!mC(c)&&jB("_start",a.timerName)&&nB(a.timerName)}};
Qua=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.C=0;this.muted=!1;this.zm=this.clipId="-"};
Rua=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.videoData=a;this.u=b;this.C=void 0;this.De=c;this.F=d;this.B=e;this.D=f;this.P=h;this.getAudioTrack=l;this.getPlaybackRate=m;this.G=n;this.getVisibilityState=p;this.K=r||function(){};
this.V=t||function(){};
this.N=w||function(){return-1}};
g.AT=function(a){return Jua(a)()};
Jua=function(a){if(!a.C){var b=g.Va(function(d){var e=(0,g.O)();d&&631152E6>=e&&(M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.R(a.u.experiments,"html5_validate_yt_now")),c=b();
a.C=function(){return Math.round(b()-c)/1E3};
a.V()}return a.C};
fua=function(a){if(navigator.connection&&navigator.connection.type)return Sua[navigator.connection.type]||Sua.other;if(g.zC(a.u)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
LT=function(a){var b=new Qua;b.B=a.De().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.u.Dc&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=fua(a);b.volume=a.De().volume;b.muted=a.De().muted;b.clipId=a.De().clipid||"-";b.zm=a.videoData.zm||"-";return b};
Tua=function(){this.B=this.mediaTime=NaN;this.u=this.seeking=!1};
eU=function(a,b){return b>a.mediaTime+.001&&b<a.mediaTime+5};
fU=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.seeking)b!==a.mediaTime&&(a.seeking=!1);else if(0<b&&a.mediaTime===b)return c-a.B>(d||!a.u?1500:400);a.mediaTime=b;a.B=c;return!1};
Uua=function(a,b){this.videoData=a;this.Ia=b};
Vua=function(a,b,c){return b.dr(c).then(function(){return Yr(new Uua(b,b.Ia))},function(d){d instanceof Error&&g.Fo(d);
d=b.isLivePlayback&&!g.UB(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.sg,drm:""+ +VF(b),f18:""+ +(0<=b.Iq.indexOf("itag=18")),c18:""+ +yB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.ma&&(VF(b)?(e.f142=""+ +!!b.ma.u["142"],e.f149=""+ +!!b.ma.u["149"],e.f279=""+ +!!b.ma.u["279"]):(e.f133=""+ +!!b.ma.u["133"],e.f140=""+ +!!b.ma.u["140"],e.f242=""+ +!!b.ma.u["242"]),e.cAVC=""+ +zB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +zB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +zB('video/webm; codecs="vp9"'));if(b.Yc){e.drmsys=b.Yc.u;var f=0;b.Yc.B&&(f=Object.keys(b.Yc.B).length);e.drmst=""+f}return new sB(d,!0,e)})};
Xua=function(a,b,c){g.P.call(this);this.videoData=a;this.experiments=b;this.N=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Wua;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.ni?c.B=3:g.gG(a)&&(c.B=2);g.R(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.G=!0);var d=QF(a);c.F=2===d||-1===d;c.F&&(c.V++,21530001===OF(a)&&(c.K=g.Q(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Xj("trident/")||Xj("edge/"))d=g.Q(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.Q(b,"html5_minimum_readahead_seconds")&&(c.C=g.Q(b,"html5_minimum_readahead_seconds"));g.Q(b,"html5_maximum_readahead_seconds")&&(c.N=g.Q(b,"html5_maximum_readahead_seconds"));g.R(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.Q(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.Q(b,"html5_allowable_liveness_drift_chunks"));g.Q(b,"html5_readahead_ratelimit")&&(c.P=g.Q(b,"html5_readahead_ratelimit"));switch(OF(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.X=g.R(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.F=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.ni&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(OF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=gU(this,b)};
Yua=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.X&&3===QF(a.videoData)&&--c;return hU(a)*c};
jU=function(a,b){var c=iU(a);var d=a.policy.u;a.G||(d=Math.max(d-1,0));d*=hU(a);return b>=c-d};
iU=function(a){return Math.max(a.N()-Yua(a,!0),a.videoData.wc())};
Zua=function(a,b,c){b=jU(a,b);c||b?b&&(a.C=!0):a.C=!1;a.F=2===a.policy.B||3===a.policy.B&&a.C};
$ua=function(a,b){var c=jU(a,b);a.G!==c&&a.W("livestatusshift",c);a.G=c};
hU=function(a){return a.videoData.ma?yA(a.videoData.ma)||5:5};
gU=function(a,b){b=Math.max(Math.max(a.policy.V,Math.ceil(a.policy.C/hU(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.N/hU(a))),b)};
Wua=function(){this.V=1;this.C=0;this.N=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.X=this.G=!1};
mU=function(a,b,c,d){g.B.call(this);this.D=a;this.W=b;this.visibility=c;this.X=d;this.B=this.C=null;this.u=0;this.G={};this.playerState=new g.FL;this.F=new g.G(this.Y,1E3,this);g.C(this,this.F);this.da=new kU({delayMs:g.Q(this.D.experiments,"html5_seek_timeout_delay_ms")});this.V=new kU({delayMs:g.Q(this.D.experiments,"html5_long_rebuffer_threshold_ms")});this.ha=lU(this,"html5_seek_set_cmt");this.ba=lU(this,"html5_seek_jiggle_cmt");this.ea=lU(this,"html5_seek_new_elem");lU(this,"html5_decoder_freeze_timeout");
this.ka=lU(this,"html5_unreported_seek_reseek");this.N=lU(this,"html5_long_rebuffer_jiggle_cmt");this.P=lU(this,"html5_reload_element_long_rebuffer");this.K=lU(this,"html5_ads_preroll_lock_timeout")};
lU=function(a,b){var c=g.Q(a.D.experiments,b+"_delay_ms"),d=g.R(a.D.experiments,b+"_cfl");return new kU({delayMs:c,ur:d})};
nU=function(a,b,c,d,e,f,h){ava(b,c)?(d=a.qb(b),d.wn=h,d.wdup=a.G[e]?"1":"0",a.W("qoeerror",e,d),a.G[e]=!0,b.ur||f()):(b.eu&&b.B&&!b.D?(f=(0,g.O)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.eu,f=b.u&&f-b.u>b.ly||c?b.D=!0:!1):f=!1,f&&(f=a.qb(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.tB(f),a.W("ctmp","workaroundReport",h),d&&(b.reset(),a.G[e]=!1)))};
kU=function(a){a=void 0===a?{}:a;var b=void 0===a.ly?1E3:a.ly,c=void 0===a.eu?3E4:a.eu,d=void 0===a.ur?!1:a.ur;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.ly=b;this.eu=c;this.ur=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
ava=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.O)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1};
pU=function(a,b,c,d){g.P.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.eb=d;this.policy=new bva(this.X);this.P=new mU(this.X,(0,g.z)(this.W,this),this.visibility,this.eb);a={};this.ha=(a.seekplayerrequired=this.uQ,a.videoformatchange=this.FN,a);this.playbackData=null;this.Ga=new g.rs;this.V=this.B=this.F=this.u=null;this.C=NaN;this.K=0;this.G=null;this.ka=NaN;this.N=this.Y=null;this.za=this.ba=!1;this.da=new g.G(function(){cva(e,!1)},this.policy.u);
this.tb=new g.G(function(){oU(e)});
this.Aa=new g.G(function(){e.ba=!0;dva(e)});
this.Qa=this.D=0;this.ra=!0;this.Ka=0;this.Ra=NaN;this.ea=new g.G(function(){var f=e.X.ac;f.u+=1E4/36E5;f.u-f.C>1/6&&(XB(f),f.C=f.u);e.ea.start()},1E4);
this.ca("html5_unrewrite_timestamps")?this.ha.timestamp=this.Qn:this.ha.timestamp=this.XK;g.C(this,this.Ga);g.C(this,this.da);g.C(this,this.Aa);g.C(this,this.tb);g.C(this,this.ea)};
eva=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.V=new Qha(function(){a:{if(a.playbackData&&a.playbackData.Ia.xc()){if(NF(a.videoData)&&a.F){var c=a.F.Ka.u()||0;break a}if(a.videoData.ma){c=a.videoData.ma.N;break a}}c=0}return c}),a.B=new Xua(a.videoData,a.X.experiments,function(){return a.Dd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.K=a.K||a.videoData.startSeconds||0)};
rU=function(a,b){g.us(a.Ga);(a.u=b)?(fva(a),oU(a)):qU(a);var c=a.P;(c.C=b)&&c.F.Hb()};
tU=function(a,b){a.F&&ws(a.F,a.ha,a);(a.F=b)?(vs(b,a.ha,a),sU(a,!0)):qU(a);a.P.B=b};
uU=function(a){return a.getCurrentTime()-a.pc()};
vU=function(a){return a.B?iU(a.B):Infinity};
wU=function(a){return!!a.B&&a.B.F};
cva=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!jU(c,d)&&c.F?(c.policy.G&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):c=d<c.videoData.wc()?Math.min(c.videoData.wc()+10,iU(c)):NaN;if(!isNaN(c)){if(a.ca("html5_in_buffer_ptl")&&a.F&&b){d=a.da.isActive();var e=iU(a.B);if((e=Sla(a.F,e-a.pc()))&&!d){a.policy.u&&a.da.start();a.W("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.pc()));a.seekTo(e+a.pc());return}}a.ca("html5_peg_to_live_logging")&&a.W("ctmp","ptl","cmt."+a.getCurrentTime()+
";seekTo"+(c+a.pc()));a.seekTo(c)}}};
sU=function(a,b){if(a.B&&a.F){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.B,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){var e=gU(c,c.u-1);break b}if(c.policy.D){e=gU(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.B=[],c.D=0;c=d}else c=!1;c&&a.W("livereadaheadchanged",Yua(a.B));c=a.F;d=a.B.u;e=a.B;e=(e.u-1+e.policy.u)*hU(e);var f=a.B.policy.K;c.tb=Math.max(d-1,0);c.P&&(c.P.Y=e);
c.Dc=f}};
xU=function(a){return a.videoData.isLivePlayback&&!!a.videoData.Ia&&!a.videoData.Ia.xc()};
dva=function(a){gva(a).then(void 0,function(){qU(a)});
hva(a).then(function(b){a.N&&(a.N.resolve(b),a.W("seekend"));qU(a)},function(){qU(a)});
a.W("seekstart")};
gva=function(a){if(!a.Y)if(a.F)if(isFinite(a.C))a.Y=a.F.seek(a.C-a.D);else{var b=a.F;pE(b);b.P&&ND(b.P,b.B.u);DE(b);b=b.N;var c=Math.max(b.B.C.G||0,b.u.C.G||0);lz(b.B);lz(b.u);var d=b.F,e;for(e in d.u)Qz(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.W("setcurrenttime",c);b.C=!0;b.N=new $w;a.Y=b.N;a.C=a.F.getCurrentTime()+a.D}else a.Y=Dm(a.C-a.D);return a.Y};
hva=function(a){var b=a.G;b||(a.G=new $w,b=a.G,oU(a));return b};
iva=function(a,b,c){return isNaN(b)?NaN:g.be(b,a.wc(),a.Dd(c))};
oU=function(a){if(a.G)if(!a.ca("html5_nondash_live_seek_killswitch")&&xU(a)&&a.u&&0<a.u.gg()&&0<QS(a.u)&&(a.C=iva(a,a.C,!1)),!a.u||!jva(a))a.tb.start(750);else if(!isNaN(a.C)&&isFinite(a.C)&&a.ka!==a.C-a.D){var b=a.u.getCurrentTime()-a.C;if(Math.abs(b)<=a.Ka)a.G&&a.G.resolve(a.u.getCurrentTime());else if(!a.videoData.isLivePlayback&&a.C>=a.Dd()-.1)a.C=a.Dd(),a.G.resolve(a.Dd()),a.W("ended");else try{var c=a.C-a.D;a.u.seekTo(c);a.P.u=c;a.ka=c;a.K=a.C}catch(d){}}};
jva=function(a){if(!a.u||0===a.u.gg()||0<a.u.oh())return!1;var b=0<a.u.getCurrentTime();if(!a.ca("html5_nondash_mediaelementready_killswitch")&&!a.xc()&&!a.videoData.isLivePlayback&&VF(a.videoData))return b;if(0<=a.C){var c=a.u.Yo();if(c.length||!b)return Ky(c,a.C-a.D)}return b};
qU=function(a){a.C=NaN;a.ka=NaN;a.G=null;a.Y=null;a.N=null;a.ba=!1;a.za=!1;a.Ka=0;a.da.stop();a.Aa.stop()};
fva=function(a){if(a.u){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ga.R(a.u,c.value,function(d){var e=a.u;switch(d.type){case "seeking":d=e.getCurrentTime()+a.D;if(!a.G||a.za&&d!==a.C)a.G=new $w,a.ka=d,e=e.getCurrentTime(),a.P.u=e,a.seekTo(d),a.za=!0;break;case "seeked":a.G&&a.G.resolve(a.u.getCurrentTime());break;case "loadedmetadata":a.ra?(e="ss.",d=0,(hG(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.ma?(d=a.videoData.liveUtcStartSeconds||a.videoData.qk,e="utc.",d=a.Dd()-a.Ce(a.Dd())+d):a.videoData.ma&&a.videoData.ma.isManifestless&&a.videoData.qk?(e="mss.",d=a.videoData.qk+a.pc()):a.ca("html5_unrewrite_timestamps")&&a.videoData.ou&&(e="stss.",d=a.videoData.ou),d?(a.seekTo(d),a.W("ctmp","startSeconds",e+String(d)),a.ra=!1):a.videoData.qk&&a.W("ctmp","startSeconds",""+e+(a.videoData.qk+a.pc())),e=!!d):e=!1;a.ca("html5_nondash_live_seek_killswitch")&&
!e&&xU(a)&&(a.C=isFinite(a.C)?g.be(a.C,a.wc(),a.Dd()):a.Dd());oU(a);break;case "progress":oU(a)}});
a.N||a.K||a.policy.C||!a.u.fu()||a.seekTo(.01)}};
kva=function(a){if(!a.u)return 0;if(hG(a.videoData)){var b=tsa(a.u)+a.D-a.wc();a=a.Dd()-a.wc();return Math.max(0,Math.min(1,b/a))}return SS(a.u)};
bva=function(a){this.u=g.Q(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.R(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.ca("html5_seek_over_discontinuities");this.C=a.ca("html5_requires_seek_for_playback_at_zero_killswitch")};
lva=function(){var a=Xo();return!(!a||"visible"===a)};
nva=function(a){var b=mva();b&&document.addEventListener(b,a,!1)};
ova=function(a){var b=mva();b&&document.removeEventListener(b,a,!1)};
mva=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Wo+"VisibilityState"])return"";a=Wo+"visibilitychange"}return a};
yU=function(){g.P.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.B=this.u=this.inline=!1;this.D=function(){a.Dg()};
nva(this.D);this.F=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C)};
zU=function(){g.B.call(this);this.C={};this.u={};this.B=new g.G(this.D,250,this);g.C(this,this.B)};
BU=function(a,b,c,d){a.C[b]=c;a.u[b]=new AU(void 0===d?!1:d)};
CU=function(a,b){if(a.u[b]){var c=a.u[b].buffer;for(var d=[];c.B!==c.u;)c.B=(c.B+1)%c.data.length,d.push(c.data[c.B]);c=d}else c=[];return c};
DU=function(a,b){return a.u[b]?KD(a.u[b].buffer):0};
AU=function(a){this.B=a;this.u=NaN;this.buffer=new JD(100)};
EU=function(){this.u=this.started=!1};
pva=function(a){a=aq(a,{key:g.L("INNERTUBE_API_KEY")});var b=g.L("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Ad(a)));return a};
qva=function(a){return{method:"POST",mode:bq(a)?"same-origin":"cors",credentials:bq(a)?"same-origin":"include"}};
FU=function(a,b,c,d,e){this.u=a;this.D=b;this.B=c;this.handleError=d;this.C=e};
HU=function(a,b,c){var d=void 0===d?Qw:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.Gy&&(e=a.u.Gy[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.Gv&&(f=a.u.Gv[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.sr[h]&&(f=a.u.sr[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new Sq("Error: No request builder found for command.",b)),Dm({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?Qw:d;c={context:g.aH(b.clickTrackingParams)};if(e=h.C(b)){h.u(c,e,f);var m;h=GU(h.B());(f=null===(m=null===(l=b.commandMetadata)||void 0===l?void 0:l.webCommandMetadata)||void 0===m?void 0:m.apiUrl)&&(h=f);l=pva(h);l={input:l,Mn:qva(l),Mw:c,config:Object.assign({},void 0)};l.config.dl?l.config.dl.identity=d:l.config.dl={identity:d}}else g.Fr(new Sq("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return Dm(rva(a,l));a.handleError(new Sq("Error: Failed to build request for command.",
b));return Dm({})};
iH=function(a,b,c){var d=void 0===d?Qw:d;var e=void 0===e?!0:e;b.context||(b.context=g.aH(void 0,e));c=pva(c);b={input:c,Mn:qva(c),Mw:b,config:{dl:{identity:d}}};return Dm(rva(a,b))};
rva=function(a,b){return Ue(a,function d(){var e=this,f,h,l,m,n;return Aa(d,function(p){if(1==p.u)return f=e,h=JSON.stringify(b.Mw),e.B.C?(l=sva(e,b),p.Kd(2)):ra(p,tva(e,b),3);2!=p.u&&(l=p.B);b.Mn=Object.assign(Object.assign({},b.Mn),{headers:l});g.vo("enable_get_account_switcher_endpoint_on_webfe")?(m=Object.assign({},b.Mn),"POST"===b.Mn.method&&(m=Object.assign(Object.assign({},m),{body:h}))):m=Object.assign(Object.assign({},b.Mn),{body:h});n=e.D.fetch(b.input,m);return p["return"](n.then(function(r){if(r&&
f.C)for(var t=g.q(f.C),w=t.next();!w.done;w=t.next())w.value.B(r,b.Mw);return Promise.resolve(r)}))})})};
uva=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.Gy)return-1<xo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.Gy[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.Gv)return-1<xo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.Gv[b.continuationCommand.request];for(var e in b)if(a.u.sr[e]){if(-1<xo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
tva=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.dl)||void 0===d?void 0:d.identity)||Qw,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.dl)||void 0===f?void 0:f.sessionIndex;return tea(a.B,h,{sessionIndex:l}).then(function(m){return Promise.resolve(Object.assign(Object.assign({},vva()),m))})};
sva=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.dl)||void 0===d?void 0:d.identity)||Qw,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.dl)||void 0===f?void 0:f.sessionIndex;h=a.B.u(h,{sessionIndex:l});return Object.assign(Object.assign({},vva()),h)};
vva=function(){var a={"Content-Type":"application/json"},b=g.L("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);return a};
xva=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=wva[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(wva).forEach(function(h){var l=g.q(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
GU=function(a){return"/youtubei/v1/"+xva(a)};
IU=function(){};
JU=function(){};
KU=function(){};
LU=function(){};
MU=function(){};
NU=function(){this.u=void 0};
yva=function(){NU.u||(NU.u=new NU);return NU.u};
zva=function(a){var b;g.vo("enable_get_account_switcher_endpoint_on_webfe")?b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}):b=a.json();
a.redirected||a.ok||b.then(function(c){g.Gr(new Sq("Error: API fetch failed",a.status,a.url,c))});
return b};
PU=function(a){if(!OU){var b={sr:{playlistEditEndpoint:MU,subscribeEndpoint:JU,unsubscribeEndpoint:KU,modifyChannelNotificationPreferenceEndpoint:LU}},c=g.vo("web_enable_client_location_service")?ZG():void 0,d=[];c&&d.push(c);void 0===a&&(a=Aq());c=yva();FU.u=new FU(b,c,a,Qea,d);OU=FU.u}return OU};
QU=function(){zq.apply(this,arguments);this.B=new Headers};
RU=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.G=new Uint8Array(64);this.B=0;this.F.set(a);this.C.set(a);for(a=0;64>a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()};
Bva=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+Ava[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+r;a.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0};
Dva=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;Cva(a);return b};
Cva=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
Eva=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t;return Aa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Kd(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);sa(w,3);return ra(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,ra(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=
new RU(a);t.update(b);t.update(c);var x=Dva(t);t.update(t.F);t.update(x);x=Dva(t);t.reset();f=x}return w["return"](f)}})})};
Gva=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p;return Aa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.Kd(2);break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};sa(r,3);return ra(r,Fva(a),5);case 5:return m=r.B,ra(r,h.encrypt(l,m,b),6);case 6:n=r.B;f=new Uint8Array(n);ta(r,2);break;case 3:ua(r);case 2:return f||(p=new OS(a),osa(p,c),f=p.encrypt(b)),r["return"](f)}})})};
Fva=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
SU=function(a){var b=this,c=new OS(a);return function(d,e){return Ue(b,function h(){return Aa(h,function(l){osa(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
TU=function(a){this.u=a;this.iv=fT(Es())};
Hva=function(a,b){return Ue(a,function d(){var e=this;return Aa(d,function(f){return f["return"](Eva(e.u.B,b,e.iv))})})};
UU=function(a){this.B=a;this.D=this.u=0;this.C=-1};
VU=function(a){var b=hv(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=hv(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
WU=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=VU(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:VU(a);break;case 1:a.u+=8;break;case 2:c=VU(a);a.u+=c;break;case 5:a.u+=4}}return!1};
XU=function(a,b,c){c=void 0===c?0:c;return WU(a,b)?VU(a):c};
YU=function(a,b){var c=void 0===c?"":c;if(!WU(a,b))return c;c=VU(a);if(!c)return"";var d=fv(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.We(d)};
ZU=function(a,b){var c=void 0===c?null:c;if(!WU(a,b))return c;c=VU(a);var d=fv(a.B,a.u,c);a.u+=c;return d};
Iva=function(a){this.iv=ZU(new UU(a),5)};
Jva=function(a){a=ZU(new UU(a),4);this.u=new Iva(new Zu([a]))};
Lva=function(a){a=new UU(a);this.u=XU(a,1);this.itag=XU(a,3);this.lastModifiedTime=XU(a,4);this.xtags=YU(a,5);XU(a,6);XU(a,8);XU(a,9,-1);XU(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===Kva[qw[""+this.itag]]};
Mva=function(a){this.body=null;a=new UU(a);this.onesieProxyStatus=XU(a,1,-1);this.body=ZU(a,4)};
Nva=function(a){a=new UU(a);this.startTimeMs=XU(a,1);this.endTimeMs=XU(a,2)};
Ova=function(a){var b=new UU(a);a=YU(b,3);var c=XU(b,5);this.u=XU(b,7);var d=ZU(b,14);this.B=new Nva(new Zu([d]));b=YU(b,15);this.C=a+";"+c+";"+b};
Pva=function(a){this.C=a;this.B=!1;this.u=[]};
Qva=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}};
Rva=function(a){var b,c;return Ue(this,function e(){var f=this,h,l,m,n;return Aa(e,function(p){switch(p.u){case 1:h=f;if(null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p["return"](SU(a));l=window.crypto.subtle;sa(p,2);return ra(p,Fva(a),4);case 4:m=p.B;ta(p,3);break;case 2:return ua(p),p["return"](SU(a));case 3:return p["return"](function(r,t){return Ue(h,function x(){var y,D;return Aa(x,function(E){if(1==E.u){if(n)return E["return"](n(r,t));y={name:"AES-CTR",
counter:t,length:128};sa(E,2);D=Uint8Array;return ra(E,l.encrypt(y,m,r),4)}if(2!=E.u)return E["return"](new D(E.B));ua(E);n=SU(a);return E["return"](n(r,t))})})})}})})};
$U=function(a){g.P.call(this);var b=this;this.D=a;this.u={};this.C={};this.B=this.iv=null;this.queue=new Pva(function(c,d){g.Ua(b);b.W("STREAM_DATA",{id:c,data:d})})};
Sva=function(a,b,c){var d=hv(b,0);b=fv(b,1);d=a.u[d]||null;g.Ua(a);d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||Qva(a))};
Tva=function(a,b){Ue(a,function d(){var e=this,f,h,l,m,n,p,r,t;return Aa(d,function(w){switch(w.u){case 1:return g.Ua(e),e.W("PLAYER_RESPONSE_RECEIVED"),f=fv(b),sa(w,2),ra(w,e.D(f,e.iv),4);case 4:h=w.B;ta(w,3);break;case 2:return l=ua(w),g.Ua(e),e.W("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new Mva(new Zu([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new sB("onesie.response.badproxystatus",!1,n),e.W("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();
r=m.body;t=g.v.TextDecoder?(new TextDecoder).decode(r):g.We(r);g.Ua(e);e.W("PLAYER_RESPONSE_READY",t);w.u=0}})})};
aV=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)};
bV=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.B);a.B=c;a.view=new DataView(a.B.buffer)}};
cV=function(a,b){if(268435455<b){bV(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(bV(a,4);127<b;)a.view.setUint8(a.u,b&127|128),b>>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1};
dV=function(a,b,c){cV(a,b<<3|2);b=c.length;cV(a,b);bV(a,b);a.B.set(c,a.u);a.u+=b};
eV=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(fT(g.Ve(c)).buffer);dV(a,b,c)};
fV=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
Uva=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
gV=function(a){var b=a.value;this.name=a.name;this.value=b};
Vva=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
Wva=function(a){this.Pv=a.Pv};
Xva=function(a,b){if(b+1<=a.totalLength){var c=hv(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)c=hv(a,b++);else if(2===c){c=hv(a,b++);var d=hv(a,b++);c=(c&63)+64*d}else if(3===c){c=hv(a,b++);d=hv(a,b++);var e=hv(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=hv(a,b++);d=hv(a,b++);e=hv(a,b++);var f=hv(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),cv(a,c,4)?c=dv(a).getUint32(c-a.C,!0):(d=hv(a,c+2)+256*hv(a,c+3),c=hv(a,c)+256*(hv(a,
c+1)+256*d)),b+=5;return[c,b]};
Yva=function(a){this.B=a;this.u=new Zu};
Zva=function(a){var b=g.q(Xva(a.u,0));var c=b.next().value;var d=b.next().value;d=g.q(Xva(a.u,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.u.totalLength&&(d=a.u.split(d).nm.split(b),b=d.ws,d=d.nm,a.B(c,b),a.u=d,Zva(a))};
$va=function(a){var b,c;a:{var d,e=a.T().Af;if(e){var f=null===(c=g.xt("yt-player-bandaid-host"))||void 0===c?void 0:c.bQ;if(f&&e.baseUrl){c=new Lv("https://"+f+e.baseUrl);if(e=null===(d=a.Qt)||void 0===d?void 0:d.urlQueryOverride)for(d=Sv(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=WB(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");
if(!d){c=void 0;break a}c.set("id",d)}break a}}c=void 0}!c&&(null===(b=a.Qt)||void 0===b?0:b.url)&&(c=new Lv(a.Qt.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.qd()};
hV=function(a,b,c){var d=this;this.videoData=a;this.u=b;this.playerRequest=c;this.xhr=null;this.B=new $w;this.F=!1;this.D=new g.G(this.G,1E4,this);this.C=new TU(a.T().Af.u);this.N=new Yva(function(e,f){d.K.feed(e,f)});
this.K=awa(this)};
awa=function(a){var b=new $U(function(c,d){return a.C.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.u.tick("orfb");a.F=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.u.tick("oprr");a.B.resolve(c);a.D.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.u.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){iV(a,c.errorInfo)});
return b};
iV=function(a,b){a.B.reject(b);a.D.stop();a.u.tick("ore");a.xhr&&a.xhr.abort()};
bwa=function(a){for(var b=a.xhr;b.gh();){var c=b.mt();c.getLength();a.N.feed(c)}};
dwa=function(a){return Ue(a,function c(){var d=this,e,f;return Aa(c,function(h){if(1==h.u)return ra(h,cwa(d),2);e=h.B;f={Pv:e};return h["return"](new Wva(f))})})};
cwa=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m;return Aa(c,function(n){if(1==n.u)return ra(n,ewa(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,ra(n,Hva(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new Uva(m))})})};
ewa=function(a){return Ue(a,function c(){var d=this,e,f,h;return Aa(c,function(l){switch(l.u){case 1:var m=d.videoData.T().ea;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new gV({name:"Content-Type",value:"application/json"})],p=d.videoData.Ze();p&&n.push(new gV({name:"Authorization",value:"Bearer "+p}));n.push(new gV({name:"User-Agent",value:g.Vc}));(p=d.videoData.visitorData||to("VISITOR_DATA"))&&n.push(new gV({name:"X-Goog-Visitor-Id",
value:p}));p=JSON.stringify(d.playerRequest);e=new Vva({url:m,httpHeaders:n,postBody:p});sa(l,2);return ra(l,d.C.encrypt(e.qm()),4);case 4:f=l.B;ta(l,3);break;case 2:return ua(l),h=new sB("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
jwa=function(a,b,c,d,e,f){a.la();a.wd=!0;var h=a.T();return g.R(h.experiments,"html5_onesie")&&g.R(h.experiments,"html5_onesie_player_config")&&"yt"===h.X?fwa(a).then(function(){return gwa(a,d,e,f)}).then(function(){jV(a)},function(l){l=uB(l);
if(l.u)return jV(a,!0),Promise.reject(l);c(l);return kV(a,b,c,"onesie",!0)}):hwa(h,a)?iwa(a,e,f).then(function(){jV(a)},function(l){l=uB(l);
if(l.u)return jV(a,!0),Promise.reject(l);c(l);return kV(a,b,c,"op")}):kV(a,b,c,"gvi")};
hwa=function(a,b){return(g.R(a.experiments,"web_player_gvi_wexit")||g.R(a.experiments,"hoffle_api")&&rG(b))&&"yt"===a.X&&"adunit"!==mG(b)?!0:!1};
fwa=function(a){a=a.T().Af;if(!a||!a.u)return Promise.reject(new sB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};xx()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new sB("html5.missingapi",!1,a))):Promise.resolve()};
gwa=function(a,b,c,d){return Ue(this,function f(){var h,l,m,n,p,r;return Aa(f,function(t){if(1==t.u)return a.fetchType="onesie",h=ST(a,c,d),l=new hV(a,b,h),ra(t,l.fetch(),2);m=t.B;n={player_response:m};a.wd=!1;a.Mg(n,!0);if(a.wd||dG(a))return t["return"](Promise.resolve());p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.ai||""):p.successButUnplayable="1";r=new sB("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
iwa=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t;return Aa(e,function(w){if(1==w.u)return f=a.Ze(),h=void 0,f&&(lV||(lV=new QU),h=lV,Object.assign(h.B,{Authorization:"Bearer "+f})),l=PU(h),m=ST(a,b,c),n=GU(kwa),ra(w,iH(l,m,n),2);p=w.B;a.wd=!1;a.Mg({raw_player_response:p},!0);if(a.errorCode)return r={ec:a.errorCode,ed:a.errorDetail,es:a.ai||""},w["return"](Promise.reject(new sB("auth",!0,r)));if(!a.wd&&!dG(a))return t=a.isAd()?"auth":"manifest.net.retryexhausted",w["return"](Promise.reject(new sB(t,
!0,{successButUnplayable:"1"})));w.u=0})})};
kV=function(a,b,c,d,e){return Ue(this,function h(){var l,m,n,p,r,t,w,x,y;return Aa(h,function(D){switch(D.u){case 1:l=function(){return!0},m=function(E){E=uB(E);
if(E.u)return Promise.reject(E);c(E);return!1},p=(n=a.isAd())?1:3,r=0;
case 2:if(!(r<p)){D.Kd(4);break}t=b;if(!(0<r)){D.Kd(5);break}return ra(D,Vm(5E3),6);case 6:w={playerretry:r,playerretrysrc:d},n||(w.recover="embedded"),t=aq(b,w);case 5:return ra(D,lwa(a,t,e).then(l,m),7);case 7:if(x=D.B)return D["return"]();r++;D.Kd(2);break;case 4:y=n?"auth":"manifest.net.retryexhausted";if(!n&&1E-4>Math.random())try{g.Gr(new Sq("b/152131571",btoa(b)))}catch(E){}return D["return"](Promise.reject(new sB(y,!0,{backend:"gvi"})))}})})};
lwa=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,D,E,H;return Aa(e,function(N){if(1==N.u)return a.fetchType="gvi",f=a.T(),(m=Bua(a))?(h={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,fc:m},l=aq(b,{action_display_post:1})):(h={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},l=b),n={},f.sendVisitorIdHeader&&a.visitorData&&(n["X-Goog-Visitor-Id"]=a.visitorData),(p=g.xv(f.experiments,"debug_dapper_trace_id"))&&(n["X-Google-DapperTraceInfo"]=p),(r=g.xv(f.experiments,
"debug_sherlog_username"))&&(n["X-Youtube-Sherlog-Username"]=r),0<Object.keys(n).length&&(h.headers=n),t=(0,g.O)(),w=function(J){if(!a.la()){J=J?J.status:-1;var Ja=400===J||429===J,wa=((0,g.O)()-t).toFixed();wa={backend:"gvi",rc:""+J,rt:wa};var Xa="manifest.net.connect";429===J?Xa="auth":200<J&&(Xa="manifest.net.badstatus");return Promise.reject(new sB(Xa,Ja,wa))}},x=function(J){return w(J.xhr)},ra(N,gA(Ur,l,h).then(void 0,x),2);
y=N.B;if(!y||!y.responseText)return N["return"](w(y));a.wd=!1;D=Wp(y.responseText);a.Mg(D,!0,c);if(a.errorCode)return E={ec:a.errorCode,ed:a.errorDetail,es:a.ai||""},N["return"](Promise.reject(new sB("auth",!0,E)));if(!a.wd&&!dG(a))return H=a.isAd()?"auth":"manifest.net.retryexhausted",N["return"](Promise.reject(new sB(H,!0,{successButUnplayable:"1"})));N.u=0})})};
jV=function(a,b){b=void 0===b?!1:b;Ue(this,function d(){var e,f,h,l,m;return Aa(d,function(n){if(1==n.u){e=a.T();if(b&&(!g.OC(e)||"embedded"!==mG(a))||a.wr||"adunit"!==mG(a)&&(g.zC(e)||BC(e)||NC(e)||"WEB_CREATOR"===e.deviceParams.c))return n["return"]();sa(n,2);f=PU();h=yua(a);l=GU(mwa);return ra(n,iH(f,h,l),4)}if(2!=n.u)return m=n.B,a.Mg({raw_watch_next_response:m},!1),ta(n,0);ua(n);n.u=0})})};
nwa=function(a,b,c,d,e,f){function h(){cB("virc");mB("virc","video_to_ad")}
cB("vir");mB("vir","video_to_ad");a=jwa(a,b,c,d,e,f);a.then(h,h);return a};
oV=function(a,b,c,d,e,f,h){g.P.call(this);var l=this;this.F=a;this.ac=new Tua;this.Y=c;this.ue=d;this.Mi=f;this.ba=h;this.ea=new bE((0,g.z)(this.getCurrentTime,this),(0,g.z)(this.getPlaybackRate,this),(0,g.z)(this.getPlayerState,this),function(m,n){m!=g.WD("endcr")||g.U(l.C,32)||mV(l);e(m,n,l.Mb)});
g.C(this,this.ea);this.P=null;this.Bb=new mT;this.ra=null;this.da=new yT(a,this.ue);g.C(this,this.da);this.da.subscribe("ctmp",this.jb,this);this.Cf=!0;this.V=this.D=null;this.ha=[];this.ka=new EU;this.X=this.tb=null;this.Aa=new EU;this.Pc=null;this.Ni=this.Qa=!1;this.de=NaN;this.Sh=new g.G(this.mP,500,this);g.C(this,this.Sh);this.C=new g.FL;this.he=[];this.Mb=b;this.Rb=new g.rs;g.C(this,this.Rb);this.u=new g.uF(a);owa(this,function(){return{}});
pwa(this);this.B=null;this.Ra=new g.G((0,g.z)(this.CN,this),15E3);g.C(this,this.Ra);a=g.Q(this.F.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.Rh=new g.G((0,g.z)(this.eP,this),a);g.C(this,this.Rh);this.Qj=0;this.Qh=this.Dc=!1;this.Ka=NaN;this.eb=!1;this.Tb=0;this.Af=new g.G(this.ty,4500,this);g.C(this,this.Af);this.Df=!1;this.zd=NaN;this.za=new zU;g.C(this,this.za);BU(this.za,"bufferhealth",function(){var m=l.K;return m.u?RS(m.u):0});
BU(this.za,"bandwidth",(0,g.z)(this.tI,this));BU(this.za,"networkactivity",(0,g.z)(this.BI,this),!0);BU(this.za,"livelatency",(0,g.z)(this.uB,this));BU(this.za,"rawlivelatency",(0,g.z)(this.yB,this));this.za.start();this.Bf=!0;this.Qi=0;this.Oh=!1;this.ce=1;this.md=(0,g.z)(this.CP,this);nva(this.md);this.ba.subscribe("visibilitystatechange",this.md);this.Pi=0;qwa(this);g.C(this,this.K);this.Ga=null;this.Li=!1;this.ee=[];this.Ef=this.Pj=0;this.Ph=this.Rj=!1;this.zf=new g.G(function(){l.re("ad.rebuftimeout",
"RETRYABLE_ERROR","vps."+l.C.state.toString(16))});
g.C(this,this.zf);this.dc=null;this.Oi=0;this.Oj=new g.G(function(){g.NL(l.C)&&Vta(l.da,l.X)&&nV(l)});
g.C(this,this.Oj);this.Ve=new g.G(this.AF,3E4,this);g.C(this,this.Ve)};
owa=function(a,b){!a.G||a.G.la();var c=new Rua(a.u,a.F,b,(0,g.z)(a.getDuration,a),(0,g.z)(a.getCurrentTime,a),(0,g.z)(a.GI,a),(0,g.z)(a.ue.getPlayerSize,a.ue),(0,g.z)(a.getAudioTrack,a),(0,g.z)(a.getPlaybackRate,a),(0,g.z)(a.tw,a),a.Mi,(0,g.z)(a.TI,a),function(){return a.Y.tick("qoes")},function(){return uU(a.K)});
a.G=new bU(c)};
pwa=function(a){!a.N||a.N.la();a.N=new sT(a.u,a.F,a.ba);a.N.subscribe("newelementrequired",function(b){return pV(a,b)});
a.N.subscribe("qoeerror",a.RC,a);a.N.subscribe("playbackstalledatstart",function(){return a.W("playbackstalledatstart")});
a.N.subscribe("signatureexpiredreloadrequired",function(){return a.W("signatureexpired")});
a.N.subscribe("releaseloader",function(){return qV(a)});
a.N.subscribe("pausevideo",function(){return a.pauseVideo()});
a.N.subscribe("clienttemp",a.jb,a);a.N.subscribe("highrepfallback",a.oN,a);a.N.subscribe("playererror",a.re,a);a.N.subscribe("removedrmplaybackmanager",function(){return rV(a)});
a.N.subscribe("formatupdaterequested",function(){return sV(a)});
a.N.subscribe("reattachvideosourcerequired",function(){return rwa(a)})};
tV=function(a){var b=a.G;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.P){"PL"===c.Bc&&(c.Bc="N");var d=g.AT(c.provider);g.DT(c,d,"vps",[c.Bc]);c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.C.values()),d=c.next();!d.done;d=c.next())Hua(d.value);else b.u&&Hua(b.u);b.dispose();g.eg(a.G)};
DJ=function(a){return a.B&&a.B.Ak()?a.B.Na():null};
uV=function(a){if(a.u.isValid())return!0;a.re("api.invalidparam",void 0,"invalidVideodata.1");return!1};
vV=function(a,b){a.Qa=void 0===b?!1:b;if(!uV(a)||a.ka.started)g.zC(a.F)&&a.u.isLivePlayback&&a.ka.started&&!a.ka.isFinished()&&!a.Qa&&a.Bv();else{a.ka.start();var c=a.G;g.AT(c.provider);c.qoe&&hua(c.qoe);a.Bv()}};
swa=function(a){var b=a.u,c=a.ue.getPlayerSize(),d=a.Mi(),e=Aua(a.F,a.u,c,d,a.ba.isFullscreen());nwa(a.u,e,function(f){return a.handleError(f)},a.Y,c,d).then(void 0,function(f){a.u!=b||b.la()||(f=uB(f),"auth"==f.errorCode&&a.u.errorDetail?a.re("auth",unescape(a.u.errorReason),g.tB(f.details),a.u.errorDetail,a.u.ai||void 0):a.handleError(f))})};
twa=function(a,b){a.dc=b;a.D&&(a.D.Ra=new yG(b))};
wwa=function(a){if(!g.U(a.C,128))if(a.u.Fc(),a.Bf=!0,4!=a.Mb&&(a.ha=g.ub(a.u.Pe)),cG(a.u)){wV(a).then(function(){a.la()||(a.Qa&&xV(a),uwa(a,a.u),a.ka.u=!0,kW(a,"dataloaded"),a.Aa.started?lW(a):a.Qa&&mW(a,HL(HL(a.C,512),1)),aua(a.da,a.X))});
a.jb("loudness",""+a.u.cq.toFixed(3),!0);var b=Dma(a.u);b&&a.jb("playerResponseExperiment",b,!0);vwa(a)}else kW(a,"dataloaded")};
wV=function(a){qV(a);a.X=null;var b=Vua(a.F,a.u,a.ba.B);a.tb=b;a.tb.then((0,g.z)(a.kO,a),(0,g.z)(a.lO,a));return b};
sV=function(a){wV(a).then(function(){return xV(a)});
g.LL(a.C)&&a.playVideo()};
nW=function(a){a.B&&a.B.on();vV(a);uV(a)&&!g.U(a.C,128)&&(a.Aa.started||(a.Aa.start(),mW(a,HL(HL(a.C,8),1))),lW(a))};
lW=function(a){a.la();if(!a.Aa.isFinished()&&a.ka.isFinished()&&!g.U(a.C,128)&&!a.ha.length){if(!a.ea.started){var b=a.ea;b.started=!0;b.ph()}if(!oW(a)){a.D&&(b=a.D.ra,a.Ni=!!b.u&&!!b.D);a.Aa.isFinished()||(a.Aa.u=!0);!a.u.isLivePlayback||0<a.u.qk&&!NF(a.u)||(a.seekTo(Infinity),pW(a,"readying"),a.ba.isBackground()&&(a.Qh=!0));b=a.G;if(b.u){var c=b.u;c.provider.videoData.Lo&&c.provider.videoData.Br&&($T(c,"connected"),Cua(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Xp&&JT(b,b.provider.videoData.Xp),b.provider.videoData.isLivePlayback&&
(c=b.provider.videoData.ma,NF(b.provider.videoData)&&JT(b,"manifestless"),c&&yA(c)&&JT(b,"live-segment-"+yA(c).toFixed(1))),"yt"!==b.provider.u.X&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.W("playbackready",a);jB("pbr",a.Y.timerName)||(a.Y.tick("pbr"),mB("pbr","video_to_ad"))}}};
mV=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.B&&a.B.pause();b=b?new g.FL(14):new g.FL;mW(a,b)};
uwa=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.ra&&(a.removeCueRange(a.ra),a.ra=null);a.ra=new g.TD(1E3*c,0x7ffffffffffff);a.ra.namespace="endcr";a.addCueRange(a.ra)}};
rW=function(a,b,c,d){a.u.Ma=c;d&&xwa(a,b,d);var e=(d=g.qW(a))?Wu(d):"";d=a.G;e=new Kta(a.u,c,b,e);if(d.qoe){c=d.qoe;d=g.AT(c.provider);g.DT(c,d,"vfs",[e.u.id,e.B,c.Ra,e.reason]);c.Ra=e.u.id;e=c.provider.P();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.JC();1<f&&e.push(f);g.DT(c,d,"view",e)}c.ba||(c.provider.videoData.Ej&&JT(c,"rqs"),c.provider.videoData.ma&&kA(c.provider.videoData.ma)&&(c.u.preload=["1"]));c.ba=!0;c.P=!0;g.DT(c,d,"vps",[c.Bc]);c.reportStats(d)}c=
a.da;c.D=0;c.B=0;a.W("internalvideoformatchange",a.u,"m"==b)};
g.qW=function(a){var b=sW(a);return bD(b)||!a.X?null:g.jb(a.X.Ia.videoInfos,(0,g.z)(b.D,b))};
xwa=function(a,b,c){if(c!=a.u.Tc){var d=!a.u.Tc;a.u.Tc=c;"m"!=b&&(b=d?"i":"a");var e=a.G;c=new Kta(a.u,c,b,"");if(e.qoe){e=e.qoe;var f=g.AT(e.provider);c.u.id!==e.X&&(g.DT(e,f,"afs",[c.u.id,e.X,c.reason]),e.X=c.u.id)}d||a.W("internalaudioformatchange",a.u,"m"==b)}};
tW=function(a,b){a.ha=a.ha.filter(function(c){return b!=c});
a.Aa.started&&lW(a)};
oW=function(a){var b;(b=!!a.ha.length)||(a=a.ea.u.u[0],b=!!a&&-0x8000000000000>=a.start);return b};
vW=function(a,b){if(a.B&&b.Na()==a.B.Na()&&(b.isView()||a.B.isView())){if(b.isView()||!a.B.isView())g.us(a.Rb),a.B=b,ywa(a),rU(a.K,a.B),a.N.B=a.B}else{a.B&&uW(a);if(!a.C.isError()){var c=IL(a.C,512);g.U(c,8)&&!g.U(c,2)&&(c=HL(c,1));b.isView()&&(c=IL(c,64));mW(a,c)}a.B=b;a.B.setLoop(a.Oh);a.B.setPlaybackRate(a.ce);ywa(a);rU(a.K,a.B);a.N.B=a.B}};
uW=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.B){var d=a.getCurrentTime();0<d&&(a.K.K=d);rU(a.K,null);a.N.B=null;wW(a);a.D&&(DE(a.D),xW(a,c));a.Ra.stop();if(a.B){!a.Aa.started||a.C.isError()||g.U(a.C,2)||mW(a,HL(a.C,512));g.us(a.Rb);if(b||!a.B.isView())a.B.stopVideo(),rV(a);a.B=null}}};
sW=function(a){if(a.X){var b=a.da;var c=a.X,d=yW(a);a=a.ba.isBackground();var e=Ota(b);e=aD("auto",e,!1,"s");bD(e)?e=Mta(b,c).compose(Qta(b,c)).compose(Rta(b,c)).compose(Zta(b,a)).compose($ta(b,c)).compose(Yta(b,c)).compose(c.videoData.zG).compose(Pta(b)):b.ca("html5_perf_cap_override_sticky")&&(e=e.compose(Yta(b,c)));b=c.videoData.Cu.compose(e).compose(c.videoData.mA).compose(d)}else b=vD;return b};
yW=function(a,b){if(a.P){var c=a.P;var d=void 0===b?!1:b;c=(void 0===d?0:d)&&c.ra?c.ra:c.N}else c=CF(a.u)&&a.u.ma&&jA(a.u.ma)?(g.R(a.F.experiments,"html5_drm_initial_constraint_from_config")?a.u.Jo:g.R(a.F.experiments,"html5_drm_start_from_null_constraint"))?vD:rta:vD;a.Ph&&(c=c.compose(zwa));return c};
AW=function(a){if(!a.la()&&!g.U(a.C,128)&&a.u.Ia){if(a.u.Ia.xc())zW(a);else{var b=sW(a),c=a.u;a:{var d=a.u.Dj;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Be(),l=g.kw[h.La().quality];if((!b.C||"auto"!==h.La().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Fg=d;rW(a,b.reason,Awa(a,a.u.Fg))}a.C.Kb()&&(a.K.ra=!1,a.playVideo())}};
zW=function(a){if(a.u.Ia&&a.u.Ia.xc()){var b=sW(a),c=a.u.Ma;if(!BW(a,"html5_dynamic_av1_hybrid_threshold")&&c&&ww(c)){var d=fD(a.F);if(d&&d<c.La().yc&&d!=a.Oi){a.Oi=d;wV(a);return}}if(a.D&&(a=a.D,!a.la()&&!$C(a.K.F,b)&&a.B)){var e=a.K.F;zE(a,Jha(a.K,b));mE(a);c=DD(a.K)&&"m"==b.reason&&a.K.ba;d=a.u.ce&&"l"==b.reason&&vz(a.B);b=("b"==b.reason||"o"==b.reason)&&e.u>b.u;e=a.K.Aa&&!wB();c||d||b||e?(a.Oc("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.W("reattachrequired")):(!a.u.Pc&&a.K.P&&vE(a,
a.B,a.D),DE(a))}}};
nV=function(a){BW(a,"html5_nonblocking_media_capabilities")?zW(a):AW(a)};
Cwa=function(a){BW(a,"html5_probe_media_capabilities")&&Lta(a.u.Ia);Xga(a.u.ma,{cpn:a.u.clientPlaybackNonce,c:a.F.deviceParams.c,cver:a.F.deviceParams.cver});var b=a.F,c=a.u,d=new g.yv,e=wv(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Ym:c.Ym});d.D=e;d.Jt=b.ca("html5_disable_codec_for_playback_on_error");d.zs=b.ca("html5_max_drift_per_track_secs")||b.ca("html5_rewrite_manifestless_for_sync")||b.ca("html5_check_segnum_discontinuity");d.Rj=b.ca("html5_unify_sqless_flow");d.Dc=b.ca("html5_unrewrite_timestamps");
d.Tb=b.ca("html5_stop_overlapping_requests");d.Df=g.Q(b.experiments,"html5_min_readbehind_secs");d.yz=g.Q(b.experiments,"html5_min_readbehind_cap_secs");d.xz=g.Q(b.experiments,"html5_max_readbehind_secs");d.ND=g.R(b.experiments,"html5_trim_future_discontiguous_ranges");d.Uq=b.ca("html5_append_init_while_paused");d.Cf=g.Q(b.experiments,"html5_max_readahead_bandwidth_cap");d.Rh=g.Q(b.experiments,"html5_post_interrupt_readahead");d.P=g.Q(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.dc=g.Q(b.experiments,"html5_subsegment_readahead_timeout_secs");d.PB=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.ac=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.qC=g.Q(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Qj=g.Q(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.rC=g.Q(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Ph=b.ca("html5_peak_shave");d.Cz=b.ca("html5_peak_shave_always_include_sd");
d.Qz=b.ca("html5_restrict_streaming_xhr_on_sqless_requests");d.uz=g.Q(b.experiments,"html5_max_headm_for_streaming_xhr");d.Dz=b.ca("html5_pipeline_manifestless_allow_nonstreaming");d.Hz=b.ca("html5_prefer_server_bwe3");d.no=1024*g.Q(b.experiments,"html5_video_tbd_min_kb");d.Sh=b.ca("html5_probe_live_using_range");d.JG=b.ca("html5_last_slice_transition");d.PA=b.ca("html5_store_xhr_headers_readable");d.FF=b.ca("html5_enable_packet_train_response_rate");if(e=g.Q(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Li=
e,d.xC=1;d.eb=g.Q(b.experiments,"html5_probe_primary_delay_base_ms")||d.eb;d.Oh=b.ca("html5_no_placeholder_rollbacks");d.aB=b.ca("html5_subsegment_readahead_enable_mffa");b.ca("html5_allow_video_keyframe_without_audio")&&(d.ka=!0);d.Ni=b.ca("html5_reattach_on_stuck");d.XF=b.ca("html5_webm_init_skipping");d.Pi=g.Q(b.experiments,"html5_request_size_padding_secs")||d.Pi;d.qz=b.ca("html5_log_timestamp_offset");d.md=b.ca("html5_abs_buffer_health");d.HG=b.ca("html5_interruption_resets_seeked_time");d.Bf=
g.Q(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Bf;d.ee=b.ca("html5_explicitly_dispose_xhr");d.Xz=b.ca("html5_skip_invalid_sq");d.Pz=b.ca("html5_restart_on_unexpected_detach");d.TG=b.ca("html5_log_live_discontinuity");d.Rz=b.ca("html5_rewrite_manifestless_for_continuity");d.zf=g.Q(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Af=g.Q(b.experiments,"html5_max_drift_per_track_secs");d.Sz=b.ca("html5_rewrite_manifestless_for_sync");d.Rb=g.Q(b.experiments,"html5_static_abr_resolution_shelf");
d.Fr=!b.ca("html5_encourage_array_coalescing");d.Is=b.ca("html5_crypto_period_secs_from_emsg");d.ra=b.ca("html5_defer_slicing");d.zd=g.Q(b.experiments,"html5_buffer_health_to_defer_slice_processing");d.LD=b.ca("html5_disable_reset_on_append_error");d.BG=b.ca("html5_filter_non_efficient_formats_for_safari");d.zz=b.ca("html5_format_hybridization");d.Pc=b.ca("html5_urgent_adaptation_fix");d.Sq=b.ca("html5_abort_before_separate_init");b.ca("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/
1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.X=10:d.X=c.minReadAheadMediaTimeMs/1E3||d.X,d.de=c.readAheadGrowthRateMs/1E3||d.de);qg&&(d.Y=41943040);d.V=!NB();g.zC(b)||!NB()?(e=b.experiments,d.G=8388608,d.K=524288,d.zr=5,d.Ga=2097152,d.ba=1048576,d.Nz=1.5,d.Bz=!1,d.N=4587520,ck()&&(d.N=786432),d.u*=1.1,d.B*=1.1,d.Bb=!0,d.Y=d.G,d.Ka=d.K,d.Qh=g.R(e,"persist_disable_player_preload_on_tv")||g.R(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.AB&&Xj("crkey")&&(e=
"CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.G=20971520,d.K=1572864,e&&(d.N=812500,d.Oi=1E3,d.GF=5,d.ba=2097152));!b.ca("html5_disable_firefox_init_skipping")&&g.SB&&(d.Bb=!0);b.supportsGaplessAudio()||(d.sF=!1);iC&&(d.Hk=!0);hk()&&(d.Oj=!0);if(NF(c)){d.EG=!0;d.Tz=!0;if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.ca("html5_disable_low_pipeline"))d.rz=2,d.vz=4;d.bj=c.defraggedFromSubfragments;c.Kc&&(d.tb=!0);g.gG(c)&&(d.ha=!1);d.Hs=g.MC(b)}c.isAd()&&(d.Qa=0,d.he=0);PF(c)&&(d.da=!0,b.ca("html5_resume_streaming_requests")&&
(d.Mb=!0,d.Oi=400,d.sz=2));d.Aa=b.ca("html5_enable_subsegment_readahead_v3")||b.ca("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.za=c.Ej;d.Ve=d.za&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||uG(c));nk()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ca("html5_disable_move_pssh_to_moov")&&jA(c.ma)&&(d.Bb=!1);jA(c.ma)&&(d.Ni=!1);var f=0;b.ca("html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.u,c.isLivePlayback&&(f=g.Q(b.experiments,"ULTRALOW"==
c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));e=b.schedule;e.P.u=NF(c)?.5:0;if(!e.policy.B&&f&&(e=e.u,f=Math.round(f*e.resolution),f!==e.B)){var h=Array(f),l=Math.min(f,e.D?e.B:e.valueIndex),m=e.valueIndex-l;0>m&&(m+=e.B);for(var n=0;n<l;++n)h[n]=e.values[(m+n)%e.B];for(;n<f;++n)h[n]=Infinity;e.B=f;e.values=h;e.valueIndex=l%f;e.D=l===f;e.G=!0;e.N=Cz(e)}d.rb=c.isLivePlayback;
switch(OF(c)){case 21530001:d.Az=b.ca("html5_live_smoothly_extend_max_seekable_time");d.Aa=!0;"LOW"==c.latencyClass?d.P=g.Q(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==c.latencyClass&&(d.P=g.Q(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Oh=!0;break;case 2153E4:d.Aa=!1}d.Hk=d.Hk||c.Hk;d.ea=c.ri;uG(c)&&(d.ue=!0);c.ri&&!jA(c.ma)&&b.ca("html5_hack_gapless_init")&&(d.Qi=!0);(e=g.Q(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.ri&&c.isAd()&&
(d.u*=e,d.B*=e);sG(c)?(d.C=c.videoId,d.md=!0,sG(c)&&c.Vg&&(d.Vg=!0)):c.BC&&(d.Pj=!0);b.ca("html5_drm_initial_constraint_from_config")?d.ce=c.Jo:d.ce=b.ca("html5_drm_start_from_null_constraint");b.ca("html5_dynamic_av1_hybrid_threshold")&&(d.nF=!0,d.Ra=fD(b,{},c.Ia));c="auto"!==Lx();e=g.Q(b.experiments,"html5_deadzone_multiplier")||1;(f=g.Q(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.u*=e;d.B*=e;if(e=g.Q(b.experiments,"html5_request_sizing_multiplier"))d.Oz=e;d.Ef=g.Q(b.experiments,
"html5_min_upgrade_health")||d.Ef;QB(b.D,RB.BITRATE)&&(d.N=NaN);b.D.C&&(d.WF="; "+RB.EXPERIMENTAL.name+"=allowed");c&&(d.mo=0,d.Rb=0);d.Iz=b.ca("html5_rec_2020_matrix_correction_killswitch");c=d.rb&&!b.ca("html5_pause_appends_killswitch");d.rb=c||b.ca("html5_never_pause_appends");g.R(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&iC&&(d.Gz=!0);g.R(b.experiments,"debug_html5_random_stun_format")&&(d.Mi=!0);g.R(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.PE=!0);b=b.experiments;
g.R(b,"html5_validate_lengthless_slices_killswitch")&&(d.oF=!1);g.R(b,"html5_audio_only_eos_fix_killswitch")&&(d.Zq=!0);g.R(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Jz=!0);g.R(b,"html5_check_seeking_for_cuepoints_killswitch")&&(d.Qr=!0);g.R(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Oj=!1);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.Bb;c.keys=[];c.values=[];a.D=new lE(a.F.schedule,d,a.u.ma,a.u.Ia,sW(a),b,a.ea,a.u.enableServerStitchedDai);a.D.subscribe("needkeyinfo",a.nE,
a);a.D.subscribe("newDrmInfo",a.bO,a);a.D.subscribe("videoformatchange",a.GN,a);a.D.subscribe("audioformatchange",a.EN,a);a.D.subscribe("error",a.handleError,a);a.D.subscribe("ctmp",a.jb,a);a.D.subscribe("reattachrequired",a.oQ,a);a.D.subscribe("metadata",a.hE,a);a.D.subscribe("constraint",a.vP,a);a.D.subscribe("timestamp",a.HJ,a);a.D.subscribe("localmediachange",a.HN,a);a.D.subscribe("localplaybackfailed",a.yH,a);a.da.subscribe("av1hybridthresholdchange",a.FM,a);d=Bwa(a)?!0:a.Qa&&g.zC(a.F)&&a.u.isLivePlayback;
a.D.initialize(a.getCurrentTime(),sW(a),d);a.u.probeUrl&&(a.D.Ga=a.u.probeUrl);(a.ha.length||a.Qa)&&xW(a,!1);tU(a.K,a.D);a.N.u=a.D;a.dc&&(a.D.Ra=new yG(a.dc));tG(a.u)&&(a.D.u.kG=2)};
qwa=function(a){a.K=new pU(a.u,a.F,a.ba,function(){return g.nb(a.ha,"ad")});
a.K.subscribe("seekto",function(b,c){a.K.K=b;var d=a.ac;d.mediaTime=b;d.seeking=!0;c||CW(a);a.ra&&b>a.u.endSeconds&&isFinite(b)&&(a.removeCueRange(a.ra),a.ra=null);b<DW(a)-.01&&(d=IL(a.C,2),g.U(d,8)&&(d=IL(d,4)),mW(a,d));a.W("SEEK_TO",a,b)});
a.K.subscribe("seekstart",function(){return EW(a)});
a.K.subscribe("seekend",function(){return a.W("SEEK_COMPLETE")});
a.K.subscribe("newmediaelementrequired",function(){return pV(a)});
a.K.subscribe("ended",function(){return mV(a)});
a.K.subscribe("ctmp",a.jb,a);a.K.subscribe("qoeerror",a.RC,a);a.K.subscribe("livereadaheadchanged",function(b){var c=a.G;c.qoe&&(c=c.qoe,g.DT(c,g.AT(c.provider),"lra",[b]),FT(c,"live-readahead-seconds",b.toString()))});
a.K.subscribe("releaseadsprerolllock",function(){return tW(a,"ad")})};
qV=function(a){a.D&&(a.D.dispose(),a.D=null,tU(a.K,null),a.N.u=null);wW(a)};
wW=function(a){if(a.V){if(a.D){var b=NF(a.u)&&a.u.Kc&&!a.u.isAd();qE(a.D,b)}a.V.dispose();a.V=null}};
FW=function(a){if(a.V)return a.V.wp;Dwa(a);return a.V?a.V.wp:null};
Dwa=function(a){if(BW(a,"html5_application_media_source"))a.W("requestmediasource",a);else{var b=g.Q(a.F.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Qj<b&&a.Rh.start();try{var c=a.B.ot()}catch(d){if(vT(a.N,"html5.missingapi",{updateMs:"1"}))return;g.Gr(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.re("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}GW(a,c)}};
GW=function(a,b){Ewa(a);a.V=b;kha(a.V,function(c){try{if(a.V&&(!c||a.V==c)){var d=a.getDuration();!d&&NF(a.u)&&(d=g.Q(a.F.experiments,"html5_manifestless_media_source_duration")||3600);a.V.isView()?(c=d,c>a.V.getDuration()&&KB(a.V,c)):KB(a.V,d);var e=a.D,f=a.V;e.ea&&(pE(e),e.ea=!1);oE(e);if(!LB(f)){var h=e.B.u.info.mimeType+e.u.WF,l=e.D.u.info.mimeType,m=new vB("fakesb"==l?new fA:f.C.addSourceBuffer(l),pw(l),!1),n=new vB("fakesb"==h?new fA:f.C.addSourceBuffer(h),pw(h),!0);f.u=m;f.B=n;g.C(f,m);g.C(f,
n)}$y(e.B,f.B);$y(e.D,f.u);e.C=f;e.resume();vs(f.u,e.Qa,e);vs(f.B,e.Qa,e);e.u.qz&&1E-4>=Math.random()&&e.Oc("toff",""+f.u.supports(1),!0);e.rh();a.W("mediasourceattached");a.Rh.stop()}}catch(p){g.Gr(p),a.handleError(new sB("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
Ewa=function(a){a.D?Lm(a.D.seek(a.getCurrentTime()-a.pc()),function(){}):Cwa(a)};
pV=function(a,b){b=void 0===b?!1:b;return Ba(new za(new va(function(c){if(1==c.u)return a.D&&a.D.la()&&qV(a),a.W("newelementrequired"),b?ra(c,wV(a),2):c.Kd(2);g.U(a.C,8)&&a.playVideo();c.u=0})))};
Fwa=function(a,b){a.jb("newelem",b);pV(a)};
CW=function(a){g.U(a.C,32)||(mW(a,HL(a.C,32)),g.U(a.C,8)&&a.pauseVideo(!0),a.W("beginseeking",a));HW(a)};
EW=function(a){g.U(a.C,32)?(mW(a,JL(a.C,16,32)),a.W("endseeking",a)):g.U(a.C,2)||mW(a,HL(a.C,16))};
kW=function(a,b){a.W("internalvideodatachange",void 0===b?"dataupdated":b,a,a.u)};
ywa=function(a){g.Fb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Rb.R(this.B,b,this.AP,this)},a);
a.F.Sh&&a.B.Ak()&&(a.Rb.R(a.B,"webkitplaybacktargetavailabilitychanged",a.tM,a),a.Rb.R(a.B,"webkitcurrentplaybacktargetiswirelesschanged",a.uM,a))};
Hwa=function(a){BW(a,"html5_enable_timeupdate_timeout")&&!a.u.isLivePlayback&&Gwa(a)&&a.Sh.start()};
Gwa=function(a){if(!a.B)return!1;var b=a.B.getCurrentTime();a=a.B.getDuration();return!!(1<b&&b>a-.3)};
Jwa=function(a){window.clearInterval(a.de);a.Ra.stop();a.u.vg=!0;a.F.vg=!0;a.F.ra=0;Iwa(a);g.U(a.C,8)&&mW(a,IL(a.C,65));var b=a.G;b.u&&Eua(b.u);if(b.B){b=b.B;var c=g.AT(b.provider);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c}a.Af.Hb();a.W("playbackstarted");g.tp()&&((a=g.Na("yt.scheduler.instance.clearPriorityThreshold"))?a():vp(0))};
Iwa=function(a){var b=a.getCurrentTime(),c=a.u;!jB("pbs",a.Y.timerName)&&kB.measure&&kB.getEntriesByName&&(kB.getEntriesByName("mark_nr")[0]?lB("mark_nr"):lB());c.videoId&&a.Y.info("docid",c.videoId);c.eventId&&a.Y.info("ei",c.eventId);c.clientPlaybackNonce&&a.Y.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Y.info("start",c.startSeconds.toString());a.B&&a.B.Bk()&&a.Y.info("paused",1);c.Ma?a.Y.info("fmt",Wu(c.Ma)):a.Y.info("fmt","-1");c.Hn&&a.Y.info("yt_pre",a.Ni?"2":"1");a.ba.isFullscreen()&&
a.Y.info("yt_fs","1");a.Y.info("cmt",b.toFixed(3));if(a.D){b=a.D.ra;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.Te("vri",c.fetchStart),b.Te("vdns",c.domainLookupEnd),b.Te("vreq",c.requestStart),b.Te("fvb",c.responseStart),b.Te("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.Te("ari",c.fetchStart),b.Te("adns",c.domainLookupEnd),b.Te("areq",c.requestStart),b.Te("avb",c.responseStart),
b.Te("arc",c.responseEnd)));b=b.F;for(var d in b)a.Y.tick(d,b[d])}};
HW=function(a,b){b=void 0===b?!1:b;if(a.B&&a.u){var c=a.K,d=a.C.Kb(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.V&&f){var h=c.V;if(h.u&&!(e>=h.B&&e<h.C)){var l=h.u.bh(e);-1!=l&&(h.B=h.u.Fe(l),h.C=h.B+h.u.getDuration(l),l=g.A()/1E3-h.u.Ce(l),l-=h.F(),h.D.add(l))}}c.B&&(f&&(f=c.B,h=c.u?RS(c.u):0,f.D++,3>f.D||g.A()-f.K<f.policy.P||(f.K=g.A(),f.B.push(h),50<f.B.length&&f.B.shift())),f=c.B,Zua(f,e,void 0===d?!0:d),$ua(f,e),d&&cva(c,!0));c=a.getCurrentTime();!a.D||g.U(a.C,4)&&g.gG(a.u)||(d=a.D,e=c,d.C&&
d.C.B&&(e-=!isNaN(d.da)&&d.u.Dc?d.da:0,d.G!=e&&d.resume(),d.N.C&&!MB(d.C)&&(f=d.G<=e&&e<d.G+10,h=Ky(d.C.B.Ye(),d.G+yE),f&&h&&(d.N.C=!1)),d.N.C||(d.G=e),d.Rb.Hb()));5<c&&(a.K.K=c);(d=g.tp())?g.up(a.Ka):g.Io(a.Ka);!g.NL(a.C)&&a.B.Bk()||g.U(a.C,128)||(e=(0,g.z)(a.bJ,a),0==a.B.Al().length?a.Ka=d?g.rp(e,100):g.Go(e,100):a.Ka=d?g.rp(e,500):g.Go(e,500));a.u.ak=c;!b&&a.C.Kb()&&(a.G.Yd(),a.u.isLivePlayback&&g.A()>a.Pi+6283&&(!a.isAtLiveHead()||a.u.ma&&vA(a.u.ma)||(c=a.G,c.qoe&&(c=c.qoe,e=c.provider.D(),d=
g.AT(c.provider),gua(c,d,e),e=e.F,isNaN(e)||g.DT(c,d,"e2el",[e.toFixed(3)]))),g.MC(a.F)&&a.jb("rawlat","l."+DU(a.za,"rawlivelatency").toFixed(3)),a.Pi=g.A()),a.u.Ma&&xw(a.u.Ma)&&(c=DJ(a))&&c.videoHeight!=a.Ef&&(a.Ef=c.videoHeight,rW(a,"a",Awa(a,a.u.Fg))));Xta(a.da,a.X,a.B,a.ba.isBackground())&&nV(a);c=a.da;d=a.u.Ma;0>=g.Q(c.u.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.La()&&32<d.La().fps)?c=!1:3<=c.C?(c.C=0,c=!0):c=!1;c&&(a.G.onError("qoe.restart","droprate."+a.da.K),a.F.D.G=
!1,sV(a));!BW(a,"html5_check_ads_abnormality_killswitch")&&a.u.isAd()&&a.N&&a.G&&a.B&&((c=a.N,f=g.AT(a.G.provider),h=a.B.getCurrentTime(),e=a.getDuration(),(d=g.U(a.C,8))&&!c.C)?(c.C=f,c.F=h||0):(c.C&&(f-=c.C,5<=f&&(h-=c.F,e-=c.F,f>=5*h||f>=e+5))&&(e="wt."+f.toFixed(3)+".mpt."+h.toFixed(3)+(".dl."+e.toFixed(3)),wT(c,"slowads",e),c.videoData.ca("html5_report_slow_ads_as_error")&&c.W("playererror","fmt.unplayable","GENERIC_WITHOUT_LINK","slowads."+e)),d||(c.C=NaN,c.F=0)));a.W("progresssync",a,b)}};
Awa=function(a,b){if("auto"==b.Ma.La().quality&&xw(b.Be())&&a.u.Dj)for(var c=g.q(a.u.Dj),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.Ef&&"auto"!=d.Ma.La().quality)return d.Be();return b.Be()};
mW=function(a,b){if(!g.KL(a.C,b)){var c=new g.KJ(b,a.C);a.C=b;Kwa(a);var d=!a.he.length;a.he.push(c);var e=a.B&&a.B.Ap();g.MJ(c,1)&&!g.U(c.zj,16)&&!e&&g.U(a.C,8)&&!g.U(a.C,64)&&a.D&&(a.D.ka=!0,a.B&&5<=RS(a.B)&&((e=g.Q(a.F.experiments,"html5_non_network_rebuffer_duration_ms"))?a.Oj.start(e):Vta(a.da,a.X)&&nV(a)));(e=g.Q(a.F.experiments,"html5_ad_timeout_ms"))&&a.u.isAd()&&g.U(b,1)&&(g.U(b,8)||g.U(b,16))?a.zf.start(e):a.zf.stop();(0>LJ(c,8)||g.MJ(c,1024))&&a.Ra.stop();!g.MJ(c,8)||a.u.vg||g.U(c.state,
1024)||a.Ra.start();g.U(c.state,8)&&0>LJ(c,16)&&!g.U(c.state,32)&&!g.U(c.state,2)&&a.playVideo();g.U(c.state,2)&&hG(a.u)&&(e=a.getCurrentTime(),a.u.lengthSeconds!=e&&(a.u.lengthSeconds=e,kW(a)),HW(a,!0));g.MJ(c,2)&&a.ty(!0);g.MJ(c,128)&&a.Bh();a.u.ma&&a.u.isLivePlayback&&!a.Rj&&(0>LJ(c,8)?(e=a.u.ma,e.D&&e.D.stop()):g.MJ(c,8)&&a.u.ma.resume());a.K.Wb(c);a.G.Wb(c);if(d&&!a.la())try{for(var f=g.q(a.he),h=f.next();!h.done;h=f.next()){var l=h.value;a.ea.Wb(l);a.W("statechange",l)}}finally{a.he.length=
0}}};
IW=function(a,b){g.U(a.C,128)||(mW(a,JL(a.C,1028,9)),a.jb("dompaused",b),a.W("onDompaused"))};
xV=function(a){if(!a.B||!a.u.Ia)return!1;var b=null;a.u.Ia.xc()?(b=FW(a),a.D.resume()):(qV(a),a.u.Fg&&(b=a.u.Fg.Cp()));var c=b;var d=a.B.qt();b=!1;d&&null!==c&&c.u===d.u||(a.Y.tick("vta"),mB("vta","video_to_ad"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.K.K=b),a.B.on(c),a.V&&vp(4),!a.u.vg&&g.LL(a.C)&&a.Ra.start(),b=!0);g.U(a.C,2)||(c=a.K,c.N||!(0<c.K)||c.u&&0<c.u.getCurrentTime()||c.seekTo(c.K));a:if(c=b,g.YF(a.u)&&a.B)if((d=a.u.Yc)&&a.B.Ak()){var e=a.B.Na();if(a.P)if(e!=a.P.element)rV(a);else if(c&&
"fairplay"==d.flavor&&!bk())rV(a);else break a;a.P=new oT(e,a.u,a.F);a.P.subscribe("licenseerror",a.wN,a);a.P.subscribe("qualitychange",a.yN,a);a.P.subscribe("heartbeatparams",a.sN,a);a.P.subscribe("keystatuseschange",a.uN,a);a.P.subscribe("hdproberequired",a.xN,a);a.P.subscribe("ctmp",a.jb,a);c=g.q(a.Bb.keys);for(d=c.next();!d.done;d=c.next())d=a.Bb.get(d.value),vta(a.P,d);BW(a,"html5_eme_loader_sync")||(a=a.Bb,a.keys=[],a.values=[])}else a.re("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return b};
rV=function(a){a.P&&(a.P.dispose(),a.P=null)};
JW=function(a,b){b=void 0===b?!1:b;return a.u.isLivePlayback&&(a.isAtLiveHead()&&(BW(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.C,4))||wU(a.K)||g.gG(a.u))?a.getCurrentTime():DW(a,b)};
DW=function(a,b){return a.K.Dd(void 0===b?!1:b)};
rwa=function(a){a.B&&(a.V?(rV(a),wW(a),FW(a)):(a.u.Fg&&a.u.Fg.sy(),a.B.stopVideo()),a.playVideo())};
KW=function(a,b){g.R(a.F.experiments,"html5_log_rebuffer_reason")&&a.jb("bufreason","r."+b+";lact."+Ap())};
LW=function(a,b,c,d,e,f,h){f?(a=a.G,a.qoe&&lua(a.qoe,b,c,d,e,1,h),""===c&&(c=a.provider.videoData.videoId),a.C.has(c)?(b=a.C.get(c),b.C&&isNaN(b.B)&&XT(b,!1)):(d=new VT(a.provider),d.G=c,d.F=b,g.C(a,d),a.C.set(c,d),Eua(d)),a.currentVideoId=c):(a=a.G,a.qoe&&lua(a.qoe,b,c,d,e,0,h),""===c&&(c=a.provider.videoData.videoId),a.C.has(c)?(b=a.C.get(c),aU(b).send(),g.Io(b.B),b.B=NaN):g.Fo(new Sq("Vss is not created when exiting the ads on SS DAI with cpn ",b)))};
Lwa=function(a,b){if(a.u.Ej){var c=g.Q(a.F.experiments,"html5_log_rebuffer_events");if(c&&a.B){var d=a.B.qb();d.rt=(1E3*g.AT(a.G.provider)).toFixed();d.e=b.substr(0,3);a.ee[a.Pj++%c]=d}}};
Kwa=function(a){if(a.u.Ej){a.ee.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.ee),c=b.next();!c.done;c=b.next())c=c.value,a.jb("vpe","t."+c.rt+";"+g.tB(c));a.ee=[];a.Pj=0}};
pW=function(a,b){a.jb("seekreason",b)};
Mwa=function(a){if(Xj("cobalt")&&Xj("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.jb("nxdock",""+ +b)}};
BW=function(a,b){return g.R(a.F.experiments,b)};
Nwa=function(a,b,c,d,e){a.jb("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
xW=function(a,b){nE(a.D,b||Bwa(a))};
Bwa=function(a){var b=BW(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.zC(a.F),c=BW(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.nb(a.ha,"ad")};
vwa=function(a){if(HF(a.u,"html5_set_debugging_opt_in")&&(a=g.hs.getInstance(),!g.js(0,183))){var b="f"+(Math.floor(183/31)+1),c=is(b)||0;c|=268435456;0==c?delete gs[b]:(c=c.toString(16),gs[b]=c.toString());a.save()}};
MW=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.Jd("/sharing_services",a);g.Ct(d)};
Owa=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};c=HU(PU(),c);Jm(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Kf&&a.Kf({},d)})};
Qwa=function(a,b,c){g.vo("web_classic_playlist_one_platform_update")?Owa(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):Pwa("add_to_watch_later_list",a,b,c)};
Rwa=function(a,b,c){g.vo("web_classic_playlist_one_platform_update")?Owa(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):Pwa("delete_from_watch_later_list",a,b,c)};
Pwa=function(a,b,c,d){g.pq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Lh:{feature:b.feature||null,authuser:b.ie||null,pageid:b.pageId||null},fc:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.m4||null,add_to_playlists:b.M3||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Kf:b.Kf,withCredentials:!!d})};
g.Twa=function(a,b,c){b=Swa(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.No("LOGGED_IN",function(d){g.Oo(g.L("LOGGED_IN_PUBSUB_KEY",void 0));so("LOGGED_IN",!0);a(d)}),so("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Swa=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=Id(c,"mode",a));a=Id(d,"next",c);b&&(a=Id(a,"feature",b));return a};
NW=function(){};
OW=function(){};
Vwa=function(){var a,b,c=navigator;return(null===(a=c.storage)||void 0===a?0:a.estimate)?new zm(function(d){c.storage.estimate().then(function(e){d(e)})}):(null===(b=c.webkitTemporaryStorage)||void 0===b?0:b.u)?Uwa():Dm(void 0)};
Uwa=function(){var a=navigator;return new zm(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.u?a.webkitTemporaryStorage.u(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Cq=function(a,b,c){var d=this;this.Gw=a;this.handleError=b;this.u=c;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){d.B=!0})};
Fq=function(a){var b=Bq;if(a instanceof Uq)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.Gw(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a)};
Xwa=function(a,b){Vwa().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Wwa(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Wwa(null===c||void 0===c?void 0:c.quota)});a.u("idbQuotaExceeded",c)})};
Wwa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
Ywa=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 PW(a)};
PW=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};
Zwa=function(a,b,c,d){if(g.Sa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
$wa=function(a){return"caches"in window&&a.length?window.caches.open("yt-player-local-img").then(function(b){return Promise.all(a.map(function(c){return b["delete"](c)}))}).then(function(){return Promise.resolve()}):Promise.resolve()};
axa=function(a){return"caches"in window&&fetch&&a.length?window.caches.open("yt-player-local-img").then(function(b){return b.addAll(a)}):Promise.resolve()};
SW=function(a,b,c){var d=this;this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Kfa().then(function(){var e=Mw(2);e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,QW(d,f)||Nw(f,3);RW(d)})};
TW=function(a){Rfa(a).then(function(b){return void $wa(bxa(null===b||void 0===b?void 0:b.thumbnail))});
return Ufa(a)};
cxa=function(){return Ue(this,function b(){return Aa(b,function(c){return 1==c.u?ra(c,Promise.all(["caches"in window?window.caches["delete"]("yt-player-local-img"):Promise.resolve(!0),Rw()]),2):c["return"]()})})};
UW=function(a,b){var c=Kw(b);if(1===c||0===c)return Promise.resolve();c=QW(a,b);c===a.player?(a.player.stopVideo(),c=a.player,c.D&&LE(c.D)):c&&(c.D&&LE(c.D),TF(c.getVideoData(),!1));return TW(b)};
dxa=function(a,b){var c,d;return Ue(a,function f(){var h,l,m;return Aa(f,function(n){if(1==n.u)return ra(n,Qfa(b),2);h=n.B;if(!h)return n["return"](null);l=h.timestampSecs;m=null===(d=null===(c=h.player)||void 0===c?void 0:c.offlineState)||void 0===d?void 0:d.expiresInSeconds;return!m||l+m<=Math.floor(Date.now()/1E3)?n["return"](null):n["return"](h.player)})})};
QW=function(a,b){var c=a.api.Vb(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:sG(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
gxa=function(a,b){Nw(b,2);var c=exa(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){return void fxa(a,c)});
a.player.Ch(c,a.B);vV(a.player,!1)};
exa=function(a,b){return new g.uF(a.player.T(),b)};
RW=function(a){if(g.R(a.api.T().experiments,"hoffle_api"))0<Mw(2).length||(b=Mw(3),0<b.length&&gxa(a,b[0]));else{a=g.q(Mw(3));for(var b=a.next();!b.done;b=a.next())TW(b.value)}};
fxa=function(a,b){if(g.R(a.api.T().experiments,"hoffle_api")){var c=b.getPlayerResponse();if(c&&c.videoDetails&&c.videoDetails.videoId){var d=c.videoDetails.videoId,e=c.videoDetails,f={videoId:d,title:e.title,lengthSeconds:e.lengthSeconds,thumbnail:e.thumbnail,viewCount:e.viewCount,author:e.author};Mfa(f.videoId,f).then(function(){var h=bxa(e.thumbnail);return h.length?axa(h):Promise.resolve(void 0)},function(){})["catch"](function(){});
Nfa(d,c)}}};
bxa=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
WW=function(a,b){g.B.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.N=[];this.G={};this.D={};this.C=null;this.V=new Set;VW(this,"cueVideoById",this.cueVideoById);VW(this,"loadVideoById",this.loadVideoById);VW(this,"cueVideoByUrl",this.cueVideoByUrl);VW(this,"loadVideoByUrl",this.loadVideoByUrl);VW(this,"playVideo",this.playVideo);VW(this,"pauseVideo",this.pauseVideo);VW(this,"stopVideo",this.stopVideo);VW(this,"clearVideo",this.clearVideo);
VW(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);VW(this,"getVideoBytesTotal",this.getVideoBytesTotal);VW(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);VW(this,"getVideoStartBytes",this.getVideoStartBytes);VW(this,"cuePlaylist",this.cuePlaylist);VW(this,"loadPlaylist",this.loadPlaylist);VW(this,"nextVideo",this.nextVideo);VW(this,"previousVideo",this.previousVideo);VW(this,"playVideoAt",this.playVideoAt);VW(this,"setShuffle",this.setShuffle);VW(this,"setLoop",this.setLoop);VW(this,
"getPlaylist",this.DI);VW(this,"getPlaylistIndex",this.getPlaylistIndex);VW(this,"getPlaylistId",this.getPlaylistId);VW(this,"loadModule",this.loadModule);VW(this,"unloadModule",this.unloadModule);VW(this,"setOption",this.setOption);VW(this,"getOption",this.getOption);VW(this,"getOptions",this.getOptions);VW(this,"mute",this.mute);VW(this,"unMute",this.unMute);VW(this,"isMuted",this.isMuted);VW(this,"setVolume",this.setVolume);VW(this,"getVolume",this.getVolume);VW(this,"seekTo",this.seekTo);VW(this,
"getPlayerState",this.getPlayerState);VW(this,"getPlaybackRate",this.getPlaybackRate);VW(this,"setPlaybackRate",this.setPlaybackRate);VW(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);VW(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
VW(this,"setPlaybackQuality",this.setPlaybackQuality);VW(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);VW(this,"getCurrentTime",this.getCurrentTime);VW(this,"getDuration",this.getDuration);VW(this,"addEventListener",this.FH);VW(this,"removeEventListener",this.jQ);VW(this,"getDebugText",this.getDebugText);VW(this,"getVideoData",function(){return c.gs()});
VW(this,"addCueRange",this.addCueRange);VW(this,"removeCueRange",this.removeCueRange);VW(this,"setSize",this.setSize);VW(this,"getApiInterface",this.getApiInterface);VW(this,"destroy",this.destroy);VW(this,"showVideoInfo",this.showVideoInfo);VW(this,"hideVideoInfo",this.hideVideoInfo);VW(this,"isVideoInfoVisible",this.isVideoInfoVisible);VW(this,"getSphericalProperties",this.getSphericalProperties);VW(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().G||(VW(this,"getVideoEmbedCode",
this.getVideoEmbedCode),VW(this,"getVideoUrl",this.getVideoUrl));VW(this,"getMediaReferenceTime",this.getMediaReferenceTime);Y(this,"getInternalApiInterface",this.getInternalApiInterface);Y(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);Y(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);Y(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);Y(this,"getAdState",this.getAdState);Y(this,"sendAbandonmentPing",this.sendAbandonmentPing);Y(this,"setLoopRange",this.setLoopRange);
Y(this,"getLoopRange",this.getLoopRange);Y(this,"setAutonavState",this.setAutonavState);Y(this,"seekToLiveHead",this.seekToLiveHead);Y(this,"seekToStreamTime",this.seekToStreamTime);Y(this,"getStreamTimeOffset",this.getStreamTimeOffset);Y(this,"getVideoData",this.gs);Y(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);Y(this,"deleteLocalMediaById",this.deleteLocalMediaById);Y(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);Y(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
Y(this,"fetchLocalMedia",this.fetchLocalMedia);Y(this,"fetchLocalMediaById",this.fetchLocalMediaById);Y(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);Y(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);Y(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);Y(this,"getAppState",this.getAppState);Y(this,"addInfoCardXml",this.addInfoCardXml);Y(this,"updateLastActiveTime",this.updateLastActiveTime);Y(this,"setBlackout",this.setBlackout);Y(this,"setAccountLinkState",this.setAccountLinkState);
Y(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);Y(this,"setUserEngagement",this.setUserEngagement);Y(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);Y(this,"setFauxFullscreen",this.setFauxFullscreen);Y(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);Y(this,"getPresentingPlayerType",this.getPresentingPlayerType);Y(this,"canPlayType",this.canPlayType);Y(this,"updatePlaylist",this.updatePlaylist);Y(this,"updateVideoData",this.updateVideoData);Y(this,
"updateEnvironmentData",this.updateEnvironmentData);Y(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);Y(this,"setCardsVisible",this.setCardsVisible);Y(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);Y(this,"setSafetyMode",this.setSafetyMode);Y(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
Y(this,"getVideoAspectRatio",this.getVideoAspectRatio);Y(this,"getPreferredQuality",this.getPreferredQuality);Y(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);Y(this,"onAdUxClicked",this.onAdUxClicked);Y(this,"getFeedbackProductData",this.getFeedbackProductData);Y(this,"getStoryboardFrame",this.getStoryboardFrame);Y(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);Y(this,"getStoryboardLevel",this.getStoryboardLevel);Y(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
Y(this,"setAutonav",this.setAutonav);Y(this,"isNotServable",this.isNotServable);Y(this,"channelSubscribed",this.channelSubscribed);Y(this,"channelUnsubscribed",this.channelUnsubscribed);Y(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);Y(this,"togglePictureInPicture",this.togglePictureInPicture);Y(this,"supportsGaplessAudio",this.supportsGaplessAudio);Y(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
Y(this,"clearQueue",this.clearQueue);Y(this,"isFastLoad",function(){return!1});
Y(this,"getPlayerResponse",this.getPlayerResponse);Y(this,"getAudioTrack",this.lI);Y(this,"setAudioTrack",this.setAudioTrack);Y(this,"getAvailableAudioTracks",this.mI);Y(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);Y(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);Y(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);Y(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);Y(this,"setMinimized",this.setMinimized);Y(this,"confirmYpcRental",
this.confirmYpcRental);Y(this,"handleExternalCall",this.handleExternalCall);Y(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);Y(this,"getStatsForNerds",this.getStatsForNerds);Y(this,"setScreenLayer",this.setScreenLayer);Y(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);Y(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);Y(this,"forceFrescaUpdate",this.forceFrescaUpdate);Y(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);Y(this,"updateFullerscreenEduButtonVisibility",
this.updateFullerscreenEduButtonVisibility);Y(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);Y(this,"setGlobalCrop",this.setGlobalCrop);Y(this,"getVisibilityState",this.getVisibilityState);Y(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);Y(this,"setInternalSize",this.setInternalSize)};
VW=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
XW=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
Y=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
RM=function(a){a.C||(a.C={},g.Wa(a.C,a.F),g.Wa(a.C,a.K),a.C.addEventListener=function(b,c){hxa(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c)),e=a.D[d];
e&&(a.app.ra.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
hxa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c));if(!a.D[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Na(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.ra.subscribe(b,f)}};
ixa=function(a,b,c){b=g.be(Math.floor(b),0,100);isFinite(b)&&YW(a.app,{volume:b,muted:a.isMuted()},c)};
jxa=function(a,b){YW(a.app,{muted:!0,volume:a.getVolume()},b)};
kxa=function(a,b){YW(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.ZW=function(a){var b=lxa(a.app.D);if(b)return b.chrome;a=a.app.D;a=g.tC(a.J.T())?a.Cc.get("music"):void 0;return a?a.chrome:null};
aX=function(a,b){WW.call(this,a,b);var c=this;this.u=!1;XW(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars($W(c,d),e)});
XW(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars($W(c,d),e,f,h)});
XW(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars($W(c,d),e,f,h)});
XW(this,"seekBy",this.seekBy);XW(this,"mutedAutoplay",this.mutedAutoplay);XW(this,"showControls",this.showControls);XW(this,"hideControls",this.hideControls);XW(this,"cancelPlayback",this.cancelPlayback);XW(this,"getProgressState",this.getProgressState);XW(this,"isInline",this.isInline);XW(this,"setInline",this.setInline);XW(this,"getStoryboardFormat",this.getStoryboardFormat);XW(this,"getVideoContentRect",this.getVideoContentRect);XW(this,"toggleFullscreen",this.toggleFullscreen);XW(this,"isFullscreen",
this.isFullscreen);XW(this,"getVideoStats",this.getVideoStats);XW(this,"getPlayerSize",this.getPlayerSize);XW(this,"toggleSubtitles",this.toggleSubtitles);XW(this,"setCenterCrop",this.setCenterCrop);XW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);XW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);XW(this,"setSizeStyle",this.setSizeStyle);XW(this,"wakeUpControls",this.wakeUpControls)};
$W=function(a,b){var c={};if(a.app.T().N)for(var d=g.q(mxa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(nxa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
bX=function(a){aX.call(this,a);this.P=null};
g.cX=function(a){return a.app.D};
g.dX=function(a){a=g.cX(a).Cc.get("endscreen");return!!a&&a.PC()};
eX=function(a){a=g.cX(a);var b=a.Cc.get("endscreen");return b&&b.QC()?!0:a.nq()||g.tC(a.J.T())};
g.fX=function(a,b){3===a.getPresentingPlayerType()?a.W("mdxautoplaycancel"):a.W("autonavcancel",b)};
g.AJ=function(a,b){return oxa(a.app,b)};
g.fH=function(a){return a.app.template};
g.hX=function(a){var b=g.gX(g.cX(a));return a.app.X&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.ii()||!!a.getPlaylist()};
g.iX=function(a,b,c){a.app.C.handleError(new sB(b,!1,c))};
g.kX=function(a){return(a=g.jX(g.cX(a)))?a.MJ():{}};
g.mX=function(a){a=g.lX(g.cX(a));return!!a&&a.zp()};
g.nX=function(a){a=g.lX(g.cX(a));return!!a&&a.OC()};
pX=function(a){a=oX(g.cX(a));return!!a&&a.C()};
qX=function(a){a=g.cX(a).Cc.get("heartbeat");return!!a&&a.KJ()};
g.nN=function(a,b,c){pxa(a.app,b,c)};
g.sX=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=eE(d.ea,b),c&&a.getPresentingPlayerType()!==c||rX(a,"cuerangesremoved",b))};
g.tX=function(a,b,c){(a=g.Z(a.app,c))&&tW(a,b)};
g.qxa=function(a){a=(a=a.getVideoData())&&a.Ma;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.rxa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.sg)};
g.DP=function(a,b,c){a=g.fH(a).element;var d=Bb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Ie(a,b,d);b.setAttribute("data-layer",String(c))};
g.uX=function(a){var b=a.T();if(!b.tb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.R(b.experiments,"allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);
f=c.Lc&&f;return!c.ypcPreview&&(!d||e)&&!g.nb(c.Pe,"ypc")&&!a&&(!g.kC(b)||f)};
g.vX=function(a,b,c,d,e){a.T().da&&sxa(a.app.Aa,b,c,d,void 0===e?!1:e)};
g.HN=function(a,b,c,d){a.T().da&&txa(a.app.Aa,b,c,void 0===d?!1:d)};
g.IN=function(a,b,c){a.T().da&&(a.app.Aa.elements.has(b),c&&(b.visualElement=g.Is(c)))};
g.wX=function(a,b,c){a.T().da&&a.app.Aa.click(b,c)};
g.LN=function(a,b,c,d){if(a.T().da){a=a.app.Aa;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.Ps(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.pt(e,[f]):g.qt(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.it(e,f,d),a.C.add(b))}};
g.KN=function(a,b){return a.T().da?a.app.Aa.elements.has(b):!1};
g.mN=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(d.getPlayerType(),d.getVideoData(),d!==c.C?xX(c,c.C):uxa(c))}};
Ura=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.V?yX(a.V,b,c):zX(a.ka,b,c)};
eH=function(a){a=a.app;var b=g.Z(a,void 0);if(b){a=AX(a,b);b=DW(a);var c=a.getCurrentTime(),d;(d=!a.u.isLivePlayback)||(d=a.K,d=!(d.B&&d.B.C));a=d||wU(a.K)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
vxa=function(a){if(!a.ca("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Ma||!c.Ma.video||1080>c.Ma.video.yc||c.YB)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Ma.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ca("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.jb("iqss",e,!0),!0):!1};
xxa=function(a,b){return Ue(this,function d(){var e,f,h,l;return Aa(d,function(m){if(1==m.u){e=PU();var n=a.T(),p={context:RT(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list;if(t){t={playlistId:t};var w=a.playlistIndex;t.playlistIndex=String(w?w:1);t.videoId=r?r:"";n&&(t.serializedThirdPartyEmbedConfig=n);p.playlistRequest=t}else b.playlist?(r={templistVideoIds:b.playlist.toString().split(",")},n&&(r.serializedThirdPartyEmbedConfig=n),p.playlistRequest=r):r&&(r={videoId:r},
n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=GU(wxa);return ra(m,iH(e,f,h),2)}l=m.B;a.Mg({raw_embedded_player_response:l},!1);m.u=0})})};
g.BX=function(a,b){return yw(a.info.mimeType)?b?Wu(a.info)===b:!0:!1};
g.yxa=function(a,b){if(null!=a.ma&&g.MC(b.T())&&!a.ma.isManifestless&&null!=a.ma.u.rawcc)return!0;if(!a.Ag())return!1;var c=!!a.ma&&a.ma.isManifestless&&Object.values(a.ma.u).some(function(e){return g.BX(e,"386")}),d=!!a.ma&&!a.ma.isManifestless&&Lga(a.ma);
return c||d};
CX=function(a,b){g.B.call(this);this.J=a;this.F=b;this.u={};this.B={};this.C=null;this.Cc=new Map;this.D=g.R(a.T().experiments,"web_player_defer_modules")};
g.DX=function(a){return a.Cc.get("captions")};
Cxa=function(a,b){switch(b){case "ad":return EX(a);case "annotations_module":return a.MF();case "attribution":var c=a.J.T();return g.R(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.J.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===c.playerStyle?c=!0:(c=a.J.getVideoData(),c=!!c&&(!!g.iG(c)||!!g.jG(c))),c;case "embed":return g.kC(a.J.T());case "endscreen":return g.zxa(a);case "fresca":return a.Cy();case "heartbeat":return a.Dy();
case "kids":return BC(a.J.T());case "remote":return a.J.T().de;case "miniplayer":return a.J.T().showMiniplayerUiWhenMinimized;case "music":return g.tC(a.J.T());case "captions":return c=a.J.getVideoData(),!!c.zo||!!c.captionTracks.length||g.yxa(c,a.J);case "unplugged":return g.AC(a.J.T());case "ux":return a.J.T().Ra;case "visualizer":return g.Axa(a);case "webgl":return Bxa(a);case "ypc":return a.nq();case "ypc_clickwrap":return c=a.J.getVideoData(),c.ho&&!c.Ww;case "yto":return!!a.J.getVideoData().Pe.includes("yto");
default:return g.Fr(Error("Module descriptor "+b+" does not match")),!1}};
FX=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Cc.get(b);if(!f||e)if(c||(c=function(){FX(a,b,void 0,d,e)}),f=f||Dxa(a,b,c,Cxa(a,b)))a.Cc.set(b,f),f.create(),d&&a.J.va("onApiChange")};
Exa=function(a){a.D&&(FX(a,"endscreen"),a.Iv(),FX(a,"creatorendscreen",void 0,!0))};
g.zxa=function(a){var b=a.J.T();if(VC(b)||b.G||!b.rb&&!b.Pc)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.R(b.experiments,"desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.R(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.jX=function(a){return a.Cc.get("webgl")};
Bxa=function(a){var b=a.J.getVideoData(),c=a.J.T().experiments,d=g.ek(),e=g.R(c,"enable_spherical_kabuki");a=g.TC(a.J.T());if(b.kj())return d||e||a||g.R(c,"html5_enable_spherical");if(b.oj())return a||d||e||g.R(c,"html5_enable_spherical");if(b.pj())return a||d||g.R(c,"html5_enable_spherical3d");if(b.bn())return a||g.R(c,"html5_enable_anaglyph3d")||!1;d=b.Ma&&b.Ma.video&&nw(b.Ma.video);return a&&!g.YF(b)&&!b.isVisualizerEligible&&!d&&(g.R(c,"enable_webgl_noop")||g.R(c,"html5_enable_bicubicsharp")||
g.R(c,"html5_enable_smartsharp"))};
Fxa=function(a){g.R(a.J.T().experiments,"web_player_ux_module_wait")&&a.Cc.get("ux")&&g.tX(a.J,"ux")};
Gxa=function(a){Fxa(a);FX(a,"ux",void 0,!0)};
EX=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.Axa=function(a){var b=a.J.T();return a.J.getVideoData().isVisualizerEligible&&UC(b)&&g.R(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.TC(b)&&!(g.or&&!g.Zd(42))};
Dxa=function(a,b,c,d){try{if(d){var e=g.GX[b];if(e)return new e(a.J);"creatorendscreen"===b?Hxa(a,"annotations_module",c):Hxa(a,b,c)}else g.tX(a.J,b)}catch(f){g.tX(a.J,b),g.Fr(f)}return null};
HX=function(a,b,c){for(var d=g.q(a.Cc),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Dh(b))&&(g.eg(f),a.Cc["delete"](e))}};
IX=function(a){return a.Cc.get("ad")};
JX=function(a){if(BC(a.J.T()))return a.Cc.get("kids")};
g.gX=function(a){if(a.J.T().de)return a.Cc.get("remote")};
KX=function(a){if(g.AC(a.J.T()))return a.Cc.get("unplugged")};
lxa=function(a){if(a.J.T().Ra)return a.Cc.get("ux")};
g.lX=function(a){return a.Cc.get("annotations_module")};
LX=function(a){return a.Cc.get("creatorendscreen")};
oX=function(a){return a.Cc.get("fresca")};
Hxa=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.Fe("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.la()||c.call(a)},p=function(){a.la()||g.tX(a.J,b)},r=h.onload;
h.onload=function(y){om(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var D=new Sq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Fr(D)}om(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":om(n)}x&&x(y)};
f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.jd(h,g.ng(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.dg(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.GX[b]=null;"annotations_module"===b&&(g.GX.creatorendscreen=null)}))}};
NX=function(a,b,c,d){g.P.call(this);var e=this;this.target=a;this.jr=b;this.B=0;this.G=!1;this.D=new g.fe(NaN,NaN);this.u=new g.rs(this);this.ba=this.C=this.K=null;g.C(this,this.u);b=d?4E3:3E3;this.P=new g.G(function(){MX(e,1,!1)},b,this);
g.C(this,this.P);this.V=new g.G(function(){MX(e,2,!1)},b,this);
g.C(this,this.V);this.X=new g.G(function(){MX(e,512,!1)},b,this);
g.C(this,this.X);this.Y=c&&0<c.Yk.length?5E3:3E3;d||(this.C=this.u.R(a,"mouseover",this.Ht),this.u.R(a,"mousemove",this.VL),this.u.R(a,"mouseleave",this.WL));qg?this.u.R(a,"keypress",this.CJ):this.u.R(a,"focusin",this.nI);this.F=this.u.R(a,"mousedown",this.AD);this.N=this.u.R(a,"touchstart",this.dG,void 0,!0);MX(this,640,!0)};
Ixa=function(a){MX(a,4,!1);a.K&&(a.u.Eb(a.K),a.K=null,a.C=a.u.R(a.target,"mouseover",a.Ht));a.C&&(a.u.Eb(a.C),a.C=a.u.R(a.target,"mouseover",a.Ht))};
MX=function(a,b,c){a.la();var d=!a.B;c?(a.B|=b,b&1&&a.P.start(),b&2&&a.V.start()):(a.B&=~b,b&1&&a.P.stop(),b&2&&a.V.stop(),b&512&&a.X.stop());a.B&512&&!(a.B&128)&&a.X.Hb(a.Y);b=!a.B;d!==b&&a.W("autohideupdate",b)};
g.OX=function(a){g.V.call(this,{I:"button",ia:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.R(a,"videodatachange",this.na);this.na()};
PX=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.R(b.experiments,"web_player_contain_thumbnail")||b.G)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{I:"div",ia:c,S:[{I:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ga("ytp-cued-thumbnail-overlay");c=new g.OX(a);g.C(this,c);c.fa(b);this.C=new g.rs(this);g.C(this,this.C);this.api=a;this.F=this.ga("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.oO(this,250);g.C(this,this.B);this.u=new g.G(this.na,0,this);g.C(this,
this.u);this.na();this.R(a,"appresize",this.Sa);this.R(a,"presentingplayerstatechange",this.fL);this.R(a,"ypcStateChanged",this.MP);mC(a.T())&&this.R(a,"videoplayerreset",this.eL)};
Jxa=function(a){var b=!a.T().ee&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.QX=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.eP(a))return g.jp(a),!0;b.pauseVideo();a=e.getAttribute("href");g.VK(a,d,!0);return!1};
g.RX=function(a,b,c){if(IC(b.T())&&2!==b.getPresentingPlayerType()){if(g.eP(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.jp(c),!0}else{var d=g.eP(c);d&&b.pauseVideo();g.VK(a,void 0,!0);d&&(g.WK(a),g.jp(c))}return!1};
SX=function(){return{I:"div",L:"ytp-spinner-container",S:[{I:"div",L:"ytp-spinner-rotator",S:[{I:"div",L:"ytp-spinner-left",S:[{I:"div",L:"ytp-spinner-circle"}]},{I:"div",L:"ytp-spinner-right",S:[{I:"div",L:"ytp-spinner-circle"}]}]}]}};
TX=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.UX=function(a,b,c){a=a.T();return g.R(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.ce?g.yK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.VX=function(a){g.V.call(this,{I:"div",ia:["ytp-error"],U:{role:"alert"},S:[{I:"div",L:"ytp-error-content",S:[{I:"div",L:"ytp-error-icon-container",S:[{I:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{I:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",U:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",L:"ytp-error-content-wrap",
S:[{I:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{I:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.WX=function(a){a=a.split(Kxa);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({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",U:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{I:"span",S:b}};
YX=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().B);a=a.api.getVideoData();b=g.yK(g.XX[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",Z:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",U:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{I:"span",S:d}};
Lxa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.R(c[d],"click",b);a.keys.push(e)}};
Mxa=function(a){for(var b=0;b<a.keys.length;b++)a.Eb(a.keys[b]);a.keys=[]};
$X=function(a){g.rs.call(this);this.J=a;this.u=new Set;this.mediaSession=navigator.mediaSession;ZX(this,"play",function(){a.playVideo()});
ZX(this,"pause",function(){a.pauseVideo()});
ZX(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
ZX(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.R(a,"videodatachange",this.Oa);this.R(a,"presentingplayerstatechange",this.Lf);this.Oa()};
ZX=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
aY=function(a){g.V.call(this,{I:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.D=new g.V({I:"div",ia:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.C=!1;this.B=new g.oO(this.D,250,!1,100);this.Bc=this.u=null;g.C(this,this.D);this.D.fa(this.element);g.C(this,this.B);this.R(a,"videodatachange",this.Oa);this.R(a,"presentingplayerstatechange",this.Wb)};
Nxa=function(a,b){var c=ZF(b),d=$F(b);a.u?b.videoId&&b.videoId!==a.videoId&&(a.u.Yf(),a.videoId=b.videoId,a.C=!!d):c&&d&&(a.u=new g.G(a.ib,d,a),g.C(a,a.u),g.Ne(g.re("ytp-paid-content-overlay-text",a.element),c))};
Oxa=function(a,b){a.u&&(g.U(b,8)&&a.C?(a.C=!1,a.uc(),a.u.start()):g.U(b,2)&&a.videoId&&(a.videoId=null))};
cY=function(a){g.V.call(this,{I:"div",L:"ytp-spinner",S:[SX(),{I:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ga("ytp-spinner-message");this.u=new g.G(this.show,500,this);g.C(this,this.u);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"onFrescaStateChange",this.C);this.R(a,"playbackstalledatstart",this.D);bY(this,g.AJ(a))};
bY=function(a,b){if(g.U(b,128))var c=0;else!(c=g.U(b,16))&&(c=g.U(b,1))&&(c=oX(g.cX(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
g.dY=function(a,b,c,d){d=void 0===d?!1:d;g.EN.call(this,b);var e=this;this.J=a;this.X=d;this.K=new g.rs(this);this.V=new g.oO(this,c,!0,void 0,void 0,function(){e.u&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),g.R(e.J.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Me(e.u,document.activeElement)&&e.focus():e.focus())});
g.C(this,this.K);g.C(this,this.V)};
Pxa=function(a){a.u&&(document.activeElement&&g.Me(a.element,document.activeElement)&&(Qe(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.us(a.K);a.P=void 0};
eY=function(a,b,c){a.ff()?a.ib():a.uc(b,c)};
fY=function(a){var b=g.xv(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{I:"div",ia:["ytp-unmute-icon"],S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}]},
{I:"div",ia:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({I:"div",ia:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.dY.call(this,a,{I:"button",ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{I:"div",L:"ytp-unmute-inner",S:d}]},100);this.seen=this.B=!1;this.api=a;g.vX(this.api,this.element,this,51663);this.R(a,"onMutedAutoplayChange",this.Sp,this);this.R(a,"presentingplayerstatechange",
this.Lf);this.wa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.kC(this.api.T());g.DN(this,a);a&&Qxa(this);this.C=a};
Rxa=function(a){a.B||(a.B=!0,g.wX(a.api,a.element))};
Qxa=function(a){a.seen||(a.seen=!0,g.LN(a.api,a.element,!0))};
g.hY=function(a){g.rs.call(this);var b=this;this.api=a;this.By=!1;this.ji=null;this.tr=!1;this.pd=null;this.Hv=this.uu=!1;this.Wy=this.Yy=null;this.uC=NaN;this.Vy=this.Io=!1;this.Np=0;this.Uu=[];var c=a.T(),d=g.fH(a);this.iA=new g.G(this.EM,0,this);g.C(this,this.iA);g.tC(c)||(this.Im=new PX(a),g.C(this,this.Im),g.DP(a,this.Im.element,4));if(Sxa()){var e=new cY(a);g.C(this,e);e=e.element;g.DP(a,e,4)}var f=a.getVideoData();this.Ac=new NX(d,function(l){return b.jr(l)},f,c.md);
g.C(this,this.Ac);this.Ac.subscribe("autohideupdate",this.xh,this);var h=new aY(a);g.C(this,h);g.DP(a,h.element,4);this.xu=new fY(a);g.C(this,this.xu);g.DP(this.api,this.xu.element,2);this.Hw=this.api.isMutedByMutedAutoplay();this.R(a,"onMutedAutoplayChange",this.Sp);this.tu=new g.G(this.Vn,200,this);g.C(this,this.tu);this.fx=f.videoId;this.CF=new g.G(function(){b.Np=0},350);
g.C(this,this.CF);this.xr=new g.G(function(){b.Vy||gY(b)},350,this);
g.C(this,this.xr);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.I(f,"ytp-color-white")}g.tC(c)&&g.I(f,"ytp-music-player");!g.R(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new $X(a),g.C(this,f));this.R(a,"appresize",this.Sa);this.R(a,"presentingplayerstatechange",this.Lf);this.R(a,"videodatachange",this.Oa);this.R(a,"videoplayerreset",this.nO);
this.R(a,"autonavvisibility",this.Kj,this);this.R(a,"sizestylechange",this.Kj,this);this.R(a,"onFrescaStateChange",this.og,this);this.R(d,"click",this.OO,this);this.R(d,"dblclick",this.PO,this);c.ka&&(this.R(d,"gesturechange",this.QO,this),this.R(d,"gestureend",this.RO,this));this.Dk=[d.C];this.Im&&this.Dk.push(this.Im.element);e&&this.Dk.push(e)};
iY=function(a,b){if(!b)return!1;var c=a.api.app.F;if(c.Ak()&&(c=c.Na())&&g.Me(c,b))return c.controls;for(c=0;c<a.Dk.length;c++)if(g.Me(a.Dk[c],b))return!1;return g.zn(b,"ytp-player-content")||g.zn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Txa=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.fH(a.api).G&&a.api.T().u&&jY&&11<=wG)};
kY=function(a,b){return!iY(a,gp(b))&&g.eP(b)};
gY=function(a){a.Ac.Ij();if(g.R(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.uu&&a.Hv)a.Hv=!1;else if(!a.api.T().Y&&!a.dj()){var b=g.AJ(a.api);g.U(b,2)&&eX(a.api)||a.km(b);if(!a.api.T().ka||b.isCued()||g.U(b,1024)){var c=a.api.app.Qa;g.Dq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,2048);c&&(b.isCued()||d)?(g.Dq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&
d||g.Dq("embedsRequestStorageAccessFailedState",{state:b.state}),a.Vn())}else a.tu.isActive()?(a.xs(),a.tu.stop()):a.tu.start()}};
Uxa=function(a,b){if(g.eP(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.AJ(a.api);!g.U(c,4)||g.U(c,8)||g.U(c,2)||a.Vn();return!0}return!1};
Vxa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Sxa=function(){var a=Yj()&&67<=Vj();return!Xj("tizen")&&!iC&&!a&&!0};
lY=function(a){g.V.call(this,{I:"button",ia:["ytp-button","ytp-back-button"],S:[{I:"div",L:"ytp-arrow-back-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{I:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",sb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.DN(this,a.T().showBackButton);this.wa("click",this.onClick)};
g.mY=function(a){g.V.call(this,{I:"div",S:[{I:"div",L:"ytp-bezel-text-wrapper",S:[{I:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{I:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{I:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.J=a;this.B=new g.G(this.show,10,this);this.u=new g.G(this.hide,500,this);g.C(this,this.B);g.C(this,this.u);this.hide()};
oY=function(a,b,c){if(0>=b){c=fO();b="muted";var d=0}else c=c?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";nY(a,c,b,d+"%")};
Wxa=function(a,b){var c=b?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.J.getPlaybackRate(),e=g.yK("Speed is $RATE",{RATE:String(d)});nY(a,c,e,d+"x")};
nY=function(a,b,c,d){d=void 0===d?"":d;a.ua("label",void 0===c?"":c);a.ua("icon",b);a.u.Yf();a.B.start();a.ua("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
pY=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-cards-teaser",S:[{I:"div",L:"ytp-cards-teaser-box"},{I:"div",L:"ytp-cards-teaser-text",S:[{I:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.J=a;this.V=b;this.Vh=c;this.D=new g.oO(this,250,!1,250);this.u=null;this.K=new g.G(this.VN,300,this);this.G=new g.G(this.UN,2E3,this);this.F=[];this.B=null;this.P=new g.G(function(){d.element.style.margin="0"},250);
this.C=null;g.C(this,this.D);g.C(this,this.K);g.C(this,this.G);g.C(this,this.P);this.R(c.element,"mouseover",this.hD);this.R(c.element,"mouseout",this.gD);this.R(a,"cardsteasershow",this.jP);this.R(a,"cardsteaserhide",this.ib);this.R(a,"cardstatechange",this.pG);this.R(a,"presentingplayerstatechange",this.pG);this.R(a,"appresize",this.hz);this.R(a,"onShowControls",this.hz);this.R(a,"onHideControls",this.OH);this.wa("click",this.NQ);this.wa("mouseenter",this.bL)};
rY=function(a,b,c){g.V.call(this,{I:"button",ia:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kC(a.T()))},S:[{I:"span",L:"ytp-cards-button-icon-default",S:[{I:"div",L:"ytp-cards-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",L:"ytp-cards-button-title",Z:"Info"}]},{I:"span",L:"ytp-cards-button-icon-shopping",S:[{I:"div",L:"ytp-cards-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.oO(this,250,!0,100);g.C(this,this.B);g.K(this.C,"ytp-show-cards-title",g.kC(a.T()));this.hide();this.wa("click",this.onClicked);this.wa("mouseover",this.tN);qY(this,!0)};
qY=function(a,b){b?a.u=g.sY(a.D.Jb(),a.element):(a.u=a.u,a.u(),a.u=null)};
uY=function(a,b){g.V.call(this,{I:"button",ia:[tY.BUTTON,tY.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{I:"div",L:tY.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.dO()]},{I:"div",L:tY.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{I:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{I:"path",U:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.channelId=b;this.u=!1;g.vX(a,this.element,this,36927);this.wa("click",this.onClick,this);this.ua("pressed",!1);this.ua("label","Get notified about every new video")};
Xxa=function(a,b){a.u=b;a.element.classList.toggle(tY.NOTIFICATIONS_ENABLED,a.u);if(g.R(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.Py:c.Oy){var d=gH(a.api.app);d?HU(d,c):M(Error("No innertube service available when updating notification preferences."))}else M(Error("No update preferences command available."));else M(Error("No video data when updating notification preferences."))}else g.pq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",fc:{channel_id:a.channelId,receive_all_updates:!a.u}})};
Yxa=function(a,b,c){return b?a.P+"subscription_ajax":c?"/subscription_service":""};
g.wY=function(a,b,c,d,e,f,h,l,m,n,p,r,t){t=void 0===t?null:t;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 w=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.qC(w)||g.sC(w))c.target=w.F;g.V.call(this,{I:"div",ia:["ytp-button","ytp-sb"],S:[{I:"a",L:"ytp-sb-subscribe",U:c,S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},a]},b?{I:"div",L:"ytp-sb-count",Z:b}:""]}]});f&&g.I(this.element,
"ytp-sb-classic");this.channelId=h;this.u=t}else{p=w.userDisplayName&&g.qC(w)&&!g.R(w.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{I:"div",ia:["ytp-button","ytp-sb"],S:[{I:"div",L:"ytp-sb-subscribe",U:p?{title:g.yK("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":WC(w),"data-tooltip-opaque":String(g.kC(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},
a]},b?{I:"div",L:"ytp-sb-count",Z:b}:""]},{I:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.yK("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":WC(w),"data-tooltip-opaque":String(g.kC(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{I:"div",L:"ytp-sb-text",S:[{I:"div",L:"ytp-sb-icon"},c]},d?{I:"div",L:"ytp-sb-count",Z:d}:""]}]});var x=this;this.channelId=h;this.u=t;var y=this.ga("ytp-sb-subscribe"),D=this.ga("ytp-sb-unsubscribe");
f&&g.I(this.element,"ytp-sb-classic");if(e){l&&g.I(this.element,"ytp-sb-subscribed");var E=function(){a:{var N=x.channelId;if(m||n){var J=r.T();var Ja={c:N};if(g.R(J.experiments,"embeds_botguard_with_subscribe_killswitch"))Ja="";else{var wa;Pr.Gd()&&(wa=xsa(Ja));Ja=wa||""}if(g.R(J.experiments,"web_player_innertube_subscription_update")){J=r.getVideoData();if(!J){M(Error("No video data available when updating subscription."));break a}J=J.subscribeCommand;if(!J){M(Error("No subscribe command in videoData."));
break a}wa=gH(r.app);if(!wa){M(Error("No innertube service available when updating subscriptions."));break a}HU(wa,J,{botguardResponse:Ja,feature:m})}else g.pq(Yxa(J,!!m,!!n),m?{method:"POST",Lh:{action_create_subscription_to_channel:1,c:N},fc:{feature:m,silo_name:null,r2b:Ja},withCredentials:!0}:n?{method:"POST",Lh:{action_subscribe:1},fc:{channel_ids:N,itct:n}}:{});r.va("SUBSCRIBE",N)}}D.focus();D.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},H=function(){var N=x.channelId;
if(m||n){var J=r.T();g.R(J.experiments,"web_player_innertube_subscription_update")?(J=r.getVideoData(),HU(gH(r.app),J.unsubscribeCommand,{feature:m})):g.pq(Yxa(J,null!=m,null!=n),m?{method:"POST",Lh:{action_remove_subscriptions:1},fc:{c:N,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Lh:{action_unsubscribe:1},fc:{channel_ids:N,itct:n}}:{});r.va("UNSUBSCRIBE",N)}y.focus();y.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.R(y,"click",E);this.R(D,"click",H);this.R(y,"keypress",function(N){13===N.keyCode&&E(N)});
this.R(D,"keypress",function(N){13===N.keyCode&&H(N)});
this.R(r,"SUBSCRIBE",this.B);this.R(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Jb(),vY(this.tooltip),g.dg(this,g.sY(this.tooltip,y)),g.dg(this,g.sY(this.tooltip,D)))}else g.I(y,"ytp-sb-disabled"),g.I(D,"ytp-sb-disabled")}};
xY=function(a,b){g.V.call(this,{I:"div",L:"ytp-title-channel",S:[{I:"div",L:"ytp-title-beacon"},{I:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{I:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{I:"div",L:"ytp-title-expanded-heading",S:[{I:"h2",L:"ytp-title-expanded-title",S:[{I:"a",Z:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{I:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.G=b;this.channel=this.ga("ytp-title-channel");this.u=this.ga("ytp-title-channel-logo");this.D=this.ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.kC(this.api.T());g.vX(a,this.u,this,36925);this.F&&Zxa(this);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
Zxa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.ha){var d=b.ie?null:Swa(),e=new g.wY("Subscribe",null,"Subscribed",null,!0,!1,c.Ng,c.subscribed,"channel_avatar",null,d,a.api,a.G);a.subscribeButton=e;g.C(a,e);e.fa(a.D);g.vX(a.api,e.element,a,36926);e.hide();a.R(e.element,"click",function(){g.wX(a.api,e.element)});
var f=new uY(a.api,c.Ng);a.B=f;g.C(a,f);f.fa(a.D);f.hide();a.R(a.api,"SUBSCRIBE",function(){c.Sn&&f.show()});
a.R(a.api,"UNSUBSCRIBE",function(){c.Sn&&(f.hide(),Xxa(f,!1))})}a.ua("flyoutUnfocusable","true");
a.ua("channelTitleFocusable","-1");b.u?a.R(a.u,"click",function(h){$xa(a)&&(h.preventDefault(),a.isExpanded()?a.Ev():a.Zv());g.wX(a.api,a.u)}):(a.R(a.channel,"mouseenter",a.Zv),a.R(a.channel,"mouseleave",a.Ev),a.R(a.channel,"focusin",a.Zv),a.R(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.Ev()}),a.R(a.u,"click",function(){g.wX(a.api,a.u)}));
a.C=new g.G(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.LN(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.LN(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.C);a.R(a.channel,aya,function(){bya(a)});
a.R(a.api,"onHideControls",a.oy);a.R(a.api,"appresize",a.oy);a.R(a.api,"fullscreentoggled",a.oy)};
bya=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
$xa=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.zY=function(a,b,c,d){g.EN.call(this,a);this.priority=b;c&&g.yY(this,c);d&&this.sc(d)};
g.AY=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{I:c?"a":"div",ia:b,U:a,S:[{I:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{I:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{I:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
BY=function(a,b){a.ua("icon",b)};
g.yY=function(a,b){a.ua("label",b)};
CY=function(a,b,c,d,e,f){var h={I:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={I:"div",L:"ytp-panel-header",S:[{I:"button",ia:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({I:"button",ia:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={I:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.EN.call(this,h);this.content=b;d&&h.S?b.fa(this.element,h.S.length-1):b.fa(this.element);this.OB=!1;this.oJ=d;c&&(c=this.ga(l),this.R(c,"click",this.HM),this.OB=!0,
e&&(n=this.ga(n),this.R(n,"click",e)));b.subscribe("size-change",this.VD,this);this.R(a,"fullscreentoggled",this.VD)};
g.DY=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.EN({I:"div",L:"ytp-panel-menu",U:h});CY.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.C(this,this.menuItems)};
g.EY=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Ox,a);a.items=[];g.He(a.menuItems.element);a.menuItems.W("size-change")};
cya=function(a,b){return b.priority-a.priority};
FY=function(a){var b=g.AY({"aria-haspopup":"true"});g.zY.call(this,b,a);this.wa("keydown",this.u)};
GY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.HY=function(a,b){g.zY.call(this,g.AY({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.wa("click",this.onClick)};
IY=function(a,b,c,d){g.DY.call(this,a);this.J=a;this.Va=c;this.Lb=d;this.nh=new g.HY("Loop",7);this.getVideoUrl=new FY(6);this.dh=new FY(5);this.Yg=new FY(4);this.qb=new FY(3);this.fq=new g.zY(g.AY({href:"{{href}}",target:this.J.T().F},void 0,!0),2,"Troubleshoot playback issue");this.Gm=new g.EN({I:"div",ia:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.FA=new CY(this.J,this.Gm);this.pk=null;g.C(this,this.nh);this.Pb(this.nh,!0);this.nh.wa("click",this.RP,
this);g.vX(a,this.nh.element,this.nh,28661);g.C(this,this.getVideoUrl);this.Pb(this.getVideoUrl,!0);this.getVideoUrl.wa("click",this.PP,this);g.vX(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.dh);this.Pb(this.dh,!0);this.dh.wa("click",this.QP,this);g.vX(a,this.dh.element,this.dh,28660);g.C(this,this.Yg);this.Pb(this.Yg,!0);this.Yg.wa("click",this.OP,this);g.vX(a,this.Yg.element,this.Yg,28658);g.C(this,this.qb);this.Pb(this.qb,!0);this.qb.wa("click",this.NP,this);g.C(this,this.fq);
this.Pb(this.fq,!0);this.fq.wa("click",this.JO,this);b=new g.zY(g.AY(),1,"Stats for nerds");g.C(this,b);this.Pb(b,!0);b.wa("click",this.aP,this);g.C(this,this.Gm);this.Gm.wa("click",this.cN,this);g.C(this,this.FA);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.AB&&g.Zd(43)&&(c=!0);g.SB&&!g.Zd(41)&&(c=!1);c&&(this.pk=new g.V({I:"textarea",L:"ytp-html5-clipboard",U:{readonly:""}}),g.C(this,this.pk),this.pk.fa(this.element));BY(this.nh,{I:"svg",U:{fill:"none",height:"24",
viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});BY(this.qb,{I:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{"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"}}]});BY(this.fq,{I:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{I:"path",U:{"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"}}]});BY(b,noa());this.R(a,"loopchange",this.gE);this.R(a,"videodatachange",this.Oa);dya(this);this.Ch(this.J.getVideoData())};
KY=function(a,b){var c=!1;if(a.pk){var d=a.pk.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Va.ib():(a.Gm.sc(b,"text"),g.JY(a.Va,a.FA),TX(a.Gm.element),a.pk&&(a.pk=null,dya(a)));return c};
dya=function(a){var b=!!a.pk;g.yY(a.qb,b?"Copy debug info":"Get debug info");GY(a.qb,!b);g.yY(a.Yg,b?"Copy embed code":"Get embed code");GY(a.Yg,!b);g.yY(a.getVideoUrl,b?"Copy video URL":"Get video URL");GY(a.getVideoUrl,!b);g.yY(a.dh,b?"Copy video URL at current time":"Get video URL at current time");GY(a.dh,!b);BY(a.Yg,b?ZN():null);BY(a.getVideoUrl,b?bO():null);BY(a.dh,b?bO():null)};
g.LY=function(a,b){g.dY.call(this,a,{I:"div",ia:["ytp-popup",b||""]},100,!0);this.B=[];this.C=this.F=null;this.At=this.maxWidth=0;this.size=new g.he(0,0);this.wa("keydown",this.jL)};
eya=function(a){var b=MY(a);if(b){g.Dg(a.element,a.maxWidth||"100%",a.At||"100%");g.F(b.element,"minWidth","250px");g.F(b.element,"width","");g.F(b.element,"height","");g.F(b.element,"maxWidth","100%");g.F(b.element,"maxHeight","100%");g.F(b.content.element,"height","");var c=g.Eg(b.element);c.width+=1;c.height+=1;g.F(b.element,"width",c.width+"px");g.F(b.element,"height",c.height+"px");g.F(b.element,"maxWidth","");g.F(b.element,"maxHeight","");var d=0;b.OB&&(d=b.ga("ytp-panel-header"),d=g.Eg(d).height);
var e=0;b.oJ&&(e=b.ga("ytp-panel-footer"),g.F(e,"width",c.width+"px"),e=g.Eg(e).height);g.F(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.F(b.element,"width",c.width+"px")));a.size=c}};
g.JY=function(a,b){var c=a.B[a.B.length-1];a.B.push(b);NY(a,c,b)};
g.OY=function(a){var b=a.B.pop(),c=a.B[0];a.B=[c];NY(a,b,c,!0)};
NY=function(a,b,c,d){fya(a);MY(a);g.zn(c.element,"ytp-panel-animate-back")||g.zn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.Zn,a),b.unsubscribe("back",a.Pf,a));c.subscribe("size-change",a.Zn,a);c.subscribe("back",a.Pf,a);if(a.Za){g.I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.fa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;eya(a);g.Dg(a.element,e);a.F=new g.G(function(){gya(a,b,c,d)},20,a);
a.F.start()}else c.fa(a.element),b&&b.detach()};
gya=function(a,b,c,d){a.F.dispose();a.F=null;g.I(a.element,"ytp-popup-animating");d?(g.I(b.element,"ytp-panel-animate-forward"),g.Bn(c.element,"ytp-panel-animate-back")):(g.I(b.element,"ytp-panel-animate-back"),g.Bn(c.element,"ytp-panel-animate-forward"));g.Dg(a.element,a.size);a.C=new g.G(function(){g.Bn(a.element,"ytp-popup-animating");b.detach();g.Cn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
MY=function(a){return a.B[a.B.length-1]};
fya=function(a){a.F&&g.tn(a.F);a.C&&g.tn(a.C)};
g.PY=function(a,b,c){g.LY.call(this,a);this.Y=b;this.Lb=c;this.G=new g.uR(this);this.D=null;g.C(this,this.G);g.vX(a,this.element,this,28656);g.I(this.element,"ytp-contextmenu");hya(this);this.hide()};
hya=function(a){g.us(a.G);"gvn"!==a.J.T().playerStyle&&a.G.R(g.fH(a.J),"contextmenu",a.ZM)};
iya=function(a){a.J.isFullscreen()?g.DP(a.J,a.element,9):a.fa(document.body)};
QY=function(a,b){g.V.call(this,{I:"button",ia:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kC(a.T()))},S:[{I:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{I:"div",L:"ytp-copylink-title",Z:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.Jb();var c=a.T();vY(this.tooltip);g.K(this.element,"ytp-show-copylink-title",g.kC(c)&&!g.tC(c));g.vX(a,this.element,this,86570);this.wa("click",this.onClick);this.R(a,"videodatachange",
this.na);this.R(a,"videoplayerreset",this.na);this.R(a,"appresize",this.na);this.na();g.dg(this,g.sY(this.tooltip,this.element))};
jya=function(a){a.ua("icon",RN());if(a.api.T().u)RY(a.tooltip,a.element,"Link copied to clipboard");else{a.ua("title-attr","Link copied to clipboard");SY(a.tooltip);RY(a.tooltip,a.element);var b=a.wa("mouseleave",function(){a.Eb(b);a.na();a.tooltip.Uh()})}};
lya=function(a,b){return Ue(a,function d(){var e=this;return Aa(d,function(f){if(1==f.u)return sa(f,2),ra(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);ua(f);return f["return"](kya(e,b))})})};
kya=function(a,b){var c=!1,d=g.Fe("TEXTAREA");d.value=b;d.setAttribute("readonly","");var e=a.api.getRootNode();e.appendChild(d);if(jk){var f=window.getSelection();f.removeAllRanges();var h=document.createRange();h.selectNodeContents(d);f.addRange(h);d.setSelectionRange(0,b.length)}else d.select();try{c=document.execCommand("copy")}catch(l){}e.removeChild(d);return c};
TY=function(a){g.V.call(this,{I:"div",L:"ytp-doubletap-ui",S:[{I:"div",L:"ytp-doubletap-fast-forward-ve"},{I:"div",L:"ytp-doubletap-rewind-ve"},{I:"div",L:"ytp-doubletap-static-circle",S:[{I:"div",L:"ytp-doubletap-ripple"}]},{I:"div",L:"ytp-doubletap-overlay-a11y"},{I:"div",L:"ytp-doubletap-seek-info-container",S:[{I:"div",L:"ytp-doubletap-arrows-container",S:[{I:"span",L:"ytp-doubletap-base-arrow"},{I:"span",L:"ytp-doubletap-base-arrow"},{I:"span",L:"ytp-doubletap-base-arrow"}]},{I:"div",L:"ytp-doubletap-tooltip",
S:[{I:"div",L:"ytp-chapter-seek-text",Z:"{{seekText}}"},{I:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.G(this.show,10,this);this.u=new g.G(this.hide,700,this);g.C(this,this.B);g.C(this,this.u);this.hide();this.C=this.ga("ytp-doubletap-fast-forward-ve");this.D=this.ga("ytp-doubletap-rewind-ve");g.vX(this.J,this.C,this,28240);g.vX(this.J,this.D,this,28239);g.LN(this.J,this.C,!0);g.LN(this.J,this.D,!0)};
UY=function(a,b,c){var d=g.fH(a.J).getPlayerSize();a.u.Yf();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var e=a.ga("ytp-doubletap-static-circle");e.style.width="110px";e.style.height="110px";1===b?(e.style.right="",e.style.left=.8*d.width-30+"px"):-1===b&&(e.style.right="",e.style.left=.1*d.width-15+"px");e.style.top=.5*d.height+15+"px";mya(a,c)};
nya=function(a,b,c){a.u.Yf();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");b=a.ga("ytp-doubletap-static-circle");b.style.width="0";b.style.height="0";g.I(a.element,"ytp-chapter-seek");a.ua("seekText",c);a.ua("seekTime","")};
mya=function(a,b){var c=g.yK("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.ua("seekTime",c)};
VY=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
WY=function(a,b){for(var c=0,d=g.q(a),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
oya=function(a,b){var c=WY(a,b)+1;return c<a.length?c:-1};
pya=function(a,b){return WY(a,b)-1};
g.XY=function(a,b,c,d,e,f,h){g.rs.call(this);var l=this;this.api=a;this.contextMenu=c;this.Ac=d;this.Lb=e;this.u=f;this.D=h;this.C=new g.G(function(){qya(l,!1)},1E3);
this.B="";g.C(this,this.C);a=g.Va(this.zy,!1);this.R(b,"mousedown",a);this.R(c.element,"mousedown",a);this.R(b,"keydown",this.MB);this.R(c.element,"keydown",this.MB);this.R(b,"keyup",this.NB);this.R(c.element,"keyup",this.NB)};
ZY=function(a,b,c,d){var e=g.DX(g.cX(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.YY.length;h++){var l=g.YY[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);qya(a,!0);a.C.start()}};
rya=function(a,b){a.api.oe();if(g.U(g.AJ(a.api),4)){var c=a.api.getVideoData().Ma;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
qya=function(a,b){g.DX(g.cX(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
$Y=function(a,b,c){g.V.call(this,{I:"button",ia:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{I:"div",L:"ytp-overflow-icon",S:[{I:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{I:"path",U:{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.J=a;this.u=b;this.visible=!1;this.tooltip=this.u.Jb();
g.vX(a,this.element,this,16499);this.R(a,"appresize",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.dg(this,g.sY(this.tooltip,this.element));this.wa("click",function(){g.wX(a,d.element);eY(c,d.element,!1)})};
aZ=function(a,b){g.dY.call(this,a,{I:"div",L:"ytp-overflow-panel",U:{id:zN(),role:"dialog"},S:[{I:"div",L:"ytp-overflow-panel-content",S:[{I:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{I:"button",ia:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.XN()]}]},250);this.actionButtons=[];this.tooltip=b.Jb();this.B=this.ga("ytp-overflow-panel-content");this.closeButton=this.ga("ytp-overflow-panel-close");this.R(this.closeButton,"click",this.ib);g.dg(this,g.sY(this.tooltip,
this.closeButton));this.wa("click",this.iL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.hL);this.hide()};
bZ=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.ua("buttons",a.actionButtons))};
sya=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.yb(b)};
cZ=function(a,b,c){var d=b.La(c),e=a.T(),f=d.Sd("default.jpg");g.V.call(this,{I:"a",ia:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{I:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{I:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{I:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{I:"div",L:"ytp-video-menu-item-title",Z:d.title},{I:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.wa("click",this.onClick)};
dZ=function(a){g.dY.call(this,a,{I:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:zN()},S:[{I:"div",L:"ytp-playlist-menu-header",S:[{I:"div",L:"ytp-playlist-menu-title",S:[{I:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Z:"{{title}}"},{I:"button",ia:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.XN()]}]},{I:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{I:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.D=
this.playlist=null;this.items=this.ga("ytp-playlist-menu-items");this.C=new g.rs(this);this.B=[];a=this.ga("ytp-playlist-menu-close");this.R(a,"click",this.ib);a=this.ga("ytp-playlist-menu-title-name");this.R(a,"click",this.nP);g.C(this,this.C);this.hide()};
eZ=function(a,b,c){g.V.call(this,{I:"button",ia:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{I:"div",L:"ytp-playlist-menu-button-icon",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}]},{I:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Jb();g.vX(a,this.element,this,70344);this.R(a,"videodatachange",this.u);this.R(a,"onPlaylistUpdate",this.u);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.hide();this.u();g.dg(this,g.sY(this.tooltip,this.element));this.wa("click",function(){g.wX(a,d.element);eY(c,d.element,!1)})};
fZ=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-promotooltip-wrapper",S:[{I:"div",L:"ytp-promotooltip-container",S:[{I:"div",L:"ytp-promotooltip-content",S:[{I:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{I:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{I:"div",L:"ytp-promotooltip-buttons",S:[{I:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",U:{tabindex:"0"}},{I:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",U:{tabindex:"0"}}]}]},{I:"div",L:"ytp-promotooltip-pointer"}]});
this.tooltipRenderer=a;this.F=b;this.J=c;this.u=null;this.title=this.ga("ytp-promotooltip-title");this.details=this.ga("ytp-promotooltip-details");this.acceptButton=this.ga("ytp-promotooltip-accept-button");this.dismissButton=this.ga("ytp-promotooltip-dismiss-button");this.D=this.B=this.C=!1;g.DN(this,!1);this.R(c,"onShowControls",this.Mv);this.R(c,"onHideControls",this.bN);this.R(c,"resize",this.Sa);this.R(this.acceptButton,"click",this.fM);this.R(this.dismissButton,"click",this.gN)};
tya=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
gZ=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken){e={feedbackTokens:[f.feedbackEndpoint.feedbackToken]};var h=gH(a.J.app);(null===h||void 0===h?0:uva(h,f))&&HU(h,f,e)}}};
hZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.eO()]});this.J=a;this.R(a,"presentingplayerstatechange",this.u);this.wa("click",this.onClick,this);var c=g.AJ(a);g.DN(this,g.U(c,2));g.sY(b.Jb(),this.element)};
g.iZ=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{I:"button",ia:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.kC(a.T()))},S:[{I:"div",L:"ytp-share-icon",Z:"{{icon}}"},{I:"div",L:"ytp-share-title",Z:"Share"}]});this.api=a;this.u=b;this.C=c;this.B=d;this.visible=!1;this.tooltip=this.u.Jb();b=a.T();g.vX(a,this.element,this,28664);this.wa("click",this.onClick);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",
this.na);this.R(a,"appresize",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.K(this.element,"ytp-show-share-title",g.kC(b)&&!g.tC(b));g.dg(this,g.sY(this.tooltip,this.element))};
g.jZ=function(a,b){var c=zN(),d=a.T();c={I:"div",L:"ytp-share-panel",U:{id:zN(),role:"dialog","aria-labelledby":c},S:[{I:"div",L:"ytp-share-panel-inner-content",S:[{I:"div",L:"ytp-share-panel-title",U:{id:c},Z:"Share"},{I:"a",ia:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{I:"label",L:"ytp-share-panel-include-playlist",S:[{I:"input",L:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{I:"div",L:"ytp-share-panel-loading-spinner",S:[SX()]},{I:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{I:"div",L:"ytp-share-panel-error",Z:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",ia:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.XN()]}]};g.dY.call(this,a,c,250);this.api=a;this.tooltip=b.Jb();this.B=[];this.F=this.ga("ytp-share-panel-inner-content");this.closeButton=this.ga("ytp-share-panel-close");
this.R(this.closeButton,"click",this.ib);g.dg(this,g.sY(this.tooltip,this.closeButton));this.D=this.ga("ytp-share-panel-include-playlist-checkbox");this.R(this.D,"click",this.na);this.C=this.ga("ytp-share-panel-link");g.dg(this,g.sY(this.tooltip,this.C));this.wa("click",this.pL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.oL);this.R(a,"onLoopRangeChange",this.na);this.hide()};
vya=function(a,b){a.la()||(g.Bn(a.element,"ytp-share-panel-loading"),uya(a,b))};
uya=function(a,b){wya(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Nj:e.Nj},f++){e.Nj=c[f];a:switch(e.Nj.img||e.Nj.iconId){case "facebook":var h={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({I:"a",ia:["ytp-share-panel-service-button","ytp-button"],U:{href:e.Nj.url,target:"_blank",title:e.Nj.sname||e.Nj.serviceName},S:[h]}),h.wa("click",function(m){return function(n){if(g.eP(n)){var p=m.Nj.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var w=p instanceof g.Fc?p:g.Kc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Td()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Fe("A"),g.id(y,w),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=kd("",t,p,y),r=g.Gc(w),t&&(g.RC&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.gd(g.kc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.nd(r)+'">'),(w=t.document)&&w.write&&(w.write(g.cd(r)),w.close()))):(t=kd(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.jp(n)}}}(e)),g.dg(h,g.sY(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink;
c=new g.V({I:"a",ia:["ytp-share-panel-service-button","ytp-button"],S:[{I:"span",L:"ytp-share-panel-service-button-more",S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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"}}]}]}],U:{href:l,target:"_blank",title:"More"}});c.wa("click",function(m){g.RX(l,a.api,m)&&a.api.va("SHARE_CLICKED")});
g.dg(c,g.sY(a.tooltip,c.element));a.B.push(c);a.ua("buttons",a.B)};
xya=function(a){g.Bn(a.element,"ytp-share-panel-loading");g.I(a.element,"ytp-share-panel-fail")};
wya=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.eg(c);a.B=[]};
mZ=function(a,b){g.V.call(this,{I:"div",L:"ytp-shopping-overlay"});var c=this;this.J=a;this.za=b;this.B=this.G=this.da=this.u=this.expanded=this.dismissed=this.X=this.enabled=!1;this.ra=!0;this.D=this.C=!1;this.Y=new g.G(function(){c.badge.element.style.width=""},200,this);
this.ea=new g.G(function(){kZ(c);lZ(c)},200,this);
this.dismissButton=new g.V({I:"button",ia:["ytp-shopping-overlay-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.F=new g.V({I:"div",L:"ytp-shopping-overlay-badge-expanded-content-container",S:[{I:"label",L:"ytp-shopping-overlay-badge-title"},this.dismissButton]});g.C(this,this.F);this.badge=new g.V({I:"button",ia:["ytp-button","ytp-shopping-overlay-badge","ytp-shopping-overlay-badge-with-controls"],S:[{I:"div",L:"ytp-shopping-overlay-badge-icon"},this.F]});g.C(this,this.badge);
this.badge.fa(this.element);this.R(this.badge.element,"click",this.IM);this.K=new g.oO(this.badge,250,!1,100);g.C(this,this.K);this.V=new g.oO(this.F,250,!1,100);g.C(this,this.V);this.ba=new g.qn(this.DQ,null,this);g.C(this,this.ba);this.P=new g.qn(this.iI,null,this);g.C(this,this.P);g.C(this,this.Y);g.C(this,this.ea);g.HN(this.J,this.badge.element,this.badge,!0);g.HN(this.J,this.dismissButton.element,this.dismissButton,!0);this.R(this.J,"onHideControls",function(){c.u=!1;lZ(c);kZ(c);c.Kh()});
this.R(this.J,"onShowControls",function(){c.u=!0;lZ(c);kZ(c);c.Kh()});
this.R(this.J,g.WD("shopping_overlay_visible"),function(){c.Dg(!0)});
this.R(this.J,g.XD("shopping_overlay_visible"),function(){c.Dg(!1)});
this.R(this.J,g.WD("shopping_overlay_expanded"),function(){c.G=!0;lZ(c)});
this.R(this.J,g.XD("shopping_overlay_expanded"),function(){c.G=!1;lZ(c)});
this.R(this.J,"changeProductsInVideoVisibility",this.rO);this.R(this.J,"videodatachange",this.Oa);this.R(this.J,"pageTransition",this.qL);this.R(this.dismissButton.element,"click",this.JM);this.R(this.J,"appresize",this.Kh);this.R(this.J,"fullscreentoggled",this.Kh);this.R(this.J,"cardstatechange",this.OM);this.R(this.J,"annotationvisibility",this.cR,this)};
kZ=function(a){g.K(a.badge.element,"ytp-shopping-overlay-badge-with-controls",a.u||!a.B)};
nZ=function(a){return a.ra&&!a.X&&a.enabled&&!a.dismissed&&!a.za.Jf()&&!a.J.isFullscreen()&&!a.da&&(a.B||a.u)};
lZ=function(a,b){var c=a.G||a.u||!a.B;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ba.stop(),a.P.stop(),a.Y.stop(),a.ba.start()):(g.DN(a.F,a.expanded),g.K(a.badge.element,"ytp-shopping-overlay-badge-expanded",a.expanded)),yya(a))};
yya=function(a){a.C&&g.LN(a.J,a.badge.element,nZ(a));a.D&&g.LN(a.J,a.dismissButton.element,nZ(a)&&(a.G||a.u||!a.B))};
zya=function(a,b){b?a.D&&g.wX(a.J,a.dismissButton.element):a.C&&g.wX(a.J,a.badge.element)};
Aya=function(a){g.sX(a.J,"shopping_overlay_visible");g.sX(a.J,"shopping_overlay_expanded")};
oZ=function(a){g.dY.call(this,a,{I:"button",ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{I:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.G(function(){b.hide()},5E3);
this.rk=this.Hl=NaN;g.C(this,this.B);this.G=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Hl/1E3&&c<b.rk/1E3&&b.show()};
this.R(this.J,"videodatachange",function(c,d){if("dataloaded"===c)if(b.Hl=d.Hl,b.rk=d.rk,isNaN(b.Hl)||isNaN(b.rk))b.C&&(g.sX(b.J,"intro"),b.J.removeEventListener(g.WD("intro"),b.G),b.J.removeEventListener(g.XD("intro"),b.F),b.J.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.J.addEventListener(g.WD("intro"),b.G);b.J.addEventListener(g.XD("intro"),b.F);b.J.addEventListener("onShowControls",b.D);var e=new g.TD(b.Hl,b.rk,{priority:7,namespace:"intro"});g.nN(b.J,[e]);b.C=!0}});
this.R(this.element,"click",function(){b.J.seekTo(b.rk/1E3)});
this.hide()};
pZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Z:"{{icon}}"});this.J=a;this.wa("click",this.onClick);this.R(a,"airplayactivechange",this.na);this.R(a,"airplayavailabilitychange",this.na);this.na();g.dg(this,g.sY(b.Jb(),this.element))};
qZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{I:"div",L:"ytp-autonav-toggle-button-container",S:[{I:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.u=!1;this.isChecked=!0;g.vX(a,this.element,this,113681);this.R(a,"presentingplayerstatechange",this.Fp);this.wa("click",this.onClick);this.tooltip=b.Jb();g.dg(this,g.sY(b.Jb(),this.element));
this.Fp()};
Bya=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.ua("title",b);a.ua("label",b);SY(a.tooltip)};
g.sZ=function(a){g.V.call(this,{I:"div",L:"ytp-gradient-bottom"});this.B=g.Fe("CANVAS");this.u=this.B.getContext("2d");this.C=NaN;this.B.width=1;this.D=g.tC(a.T());g.rZ(this,g.fH(a).getPlayerSize().height)};
g.rZ=function(a,b){if(a.u){var c=Math.floor(b*(a.D?1:.4));c=Math.max(c,47);var d=c+2;if(a.C!==d){a.C=d;a.B.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.D)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";try{a.element.style.backgroundImage="url("+a.B.toDataURL()+")"}catch(h){}}}};
tZ=function(a,b,c,d,e){g.V.call(this,{I:"div",L:"ytp-chapter-container",S:[{I:"button",ia:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{I:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{I:"div",L:"ytp-chapter-title-content",Z:"{{title}}"},{I:"div",L:"ytp-chapter-title-chevron",S:[{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.K=b;this.P=c;this.G=d;this.V=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ga("ytp-chapter-container");this.u=this.ga("ytp-chapter-title");this.updateVideoData("newdata",this.J.getVideoData());this.R(a,"videodatachange",this.updateVideoData);this.R(this.D,"click",this.onClick);a.T().ca("html5_ux_control_flexbox_killswitch")&&this.R(a,"resize",this.X);this.R(a,"onVideoProgress",this.Hc);this.R(a,"SEEK_TO",this.Hc)};
Cya=function(a,b,c,d,e){var f=b.Ft/b.rows,h=Math.min(c/(b.Gt/b.columns),d/f),l=b.Gt*h,m=b.Ft*h;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,r=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"};
g.uZ=function(a){g.V.call(this,{I:"div",L:"ytp-storyboard-framepreview",S:[{I:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ga("ytp-storyboard-framepreview-img");this.Og=null;this.B=NaN;this.events=new g.rs(this);this.u=new g.oO(this,100);g.C(this,this.events);g.C(this,this.u);this.R(this.api,"presentingplayerstatechange",this.Wb)};
vZ=function(a,b){var c=!!a.Og;a.Og=b;a.Og?(c||(a.events.R(a.api,"videodatachange",function(){vZ(a,a.api.cg())}),a.events.R(a.api,"progresssync",a.Yd),a.events.R(a.api,"appresize",a.C)),a.B=NaN,wZ(a),a.u.show(200)):(c&&g.us(a.events),a.u.hide(),a.u.stop())};
wZ=function(a){var b=a.Og,c=a.api.getCurrentTime(),d=g.fH(a.api).getPlayerSize(),e=mF(b,d.width);c=rF(b,e,c);c!==a.B&&(a.B=c,oF(b,c,d.width),b=b.wl(c,d.width),Cya(a.D,b,d.width,d.height))};
xZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-fullerscreen-edu-button","ytp-button"],S:[{I:"div",ia:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{I:"div",ia:["ytp-fullerscreen-edu-chevron"],S:[{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{I:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.oO(this,250,void 0,100);this.D=this.B=!1;g.vX(a,this.element,this,61214);this.F=b;g.C(this,this.C);this.R(a,
"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.wa("click",this.onClick);this.na()};
g.yZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.sY(this.C.Jb(),this.element);this.B=new g.G(this.MH,2E3,this);g.C(this,this.B);this.R(a,"fullscreentoggled",this.iD);this.R(a,"presentingplayerstatechange",this.na);this.wa("click",this.onClick);if(ns()){var c=g.fH(this.J);this.R(c,afa(),this.Nx);this.R(c,qs(document),this.Bj)}a.T().ka||a.T().ca("embeds_enable_mobile_custom_controls")||
this.disable();this.na();this.iD(a.isFullscreen())};
zZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[qoa()]});this.J=a;this.visible=!1;this.wa("click",this.onClick);this.R(a,"fullscreentoggled",this.na);this.ua("title",g.UX(a,"Miniplayer","i"));g.dg(this,g.sY(b.Jb(),this.element));g.vX(a,this.element,this,62946);this.na()};
AZ=function(a,b,c){g.V.call(this,{I:"button",ia:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}]});var d=this;this.J=a;this.u=!1;this.B=new g.G(this.C,400,this);this.tooltip=b.Jb();vY(this.tooltip);g.C(this,this.B);this.wa("click",function(){eY(c,d.element,!1)});
this.R(a,"presentingplayerstatechange",function(){d.na(!1)});
this.R(a,"videodatachange",this.Oa);this.na(!0);g.dg(this,g.sY(this.tooltip,this.element))};
BZ=function(a){g.dY.call(this,a,{I:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{I:"div",L:"ytp-multicam-menu-header",S:[{I:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{I:"button",ia:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.XN()]}]}]},{I:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.rs(this);this.items=this.ga("ytp-multicam-menu-items");this.B=[];g.C(this,this.C);a=this.ga("ytp-multicam-menu-close");this.R(a,"click",this.ib);this.hide()};
CZ=function(){g.B.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.qn(this.u,null,this);g.C(this,this.delay)};
Dya=function(a,b){if("path"===b.I)return b.U.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Dya(a,d)))return d}};
Gya=function(a,b,c){c=Dya(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=zN();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Eya(e),m=Eya(c);DZ(a,function(n){d.setAttribute("d",Fya(l,m,n))},200)};
DZ=function(a,b,c){a.B=b;a.startTime=(0,g.O)();a.duration=c;a.u()};
Eya=function(a){var b=[];a=a.match(Hya);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};
Fya=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};
EZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-mute-button","ytp-button"],U:a.T().V?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.u=null;this.D=this.P=this.F=this.X=NaN;this.Y=this.G=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.J.T();this.ua("icon",fO());this.tooltip=b.Jb();this.u=new g.AN({I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"defs",S:[{I:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{I:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",L:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{I:"path",L:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{I:"path",sb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"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"}},{I:"path",sb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"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.u);this.G=this.u.ga("ytp-svg-volume-animation-speaker");this.Y=this.G.getAttribute("d");this.C=g.qe("ytp-svg-volume-animation-mover",this.u.element);this.B=
g.qe("ytp-svg-volume-animation-hider",this.u.element);this.ba=new CZ;g.C(this,this.ba);this.V=new CZ;g.C(this,this.V);this.wa("click",this.XN);this.R(a,"appresize",this.jD);this.R(a,"onVolumeChange",this.gL);var d=null;if(c.V)g.dg(this,g.sY(b.Jb(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.dY(a,{I:"span",ia:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{I:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.F},Z:e[2]},e[4]]},100,!0);g.C(this,d);d.hide();d.subscribe("show",function(f){b.Mo(d,f)});
g.DP(a,d.element,4)}this.message=d;g.vX(a,this.element,this,28662);this.jD(g.fH(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Kya=function(a,b){a.X=b;var c=a.Y;b&&(c+=Fya(Iya,Jya,b));a.G.setAttribute("d",c)};
Lya=function(a,b){a.P=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=fO():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.ua("icon",e),a.K=e)};
FZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[qoa()]});this.J=a;this.ua("title","Picture in Picture");this.wa("click",this.onClick);g.dg(this,g.sY(b.Jb(),this.element))};
g.GZ=function(a,b){g.V.call(this,{I:"button",ia:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Z:"{{icon}}"});this.J=a;this.u=null;this.transition=new CZ;this.tooltip=b.Jb();g.C(this,this.transition);this.R(a,"fullscreentoggled",this.Oa);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"videodatachange",this.Oa);Mya(this,g.AJ(a));this.wa("click",this.Vn,this);g.dg(this,g.sY(b.Jb(),this.element))};
Nya=function(a){switch(a){case 1:return roa();case 2:return poa();case 3:return g.eO();case 4:return uoa();default:return null}};
Mya=function(a,b){var c=g.gG(a.J.getVideoData()),d=!1;if(g.LL(b))var e=c?4:2;else g.U(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.UX(a.J,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.UX(a.J,"Play","k");break;case 4:c="Stop live playback"}3===e?a.update({title:c,label:null,icon:Nya(e)}):(a.update({title:c,label:c}),(c=Nya(e))&&a.u&&3!==a.u?Gya(a.transition,a.element,c):a.ua("icon",c));SY(a.tooltip);a.u=e}};
g.HZ=function(a,b){return BG(b)?(b.fetch=0,new g.AG(a,b)):new g.uF(a,b)};
g.JZ=function(a,b,c){g.V.call(this,{I:"a",ia:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{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}}"},S:[c?cO():soa()]});var d=this;this.J=a;this.u=c;this.playlist=this.videoData=null;this.G=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Jb();this.R(a,"fullscreentoggled",this.Oa);
this.R(a,"videodatachange",this.Oa);this.R(a,"onPlaylistUpdate",this.Oa);this.u||this.R(a,"appresize",this.yx);this.R(a,"mdxpreviousnextchange",function(){IZ(d);d.yx()});
this.Oa()};
Oya=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Oa,a)};
Pya=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
Qya=function(a){var b=g.gX(g.cX(a.J));return b?a.u?b.hasNext():b.ii():!1};
IZ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.hX(a.J)&&(!a.u||c);var d=a.u&&g.uX(a.J),e=Qya(a),f=a.u&&5===a.J.getPresentingPlayerType(),h=g.UX(a.J,"Next","SHIFT+n"),l=g.UX(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.La(a.u?CG(a.playlist):DG(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.T().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.dP(m.lengthSeconds):null;b.preview=m.Sd("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.HZ(a.J.T(),a.videoData.suggestions[0]),b.url=l.jk(),b.text=l.title,b.duration=l instanceof g.uF?g.dP(l.lengthSeconds):null,b.preview=l.Sd("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.G=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.sY(a.tooltip,a.element),a.F=a.wa("click",
a.onClick,a)):a.B&&(a.B(),a.B=null,a.Eb(a.F),a.F=null);SY(a.tooltip)};
KZ=function(){g.V.call(this,{I:"div",L:"ytp-chapter-hover-container",S:[{I:"div",L:"ytp-progress-bar-padding"},{I:"div",L:"ytp-progress-list",S:[{I:"div",ia:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",L:"ytp-load-progress"},{I:"div",L:"ytp-hover-progress"},{I:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.ga("ytp-ad-progress-list");this.D=this.ga("ytp-load-progress");this.F=this.ga("ytp-play-progress");this.B=this.ga("ytp-hover-progress");
this.u=this.ga("ytp-chapter-hover-container")};
LZ=function(a,b){g.F(a.u,"width",b)};
MZ=function(a,b){g.F(a.u,"margin-right",b+"px")};
Rya=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
Sya=function(){g.V.call(this,{I:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.NZ=function(a,b){g.EN.call(this,{I:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{I:"div",ia:["ytp-progress-bar",a.T().u?"ytp-mobile":""],U:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{I:"div",L:"ytp-chapters-container"},{I:"div",L:"ytp-marker-crenellation-list"},{I:"div",L:"ytp-timed-markers-container"},{I:"div",L:"ytp-clip-start-exclude"},
{I:"div",L:"ytp-clip-end-exclude"},{I:"div",L:"ytp-scrubber-container",S:[{I:"div",ia:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{I:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{I:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{I:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{I:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.dc=!1;this.C=this.ce=
0;this.ea=1;this.de=this.P=0;this.D=null;this.V=this.rb=0;this.Pc=this.ga("ytp-marker-crenellation-list");this.Y={};this.Ra={};this.clipEnd=Infinity;this.za=this.ga("ytp-clip-end");this.tb=new g.ys(this.za,!0);this.Dc=this.ga("ytp-clip-end-exclude");this.Ve=this.ga("ytp-clip-start-exclude");this.clipStart=0;this.Ga=this.ga("ytp-clip-start");this.Bb=new g.ys(this.Ga,!0);this.G=this.ha=0;this.Qc=this.ga("ytp-progress-bar");this.Ka=void 0;this.Mb={};this.eb=this.ga("ytp-chapters-container");this.he=
this.ga("ytp-timed-markers-container");this.Ca=[];this.ra=[];this.da=-1;this.Rb=g.Q(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.ka=this.X=0;this.F=null;this.ee=this.ga("ytp-scrubber-button");this.ue=this.ga("ytp-scrubber-container");this.Qa=new g.fe;this.md=new Rya;this.u=new nP(0,0);this.K=null;this.B=this.ac=!1;this.zd=null;this.tooltip=b.Jb();g.dg(this,g.sY(this.tooltip,this.za));g.C(this,this.tb);this.tb.subscribe("hoverstart",this.TD,this);this.tb.subscribe("hoverend",
this.SD,this);this.R(this.za,"click",this.cu);g.dg(this,g.sY(this.tooltip,this.Ga));g.C(this,this.Bb);this.Bb.subscribe("hoverstart",this.TD,this);this.Bb.subscribe("hoverend",this.SD,this);this.R(this.Ga,"click",this.cu);Tya(this);this.R(a,"resize",this.Sa);this.R(a,"presentingplayerstatechange",this.lL);this.R(a,"videodatachange",this.kD);this.R(a,"videoplayerreset",this.ZI);this.R(a,"cuerangesadded",this.sG);this.R(a,"cuerangesremoved",this.kQ);this.R(a,"cuerangemarkersupdated",this.sG);this.R(a,
"onLoopRangeChange",this.rG);this.updateVideoData(a.getVideoData(),!0);this.rG(a.getLoopRange())};
Tya=function(a){if(0===a.Ca.length){var b=new KZ;a.Ca.push(b);g.C(a,b);b.fa(a.eb,0)}for(;1<a.Ca.length;)a.Ca.pop().dispose();LZ(a.Ca[0],"100%");a.Ca[0].startTime=0;a.Ca[0].title=""};
Uya=function(a){for(;a.ra.length;)a.ra.pop().dispose()};
Wya=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=Vya(a,d.timeRangeStartMillis/(1E3*a.u.u),OZ(a));g.F(d.element,"transform","translateX("+e+"px)")}};
Xya=function(a,b){for(var c=0,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;h&&h.simpleText&&(f.title=h.simpleText);h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Ca[c].startTime=0,a.Ca[c].title="",a.Ca[c].onActiveCommand=e.onActiveCommand,c++);a.Ca.length<=c&&(f=new KZ,a.Ca.push(f),g.C(a,f),f.fa(a.eb,a.eb.children.length));
a.Ca[c].startTime=e.startTime;a.Ca[c].title=e.title?e.title:"";a.Ca[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Ca.length;)a.Ca.pop().dispose();g.PZ(a);QZ(a)};
g.PZ=function(a){a.X=a.Ca.length-1;a.ka=0;Yya(a,!0)&&Yya(a,!1);for(var b=0,c=0;c<a.Ca.length;c++)if(0===a.Ca[c].width){if(c===a.Ca.length-1)for(var d=a.Ca.length-1;0<=d;d--)if(0<a.Ca[d].width){MZ(a.Ca[d],0);LZ(a.Ca[d],Math.floor(a.Ca[d].width)+"px");break}LZ(a.Ca[c],"0")}else c===a.Ca.length-1?LZ(a.Ca[c],Math.floor(a.Ca[c].width+b)+"px"):(b=a.Ca[c].width+b,d=Math.round(b),b-=d,LZ(a.Ca[c],d+"px"))};
Yya=function(a,b){var c=0,d=!1,e=a.Ca.length,f=1E3*a.u.u;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.X,l=0===a.ka?3:h*a.ka,m=g.q(a.Ca),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Ca[c].startTime;c<e-1&&(m=a.Ca[c+1].startTime-a.Ca[c].startTime,MZ(a.Ca[c],a.B?3:2));g.K(a.Ca[c].u,"ytp-exp-chapter-hover-container",1<a.Ca.length);n=(0===f?0:m/f*h)+a.Ca[c].width;if(n>l)a.Ca[c].width=n;else{a.Ca[c].width=0;var p=a,r=c,t=p.Ca[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Ca.length-1&&(p.Ca[r+1].width+=n);MZ(p.Ca[r],0);b&&(a.X--,m/f>a.ka&&(a.ka=m/f),d=!0)}c++}}return d};
QZ=function(a){if(a.C){var b=a.api.getProgressState(),c=new nP(b.seekableStart,b.seekableEnd),d=pP(c,b.loaded,0);b=pP(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;RZ(a,b,d);e&&SZ(a);Zya(a)}};
UZ=function(a,b){var c=oP(a.u,b.C);if(1<a.Ca.length){c=TZ(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Ca[e].width&&(d+=a.Ca[e].width,d+=a.B?3:2);c=(a.Ca[c].startTime+(b.D-d)/a.Ca[c].width*((c===a.Ca.length-1?1E3*a.u.u:a.Ca[c+1].startTime)-a.Ca[c].startTime))/1E3}return c};
$ya=function(a,b,c){return c>=a.Ca.length?!1:Math.abs(b-a.Ca[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.X)<a.Rb};
aza=function(a,b,c,d){b=g.be(b,0,a.B?60:40);a.P=b;var e=a.ea,f=Math.max(a.u.getLength()/a.C,1);a.ea=b/(a.B?60:40)*(f-1)+1;b=a.C*a.ea;a.V=g.be(d*b-c,0,b-a.C);e!==a.ea&&SZ(a)};
SZ=function(a){var b=OZ(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Saa(a.Pc),f=0;if(a.P>.2*(a.B?60:40)&&1===a.Ca.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h<l;h++){var m=e[f];m||(m=g.Fe("DIV"),a.Pc.appendChild(m));f++;0===h%60?yn(m,"ytp-60m-progress"):0===h%30?yn(m,"ytp-30m-progress"):0===h%15?yn(m,"ytp-15m-progress"):yn(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.ac?a.u.u:0;a.update({boundTimeLeft:g.dP(oP(a.u,c)-b),boundTimeRight:g.dP(oP(a.u,
d)-b)});for(c=e.length-1;c>=f;c--)g.Je(e[c]);a.element.style.height=a.P+(a.B?8:5)+"px";a.W("height-change",a.P);a.ee.style.height=a.P+(a.B?20:13)+"px";e=g.q(Object.keys(a.Y));for(f=e.next();!f.done;f=e.next())bza(a,f.value);VZ(a);RZ(a,a.G,a.ha)};
OZ=function(a){var b=a.Qa.x,c=a.C*a.ea;b=g.be(b,0,a.C);a.md.update(b,a.C,-a.V,-(c-a.V-a.C));return a.md};
RZ=function(a,b,c){a.G=b;a.ha=c;var d=OZ(a),e=a.u.u,f=oP(a.u,a.G),h=g.yK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.dP(f,!0),DURATION:g.dP(e,!0)}),l=WY(a.Ca,1E3*f);l=a.Ca[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.K&&2!==a.api.getPresentingPlayerType()&&(e=a.K.startTimeMs/1E3,f=a.K.endTimeMs/1E3);e=pP(a.u,e,0);h=pP(a.u,f,1);f=g.be(b,e,h);c=g.be(c,e,h);b=Vya(a,b,d);g.F(a.ue,"transform","translateX("+
b+"px)");WZ(a,d,e,f,"PLAY_PROGRESS");WZ(a,d,e,c,"LOAD_PROGRESS")};
WZ=function(a,b,c,d,e){var f=a.Ca.length,h=b.u-a.X*(a.B?3:2),l=c*h;c=TZ(a,l);var m=d*h;h=TZ(a,m);"HOVER_PROGRESS"===e&&(h=TZ(a,b.u*d,!0),m=b.u*d-cza(a,b.u*d)*(a.B?3:2));b=Math.max(l-dza(a,c),0);for(d=c;d<f;d++)a.Ca[d].Na(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Ca[f].width,XZ(a,a.Ca[f].Na(e),f===c?d-b:d,d);f=a.Ca[h].width;m=g.be(m-dza(a,h),0,f);c===h&&(m-=b);XZ(a,a.Ca[h].Na(e),m,f);m=a.Ca.length;for(h+=1;h<m;h++)XZ(a,a.Ca[h].Na(e),0,a.Ca[h].width);for(h=0;h<c;h++)XZ(a,a.Ca[h].Na(e),0,a.Ca[h].width)};
dza=function(a,b){if(b>=a.Ca.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Ca[d].width,d++;return c};
XZ=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.F(b,"transform","scalex("+(d?c/d:0)+")")};
TZ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=cza(a,b)*(a.B?3:2));c=g.q(a.Ca);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.Ca.length?d-1:d};
Vya=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Ca),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.u-(a.B?3:2)*a.X)+(a.B?3:2)*(0>e?0:e)+c.B};
cza=function(a,b){for(var c=a.Ca.length,d=0,e=g.q(a.Ca),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
VZ=function(a){var b=!!a.K&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.K?(c=a.K.startTimeMs/1E3,d=a.K.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);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?pP(a.u,c,0):0;d=f?pP(a.u,d,1):1;a.Ga.style.left=Math.round(1E3*b)/10+"%";a.za.style.left=Math.round(1E3*d)/10+"%";a.Ve.style.width=Math.round(1E3*b)/10+"%";a.Dc.style.left=Math.round(1E3*d)/10+
"%";a.Dc.style.width=Math.round(1E3*(1-d))/10+"%"};
Zya=function(a){var b=OZ(a);WZ(a,b,a.G,Math.max(b.C,a.G),"HOVER_PROGRESS");for(var c=TZ(a,b.u*a.G,!0),d=TZ(a,b.D,!0),e=c;e<=d;e++)g.K(a.Ca[e].B,"ytp-hover-progress-light",b.C>a.G);g.K(a.ee,"ytp-scrubber-button-hover",c===d&&1<a.Ca.length)};
bza=function(a,b){var c=a.Y[b],d=a.Ra[b],e=OZ(a),f=pP(a.u,c.start/1E3,0),h=Uha(c,a.B)/e.width;var l=pP(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.be(f,0,l-h));l=Math.min(l,f+h);c.color&&(d.style.background=c.color);c=f;f=!0;d.style.left=Math.max(c*e.u+e.B,0)+"px";XZ(a,d,g.be((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
eza=function(a,b){var c=b.getId();a.Y[c]===b&&(g.Je(a.Ra[c]),delete a.Y[c],delete a.Ra[c])};
fza=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new g.ys(a.Qc,!0),a.F.subscribe("hovermove",a.uO,a),a.F.subscribe("hoverend",a.tO,a),a.F.subscribe("dragstart",a.sO,a),a.F.subscribe("dragmove",a.wO,a),a.F.subscribe("dragend",a.vO,a),a.zd=a.wa("keydown",a.mL)):a.F&&(a.element.setAttribute("aria-disabled","true"),a.Eb(a.zd),a.F.cancel(),a.F.dispose(),a.F=null)};
g.gza=function(a){var b=2*a.C*g.JC();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
YZ=function(a,b,c){g.V.call(this,{I:"button",L:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.Va=c;this.u=null;this.R(a,"onMdxReceiversChange",this.na);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.na();this.wa("click",this.B,this);g.dg(this,g.sY(b.Jb(),this.element))};
ZZ=function(a,b,c){g.V.call(this,{I:"button",ia:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":zN(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.toa()]});this.J=a;this.Va=c;this.B=!0;this.wa("click",this.C);this.R(a,"onPlaybackQualityChange",this.updateBadge);this.R(a,"videodatachange",this.updateBadge);this.R(a,"webglsettingschanged",this.updateBadge);this.R(a,"appresize",this.u);g.dg(this,g.sY(b.Jb(),this.element));g.vX(this.J,this.element,this,
28663);this.updateBadge();this.u(g.fH(a).getPlayerSize())};
$Z=function(a,b){a.B=!!b;a.u(g.fH(a.J).getPlayerSize())};
a_=function(a,b){g.HY.call(this,"Annotations",6);this.J=a;this.Va=b;this.u=!1;this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.subscribe("select",this.B,this);this.na()};
g.b_=function(a,b,c,d,e,f,h){g.zY.call(this,g.AY({"aria-haspopup":"true"}),b,a);this.Va=d;this.F=!1;this.B=null;this.options={};this.C=new g.DY(c,void 0,a,e,f,h);g.C(this,this.C);this.wa("keydown",this.nL);this.wa("click",this.open)};
hza=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.c_=function(a,b){g.EY(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(l=a,g.yY(l.options[f],l.qh(f,!0)),delete a.options[f]):h=a.jv(f,-e,l);c[f]=h;a.C.Pb(h,!0)}d||(a.B=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
d_=function(a,b){g.b_.call(this,"Audio track",3,a,b);this.J=a;this.tracks={};this.u=new g.V({I:"div",S:[{I:"span",Z:"Audio track"},{I:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.u);g.yY(this,this.u);this.R(a,"videodatachange",this.na);this.R(a,"onPlaybackAudioChange",this.na);this.na()};
e_=function(a,b){g.HY.call(this,"Autoplay",7);this.J=a;this.Va=b;this.u=!1;this.B=[];this.R(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);g.vX(a,this.element,this,113682);this.C()};
f_=function(a,b,c,d){d=new g.V({I:"div",ia:["ytp-linked-account-popup-button"],Z:d,U:{role:"button",tabindex:"0"}});b=new g.V({I:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{I:"div",L:"ytp-linked-account-popup-title",Z:b},{I:"div",L:"ytp-linked-account-popup-description",Z:c},{I:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.dY.call(this,a,{I:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.C(this,this.dialog);
d.wa("click",function(){e.ib()});
g.C(this,d);g.DP(this.J,this.element,4);this.hide()};
g_=function(a,b){g.zY.call(this,g.AY({"aria-haspopup":"true"}),1);this.J=a;this.Va=b;this.B=this.u=!1;this.R(this.J,"videodatachange",this.D);this.wa("click",this.onClick);this.D()};
h_=function(a){return a?g.T(a):""};
i_=function(a,b){g.b_.call(this,"Quality",2,a,b);this.J=a;this.D={};this.u="unknown";g.I(this.C.element,"ytp-quality-menu");this.R(a,"videodatachange",this.Hp);this.R(a,"videoplayerreset",this.Hp);this.R(a,"onPlaybackQualityChange",this.lD);this.Hp()};
iza=function(a,b,c){a=a.D[b];var d=g.kw[b];c={I:"span",ia:c,S:[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.S.push(" "),c.S.push({I:"sup",L:"ytp-swatch-color",Z:e}));return c};
j_=function(a,b,c,d,e,f,h){g.V.call(this,{I:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{I:"div",L:"ytp-slider",S:[{I:"div",L:"ytp-slider-handle"}]}]});this.G=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.P=f;this.range=this.maximumValue-this.minimumValue;this.Y=this.ga("ytp-slider-section");this.B=this.ga("ytp-slider");this.V=this.ga("ytp-slider-handle");
this.D=new g.ys(this.B,!0);this.u=h?h:c;g.C(this,this.D);this.D.subscribe("dragmove",this.sL,this);this.R(this.element,"keydown",this.tL);this.R(this.element,"wheel",this.rL);this.init()};
l_=function(a){j_.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.C=g.Fe("P");this.ba=maa(this.X,this);g.I(this.B,"ytp-speedslider");g.I(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);k_(this);this.R(this.J,"onPlaybackRateChange",this.ea)};
k_=function(a){a.C.textContent=m_(a,a.u)+"x"};
m_=function(a,b){var c=Number(g.be(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 Number(e.toFixed(2))};
n_=function(a){g.EN.call(this,{I:"div",L:"ytp-speedslider-component"});this.u=new l_(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
jza=function(a){var b=new n_(a);CY.call(this,a,b,"Custom");g.C(this,b)};
o_=function(a,b){var c=new jza(a);g.b_.call(this,"Playback speed",5,a,b,"Custom",function(){g.JY(b,c)});
g.C(this,c);this.J=a;this.D=this.u=this.K=null;this.G=this.J.getAvailablePlaybackRates();this.R(a,"presentingplayerstatechange",this.na);this.na()};
kza=function(a,b){var c=p_(b);a.options[c]?a.zc(c):b===a.D&&a.u&&(a.zc(a.u),a.sc(b.toString()))};
mza=function(a){g.c_(a,a.G.map(p_));a.u=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(lza(a,b),g.b_.prototype.He.call(a,a.u))};
lza=function(a,b){a.D=b;a.u=g.yK("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.G.map(p_);c.unshift(a.u);g.c_(a,c)};
p_=function(a){return a.toString()};
q_=function(a,b,c,d){var e=new g.DY(b,void 0,"Video Override");g.b_.call(this,d.text||"",a,b,c,"Video Override",function(){g.JY(c,e)});
var f=this;g.I(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Hb(a,this.getKey,this);this.G=e;g.C(this,this.G);b=new g.zY({I:"div",L:"ytp-menuitemtitle",Z:"Allow for a different caption style if specified by the video."},0);g.C(this,b);this.G.Pb(b,!0);this.D=new g.zY({I:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{I:"div",L:"ytp-menuitem-label",Z:"On"}]},-1);g.C(this,this.D);this.G.Pb(this.D,!0);this.R(this.D.element,
"click",function(){nza(f,!0)});
this.u=new g.zY({I:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{I:"div",L:"ytp-menuitem-label",Z:"Off"}]},-2);g.C(this,this.u);this.G.Pb(this.u,!0);this.R(this.u.element,"click",function(){nza(f,!1)});
g.c_(this,g.Pc(a,this.getKey))};
nza=function(a,b){a.W("settingChange",a.setting+"Override",!b);a.Va.Pf()};
r_=function(a,b){g.DY.call(this,a,void 0,"Options");var c=this;this.yk={};for(var d=0;d<g.YY.length;d++){var e=g.YY[d],f=new q_(-d,a,b,e);g.C(this,f);f.subscribe("settingChange",this.Mf,this);this.yk[e.option.toString()]=f;this.Pb(f,!0)}d=new g.zY(g.AY(),-g.YY.length,"Reset");g.C(this,d);d.wa("click",function(){c.Mf("reset",!0)});
this.Pb(d,!0)};
s_=function(a,b){g.b_.call(this,"Auto-translate",0,a,b);this.languages={}};
oza=function(a,b){a.languages=g.Hb(b,a.getKey,a);g.c_(a,g.Pc(b,a.getKey))};
t_=function(a,b){var c=new r_(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.QC(a.T())&&(e={I:"div",L:"ytp-panel-footer-content",S:[{I:"span",Z:d[0]},{I:"a",L:"ytp-panel-footer-content-link",Z:"Settings",U:{href:"/account_playback"}},{I:"span",Z:d[1]}]});g.b_.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.JY(b,c)},e);
var f=this;this.J=a;this.Va=b;this.tracks={};this.G=new g.G(function(){pza(f,!1)},3E3);
g.C(this,this.G);this.K=new g.V({I:"div",S:[{I:"span",Z:"Subtitles/CC"},{I:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.K);g.yY(this,this.K);this.u=new s_(a,b);g.C(this,this.u);this.u.subscribe("select",this.yL,this);this.D=c;g.C(this,this.D);this.D.subscribe("settingChange",this.Mf,this);b.subscribe("show",this.ZO,this);this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na()};
pza=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
u_=function(a){g.LY.call(this,a,"ytp-settings-menu");var b=this;this.Xc=new g.DY(this.J);this.ix=this.settingsButton=null;this.Gd=!1;g.C(this,this.Xc);this.hide();g.JY(this,this.Xc);g.vX(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.Dg(c)})};
qza=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
v_=function(a,b){g.V.call(this,{I:"button",ia:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new CZ;this.tooltip=b.Jb();g.C(this,this.transition);this.R(a,"sizestylechange",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();this.wa("click",this.onClick);g.dg(this,g.sY(this.tooltip,this.element))};
w_=function(a,b){g.V.call(this,{I:"button",ia:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.UX(a,"Subtitles/closed captions","c")},S:[YN()]});this.J=a;this.R(a,"videodatachange",this.na);this.R(a,"appresize",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na();this.wa("click",this.onClick);g.dg(this,g.sY(b.Jb(),this.element))};
g.x_=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{I:"div",ia:["ytp-time-display","notranslate"],S:[{I:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{I:"span",L:"ytp-time-separator",Z:" / "},{I:"span",L:"ytp-time-duration",Z:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({I:"button",ia:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Z:"{{content}}"});this.u=null;this.B=!1;this.G=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.sc("Live");g.C(this,this.liveBadge);
this.liveBadge.fa(this.element);this.tooltip=b.Jb();this.wa("click",this.onClick);this.R(a,"presentingplayerstatechange",this.Hc);this.R(a,"appresize",this.Hc);this.R(a,"videodatachange",this.Oa);(a=a.getVideoData())&&this.updateVideoData(a);this.Hc()};
A_=function(a,b,c){g.V.call(this,{I:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{I:"div",L:"ytp-volume-slider",S:[{I:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.K=c;this.ih=!1;this.X=this.volume=0;this.P=null;this.D=this.u=this.C=!1;this.B=b;this.K=c;this.F=b.Id();this.V=this.ga("ytp-volume-slider");this.Y=this.ga("ytp-volume-slider-handle");this.G=
new g.ys(this.V,!0);g.C(this,this.G);this.G.subscribe("dragstart",this.dP,this);this.G.subscribe("dragmove",this.CL,this);this.G.subscribe("dragend",this.cP,this);this.R(a,"onVolumeChange",this.EL);this.R(a,"appresize",this.oD);this.R(a,"fullscreentoggled",this.Bj);this.R(a,"onShowControls",this.yA);this.R(a,"onHideControls",this.yA);this.R(this.element,"keydown",this.DL);this.R(this.element,"focus",function(){y_(d,d.u,d.C,!0,d.B.ih())});
this.R(this.element,"blur",function(){y_(d,d.u,d.C,!1,d.B.ih())});
this.oD(g.fH(a).getPlayerSize());z_(this,a.getVolume(),a.isMuted())};
z_=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.ua("valuenow",d);a.ua("valuetext",e);a.Y.style.left=(a.F?60:40)*c+"px";a.volume=b};
rza=function(a,b){g.K(a.element,"ytp-volume-control-hover",b);y_(a,b,a.C,a.D,a.B.ih())};
y_=function(a,b,c,d,e){var f=a.u||a.C||a.D||a.ih;a.u=b;a.C=c;a.D=d;a.ih=e;b=a.u||a.C||a.D||a.ih;f!==b&&(b?a.P=a.R(a.element,"wheel",a.BL):(a.Eb(a.P),a.P=null),g.K(a.K,"ytp-volume-slider-active",b))};
g.B_=function(a,b){var c=a.T(),d=g.GC(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.tC(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{I:"a",ia:e,U:{href:"{{url}}",target:c.F,title:g.yK("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},S:[f?{I:"svg",U:{viewBox:"0 0 77 20"},S:[{I:"g",U:{fill:"none"},S:[{I:"path",U:{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"}},{I:"path",U:{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"}}]}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
this.api=a;this.visible=!1;g.vX(a,this.element,this,28666);this.wa("click",this.onClick);this.R(a,"videodatachange",this.Oa);this.R(a,"onLoopRangeChange",this.Oa);this.Oa();g.dg(this,g.sY(b.Jb(),this.element))};
D_=function(a,b,c){g.rs.call(this);var d=this;this.J=a;this.B=b;this.Ac=c;this.ka=NaN;this.ea=this.ha=null;this.u=new u_(this.J);this.Qc=new g.NZ(this.J,this.B);this.muteButton=null;this.Hh=new g.x_(this.J,this.B);this.D=this.F=this.P=this.N=null;this.X=new FZ(this.J,this.B);this.da=new g.yZ(this.J,this.B);this.Fd=new g.qn(this.Qp,null,this);this.K=null;c=a.T();this.Ac.subscribe("autohideupdate",this.xh,this);var e=!g.AJ(a).isCued(),f=this.J.T().ca("html5_player_bottom_linear_gradient");f||!g.tC(c)&&
!g.R(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({I:"div",L:"ytp-gradient-bottom-container",S:[{I:"div",L:"ytp-gradient-bottom-extension"},{I:"div",L:"ytp-gradient-bottom"}]}):new g.V({I:"div",L:"ytp-gradient-bottom"}):this.ea=f=new g.sZ(a);g.C(this,f);g.DP(a,f.element,8);this.ba=new g.oO(f,250,e,100);g.C(this,this.ba);this.C=new g.V({I:"div",L:"ytp-chrome-bottom",S:[{I:"div",L:"ytp-chrome-controls"}]});g.C(this,this.C);g.DP(a,this.C.element,8);this.Y=new g.oO(this.C,250,
e,100);g.C(this,this.Y);this.V=this.C.element.children[0];g.dg(this.u,function(){a.Cl()===d.u&&(a.P=null)});
g.C(this,this.u);a.P=this.u;g.DP(a,this.u.element,6);this.u.subscribe("show",function(m){var n=d.B.Jb(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:C_(n);n.G.show();break;default:n.G.show()}else n.G.hide();n.K=p;b.Ay(d.u,m)});
g.C(this,this.Qc);this.Qc.fa(this.C.element,0);e=new g.uZ(a);g.C(this,e);g.DP(a,e.element,4);f=new g.AN({I:"div",L:"ytp-left-controls"});g.C(this,f);f.fa(this.V);e=new g.JZ(a,b,!1);g.C(this,e);e.fa(f.element);c.Y||(e=new g.GZ(a,b),g.C(this,e),e.fa(f.element));e=new g.JZ(a,b,!0);g.C(this,e);e.fa(f.element);e=new g.V({I:"span",L:"ytp-volume-area"});g.C(this,e);e.fa(f.element);if(!c.Qa&&(this.muteButton=new EZ(a,b),g.C(this,this.muteButton),this.muteButton.fa(e.element),c.V)){var h=new A_(a,b,this.C.element);
g.C(this,h);h.fa(e.element);e=new g.ys(e.element);g.C(this,e);e.subscribe("hoverstart",function(){rza(h,!0)});
e=new g.ys(f.element);g.C(this,e);e.subscribe("hoverend",function(){rza(h,!1)})}g.C(this,this.Hh);
this.Hh.fa(f.element);e=new g.AN({I:"div",L:"ytp-right-controls"});g.C(this,e);this.N=new tZ(a,b,this.Qc,f.element,e.element);g.C(this,this.N);a.T().ca("html5_ux_control_flexbox_killswitch")?this.N.fa(this.V):this.N.fa(f.element);e.fa(this.V);a.T().tb&&g.R(c.experiments,"web_player_move_autonav_toggle")&&(f=new qZ(a,b),g.C(this,f),f.fa(e.element));g.R(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&IC(c)&&(this.P=new xZ(a,b),g.C(this,this.P),this.P.fa(e.element));f=new w_(a,b);
g.C(this,f);f.fa(e.element);f=new ZZ(a,b,this.u);g.C(this,f);qza(this.u,f);f.fa(e.element);var l=new BZ(a);g.C(this,l);g.DP(a,l.element,5);l.subscribe("show",function(m){b.sl(l,m)});
f=new AZ(a,b,l);g.C(this,f);f.fa(e.element);f=a.getVideoData();if(c.Ni||f.Lc&&"1"===c.controlsType)this.F=new g.B_(a,b),g.C(this,this.F),this.F.fa(e.element);c.showMiniplayerButton&&!g.R(a.T().experiments,"web_player_pip")&&(this.D=new zZ(a,b),g.C(this,this.D),this.D.fa(e.element));g.C(this,this.X);this.X.fa(e.element);f.Fy||this.X.hide();c.he||(f=new v_(a,b),g.C(this,f),f.fa(e.element));c.de&&(f=new YZ(a,b,this.u),g.C(this,f),f.fa(e.element));c.Sh&&(c=new pZ(a,b),g.C(this,c),c.fa(e.element));g.C(this,
this.da);this.da.fa(e.element);g.C(this,this.Fd);this.R(a,"appresize",this.Sa);this.R(a,"fullscreentoggled",this.Sa);this.R(a,"presentingplayerstatechange",this.Ax);this.R(a,"videodatachange",this.Oa);this.Sa()};
sza=function(a,b){g.AJ(a.J).isCued()||b?b&&(a.Y.hide(),a.ba.hide(),a.muteButton&&a.muteButton.yb(!1),a.F&&a.F.yb(!1),a.D&&a.D.yb(!1),a.B.Jb().Uh(a.Na())):b||(a.Y.show(),a.ba.show(),a.muteButton&&a.muteButton.yb(!0),a.F&&a.F.yb(!0),a.D&&a.D.yb(!0),a.xh())};
tza=function(a){var b=g.fH(a.J).getPlayerSize().width;return Math.max(b-2*E_(a),100)};
E_=function(a){var b=a.B.Id();return 12*(a.J.getVideoData().Lc?0:b?2:1)};
F_=function(a){var b=a.B.Id()?72:50;a=a.J.T();g.KC(a)&&(g.R(a.experiments,"web_player_bigger_buttons")?b=54:g.R(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
H_=function(a){g.V.call(this,{I:"div",L:G_.TITLE,S:[{I:"div",L:G_.TEXT,S:[{I:"a",ia:[G_.LINK,G_.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title"},Z:"{{title}}"},{I:"div",L:G_.SUBTEXT,S:[{I:"a",L:G_.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ga(G_.LINK);g.vX(a,this.element,this,23851);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
uza=function(a){a.ua("channelLink","");a.ua("channelName","")};
g.I_=function(a,b){g.V.call(this,{I:"div",S:[{I:"div",L:"ytp-tooltip-text-wrapper",S:[{I:"div",L:"ytp-tooltip-image"},{I:"div",L:"ytp-tooltip-title",Z:"{{title}}"},{I:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{I:"div",L:"ytp-tooltip-bg",S:[{I:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.ka=b;this.ha=this.api.T();this.da=this.ha.u;this.bg=this.ga("ytp-tooltip-bg");this.image=this.ga("ytp-tooltip-image");this.text=this.ga("ytp-tooltip-text");this.title=this.ga("ytp-tooltip-title");
this.V=function(e){(e=hp(e))&&g.Me(c.B,e)||c.xi()};
this.D=function(e){3===c.type&&c.xi();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.D),e.addEventListener("mouseout",c.V),e.removeEventListener("focus",c.D),e.addEventListener("blur",c.V),vza(c,e,2))};
this.X=function(){c.xi()};
this.B=null;this.G=new g.oO(this,100);this.type=null;this.P=!1;this.u=null;this.C=NaN;this.F="";this.ba=g.fH(this.api).getPlayerSize().width;this.K=!0;this.scale=1;this.Y=new g.G(this.DJ,250,this);this.ea=new g.G(this.xi,5E3,this);g.C(this,this.G);g.C(this,this.Y);g.C(this,this.ea);if(hC){var d=this.ga("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
vY=function(a){a.element.setAttribute("aria-live","polite")};
yza=function(a,b,c,d,e,f,h,l){if(!a.da){3===a.type&&a.xi();1!==a.type&&(yn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.G.show(),a.u&&a.u.dispose(),a.u=a.api.cg(),a.u&&a.u.subscribe("l",a.cE,a));a.update({text:d,title:h?h:""});g.K(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.K(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=mF(a.u,160*a.scale),g.R(a.ha.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=rF(a.u,d,c));wza(a,d);if(l)switch(c=g.Eg(a.element).width,
l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}xza(a,!!e,b,f)}};
g.J_=function(a){1===a.type&&a.xi()};
g.sY=function(a,b){if(a.da)return g.Oa;b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.B===b&&a.xi();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
RY=function(a,b,c){if(a.type)if(3===a.type)a.xi();else return;vza(a,b,3,c)};
vza=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Sq("showElementTooltip called with non-element.",b.toString()),g.Fr(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.B=b;a.P=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));yn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.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.type=c;
a.api.addEventListener("appresize",a.X);a.K&&(C_(a),a.G.show(0))}};
C_=function(a){var b;a.B&&(b=a.B.getAttribute("data-tooltip-text"));if(b&&!a.P){var c=a.B;a.ua("text",b);var d=c.getAttribute("data-duration");a.update({title:a.F,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.An(a.element,["ytp-text-detail","ytp-preview"]);
g.K(a.element,"ytp-has-duration",!!d)}else a.ua("text",a.F),g.Cn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);xza(a,!!b)};
xza=function(a,b,c,d){var e=Math.min(a.ba,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ka.Gn(a.element,a.B,c,1===a.type,d);a.element.style.top?g.I(a.element,"ytp-bottom"):a.element.style.bottom&&g.I(a.element,"ytp-top");3===a.type&&a.ea.start()};
SY=function(a){a.B&&!a.P&&a.B.hasAttribute("title")&&(a.F=a.B.getAttribute("title")||"",a.B.removeAttribute("title"),a.K&&C_(a))};
wza=function(a,b){g.K(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;var c=160*a.scale,d=160*a.scale,e=a.u.wl(a.C,c);Cya(a.bg,e,c,d,!0);a.Y.start()}};
zza=function(a){var b=a.B;3===a.type&&a.ea.stop();a.api.removeEventListener("appresize",a.X);a.P||b.setAttribute("title",a.F);a.F="";a.B=null};
g.K_=function(a,b){g.V.call(this,{I:"button",ia:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kC(a.T()))},S:[{I:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{I:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Jb();vY(this.tooltip);g.vX(a,this.element,this,28665);this.wa("click",this.onClick,this);this.R(a,"videoplayerreset",this.FL);this.R(a,"appresize",
this.Bt);this.R(a,"videodatachange",this.Bt);this.R(a,"presentingplayerstatechange",this.Bt);this.Bt();var c=this.J.T(),d=g.xt("yt-player-watch-later-pending");c.B&&d?(Qx(),Aza(this,d.videoId)):this.na(2);g.K(this.element,"ytp-show-watch-later-title",g.kC(c));g.dg(this,g.sY(b.Jb(),this.element))};
Bza=function(a,b){g.Twa(function(){Qx({videoId:b});window.location.reload()},"wl_button",g.FC(a.J.T()))};
Aza=function(a,b){if(!a.B)if(a.B=!0,a.na(3),g.R(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=gH(a.J.app),e=a.u?function(){a.KE()}:function(){a.JE()};
HU(d,c).then(e,function(){a.B=!1;L_(a,"An error occurred. Please try again later.")})}else c=a.J.T(),(a.u?Rwa:Qwa)({videoIds:b,
ie:c.ie,pageId:c.pageId,onError:a.FP,onSuccess:a.u?a.KE:a.JE,context:a},c.P,!0)};
L_=function(a,b){a.na(4,b);a.J.T().C&&a.J.va("WATCH_LATER_ERROR",b)};
Cza=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=SX();break;case 1:d=RN();break;case 2:d={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.R(c.experiments,"watch_later_iconchange_killswitch")?{I:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.ua("icon",d);
a.icon=b}};
M_=function(a){g.hY.call(this,a);var b=this;this.dn=g.kC(this.api.T());this.Cv=48;this.Dv=69;this.Zh=null;this.Ek=[];this.Lb=new g.mY(this.api);this.yr=new TY(this.api);this.lg=new g.V({I:"div",L:"ytp-chrome-top"});this.Dq=[];this.tooltip=new g.I_(this.api,this);this.backButton=this.Fn=null;this.channelAvatar=new xY(this.api,this);this.title=new H_(this.api,this);this.xf=new g.AN({I:"div",L:"ytp-chrome-top-buttons"});this.Uf=null;this.Vh=new rY(this.api,this,this.lg.element);this.overflowButton=this.Nf=
null;this.hf="1"===this.api.T().controlsType?new D_(this.api,this,this.Ac):null;this.contextMenu=new g.PY(this.api,this,this.Lb);this.gv=!1;this.Lr=new g.V({I:"div",U:{tabindex:"0"}});this.Kr=new g.V({I:"div",U:{tabindex:"0"}});this.Wp=null;this.By=this.tr=!1;var c=g.fH(a),d=a.T(),e=a.getVideoData();this.dn&&(g.I(a.getRootNode(),"ytp-embed"),g.I(a.getRootNode(),"ytp-embed-playlist"),this.Cv=60,this.Dv=89);this.ug=e&&e.ug;g.C(this,this.Lb);g.DP(a,this.Lb.element,4);g.C(this,this.yr);g.DP(a,this.yr.element,
4);e=new g.V({I:"div",L:"ytp-gradient-top"});g.C(this,e);g.DP(a,e.element,1);this.Uy=new g.oO(e,250,!0,100);g.C(this,this.Uy);g.C(this,this.lg);g.DP(a,this.lg.element,1);this.Ty=new g.oO(this.lg,250,!0,100);g.C(this,this.Ty);g.C(this,this.tooltip);g.DP(a,this.tooltip.element,4);var f=new dZ(a);g.C(this,f);g.DP(a,f.element,5);f.subscribe("show",function(l){b.sl(f,l)});
this.Dq.push(f);this.Fn=new eZ(a,this,f);g.C(this,this.Fn);d.showBackButton&&(this.backButton=new lY(a),g.C(this,this.backButton),this.backButton.fa(this.lg.element));this.dn||this.Fn.fa(this.lg.element);this.channelAvatar.fa(this.lg.element);g.C(this,this.channelAvatar);g.C(this,this.title);this.title.fa(this.lg.element);g.C(this,this.xf);this.xf.fa(this.lg.element);this.Uf=new g.K_(a,this);g.C(this,this.Uf);this.Uf.fa(this.xf.element);var h=new g.jZ(a,this);g.C(this,h);g.DP(a,h.element,5);h.subscribe("show",
function(l){b.sl(h,l)});
this.Dq.push(h);this.shareButton=new g.iZ(a,this,h);g.C(this,this.shareButton);this.shareButton.fa(this.xf.element);this.Zi=new QY(a,this);g.C(this,this.Zi);this.Zi.fa(this.xf.element);d.Rj&&(e=new oZ(a),g.C(this,e),g.DP(a,e.element,4));this.dn&&this.Fn.fa(this.xf.element);g.C(this,this.Vh);this.Vh.fa(this.xf.element);e=new pY(a,this,this.Vh);g.C(this,e);e.fa(this.xf.element);this.Nf=new aZ(a,this);g.C(this,this.Nf);g.DP(a,this.Nf.element,5);this.Nf.subscribe("show",function(){b.sl(b.Nf,b.Nf.ff())});
this.Dq.push(this.Nf);this.overflowButton=new $Y(a,this,this.Nf);g.C(this,this.overflowButton);this.overflowButton.fa(this.xf.element);this.hf&&g.C(this,this.hf);"3"===d.controlsType&&(e=new hZ(a,this),g.C(this,e),g.DP(a,e.element,8));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.xG,this);e=new qP(a,new CP(a));g.C(this,e);g.DP(a,e.element,4);this.Lr.wa("focus",this.oI,this);g.C(this,this.Lr);this.Kr.wa("focus",this.pI,this);g.C(this,this.Kr);(this.qj=d.md?null:new g.XY(a,c,this.contextMenu,
this.Ac,this.Lb,this.yr,function(){return b.dj()}))&&g.C(this,this.qj);
this.dn||(this.LF=new mZ(this.api,this),g.C(this,this.LF),g.DP(a,this.LF.element,4));this.Dk.push(this.Lb.element);this.R(a,"fullscreentoggled",this.Bj);this.R(a,"offlineslatestatechange",this.eO,this);this.R(a,"cardstatechange",this.og,this);this.R(a,"resize",this.aN)};
Dza=function(a){var b=a.api.T(),c=g.U(g.AJ(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
N_=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==tg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=N_(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.O_=function(a){g.HS.call(this,a);this.chrome=null;this.load()};
Eza=function(){this.B=200;this.u=12};
Fza=function(a){var b=new Eza;b.B=g.Q(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.Q(a.experiments,"html5_gapless_max_played_ranges");return b};
Gza=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.Ia;if(uU(b.K)>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.B)&&b.isView()&&(b=b.u),b&&b.Al().length>a.u&&g.YF(e)))return"played-ranges";if(!e.Ia)return null;if(!e.Ia.xc()||!c.xc())return"non-dash";if(e.Ia.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.YF(f)&&g.YF(e))return"content-protection";
a=c.u[0].audio;e=e.Ia.u[0].audio;return a.sampleRate===e.sampleRate||g.AB?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
Q_=function(a,b,c,d){g.B.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.G=-1;this.K=!1;this.F=new $w;this.jf=d-1E3*b.pc();this.F.then(void 0,function(){});
this.timeout=new g.G(function(){P_(e,"timeout")},1E4);
g.C(this,this.timeout);this.N=isFinite(d);this.status={status:0,error:null}};
Jza=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return Aa(c,function(x){if(1==x.u){e=d;if(d.la())return x["return"](Promise.reject(Error(d.status.error||"disposed")));d.timeout.start();f=Gx?new jga:null;return ra(x,d.F,2)}f&&(Hx("gtfta",(0,g.O)()-f.startTimeMs),f.UH=!0);h=d.u.B;if(h.mi())return P_(d,"ended_in_finishTransition"),x["return"](Promise.reject(Error(d.status.error||"")));if(!d.D||!JB(d.D))return P_(d,"next_mse_closed"),x["return"](Promise.reject(Error(d.status.error||
"")));if(d.B.V!==d.D)return P_(d,"next_mse_mismatch"),x["return"](Promise.reject(Error(d.status.error||"")));l=Hza(d);m=l.JD;n=l.NA;p=l.ID;uW(d.u,!1,!0);r=Iza(h,m,p,!d.B.getVideoData().isAd());vW(d.B,r);d.N&&(d.B.seekTo(d.B.getCurrentTime()+.001,{jp:!0,Sy:3}),r.play()||Yr());t=h.qb();t.cpn=d.u.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.B.jb("gapless",g.tB(t));d.u.jb("gaplessTo",d.B.getVideoData().clientPlaybackNonce);w=d.u.getPlayerType()===d.B.getPlayerType();Nwa(d.u,n,!1,w,d.B.getVideoData().clientPlaybackNonce);
Nwa(d.B,d.B.getCurrentTime(),!0,w,d.u.getVideoData().clientPlaybackNonce);g.um(function(){!e.B.getVideoData().vg&&g.LL(e.B.getPlayerState())&&Jwa(e.B)});
R_(d,6);d.dispose();return x["return"](Promise.resolve())})})};
Mza=function(a){if(a.B.getVideoData().Ia){GW(a.B,a.D);R_(a,3);Kza(a);var b=Lza(a),c=b.KF;b=b.BQ;c.subscribe("updateend",a.Bn,a);b.subscribe("updateend",a.Bn,a);a.Bn(c);a.Bn(b)}};
Kza=function(a){a.u.unsubscribe("internalvideodatachange",a.Zk,a);a.B.unsubscribe("internalvideodatachange",a.Zk,a);a.u.unsubscribe("mediasourceattached",a.Zk,a);a.B.unsubscribe("statechange",a.Wb,a)};
Iza=function(a,b,c,d){return new g.WS(a.isView()?a.u:a,b,c,d)};
R_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
P_=function(a,b){if(!a.la()&&!a.isFinished()){var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.jb("gaplessError","cpn."+d+";msg."+b);d=a.u;d.u.ri=!1;c&&pV(d);d.D&&(c=d.D,c.u.ea=!1,c.C&&HE(c))}a.F.reject(void 0);a.dispose()}};
Hza=function(a){var b=a.u.B;b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:JW(a.u,!0);c=Math.min(a.jf/1E3,c)+b;var d=a.N?100:0;a=c-uU(a.B.K)+d;return{aI:b,JD:a,NA:c,ID:Infinity}};
Lza=function(a){return{KF:a.C.u.u,BQ:a.C.B.u}};
S_=function(a){g.B.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.N=Fza(this.api.T());this.C=null;this.G=function(){g.um(function(){Nza(b)})}};
Oza=function(a,b,c,d){d=void 0===d?0:d;!a.B||T_(a);a.D=new $w;a.B=b;var e=c,f=a.api.Vb(),h=f.getVideoData().isLivePlayback?Infinity:1E3*JW(f,!0);e>h&&(e=h-a.N.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.G():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.WD("vqueued"),a.G),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.TD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().ma;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,JW(a.u,
!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,JW(b)+l));f=Wga(e,h)||d;f!==d&&a.B.jb("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;d.getVideoData().Hn=!0;d.getVideoData().ri=!0;vV(d,!0);e="";a.u&&(e=g.AT(a.u.G.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.jb("queued",e);0!==b&&d.seekTo(b+.01,{jp:!0,Sy:3});a.C=new Q_(a.N,a.api.Vb(),a.B,c);c=a.C;Infinity!==c.status.status&&(R_(c,1),c.u.subscribe("internalvideodatachange",c.Zk,c),c.B.subscribe("internalvideodatachange",
c.Zk,c),c.u.subscribe("mediasourceattached",c.Zk,c),c.B.subscribe("statechange",c.Wb,c),c.u.subscribe("newelementrequired",c.kE,c),c.Zk());return a.D};
Nza=function(a){Ue(a,function c(){var d=this,e,f,h,l;return Aa(c,function(m){switch(m.u){case 1:e=d;if(d.la()||!d.D||!d.B)return m["return"]();d.K&&mV(d.api.Vb(),!0,!1);f=null;if(!d.C){m.Kd(2);break}sa(m,3);return ra(m,Jza(d.C),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return Pza(d.api.app,d.B),Jx("vqsp",function(){var n=e.B.getPlayerType();g.iN(e.api.app,n)}),Jx("vqpv",function(){e.api.playVideo()}),f&&Fwa(d.B,f.message),l=d.D,T_(d),m["return"](l.resolve(void 0))}})})};
T_=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.WD("vqueued"),a.G);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&P_(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
V_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.D=b;this.u=c;this.P=new Map;this.C=new Map;this.B=[];this.V=NaN;this.K=this.G=null;this.N=new g.G(function(){U_(d,d.V)});
this.events=new g.rs(this);this.Y=this.isLiveNow=!0;this.X=g.Q(this.D.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||5E3;this.F=new g.G(function(){d.u.jb("ssdaiaftimeout",d.X.toString());Qza(d)},this.X);
this.u.getPlayerType();twa(this.u,this);g.C(this,this.N);g.C(this,this.events);g.C(this,this.F);this.events.R(this.api,g.WD("serverstitchedcuerange"),this.YK);this.events.R(this.api,g.XD("serverstitchedcuerange"),this.ZK)};
Uza=function(a,b,c,d,e){var f=a.u;e=void 0===e?d+c:e;if(d>e)return W_(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.wc();if(d<h)return W_(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return W_(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Zb&&d<m.Gc||e<=m.Gc&&e>m.Zb)return W_(a,
"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+X_(m))),"";if(e===m.Zb)return W_(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+X_(m))),"";d===m.Gc&&(h=m)}l="childplayback_"+Rza++;m={od:Y_(c,!0),jf:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.R(a.D.experiments,
"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.gw());b={Xb:l,playerVars:b,playerType:2,durationMs:c,Zb:d,Gc:e,Wf:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.Zb-t.Zb});
h?(b.Si=h.Si,Sza(h,{od:Y_(h.durationMs,!0),jf:Infinity,target:b})):(b.Si=b.cpn,d={od:Y_(d,!1),jf:d,target:b},a.P.set(d.od,d),f.addCueRange(d.od));d=Tza(b.Zb,b.Zb+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.Y&&a.F.isActive()&&(a.F.stop(),a.Y=!1,Qza(a));return l};
Y_=function(a,b){return new g.TD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
Tza=function(a,b){return new g.TD(a,b,{namespace:"serverstitchedcuerange",priority:7})};
Sza=function(a,b){a.Wf=b};
Z_=function(a,b){for(var c=0,d=g.q(a.B),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Zb/1E3+c,h=f+e.durationMs/1E3;if(f>b+1)break;if(h>b)return{Wi:e,Xl:b-c};c=h-e.Gc/1E3}return{Wi:null,Xl:b-c}};
U_=function(a,b){var c=a.K||a.api.Vb().getPlayerState();$_(a,!0);var d=Z_(a,b).Xl;a.u.seekTo(d);d=a.api.Vb();var e=d.getPlayerState();g.LL(c)&&!g.LL(e)?d.playVideo():g.U(c,4)&&!g.U(e,4)&&d.pauseVideo()};
$_=function(a,b){a.V=NaN;a.N.stop();a.G&&b&&EW(a.G);a.K=null;a.G=null};
yX=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.P),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.jf>=d&&l.target&&l.target.Gc<=e&&(a.u.removeCueRange(h),a.P["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Zb<d||l.Gc>e)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.u.removeCueRange(h),a.C["delete"](h));d=Z_(a,b/1E3);b=d.Wi;
d=d.Xl;b&&(d=1E3*d-b.Zb,Vza(a,b,d,b.Zb+d));(b=Z_(a,c/1E3).Wi)&&W_(a,"Invalid clearEndTimeMs="+c+" that falls during "+X_(b)+".Child playbacks can only have duration updated not their start.")};
Vza=function(a,b,c,d){b.durationMs=c;b.Gc=d;c={od:Y_(c,!0),jf:c,target:null};b.Wf=c;c=null;d=g.q(a.C);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Xb===b.Xb&&(c=f)}c&&(a.u.removeCueRange(c),c=Tza(b.Zb,b.Zb+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
X_=function(a){return"playback={timelinePlaybackId="+a.Xb+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Zb+" parentReturnTimeMs="+a.Gc+"}"};
Mla=function(a,b,c,d){var e=null;0>=b?a.B.length&&(e=a.B[0]):(e=0,a.D.ca("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.pc():a.u.getStreamTimeOffset()),e=Z_(a,b+e).Wi);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(l){return l.itag===f});
if(h&&h.url)return b=a.u.getVideoData(),d=b.ma.u[d].index.BB(c-1),c=h.url,d&&d.u&&(c=c.concat("&daistate="+d.u)),(d=b.clientPlaybackNonce)&&(c=c.concat("&cpn="+d)),e.Si&&(d=Wza(a,e.Si),0<d.length&&(c=c.concat("&acpns="+d.join(",")))),g.R(a.D.experiments,"html5_high_res_logging")&&a.u.jb("sdai","ast."+e.Zb.toFixed(3)+".alen."+e.durationMs.toFixed(3)+".acpn."+e.cpn),c}return null};
W_=function(a,b){a.u.jb("timelineerror",b)};
Wza=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.Si===b&&e.cpn&&c.push(e.cpn);return c};
Qza=function(a){g.R(a.D.experiments,"html5_high_res_logging")&&a.u.jb("sdai","adf.0");a=a.u;if(a.D){a=a.D;var b=a.V;if(!isNaN(b.F)){var c=b.F-1;qz(b.P,c);qz(b.ba,c);b.F=NaN}b.C=4;DE(a)}};
a0=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.F=b;this.B=c;this.G=new Map;this.u=[];this.C=this.N=null;this.X=NaN;this.K=this.D=null;this.V=new g.G(function(){Xza(d,d.X)});
this.P=[];this.Y=new g.G(function(){var e=d.P.pop();if(e){var f=e.Xb,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.P.length&&d.Y.Hb(4500)}});
this.events=new g.rs(this);c.getPlayerType();g.C(this,this.V);g.C(this,this.Y);g.C(this,this.events);this.events.R(this.api,g.WD("childplayback"),this.aL);this.events.R(this.api,"onQueuedVideoLoaded",this.BO);this.events.R(this.api,"presentingplayerstatechange",this.Lf)};
aAa=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return b0(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.wc();if(d<h)return b0(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return b0(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Zb&&d<m.Gc)return b0(a,
"e.overlappingEnter"),"";if(e<=m.Gc&&e>m.Zb)return b0(a,"e.overlappingReturn"),"";if(e===m.Zb)return b0(a,"e.outOfOrder"),"";d===m.Gc&&(h=m)}l="childplayback_"+Yza++;m={od:c0(c,!0),jf:Infinity,target:null};var n={Xb:l,playerVars:b,playerType:2,durationMs:c,Zb:d,Gc:e,Wf:m};a.u=a.u.concat(n).sort(function(t,w){return t.Zb-w.Zb});
h?Zza(a,h,{od:c0(h.durationMs,!0),jf:a.F.ca("timeline_manager_transition_killswitch")?Infinity:h.Wf.jf,target:n}):(b={od:c0(d,!1),jf:d,target:n},a.G.set(b.od,b),f.addCueRange(b.od));b=g.R(a.F.experiments,"html5_gapless_preloading");if(a.B===a.api.Vb()&&(f=1E3*f.getCurrentTime(),f>=n.Zb&&f<n.Gc)){var p=a.api.Vb().getPlayerState(),r=f-n.Zb;om(function(){$za(a,n,r/1E3,p)});
b=!1}b&&(a.P.unshift(n),a.Y.Hb(0));return l};
c0=function(a,b){return new g.TD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
cAa=function(a,b,c,d){a.C=d;bAa(a.api.app,a.B,c,void 0===b?0:b)};
dAa=function(a,b,c,d){a.C=d;d=b.Xb;var e=b.playerVars,f=b.playerType;a.N=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
Zza=function(a,b,c){var d=b.Wf;b.Wf=c;d0(a,b)&&(c=a.api.Vb(),d.od===a.C&&e0(a),c.removeCueRange(d.od),c.addCueRange(b.Wf.od))};
e0=function(a){a.N=null;a.C=null;!a.api.app.Ra.B||a.api.clearQueue()};
eAa=function(a,b){d0(a,b)||b0(a,"e.childPlaybackIsNotPresenting");return b.Gc===b.Zb+b.durationMs?b.Zb+1E3*a.api.Vb().getCurrentTime():b.Gc};
f0=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.Zb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Wi:e,Xl:b-f};c=h-e.Gc/1E3}return{Wi:null,Xl:b-c}};
Xza=function(a,b){var c=a.K||a.api.Vb().getPlayerState();g0(a,!0);var d=g.R(a.F.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:vU(a.B.K),e=f0(a,d);d=e.Wi;e=e.Xl;var f=d&&!d0(a,d)||!d&&a.B!==a.api.Vb(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||e0(a);d?$za(a,d,e,c):h0(a,e,c)};
h0=function(a,b,c){var d=a.B;if(d!==a.api.Vb()){var e=d.getPlayerType();g.iN(a.api.app,e)}d.seekTo(b);fAa(a,c)};
$za=function(a,b,c,d){var e=d0(a,b);if(!e){g.iN(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.uF(a.F,b.playerVars);f.Xb=b.Xb;i0(a.api.app,f,b.playerType,void 0)}f=a.api.Vb();e||f.addCueRange(b.Wf.od);f.seekTo(c);fAa(a,d)};
fAa=function(a,b){var c=a.api.Vb(),d=c.getPlayerState();g.LL(b)&&!g.LL(d)?c.playVideo():g.U(b,4)&&!g.U(d,4)&&c.pauseVideo()};
g0=function(a,b){a.X=NaN;a.V.stop();a.D&&b&&EW(a.D);a.K=null;a.D=null};
d0=function(a,b){var c=a.api.Vb();return!!c&&c.getVideoData().Xb===b.Xb};
gAa=function(a){var b=a.u.find(function(d){return d0(a,d)});
if(b){e0(a);var c=new g.FL(8);b=eAa(a,b)/1E3;h0(a,b,c)}};
zX=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.G),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.jf>=d&&l.target&&l.target.Gc<=e&&(a.B.removeCueRange(h),a.G["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Zb>=d&&l.Gc<=e){var m=a;m.N===l&&e0(m);d0(m,l)&&g.mN(m.api,l.playerType)}else f.push(l);a.u=f;d=f0(a,b/1E3);b=d.Wi;d=d.Xl;b&&(d*=1E3,hAa(a,b,d,b.Gc===b.Zb+b.durationMs?b.Zb+d:b.Gc));
(b=f0(a,c/1E3).Wi)&&b0(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Xb+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Zb+" parentReturnTimeMs="+b.Gc+"}.Child playbacks can only have duration updated not their start."))};
hAa=function(a,b,c,d){b.durationMs=c;b.Gc=d;d={od:c0(c,!0),jf:c,target:null};Zza(a,b,d);d0(a,b)&&1E3*a.api.Vb().getCurrentTime()>c&&(b=eAa(a,b)/1E3,c=a.api.Vb().getPlayerState(),h0(a,b,c))};
b0=function(a,b){a.B.jb("timelineerror",b)};
jAa=function(a){a&&"web"!==a&&iAa.includes(a)};
l0=function(a,b){g.B.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.G(function(){j0(c);k0(c)});
g.C(this,this.u)};
j0=function(a){var b=(0,g.O)();a.data.forEach(function(c){c.expire<b&&m0(a,c,!0)});
a.data=g.Ke(a.data,function(c){return!(c.expire<b)})};
m0=function(a,b,c){c&&a.B&&a.B(b.value)};
k0=function(a){a.u.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)&&a.u.start(Math.max(b-g.A(),0))};
kAa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+Wu(a)+")":Wu(a)};
n0=function(a,b){g.B.call(this);var c=this;this.u=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.B=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.u=null:c.u=f.isVisible?f.intersectionRatio:0:c.u=f.intersectionRatio},e):null)&&this.B.observe(a)};
o0=function(a,b){this.u=a;this.C=b;this.B=null;this.D=[];this.F=!1};
g.p0=function(a){a.B||(a.B=a.u.createMediaElementSource(a.C.Na()));return a.B};
g.q0=function(a){for(var b;0<a.D.length;)(b=a.D.pop())&&b.disconnect();a.B&&a.B.disconnect()};
mAa=function(a,b){if(g.ak())return null;var c=lAa();if(!c)return g.iX(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.iX(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.iX(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.LL(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);r0=!1},null)};
r0||(a.addEventListener("presentingplayerstatechange",d),r0=!0)}return new o0(c,b)};
t0=function(a){g.V.call(this,{I:"div",ia:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{I:"div",L:g.s0.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ga(g.s0.VIDEO_CONTAINER);this.B=new g.ig(0,0,0,0);this.u=null;this.K=new g.ig(0,0,0,0);this.X=this.ea=this.ba=NaN;this.G=this.ka=!1;this.V=NaN;this.Y=!1;this.F=null;this.dispatchEvent=function(){};
this.da=function(){b.element.focus()};
this.P=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.T();e.transparentBackground&&this.Gp("ytp-transparent");"0"===e.controlsType&&this.Gp("ytp-hide-controls");e.ca("html5_ux_control_flexbox_killswitch")||g.I(this.element,"ytp-exp-bottom-control-flexbox");e.ca("html5_player_bottom_linear_gradient")&&g.I(this.element,"ytp-linear-gradient-bottom-experiment");e.ca("web_player_bigger_buttons")&&g.I(this.element,"ytp-exp-bigger-button");Ema(this.element,nAa(a));IC(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.P="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.he(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.he(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.he(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.he(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.he(640,360)}]);this.ha=e.useFastSizingOnWatchDefault;this.D=new g.he(NaN,NaN);oAa(this);this.R(a.B,"onMutedAutoplayChange",this.Sp)};
oAa=function(a){function b(){a.u&&u0(a);v0(a)!==a.Y&&a.resize()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.ig(0,0,0,0);a.B=new g.ig(0,0,0,0)}
var f=a.app.B;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.dg(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
pAa=function(a){a.u&&(a.u.removeEventListener("focus",a.da),g.Je(a.u),a.u=null)};
lJ=function(a,b){pC(a.app.T());a.G=!b;u0(a)};
qAa=function(a){var b=g.R(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.oj()||c.pj()||c.kj())return 16/9;if(b&&CF(c)&&c.Ia.xc())return b=c.Ia.videoInfos[0].video,w0(b.width,b.height)}return(a=a.u)?w0(a.videoWidth,a.videoHeight):b?16/9:NaN};
rAa=function(a,b,c,d){var e=c,f=w0(b.width,b.height);a.ka?e=c<f?Infinity:0:isNaN(a.X)?isNaN(a.ea)||(e=a.ea):e=a.X;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
w0=function(a,b){return 1>Math.abs(x0*b-a)||1>Math.abs(x0/a-b)?x0:a/b};
v0=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||oW(b))return!1;var c=g.AJ(a.app.B);a=!g.U(c,2)||!g.R(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().ri;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
u0=function(a){var b="3"===a.app.T().controlsType&&!a.G&&v0(a)&&!a.app.eb||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.da):g.R(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.da)};
sAa=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=rAa(a,b,a.getVideoAspectRatio()),f=ik();if(v0(a)){var h=qAa(a);var l=isNaN(h)||g.or||GD&&g.SC;jk&&!g.Zd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.ig(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.ig((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.SC&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.Y=!0}else l=-b.height,jk?l*=window.devicePixelRatio:g.RC&&(l-=window.screen.height),
l=new g.ig(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.Y=!1;jg(a.K,l)||(a.K=l,g.AC(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Dg(a.u,new g.he(l.width,l.height)),d=new g.fe(l.left,l.top),g.wg(a.u,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.ig((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);jg(a.B,b)||(a.B=b,d=!0);g.F(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
tAa=function(){this.csn=g.Ps();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
sxa=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=Js(d);b.visualElement=d;var f=g.Ps(),h=g.Ns();f&&h&&g.ot(f,h,d);g.dg(c,function(){uAa(a,b)});
e&&a.B.add(b)};
txa=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.dg(c,function(){uAa(a,b)});
d&&a.B.add(b)};
uAa=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
vAa=function(a){if(a.csn!==g.Ps())if("UNDEFINED_CSN"===a.csn)a.csn=g.Ps();else{var b=g.Ps(),c=g.Ns();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.ot(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.it(b,c,void 0)}};
y0=function(a,b,c,d,e){g.V.call(this,{I:"div",L:"ytp-horizonchart"});this.G=b;this.sampleCount=c;this.D=d;this.F=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.G+"em"};
z0=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Fe("CANVAS"),a.B=c.getContext("2d")}catch(e){}if(a.B){var d=a.u*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.Fe("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.B?a.B.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
A0=function(a){var b=null;b={I:"button",ia:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Z:"[x]"};g.V.call(this,{I:"div",L:"html5-video-info-panel",S:[b,{I:"div",L:"html5-video-info-panel-content",S:[{I:"div",S:[{I:"div",Z:"Video ID / sCPN"},{I:"span",Z:"{{video_id_and_cpn}}"}]},{I:"div",S:[{I:"div",Z:"Viewport / Frames"},{I:"span",Z:"{{dims_and_frames}}"}]},{I:"div",S:[{I:"div",Z:"Current / Optimal Res"},{I:"span",Z:"{{resolution}}"}]},{I:"div",S:[{I:"div",Z:"Volume / Normalized"},
{I:"span",Z:"{{volume}}"}]},{I:"div",S:[{I:"div",Z:"Codecs"},{I:"span",Z:"{{codecs}}"}]},{I:"div",U:{style:"{{shader_info_style}}"},S:[{I:"div",Z:"Shader Info"},{I:"span",Z:"{{shader_info}}"}]},{I:"div",U:{style:"{{color_style}}"},S:[{I:"div",Z:"Color"},{I:"span",Z:"{{color}}"}]},{I:"div",U:{style:"{{drm_style}}"},S:[{I:"div",Z:"Protected"},{I:"span",Z:"{{drm}}"}]},{I:"div",U:{style:"{{bandwidth_style}}"},S:[{I:"div",Z:"Connection Speed"},{I:"span",S:[{I:"span",Z:"{{bandwidth_chart}}"},{I:"span",
Z:"{{bandwidth_kbps}}"}]}]},{I:"div",U:{style:"{{network_activity_style}}"},S:[{I:"div",Z:"Network Activity"},{I:"span",S:[{I:"span",Z:"{{network_activity_chart}}"},{I:"span",Z:"{{network_activity_bytes}}"}]}]},{I:"div",S:[{I:"div",Z:"Buffer Health"},{I:"span",S:[{I:"span",Z:"{{buffer_health_chart}}"},{I:"span",Z:"{{buffer_health_seconds}}"}]}]},{I:"div",U:{style:"{{live_latency_style}}"},S:[{I:"div",Z:"Live Latency"},{I:"span",S:[{I:"span",Z:"{{live_latency_chart}}"},{I:"span",Z:"{{live_latency_secs}}"}]}]},
{I:"div",U:{style:"{{live_mode_style}}"},S:[{I:"div",Z:"Live Mode"},{I:"span",Z:"{{live_mode}}"}]},{I:"div",U:{style:"{{playback_categories_style}}"},S:[{I:"div",Z:"Playback Categories"},{I:"span",Z:"{{playback_categories}}"}]},{I:"div",S:[{I:"div",Z:"Mystery Text"},{I:"span",Z:"{{debug_info}}"}]},{I:"div",U:{style:"{{release_style}}"},S:[{I:"div",Z:"Player Release"},{I:"span",Z:"{{release_name}}"}]}]}]});b&&(b=this.ga("html5-video-info-panel-close"),this.R(b,"click",this.hide));b=[0,18750,37500,
81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.u=new y0(300,1,150,b,c);g.C(this,this.u);this.ua("bandwidth_chart",this.u);this.C=new y0(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.C);this.ua("live_latency_chart",this.C);this.B=new y0(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.B);this.ua("buffer_health_chart",this.B);this.D=new y0(300,1,150,d,c);g.C(this,this.D);this.ua("network_activity_chart",this.D);this.delay=new g.G(this.na,
500,this);g.C(this,this.delay);this.F=a};
C0=function(a,b,c){g.B.call(this);var d=this;this.eb=this.X=!1;this.K=null;this.ee={};this.ac={};this.Ve=!1;this.md=null;this.ue=!1;this.Ka=!0;this.zf=this.ce=null;this.Af=!0;this.F=this.P=null;this.Rb=this.tb=!1;this.Cf=this.Mb=this.G=this.playlist=null;this.Qa=void 0;this.Ga=0;this.ha=this.rb=this.ba=null;this.config=bfa(b||{});this.webPlayerContextConfig=c;uea();b=this.config.args||{};this.u=new DC(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.C(this,this.u);void 0!==navigator.mediaCapabilities&&
(pA=!0);g.R(this.u.experiments,"html5_disable_subtract_cuepoint_offset")&&(Fy=!0);g.R(this.u.experiments,"html5_log_opus_oboe_killswitch")&&(Eu=!1);g.R(this.u.experiments,"html5_skip_empty_load")&&(wAa=!0);xAa=g.R(this.u.experiments,"html5_ios_force_seek_to_zero_on_stop");yAa=g.R(this.u.experiments,"html5_ios7_force_play_on_stall");zAa=g.R(this.u.experiments,"html5_ios4_seek_above_zero");g.R(this.u.experiments,"html5_mediastream_applies_timestamp_offset")&&(By=!0);g.R(this.u.experiments,"html5_dont_override_default_sample_desc_index")&&
(ku=!0);this.Df=S(mC(this.u)&&!0,b.enablesizebutton);this.zd=S(!1,b.player_wide);this.visibility=new yU;g.C(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.uR(this);g.C(this,this.events);this.da=new g.Sn;g.C(this,this.da);this.ra=new g.Sn;g.C(this,this.ra);this.Aa=new tAa;this.B=new bX(this);g.C(this,this.B);this.template=new t0(this);g.C(this,this.template);this.ea=1;this.Y=this.u.Cf?AAa():{volume:100,muted:this.u.mute};this.J=this.u.C?new aX(this,1):new WW(this,
1);g.C(this,this.J);c={};this.dc=(c.internalvideodatachange=this.xM,c.playbackready=this.zM,c.playbackstarted=this.AM,c.statechange=this.BM,c);this.D=BAa(this);this.de=new g.uR(this);g.C(this,this.de);this.N=new dU(this.u,this.D);this.C=CAa(this);c={};this.Bf=(c.airplayactivechange=this.rM,c.airplayavailabilitychange=this.sM,c.beginseeking=this.LM,c.endseeking=this.mN,c.internalAbandon=this.UJ,c.internalaudioformatchange=this.SJ,c.internalvideodatachange=this.Oa,c.internalvideoformatchange=this.XJ,
c.liveviewshift=this.AN,c.playbackstalledatstart=this.hP,c.progresssync=this.xO,c.onLoadProgress=this.BN,c.SEEK_COMPLETE=this.WJ,c.SEEK_TO=this.XO,c.onVideoProgress=this.Up,c.onLoadedMetadata=this.DN,c.onDompaused=this.jN,c.playbackready=this.mO,c.statechange=this.IE,c.connectionissue=this.YM,c.newelementrequired=this.lE,c.heartbeatparams=this.TJ,c.videoelementevent=this.zP,c.drmoutputrestricted=this.lN,c.requestmediasource=this.KO,c.signatureexpired=this.bP,c.localmediachange=this.VJ,c);this.za=
new g.uR(this);g.C(this,this.za);c=10;g.zC(this.u)&&(c=3);LC(this.u)&&(c=g.Q(this.u.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Bb=new l0(c,function(e){e!==g.Z(d,e.getPlayerType())&&(aB("prefetch"+e.getVideoData().videoId),e.dispose())});
g.C(this,this.Bb);this.Dc=this.Pc=-1;this.Tb=new g.G(this.template.resize,16,this.template);g.C(this,this.Tb);DAa(this);this.ka=new a0(this.B,this.u,this.C);this.Ra=new S_(this.B);g.C(this,this.Ra);jAa(this.u.deviceParams.c);this.events.R(this.B,g.WD("appapi"),this.vM);this.events.R(this.B,g.XD("appapi"),this.wM);this.events.R(this.B,g.WD("appad"),this.PD);this.events.R(this.B,g.XD("appad"),this.PD);this.events.R(this.B,g.XD("applooprange"),this.qy);this.events.R(this.B,"presentingplayerstatechange",
this.Lf);this.events.R(this.B,"resize",this.LO);this.template.fa(oe(document,a));this.events.R(this.B,"offlineslatestatechange",this.dO);this.he=EAa(this,this.template.element);g.C(this,this.he);this.ca("hoffle_save")?this.K=new SW(this.B,B0(this,1),function(){return d.De()}):Hfa()&&cxa();
this.u.Ra&&(g.GX.ux=g.O_);FAa(this);this.N.tick("fs");GAa(this);this.V=null;this.u.Ra&&Gxa(this.D);g.tC(this.D.J.T())&&FX(this.D,"music");g.kC(this.D.J.T())&&FX(this.D,"embed");this.ca("web_player_sentinel_is_uniplayer")||g.Fo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.Ef=HAa(this)};
HAa=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.G||a.C).G.onError("player.exception",g.tB({n:c.name,m:c.message}))}
Do.push(b);return function(){var c=Do.indexOf(b);-1!==c&&Do.splice(c,1)}};
CAa=function(a){var b=new oV(a.u,1,a.N,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.da.W.apply(a.da,[c].concat(g.la(e)))},function(){return a.B.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.u.B?1:IAa(a,Number(g.xt("yt-player-playback-rate"))||1));vs(b,a.dc,a);return b};
gH=function(a){if(!a.md){var b={sr:{subscribeEndpoint:JU,unsubscribeEndpoint:KU,playlistEditEndpoint:MU,webPlayerShareEntityServiceEndpoint:OW,modifyChannelNotificationPreferenceEndpoint:LU,feedbackEndpoint:NW}},c=yva(),d=Aq();FU.u=new FU(b,c,d,M,void 0);a.md=FU.u}return a.md};
BAa=function(a){var b="",c=nAa(a);0===c.indexOf("//")&&(c=a.u.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Fo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new CX(a.B,b);JAa(a,b);return b};
JAa=function(a,b){var c={};c=(c.destroyed=function(){a.u.C&&a.G?a.B.va("onApiChange",a.G.getPlayerType()):a.B.va("onApiChange")},c);
b.C=c};
KAa=function(a,b){var c=a.isVideoInfoVisible();a.ba||(a.ba=new A0(a.B),g.C(a,a.ba),g.DP(a.B,a.ba.element,4));g.DN(a.ba,b);D0(a)&&c!==b&&g.gX(a.D).Qy();c=a.G;b&&c&&c.jb("sfn","1",!0)};
F0=function(a){var b=E0.getTag(!0,!a.u.deviceHasDisplay);a.F=new g.VS(b);g.C(a,a.F);a.G&&vW(a.G,a.F);try{a.u.Qa?(a.rb&&a.events.Eb(a.rb),a.rb=a.events.R(a.F,"volumechange",a.SN)):(a.F.On(a.Y.muted),a.F.setVolume(a.Y.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));a.C.re("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.us(a.za);LAa(a);c=a.template;c.u=b;c.G=!1;c.u.parentNode||g.Ie(c.C,c.u,0);c.K=new g.ig(0,0,0,0);sAa(c);u0(c);g.I(c.u,"video-stream");
g.I(c.u,g.s0.MAIN_VIDEO);b=c.app.T();b.ee&&c.u.setAttribute("data-no-fullscreen","true");b.Rh&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Fr&&c.u&&c.R(c.u,"click",c.u.play,c.u);try{a.F.on()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),a.C.re("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
G0=function(a){if(a.F){a.rb&&(a.events.Eb(a.rb),a.rb=null);g.us(a.za);a.G&&uW(a.G,!0);pAa(a.template);a.F.Ak()&&E0.releaseTag(a.F.Na());if(!a.ca("html5_unset_src_on_remove_killswitch"))try{a.F.du()}catch(b){}a.F=null}};
g.iN=function(a,b){var c=g.Z(a,b);c||(c=B0(a,b),H0(a,c));xX(a,c)};
xX=function(a,b){if(a.G!==b){b.getPlayerType();b.getVideoData();var c=null;a.G&&(c=a.G.getPlayerState(),HX(a.D,3),rX(a,"cuerangesremoved",dE(a.G.ea)||[]),a.Ra&&!b.isGapless()&&a.G.isGapless()&&a.F&&a.F.stopVideo(),uxa(a));H0(a,b);a.G=b;a.F&&vW(b,a.F);vs(b,a.Bf,a);a.Oa("newdata",b,b.getVideoData());c&&!g.KL(c,b.getPlayerState())&&a.IE(new g.KJ(b.getPlayerState(),c));b.ka.isFinished()&&a.Oa("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().Ma)&&c.video)&&a.B.va("onPlaybackQualityChange",c.quality);
rX(a,"cuerangesadded",dE(a.G.ea)||[]);c=b.getPlayerState();g.U(c,2)?MAa(a):g.U(c,8)&&b.playVideo()}};
MAa=function(a){if(!NAa(a)){var b=a.C.B;b&&(b=b.No(),b instanceof Promise&&b["catch"](function(){}));
I0(a,OL(oxa(a)))}};
LAa=function(a){var b=a.F;CB()?a.za.R(b,"webkitpresentationmodechanged",a.UO):BB()&&(a.za.R(b,"enterpictureinpicture",function(){J0(a,!0)}),a.za.R(b,"leavepictureinpicture",function(){J0(a,!1)}));
rC&&(a.za.R(b,"webkitbeginfullscreen",function(){K0(a,3)}),a.za.R(b,"webkitendfullscreen",function(){K0(a,0)}))};
H0=function(a,b){if(b!==a.C){var c=b.getPlayerType();a.ee[c]=b}};
uxa=function(a){var b;if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b&&(G0(a),F0(a));a.G&&(uW(a.G),ws(a.G,a.Bf,a));a.G=null};
g.Z=function(a,b){return b?1===b?a.C:a.ee[b]||null:a.G};
B0=function(a,b){var c=a.N;2===b&&(c=new dU(a.u));return new oV(a.u,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.da.W.apply(a.da,[d].concat(g.la(f)))},function(){return a.B.getVisibilityState()},a.visibility)};
AX=function(a,b){return a.Kc(b)?a.C:b};
L0=function(a,b){var c=a.G;return c&&b===a.C&&a.Kc(b)&&a.Kc(c)?c:b};
OAa=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.D;d.GA();FX(d,"attribution",void 0,!1,!0);FX(d,"embed");FX(d,"fresca",void 0,!1,!0);FX(d,"kids");FX(d,"remote");FX(d,"miniplayer");FX(d,"music");FX(d,"captions",void 0,!0);FX(d,"unplugged");FX(d,"visualizer",void 0,!1,!0);FX(d,"ypc",void 0,!1,!0);FX(d,"ypc_clickwrap",void 0,!1,!0);FX(d,"yto",void 0,!1,!0);FX(d,"webgl",void 0,!1,!0);d.D&&c?g.tX(d.J,"endscreen"):FX(d,"endscreen");d.D&&c?(g.tX(d.J,"annotations_module"),g.tX(d.J,"creatorendscreen")):
(d.Iv(),FX(d,"creatorendscreen",void 0,!0));d.HA();Fxa(d);c&&oG(b)?a.de.R(a.B,"presentingplayerstatechange",a.oO):Exa(a.D);a.B.W("videoready",b)};
M0=function(a){return a.C.getVideoData()};
g.N0=function(a,b){var c=g.Z(a,1);c&&mV(c,b)};
O0=function(a){a=M0(a);a.isValid();return oG(a)};
FAa=function(a){var b=new g.uF(a.u,a.config.args);g.At()&&b.Pe.push("remote");b.isValid()&&(a.C.Ch(b,function(){return a.De()}),b=window,a.ca("html5_androidtv_quic")&&"h5vcc"in b&&"settings"in b.NI&&b.NI.settings.set("QUIC",1),!g.R(a.u.experiments,"html5_delay_initial_loading")&&O0(a)&&(a.u.Df||a.u.Ef)&&vV(a.C))};
GAa=function(a){PAa(a);var b=a.config.args;F0(a);var c=M0(a);a.B.va("onVolumeChange",a.Y);if(b&&BG(b)){var d=IC(a.u);d&&!a.X&&(b.fetch=0);var e=g.qC(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration");e&&!a.X&&(b.fetch=0);P0(a,b);if(d&&!a.X)Q0(a);else if(e&&!a.X)R0(a);else if(!c.isValid())a.playlist.onReady(function(){S0(a)})}xX(a,a.C);
g.U(a.C.getPlayerState(),128)||(b=iha(a.u.deviceHasDisplay),"fmt.noneavailable"===b?a.C.re("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"===b?a.C.re(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&O0(a)&&(a.u.Df||a.u.Ef)?T0(a):g.xt("yt-player-playback-on-reload")?(g.Dq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.u.ie}),Sx(!1),T0(a)):VC(a.u)||QAa(a),a.ca("web_player_inline_botguard")&&(g.KC(a.u)?(qp(function(){U0(a)}),
qp(function(){Sr()})):(U0(a),Sr())))};
U0=function(a){if(a.ca("web_player_botguard_inline_skip_config_killswitch")){var b=g.L("BG_I",null);var c=g.L("BG_IU",null);var d=g.L("BG_P",null)}else{var e=a.getVideoData().botguardData;if(!e)return;b=e.interpreterScript;c=e.interpreterUrl;d=e.program}e=a.getVideoData().Rg||"";a=a.u.cspNonce;e=e?"c1b"in Wp(e):!1;d&&(Pr.wd?0:!ZS||72E5<(0,g.O)()-ZS)&&(b||c)&&(mB("bg_i","player_att"),Pr.initialize(b,c,d,wsa,a,e))};
QAa=function(a){a.B.W("initializingmode");g.V0(a,2);FX(a.D,"remote");g.R(a.u.experiments,"player_cued_miniplayer_module_killswitch")||FX(a.D,"miniplayer")};
T0=function(a){if(g.U(a.C.getPlayerState(),128))return!1;O0(a)&&a.u.Ef&&(E0.hasTags(void 0)&&a.eb?(YW(a,{muted:!1,volume:a.Y.volume},!1),W0(a,!1)):E0.hasTags(void 0)||a.Y.muted||(YW(a,{muted:!0,volume:a.Y.volume},!1),W0(a,!0)));X0(a,1,a.C.getVideoData(),!1);a.B.W("initializingmode");xX(a,a.C);g.V0(a,3);var b;if(!(b=!a.u.Oi)){if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b=b&&a.Ve}b&&(G0(a),F0(a),vW(a.C,a.F));nW(a.C);if(g.U(a.C.getPlayerState(),128))return!1;I0(a,3);return a.Ve=!0};
D0=function(a){a=g.gX(a.D);return!!a&&a.loaded};
pN=function(a,b){1===b&&(a.N.tick("vr"),a.Ga||(a.Ga=et(oB,a.WD,a)),Iwa(a.G),Pua(a.N,a.G.getVideoData(),RAa(a)));var c=a.u;(VC(c)&&c.C||g.AC(c))&&(a.Kc()||a.B.va("onAdStateChange",b))};
SAa=function(a,b){a.G===a.C&&a.G.yl()!==b&&(a.G.setLoop(b),a.B.W("loopchange",b))};
Y0=function(a,b){if(!a.P)return!1;var c=.001*a.P.startTimeMs,d=.001*a.P.endTimeMs;return ee(b,c)||ee(b,d)||b>=c&&b<=d};
IAa=function(a,b){var c=a.B.getAvailablePlaybackRates();b=Number(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};
Z0=function(a,b,c){if(a.Kc(c)){c=c.getVideoData();if(a.V){a=a.V;for(var d=g.q(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Xb===e.Xb){b+=e.Zb/1E3;break}d=b;a=g.q(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Xb===e.Xb)break;var f=e.Zb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Gc/1E3;else break}c=d}else{a=a.ka;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Xb===e.Xb){b+=e.Zb/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Xb===e.Xb)break;f=e.Zb/1E3;if(f<
b)d+=e.durationMs/1E3+f-e.Gc/1E3;else break}c=d}return c}return b};
PAa=function(a){var b=a.template;b.la();var c=b.app.T();c.Oi||b.Gp("tag-pool-enabled");c.G&&b.Gp(g.s0.HOUSE_BRAND);"gvn"===c.playerStyle&&(b.Gp("ytp-gvn"),b.element.style.backgroundColor="transparent");c.za&&(b.V=g.No("yt-dom-content-change",b.resize,b));g.R(c.experiments,"web_player_ios_mweb_resizing")&&b.R(window,"orientationchange",b.resize,b);b.R(window,"resize",b.resize,b);b=a.J;b.element=a.template.element;c=b.element;for(var d in b.B)b.B.hasOwnProperty(d)&&(c[d]=b.B[d]);(d=qs(a.template.element))&&
a.events.R(a.template,d,a.pN);a.events.R(window,"resize",a.MO)};
oxa=function(a,b){return 3===a.getPresentingPlayerType()?g.gX(a.D).Bc:g.Z(a,b).getPlayerState()};
TAa=function(a,b){return 3===a.getPresentingPlayerType()?OL(g.gX(a.D).Bc):2!==b||a.Kc()?a.Pc:a.Dc};
UAa=function(a){$0(a);SAa(a,!1);a.setLoopRange(null);a.ac={};var b=a.N;if(b.u){var c=b.u;c.B={};c.u={}}b.B=!1;a.V?(b=a.V,a=a.C,a.getPlayerType(),$_(b,!1),yX(b),b.u=a):(b=a.ka,a=a.C,1!==a.getPlayerType()&&b0(b,"e.invalidParentVideoPlayerType"),g0(b,!1),zX(b),b.B=a)};
Q0=function(a){var b=VAa();if(b)if(!b.list)a.wt();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.B.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.La().videoId||(b.index=a.playlist.index));FG(a.playlist,b);a.Mb&&a1(a,a.Mb)}else a.Mb=null};
R0=function(a){var b=M0(a).WA;null!=b&&(FG(a.playlist,b),a.playlist.onReady(function(){S0(a)}))};
P0=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.wt,a),g.eg(a.playlist),a.playlist=null);b&&(a.X&&(b.fetch=0),a.playlist=new g.AG(a.u,b),a.playlist.subscribe("error",a.wt,a))};
b1=function(a,b,c,d){b in a.ac||(c=new g.TD(c,d,{id:b,priority:1,namespace:"appad"}),a.C.addCueRange(c),a.ac[b]=c)};
ZAa=function(a,b){if(!(b in a))return!1;var c=a[b];Array.isArray(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=Bv(Cv(d,WAa),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Bv(Cv(d,XAa),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var h=void 0===h?!1:h;f=Bv(Cv(d,YAa),d,h,"Nielsen OCR URL")}g.Ct(d,void 0,f)});
return!0};
g.V0=function(a,b){b!==a.ea&&(2===b&&1===a.getPresentingPlayerType()&&(I0(a,-1),I0(a,5)),a.ea=b,a.B.W("appstatechange",b))};
I0=function(a,b){if(a.G){var c=a.G.getPlayerType();if(2===c&&!a.Kc()){a.Dc!==b&&(a.Dc=b,a.B.va("onAdStateChange",b));return}if(2===c&&a.Kc()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Pc!==b&&(a.Pc=b,a.B.va("onStateChange",b))};
$Aa=function(a,b,c,d,e){return a.V?Uza(a.V,b,c,d,e):aAa(a.ka,b,c,d,e)};
aBa=function(a,b,c){if(a.V){a=a.V;for(var d=void 0,e=null,f=g.q(a.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Xb===b){e=h;break}e?(void 0===d&&(d=e.Gc),Vza(a,e,c,d)):W_(a,"Invalid timelinePlaybackId="+b+" specified")}else{a=a.ka;d=void 0;e=null;f=g.q(a.u);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Xb===b){e=h;break}e?(void 0===d&&(d=e.Gc),hAa(a,e,c,d)):b0(a,"e.InvalidTimelinePlaybackId timelinePlaybackId="+b)}};
bBa=function(a,b,c,d){d=void 0===d?Infinity:d;c=c||a.G.getPlayerType();var e;g.R(a.u.experiments,"html5_gapless_preloading")&&(e=X0(a,c,b,!0));e||(e=B0(a,c),e.Ch(b,function(){return a.De()}));
bAa(a,e,d)};
bAa=function(a,b,c,d){d=void 0===d?0:d;var e=g.Z(a);e&&(AX(a,e).Rj=!0);Oza(a.Ra,b,c,d).then(function(){a.B.va("onQueuedVideoLoaded")},function(){})};
dBa=function(a,b,c,d){var e=c1(c,b.videoId,b.Xb);b.Hn=!0;var f=a.G&&e===c1(a.G.getPlayerType(),a.G.getVideoData().videoId,a.G.getVideoData().Xb)?a.G:B0(a,c);f.Ch(b,function(){return a.De()});
!g.R(a.u.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&LC(a.u)||vV(f,!0);a.Bb.set(e,f,d||3600);d="prefetch"+b.videoId;fB("prefetch",["pfp"],void 0,d);iB({playerInfo:{playbackType:cBa[c]},videoId:b.videoId},d)};
c1=function(a,b,c){return a+"_"+b+"_"+c};
X0=function(a,b,c,d){if(!f){var e=c1(b,c.videoId,c.Xb);var f=a.Bb.get(e);if(!f)return null;a.Bb.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null}if(f===g.Z(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||Pza(a,f);return f};
Pza=function(a,b){var c=b.getPlayerType();b!==g.Z(a,c)&&(1===b.getPlayerType()?(b.getVideoData().autonavState=a.C.getVideoData().autonavState,ws(a.C,a.dc,a),c=a.C.getPlaybackRate(),a.C.dispose(),a.C=b,a.C.setPlaybackRate(c),vs(b,a.dc,a),UAa(a)):(c=g.Z(a,c))&&c.dispose(),a.G.getPlayerType()===b.getPlayerType()?xX(a,b):H0(a,b))};
J0=function(a,b){var c=a.u.Oh&&g.R(a.u.experiments,"html5_block_pip_with_events")||g.R(a.u.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;if(b&&c&&a.getVideoData()&&!a.getVideoData().backgroundable&&a.F&&(c=a.F.Na())){ps(c);return}c=a.visibility;c.pictureInPicture!==b&&(c.pictureInPicture=b,c.Dg())};
i0=function(a,b,c,d){jB("_start",a.N.timerName)||(Oua(a.N),a.N.info("srt",0));var e=X0(a,c||a.G.getPlayerType(),b,!1);e&&cB("pfp",void 0,"prefetch"+b.videoId);if(!e){e=g.Z(a,c);if(!e)return!1;a.Tb.stop();a.cancelPlayback(4,c);e.Ch(b,function(){return a.De()},d)}e===a.C&&(a.u.zd=b.oauthToken);
if(!uV(e))return!1;a.Rb&&(e.N.D=!1,a.Rb=!1);if(e===a.C)return g.V0(a,1),T0(a);nW(e);return!0};
d1=function(a,b,c){c=g.Z(a,c);b&&c===a.C&&(c.getVideoData().nj=!0)};
e1=function(a,b,c){var d=g.Z(a,c);d&&(a.cancelPlayback(4,c),d.Ch(b,function(){return a.De()}),2===c&&a.C&&Lua(a.C.G,b.clientPlaybackNonce,b.Yp||"",b.breakType||0),d===a.C&&(g.V0(a,1),QAa(a)))};
g.f1=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(mC(a.u)||g.MC(a.u))return c=c||{},c.lact=Ap(),c.vis=a.B.getVisibilityState(),a.B.va("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.N;c.u&&(f=c.u,f.B={},f.u={});c.B=!1;a.N.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};
eBa=function(a,b,c,d,e){b=Zwa(b,c,d,e);(c=g.qC(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration"))&&!a.X&&(b.fetch=0);P0(a,b);if(c&&!a.X)c=M0(a),xxa(c,b).then(function(){R0(a)});
else a.playlist.onReady(function(){S0(a)})};
S0=function(a){var b=a.playlist.La();if(b){var c=a.getVideoData();c.Fk||!a.Ka?(c=c.nj,b=i0(a,b),c&&d1(a,b)):e1(a,b)}a.B.va("onPlaylistUpdate")};
g.g1=function(a){if(a.B.isMutedByMutedAutoplay())return!1;if(3===a.getPresentingPlayerType())return!0;IC(a.u)&&!a.X&&Q0(a);return!(!a.playlist||!a.playlist.hasNext())};
NAa=function(a){if(a.playlist&&g.qC(a.u)&&g.g1(a)){var b=g.R(a.u.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
a1=function(a,b){var c=g.Na(b);if(c){var d=VAa();d&&d.list&&c();a.Mb=null}else a.Mb=b};
VAa=function(){var a=g.Na("yt.www.watch.lists.getState");return a?a():null};
g.fBa=function(a){if(!a.F||!a.F.Ak())return null;var b=a.F;if(a.ha){var c=a.ha;c.C?c.C!==b&&(g.q0(c),c.C=b,c.B=null):c.C=b}else a.ha=mAa(a.B,b),a.ha&&g.C(a,a.ha);return a.ha};
gBa=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=SD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=SD.AD_MARKER:(b.style=SD.TIME_MARKER,b.color=e),b.visible=!0);pxa(a,[new g.TD(1E3*c,1E3*d,b)],1);return!0};
pxa=function(a,b,c){var d=g.Z(a,c);d&&(d=d.ea,d.ph(),aE(d.u,b),d.C=NaN,d.ph(),c&&a.getPresentingPlayerType()!==c||rX(a,"cuerangesadded",b))};
g.oN=function(a,b,c){var d=g.Z(a,c);d&&(cE(d.ea,b),c&&a.getPresentingPlayerType()!==c||rX(a,"cuerangesremoved",b))};
RAa=function(a){var b=(0,g.O)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
YW=function(a,b,c){a.u.V&&(a.Y=b,b.muted||W0(a,!1),c&&a.u.Cf&&!a.u.Qa&&hBa({volume:Math.floor(b.volume),muted:b.muted}),iBa(a),c=g.AB&&a.F&&!a.F.Ee(),!a.u.Qa||c)&&(b=g.Zb(b),a.u.Cf||(b.unstorable=!0),a.B.va("onVolumeChange",b))};
iBa=function(a){var b=a.getVideoData();if(!b.bl){b=a.u.Qa?1:qG(b);var c=a.F;c.On(a.Y.muted);c.setVolume(a.Y.volume*b/100)}};
W0=function(a,b){b!==a.eb&&(a.eb=b,a.B.va("onMutedAutoplayChange",b))};
h1=function(a){var b=os(!0);return b&&(b===a.template.element||a.F&&b===a.F.Na())?b:null};
kBa=function(a,b){var c=window.screen&&window.screen.orientation;if((g.R(a.u.experiments,"lock_fullscreen2")||a.u.ca("embeds_enable_mobile_custom_controls")&&a.u.u)&&c&&c.lock&&(!g.AB||!jBa))if(b){var d=0===c.type.indexOf("portrait"),e=a.template.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.tb||f!==d){c=c.lock(f?"portrait":"landscape");if(null!=c)c["catch"](g.Oa);a.tb=!0}}else a.tb&&(a.tb=!1,c.unlock())};
K0=function(a,b){var c=!!b,d=!!a.visibility.fullscreen!==c,e=a.visibility;e.fullscreen!==b&&(e.fullscreen=b,e.Dg());a.ca("html5_media_fullscreen")&&!c&&a.F&&h1(a)===a.F.Na()&&a.F.No();a.template.resize();d&&a.N.tick("fsc");d&&(a.B.W("fullscreentoggled",c),d=M0(a),c={fullscreen:c,videoId:d.oz||d.videoId,time:a.getCurrentTime()},a.B.getPlaylistId()&&(c.listId=a.B.getPlaylistId()),a.B.va("onFullscreenChange",c))};
rX=function(a,b,c){a.B.W(b,c);var d=g.zC(a.u)||g.AC(a.u)||NC(a.u);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.B.va(e,c)}};
i1=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.Z(a,e);if(!h||(2!==h.getPlayerType()||a.Kc(h)||f)&&!g.gG(h.getVideoData()))3===a.getPresentingPlayerType()?g.gX(a.D).yi("control_seek",b,c):(h===a.C&&a.P&&!Y0(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
lBa=function(a,b,c,d){if(!a.Rb){c&&(G0(a),F0(a));a.Rb=!0;c=g.Z(a);c.N.D=!0;c.jb("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?NF(e)&&g.MC(a.u)&&(f.live_utc_start=c.Ce(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Tf&&(f.vvt=e.Tf);e.Nh&&(f.vss_credentials_token=e.Nh,f.vss_credentials_token_type=e.pg);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.Ei+1;f.reload_reason=b;e.Xn&&(f.unplugged_partner_opt_out=
e.Xn);e.ne&&(f.ypc_is_premiere_trailer=e.ne);a.loadVideoByPlayerVars(f,void 0,d)}};
mBa=function(a,b){a.B.va("onAutonavChangeRequest",1!==b)};
j1=function(a,b){M0(a).autonavState=b;g.wt("yt-player-autonavstate",b);a.B.W("autonavchange",b)};
nBa=function(a){var b=a.getVideoData().bl,c=a.u.Dc,d=a.F;b||c?d.Lv():(d.Nv(),YW(a,a.Y))};
EAa=function(a,b){return g.R(a.u.experiments,"html5_enable_embedded_player_visibility_signals")&&a.u.B?new n0(b,a.u.ca("embeds_enable_intersection_observer_v2")):null};
$0=function(a){(a=IX(a.D))&&a.created&&a.destroy()};
oBa=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]=tg(a,d);b.hidden=!!a.hidden};
DAa=function(a){var b=a.u,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.R(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.SC&&d&&b.B?kk()||b.ha?(g.Dq("embedsStorageAccessNotChecked",{isIosWebview:kk(),isPemPlayer:b.ha}),a.Qa=!1):c.hasStorageAccess().then(function(e){g.Dq("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Qa=!e},function(e){g.Dq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Fo(Error("Embeds ITP Error: "+e));a.Qa=!1}):a.Qa=!1};
k1=function(a,b){var c=void 0;if(g.zC(a.u)&&dq(b)&&cq(b)){var d=a.getVideoData().Ze();d&&(c={Authorization:"Bearer "+d})}g.Ct(b,void 0,void 0,c)};
l1=function(a,b){b.forEach(function(c){k1(a,c)})};
nAa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
pBa=function(a){a=(a=lxa(a.D))?a.chrome:null;return a?(a=a.AB())?a.P:null:null};
qBa=function(a,b,c){for(var d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a[c+e]=b[e];return a};
g.m1=function(a){if(!rBa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(sBa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
tBa=function(){if(!g.ye)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.n1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;mg();a=dd(a,null);return b.parseFromString(g.cd(a),"application/xml")}if(uBa){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.o1=function(a){g.B.call(this);this.B=a;this.u={}};
vBa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)vBa(a,b,c[h],d,e,f);else{b=Ul(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.u[b.key]=b}return a};
g.wBa=function(a){g.Ib(a.u,function(b,c){this.u.hasOwnProperty(c)&&dm(b)},a);
a.u={}};
p1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
q1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
ea=aaa(this);ha("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.u=e;fa(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.u};
var d=0;return b});
ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},xBa=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=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),r1;
if("function"==typeof Object.setPrototypeOf)r1=Object.setPrototypeOf;else{var s1;a:{var yBa={a:!0},zBa={};try{zBa.__proto__=yBa;s1=zBa.a;break a}catch(a){}s1=!1}r1=s1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=r1;
oa.prototype.N=function(a){this.B=a};
oa.prototype["return"]=function(a){this.C={"return":a};this.u=this.F};
oa.prototype.Kd=function(a){this.u=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return xBa});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.Ha=0;this.Lk=void 0;this.u=[];this.F=!1;var l=this.B();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.u=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.B=function(h){if(null==this.u){this.u=[];var l=this;this.C(function(){l.F()})}this.u.push(h)};
var e=ea.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.F=function(){for(;this.u&&this.u.length;){var h=this.u;this.u=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.u=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.B=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.V),reject:h(this.C)}};
b.prototype.V=function(h){if(h===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Y(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.P(h):this.D(h)}};
b.prototype.P=function(h){var l=void 0;try{l=h.then}catch(m){this.C(m);return}"function"==typeof l?this.ba(l,h):this.D(h)};
b.prototype.C=function(h){this.G(2,h)};
b.prototype.D=function(h){this.G(1,h)};
b.prototype.G=function(h,l){if(0!=this.Ha)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Ha);this.Ha=h;this.Lk=l;2===this.Ha&&this.X();this.K()};
b.prototype.X=function(){var h=this;e(function(){if(h.N()){var l=ea.console;"undefined"!==typeof l&&l.error(h.Lk)}},1)};
b.prototype.N=function(){if(this.F)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.Lk;return m(h)};
b.prototype.K=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.B(this.u[h]);this.u=null}};
var f=new c;b.prototype.Y=function(h){var l=this.B();h.ir(l.resolve,l.reject)};
b.prototype.ba=function(h,l){var m=this.B();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.ir(m(h,n),m(l,p));return r};
b.prototype["catch"]=function(h){return this.then(void 0,h)};
b.prototype.ir=function(h,l){function m(){switch(n.Ha){case 1:h(n.Lk);break;case 2:l(n.Lk);break;default:throw Error("Unexpected state: "+n.Ha);}}
var n=this;null==this.u?f.B(m):this.u.push(m);this.F=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.q(h),p=n.next();!p.done;p=n.next())d(p.value).ir(l,m)})};
b.all=function(h){var l=g.q(h),m=l.next();return m.done?d([]):new b(function(n,p){function r(x){return function(y){t[x]=y;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).ir(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(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}});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).AG}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,h=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&h<e;)if(d[h++]!=b[l++])return!1;return l>=f}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(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}});
ha("Object.setPrototypeOf",function(a){return a||na});
var ABa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ea(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||ABa});
ha("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}});
ha("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ha("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).UB}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("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 h=d[f];if(h===b||Object.is(h,b))return!0}return!1}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push([d,b[d]]);return c}});
ha("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}});
ha("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}});
ha("Int8Array.prototype.fill",Ga);ha("Uint8Array.prototype.fill",Ga);ha("Uint8ClampedArray.prototype.fill",Ga);ha("Int16Array.prototype.fill",Ga);ha("Uint16Array.prototype.fill",Ga);ha("Int32Array.prototype.fill",Ga);ha("Uint32Array.prototype.fill",Ga);ha("Float32Array.prototype.fill",Ga);ha("Float64Array.prototype.fill",Ga);ha("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 h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ha("WeakMap",function(a){function b(m){this.u=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ea(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(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(r){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ea(m,h))throw Error("WeakMap key fail: "+m);m[h][this.u]=n;return this};
b.prototype.get=function(m){return d(m)&&Ea(m,h)?m[h][this.u]:void 0};
b.prototype.has=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)};
b.prototype["delete"]=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)?delete m[h][this.u]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.u;return ia(function(){if(n){for(;n.head!=l.u;)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=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.B[n];if(p&&Ea(l.B,n))for(var r=0;r<p.length;r++){var t=p[r];if(m!==m&&t.key!==t.key||m===t.key)return{id:n,list:p,index:r,lf:t}}return{id:n,list:p,index:-1,lf:void 0}}
function e(l){this.B={};this.u=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(r){return!1}}())return a;
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.B[n.id]=[]);n.lf?n.lf.value=m:(n.lf={next:this.u,previous:this.u.previous,head:this.u,key:l,value:m},n.list.push(n.lf),this.u.previous.next=n.lf,this.u.previous=n.lf,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.lf&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.B[l.id],l.lf.previous.next=l.lf.next,l.lf.next.previous=l.lf.previous,l.lf.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.B={};this.u=this.u.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).lf};
e.prototype.get=function(l){return(l=d(this,l).lf)&&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 h=0;return e});
ha("Set",function(a){function b(c){this.u=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.u.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(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.u.set(c,c);this.size=this.u.size;return this};
b.prototype["delete"]=function(c){c=this.u["delete"](c);this.size=this.u.size;return c};
b.prototype.clear=function(){this.u.clear();this.size=0};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype.entries=function(){return this.u.entries()};
b.prototype.values=function(){return this.u.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.u.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Object.fromEntries",function(a){return a?a:function(b){var c={};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}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("WeakSet",function(a){function b(c){this.u=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.u.set(c,!0);return this};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype["delete"]=function(c){return this.u["delete"](c)};
return b});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart"),e=b-d.length,f=void 0!==c?String(c):" ";return(0<e&&f?f.repeat(Math.ceil(e/f.length)).substring(0,e):"")+d}});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ha("Int8Array.prototype.copyWithin",Ha);ha("Uint8Array.prototype.copyWithin",Ha);ha("Uint8ClampedArray.prototype.copyWithin",Ha);ha("Int16Array.prototype.copyWithin",Ha);ha("Uint16Array.prototype.copyWithin",Ha);ha("Int32Array.prototype.copyWithin",Ha);ha("Uint32Array.prototype.copyWithin",Ha);ha("Float32Array.prototype.copyWithin",Ha);ha("Float64Array.prototype.copyWithin",Ha);g.t1=g.t1||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;La=null;Ta="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ya($a,Error);$a.prototype.name="CustomError";var me;g.Ya(ab,$a);ab.prototype.name="AssertionError";var lb,ei;lb=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.BBa=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.Fb=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.Ke=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,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Pc=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,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
g.kh=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Fb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ei=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.jh=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 ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var CBa={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};var dc;hc.prototype.lj=!0;hc.prototype.yg=function(){return this.u};
var gc={},fc={};var Jda,Ida,Hda,Kda;Jda=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.DBa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.EBa=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.Jn=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]");Ida=/^http:\/\/.*/;Hda=/\s+/;Kda=/[\d\u06f0-\u06f9]/;mc.prototype.lj=!0;mc.prototype.yg=function(){return this.B.toString()};
mc.prototype.Iw=!0;mc.prototype.u=function(){return 1};
var vaa=/%{(\w+)}/g,uaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,lc={};var Bc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tc=/&/g,uc=/</g,vc=/>/g,wc=/"/g,xc=/'/g,yc=/\x00/g,xaa=/[\x00&<>"']/;g.Fc.prototype.lj=!0;g.Fc.prototype.yg=function(){return this.B.toString()};
g.Fc.prototype.Iw=!0;g.Fc.prototype.u=function(){return 1};
var zaa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,yaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ic=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ec={},Jc=new g.Fc("about:invalid#zClosurez",Ec);Nc.prototype.lj=!0;Nc.prototype.yg=function(){return this.u};
var Mc={},Rc=new Nc("",Mc),Baa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Uc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Tc=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 FBa=g.v.navigator;if(FBa){var GBa=FBa.userAgent;if(GBa){g.Vc=GBa;break a}}g.Vc=""};bd.prototype.Iw=!0;bd.prototype.u=function(){return this.C};
bd.prototype.lj=!0;bd.prototype.yg=function(){return this.B.toString()};
var HBa=/^[a-zA-Z0-9-]+$/,IBa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},JBa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ad={},fd=new bd(g.v.trustedTypes&&g.v.trustedTypes.emptyHTML||"",0,ad);var Jaa=db(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.cd(fd);return!b.parentElement});var Kaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var wd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Od=/#|$/,Maa=/[?&]($|#)/;Ud[" "]=g.Oa;var qg,GD,jBa,KBa,LBa,MBa,hC,iC,u1;g.rg=Wc("Opera");g.ye=Wc("Trident")||Wc("MSIE");g.or=Wc("Edge");g.RC=g.or||g.ye;qg=Wc("Gecko")&&!(Ac(g.Vc,"WebKit")&&!Wc("Edge"))&&!(Wc("Trident")||Wc("MSIE"))&&!Wc("Edge");g.Ae=Ac(g.Vc,"WebKit")&&!Wc("Edge");GD=Wc("Macintosh");jBa=Wc("Windows");g.lk=Wc("Android");KBa=Sd();LBa=Wc("iPad");MBa=Wc("iPod");hC=Td();iC=Ac(g.Vc,"KaiOS");
a:{var v1="",w1=function(){var a=g.Vc;if(qg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.or)return/Edge\/([\d\.]+)/.exec(a);if(g.ye)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ae)return/WebKit\/(\S+)/.exec(a);if(g.rg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
w1&&(v1=w1?w1[1]:"");if(g.ye){var x1=Xd();if(null!=x1&&x1>parseFloat(v1)){u1=String(x1);break a}}u1=v1}var Yd=u1,Oaa={},y1;if(g.v.document&&g.ye){var NBa=Xd();y1=NBa?NBa:parseInt(Yd,10)||void 0}else y1=void 0;var Paa=y1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Qaa=!g.ye||g.$d(9),Raa=!qg&&!g.ye||g.ye&&g.$d(9)||qg&&g.Zd("1.9.1");g.ye&&g.Zd("9");var Taa=g.ye||g.rg||g.Ae;g.k=g.fe.prototype;g.k.clone=function(){return new g.fe(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.he.prototype;g.k.clone=function(){return new g.he(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!je(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};var ue={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.k=ke.prototype;g.k.Na=function(a){return oe(this.u,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.u).getElementsByTagName(String(a))};
g.k.ga=function(a){return g.re(a,this.u)};
g.k.createElement=function(a){return Ce(this.u,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){De(le(a),a,arguments,1)};
g.k.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.k.removeNode=g.Je;g.k.contains=g.Me;g.xf=0;g.yf=0;Ye.prototype.clone=function(){return $e(this.B,this.D,this.C-this.D)};
Ye.prototype.clear=function(){this.B=null;this.u=this.C=this.D=0;this.F=!1};
Ye.prototype.reset=function(){this.u=this.D};
Ye.prototype.advance=function(a){this.u+=a};
var Ze=[];df.prototype.reset=function(){this.u.reset();this.B=this.C=-1};
df.prototype.advance=function(a){this.u.advance(a)};lf.prototype.length=function(){return this.u.length};
lf.prototype.end=function(){var a=this.u;this.u=[];return a};var rC,vG;g.SB=Xc();rC=Sd()||Wc("iPod");vG=Wc("iPad");g.jC=Wc("Android")&&!(Zc()||Xc()||Wc("Opera")||Wc("Silk"));g.AB=Zc();g.SC=$c()&&!Td();var pf={},tf=null;g.uf.prototype.reset=function(){this.C=[];this.u.end();this.B=0};var Cf;Cf="function"==typeof Uint8Array;g.Df=[];g.Bf.prototype.toString=function(){return this.vf.toString()};
g.Bf.prototype.clone=function(){return new this.constructor(Mf(this.vf))};var yi;yi=["av.key","js","unreleased"].slice(-1)[0];var Ig=document,Zg=window;var Of={};g.k=Qf.prototype;g.k.isEnabled=function(){return navigator.cookieEnabled};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.n4;d=c.tQ||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.DC}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);this.u.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.u.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Bc(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{DC:0,path:b,domain:c});return d};
g.k.wg=function(){return Rf(this).keys};
g.k.qf=function(){return Rf(this).values};
g.k.isEmpty=function(){return!this.u.cookie};
g.k.clear=function(){for(var a=Rf(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var uq=new Qf("undefined"==typeof document?null:document);var Yaa=db(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 OBa={oV:["BC","AD"],nV:["Before Christ","Anno Domini"],d_:"JFMAMJJASOND".split(""),I1:"JFMAMJJASOND".split(""),DZ:"January February March April May June July August September October November December".split(" "),H1:"January February March April May June July August September October November December".split(" "),g1:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),K1:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),t3:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
M1:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),u1:"Sun Mon Tue Wed Thu Fri Sat".split(" "),L1:"Sun Mon Tue Wed Thu Fri Sat".split(" "),e_:"SMTWTFS".split(""),J1:"SMTWTFS".split(""),h1:["Q1","Q2","Q3","Q4"],v0:["1st quarter","2nd quarter","3rd quarter","4th quarter"],lS:["AM","PM"],NU:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],d2:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],OU:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],dH:6,u3:[5,6],eH:5},z1=OBa;
z1=OBa;g.k=g.Yf.prototype;g.k.cB=z1.dH;g.k.eB=z1.eH;g.k.clone=function(){var a=new g.Yf(this.date);a.cB=this.cB;a.eB=this.eB;return a};
g.k.getFullYear=function(){return this.date.getFullYear()};
g.k.getMonth=function(){return this.date.getMonth()};
g.k.getDate=function(){return this.date.getDate()};
g.k.getTime=function(){return this.date.getTime()};
g.k.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.k.add=function(a){if(a.B||a.u){var b=this.getMonth()+a.u+12*a.B,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()),Xf(this,a.getDate()))};
g.k.toString=function(){return[this.getFullYear(),od(this.getMonth()+1),od(this.getDate())].join("")+""};
g.k.valueOf=function(){return this.date.valueOf()};var aba=/https?:\/\/[^\/]+/,Zaa={ZR:"allow-forms",aS:"allow-modals",bS:"allow-orientation-lock",cS:"allow-pointer-lock",dS:"allow-popups",eS:"allow-popups-to-escape-sandbox",fS:"allow-presentation",gS:"allow-same-origin",hS:"allow-scripts",iS:"allow-top-navigation",jS:"allow-top-navigation-by-user-activation"},dba=db(function(){return $aa()});g.B.prototype.Rd=!1;g.B.prototype.la=function(){return this.Rd};
g.B.prototype.dispose=function(){this.Rd||(this.Rd=!0,this.aa())};
g.B.prototype.aa=function(){if(this.Zl)for(;this.Zl.length;)this.Zl.shift()()};g.k=gg.prototype;g.k.le=function(){return this.right-this.left};
g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new gg(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof gg?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.k.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.k.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.k.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.k.scale=function(a,b){var c="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.k=g.ig.prototype;g.k.clone=function(){return new g.ig(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.fe?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.k.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.k.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.k.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};
g.k.scale=function(a,b){var c="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var kg={};g.u(lg,fba);lg.prototype.toString=function(){return this.u};new lg("about:blank",kg);new lg("about:invalid#zTSz",kg);var mg=g.Oa;var pg={};var Gg=!!window.google_async_iframe_id,Hg=Gg&&window.parent||window;var Rba={NONE:0,fV:1};Mg.prototype.isVisible=function(){return this.Kl?.3<=this.kc:.5<=this.kc};var th={fT:0,vV:1},sh={NONE:0,zW:1,SV:2};Ng.prototype.getValue=function(){return this.B};
g.u(Og,Ng);Og.prototype.setValue=function(a){if(null!==this.B||!g.Tb(this.C,a))return!1;this.B=a;return!0};
g.u(Pg,Ng);Pg.prototype.setValue=function(a){if(null!==this.B||"number"!==typeof a)return!1;this.B=a;return!0};
g.u(Qg,Ng);Qg.prototype.setValue=function(a){if(null!==this.B||"string"!==typeof a)return!1;this.B=a;return!0};Rg.prototype.disable=function(){this.C=!1};
Rg.prototype.enable=function(){this.C=!0};
Rg.prototype.isEnabled=function(){return this.C};
Rg.prototype.reset=function(){this.u={};this.C=!0;this.B={}};var Sba=!g.ye&&!$c();Wg.prototype.now=function(){return 0};
Wg.prototype.B=function(){return 0};
Wg.prototype.C=function(){return 0};
Wg.prototype.u=function(){return 0};g.u(Yg,Wg);Yg.prototype.now=function(){return Xg()&&Zg.performance.now?Zg.performance.now():Wg.prototype.now.call(this)};
Yg.prototype.B=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.totalJSHeapSize||0:Wg.prototype.B.call(this)};
Yg.prototype.C=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.usedJSHeapSize||0:Wg.prototype.C.call(this)};
Yg.prototype.u=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.jsHeapSizeLimit||0:Wg.prototype.u.call(this)};ah.prototype.isVisible=function(){return 1===$g(Ig)};var mba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;eh.prototype.qd=function(a,b,c,d){a=a+"//"+b+c;var e=oba(this)-c.length-d.length;if(0>e)return"";this.u.sort(function(p,r){return p-r});
c=null;b="";for(var f=0;f<this.u.length;f++)for(var h=this.u[f],l=this.B[h],m=0;m<l.length;m++){if(!e){c=null==c?h:c;break}var n=hh(l[m],this.C,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.C;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};lh.prototype.setInterval=function(a,b){return Zg.setInterval(a,b)};
lh.prototype.clearInterval=function(a){Zg.clearInterval(a)};
lh.prototype.setTimeout=function(a,b){return Zg.setTimeout(a,b)};
lh.prototype.clearTimeout=function(a){Zg.clearTimeout(a)};
Pa(lh);ph.prototype.getContext=function(){if(!this.u){if(!Zg)throw Error("Context has not been set and window is undefined.");this.u=lh.getInstance()}return this.u};
Pa(ph);g.Ya(qh,g.Bf);var wba={h0:1,vH:2,CZ:3};oc(jc(g.kc("https://pagead2.googlesyndication.com/pagead/osd.js")));uh.prototype.Yx=function(a){if("string"===typeof a&&0!=a.length){var b=this.ub;if(b.C){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.u[e])&&e.setValue(d)}}}};
Pa(uh);var A1=null;var Ah=g.v.performance,PBa=!!(Ah&&Ah.mark&&Ah.measure&&Ah.clearMarks),yh=db(function(){var a;if(a=PBa){var b;if(null===A1){A1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(A1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=A1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
zh.prototype.disable=function(){this.u=!1;this.events!=this.B.google_js_reporting_queue&&(yh()&&g.Fb(this.events,Bh),this.events.length=0)};
zh.prototype.start=function(a,b){if(!this.u)return null;var c=new yba(a,b),d="goog_"+c.label+"_"+c.uniqueId+"_start";Ah&&yh()&&Ah.mark(d);return c};
zh.prototype.end=function(a){if(this.u&&"number"===typeof a.value){a.duration=(xh()||wh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";Ah&&yh()&&Ah.mark(b);!this.u||2048<this.events.length||this.events.push(a)}};Eh.prototype.B=function(a,b,c,d,e){e=e||this.D;try{var f=new eh;f.u.push(1);f.B[1]=fh("context",a);b.error&&b.meta&&b.id||(b=new Fh(Jh(b)));if(b.msg){var h=b.msg.substring(0,512);f.u.push(2);f.B[2]=fh("msg",h)}var l=b.meta||{};if(this.u)try{this.u(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.u.push(3);f.B[3]=b;var m=dh();if(m.B){var n=m.B.url||"";f.u.push(4);f.B[4]=fh("top",n)}var p=[{url:m.u.url||""},{url:m.u.url?zd(m.u.url):""}];f.u.push(5);f.B[5]=p;vh(this.F,e,f,!1,c)}catch(r){try{vh(this.F,e,
{context:"ecmserr",rctx:a,msg:Jh(r),url:m&&m.u.url},!1,c)}catch(t){}}return this.C};
g.u(Fh,Sf);var Dh,Lh,Ch=new zh;(function(){Dh=new xba;Lh=new Eh;var a=Jg();a&&a.document&&("complete"==a.document.readyState?Nh():Ch.u&&Uf(a,"load",function(){Nh()}))})();var Aba=Date.now(),Uh=-1,Sh=-1,Cj,Vh=-1,Th=!1;Xh.prototype.Na=function(){return this.K};var ml={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yj={qH:"start",fH:"firstquartile",mH:"midpoint",sH:"thirdquartile",YG:"complete",lH:"metric",PAUSE:"pause",oH:"resume",pH:"skip",uH:"viewable_impression",nH:"mute",tH:"unmute",gH:"fullscreen",cH:"exitfullscreen",XG:"bufferstart",WG:"bufferfinish",hH:"fully_viewable_audible_half_duration_impression",kH:"measurable_impression",UG:"abandon",bH:"engagedview",iH:"impression",ZG:"creativeview",jH:"loaded",o0:"progress",CLOSE:"close",
WS:"collapse",u_:"overlay_resize",v_:"overlay_unmeasurable_impression",w_:"overlay_unviewable_impression",y_:"overlay_viewable_immediate_impression",x_:"overlay_viewable_end_of_session_impression",aH:"custom_metric_viewable",q_:"verification_debug"},eda="start firstquartile midpoint thirdquartile resume loaded".split(" "),fda=["start","firstquartile","midpoint","thirdquartile"],hca=["abandon"],Gk={UNKNOWN:-1,qH:0,fH:1,mH:2,sH:3,YG:4,lH:5,PAUSE:6,oH:7,pH:8,uH:9,nH:10,tH:11,gH:12,cH:13,hH:14,kH:15,
UG:16,bH:17,iH:18,ZG:19,jH:20,aH:21,XG:22,WG:23};var Cba={NR:"addEventListener",UV:"getMaxSize",VV:"getScreenSize",WV:"getState",XV:"getVersion",B0:"removeEventListener",IW:"isViewable"};if(Ig&&Ig.URL){var QBa,cg=Ig.URL;QBa=!!cg&&0<cba().length;Lh.C=!QBa};fi.prototype.update=function(a){a&&a.document&&(this.K=Lg(!1,a,this.isMobileDevice),this.u=Lg(!0,a,this.isMobileDevice),hi(this,a),gi(this,a))};
Pa(fi);ji.prototype.cancel=function(){mh().clearTimeout(this.u);this.u=null};
ji.prototype.schedule=function(){var a=this;this.u=mh().setTimeout(rh(uh.getInstance().u.u,Ph(143,function(){a.B++;a.C.IC()})),Bba())};g.k=ki.prototype;g.k.XC=function(){return this.vt()};
g.k.vt=function(){return!1};
g.k.initialize=function(){return this.Gd=!0};
g.k.Rm=function(){return this.u.Y};
g.k.ip=function(){return this.u.P};
g.k.getName=function(){return this.u.ha};
g.k.ek=function(){return this.u.rB()};
g.k.rB=function(){return{}};
g.k.gi=function(){return this.u.K};
g.k.VC=function(){var a=fi.getInstance();a.u=Lg(!0,this.kf,a.isMobileDevice)};
g.k.WC=function(){gi(fi.getInstance(),this.kf)};
g.k.PJ=function(){hi(fi.getInstance(),this.kf)};
g.k.CB=function(){return this.C.u};
g.k.IC=function(){};
g.k.isActive=function(){return this.u.F};
g.k.Wm=function(a){var b=this.u,c=a.gi();this.u=c>=this.K?a:this;b!==this.u?(this.F=this.u.F,li(this)):this.F!==this.u.F&&(this.F=this.u.F,li(this))};
g.k.nk=function(a){if(a.B===this.u){var b;if(!(b=this.da)){b=this.C;var c=this.N;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.u,c=a.u,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.C=a;b&&qi(this)}};
g.k.Fi=function(){return this.N};
g.k.dispose=function(){this.Rd=!0};
g.k.la=function(){return this.Rd};g.k=ri.prototype;g.k.rx=function(){return!0};
g.k.Bp=function(){};
g.k.dispose=function(){if(!this.la()){var a=this.B;g.rb(a.D,this);a.N&&this.Fi()&&pi(a);this.Bp();this.Rd=!0}};
g.k.la=function(){return this.Rd};
g.k.ek=function(){return this.B.ek()};
g.k.gi=function(){return this.B.gi()};
g.k.Rm=function(){return this.B.Rm()};
g.k.ip=function(){return this.B.ip()};
g.k.Wm=function(){};
g.k.nk=function(){this.Vj()};
g.k.Fi=function(){return this.X};g.k=si.prototype;g.k.gi=function(){return this.u.gi()};
g.k.Rm=function(){return this.u.Rm()};
g.k.ip=function(){return this.u.ip()};
g.k.create=function(a,b,c){var d=null;this.u&&(d=this.ht(a,b,c),ni(this.u,d));return d};
g.k.JC=function(){return this.xp()};
g.k.xp=function(){return!1};
g.k.init=function(a){return this.u.initialize()?(ni(this.u,this),this.D=a,!0):!1};
g.k.Wm=function(a){0==a.gi()&&this.D(a.Rm(),this)};
g.k.nk=function(){};
g.k.Fi=function(){return!1};
g.k.dispose=function(){this.Rd=!0};
g.k.la=function(){return this.Rd};
g.k.ek=function(){return{}};vi.prototype.add=function(a,b,c){++this.C;var d=this.C/4096;this.u.push(Gba(new ti(a,b,c),d));this.B=!0;return this};zi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=xi(this.u);0<b.length&&(a+="?"+b);return a};Pa(Ci);Di.prototype.update=function(a,b,c){a&&(this.u+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Lba=[1,.75,.5,.3,0];Ei.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.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.u[e].update(f&&l,d,!f||h)}};Si.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.kc):b.kc;this.X=Math.max(this.X,b.kc);this.Y=-1!=this.Y?Math.min(this.Y,b.Sf):b.Sf;this.ea=Math.max(this.ea,b.Sf);this.Ga.update(b.Sf,c.Sf,b.u,a,d);this.B.update(b.kc,c.kc,b.u,a,d);c=d||c.Kl!=b.Kl?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.u;this.ka.update(c,a,b)};
Si.prototype.Ml=function(){return this.ka.C>=this.za};var RBa=new gg(0,0,0,0);var Qba=new gg(0,0,0,0);g.u(Wi,g.B);g.k=Wi.prototype;g.k.aa=function(){this.Gf.u&&(this.pl.Ix&&(Vf(this.Gf.u,"mouseover",this.pl.Ix),this.pl.Ix=null),this.pl.Gx&&(Vf(this.Gf.u,"mouseout",this.pl.Gx),this.pl.Gx=null));this.wq&&this.wq.dispose();this.qc&&this.qc.dispose();delete this.Xs;delete this.lx;delete this.nG;delete this.Gf.xk;delete this.Gf.u;delete this.pl;delete this.wq;delete this.qc;delete this.ub;g.B.prototype.aa.call(this)};
g.k.hk=function(){return this.qc?this.qc.u:this.position};
g.k.Yx=function(a){uh.getInstance().Yx(a)};
g.k.Fi=function(){return!1};
g.k.Xr=function(){return new Si};
g.k.If=function(){return this.Xs};
g.k.wB=function(a){return Zi(this,a,1E4)};
g.k.na=function(a,b,c,d,e,f,h){this.fn||(this.Ar&&(a=this.hv(a,c,e,h),d=d&&this.pe.kc>=(this.Kl()?.3:.5),this.gz(f,a,d),this.lastUpdateTime=b,0<a.kc&&-1===this.aG&&(this.aG=b),-1==this.bG&&this.Ml()&&(this.bG=b),-2==this.kx&&(this.kx=Ui(this.hk())?a.kc:-1),this.pe=a),this.lx(this))};
g.k.gz=function(a,b,c){this.If().update(a,b,this.pe,c)};
g.k.nw=function(){return new Mg};
g.k.hv=function(a,b,c,d){c=this.nw();c.u=b;b=mh().B;b=0===$g(Ig)?-1:b.isVisible()?0:1;c.B=b;c.kc=this.Fv(a);c.Kl=this.Kl();c.Sf=d;return c};
g.k.Fv=function(a){return 0===this.opacity&&1===Ug(this.ub,"opac")?0:a};
g.k.Kl=function(){return!1};
g.k.ku=function(){return this.xJ||this.AJ};
g.k.Ht=function(){};
g.k.Hx=function(){};
g.k.di=function(){return 0};
g.k.Ml=function(){return this.Xs.Ml()};var aj="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};$i.prototype.next=function(){throw aj;};
$i.prototype.Ri=function(){return this};g.u(dj,Mg);gj.prototype.getValue=function(){return this.B};
gj.prototype.update=function(a,b){32<=a||(this.u&1<<a&&!b?this.B&=~(1<<a):this.u&1<<a||!b||(this.B|=1<<a),this.u|=1<<a)};g.u(hj,Si);
hj.prototype.update=function(a,b,c,d){if(!b.paused){Si.prototype.update.call(this,a,b,c,d);var e=ej(b)&&ej(c),f=.5<=(d?Math.min(b.kc,c.kc):c.kc);di(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.G=Math.max(this.G,b.volume));f&&(this.ba+=a,this.P+=e?a:0);this.u.update(b.kc,c.kc,b.u,a,d,e);this.C.update(!0,a);this.F.update(e,a);this.V.update(c.fullscreen,a);this.Ka.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.da.update(a,b.isVisible());this.Aa.update(a,1<=b.kc);this.ra.update(a,
ej(b))}};g.u(lj,bca);lj.prototype.C=function(){return!0};
lj.prototype.F=function(){return!1};
lj.prototype.getId=function(){var a=this,b=Ub(yj,function(c){return c==a.D});
return Gk[b].toString()};
lj.prototype.toString=function(){var a="";this.F()&&(a+="c");this.u&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.u(mj,ri);g.k=mj.prototype;g.k.lv=function(){if(this.element){var a=this.element,b=this.B.u.kf;try{try{var c=bi(a.getBoundingClientRect())}catch(n){c=new gg(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ag(a,b),h=f.x,l=f.y;var m=new gg(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=RBa.clone()}this.u=m}};
g.k.nA=function(){this.D=this.B.C.u};
g.k.hC=function(a){var b=1==Ug(this.ub,"od");return Pba(a,this.D,this.element,b)};
g.k.oA=function(){this.timestamp=Rh()};
g.k.Vj=function(){this.oA();this.lv();if(1===Ug(uh.getInstance().ub,"vcm")&&this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element,b=new g.he(a.videoWidth,a.videoHeight);this.V=this.u;a=this.u;var c=a.le(),d=a.getHeight(),e=b.width,f=b.height;if(!(0>=e||0>=f||0>=c||0>=d)){var h=e/f,l=c/d;b=a.clone();h>l?(e=Math.floor((d-f)/2),0<e&&(b.top=a.top+e,b.bottom=b.top+f)):(c=Math.floor((c-e)/2),0<c&&(b.left=a.left+c,b.right=b.left+e));a=b}this.u=
a}this.nA();a=this.u;e=this.D;a=a.left<=e.right&&e.left<=a.right&&a.top<=e.bottom&&e.top<=a.bottom?new gg(Math.max(a.top,e.top),Math.min(a.right,e.right),Math.min(a.bottom,e.bottom),Math.max(a.left,e.left)):new gg(0,0,0,0);e=a.top>=a.bottom||a.left>=a.right?new gg(0,0,0,0):a;a=this.B.C;d=c=b=0;0<(this.u.bottom-this.u.top)*(this.u.right-this.u.left)&&(this.hC(e)?e=new gg(0,0,0,0):(b=fi.getInstance().D,d=new gg(0,b.height,b.width,0),b=Vi(e,this.u),c=Vi(e,fi.getInstance().u),d=Vi(e,d)));e=e.top>=e.bottom||
e.left>=e.right?new gg(0,0,0,0):hg(e,-this.u.left,-this.u.top);ii()||(c=b=0);this.K=new Xh(a,this.element,this.u,e,b,c,this.timestamp,d)};
g.k.getName=function(){return this.B.getName()};var SBa=new gg(0,0,0,0);g.u(nj,mj);g.k=nj.prototype;g.k.rx=function(){this.C();return!0};
g.k.nk=function(){mj.prototype.Vj.call(this)};
g.k.oA=function(){};
g.k.lv=function(){};
g.k.Vj=function(){this.C();mj.prototype.Vj.call(this)};
g.k.Wm=function(a){a=a.isActive();a!==this.G&&(a?this.C():(fi.getInstance().u=new gg(0,0,0,0),this.u=new gg(0,0,0,0),this.D=new gg(0,0,0,0),this.timestamp=-1));this.G=a};var B1={},gca=(B1.firstquartile=0,B1.midpoint=1,B1.thirdquartile=2,B1.complete=3,B1);g.u(pj,Wi);g.k=pj.prototype;g.k.Fi=function(){return!0};
g.k.wB=function(a){return Zi(this,a,Math.max(1E4,this.D/3))};
g.k.na=function(a,b,c,d,e,f,h){var l=this,m=this.Y(this)||{};g.bc(m,e);this.D=m.duration||this.D;this.P=m.isVpaid||this.P;this.ka=m.isYouTube||this.ka;e=cca(this,b);1===uj(this)&&(f=e);Wi.prototype.na.call(this,a,b,c,d,m,f,h);this.C&&this.C.u&&g.Fb(this.K,function(n){kj(n,l)})};
g.k.gz=function(a,b,c){Wi.prototype.gz.call(this,a,b,c);tj(this).update(a,b,this.pe,c);this.Ga=ej(this.pe)&&ej(b);-1==this.da&&this.za&&(this.da=this.If().C.u);this.je.C=0;a=this.Ml();b.isVisible()&&fj(this.je,"vs");a&&fj(this.je,"vw");di(b.volume)&&fj(this.je,"am");ej(b)&&fj(this.je,"a");this.Zm&&fj(this.je,"f");-1!=b.B&&(fj(this.je,"bm"),1==b.B&&fj(this.je,"b"));ej(b)&&b.isVisible()&&fj(this.je,"avs");this.Ga&&a&&fj(this.je,"avw");0<b.kc&&fj(this.je,"pv");vj(this,this.If().C.u,!0)&&fj(this.je,"gdr");
2E3<=Pi(this.If().B,1)&&fj(this.je,"pmx")};
g.k.Xr=function(){return new hj};
g.k.If=function(){return this.Xs};
g.k.nw=function(){return new dj};
g.k.hv=function(a,b,c,d){a=Wi.prototype.hv.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Zm;a.paused=2==this.Ud;a.volume=c.volume;di(a.volume)||(this.Ka++,b=this.pe,di(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.Fv=function(a){return fi.getInstance(),this.Zm?1:Wi.prototype.Fv.call(this,a)};
g.k.di=function(){return 1};
g.k.getDuration=function(){return this.D};var TBa=g.A();var Hj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},qca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ij.prototype.reset=function(){this.u=[];this.B=[]};
Pa(Ij);var Lj=Ij.getInstance();Pa(Pj);g.u(Rj,si);g.k=Rj.prototype;g.k.getName=function(){return(this.B?this.B:this.u).getName()};
g.k.ek=function(){return(this.B?this.B:this.u).ek()};
g.k.gi=function(){return(this.B?this.B:this.u).gi()};
g.k.init=function(a){var b=!1;(0,g.Fb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,ni(this.u,this));return b};
g.k.dispose=function(){(0,g.Fb)(this.C,function(a){a.dispose()});
si.prototype.dispose.call(this)};
g.k.JC=function(){return ei(this.C,function(a){return a.XC()})};
g.k.xp=function(){return ei(this.C,function(a){return a.vt()})};
g.k.ht=function(a,b,c){return new mj(a,this.u,b,c)};
g.k.nk=function(a){this.B=a.B};var vca={threshold:[0,.3,.5,.75,1]};g.u(Sj,mj);g.k=Sj.prototype;g.k.rx=function(){var a=this;this.P||(this.P=Rh());if(Oh(298,function(){return wca(a)}))return!0;
mi(this.B,"msf");return!1};
g.k.Bp=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.G?(this.G.unobserve(this.element),this.G=null):this.F&&(this.F.disconnect(),this.F=null)}catch(a){}};
g.k.Vj=function(){var a=Tj(this);0<a.length&&Uj(this,a);mj.prototype.Vj.call(this)};
g.k.lv=function(){};
g.k.hC=function(){return!1};
g.k.nA=function(){};
g.k.ek=function(){var a={};return Object.assign(this.B.ek(),(a.niot_obs=this.P,a.niot_cbk=this.N,a))};
g.k.getName=function(){return"nio"};var jk=rC||vG;g.u(ok,si);ok.prototype.getName=function(){return"nio"};
ok.prototype.xp=function(){return g.ak()?!1:!fi.getInstance().B&&null!=this.u.u.kf.IntersectionObserver};
ok.prototype.ht=function(a,b,c){return new Sj(a,this.u,b,c)};g.u(qk,ki);qk.prototype.CB=function(){return fi.getInstance().u};
qk.prototype.vt=function(){var a=pk();this.K!==a&&(this.u!=this&&a>this.u.K&&(this.u=this,li(this)),this.K=a);return 2==a};
Pa(qk);Pa(rk);sk.prototype.IC=function(){vk(this,Mj(),!1)};
sk.prototype.D=function(){var a=ii(),b=Rh();a?(Th||(Uh=b,g.Fb(Lj.u,function(c){var d=c.If();d.ha=ij(d,b,1!=c.Ud)})),Th=!0):(this.K=xk(this,b),Th=!1,Cj=b,g.Fb(Lj.u,function(c){c.Ar&&(c.If().N=b)}));
vk(this,Mj(),!a)};
Pa(sk);var tk=sk.getInstance();var yk=null,fl="",el=!1;var C1=Ek([void 0,1,2,3,4,8,16]),D1=Ek([void 0,4,8,16]),UBa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Dk("p0",D1),p1:Dk("p1",D1),p2:Dk("p2",D1),p3:Dk("p3",D1),cp:"cp",tos:"tos",mtos:"mtos",mtos1:Ck("mtos1",[0,2,4],!1,D1),mtos2:Ck("mtos2",[0,2,4],!1,D1),mtos3:Ck("mtos3",[0,2,4],!1,D1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Dk("a0",D1),a1:Dk("a1",D1),a2:Dk("a2",D1),a3:Dk("a3",D1),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:Dk("c0",D1),c1:Dk("c1",D1),c2:Dk("c2",D1),c3:Dk("c3",D1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Dk("qmtos",C1),qnc:Dk("qnc",C1),qmv:Dk("qmv",C1),qnv:Dk("qnv",C1),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:Dk("ss0",D1),ss1:Dk("ss1",D1),ss2:Dk("ss2",D1),ss3:Dk("ss3",D1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},VBa={c:zk("c"),at:"at",
atos:Ck("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:Bk(),j:"dom",mtos:Ck("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:zk("ss"),vsv:bb("w2"),t:"t"},WBa={atos:"atos",amtos:"amtos",avt:Ck("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:zk("ss"),t:"t"},XBa={a:"a",tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:bb("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},YBa={tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:bb("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:Ck("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Pc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Eca={xV:"visible",rS:"audible",b2:"time",e2:"timetype"},Jk={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.u(Kk,lj);Kk.prototype.getId=function(){return this.K};
Kk.prototype.F=function(){return!0};
Kk.prototype.C=function(a){var b=a.If(),c=a.getDuration();return ei(this.G,function(d){if(void 0!=d.u)var e=Gca(d,b);else b:{switch(d.F){case "mtos":e=d.B?b.F.C:b.C.u;break b;case "tos":e=d.B?b.F.u:b.C.u;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.u(Lk,lj);Lk.prototype.C=function(a){var b=Ni(a.If().u,1);return vj(a,b)};g.u(Mk,lj);Mk.prototype.C=function(a){return a.If().Ml()};g.u(Pk,Hca);Pk.prototype.u=function(a){var b=new Nk;b.u=Ok(a,UBa);b.C=Ok(a,WBa);return b};g.u(Qk,nj);Qk.prototype.C=function(){var a=g.Na("ima.admob.getViewability"),b=Ug(this.ub,"queryid");"function"===typeof a&&b&&a(b)};
Qk.prototype.getName=function(){return"gsv"};g.u(Rk,si);Rk.prototype.getName=function(){return"gsv"};
Rk.prototype.xp=function(){var a=fi.getInstance();uh.getInstance();return a.B&&!1};
Rk.prototype.ht=function(a,b,c){return new Qk(this.u,b,c)};g.u(Sk,nj);Sk.prototype.C=function(){var a=this,b=g.Na("ima.bridge.getNativeViewability"),c=Ug(this.ub,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Wb(d)&&a.F++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.u=ci(d.opt_nativeViewBounds||{});var h=a.B.C;h.u=f?SBa.clone():ci(e);a.timestamp=d.opt_nativeTime||-1;fi.getInstance().u=h.u;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Sk.prototype.getName=function(){return"nis"};g.u(Tk,si);Tk.prototype.getName=function(){return"nis"};
Tk.prototype.xp=function(){var a=fi.getInstance();uh.getInstance();return a.B&&!1};
Tk.prototype.ht=function(a,b,c){return new Sk(this.u,b,c)};g.u(Uk,ki);g.k=Uk.prototype;g.k.vt=function(){return null!=this.B.sh};
g.k.rB=function(){var a={};this.ba&&(a.mraid=this.ba);this.X&&(a.mlc=1);a.mtop=this.B.CQ;this.G&&(a.mse=this.G);this.ea&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Mk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.B.sh[a].apply(this.B.sh,c)}catch(e){Qh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Gd)return!this.ip();this.Gd=!0;if(2===this.B.compatibility)return this.G="ng",mi(this,"w"),!1;if(1===this.B.compatibility)return this.G="mm",mi(this,"w"),!1;fi.getInstance().N=!0;this.kf.document.readyState&&"complete"==this.kf.document.readyState?Yk(this):$h(this.kf,"load",function(){mh().setTimeout(Ph(292,function(){return Yk(a)}),100)},292);
return!0};
g.k.VC=function(){var a=fi.getInstance(),b=al(this,"getMaxSize");a.u=new gg(0,b.width,b.height,0)};
g.k.WC=function(){fi.getInstance().D=al(this,"getScreenSize")};
g.k.dispose=function(){Zk(this);ki.prototype.dispose.call(this)};
Pa(Uk);g.k=bl.prototype;g.k.Ho=function(a){Xi(a,!1);sca(a)};
g.k.ds=function(){};
g.k.bq=function(a,b,c,d){var e=this;this.B||(this.B=this.JA());b=c?b:-1;a=null==this.B?new pj(Zg,a,b,7):new pj(Zg,a,b,7,new lj("measurable_impression",this.B),Nca(this));a.Qe=d;jba(a.ub);Tg(a.ub,"queryid",a.Qe);a.Yx("");Vba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.LB.apply(e,g.la(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.eJ.apply(e,g.la(h))});
(d=Pj.getInstance().u)&&Yi(a,d);a.Gf.xk&&rk.getInstance();return a};
g.k.Wm=function(a){switch(a.gi()){case 0:if(a=Pj.getInstance().u)a=a.u,g.rb(a.D,this),a.N&&this.Fi()&&pi(a);dl(this);break;case 2:uk(),Ug(uh.getInstance().ub,"mpv")&&Qca()}};
g.k.nk=function(){};
g.k.Fi=function(){return!1};
g.k.eJ=function(a,b){a.fn=!0;switch(a.di()){case 1:jl(this,a,b);break;case 2:this.my(a)}this.uy()};
g.k.mJ=function(a){xj(a,0);return Aj(a,"start",ii())};
g.k.Yn=function(a,b,c){vk(tk,[a],!ii());return this.ik(a,b,c)};
g.k.ik=function(a,b,c){return Aj(a,c,ii())};
g.k.hJ=function(a){return kl(a,"firstquartile",1)};
g.k.jJ=function(a){a.za=!0;return kl(a,"midpoint",2)};
g.k.nJ=function(a){return kl(a,"thirdquartile",3)};
g.k.fJ=function(a){var b=kl(a,"complete",4);qj(a);return b};
g.k.EF=function(a,b,c){b=ii();2!=a.Ud||b||(a.If().N=Rh());vk(tk,[a],!b);2==a.Ud&&(a.Ud=1);return Aj(a,c,b)};
g.k.lJ=function(a,b){var c=this.Yn(a,b||{},"skip");qj(a);return c};
g.k.iJ=function(a,b){Xi(a,!0);return this.Yn(a,b||{},"fullscreen")};
g.k.gJ=function(a,b){Xi(a,!1);return this.Yn(a,b||{},"exitfullscreen")};
g.k.Tx=function(a,b,c){b=a.If();b.ha=ij(b,Rh(),1!=a.Ud);vk(tk,[a],!ii());1==a.Ud&&(a.Ud=2);return Aj(a,c,ii())};
g.k.kJ=function(a){vk(tk,[a],!ii());return a.B()};
g.k.Fw=function(a){vk(tk,[a],!ii());this.zF(a);qj(a);return a.B()};
g.k.LB=function(){};
g.k.my=function(){};
g.k.zF=function(){};
g.k.UC=function(){};
g.k.uy=function(){};
g.k.JA=function(){};var pl=g.A(),rl=!1,sl=!1,tl=!1,Vca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return ql(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 ql(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 ql(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 ql(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 ql(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return sl},
function(){return tl},
function(){return ql(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 ql(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]||ol(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 ol(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 ql(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 ol(a.CSS.supports)},
function(){return ol(Intl.Collator)},
function(a){return ol(a.document.createElement("dialog").show)},
function(){return ql(8)},
function(a){return ol(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 ol(a.document.createElement("div").animate)},
function(a){return ol(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ol(a.navigator.getBattery)},
function(a){return ol(a.navigator.permissions.query)},
function(){return!1},
function(){return ql(9)},
function(){return ol(webkitRequestAnimationFrame)},
function(a){return ol(a.BroadcastChannel.call)},
function(a){return ol(a.FontFace)},
function(a){return ol(a.Gamepad)},
function(){return ql(10)},
function(a){return ol(a.MutationEvent)},
function(a){return ol(a.MutationObserver)},
function(a){return ol(a.crypto.getRandomValues)},
function(a){return ol(a.document.body.createShadowRoot)},
function(a){return ol(a.document.body.webkitCreateShadowRoot)},
function(a){return ol(a.fetch)},
function(){return ql(11)},
function(a){return ol(a.navigator.serviceWorker.register)},
function(a){return ol(a.navigator.webkitGetGamepads)},
function(a){return ol(a.speechSynthesis.speak)},
function(a){return ol(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return ql(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 ql(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 ql(14)},
function(a){return"undefined"==typeof a.navigator.t4},
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")}],Wca=[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}],Xca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ya(vl,ul);vl.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.D=this.C=0};
vl.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.B,d=this.F,e=this.C,f=0;f<b;){if(0==e)for(;f<=c;)wl(this,a,f),f+=this.B;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.B){wl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.B){wl(this,d);e=0;break}}this.C=e;this.D+=b};
vl.prototype.digest=function(){var a=Array((56>this.C?this.B:2*this.B)-this.C);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.D;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.u[b]>>>d&255;return a};g.u(xl,Pk);xl.prototype.u=function(a){var b=Pk.prototype.u.call(this,a);var c=pl=g.A();var d=ql(5);c=(sl?!d:d)?c|2:c&-3;d=ql(2);c=(tl?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.B||(this.B=Yca());b.F=this.B;b.G=Ok(a,VBa,c,"h",yl("kArwaWEsTs"));b.D=Ok(a,XBa,{},"h",yl("b96YPMzfnx"));b.B=Ok(a,YBa,{},"h",yl("yb8Wev6QDg"));return b};zl.prototype.u=function(){return g.Na(this.B)};g.u(Al,zl);Al.prototype.u=function(a){if(!a.Dn)return zl.prototype.u.call(this,a);var b=this.D[a.Dn];if(b)return function(c,d,e){b.B(c,d,e)};
Qh(393,Error());return null};g.u(Bl,bl);g.k=Bl.prototype;g.k.ds=function(a,b){var c=this,d=Pj.getInstance();if(null!=d.u)switch(d.u.getName()){case "nis":var e=bda(this,a,b);break;case "gsv":e=ada(this,a,b);break;case "exc":e=cda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Rca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.di()&&(e.Y==g.Oa&&(e.Y=function(f){return c.UC(f)}),$ca(this,e,b));
return e};
g.k.UC=function(a){a.B=0;a.ea=0;if("h"==a.F||"n"==a.F){var b;uh.getInstance();if(a.Dn&&El(this)){var c=this.N[a.Dn];c?b=function(e){return c.u(e)}:null!==c&&Qh(379,Error())}else b=g.Na("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.Qe)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.F)if(b=g.Na("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.Qe)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.F)if(b=g.Na("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.Qe)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===d?a.B|=8:null===d?a.B|=16:g.Wb(d)?a.B|=32:null!=d.errorCode&&(a.ea=d.errorCode,a.B|=64));null==d&&(d={});Sca(d,a);di(d.volume)&&di(void 0)&&(d.volume*=NaN);
return d};
g.k.JA=function(){if(El(this))return new Al("ima.common.triggerExternalActivityEvent",this.C,this.N);var a=dda(this);return null!=a?new zl(a,this.C):null};
g.k.my=function(a){!a.u&&a.fn&&il(this,a,"overlay_unmeasurable_impression")&&(a.u=!0)};
g.k.zF=function(a){a.NF&&(a.Ml()?il(this,a,"overlay_viewable_end_of_session_impression"):il(this,a,"overlay_unviewable_impression"),a.NF=!1)};
g.k.LB=function(){};
g.k.uy=function(){};
g.k.bq=function(a,b,c,d){a=bl.prototype.bq.call(this,a,b,c,d);this.F&&(b=this.G,null==a.G&&(a.G=new Xba),b.u[a.Qe]=a.G,a.G.F=TBa);return a};
g.k.Ho=function(a){a&&1==a.di()&&this.F&&delete this.G.u[a.Qe];return bl.prototype.Ho.call(this,a)};
Pa(Bl);var Cl=new Nk;Cl.F="stopped";Cl.u="stopped";Cl.C="stopped";Cl.G="stopped";Cl.D="stopped";Cl.B="stopped";Object.freeze(Cl);var ZBa=Mh(193,Gl,ll);g.Ia("Goog_AdSense_Lidar_sendVastEvent",ZBa,void 0);var $Ba=Ph(194,function(a,b){b=void 0===b?{}:b;var c=Dl(Bl.getInstance(),a,b);return Fl(c)});
g.Ia("Goog_AdSense_Lidar_getViewability",$Ba,void 0);var aCa=Mh(195,function(){return oh()},void 0);
g.Ia("Goog_AdSense_Lidar_getUrlSignalsArray",aCa,void 0);var bCa=Ph(196,function(){return g.Fj(oh())});
g.Ia("Goog_AdSense_Lidar_getUrlSignalsList",bCa,void 0);var iea=(new Date).getTime();var bm=!g.ye||g.$d(9),cCa=g.ye&&!g.Zd("9");!g.Ae||g.Zd("528");qg&&g.Zd("1.9b")||g.ye&&g.Zd("8")||g.rg&&g.Zd("9.5")||g.Ae&&g.Zd("528");qg&&!g.Zd("8")||g.ye&&g.Zd("9");var lda=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.Oa,b),g.v.removeEventListener("test",g.Oa,b)}catch(c){}return a}();g.Ll.prototype.stopPropagation=function(){this.u=!0};
g.Ll.prototype.preventDefault=function(){this.defaultPrevented=!0};var aya;aya=g.Ae?"webkitAnimationEnd":g.rg?"oanimationend":"animationend";g.Ya(Ml,g.Ll);var dCa={2:"touch",3:"pen",4:"mouse"};
Ml.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?qg&&(Vd(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:dCa[a.pointerType]||"";this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()};
Ml.prototype.stopPropagation=function(){Ml.nd.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0};
Ml.prototype.preventDefault=function(){Ml.nd.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,cCa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Nl="closure_listenable_"+(1E6*Math.random()|0),ida=0;Ql.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.u++);var h=Tl(a,b,d,e);-1<h?(b=a[h],c||(b.gr=!1)):(b=new jda(b,this.src,f,!!d,e),b.gr=c,a.push(b));return b};
Ql.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Tl(e,b,c,d);return-1<b?(Pl(e[b]),g.qb(e,b),0==e.length&&(delete this.listeners[a],this.u--),!0):!1};
Ql.prototype.Wo=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Tl(a,b,c,d));return-1<e?a[e]:null};var Zl="closure_lm_"+(1E6*Math.random()|0),em={},am=0,hm="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ya(g.im,g.B);g.im.prototype[Nl]=!0;g.k=g.im.prototype;g.k.addEventListener=function(a,b,c,d){Vl(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){cm(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.ka;if(b){var c=[];for(var d=1;b;b=b.ka)c.push(b),++d}b=this.za;d=a.type||a;if("string"===typeof a)a=new g.Ll(a,b);else if(a instanceof g.Ll)a.target=a.target||b;else{var e=a;a=new g.Ll(d,b);g.bc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=jm(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=jm(h,d,!0,a)&&e,a.u||(e=jm(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=jm(h,d,!1,a)&&e;return e};
g.k.aa=function(){g.im.nd.aa.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Pl(d[e]);delete a.listeners[c];a.u--}}this.ka=null};
g.k.wa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Ms=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.Eb=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Wo=function(a,b,c,d){return this.B.Wo(String(a),b,c,d)};km.prototype.get=function(){if(0<this.B){this.B--;var a=this.u;this.u=a.next;a.next=null}else a=this.C();return a};var nm,nda=g.cb;var wm=new km(function(){return new qm},function(a){a.reset()});
pm.prototype.add=function(a,b){var c=wm.get();c.set(a,b);this.B?this.B.next=c:this.u=c;this.B=c};
pm.prototype.remove=function(){var a=null;this.u&&(a=this.u,this.u=this.u.next,this.u||(this.B=null),a.next=null);return a};
qm.prototype.set=function(a,b){this.u=a;this.scope=b;this.next=null};
qm.prototype.reset=function(){this.next=this.scope=this.u=null};var rm,sm=!1,tm=new pm;Am.prototype.reset=function(){this.context=this.onRejected=this.C=this.u=null;this.B=!1};
var Bm=new km(function(){return new Am},function(a){a.reset()});
zm.prototype.then=function(a,b,c){return Km(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
zm.prototype.$goog_Thenable=!0;zm.prototype.cancel=function(a){if(0==this.Ha){var b=new Qm(a);g.um(function(){Mm(this,b)},this)}};
zm.prototype.ZQ=function(a){this.Ha=0;ym(this,2,a)};
zm.prototype.aR=function(a){this.Ha=0;ym(this,3,a)};
zm.prototype.kI=function(){for(var a;a=Nm(this);)Om(this,a,this.Ha,this.Lk);this.Wv=!1};
var Sm=mm;g.Ya(Qm,$a);Qm.prototype.name="cancel";g.Ya(g.Tm,g.im);g.k=g.Tm.prototype;g.k.enabled=!1;g.k.Wa=null;g.k.setInterval=function(a){this.df=a;this.Wa&&this.enabled?(this.stop(),this.start()):this.Wa&&this.stop()};
g.k.Te=function(){if(this.enabled){var a=g.A()-this.vC;0<a&&a<.8*this.df?this.Wa=this.Cq.setTimeout(this.lA,this.df-a):(this.Wa&&(this.Cq.clearTimeout(this.Wa),this.Wa=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Wa||(this.Wa=this.Cq.setTimeout(this.lA,this.df),this.vC=g.A())};
g.k.stop=function(){this.enabled=!1;this.Wa&&(this.Cq.clearTimeout(this.Wa),this.Wa=null)};
g.k.aa=function(){g.Tm.nd.aa.call(this);this.stop();delete this.Cq};g.k=g.Wm.prototype;g.k.qf=function(){Ym(this);for(var a=[],b=0;b<this.u.length;b++)a.push(this.B[this.u[b]]);return a};
g.k.wg=function(){Ym(this);return this.u.concat()};
g.k.isEmpty=function(){return 0==this.C};
g.k.clear=function(){this.B={};this.Uk=this.C=this.u.length=0};
g.k.remove=function(a){return Xm(this.B,a)?(delete this.B[a],this.C--,this.Uk++,this.u.length>2*this.C&&Ym(this),!0):!1};
g.k.get=function(a,b){return Xm(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Xm(this.B,a)||(this.C++,this.u.push(a),this.Uk++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.wg(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Wm(this)};
g.k.Ri=function(a){Ym(this);var b=0,c=this.Uk,d=this,e=new $i;e.next=function(){if(c!=d.Uk)throw Error("The map has changed since the iterator was created");if(b>=d.u.length)throw aj;var f=d.u[b++];return a?f:d.B[f]};
return e};g.Zm.prototype.toString=function(){var a=[],b=this.F;b&&a.push(fn(b,eCa,!0),":");var c=this.u;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(fn(b,eCa,!0),"@"),a.push(ld(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.u&&"/"!=c.charAt(0)&&a.push("/"),a.push(fn(c,"/"==c.charAt(0)?fCa:gCa,!0));(c=this.C.toString())&&a.push("?",c);(c=this.G)&&a.push("#",fn(c,hCa));return a.join("")};
g.Zm.prototype.resolve=function(a){var b=this.clone(),c=!!a.F;c?g.$m(b,a.F):c=!!a.N;c?b.N=a.N:c=!!a.u;c?g.an(b,a.u):c=null!=a.D;var d=a.B;if(c)g.bn(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.u&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=pc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.C.toString();c?cn(b,a.C.clone()):c=!!a.G;c&&(b.G=a.G);return b};
g.Zm.prototype.clone=function(){return new g.Zm(this)};
var eCa=/[#\/\?@]/g,gCa=/[#\?:]/g,fCa=/[#\?]/g,uda=/[#\?@]/g,hCa=/#/g;g.k=en.prototype;g.k.add=function(a,b){hn(this);this.C=null;a=jn(this,a);var c=this.u.get(a);c||this.u.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){hn(this);a=jn(this,a);return Xm(this.u.B,a)?(this.C=null,this.B=this.B-this.u.get(a).length,this.u.remove(a)):!1};
g.k.clear=function(){this.u=this.C=null;this.B=0};
g.k.isEmpty=function(){hn(this);return 0==this.B};
g.k.forEach=function(a,b){hn(this);this.u.forEach(function(c,d){g.Fb(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.wg=function(){hn(this);for(var a=this.u.qf(),b=this.u.wg(),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.k.qf=function(a){hn(this);var b=[];if("string"===typeof a)kn(this,a)&&(b=g.tb(b,this.u.get(jn(this,a))));else{a=this.u.qf();for(var c=0;c<a.length;c++)b=g.tb(b,a[c])}return b};
g.k.set=function(a,b){hn(this);this.C=null;a=jn(this,a);kn(this,a)&&(this.B=this.B-this.u.get(a).length);this.u.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;var c=this.qf(a);return 0<c.length?String(c[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.u)return"";for(var a=[],b=this.u.wg(),c=0;c<b.length;c++){var d=b[c],e=ld(d);d=this.qf(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+ld(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new en;a.C=this.C;this.u&&(a.u=this.u.clone(),a.B=this.B);return a};var mn="://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(" "),wda=/\bocr\b/;var xda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;pn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.B[a]!=b&&(this.B[a]=b,this.u=-1)};
pn.prototype.get=function(a){return!!this.B[a]};g.Ya(g.qn,g.B);g.k=g.qn.prototype;g.k.start=function(){this.stop();this.D=!1;var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.u=Vl(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.u=a&&b?a.call(this.B,this.C):this.B.setTimeout(laa(this.C),20)};
g.k.Hb=function(){this.isActive()||this.start()};
g.k.stop=function(){if(this.isActive()){var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?dm(this.u):a&&b?b.call(this.B,this.u):this.B.clearTimeout(this.u)}this.u=null};
g.k.Yf=function(){this.isActive()&&(this.stop(),this.EB())};
g.k.isActive=function(){return null!=this.u};
g.k.EB=function(){this.D&&this.u&&dm(this.u);this.u=null;this.G.call(this.F,g.A())};
g.k.aa=function(){this.stop();g.qn.nd.aa.call(this)};g.Ya(g.G,g.B);g.k=g.G.prototype;g.k.bp=0;g.k.aa=function(){g.G.nd.aa.call(this);this.stop();delete this.u;delete this.B};
g.k.start=function(a){this.stop();this.bp=g.Um(this.C,void 0!==a?a:this.df)};
g.k.Hb=function(a){this.isActive()||this.start(a)};
g.k.stop=function(){this.isActive()&&g.v.clearTimeout(this.bp);this.bp=0};
g.k.Yf=function(){this.isActive()&&g.tn(this)};
g.k.isActive=function(){return 0!=this.bp};
g.k.FB=function(){this.bp=0;this.u&&this.u.call(this.B)};g.Ya(un,ul);un.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.u[4]=3285377520;this.D=this.C=0};
un.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.B,d=0,e=this.G,f=this.C;d<b;){if(0==f)for(;d<=c;)vn(this,a,d),d+=this.B;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.B){vn(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.B){vn(this,e);f=0;break}}this.C=f;this.D+=b}};
un.prototype.digest=function(){var a=[],b=8*this.D;56>this.C?this.update(this.F,56-this.C):this.update(this.F,this.B-(this.C-56));for(var c=this.B-1;56<=c;c--)this.G[c]=b&255,b/=256;vn(this,this.G);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.u[c]>>d&255,++b;return a};g.Ya(g.En,g.im);g.k=g.En.prototype;g.k.Kb=function(){return 1==this.Ha};
g.k.Lt=function(){this.tg("begin")};
g.k.Pp=function(){this.tg("end")};
g.k.Kf=function(){this.tg("finish")};
g.k.tg=function(a){this.dispatchEvent(a)};var iCa=db(function(){if(g.ye)return g.Zd("10.0");var a=g.Fe("DIV"),b=g.Ae?"-webkit":qg?"-moz":g.ye?"-ms":g.rg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!HBa.test("div"))throw Error("");if("DIV"in JBa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!HBa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof hc)e=jc(e);else if("style"==f.toLowerCase()){if(!g.Sa(e))throw Error("");
e instanceof Nc||(e=Sc(e));e=Oc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in IBa)if(e instanceof mc)e=nc(e).toString();else if(e instanceof g.Fc)e=g.Gc(e);else if("string"===typeof e)e=g.Kc(e).yg();else throw Error("");}e.lj&&(e=e.yg());f=f+'="'+zc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===CBa.div?h+=">":(c=Haa(d),h+=">"+g.cd(c).toString()+"</div>",c=c.u());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=dd(h,c);g.hd(a,
b);return""!=g.sg(a.firstChild,"transition")});g.Ya(Fn,g.En);g.k=Fn.prototype;g.k.play=function(){if(this.Kb())return!1;this.Lt();this.tg("play");this.startTime=g.A();this.Ha=1;if(iCa())return g.F(this.u,this.G),this.D=g.Um(this.VP,void 0,this),!0;this.ww(!1);return!1};
g.k.VP=function(){g.Eg(this.u);zda(this.u,this.K);g.F(this.u,this.C);this.D=g.Um((0,g.z)(this.ww,this,!1),1E3*this.F)};
g.k.stop=function(){this.Kb()&&this.ww(!0)};
g.k.ww=function(a){g.F(this.u,"transition","");g.v.clearTimeout(this.D);g.F(this.u,this.C);this.endTime=g.A();this.Ha=0;a?this.tg("stop"):this.Kf();this.Pp()};
g.k.aa=function(){this.stop();Fn.nd.aa.call(this)};
g.k.pause=function(){};var Ada={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 Eda=Hn("getPropertyValue"),Fda=Hn("setProperty");var Dda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Ln.prototype.clone=function(){return new g.Ln(this.u,this.F,this.C,this.G,this.D,this.K,this.B,this.N)};g.Nn.prototype.B=0;g.Nn.prototype.reset=function(){this.u=this.C=this.D;this.B=0};
g.Nn.prototype.getValue=function(){return this.C};Pn.prototype.clone=function(){return new Pn(this.start,this.end)};
Pn.prototype.getLength=function(){return this.end-this.start};var jCa=new WeakMap;(function(){if(jBa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Vc))?a[1]:"0"}return GD?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Vc))?a[0].replace(/_/g,"."):"10"):g.lk?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Vc))?a[1]:""):KBa||LBa||MBa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Vc))?a[1].replace(/_/g,"."):""):""})();var Mda=function(){if(g.SB)return Qn(/Firefox\/([0-9.]+)/);if(g.ye||g.or||g.rg)return Yd;if(g.AB)return Td()?Qn(/CriOS\/([0-9.]+)/):Qn(/Chrome\/([0-9.]+)/);if(g.SC&&!Td())return Qn(/Version\/([0-9.]+)/);if(rC||vG){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vc);if(a)return a[1]+"."+a[2]}else if(g.jC)return(a=Qn(/Android\s+([0-9.]+)/))?a:Qn(/Version\/([0-9.]+)/);return""}();g.Ya(g.Sn,g.B);g.k=g.Sn.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.F;this.u[e]=a;this.u[e+1]=b;this.u[e+2]=c;this.F=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.u;if(a=g.jb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Gl(a)}return!1};
g.k.Gl=function(a){var b=this.u[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.u[a+1]=g.Oa):(c&&g.rb(c,a),delete this.u[a],delete this.u[a+1],delete this.u[a+2])}return!!b};
g.k.W=function(a,b){var c=this.B[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.G)for(e=0;e<c.length;e++){var h=c[e];Nda(this.u[h+1],this.u[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f;e++)h=c[e],this.u[h+1].apply(this.u[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Gl(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(g.Fb(b,this.Gl,this),delete this.B[a])}else this.u.length=0,this.B={}};
g.k.aa=function(){g.Sn.nd.aa.call(this);this.clear();this.C.length=0};g.Tn.prototype.set=function(a,b){void 0===b?this.u.remove(a):this.u.set(a,g.Fj(b))};
g.Tn.prototype.get=function(a){try{var b=this.u.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Tn.prototype.remove=function(a){this.u.remove(a)};g.Ya(Un,g.Tn);Un.prototype.set=function(a,b){Un.nd.set.call(this,a,Wn(b))};
Un.prototype.B=function(a){a=Un.nd.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Un.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ya(Xn,Un);Xn.prototype.set=function(a,b,c){if(b=Wn(b)){if(c){if(c<g.A()){Xn.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.A()}Xn.nd.set.call(this,a,b)};
Xn.prototype.B=function(a,b){var c=Xn.nd.B.call(this,a);if(c)if(!b&&g.Yn(c))Xn.prototype.remove.call(this,a);else return c};g.Ya(g.Zn,Xn);g.Ya($n,Oda);$n.prototype.clear=function(){var a=Wba(this.Ri(!0)),b=this;g.Fb(a,function(c){b.remove(c)})};g.Ya(ao,$n);g.k=ao.prototype;g.k.isAvailable=function(){if(!this.u)return!1;try{return this.u.setItem("__sak","1"),this.u.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.u.setItem(a,b)}catch(c){if(0==this.u.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.u.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeItem(a)};
g.k.Ri=function(a){var b=0,c=this.u,d=new $i;d.next=function(){if(b>=c.length)throw aj;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.k.clear=function(){this.u.clear()};
g.k.key=function(a){return this.u.key(a)};g.Ya(bo,ao);g.Ya(co,ao);g.Ya(fo,$n);var Pda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},eo=null;g.k=fo.prototype;g.k.isAvailable=function(){return!!this.u};
g.k.set=function(a,b){this.u.setAttribute(go(a),b);ho(this)};
g.k.get=function(a){a=this.u.getAttribute(go(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeAttribute(go(a));ho(this)};
g.k.Ri=function(a){var b=0,c=this.u.XMLDocument.documentElement.attributes,d=new $i;d.next=function(){if(b>=c.length)throw aj;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.k.clear=function(){for(var a=this.u.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);ho(this)};g.Ya(io,$n);io.prototype.set=function(a,b){this.B.set(this.u+a,b)};
io.prototype.get=function(a){return this.B.get(this.u+a)};
io.prototype.remove=function(a){this.B.remove(this.u+a)};
io.prototype.Ri=function(a){var b=this.B.Ri(!0),c=this,d=new $i;d.next=function(){for(var e=b.next();e.substr(0,c.u.length)!=c.u;)e=b.next();return a?e.substr(c.u.length):c.B.get(e)};
return d};ko.prototype.getKey=function(){return this.u};
ko.prototype.getValue=function(){return this.B};
ko.prototype.clone=function(){return new ko(this.u,this.B)};g.k=lo.prototype;g.k.remove=function(){var a=this.u,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(a);else{a[0]=a.pop();a=0;b=this.u;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.qf=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.wg=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new lo(this)};
g.k.isEmpty=function(){return g.ob(this.u)};
g.k.clear=function(){pb(this.u)};g.Ya(g.no,lo);Pa(oo);oo.prototype.u=0;g.Ya(po,g.Bf);g.Ya(qo,g.Bf);var Qda=[2,13,14];qo.prototype.getKey=function(){return g.Hf(this,3)};var ro=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ia("yt.config_",ro,void 0);var Co={};var Do=[];var kCa,Ko,Mo;kCa=g.v.ytPubsubPubsubInstance||new g.Sn;Ko=g.v.ytPubsubPubsubSubscribedKeys||{};Mo=g.v.ytPubsubPubsubTopicToKeys||{};g.Lo=g.v.ytPubsubPubsubIsSynchronous||{};g.Sn.prototype.subscribe=g.Sn.prototype.subscribe;g.Sn.prototype.unsubscribeByKey=g.Sn.prototype.Gl;g.Sn.prototype.publish=g.Sn.prototype.W;g.Sn.prototype.clear=g.Sn.prototype.clear;g.Ia("ytPubsubPubsubInstance",kCa,void 0);g.Ia("ytPubsubPubsubTopicToKeys",Mo,void 0);g.Ia("ytPubsubPubsubIsSynchronous",g.Lo,void 0);
g.Ia("ytPubsubPubsubSubscribedKeys",Ko,void 0);var Uda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Vda=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Vo={};var CC={DX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",AX:"LIVING_ROOM_APP_MODE_MAIN",zX:"LIVING_ROOM_APP_MODE_KIDS",BX:"LIVING_ROOM_APP_MODE_MUSIC",CX:"LIVING_ROOM_APP_MODE_UNPLUGGED",yX:"LIVING_ROOM_APP_MODE_GAMING"},cBa={T_:"PLAYBACK_TYPE_UNKNOWN",N_:"PLAYBACK_TYPE_APPLICATION",M_:"PLAYBACK_TYPE_ADS",R_:"PLAYBACK_TYPE_REMOTE",S_:"PLAYBACK_TYPE_SECONDARY_CAMERA",Q_:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",P_:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",O_:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var lCa=0,Wo=g.Ae?"webkit":qg?"moz":g.ye?"ms":g.rg?"o":"",mCa=g.Na("ytDomDomGetNextId")||function(){return++lCa};
g.Ia("ytDomDomGetNextId",mCa,void 0);var Yda={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};Zo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Zo.prototype.gC=function(){return this.event?!1===this.event.returnValue:!1};
Zo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Zo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ap=g.v.ytEventsEventsListeners||{};g.Ia("ytEventsEventsListeners",ap,void 0);var bp=g.v.ytEventsEventsCounter||{count:0};g.Ia("ytEventsEventsCounter",bp,void 0);var nCa=db(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),cp=db(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var sx=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.Ya(op,g.B);op.prototype.X=function(a){void 0===a.u&&$o(a);var b=a.u;void 0===a.B&&$o(a);this.u=new g.fe(b,a.B)};
op.prototype.hk=function(){return this.u||new g.fe};
op.prototype.K=function(){if(this.u){var a=sx();if(0!=this.D){var b=this.G,c=this.u,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.F)/this.F)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.P();this.F=d}this.D=a;this.G=this.u;this.C=(this.C+1)%4}};
op.prototype.aa=function(){window.clearInterval(this.V);g.ep(this.N)};g.u(sp,bea);sp.prototype.start=function(){var a=g.Na("yt.scheduler.instance.start");a&&a()};
sp.prototype.pause=function(){var a=g.Na("yt.scheduler.instance.pause");a&&a()};
Pa(sp);sp.getInstance();var zp={};var E1;E1=window;g.O=E1.ytcsi&&E1.ytcsi.now?E1.ytcsi.now:E1.performance&&E1.performance.timing&&E1.performance.now&&E1.performance.timing.navigationStart?function(){return E1.performance.timing.navigationStart+E1.performance.now()}:function(){return(new Date).getTime()};var dea=g.wo("initial_gel_batch_timeout",1E3),Np=Math.pow(2,16)-1,Op=null,Mp=0,Dp=void 0,Bp=0,Cp=0,Qp=0,Hp=!0,Ep=g.v.ytLoggingTransportGELQueue_||new Map;g.Ia("ytLoggingTransportGELQueue_",Ep,void 0);var Kp=g.v.ytLoggingTransportTokensToCttTargetIds_||{};g.Ia("ytLoggingTransportTokensToCttTargetIds_",Kp,void 0);var Pp=g.v.ytLoggingGelSequenceIdObj_||{};g.Ia("ytLoggingGelSequenceIdObj_",Pp,void 0);var gea={q:!0,search_query:!0};var eq=new function(){var a=window.document;this.u=window;this.B=a};
g.Ia("yt.ads_.signals_.getAdSignalsString",function(a){return Vp(gq(a))},void 0);var hq="XMLHttpRequest"in g.v?function(){return new XMLHttpRequest}:null;var kq={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"},lea="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 client_dev_root_url".split(" "),
rq=!1,kH=lq;yq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.u)try{this.u.set(a,b,g.A()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Fj(b))}catch(f){return}else e=escape(b);g.vq(a,e,c,this.B)};
yq.prototype.get=function(a,b){var c=void 0,d=!this.u;if(!d)try{c=this.u.get(a)}catch(e){d=!0}if(d&&(c=g.wq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
yq.prototype.remove=function(a){this.u&&this.u.remove(a);g.xq(a,"/",this.B)};zq.prototype.u=function(a,b){var c={},d=Kl([]);if(d){var e=null===b||void 0===b?void 0:b.sessionIndex;c.Authorization=d;c["X-Goog-AuthUser"]=void 0!==e?e:g.L("SESSION_INDEX",0);"INNERTUBE_HOST_OVERRIDE"in ro||(c["X-Origin"]=window.location.origin);g.vo("pageid_as_header_web")&&void 0===e&&"DELEGATED_SESSION_ID"in ro&&(c["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID"))}return c};var Qw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var F1=new g.im;var Eq=[],Bq,Gq=!1;Iq.all=function(a){return new Iq(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={xm:0};f.xm<a.length;f={xm:f.xm},++f.xm)Iq.resolve(a[f.xm]).then(function(h){return function(l){d[h.xm]=l;e--;0===e&&b(d)}}(f))["catch"](function(h){c(h)})})};
Iq.resolve=function(a){return new Iq(function(b,c){a instanceof Iq?a.then(b,c):b(a)})};
Iq.reject=function(a){return new Iq(function(b,c){c(a)})};
Iq.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:wea,e=null!==b&&void 0!==b?b:vea;return new Iq(function(f,h){"PENDING"===c.state.status?(c.u.push(function(){Kq(c,c,d,f,h)}),c.onRejected.push(function(){Lq(c,c,e,f,h)})):"FULFILLED"===c.state.status?Kq(c,c,d,f,h):"REJECTED"===c.state.status&&Lq(c,c,e,f,h)})};
Iq.prototype["catch"]=function(a){return this.then(void 0,a)};Qq.prototype.advance=function(a){this.cursor.advance(a);return Rq(this.request)};
Qq.prototype["continue"]=function(a){this.cursor["continue"](a);return Rq(this.request)};
Qq.prototype.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Rq(this.request)};
Qq.prototype.getKey=function(){return this.cursor.key};g.u(Sq,Error);var G1={},Tq=(G1.AUTH_INVALID="No user identifier specified.",G1.EXPLICIT_ABORT="Transaction was explicitly aborted.",G1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",G1.MISSING_OBJECT_STORE="Object store not created.",G1.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",G1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",G1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",G1);g.u(Uq,Sq);g.u(Vq,Uq);g.u(Wq,Uq);g.k=Xq.prototype;g.k.add=function(a,b,c){return Yq(this,[a],"readwrite",function(d){return $q(d,a).add(b,c)})};
g.k.clear=function(a){return Yq(this,[a],"readwrite",function(b){return $q(b,a).clear()})};
g.k.close=function(){var a;this.u.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return Yq(this,[a],"readonly",function(c){return $q(c,a).count(b)})};
g.k["delete"]=function(a,b){return Yq(this,[a],"readwrite",function(c){return $q(c,a)["delete"](b)})};
g.k.get=function(a,b){return Yq(this,[a],"readwrite",function(c){return $q(c,a).get(b)})};
g.k=dr.prototype;g.k.add=function(a,b){return Oq(this.u.add(a,b))};
g.k.clear=function(){return Oq(this.u.clear()).then(function(){})};
g.k.count=function(a){return Oq(this.u.count(a))};
g.k["delete"]=function(a){return a instanceof IDBKeyRange?zea(this,a):Oq(this.u["delete"](a))};
g.k.get=function(a){return Oq(this.u.get(a))};
g.k.index=function(a){return new gr(this.u.index(a))};
g.k.getName=function(){return this.u.name};
br.prototype.abort=function(){this.u.abort();this.aborted=!0;throw new Uq("EXPLICIT_ABORT");};
br.prototype.commit=function(){var a=this.u;a.commit&&!this.aborted&&a.commit()};
gr.prototype.count=function(a){return Oq(this.u.count(a))};
gr.prototype.get=function(a){return Oq(this.u.get(a))};
gr.prototype.getKey=function(a){return Oq(this.u.getKey(a))};
g.k=hr.prototype;g.k.advance=function(a){this.cursor.advance(a);return fr(this.request)};
g.k["continue"]=function(a){this.cursor["continue"](a);return fr(this.request)};
g.k["delete"]=function(){return Oq(this.cursor["delete"]()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return Oq(this.cursor.update(a))};g.k=kr.prototype;g.k.Px=function(a,b,c){c=void 0===c?{}:c;return ir(a,b,c)};
g.k["delete"]=function(a){a=void 0===a?{}:a;return jr(this.name,a)};
g.k.BA=function(){};
g.k.CA=function(){};
g.k.open=function(){var a=this;if(!this.u){var b=function(){a.u===e&&(a.u=void 0,a.CA(b))},c={blocking:function(f){f.close()},
closed:b,OQ:b,upgrade:this.options.upgrade},d=function(){return Lm(a.Px(a.name,a.options.version,c).then(function(f){if(g.SB){var h=Eea(f,a.options);if(void 0!==h){if(g.SB&&!a.B)return a.B=!0,a["delete"]().then(function(){return d()});
throw new Wq(h);}}return f}),function(f){if(f instanceof DOMException?"VersionError"===f.name:"DOMError"in self&&f instanceof DOMError?"VersionError"===f.name:f instanceof Object&&"message"in f&&"An attempt was made to open a database using a lower version than the existing version."===f.message)return a.Px(a.name,void 0,Object.assign(Object.assign({},c),{upgrade:void 0}));
b();throw f;})};
var e=d();this.BA(b);this.u=e}return this.u};var lr=new kr("YtIdbMeta",{MD:{databases:!0},upgrade:function(a,b){1>b&&a.u.createObjectStore("databases",{keyPath:"actualName"})}});var pr,rr,Gea=["getAll","getAllKeys","getKey","openKeyCursor"],Hea=["getAll","getAllKeys","getKey","openKeyCursor"];g.u(xr,kr);xr.prototype.Px=function(a,b,c){c=void 0===c?{}:c;return(this.options.AQ?Kea:Jea)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))};
xr.prototype.BA=function(a){F1.Ms.call(F1,"authchanged",a)};
xr.prototype.CA=function(a){F1.Eb("authchanged",a)};
xr.prototype["delete"]=function(a){a=void 0===a?{}:a;return(this.options.AQ?Mea:Lea)(this.name,a)};g.u(yr,Iq);yr.reject=Iq.reject;yr.resolve=Iq.resolve;yr.all=Iq.all;g.u(Ar,g.im);g.Er.prototype.isReady=function(){!this.Ff&&tq()&&(this.Ff=g.Jp());return!!this.Ff};var Rea=[{GC:function(a){return"Cannot read property '"+a.key+"'"},
Sx:{TypeError:[{Hg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Hg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Hg:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,groups:["value","key"]},{Hg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{Hg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{Hg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{GC:function(a){return"Cannot call '"+a.key+"'"},
Sx:{TypeError:[{Hg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Hg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Hg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Hg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Hg:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Hg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var Lr;var Sea=new g.Sn;var Kr=new Set,Hr=0,Tea=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];Nr.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.wd=!0,g.To(b,function(){h.wd=!1;if(window.botguard)Or(h,c,d,f);else{var l=Uo(b),m=document.getElementById(l);m&&(So(l),m.parentNode.removeChild(m));g.Gr(new Sq("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Fe("SCRIPT"),e.textContent=a,e.nonce=Ma(),document.head.appendChild(e),document.head.removeChild(e),window.botguard?Or(this,c,d,f):g.Gr(Error("Unable to load Botguard from JS")))};
Nr.prototype.Gd=function(){return!!this.u};
Nr.prototype.dispose=function(){this.u=null};var Vea=[],Rr=!1;g.u(Tr,$a);Wr.prototype.then=function(a,b,c){return 1===this.Ha&&a?(a=a.call(c,this.u),xm(a)?a:Yr(a)):2===this.Ha&&b?(a=b.call(c,this.u),xm(a)?a:Xr(a)):this};
Wr.prototype.getValue=function(){return this.u};
Wr.prototype.$goog_Thenable=!0;g.u($r,$a);$r.prototype.name="BiscottiError";g.u(Zr,$a);Zr.prototype.name="BiscottiMissingError";var bs={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},as=null;var gs=g.Na("ytglobal.prefsUserPrefsPrefs_")||{};g.Ia("ytglobal.prefsUserPrefsPrefs_",gs,void 0);g.k=g.hs.prototype;g.k.get=function(a,b){ls(a);ks(a);var c=void 0!==gs[a]?gs[a].toString():null;return null!=c?c:b?b:""};
g.k.set=function(a,b){ls(a);ks(a);if(null==b)throw Error("ExpectedNotNull");gs[a]=b.toString()};
g.k.remove=function(a){ls(a);ks(a);delete gs[a]};
g.k.save=function(){g.vq(this.u,this.dump(),63072E3)};
g.k.clear=function(){g.Xb(gs)};
g.k.dump=function(){var a=[],b;for(b in gs)a.push(b+"="+encodeURIComponent(String(gs[b])));return a.join("&")};
Pa(g.hs);var Yea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),$ea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.u(g.rs,g.B);g.rs.prototype.R=function(a,b,c,d,e){c=Eo((0,g.z)(c,d||this.ra));c={target:a,name:b,callback:c};var f;e&&nCa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.G.push(c);return c};
g.rs.prototype.Eb=function(a){for(var b=0;b<this.G.length;b++)if(this.G[b]==a){this.G.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
g.rs.prototype.aa=function(){g.us(this);g.B.prototype.aa.call(this)};g.Ya(g.P,g.B);g.P.prototype.subscribe=function(a,b,c){return this.la()?0:this.rb.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.la()?!1:this.rb.unsubscribe(a,b,c)};
g.P.prototype.Ck=function(a){return this.la()?!1:this.rb.Gl(a)};
g.P.prototype.W=function(a,b){return this.la()?!1:this.rb.W.apply(this.rb,arguments)};g.u(g.ys,g.P);g.k=g.ys.prototype;g.k.cancel=function(){this.D&&(this.D=!1,this.W("dragend",0,0,null));this.B&&(this.B=!1,this.W("hoverend",0,0,null),g.us(this.u),xs(this))};
g.k.DD=function(a){g.us(this.u);zs(this,As("move"),this.BD);zs(this,As("out"),this.CD);zs(this,"touchstart",this.Xy);this.C&&zs(this,As("down"),this.Fx);var b=g.fp(a);a=ip(a);this.B=!0;this.W("hoverstart",a.x,a.y,b);this.W("hovermove",a.x,a.y,b)};
g.k.BD=function(a){var b=g.fp(a);a=ip(a);if(this.F){var c=this.F;this.F=null;if(hp(c)==b&&ge(ip(c),a))return}this.W("hovermove",a.x,a.y,b)};
g.k.CD=function(a){var b=ip(a),c=hp(a);try{if(c&&g.Me(this.G,c)){this.F=a;this.W("hovermove",b.x,b.y,c);return}}catch(d){}g.us(this.u);xs(this);this.B=!1;this.W("hoverend",b.x,b.y,c)};
g.k.UL=function(a){this.DD(a);this.Fx(a)};
g.k.Fx=function(a){if("number"!==typeof a.button||0==a.button){g.us(this.u);this.u.R(document,As("move"),this.TL);this.u.R(document,As("up"),this.YL);var b=g.fp(a);if(g.Ae)zs(this,"dragstart",this.eI);else if(g.jp(a),(g.RC||qg)&&b)a:{for(var c=b;c;){if(Qe(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.D=!0;a=ip(a);this.W("dragstart",a.x,a.y,b);this.W("dragmove",a.x,a.y,b)}};
g.k.eI=function(a){g.jp(a)};
g.k.TL=function(a){var b=g.fp(a);b==document&&(b=null);a=ip(a);this.W("hovermove",a.x,a.y,b);this.W("dragmove",a.x,a.y,b)};
g.k.YL=function(a){g.us(this.u);this.D=!1;var b=gp(a),c=g.fp(a);a=ip(a);b&&g.Me(this.G,b)?(zs(this,As("move"),this.BD),zs(this,As("out"),this.CD),zs(this,As("down"),this.Fx),zs(this,"touchstart",this.Xy),this.W("dragend",a.x,a.y,c)):(xs(this),this.B=!1,this.W("dragend",a.x,a.y,c),this.W("hoverend",a.x,a.y,c))};
g.k.Xy=function(a){var b=a.changedTouches[0];b&&(g.us(this.u),zs(this,"touchmove",this.TQ),zs(this,"touchend",this.cG),zs(this,"touchcancel",this.cG),this.K=b.identifier,a=g.fp(a),this.B||(this.B=!0,this.W("hoverstart",b.pageX,b.pageY,a)),this.W("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.W("dragstart",b.pageX,b.pageY,a),this.W("dragmove",b.pageX,b.pageY,a)))};
g.k.TQ=function(a){var b=Bs(this,a);b&&(this.C&&g.jp(a),a=g.fp(a),this.W("hovermove",b.pageX,b.pageY,a),this.C&&this.W("dragmove",b.pageX,b.pageY,a))};
g.k.cG=function(a){var b=Bs(this,a);if(b){g.us(this.u);xs(this);this.B=!1;var c=g.fp(a);this.C&&(this.N||g.jp(a),this.D=!1,this.W("dragend",b.pageX,b.pageY,c));this.W("hoverend",b.pageX,b.pageY,c)}};
g.k.aa=function(){this.C&&(g.Ae&&this.G.removeAttribute("draggable"),this.G.style.touchAction="");g.us(this.u);g.P.prototype.aa.call(this)};Cs.prototype.clone=function(){var a=new Cs,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Qa(c)?g.Zb(c):c}return a};var wxa=["embedded_player"],oCa=["share/get_web_player_share_panel"],pCa=["feedback"],qCa=["notification/modify_channel_preference"],kwa=["player"],rCa=["browse/edit_playlist"],sCa=["subscription/subscribe"],tCa=["subscription/unsubscribe"],mwa=["next","unplugged/watch_next"];var Ds=g.A().toString();var Rs=g.v.ytLoggingDocDocumentNonce_||Fs();g.Ia("ytLoggingDocDocumentNonce_",Rs,void 0);var cfa=1;Hs.prototype.getAsJson=function(){var a={};void 0!==this.u.trackingParams?a.trackingParams=this.u.trackingParams:(a.veType=this.u.veType,void 0!==this.u.veCounter&&(a.veCounter=this.u.veCounter),void 0!==this.u.elementIndex&&(a.elementIndex=this.u.elementIndex));void 0!==this.u.dataElement&&(a.dataElement=this.u.dataElement.getAsJson());void 0!==this.u.youtubeData&&(a.youtubeData=this.u.youtubeData);return a};
Hs.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Hs.prototype.isClientVe=function(){return!this.u.trackingParams&&!!this.u.veType};g.Ia("yt_logging_screen.getRootVeType",Ms,void 0);g.Ia("yt_logging_screen.getCurrentCsn",g.Ps,void 0);g.Ia("yt_logging_screen.getCttAuthInfo",Qs,void 0);g.Ia("yt_logging_screen.setCurrentScreen",Ss,void 0);Us.prototype.toString=function(){return this.topic};var uCa=g.Na("ytPubsub2Pubsub2Instance")||new g.Sn;g.Sn.prototype.subscribe=g.Sn.prototype.subscribe;g.Sn.prototype.unsubscribeByKey=g.Sn.prototype.Gl;g.Sn.prototype.publish=g.Sn.prototype.W;g.Sn.prototype.clear=g.Sn.prototype.clear;g.Ia("ytPubsub2Pubsub2Instance",uCa,void 0);var Xs=g.Na("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ia("ytPubsub2Pubsub2SubscribedKeys",Xs,void 0);var bt=g.Na("ytPubsub2Pubsub2TopicToKeys")||{};g.Ia("ytPubsub2Pubsub2TopicToKeys",bt,void 0);
var at=g.Na("ytPubsub2Pubsub2IsAsync")||{};g.Ia("ytPubsub2Pubsub2IsAsync",at,void 0);g.Ia("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.u(ft,Ts);var nt=new Us("screen-created",ft),lt=[],Vna=efa,mt=0;var vCa={FS:6827,GS:29434,QS:3611,nW:3854,iY:42993,Q0:4724,r2:96370,FR:27686,HR:85013,IR:23462,KR:42016,LR:62407,MR:26926,JR:43781,OR:51236,PR:79148,QR:50160,RR:77504,mS:87907,nS:18630,pS:54445,qS:80935,xS:105675,yS:37521,zS:47786,BS:98349,PS:7282,YS:32276,XS:76278,ZS:93911,bT:106531,cT:27259,dT:27262,eT:27263,gT:21759,hT:27107,iT:62936,jT:49568,lT:38408,mT:80637,nT:68727,oT:68728,pT:80353,qT:80356,rT:74610,sT:45707,tT:83962,uT:83970,vT:46713,wT:89711,xT:74612,yT:93265,zT:74611,BT:113533,CT:93252,
DT:99357,FT:94521,GT:114252,HT:113532,IT:94522,ET:94583,JT:88E3,KT:93253,LT:93254,NT:94387,OT:94388,PT:93255,QT:97424,AT:72502,RT:110111,ST:76019,TT:89431,UT:110466,VT:77240,XT:60508,ZT:105350,aU:73393,bU:113534,cU:92098,dU:84517,eU:83759,fU:80357,gU:86113,hU:72598,iU:72733,jU:107349,kU:97615,lU:31402,mU:84774,nU:95117,oU:98930,pU:98931,qU:98932,rU:43347,sU:45474,tU:100352,uU:84758,vU:98443,wU:74613,xU:74614,yU:64502,zU:74615,AU:74616,BU:74617,CU:77820,DU:74618,EU:93278,FU:93274,GU:93275,HU:93276,
IU:22110,JU:29433,RU:82047,SU:113550,TU:75836,UU:75837,XU:42352,bV:84512,cV:76065,eV:75989,iV:16623,jV:32594,kV:27240,mV:32633,wV:74858,zV:3945,yV:16989,AV:45520,BV:25488,CV:25492,EV:25494,GV:55760,HV:14057,IV:18451,JV:57204,KV:57203,LV:17897,MV:57205,NV:18198,OV:17898,PV:17909,QV:43980,RV:46220,ZV:11721,gW:49954,mW:96369,tW:56251,uW:25624,BW:16906,DW:99999,FW:68172,GW:27068,JW:47973,KW:72773,LW:26970,MW:26971,NW:96805,OW:17752,PW:73233,QW:109512,RW:22256,SW:14115,TW:22696,UW:89278,VW:89277,WW:109513,
XW:43278,YW:43459,ZW:43464,aX:89279,bX:43717,cX:55764,dX:22255,eX:89281,fX:40963,gX:43277,hX:43442,jX:91824,nX:96367,pX:36850,qX:72694,rX:37414,sX:36851,tX:73491,uX:54473,vX:43375,wX:46674,JX:32473,KX:72901,LX:72906,MX:50947,OX:50612,PX:50613,QX:50942,RX:84938,SX:84943,TX:84939,UX:84941,VX:84944,WX:84940,XX:84942,YX:35585,ZX:51926,aY:79983,bY:63238,cY:18921,dY:63241,eY:57893,fY:41182,gY:33424,hY:22207,jY:36229,kY:22206,lY:22205,mY:18993,nY:19001,oY:18990,pY:18991,qY:18997,rY:18725,sY:19003,tY:36874,
uY:44763,vY:33427,wY:67793,xY:22182,yY:37091,zY:34650,AY:50617,BY:47261,CY:22287,DY:25144,EY:97917,GY:62397,HY:36961,IY:108035,JY:27426,KY:27857,LY:27846,MY:27854,OY:69692,PY:61411,QY:39299,RY:38696,SY:62520,TY:36382,UY:108701,VY:50663,WY:36387,XY:14908,YY:37533,ZY:105443,aZ:61635,bZ:62274,cZ:65702,dZ:65703,eZ:65701,fZ:76256,iZ:37671,jZ:49953,pZ:36216,qZ:28237,rZ:39553,sZ:29222,tZ:26107,uZ:38050,vZ:26108,wZ:26109,xZ:26110,yZ:66881,zZ:28236,AZ:14586,EZ:57929,GZ:74723,HZ:44098,IZ:44099,JZ:23528,KZ:61699,
LZ:59149,MZ:101951,NZ:97346,OZ:95102,PZ:64882,QZ:63595,RZ:63349,SZ:95101,TZ:75240,UZ:27039,VZ:68823,WZ:21537,XZ:83464,YZ:75707,ZZ:83113,a_:101952,b_:101953,c_:79610,h_:24402,i_:24400,j_:32925,k_:57173,l_:64423,m_:64424,n_:33986,o_:100828,p_:21409,z_:11070,A_:11074,B_:17880,C_:14001,E_:30709,F_:30707,G_:30711,H_:30710,I_:30708,D_:26984,J_:63648,K_:63649,U_:51879,Z_:111059,d0:5754,e0:20445,j0:110386,l0:113746,m0:66557,t0:17310,u0:28631,x0:21589,y0:68012,z0:60480,A0:31571,E0:76980,F0:41577,G0:45469,
K0:38669,L0:13768,M0:13777,P0:62985,R0:59369,T0:43927,U0:43928,X0:12924,Z0:100355,d1:56219,e1:27669,f1:10337,b1:47896,j1:107598,k1:96639,l1:107536,m1:96661,n1:96658,o1:96660,q1:104443,r1:96659,t1:106442,x1:63667,y1:63668,z1:63669,F1:78314,O1:55761,S1:96368,T1:67374,U1:48992,Z1:49956,h2:31961,j2:26388,o2:23811,q2:5E4,s2:47355,t2:47356,u2:37935,v2:45521,x2:21760,y2:83769,z2:49977,A2:49974,B2:93497,C2:93498,D2:34325,F2:100081,G2:35309,H2:68314,I2:25602,J2:100339,L2:59018,M2:18248,N2:50625,O2:9729,P2:37168,
Q2:37169,R2:21667,S2:16749,T2:18635,U2:39305,V2:18046,X2:53969,Y2:8213,b3:93926,f3:102852,g3:110099,h3:22678,j3:69076,l3:100856,n3:17736,o3:3832,r3:55759,s3:64031,v3:93044,x3:93045,z3:34388,A3:17657,B3:17655,C3:39579,D3:39578,E3:77448,F3:8196,G3:11357,H3:69877,I3:8197,K3:82039};tt.prototype.clear=function(){this.B.clear();this.u.clear();this.C.clear()};
Pa(tt);var vt;g.ut=db(function(){var a=new bo;return a.isAvailable()?new g.Zn(a):null});
vt=db(function(){var a=new co;return a.isAvailable()?new g.Zn(a):null});var Et={},hfa=0;var rma={VU:1,lV:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};Kt.prototype.skip=function(a){this.u+=a};
Kt.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var Fy=!1;var H1={},wCa=(H1.predictStart="predictStart",H1.start="start",H1["continue"]="continue",H1.stop="stop",H1),rga={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var ku=!1;var fT=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();var Eu=!0;Ju.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};Pu.prototype.isEncrypted=function(){return this.u.info.isEncrypted()};
Pu.prototype.isVideo=function(){return!!this.u.info.video};
Pu.prototype.gk=function(){return this.u.gk(this)};g.k=Zu.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if($u(this,a)){var b=this.u[this.u.length-1];this.u[this.u.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);bv(this)}else this.u.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new Zu,c=new Zu,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{ws:b,nm:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.u[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&bv(this);this.C+this.u[this.B].length<=a&&this.B<this.u.length;)this.C+=this.u[this.B].length,this.B+=1;this.D=void 0}};jv.prototype.verify=function(a){if(this.info.nb!=this.u.getLength())return a.slength=this.info.nb.toString(),a.range=this.u.getLength().toString(),!1;if(1==this.info.u.info.containerType){if(8>this.info.nb||4==this.info.type)return!0;var b=kv(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.nb&&1936286840==b;if(3==this.info.type&&0==this.info.C)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.u.info.containerType){if(4>this.info.nb||4==this.info.type)return!0;c=kv(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.C)return 524531317==c||440786851==c}return!0};var zv={V7:function(a,b){a.splice(0,b)},
yK:function(a){a.reverse()},
Ja:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var WAa=/^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\/)/,Dv=/^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\/)/,
XAa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,zfa=/^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)|$))/,
xfa=/^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)|$))/,vfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.google\.com|currents\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
YAa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,wfa=/^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)/,ufa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|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|shopping\.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\/.*$)/,
sha=/^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)/,
rha=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com(\/|$)|^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|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.google\.com|shopping\.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)\?|(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]))\/?$|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)/,
xCa=/^(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\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.google\.com|https\:\/\/shopping\.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\.)?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$)/;Lv.prototype.set=function(a,b){this.u[a]!==b&&(this.u[a]=b,this.url="")};
Lv.prototype.get=function(a){Mv(this);return this.u[a]||null};
Lv.prototype.qd=function(){this.url||(this.url=Afa(this));return this.url};
Lv.prototype.clone=function(){var a=new Lv(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.u=g.Zb(this.u);a.url=this.url;return a};Uv.prototype.set=function(a,b){this.Vf.get(a);this.u[a]=b;this.url=""};
Uv.prototype.get=function(a){return this.u[a]||this.Vf.get(a)};
Uv.prototype.qd=function(){this.url||(this.url=Bfa(this));return this.url};cw.prototype.rg=function(){return Qu(this.u[0])};var I1={},RB=(I1.WIDTH={name:"width",video:!0,valid:640,invalid:99999},I1.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},I1.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},I1.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},I1.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},I1.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},I1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},I1.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},I1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},I1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},I1);var qw={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",338:"so",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",394:"1",395:"1",
396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var wha={uS:"auto",f2:"tiny",oX:"light",D1:"small",hZ:"medium",lX:"large",fW:"hd720",bW:"hd1080",cW:"hd1440",dW:"hd2160",eW:"hd2880",lW:"highres",UNKNOWN:"unknown"};var J1;J1={};g.kw=(J1.auto=0,J1.tiny=144,J1.light=144,J1.small=240,J1.medium=360,J1.large=480,J1.hd720=720,J1.hd1080=1080,J1.hd1440=1440,J1.hd2160=2160,J1.hd2880=2880,J1.highres=4320,J1);var ow="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");g.k=rw.prototype;g.k.La=function(){return this.video};
g.k.Jd=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Cd};
g.k.isAudio=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};g.k=Aw.prototype;g.k.We=function(){};
g.k.en=function(){};
g.k.me=function(){return!!this.u&&this.index.Fc()};
g.k.xj=function(){};
g.k.SC=function(){return!1};
g.k.zl=function(){};
g.k.Ul=function(){};
g.k.gk=function(){};
g.k.fj=function(){};
g.k.rs=function(){};
g.k.TC=function(a){return[a]};
g.k.hu=function(a){return[a]};
g.k.Tt=function(){};
g.k.Ur=function(){};g.k=g.Bw.prototype;g.k.Ct=function(a){return this.B[a]};
g.k.Fe=function(a){return this.C[a]/this.F};
g.k.Zr=ba(1);g.k.Ce=function(){return NaN};
g.k.BB=function(){return null};
g.k.getDuration=function(a){a=this.nB(a);return 0<=a?a/this.F:-1};
g.k.nB=function(a){return a+1<this.u||this.D?this.C[a+1]-this.C[a]:-1};
g.k.Zg=function(){return 0};
g.k.Qb=function(){return this.u-1};
g.k.fk=function(){return this.D?this.C[this.u]/this.F:NaN};
g.k.wc=function(){return 0};
g.k.Tm=function(){return this.u};
g.k.pw=function(){return""};
g.k.bh=function(a){a=g.Ab(this.C.subarray(0,this.u),a*this.F);return 0<=a?a:Math.max(0,-a-2)};
g.k.Fc=function(){return 0<=this.Qb()};
g.k.vB=function(a,b){if(a>=this.Qb())return 0;for(var c=0,d=this.Fe(a)+b,e=a;e<this.Qb()&&d>this.Fe(e);e++)c=Math.max(c,(e+1<this.u||this.D?this.B[e+1]-this.B[e]:-1)/this.getDuration(e));return c};
g.k.resize=function(a){a+=2;var b=this.B;this.B=new Float64Array(a+1);var c=this.C;this.C=new Float64Array(a+1);for(a=0;a<this.u+1;a++)this.B[a]=b[a],this.C[a]=c[a]};
g.k.cap=function(a,b){Cw(this);this.D=!0;this.C[this.u]=b;this.B[this.u]=a};g.u(Dw,Aw);g.k=Dw.prototype;g.k.zl=function(a){var b=new Pu(1,this,this.initRange,"initInfo"),c=new Pu(2,this,this.indexRange,"indexInfo"),d=[],e=[b];Su(b,c)?e.push(c):(d.push(new cw([c])),a=0);isNaN(this.K)&&(a=0);b=e[e.length-1];a=Math.min(a,this.K-(b.range.end-e[0].range.start+1));0<a&&(a=Lu(b.range.end+1,a),e.push(new Pu(4,this,a,"tbdRange")));d.push(new cw(e));return d};
g.k.rs=function(a){if(1==a.info.type){if(this.u)return;this.u=gv(a.u)}else if(2==a.info.type){if(this.N||0<=this.index.Qb())return;if(g.nv(this.info)){var b=this.index,c=kv(a);a=a.info.range.start;var d=g.Yt(c,0,1936286840);c=gu(d);b.F=c.ru;var e=c.gI;b.B[0]=c.dB+a+d.size;b.C[0]=e;b.D=!0;a=c.pu.length;for(d=0;d<a;d++){e=b;var f=c.jy[d],h=c.pu[d];e.u++;Cw(e);e.B[e.u]=e.B[e.u-1]+f;e.C[e.u]=e.C[e.u-1]+h}}else this.N=kv(a)}if(this.info.Jd()&&this.u&&this.N){c=new DataView(this.u.buffer);b=this.index;
a=this.N;d=this.indexRange.end;e=new nu(c);c=Du(e);if(null!=c&&(b.F=c.My/c.Ly,e=new nu(a),a=Fu(e,c.jq,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.ol,f=f.vr,Cw(d),d.B[d.u]=e,d.C[d.u]=f,d.u++;b.cap(c.ry+c.jq,c.duration)}this.N=null}};
g.k.TC=function(a){for(var b=this.hu(a.info),c=a.info.range.start+a.info.C,d=a.C,e=[],f=0;f<b.length;f++){var h=b[f].nb;h=a.u.split(b[f].range.start+b[f].C-c).nm.split(h).ws;e.push(new jv(b[f],h,d));d=!1}return e};
g.k.hu=function(a){for(var b=a.range.start+a.C,c=0;c<this.index.Qb()&&b>=this.index.Ct(c+1);)c++;return Ew(this,c,b,a.nb).u};
g.k.xj=function(a){return this.me()?!0:isNaN(this.K)?!1:a.range.end+1<this.K};
g.k.Ul=function(a,b){this.xj(a);if(!this.me()){var c=Lu(a.range.end+1,b);c.end+1>this.K&&(c=new Ju(c.start,this.K-1));c=[new Pu(4,a.u,c,"getNextRequestInfoByLength")];return new cw(c)}4==a.type&&(c=this.hu(a),a=c[c.length-1]);c=0;var d=a.range.start+a.C+a.nb;3==a.type&&(c=a.B,d==a.range.end+1&&(c+=1));return Ew(this,c,d,b)};
g.k.gk=function(){return null};
g.k.fj=function(a,b){var c=this.index.bh(a);b&&(c=Math.min(this.index.Qb(),c+1));return Ew(this,c,this.index.Ct(c),0)};
g.k.We=function(){return!0};
g.k.en=function(){return!1};
g.k.Ur=function(){return this.indexRange.length+this.initRange.length};
g.k.Tt=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};var Fw=void 0;var Hw=null;var K1={},Sw=function(a,b){var c;return function(){c||(c=new xr(a,b));return c}}("yt-player-local-media",{MD:(K1.index=!0,K1.media=!0,K1.metadata=!0,K1.playerdata=!0,K1),
upgrade:function(a,b){2>b&&(a.u.createObjectStore("index",void 0),a.u.createObjectStore("media",void 0));3>b&&a.u.createObjectStore("metadata",void 0);4>b&&a.u.createObjectStore("playerdata",void 0)},
version:4}),Pw=!1;$w.prototype.then=function(a,b){return this.promise.then(a,b)};
$w.prototype.resolve=function(a){this.B(a)};
$w.prototype.reject=function(a){this.u(a)};g.k=fx.prototype;g.k.Wd=function(a){return"content-type"===a?this.vk.get("type"):""};
g.k.abort=function(){};
g.k.Xm=function(){return!0};
g.k.So=function(){return this.range.length};
g.k.lt=function(){return this.loaded};
g.k.us=function(){return!!this.u.getLength()};
g.k.gh=function(){return!!this.u.getLength()};
g.k.mt=function(){var a=this.u;this.u=new Zu;return a};
g.k.nx=function(){return this.u};
g.k.Ii=function(){return!0};
g.k.iy=function(){return!!this.error};
g.k.Sl=function(){return this.error};hx.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};var iga=0;g.k=zx.prototype;g.k.start=function(a){var b=this,c={method:this.method,credentials:this.credentials};this.headers&&(c.headers=new Headers(this.headers));this.body&&(c.body=this.body);this.D&&(c.signal=this.D.signal);a=new Request(a,c);fetch(a).then(function(d){b.status=d.status;if(d.ok&&d.body)b.status=b.status||242,b.C=d.body.getReader(),b.la()?b.C.cancel("Cancelling"):(b.K=d.headers,b.ba(),Bx(b));else b.onDone()},function(d){b.onError(d)}).then(void 0,M)};
g.k.onDone=function(){if(!this.la()){this.P=!0;if(Ax(this)&&!this.u.getLength()&&!this.G&&this.B){yx(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.u.append(a);this.B+=a.length}this.X()}};
g.k.onError=function(a){this.errorMessage=String(a);this.G=!0;this.onDone()};
g.k.Wd=function(a){return this.K?this.K.get(a):null};
g.k.Xm=function(){return!!this.K};
g.k.lt=function(){return this.B};
g.k.So=function(){return+this.Wd("content-length")};
g.k.us=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.gh=function(){if(this.P)return!!this.u.getLength();var a=this.policy.C;if(a&&this.N+a>Date.now())return!1;a=this.So()||0;a=Math.max(16384,this.policy.u*a);this.V||(a=Math.max(a,16384));this.policy.Ue&&yx(this)&&(a=1);return this.u.getLength()>=a};
g.k.mt=function(){this.gh();this.N=Date.now();this.V=!0;var a=this.u;this.u=new Zu;return a};
g.k.nx=function(){this.gh();return this.u};
g.k.la=function(){return this.aborted};
g.k.abort=function(){this.C&&this.C.cancel("Cancelling");this.D&&this.D.abort();this.aborted=!0};
g.k.Ii=function(){return!0};
g.k.iy=function(){return this.G};
g.k.Sl=function(){return this.errorMessage};g.k=Cx.prototype;g.k.onDone=function(){if(!this.la){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.B=!0;this.C()}};
g.k.Yd=function(a){this.la||(this.status=this.xhr.status,this.D(a.timeStamp,a.loaded))};
g.k.Xm=function(){return 2<=this.xhr.readyState};
g.k.Wd=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Fo(Error("Could not read XHR header "+a)),""}};
g.k.So=function(){return+this.Wd("content-length")};
g.k.lt=function(){return this.u};
g.k.us=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.gh=function(){return this.B&&!!this.response&&!!this.response.byteLength};
g.k.mt=function(){this.gh();var a=this.response;this.response=void 0;return new Zu([new Uint8Array(a)])};
g.k.nx=function(){this.gh();return new Zu([new Uint8Array(this.response)])};
g.k.abort=function(){this.la=!0;this.xhr.abort()};
g.k.Ii=function(){return!1};
g.k.iy=function(){return!1};
g.k.Sl=function(){return""};Ex.prototype.uF=function(a){var b=this;this.u++;this.C+=a;Dx.forEach(function(c,d){a<c||b.B[d]++})};
Ex.prototype.toString=function(){return""};
var Dx=[20,100,500,2E3],Kx=new Fx,L1,yCa=ro.EXPERIMENT_FLAGS;L1=yCa?yCa.html5_enable_profiler:void 0;var Gx=null!==L1&&void 0!==L1?L1:!1;var hBa=Ix("plssv",function(a){a.unstorable||(g.wt("yt-player-volume",a),g.wt("yt-player-volume",a,2592E3))}),AAa=Ix("plssv",function(){var a=g.xt("yt-player-volume")||{},b=a.volume;
return{volume:isNaN(b)?100:g.be(Math.floor(b),0,100),muted:!!a.muted}}),wga=Ix("plssbs",function(a){g.wt("yt-player-bandwidth",a,2592E3)}),uga=Ix("plssbs",function(){return g.xt("yt-player-bandwidth")||{}});g.k=Wx.prototype;g.k.qd=function(){return this.D.qd()};
g.k.KP=function(a,b,c){if(!this.la()&&this.u){this.G=this.u.status;this.B.ra||Zx(this,!1);var d=this.timing;a=a>d.u&&4E12>a?a:g.A();ux(d,a,b);50>a-d.D&&vx(d)&&3!==lx(d)||rx(d,a,b,c);b=this.timing;b.B>b.Ka&&mx(b,b.B)&&3>this.state?dy(this,3):this.u.Ii()&&hy(this)&&dy(this,Math.max(2,this.state))}};
g.k.JP=function(){if(!this.la()&&this.u){if(!this.X&&this.u.Xm()&&this.u.Wd("X-Walltime-Ms")){var a=parseInt(this.u.Wd("X-Walltime-Ms"),10);this.X=(g.A()-a)/1E3}this.u.Xm()&&this.u.Wd("X-Restrict-Formats-Hint")&&this.B.PA&&!Rx()&&g.wt("yt-player-headers-readable",!0,2592E3);a=parseInt(this.u.Wd("X-Head-Seqnum"),10);var b=parseInt(this.u.Wd("X-Head-Time-Millis"),10);this.Y=a||this.Y;this.ba=b||this.ba}};
g.k.IP=function(){var a=this.u;!this.la()&&a&&(this.ea.stop(),this.G=a.status,a=oga(this,a),6==a?Vx(this):dy(this,a))};
g.k.mQ=function(){if(!this.la()){var a=g.A(),b=!1;vx(this.timing)?(a=this.timing.P,kx(this.timing),this.timing.P-a>=.8*this.ra?(this.K++,b=5<=this.K):this.K=0):(b=this.timing,b.ti&&wx(b,g.A()),a-=b.V,this.B.Li&&0<a&&(this.K+=1),b=Xv(Ux(this))*this.B.sz,b=a>1E3*b);this.K&&this.V&&this.V(this);b?gy(this,!1):this.ea.start()}};
g.k.isFailed=function(){return 6==this.state};
g.k.la=function(){return-1==this.state};
g.k.dispose=function(){this.info.rg()&&5!=this.state&&(this.info.u[0].u.F=!1);dy(this,-1);this.ea.dispose();this.B.ee||fy(this)};
var lga=0,cy=-1;ly.prototype.skip=function(a){this.offset+=a};var By=!1;g.u(oy,g.P);oy.prototype.getDuration=function(){return this.D.index.fk()};Zy.prototype.getDuration=function(){return this.u.index.fk()};Bz.prototype.C=function(a,b){var c=Math.pow(this.alpha,a);this.B=b*(1-c)+c*this.B;this.D+=a};
Bz.prototype.u=function(){return this.B/(1-Math.pow(this.alpha,this.D))};Dz.prototype.C=function(a,b){var c=Math.min(this.B,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.B&&(this.D=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.B;this.G=!0};
Dz.prototype.u=function(){return this.K?(Ez(this,this.F-this.K)+Ez(this,this.F)+Ez(this,this.F+this.K))/3:Ez(this,this.F)};Kz.prototype.setPlaybackRate=function(a){this.C=Math.max(1,a)};
Kz.prototype.getPlaybackRate=function(){return this.C};g.k=g.Pz.prototype;g.k.qD=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.bi(a))?a.duration:0};
g.k.nB=function(a){return this.getDuration(a)};
g.k.Zg=function(){return this.segments.length?this.segments[0].gb:-1};
g.k.Ce=function(a){return(a=this.bi(a))?a.ingestionTime:NaN};
g.k.BB=function(a){return(a=this.bi(a))?a.u:null};
g.k.Qb=function(){return this.segments.length?this.segments[this.segments.length-1].gb:-1};
g.k.fk=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.wc=function(){return this.segments[0].startTime};
g.k.Tm=function(){return this.segments.length};
g.k.Ct=function(){return 0};
g.k.bh=function(a){return(a=this.Om(a))?a.gb:-1};
g.k.pw=function(a){return(a=this.bi(a))?a.C:""};
g.k.Fe=function(a){return(a=this.bi(a))?a.startTime:0};
g.k.Zr=ba(0);g.k.Fc=function(){return 0<this.segments.length};
g.k.bi=function(a){a=g.Ab(this.segments,new Mu(a,0,0,0,""),function(b,c){return b.gb-c.gb});
return 0<=a?this.segments[a]:null};
g.k.Om=function(a){a=g.Ab(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.k.append=function(a){if(0!=a.length)if(a=g.ub(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.gb(this.segments).endTime:0,c=a[0].gb-this.Qb();1<c&&pb(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.k.vB=function(){return 0};g.u(Rz,Aw);g.k=Rz.prototype;g.k.We=function(){return!1};
g.k.en=function(){return!1};
g.k.SC=function(){return this.K};
g.k.zl=function(){if(this.K)return[];var a=new Pu(1,this,this.initRange,"getMetadataRequestInfos");return[new cw([a],this.X)]};
g.k.Ul=function(){return null};
g.k.gk=function(a){this.xj(a);return this.Vl(a.D?a.B+1:a.B,!1)};
g.k.fj=function(a,b){b=void 0===b?!1:b;var c=this.index.bh(a);b&&(c=Math.min(this.index.Qb(),c+1));return this.Vl(c,!0)};
g.k.rs=function(a){this.u=new Uint8Array(kv(a).buffer)};
g.k.xj=function(a){return 0==a.nb?!0:this.index.Qb()>a.B&&this.index.Zg()<=a.B+1};
g.k.update=function(a,b,c){this.index.append(a);Qz(this.index,c);this.N=b};
g.k.me=function(){return this.K?!0:Aw.prototype.me.call(this)};
g.k.Vl=function(a,b){var c=this.index.pw(a),d=this.index.Fe(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.u?this.info.u*e:1E3;var h=!b,l=f;f=a==this.index.Qb()&&!this.N&&0<f;d=new Pu(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,h);return new cw([d],c)};
g.k.Ur=function(){return this.K?0:this.initRange.length};
g.k.Tt=function(){return!1};g.u(Tz,g.Pz);g.k=Tz.prototype;g.k.Zg=function(){return this.B?this.segments.length?this.Om(this.wc()).gb:-1:g.Pz.prototype.Zg.call(this)};
g.k.wc=function(){if(this.F)return 0;if(!this.B)return g.Pz.prototype.wc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.gb(this.segments).endTime-this.C,0);return 0<this.N&&this.Om(a).gb<this.N?this.bi(this.N).startTime:a};
g.k.fk=function(){if(!this.segments.length)return g.Pz.prototype.fk.call(this);var a=this.Qb();if(!this.B||a<=this.segments[this.segments.length-1].gb)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new Mu(a,Math.max(0,b.startTime-(b.gb-a)*this.u),this.u,0,"sq/"+a,void 0,void 0,!0)}return null!=this.K&&a.pending&&3===this.K?this.F?Math.min(this.C,a.startTime):a.startTime:this.F?Math.min(this.C,a.endTime):a.endTime};
g.k.Tm=function(){return this.B?this.segments.length?this.Qb()-this.Zg()+1:0:g.Pz.prototype.Tm.call(this)};
g.k.Qb=function(){var a=Math.min(this.V,Math.max(g.Pz.prototype.Qb.call(this),this.G)),b=1E3*this.C;b=0<this.D&&this.D<b;this.F&&0<this.C&&0<this.G&&!b&&(b=this.Om(this.C))&&(a=Math.min(b.gb-1,a));return a};
g.k.Sm=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.qD=function(a){var b=Uz(this,a.gb);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.P&&0==a.gb%(300/this.u)){var c=this.segments[0].gb,d=Math.floor(this.P/this.u);a=a.gb-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Om=function(a){if(!this.B)return g.Pz.prototype.Om.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].gb-Math.ceil((this.segments[0].startTime-a)/this.u));else if(a>=b.endTime)b=b.gb+Math.floor((a-b.endTime)/this.u+1);else{b=Bb(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.gb-b.gb-1))+1)+b.gb}return this.bi(b)};
g.k.bi=function(a){if(!this.B)return g.Pz.prototype.bi.call(this,a);if(!this.segments.length)return null;var b=Uz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.u;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].gb-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.gb-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.gb-d.gb-1)*(a-d.gb-1));return new Mu(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.u(Wz,Rz);g.k=Wz.prototype;g.k.en=function(){return!0};
g.k.me=function(){return!0};
g.k.xj=function(a){return!a.F};
g.k.zl=function(){return[]};
g.k.fj=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new Pu(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Jg,void 0,this.Jg*this.info.u);return new cw([c],"")}return Rz.prototype.fj.call(this,a,b)};
g.k.Vl=function(a,b){var c=void 0===c?!1:c;if(Vz(this.index,a))return Rz.prototype.Vl.call(this,a,b);var d=this.index.Fe(a),e=b?0:this.Jg*this.info.u,f=!b;c=new Pu(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.Qb()&&!this.N&&0<e,f);return new cw([c],0<=a?"sq/"+a:"")};aA.prototype.update=function(a,b){var c=void 0;this.B&&(c=this.B);var d=new aA,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+Xz(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+Xz(a,"startNumber")||0;d.F=h;var m=h;var n=+Xz(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse($z(Xz(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"==a.parentNode.tagName;d.C&&(d.K=Xz(a,"media"));var p=c?l-c.gb:1;d.G=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=
e.next()){p=p.value;for(var r=+p.getAttribute("d")/f,t=(+p.getAttribute("yt:sid")||0)/f,w=+p.getAttribute("r")||0,x=0;x<=w;x++)if(c&&l<=c.gb)l++;else{var y=new yga(l,m,r,n+t,h);d.u.push(y);var D=y.startSecs;y=p.getAttribute("yt:cuepointTimeOffset");var E=p.getAttribute("yt:cuepointDuration");if(y&&E){y=parseFloat(y);D=(Fy?+y/f:-y/f)+D;E=parseFloat(E)/f;var H=p.getAttribute("yt:cuepointContext")||null,N=p.getAttribute("yt:cuepointIdentifier");var J=p.getAttribute("yt:cuepointEvent");J=wCa[J]||"unknown";
y=new St(D,E,H,N,J,y)}else y=null;y&&d.D.push(y);l++;m+=r;h+=r;n+=r+t}}d.u.length&&(d.B=g.gb(d.u))}this.G=d.G;this.B=d.B||this.B;vb(this.u,d.u);vb(this.D,d.D);this.C=d.C;this.K=d.K;-1===this.F&&(this.F=d.getStreamTimeOffset())};
aA.prototype.getStreamTimeOffset=function(){return-1===this.F?0:this.F};g.u(bA,Aw);g.k=bA.prototype;g.k.We=function(){return!1};
g.k.en=function(){return!1};
g.k.zl=function(){if(this.K){var a=new Pu(1,this,null,"otfInit");return[new cw([a],this.K)]}a=new Pu(1,this,this.initRange,"otfInitInfo");var b=new Pu(2,this,this.indexRange,"otfIndexInfo");return[new cw([a,b])]};
g.k.Ul=function(){return null};
g.k.gk=function(a){this.xj(a);return cA(this,Uu(a),!1)};
g.k.fj=function(a,b){b=void 0===b?!1:b;var c=this.index.bh(a);b&&(c=Math.min(this.index.Qb(),c+1));return cA(this,c,!0)};
g.k.rs=function(a){if(1==a.info.type)this.u||(this.u=gv(a.u)),a.B&&"http://youtube.com/streaming/otf/durations/112015"==a.B.uri&&Gga(this,a.B);else if(2==a.info.type)if(g.nv(this.info)){if(!this.index.Fc()&&(a=g.Yt(kv(a),0,1936286840))){var b=[],c=gu(a);a=c.jy.length;var d=c.ru,e=c.jy,f=c.pu;c=this.indexRange.end+c.dB+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new Mu(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.Jd()&&this.u&&(d=new nu(new DataView(this.u.buffer)),
b=Du(d))&&(d=new nu(kv(a)),a=Fu(d,b.jq,this.indexRange.end))){d=[];e=b.Ly/b.My;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.vr*e,d.push(new Mu(c,m,l.vr*e-m,NaN,"range/"+h.ol+"-"+(l.ol-1)));c=a[f].vr*e;d.push(new Mu(f,c,b.duration*e-c,NaN,"range/"+a[f].ol+"-"+(b.ry+b.jq)));this.index.append(d)}};
g.k.xj=function(a){return 0==a.nb?!0:this.index.Qb()>a.B&&this.index.Zg()<=a.B+1};
g.k.Ur=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.Tt=function(){return!1};dA.prototype.getName=function(){return this.name};
dA.prototype.getId=function(){return this.id};
dA.prototype.getIsDefault=function(){return this.isDefault};
dA.prototype.toString=function(){return this.name};
dA.prototype.getName=dA.prototype.getName;dA.prototype.getId=dA.prototype.getId;dA.prototype.getIsDefault=dA.prototype.getIsDefault;eA.prototype.start=function(){return 0};
eA.prototype.end=function(){return Infinity};g.k=fA.prototype;g.k.addEventListener=function(){};
g.k.removeEventListener=function(){};
g.k.dispatchEvent=function(){return!1};
g.k.abort=function(){};
g.k.remove=function(){};
g.k.appendBuffer=function(){};var Jga=/action_display_post/;g.u(iA,g.P);g.k=iA.prototype;g.k.isFailed=function(){return 3==this.Ha};
g.k.oj=function(){return g.Mb(this.u,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.k.pj=function(){return g.Mb(this.u,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.k.kj=function(){return g.Mb(this.u,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.k.bn=function(){return g.Mb(this.u,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.k.TP=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Ag=this.C=!0;this.F||(this.F=new Aga);Ega(this.F,a,this.ra);this.W("refresh");for(a=0;a<b.length;a++){var c=tA(this,b[a]),d=this.isLive&&g.nv(c)&&this.Aa;if(!this.u[c.id]){var e=nA(Yz(b[a],"BaseURL").textContent),f=Yz(b[a],"Initialization"),h=Xz(f,"sourceURL");f=Ku(Xz(f,"range"));d&&(h="",f=void 0);this.u[c.id]=new Rz(e,c,h,null===
f?void 0:f)}c=this.u[c.id];e=Xz(b[a],"id","AdaptationSet");e=""!=e?e:Xz(b[a],"mimetype","AdaptationSet");h=this.F;e=h.C[c.info.id]||h.B[e]||h.u||null;h=e.u;!this.B&&e.getStreamTimeOffset()&&(this.B=e.getStreamTimeOffset());if(e.C)for(d=[],h=g.q(h),f=h.next();!f.done;f=h.next()){f=f.value;for(var l=c.info.id,m=8*c.info.u,n=f.gb,p=f.startSecs,r=e.K.split("$$"),t=0;t<r.length;t++)r[t]=r[t].replace("$RepresentationID$",l),r[t]=r[t].replace("$Number$",n.toString()),r[t]=r[t].replace("$Bandwidth$",m.toString()),
r[t]=r[t].replace("$Time$",p.toString());d.push(new Mu(f.gb,f.startSecs,f.durationSecs,f.u,r.join("$"),null,f.B))}else{e=wb(Yz(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.G);f=[];for(l=0;l<e.length;l++)f.push(Uga(e[l],h[l],d));d=f}c.update(d,this.isLive,this.ea)}Fga(this.F);return!0}this.duration=Zz(Xz(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){h=b[a];c=tA(this,h);e=Yz(h,"BaseURL");d=nA(e.textContent);f=Yz(h,"SegmentBase");h=Ku(f.attributes.indexRange.value);f=Ku(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(rA(this,"contentLength")),10);c=new Dw(d,c,f,h,e,NaN);if(!c){b=!1;break a}lA(this,c)}b=!0}return b};
g.k.SI=function(a){if(this.la())return this;this.Y=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.K=1E3*Zz(Xz(a,"minimumUpdatePeriod"))||Infinity;if(!this.ba){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.da=b}this.isLive=Infinity>this.K&&this.za;this.ea=parseInt(Xz(a,rA(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse($z(Xz(a,rA(this,"mpdResponseTime")))))this.N=(g.A()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.jh(a.getElementsByTagName("Period"),this.TP,this);this.Ha=2;this.W("loaded");wA(this);return this};
g.k.UI=function(a){this.Y=a.xhr.status;this.Ha=3;this.W("loaderror");return Em(a.xhr)};
g.k.refresh=function(){if(1!=this.Ha&&!this.la()){var a=g.Jd(this.sourceUrl,{start_seq:Vga(this).toString()});Lm(uA(this,a),function(){})}};
g.k.resume=function(){wA(this)};
g.k.Dd=function(){if(this.isManifestless&&this.G&&xA(this))return xA(this);var a=this.u,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Fc()&&(f.C&&(b=!0),h=h.fk(),f.info.isAudio()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.wc=function(){if(this.isManifestless&&this.vj&&this.B&&this.vj-this.B)return this.vj&&this.B?this.vj-this.B:0;var a=this.u,b;for(b in a){var c=a[b].index;if(c.Fc())return c.wc()}return 0};
g.k.getStreamTimeOffset=function(){return this.B};
g.k.Ce=function(a){for(var b in this.u){var c=this.u[b].index;if(c.Fc()){var d=c.bh(a),e=c.Ce(d);if(e)return e+a-c.Fe(d)}}return NaN};
var oA=null,pA=!1,sA={commentary:1,alternate:2,dub:3,main:4};g.u(zA,g.P);zA.prototype.seek=function(a){a!=this.D&&(this.G=0);this.D=a;var b=this.B.B,c=this.u.B,d=this.u.K,e=BA(this.B,a,this.B.K);d=BA(this.u,this.P.ka?a:e,d);a=Math.max(a,e,d);this.C=!0;this.F.isManifestless&&(AA(this.B,b),AA(this.u,c));return a};
var $ga=2/24;g.u(FA,Ts);g.u(GA,Ts);var dha=new Us("aft-recorded",FA),oB=new Us("timing-sent",GA);var M1=window,kB=M1.performance||M1.mozPerformance||M1.msPerformance||M1.webkitPerformance||new cha;var PA=!1,eha=(0,g.z)(kB.clearResourceTimings||kB.webkitClearResourceTimings||kB.mozClearResourceTimings||kB.msClearResourceTimings||kB.oClearResourceTimings||g.Oa,kB);var WA=g.v.ytLoggingLatencyUsageStats_||{};g.Ia("ytLoggingLatencyUsageStats_",WA,void 0);UA.prototype.tick=function(a,b,c){XA(this,"tick_"+a+"_"+b)||g.Dq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
UA.prototype.info=function(a,b){var c=Object.keys(a).join("");XA(this,"info_"+c+"_"+b)||(c=Object.assign({},a),c.clientActionNonce=b,g.Dq("latencyActionInfo",c))};
UA.prototype.span=function(a,b){var c=Object.keys(a).join("");XA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Dq("latencyActionSpan",a))};var N1={},dB=(N1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",N1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",N1.app_startup="LATENCY_ACTION_APP_STARTUP",N1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",N1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",N1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",N1.browse="LATENCY_ACTION_BROWSE",N1.channels="LATENCY_ACTION_CHANNELS",N1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",N1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
N1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",N1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",N1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",N1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",N1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",N1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",N1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",N1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",
N1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",N1.chips="LATENCY_ACTION_CHIPS",N1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",N1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",N1.embed="LATENCY_ACTION_EMBED",N1.home="LATENCY_ACTION_HOME",N1.library="LATENCY_ACTION_LIBRARY",N1.live="LATENCY_ACTION_LIVE",N1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",N1.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",N1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
N1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",N1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",N1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",N1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",N1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",N1.prebuffer="LATENCY_ACTION_PREBUFFER",N1.prefetch="LATENCY_ACTION_PREFETCH",N1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",N1.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",N1.results=
"LATENCY_ACTION_RESULTS",N1.search_ui="LATENCY_ACTION_SEARCH_UI",N1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",N1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",N1.settings="LATENCY_ACTION_SETTINGS",N1.tenx="LATENCY_ACTION_TENX",N1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",N1.watch="LATENCY_ACTION_WATCH",N1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",N1["watch,watch7"]="LATENCY_ACTION_WATCH",N1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",N1["watch,watch7ad"]="LATENCY_ACTION_WATCH",
N1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",N1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",N1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",N1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",N1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",N1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",N1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",N1["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",N1["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
N1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",N1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",N1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",N1),O1={},gB=(O1.ad_allowed="adTypesAllowed",O1.yt_abt="adBreakType",O1.ad_cpn="adClientPlaybackNonce",O1.ad_docid="adVideoId",O1.yt_ad_an="adNetworks",O1.ad_at="adType",O1.aida="appInstallDataAgeMs",O1.browse_id="browseId",O1.p="httpProtocol",O1.t="transportProtocol",O1.cpn="clientPlaybackNonce",O1.ccs=
"creatorInfo.creatorCanaryState",O1.cseg="creatorInfo.creatorSegment",O1.csn="clientScreenNonce",O1.docid="videoId",O1.GetHome_rid="requestIds",O1.GetSearch_rid="requestIds",O1.GetPlayer_rid="requestIds",O1.GetWatchNext_rid="requestIds",O1.GetBrowse_rid="requestIds",O1.GetLibrary_rid="requestIds",O1.is_continuation="isContinuation",O1.is_nav="isNavigation",O1.b_p="kabukiInfo.browseParams",O1.is_prefetch="kabukiInfo.isPrefetch",O1.is_secondary_nav="kabukiInfo.isSecondaryNav",O1.prev_browse_id="kabukiInfo.prevBrowseId",
O1.query_source="kabukiInfo.querySource",O1.voz_type="kabukiInfo.vozType",O1.yt_lt="loadType",O1.mver="creatorInfo.measurementVersion",O1.yt_ad="isMonetized",O1.nr="webInfo.navigationReason",O1.nrsu="navigationRequestedSameUrl",O1.ncnp="webInfo.nonPreloadedNodeCount",O1.pnt="performanceNavigationTiming",O1.prt="playbackRequiresTap",O1.plt="playerInfo.playbackType",O1.pis="playerInfo.playerInitializedState",O1.paused="playerInfo.isPausedOnLoad",O1.yt_pt="playerType",O1.fmt="playerInfo.itag",O1.yt_pl=
"watchInfo.isPlaylist",O1.yt_pre="playerInfo.preloadType",O1.yt_ad_pr="prerollAllowed",O1.pa="previousAction",O1.yt_red="isRedSubscriber",O1.rce="mwebInfo.responseContentEncoding",O1.scrh="screenHeight",O1.scrw="screenWidth",O1.st="serverTimeMs",O1.ssdm="shellStartupDurationMs",O1.br_trs="tvInfo.bedrockTriggerState",O1.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",O1.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",O1.label="tvInfo.label",O1.is_mdx="tvInfo.isMdx",O1.preloaded="tvInfo.isPreloaded",
O1.upg_player_vis="playerInfo.visibilityState",O1.query="unpluggedInfo.query",O1.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",O1.yt_vst="videoStreamType",O1.vph="viewportHeight",O1.vpw="viewportWidth",O1.yt_vis="isVisible",O1.rcl="mwebInfo.responseContentLength",O1.GetSettings_rid="requestIds",O1.GetTrending_rid="requestIds",O1.GetMusicSearchSuggestions_rid="requestIds",O1.REQUEST_ID="requestIds",O1),fha="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
P1={},hB=(P1.ccs="CANARY_STATE_",P1.mver="MEASUREMENT_VERSION_",P1.pis="PLAYER_INITIALIZED_STATE_",P1.yt_pt="LATENCY_PLAYER_",P1.pa="LATENCY_ACTION_",P1.yt_vst="VIDEO_STREAM_TYPE_",P1),gha="all_vc ap c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var Q1=window;Q1.ytcsi&&(Q1.ytcsi.info=bB,Q1.ytcsi.tick=cB);pB.prototype.La=function(){this.Te("gv")};
pB.prototype.Te=function(a,b){this.F[a]=b?window.performance.timing.navigationStart+b:(0,g.O)()};g.u(qB,g.P);qB.prototype.X=function(a,b){var c=this.P.u.index.Qb()<=b,d=this.V.isManifestless&&this.K.tb;this.u={ze:a,gb:b};this.K.tb&&this.D&&this.B&&(this.D=!1,"continue"!=a.event&&"stop"!=a.event||rB(this,this.B));this.B&&this.B.gb==b&&(this.B=null);if(c||d)this.K.Dc&&(a.startSecs+=isNaN(this.G)?0:this.G),c=this.V,c.X.push(a),c.W("cuepointsadded",b)};g.u(vB,g.P);g.k=vB.prototype;g.k.appendBuffer=function(a,b,c){this.B=!1;c&&(this.C=c);b&&(b.isEncrypted()&&(this.V=this.C),3==b.type&&(this.G=b));this.supports(0)?this.u.appendBuffer(a):this.u.append(a)};
g.k.abort=function(){try{this.u.abort()}catch(a){}this.C=this.G=null};
g.k.remove=function(a,b){this.B=!1;this.u.remove(a,b)};
g.k.Rr=function(){return By&&this.P?this.X:this.u.appendWindowStart};
g.k.iw=function(){return this.u.appendWindowEnd};
g.k.vy=function(a,b){By&&this.P?(this.X=a,this.u.appendWindowEnd=b):a>this.Rr()?(this.u.appendWindowEnd=b,this.u.appendWindowStart=a):(this.u.appendWindowStart=a,this.u.appendWindowEnd=b)};
g.k.qw=function(){return this.K};
g.k.Qn=function(a){By?this.K=a:this.supports(1)&&(this.u.timestampOffset=a)};
g.k.pc=function(){return By?this.K:this.supports(1)?this.u.timestampOffset:0};
g.k.Ye=function(a){if(void 0===a?0:a)return this.B||this.uf()||(this.N=this.Ye(!1),this.B=!0),this.N;try{return this.u.buffered}catch(b){return Hy([],[])}};
g.k.uf=function(){return this.u.updating};
g.k.xl=function(){return this.C};
g.k.Sr=function(){return this.V};
g.k.ez=function(a,b){this.F!=a&&(this.supports(4),wB()&&this.u.changeType(b));this.F=a};
g.k.Tr=function(){return this.G};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:return void 0!=this.u.timestampOffset;case 0:return!!this.u.appendBuffer;case 2:return!!this.u.remove;case 3:return!(!this.u.addEventListener||!this.u.removeEventListener);case 4:return!!this.u.changeType;default:return!1}};
g.k.ov=function(){return!this.uf()};
g.k.isLocked=function(){return!1};
g.k.qb=function(a){a.to=""+this.u.timestampOffset;a.up=""+ +this.uf();a.aw=(this.u.appendWindowStart||0).toFixed(3)+"-"+(this.u.appendWindowEnd||Infinity).toFixed(3);try{a.bu=Iy(this.u.buffered)}catch(b){}return g.tB(a)};
g.k.aa=function(){this.supports(3)&&(this.u.removeEventListener("updateend",this.D),this.u.removeEventListener("error",this.D));g.P.prototype.aa.call(this)};
g.k.Gq=function(a,b,c){if(!this.supports(2)||this.uf())return!1;var d=this.Ye(),e=Jy(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.Uo=function(){return this.F};var zCa={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},R1;a:{var S1=g.Vc;S1=S1.toLowerCase();if(-1!=S1.indexOf("android")){var ACa=S1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(ACa){var BCa=parseFloat(ACa[1]);if(100>BCa){R1=BCa;break a}}var CCa=S1.match("("+g.Qb(zCa).join("|")+")");R1=CCa?zCa[CCa[0]]:0}else R1=void 0}var oC=R1,nC=0<=oC;var uha={RED:"red",w3:"white"};var tha={XR:"adunit",PU:"detailpage",dV:"editpage",gV:"embedded",hV:"embedded_unbranded",mX:"leanback",k0:"previewpage",n0:"profilepage",E2:"unplugged",b0:"playlistoverview",G1:"sponsorshipsoffer"};g.k=EB.prototype;g.k.append=function(a){this.u.webkitSourceAppend(this.B,a)};
g.k.abort=function(){this.u.webkitSourceAbort(this.B)};
g.k.mR=function(){return this.u.webkitSourceState==this.u.SOURCE_CLOSED?new jha:this.u.webkitSourceBuffered(this.B)};
g.k.oR=function(){return this.C};
g.k.sR=function(a){this.C=a;this.u.webkitSourceTimestampOffset(this.B,a)};g.k=FB.prototype;g.k.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
g.k.removeEventListener=function(a,b,c){this.u.removeEventListener(a,b,c)};
g.k.GL=function(){return this.u.webkitMediaSourceURL};
g.k.addSourceBuffer=function(a){var b=(this.C++).toString();this.u.webkitSourceAddId(b,a);a=new EB(this.u,b);this.sourceBuffers.push(a);return a};
g.k.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.u.webkitSourceRemoveId(a.B);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.k.pR=function(){switch(this.u.webkitSourceState){case this.u.SOURCE_CLOSED:return"closed";case this.u.SOURCE_OPEN:return"open";case this.u.SOURCE_ENDED:return"ended"}return""};
g.k.endOfStream=function(){this.u.webkitSourceEndOfStream(this.u.EOS_NO_ERROR)};
g.k.qR=function(){pb(this.sourceBuffers)};
g.k.nR=function(){return this.B};
g.k.rR=function(a){this.B=a;this.u.webkitSourceSetDuration&&this.u.webkitSourceSetDuration(a)};g.u(GB,g.P);g.k=GB.prototype;g.k.appendBuffer=function(a,b,c){if(this.u.Rr()!=this.G+this.B||this.u.iw()!=this.F+this.B||this.u.pc()!=this.D+this.B)this.u.supports(1),this.u.vy(this.G+this.B,this.F+this.B),this.u.Qn(this.D+this.B);this.u.appendBuffer(a,b,c)};
g.k.abort=function(){this.u.abort()};
g.k.remove=function(a,b){this.u.remove(a+this.B,b+this.B)};
g.k.vy=function(a,b){this.G=a;this.F=b};
g.k.qw=function(){return this.D+this.B};
g.k.Rr=function(){return this.G};
g.k.iw=function(){return this.F};
g.k.Qn=function(a){this.D=a};
g.k.pc=function(){return this.D};
g.k.Ye=function(a){a=this.u.Ye(void 0===a?!1:a);return Yy(a,this.B,this.P)};
g.k.uf=function(){return this.u.uf()};
g.k.xl=function(){return this.u.xl()};
g.k.Sr=function(){return this.u.Sr()};
g.k.ez=function(a,b){return this.u.ez(a,b)};
g.k.supports=function(a){return this.u.supports(a)};
g.k.Tr=function(){return this.u.Tr()};
g.k.isView=function(){return!0};
g.k.Gq=function(a,b,c){return this.isActive()?this.u.Gq(a,b,c):!1};
g.k.ov=function(){return this.u.ov()?this.C:!1};
g.k.isLocked=function(){return this.K&&!this.C};
g.k.qb=function(a){return this.u.qb(a)+(";vw."+this.B+"-"+this.P)};
g.k.Uo=function(){return this.u.Uo()};
g.k.aa=function(){ws(this.u,this.N);g.P.prototype.aa.call(this)};
g.k.isActive=function(){return this.C};
g.k.setActive=function(a){this.C=a;this.K=this.K||this.C};HB.prototype.dispose=function(){if(!this.la){if(this.B)try{URL.revokeObjectURL(this.u)}catch(a){}this.C=!0}};
HB.prototype.la=function(){return this.C};
HB.prototype.toString=function(){return"MediaResource {"+this.u+"}"};g.u(IB,g.B);g.k=IB.prototype;g.k.getDuration=function(){return this.C.duration};
g.k.isView=function(){return this.G};
g.k.uf=function(){return!!(this.u&&this.u.uf()||this.B&&this.B.uf())};
g.k.gP=function(){!this.la()&&JB(this)&&this.D&&(this.D(this),this.D=null)};
g.k.fP=function(){this.dispose()};PB.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;jk?c=c||DCa[b]:2.2===oC?c=c||ECa[b]:Yj()&&(c=c||FCa[b]);return!!c};
PB.prototype.isTypeSupported=function(a){return this.F?window.cast.receiver.platform.canDisplayType(a):zB(a)};
PB.prototype.disableAv1=function(){this.K=!0};
var ECa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},FCa={"application/x-mpegURL":"maybe"},DCa={"application/x-mpegURL":"maybe"};g.u(VB,g.P);VB.prototype.add=function(a,b){!this.items[a]&&(b.Ao||b.lr||b.Fq)&&(this.items[a]=cc(b),this.W("vast_info_card_add",a))};
VB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
VB.prototype.get=function(a){return this.items[a]||null};
VB.prototype.isEmpty=function(){return g.Wb(this.items)};var vC={EX:1,FX:2,GX:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.u(YB,g.B);var qha=/^([0-9\.]+):([0-9\.]+)$/;var gC="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),GCa={CS:"cbrand",DS:"cbr",ES:"cbrver",vW:"c",yW:"cver",xW:"ctheme",wW:"cplayer",BZ:"cmodel",f_:"cnetwork",s_:"cos",t_:"cosver",L_:"cplatform"};g.u(DC,g.B);g.k=DC.prototype;g.k.ca=function(a){return g.R(this.experiments,a)};
g.k.Mg=function(a,b){b=void 0===b?!1:b;this.Mb=cC(this.Mb,a.video_id);this.Bb=cC(this.Bb,a.eventid);for(var c=[],d=g.q(Object.keys(GCa)),e=d.next();!e.done;e=d.next()){e=GCa[e.value];var f=a[e];null!=f&&(f!==this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.Zq&&(c.sort(),g.Gr(new Sq("Player client parameters changed after startup",c)));this.userAge=bC(this.userAge,a.user_age);this.userDisplayImage=cC(this.userDisplayImage,a.user_display_image);g.Gv(this.userDisplayImage)||
(this.userDisplayImage="");this.userDisplayName=cC(this.userDisplayName,a.user_display_name);this.zf=cC(this.zf,a.user_gender);this.csiPageType=cC(this.csiPageType,a.csi_page_type);this.csiServiceName=cC(this.csiServiceName,a.csi_service_name);this.Bf=S(this.Bf,a.enablecsi);this.pageId=cC(this.pageId,a.pageid);if(c=a.enabled_engage_types)this.enabledEngageTypes=new Set(c.split(","))};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.GC(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.AC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,jk&&(a=Sp())&&(b.ebc=a));return g.Jd(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.GC(this)+"/embed/"+a;c&&(a=g.Jd(a,{list:c}));c=b.width;b=b.height;a=g.nd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.AB&&!jk&&74<=Vj()||g.SB&&g.Zd(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var vha=["www.youtube-nocookie.com","youtube.googleapis.com"];YC.prototype.getLanguageInfo=function(){return this.u};
YC.prototype.toString=function(){return this.u.name};
YC.prototype.getLanguageInfo=YC.prototype.getLanguageInfo;ZC.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.u};
ZC.prototype.compose=function(a){if(a.C&&bD(a))return vD;if(a.C||bD(this))return a;if(this.C||bD(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.u&&a.u?Math.min(this.u,a.u):this.u||a.u;b=Math.min(b,c);return b===this.B&&c===this.u?this:new ZC(b,c,!1,c===this.u?this.reason:a.reason)};
ZC.prototype.D=function(a){return a.video?dD(this,a.video.quality):!1};
var zwa=aD("auto","hd1080",!1,"l"),rta=aD("auto","large",!1,"l"),vD=aD("auto","auto",!1,"p");aD("small","auto",!1,"p");eD.prototype.ul=function(a){a=a||vD;for(var b=g.Ke(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].La();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
eD.prototype.getAvailableAudioTracks=function(){return this.audioTracks};
eD.prototype.xc=function(){return!!this.u};gD.prototype.clone=function(a){return new gD(this.flavor,a,this.C,this.experiments)};
gD.prototype.qb=function(){return{flavor:this.flavor,keySystem:this.u}};
gD.prototype.Be=function(){switch(this.u){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.u}};
var T1={},pD=(T1.playready=["com.youtube.playready","com.microsoft.playready"],T1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],T1);JD.prototype.add=function(a){this.u=(this.u+1)%this.data.length;this.data[this.u]=a};
JD.prototype.forEach=function(a){for(var b=this.u+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.u;b++)a(this.data[b]||0)};
JD.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.u=this.data.length-1};LD.prototype.send=function(){g.pq(this.u,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Kf:this.B,kg:this.B,context:this});this.C=(0,g.O)()};
LD.prototype.B=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.O)()-this.C)/1E3).toFixed(3),shost:g.yd(this.u),trigger:this.G};204==a.status||a.response?this.D&&this.D(g.tB(b)):this.F(new sB("pathprobe.net",!1,b))};g.u(MD,g.P);var U1={},SD=(U1.AD_MARKER="ytp-ad-progress",U1.CHAPTER_MARKER="ytp-chapter-marker",U1.TIME_MARKER="ytp-time-marker",U1);g.TD.prototype.getId=function(){return this.id};
g.TD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+UD(this.start)+", "+UD(this.end)+"]"};
g.TD.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 Tha=1;g.TD.prototype.getId=g.TD.prototype.getId;var PL={BUFFERING:1,ENDED:2,PAUSED:4,PLAYING:8,S0:16,w2:32,UNSTARTED:64,ERROR:128,Y1:256,X1:512,WU:1024,wS:2048,1:"BUFFERING",2:"ENDED",4:"PAUSED",8:"PLAYING",16:"SEEKING",32:"UISEEKING",64:"UNSTARTED",128:"ERROR",256:"SYSPAUSED",512:"SUSPENDED",1024:"DOMPAUSED",2048:"AUTOPLAYBLOCKED"};g.u(bE,g.B);g.k=bE.prototype;g.k.reset=function(){this.started=!1;this.D.stop();this.u.u=[];this.B=[];this.ph()};
g.k.Wb=function(a){this.started&&(this.ph(),g.U(a.zj,16)&&(a=$D(this.u,Math.max(this.C-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.D.start()))};
g.k.ph=function(){this.F=!0;if(!this.G){for(var a=3;this.F&&a;)this.F=!1,this.G=!0,this.eC(),this.G=!1,a--;this.K().Kb()&&(a=$D(this.u,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.X(),this.D.start(a)))}};
g.k.eC=function(){if(this.started&&!this.la()){this.D.stop();var a=this.K();g.U(a,32)&&this.P.start();for(var b=g.U(this.K(),2)?0x8000000000000:1E3*this.V(),c=g.U(a,2),d=[],e=[],f=g.q(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(gE(this,e));f=e=null;c?(a=ZD(this.u,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Xha(this.u)):a=this.C<=b&&ML(a)?Wha(this.u,this.C,b):ZD(this.u,b);
d=d.concat(fE(this,a));e&&(d=d.concat(gE(this,e)));f&&(d=d.concat(fE(this,f)));this.C=b;Yha(this,d)}};
g.k.aa=function(){this.B=[];this.u.u=[];g.B.prototype.aa.call(this)};
(function(a,b){if(Gx&&b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c.Ru=a.prototype[d],c.Tu=b[d],a.prototype[d]=function(e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=(0,g.O)();h=e.Ru.apply(this,h);Hx(e.Tu,(0,g.O)()-l);return h}}(c)),c={Ru:c.Ru,
Tu:c.Tu}}})(bE,{eC:"crmis"});g.u(lE,g.P);g.k=lE.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.W("videoformatchange",Lha(this.K));if(this.F.isManifestless){if(this.u.Az){b=Sz(this.u);for(var d in this.F.u)this.F.u[d].index.K=b}bia(this)}this.P&&ND(this.P,this.B.u);this.u.da&&xx()&&this.Oc("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.G)?0:this.G;this.G=this.F.isManifestless?d:a;c?(this.u.Qh?(this.Pc=c,nE(this,c)):nE(this,!1),this.Rb.Hb()):(a=0==this.G,AE(this,this.B,this.B.u,a),AE(this,this.D,this.D.u,a),Lm(this.seek(this.G),function(){}),
this.ra.La());
(this.F.Vd||this.F.fg)&&this.Oc("minMaxSq","minSq."+this.F.Vd+";maxSq."+this.F.fg+";minDvrTime."+this.F.vj+";maxDvrTime."+this.F.Pl)};
g.k.resume=function(){if(this.ha||this.ka)this.eb=this.ka=this.ha=!1,this.rh()};
g.k.setAudioTrack=function(a){if(!this.la()){var b=this.K;b.G=b.K.u[a.id];b.X=b.G;this.W("audioformatchange",new uD(b.X,b.B,"m"));this.W("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!=this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)};
g.k.rh=function(){sE(this);if(this.C&&JB(this.C)&&!this.C.uf()){var a=az(this.B);a=this.u.JG&&a&&a.F;this.F.isManifestless&&this.F.G&&xA(this.F)?(this.X=xA(this.F),KB(this.C,this.X)):this.F.isLive&&!a?isNaN(this.X)?(this.X=this.G+3600,KB(this.C,this.X)):this.X<=this.G+1800&&(this.X=Math.max(this.X+1800,this.G+3600),KB(this.C,this.X)):this.C.isView()||(a=Math.max(this.D.getDuration(),this.B.getDuration()),(!isFinite(this.X)||this.X!=a)&&0<a&&(KB(this.C,a),this.X=a))}if(!this.la())if(vA(this.F)&&this.F.isFailed())rE(this,
!0,"manifest.net.retryexhausted",{rc:this.F.Y.toString()});else if(!this.F.C||!yz(this.B)&&!yz(this.D)||(this.B.F||this.D.F)&&this.u.ha?a=!1:(pE(this),this.W("seekplayerrequired",Infinity),a=!0),!a&&(sE(this),cz(this.B),!this.la()&&(cz(this.D),!this.la()))){this.F.isManifestless&&(zz(this.B),zz(this.D),EA(this.N),(a=py(this.B.C))&&a.B&&(a=a.B.D&&!this.u.bj,this.Oc(a==this.u.D.Ue?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.u.D.Ue?"1":"0")+";dfs."+(this.u.bj?"1":"0"),!0)));if(this.C)HE(this);
else if(this.u.Vg){if(a=py(this.B.C)){var b=this.B;b.C.B.shift();ez(b,a)}if(b=py(this.D.C)){var c=this.D;c.C.B.shift();ez(c,b)}jz(this.B)&&jz(this.D)||(a||b)&&DE(this)}mE(this);AE(this,this.B,this.B.u,!1);AE(this,this.D,this.D.u,!1);a=this.D.u.G;b=this.B.u.G;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";rE(this,!0,c,{metadata:"1",video:this.B.u.G||"",audio:this.D.u.G||""})}else this.u.Pc&&vE(this,this.B,this.D),xE(this,this.B,this.D),xE(this,this.D,
this.B),this.u.Bz&&this.Ga&&!this.ha&&Jz(this.ba)&&(a=this.Ga,b=(0,g.z)(this.W,this,"error"),(new LD(a,"cms",null,b)).send(),this.Ga=""),this.P&&(a=this.P,a.F?(b=a.N+a.u.Qj,a.D||(b=Math.min(b,a.G+a.u.dc)),a=Math.max(0,1E3*b-g.A())):a=NaN,isNaN(a)||this.zd.Hb(a)),this.ac.Hb()}};
g.k.uP=function(a){if(this.u.ue&&this.C){var b=a==this.C.u,c=a.Tr();c&&(!c.C||c.D)&&this.Oc("sbu",a.qb({a:""+ +b}))}this.rh()};
g.k.yM=function(a){if(this.C){a=az(a==this.C.u?this.D:this.B);var b=void 0;a&&(b=Vu(a));rE(this,!0,"fmt.unplayable",b)}};
g.k.MN=function(a){rE(this,!0,"fmt.unparseable",a)};
g.k.cM=function(a){this.W("needkeyinfo",a)};
g.k.NN=function(a){this.D.u.C=a;this.C&&EE(this,this.C.u,a)};
g.k.LN=function(a){rE(this,!1,"qoe.avsync",a)};
g.k.PN=function(a,b){this.F.isManifestless&&KE(this,b,a==this.B)};
g.k.QN=function(a,b){if(this.F.isManifestless){var c=this.F,d=b.gb,e=a==this.B,f;for(f in c.u){var h=yw(c.u[f].info.mimeType)||c.u[f].info.isVideo();if(e==h){h=c.u[f].index;var l=Uz(h,d);0<=l&&h.segments.splice(l,1)}}}};
g.k.RN=function(a,b){this.F.isManifestless&&(KE(this,b,a==this.B),b&&b.u&&0>a.da&&(this.Oc("ssinfo",(a===this.D?"a":"v")+"."+b.gb),a.da=b.gb))};
g.k.ON=function(a){this.W("localmediachange",new iE(this.u.C,a,{isBackground:this.u.Vg}))};
g.k.seek=function(a){if(this.la())return Em();if(this.B.N||this.D.N)return this.u.Jz?Dm():Em("seeking to head");sE(this);this.Mb=(0,g.O)();mE(this,a);this.C&&this.C.u&&this.C.B&&(this.C.u.isLocked()||this.C.B.isLocked())&&this.W("reattachrequired");this.G=this.N.seek(a);a=this.V;a.B=null;a.D=!1;DE(this);return Dm(this.G)};
g.k.getCurrentTime=function(){return this.G};
g.k.aa=function(){this.V.unsubscribe("ctmp",this.Oc,this);qE(this);oz(this.D);oz(this.B);g.P.prototype.aa.call(this)};
g.k.qb=function(){var a=az(this.D),b=az(this.B);a={lct:this.G.toFixed(3),lsk:this.N.C,lmf:DD(this.K),lbw:Hz(this.ba).toFixed(3),lhd:Gz(this.ba).toFixed(3),lst:(1E9*(this.ba.C.u()||0)).toFixed(3),laa:a?Ou(a):"",lva:b?Ou(b):"",lar:this.D.B?Ou(this.D.B):"",lvr:this.B.B?Ou(this.B.B):""};this.C&&!MB(this.C)&&this.C.u&&this.C.B&&(a.lab=Iy(this.C.u.Ye()),a.lvb=Iy(this.C.B.Ye()));return a};
g.k.Oc=function(a,b,c){this.W("ctmp",a,b,void 0===c?!1:c)};
g.k.fA=function(a,b){var c=a/b;isNaN(this.da)&&(this.da=c-Math.min(c,this.u.Bf),this.V.G=this.da,this.W("timestamp",this.da),this.F.isManifestless&&(this.F.B=this.da));return(c-this.da)*b};
var yE=2/24;var V1;var HCa=g.Vc,ICa=HCa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ICa||2>ICa.length)V1=void 0;else{var W1=HCa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);V1=W1&&6==W1.length?Number(W1[5].replace("_",".")):0}var wG=V1,jY=0<=wG;jY&&0<=g.Vc.search("Safari")&&g.Vc.search("Version");var x0=16/9,JCa=[.25,.5,.75,1,1.25,1.5,1.75,2],KCa=JCa.concat([3,4,5,6,7,8,9,10,15]);g.u(NE,g.B);
NE.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Cd)for(var h=g.q(Object.keys(f.Cd)),l=h.next();!l.done;l=h.next())if(l=l.value,pD[l])for(var m=g.q(pD[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new gD(l,n,f.Cd[l],this.experiments),this.D[l]=this.D[l]||{},this.D[l][f.mimeType]=!0}bk()&&(this.B["com.youtube.fairplay"]=new gD("fairplay","com.youtube.fairplay","",
this.experiments),this.D.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.u=Aha(b,this.useCobaltWidevine,g.xv(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})};
NE.prototype.ca=function(a){return g.R(this.experiments,a)};g.k=PE.prototype;g.k.Be=function(){return this.Ma};
g.k.Cp=function(){return null};
g.k.oB=function(){var a=this.Cp();return a?(a=g.Yp(a.u),Number(a.expire)):NaN};
g.k.sy=function(){};
g.k.getHeight=function(){return this.Ma.La().height};g.u(UE,PE);UE.prototype.oB=function(){return this.expiration};
UE.prototype.Cp=function(){if(!this.u||this.u.la()){var a=this.B;ama(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.u)var d=a.u;else{d="";for(var e=g.q(a.C),f=e.next();!f.done;f=e.next())if(f=f.value,f.u){if(f.u.getIsDefault()){d=f.u.getId();break a}d||(d=f.u.getId())}}e=g.q(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.u&&f.u.getId()!==d||(c[f.itag]=f);d=g.q(a.B);for(e=d.next();!e.done;e=d.next())e=e.value,(f=c[e.B])&&b.push($la(a,f,e));d=g.q(a.B);for(e=d.next();!e.done;e=d.next()){e=
e.value;var h=c[e.B];h&&(f=a,h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(SE(h,e)+'",CLOSED-CAPTIONS=NONE'),1<e.fps&&(h+=",FRAME-RATE="+e.fps),e.C&&(h+=",VIDEO-RANGE="+e.C),b.push(h),b.push(RE(f,e.url,"")))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.u=new HB(a)}return this.u};g.u(WE,PE);WE.prototype.Cp=function(){return new HB(this.u.qd())};
WE.prototype.sy=function(){this.u=Qv(this.u)};g.u(XE,PE);XE.prototype.Cp=function(){return new HB(this.u)};g.k=g.YE.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.u};
g.k.qd=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.ZE(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var $E={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},cF={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var X1={},LCa=(X1.ALWAYS=1,X1.BY_REQUEST=3,X1.UNKNOWN=void 0,X1),Y1={},MCa=(Y1.COLOR_PRIMARIES_BT709="bt709",Y1.COLOR_PRIMARIES_BT2020="bt2020",Y1.COLOR_PRIMARIES_UNKNOWN=null,Y1.COLOR_PRIMARIES_UNSPECIFIED=null,Y1),Z1={},lma=(Z1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Z1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Z1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Z1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Z1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Z1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,Z1),$1={},a2=($1.FAIRPLAY="fairplay",$1.PLAYREADY="playready",$1.WIDEVINE="widevine",$1.CLEARKEY=null,$1.FLASHACCESS=null,$1.UNKNOWN=null,$1.WIDEVINE_CLASSIC=null,$1),b2={},NCa=(b2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",b2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",b2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",b2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",b2),c2={},OCa=(c2.UNKNOWN=0,c2.RECTANGULAR=1,c2.EQUIRECTANGULAR=2,c2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,c2.MESH=4,c2),d2={},PCa=(d2.SPATIAL_AUDIO_TYPE_NONE=0,d2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,d2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,d2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,d2),e2={},QCa=(e2.STEREO_LAYOUT_UNKNOWN=0,e2.STEREO_LAYOUT_LEFT_RIGHT=1,e2.STEREO_LAYOUT_TOP_BOTTOM=2,e2),f2={},RCa=(f2.FORMAT_STREAM_TYPE_UNKNOWN=0,f2.FORMAT_STREAM_TYPE_OTF=3,f2);g.u(lF,g.P);lF.prototype.wl=function(a,b){for(var c=mF(this,b);0<=c;){var d=this.levels[c];if(d.Fc(Math.floor(a/(d.columns*d.rows)))&&(d=d.wl(a)))return d;c--}return this.levels[0].wl(a)};
lF.prototype.aa=function(){this.u&&(this.u=this.u.onload=null);g.P.prototype.aa.call(this)};g.k=g.pF.prototype;g.k.le=function(){return this.width};
g.k.getHeight=function(){return this.height};
g.k.sB=ba(2);g.k.kw=function(){return this.C};
g.k.isDefault=function(){return-1!==this.D.indexOf("default")};
g.k.Fc=function(a){return this.loaded.has(a)};
g.k.qd=function(a){var b=this.F;b=b.replace("$N",this.D);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.Jd(b,{sigh:this.signature}));return Kv(b)};
g.k.wl=function(a){a>=this.xx()&&this.Ep();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.Ep()+1-c*b;if(e<this.columns){var f=e;c=1}else f=this.columns,c=e<c?Math.ceil(e/this.columns):this.rows;return{url:this.qd(b),column:a,columns:f,row:d,rows:c,Gt:this.width*f,Ft:this.height*c}};
g.k.zt=function(a){var b=this.kw()-1;return g.be(0===this.u?Math.round(a*this.C/this.videoLength):Math.round(1E3*a/this.u),0,b)};
g.k.Ep=function(){return this.C-1};
g.k.xx=function(){return this.C?0:-1};
g.k.eD=function(){};g.u(qF,lF);qF.prototype.B=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var h=this.F(f-1,e,d[f],b);(this.K||180>h.getHeight())&&c.push(h)}return c};
qF.prototype.F=function(a,b,c,d){return new g.pF(a,b,c,d)};g.u(sF,g.pF);g.k=sF.prototype;g.k.kw=function(){return this.B.Tm()};
g.k.zt=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Qb();a=c.bh(a);return a>d-b?-1:a};
g.k.Ep=function(){return this.B.Qb()};
g.k.xx=function(){return this.B.Zg()};
g.k.eD=function(a){this.B=a};g.u(tF,qF);tF.prototype.B=function(a,b){return qF.prototype.B.call(this,"$N|"+a,b)};
tF.prototype.F=function(a,b,c){return new sF(a,b,c,this.isLive)};g.u(g.uF,g.P);g.k=g.uF.prototype;g.k.Mg=function(a,b,c){c&&(this.errorCode=null,this.errorDetail="",this.ai=this.errorReason=null);b?(eC(a),this.setData(a),dG(this)&&FF(this)):(a=a||{},this.ca("embeds_wexit_list_ajax_migration")&&fG(this,a),BF(this,a),xF(this,a),this.W("dataupdated"))};
g.k.setData=function(a){a=a||{};var b=a.errordetail;null!=b&&(this.errorDetail=b);var c=a.errorcode;null!=c?this.errorCode=c:"fail"==a.status&&(this.errorCode="150");var d=a.reason;null!=d&&(this.errorReason=d);var e=a.subreason;null!=e&&(this.ai=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||this.gw());this.ni=S(this.Pa.ni,a.livemonitor);fG(this,a);var f=a.raw_player_response;if(!f){var h=a.player_response;h&&(f=JSON.parse(h))}f&&(this.playerResponse=f);if(this.playerResponse){var l=
this.playerResponse.annotations;if(l)for(var m=g.q(l),n=m.next();!n.done;n=m.next()){var p=n.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.Xq=!0);p.allowInPlaceSwitch&&(this.ev=!0);var r=p.loadPolicy;r&&(this.annotationsLoadPolicy=LCa[r]);var t=p.invideoUrl;t&&(this.qg=Kv(t));this.Gs=!0;break}}var w=this.playerResponse.attestation;w&&iF(this,w);var x=this.playerResponse.heartbeatParams;if(x){var y=x.heartbeatToken;y&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=y,this.QB=
Number(x.intervalMilliseconds),this.RB=Number(x.maxRetries),this.SB=!!x.softFailOnError,this.aC=!!x.useInnertubeHeartbeatsForDrm,this.Nq=!0)}var D=this.playerResponse.messages;D&&oma(this,D);var E=this.playerResponse.multicamera;if(E){var H=E.playerLegacyMulticameraRenderer;if(H){var N=H.metadataList;N&&(this.ED=N,this.Yk=Xp(N))}}var J=this.playerResponse.overlay;if(J){var Ja=J.playerControlsOverlayRenderer;if(Ja){var wa=Ja.controlBgHtml;null!=wa?(this.cj=wa,this.Lc=!0):(this.cj="",this.Lc=!1);if(Ja.mutedAutoplay){var Xa=
Ja.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Xa&&Xa.endScreen){var Kb=Xa.endScreen.playerMutedAutoplayEndScreenRenderer;Kb&&Kb.text&&(this.GD=g.T(Kb.text))}}else this.mutedAutoplay=!1}}var eb=this.playerResponse.playabilityStatus;if(eb){var ae=eb.backgroundability;ae&&ae.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Yc=eb.offlineability;Yc&&Yc.offlineabilityRenderer.offlineable&&(this.offlineable=!0);var Gi=eb.contextParams;Gi&&(this.contextParams=Gi);var Hi=eb.pictureInPicture;
Hi&&Hi.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);eb.playableInEmbed&&(this.allowEmbed=!0);var Gh=eb.ypcClickwrap;if(Gh){var Ii=Gh.playerLegacyDesktopYpcClickwrapRenderer,hf=Gh.ypcRentalActivationRenderer;if(Ii)this.Lq=Ii.durationMessage||"",this.ho=!0;else if(hf){var cia=hf.durationMessage;this.Lq=cia?g.T(cia):"";this.ho=!0}}var Sl=eb.errorScreen;if(Sl){if(Sl.playerLegacyDesktopYpcTrailerRenderer){var se=Sl.playerLegacyDesktopYpcTrailerRenderer;this.Nu=se.trailerVideoId||"";var dia=
Sl.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Oy=dia&&dia.ypcTrailerRenderer}else if(Sl.playerLegacyDesktopYpcOfferRenderer)se=Sl.playerLegacyDesktopYpcOfferRenderer;else if(Sl.ypcTrailerRenderer){Oy=Sl.ypcTrailerRenderer;var eia=Oy.fullVideoMessage;this.Mq=eia?g.T(eia):""}se&&(this.Iu=se.itemTitle||"",se.itemUrl&&(this.Ju=se.itemUrl),se.itemBuyUrl&&(this.Gu=se.itemBuyUrl),this.Hu=se.itemThumbnail||"",this.Lu=se.offerHeadline||"",this.Oq=se.offerDescription||"",this.Mu=se.offerId||"",this.Ku=
se.offerButtonText||"",this.nz=se.offerButtonFormattedText||null,this.Pq=se.overlayDurationMsec||NaN,this.Mq=se.fullVideoMessage||"",this.tm=!0);if(Oy){var fia=Oy.unserializedPlayerResponse;if(fia)this.jo={raw_player_response:fia};else{var gia=Oy.playerVars;this.jo=gia?Wp(gia):null}this.tm=!0}}}var Hh=this.playerResponse.playbackTracking;if(Hh){var hia=a,iia=gF(Hh.googleRemarketingUrl);iia&&(this.googleRemarketingUrl=iia);var jia=gF(Hh.youtubeRemarketingUrl);jia&&(this.youtubeRemarketingUrl=jia);
var kia=gF(Hh.ptrackingUrl);if(kia){var IG=hF(kia),lia=IG.oid;lia&&(this.NE=lia);var mia=IG.pltype;mia&&(this.OE=mia);var nia=IG.ptchn;nia&&(this.ME=nia);var oia=IG.ptk;oia&&(this.St=encodeURIComponent(oia))}var pia=gF(Hh.ppvRemarketingUrl);pia&&(this.ppvRemarketingUrl=pia);var qia=gF(Hh.qoeUrl);if(qia){for(var Py=g.Yp(qia),ria=g.q(Object.keys(Py)),yV=ria.next();!yV.done;yV=ria.next()){var sia=yV.value,zV=Py[sia];Py[sia]=Array.isArray(zV)?zV.join(","):zV}var tia=Py.cat;tia&&(this.Xp=tia);var uia=
Py.live;uia&&(this.jx=uia)}var Qy=gF(Hh.remarketingUrl);if(Qy){this.remarketingUrl=Qy;var via=hF(Qy);via.foc_id&&(this.Uc.focEnabled=!0);var wia=via.data;wia&&(this.Uc.rmktEnabled=!0,wia.engaged&&(this.Uc.engaged="1"));this.Uc.baseUrl=zd(Qy)+vd(g.xd(5,Qy))}var xia=gF(Hh.videostatsPlaybackUrl);if(xia){var Ld=hF(xia),yia=Ld.adformat;yia&&(hia.adformat=yia);var zia=Ld.aqi;zia&&(hia.ad_query_id=zia);var Aia=Ld.autoplay;Aia&&(this.Fk="1"==Aia);var Bia=Ld.autonav;Bia&&(this.Il="1"==Bia);var Cia=Ld.delay;
Cia&&(this.Ug=g.rd(Cia));var Dia=Ld.ei;Dia&&(this.eventId=Dia);"adunit"===Ld.el&&(this.Fk=!0);var Eia=Ld.feature;Eia&&(this.aq=Eia);var Fia=Ld.list;Fia&&(this.playlistId=Fia);var Gia=Ld.of;Gia&&(this.Rx=Gia);var Hia=Ld.osid;Hia&&(this.osid=Hia);var Iia=Ld.referrer;Iia&&(this.referrer=Iia);var Jia=Ld.sdetail;Jia&&(this.au=Jia);var Kia=Ld.ssrt;Kia&&(this.oq="1"==Kia);var AV=Ld.subscribed;AV&&(this.subscribed="1"==AV,this.Uc.subscribed=AV);var Lia=Ld.uga;Lia&&(this.userGenderAge=Lia);var Mia=Ld.upt;
Mia&&(this.yu=Mia);var Nia=Ld.vm;Nia&&(this.videoMetadata=Nia)}var Oia=gF(Hh.videostatsWatchtimeUrl);if(Oia){var Pia=hF(Oia).ald;Pia&&(this.Vq=Pia)}var Ry=this.ca("use_player_params_for_passing_desktop_conversion_urls");if(Hh.promotedPlaybackTracking){var Md=Hh.promotedPlaybackTracking;Md.startUrls&&(Ry||(this.Vt=Md.startUrls[0]),this.Wt=Md.startUrls);Md.firstQuartileUrls&&(Ry||(this.by=Md.firstQuartileUrls[0]),this.dy=Md.firstQuartileUrls);Md.secondQuartileUrls&&(Ry||(this.ey=Md.secondQuartileUrls[0]),
this.fy=Md.secondQuartileUrls);Md.thirdQuartileUrls&&(Ry||(this.gy=Md.thirdQuartileUrls[0]),this.hy=Md.thirdQuartileUrls);Md.completeUrls&&(Ry||(this.Zx=Md.completeUrls[0]),this.ay=Md.completeUrls);Md.engagedViewUrls&&(1<Md.engagedViewUrls.length&&g.Gr(new Sq("There are more than one engaged_view_urls.")),this.Kn=Md.engagedViewUrls[0])}}var Qia=this.playerResponse.playerAds;if(Qia)for(var dIa=a,Ria=g.q(Qia),BV=Ria.next();!BV.done;BV=Ria.next()){var Sia=BV.value;if(Sia){var Tia=Sia.playerLegacyDesktopWatchAdsRenderer;
if(Tia){var Ys=Tia.playerAdParams;if(Ys){"1"==Ys.autoplay&&(this.Fk=!0);this.adSafetyReason=Ys.encodedAdSafetyReason||null;void 0!==Ys.showContentThumbnail&&(this.qq=!!Ys.showContentThumbnail);dIa.enabled_engage_types=Ys.enabledEngageTypes;break}}}}var te=this.playerResponse.playerConfig;if(te){var Sy=te.manifestlessWindowedLiveConfig;if(Sy){var Uia=Number(Sy.minDvrSequence),Via=Number(Sy.maxDvrSequence),Wia=Number(Sy.minDvrMediaTimeMs),Xia=Number(Sy.maxDvrMediaTimeMs);Uia&&(this.Vd=Uia);Wia&&(this.vj=
Wia/1E3);Via&&(this.fg=Via);Xia&&(this.Pl=Xia/1E3)}var CV=te.daiConfig;if(CV){CV.enableDai&&(this.Kc=!0);var Yia=CV.enableServerStitchedDai;Yia&&(this.enableServerStitchedDai=Yia)}var JG=te.audioConfig;if(JG){var Zia=JG.loudnessDb;null!=Zia&&(this.cq=Zia);JG.audioMuted&&(this.bl=!0);JG.muteOnStart&&(this.bl=!0)}var $ia=te.playbackEndConfig;if($ia){var aja=$ia.endSeconds;aja&&this.mutedAutoplay&&(this.endSeconds=aja)}var KG=te.fairPlayConfig;if(KG){var bja=KG.certificate;bja&&(this.Xg=WB(bja));var cja=
Number(KG.keyRotationPeriodMs);0<cja&&(this.Er=cja);var dja=Number(KG.keyPrefetchMarginMs);0<dja&&(this.Dr=dja)}var LG=te.playbackStartConfig;if(LG){this.Wx=Number(LG.startSeconds);var eja=LG.liveUtcStartSeconds;eja&&(this.liveUtcStartSeconds=Number(eja));var DV=LG.startPosition;if(DV){var fja=DV.utcTimeMillis;fja&&(this.liveUtcStartSeconds=.001*Number(fja));var gja=DV.streamTimeMillis;gja&&(this.ou=.001*Number(gja))}}else{var EV=te.skippableSegmentsConfig;if(EV){var hja=EV.introSkipDurationMs;hja&&
(this.Pw=Number(hja)/1E3);var ija=EV.outroSkipDurationMs;ija&&(this.Qx=Number(ija)/1E3)}}var FV=te.skippableIntroConfig;if(FV){var jja=Number(FV.startMs),kja=Number(FV.endMs);isNaN(jja)||isNaN(kja)||(this.Hl=jja,this.rk=kja)}var lja=te.streamSelectionConfig;lja&&(this.mj=Number(lja.maxBitrate));var mja=te.visualizerConfig;mja&&mja.isVisualizerEligible&&(this.isVisualizerEligible=!0);var nja=te.vrConfig;nja&&(this.Ll="1"==nja.partialSpherical);var Ty=te.webDrmConfig;if(Ty){Ty.skipWidevine&&(this.OF=
!0);var oja=Ty.widevineServiceCert;oja&&(this.fo=WB(oja));Ty.useCobaltWidevine&&(this.useCobaltWidevine=!0);Ty.startWithNoQualityConstraint&&(this.Jo=!0)}var pja=te.mediaCommonConfig;if(pja){var MG=pja.dynamicReadaheadConfig;MG&&(this.maxReadAheadMediaTimeMs=MG.maxReadAheadMediaTimeMs||NaN,this.minReadAheadMediaTimeMs=MG.minReadAheadMediaTimeMs||NaN,this.readAheadGrowthRateMs=MG.readAheadGrowthRateMs||NaN)}}var fk=this.playerResponse.streamingData;if(fk){var qja=fk.adaptiveFormats;if(qja){for(var rja=
[],sja=g.q(qja),Ih=sja.next();!Ih.done;Ih=sja.next()){var Gb=Ih.value,GV=Gb.indexRange,HV=Gb.initRange,sc={itag:Gb.itag,url:Gb.url,index:GV?GV.start+"-"+GV.end:"0-0",bitrate:Gb.bitrate,init:HV?HV.start+"-"+HV.end:"0-0",type:Gb.mimeType,clen:Gb.contentLength,lmt:Gb.lastModified,xtags:Gb.xtags},NG=Gb.audioTrack;if(NG){var tja=NG.displayName;tja&&(sc.name=tja,sc.audio_track_id=NG.id,NG.audioIsDefault&&(sc.isDefault="1"))}var Uy=Gb.captionTrack;Uy&&(sc.caption_display_name=Uy.displayName,sc.caption_vss_id=
Uy.vssId,sc.caption_language_code=Uy.languageCode,sc.caption_kind=Uy.kind);var uja=Gb.cipher||Gb.signatureCipher;if(uja){var IV=Wp(uja);sc.sp=IV.sp;sc.s=IV.s;sc.url=IV.url}else sc.url=Gb.url;var vja=Gb.width,wja=Gb.height;null!=vja&&null!=wja&&(sc.size=vja+"x"+wja);var xja=Gb.fps;xja&&(sc.fps=xja);var yja=Gb.type;yja&&(sc.stream_type=RCa[yja]);var zja=Gb.projectionType;zja&&(sc.projection_type=OCa[zja]);var Aja=Gb.stereoLayout;Aja&&(sc.stereo_layout=QCa[Aja]);var Bja=Gb.spatialAudioType;Bja&&(sc.spatial_audio_type=
PCa[Bja]);var Cja=Gb.drmFamilies;if(Cja){for(var Dja=[],Eja=g.q(Cja),JV=Eja.next();!JV.done;JV=Eja.next())Dja.push(a2[JV.value]);sc.drm_families=Dja.join(",")}var Fja=Gb.qualityLabel;Fja&&(sc.quality_label=Fja);var Gja=Gb.targetDurationSec;Gja&&(sc.target_duration_sec=Gja);var Hja=Gb.maxDvrDurationSec;Hja&&(sc.max_dvr_duration_sec=Hja);var Ija=Gb.audioSampleRate;Ija&&(sc.audio_sample_rate=Ija);var Jja=Gb.audioChannels;Jja&&(sc.audio_channels=Jja);var Kja=fF(Gb);Kja&&(sc.eotf=Kja);var Lja=Gb.colorInfo;
if(Lja){var Mja=Lja.primaries;if(Mja){var Nja=MCa[Mja];Nja&&(sc.primaries=Nja)}}var Oja=Gb.loudnessDb;Gb.itag&&null!=Oja&&this.ca("html5_enable_per_format_loudness")&&(this.Ux[Gb.itag.toString()]=Oja);rja.push(g.Hd(sc))}this.adaptiveFormats=rja.join(",")}var KV=fk.formats;if(KV){var Vy=[],Pja=g.q(KV);for(Ih=Pja.next();!Ih.done;Ih=Pja.next()){var LV=Ih.value;Vy.push(LV.itag+"/"+LV.width+"x"+LV.height)}this.dw=Vy.join(",");Vy=[];var Qja=g.q(KV);for(Ih=Qja.next();!Ih.done;Ih=Qja.next()){var Zs=Ih.value,
Wy={itag:Zs.itag,type:Zs.mimeType,quality:Zs.quality},Rja=Zs.url;Rja&&(Wy.url=Rja);var Sja=Zs.cipher||Zs.signatureCipher;if(Sja){var MV=Wp(Sja);Wy.sp=MV.sp;Wy.s=MV.s;Wy.url=MV.url}Vy.push(g.Hd(Wy))}this.Iq=Vy.join(",")}var NV=fk.hlsFormats;if(NV){var Tja=te||null,OG={};if(Tja){var OV=Tja.audioPairingConfig;if(OV&&OV.pairs)for(var Uja=g.q(OV.pairs),PV=Uja.next();!PV.done;PV=Uja.next()){var Vja=PV.value,QV=Vja.videoItag;OG[QV]||(OG[QV]=[]);OG[QV].push(Vja.audioItag)}}for(var Wja={},Xja=g.q(NV),Po=Xja.next();!Po.done;Po=
Xja.next()){var Yja=Po.value;Wja[Yja.itag]=Yja.bitrate}var Zja=[],$ja=g.q(NV);for(Po=$ja.next();!Po.done;Po=$ja.next()){var jf=Po.value,Ji={itag:jf.itag,type:jf.mimeType,url:jf.url,bitrate:jf.bitrate,width:jf.width,height:jf.height,fps:jf.fps},PG=jf.audioTrack;if(PG){var aka=PG.displayName;aka&&(Ji.name=aka,Ji.audio_track_id=PG.id,PG.audioIsDefault&&(Ji.is_default="1"))}if(jf.drmFamilies){for(var bka=[],cka=g.q(jf.drmFamilies),RV=cka.next();!RV.done;RV=cka.next())bka.push(a2[RV.value]);Ji.drm_families=
bka.join(",")}var QG=OG[jf.itag];if(QG&&QG.length){Ji.audio_itag=QG.join(",");var dka=Wja[QG[0]];dka&&(Ji.bitrate+=dka)}var eka=fF(jf);eka&&(Ji.eotf=eka);jf.audioChannels&&(Ji.audio_channels=jf.audioChannels);Zja.push(g.Hd(Ji))}this.hlsFormats=Zja.join(",")}var SV=fk.licenseInfos;if(SV&&0<SV.length){for(var fka={},gka=g.q(SV),TV=gka.next();!TV.done;TV=gka.next()){var hka=TV.value,ika=hka.drmFamily,jka=hka.url;ika&&jka&&(fka[a2[ika]]=jka)}this.Cd=fka}var kka=fk.drmParams;kka&&(this.drmParams=kka);
var lka=fk.dashManifestUrl;lka&&(this.sg=g.Jd(lka,{cpn:this.clientPlaybackNonce}));var mka=fk.hlsManifestUrl;mka&&(this.hlsvp=mka);var nka=fk.probeUrl;nka&&(this.probeUrl=Kv(g.Jd(nka,{cpn:this.clientPlaybackNonce})))}var oka=this.playerResponse.trackingParams;oka&&(this.zg=oka);var ic=this.playerResponse.videoDetails;if(ic){var Ki=a,UV=ic.videoId;UV&&(this.videoId=UV,Ki.video_id||(Ki.video_id=UV));var pka=ic.channelId;pka&&(this.Uc.uid=pka.substr(2));var VV=ic.title;VV&&(this.title=VV,Ki.title||(Ki.title=
VV));var WV=ic.lengthSeconds;WV&&(this.lengthSeconds=Number(WV),Ki.length_seconds||(Ki.length_seconds=WV));var qka=ic.keywords;qka&&(this.keywords=vF(qka));var XV=ic.channelId;XV&&(this.Ng=XV,Ki.ucid||(Ki.ucid=XV));var rka=ic.viewCount;rka&&(this.rawViewCount=Number(rka));var YV=ic.author;YV&&(this.author=YV,Ki.author||(Ki.author=YV));var ska=ic.shortDescription;ska&&(this.shortDescription=ska);var tka=ic.isCrawlable;tka&&(this.isListed=tka);var uka=ic.musicVideoType;uka&&(this.musicVideoType=uka);
var ZV=ic.isLive;null!=ZV&&(this.isLivePlayback=ZV);if(ZV||ic.isUpcoming)this.isPremiere=!ic.isLiveContent;var vka=ic.thumbnail;vka&&(this.Gh=eF(vka));var wka=te||null,$V=a;ic.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);ic.isUpcoming&&(this.isUpcoming=!0);if(ic.isPostLiveDvr)this.tf=!0;else{var aW=!1;if(this.ni)this.allowLiveDvr=xG(!0),this.isLivePlayback=!0;else if(ic.isLive){$V.livestream="1";this.allowLiveDvr=xG(!!ic.isLiveDvrEnabled);this.Eg=27;ic.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=
!0);var xka=ic.latencyClass;xka&&(this.latencyClass=NCa[xka]||"UNKNOWN");this.Lo=!0;var yka=ic.liveChunkReadahead;yka&&(this.liveChunkReadahead=yka);var Xy=wka&&wka.livePlayerConfig;if(Xy){Xy.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Xy.hasSubfragmentedWebm&&(this.Ym=!0);Xy.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var zka=Xy.liveExperimentalContentId;zka&&(this.liveExperimentalContentId=Number(zka))}aW=!0}else ic.isUpcoming&&(aW=!0);aW&&(this.isLivePlayback=!0,$V.adformat&&
"8"!==$V.adformat.split("_")[1]||this.Pe.push("heartbeat"),this.Br=this.Nq=!0)}var Aka=ic.isPrivate;Aka&&(this.isPrivate=S(this.isPrivate,Aka))}if(eb){var Bka=ic||null,Cka=!1,$s=eb.errorScreen;Cka=$s&&($s.playerLegacyDesktopYpcOfferRenderer||$s.playerLegacyDesktopYpcTrailerRenderer||$s.ypcTrailerRenderer)?!0:Bka&&Bka.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(eb.status);if(!Cka){this.errorCode="150";var RG=$s&&$s.playerErrorMessageRenderer;if(RG){this.playerErrorMessageRenderer=
RG;var Dka=RG.reason;Dka&&(this.errorReason=g.T(Dka));var bW=RG.subreason;bW&&(this.ai=g.T(bW),this.Ir=bW)}else this.errorReason=eb.reason||null;var cW=eb.status;if("LOGIN_REQUIRED"===cW)this.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===cW)this.errorDetail="2";else if("AGE_CHECK_REQUIRED"===cW){var Eka=eb.errorScreen,Fka=Eka&&Eka.playerKavRenderer;this.errorDetail=Fka&&Fka.kavUrl?"4":"3"}else this.errorDetail=eb.isBlockedInRestrictedMode?"5":"0"}}var Gka=this.playerResponse.interstitialPods;
Gka&&nma(this,Gka);this.qg&&this.eventId&&(this.qg=aq(this.qg,{ei:this.eventId}));var dW=this.playerResponse.captions;dW&&dW.playerCaptionsTracklistRenderer&&mma(this,dW.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&null!=this.clipConfig.startTimeMs&&(this.Wx=.001*Number(this.clipConfig.startTimeMs));(this.accountLinkingConfig=this.playerResponse.accountLinkingConfig)&&this.accountLinkingConfig.alsParam&&(this.zm=this.accountLinkingConfig.alsParam);this.ca("web_player_include_innertube_commands")&&
this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&kF(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}BF(this,a);a.queue_info&&(this.queueInfo=a.queue_info);var Hka=a.hlsdvr;null!=Hka&&(this.allowLiveDvr=xG("1"==Hka));this.adQueryId=a.ad_query_id||null;this.adSafetyReason||(this.adSafetyReason=a.encoded_ad_safety_reason||null);this.bA=a.agcid||
null;this.Wu=a.ad_id||null;this.bv=a.ad_sys||null;this.Ov=a.encoded_ad_playback_context||null;this.bl=S(this.bl,a.infringe||a.muted);this.authKey=a.authkey;this.ie=a.authuser;this.jA=a.autonav_watch_endpoint||null;this.mutedAutoplay=S(this.mutedAutoplay,a&&a.playmuted)&&this.ca("embeds_enable_muted_autoplay");this.Lo=S(this.Lo,a.enable_cardio);this.Br=S(this.Br,a.enable_cardio_before_playback);this.endSeconds=bC(this.endSeconds,this.Qx||a.end||a.endSeconds);this.zg=cC(this.zg,a.itct);this.Vw=S(this.Vw,
a.noiba);this.Yw=S(this.Yw,a.is_live_destination);this.isLivePlayback=S(this.isLivePlayback,a.live_playback);a.isUpcoming&&(this.isUpcoming=S(this.isUpcoming,a.isUpcoming));this.tf=S(this.tf,a.post_live_playback);this.isMdxPlayback=S(this.isMdxPlayback,a.mdx);var SG=a.mdx_control_mode;SG&&(this.mdxControlMode="number"===typeof SG?SG:g.rd(SG));this.Tw=S(this.Tw,a.is_inline_playback_no_ad);this.Ei=bC(this.Ei,a.reload_count);this.reloadReason=cC(this.reloadReason,a.reload_reason);this.qq=S(this.qq,a.show_content_thumbnail);
this.dx=S(this.dx,a.utpsa);this.Ky=S(this.Ky,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.Ny=a.tkn||null;var Ika=bF(a);0<Object.keys(Ika).length&&(this.Gh=Ika);this.Tf=cC(this.Tf,a.vvt);this.mdxEnvironment=cC(this.mdxEnvironment,a.mdx_environment);this.dM=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=cC(this.playlistId,a.list);a.index&&this.ca("embeds_wexit_list_ajax_migration")&&(this.playlistIndex=void 0===this.playlistIndex?bC(0,a.index):
bC(this.playlistIndex,a.index));this.aF=a.pyv_view_beacon_url;this.dF=a.pyv_quartile25_beacon_url;this.eF=a.pyv_quartile50_beacon_url;this.fF=a.pyv_quartile75_beacon_url;this.cF=a.pyv_quartile100_beacon_url;var Jka=a.remarketing_url;Jka&&(this.remarketingUrl=Jka);var Kka=a.ppv_remarketing_url;Kka&&(this.ppvRemarketingUrl=Kka);var Lka=a.session_data;!this.vF&&Lka&&(this.vF=Up(Lka).feature);this.Rw=1==bC(this.Rw?1:0,a.is_fling);this.vnd=bC(this.vnd,a.vnd);this.Pm=cC(this.Pm,a.force_ads_url);this.Qf=
cC(this.Qf,a.ctrl);this.Re=cC(this.Re,a.ytr);this.Yi=a.ytrcc;this.xF=a.ytrexp;this.yF=a.ytrext;this.Yp=cC(this.Yp,a.adformat);this.jz=cC(this.jz,a.attrib);this.slotPosition=bC(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.oq=S(this.oq,a.ssrt);this.videoId=eC(a)||this.videoId;this.Nh=cC(this.Nh,a.vss_credentials_token);this.pg=cC(this.pg,a.vss_credentials_token_type);this.sm=S(this.sm,a.audio_only);this.lz=S(this.lz,a.aac_high);this.Hk=S(this.Hk,a.prefer_low_quality_audio);this.Xp=
cC(this.Xp,a.qoe_cat);this.Mm=S(this.Mm,a.download_media);this.Vg=S(this.Vg,a.download_media_in_bg);this.ri=S(this.ri,a.prefer_gapless);a:{var eW=this.playerResponse;if(eW&&eW.adPlacements)for(var Mka=g.q(eW.adPlacements),fW=Mka.next();!fW.done;fW=Mka.next()){var TG=fW.value.adPlacementRenderer;if(null!=TG&&"AD_PLACEMENT_KIND_START"==(TG.config&&TG.config.adPlacementConfig&&TG.config.adPlacementConfig.kind)){var Nka=!0;break a}}Nka=!1}Nka&&(this.adModule=!0,this.Pe.push("ad"));var Oka=a.adaptive_fmts;
Oka&&(this.adaptiveFormats=Oka);var Pka=a.allow_embed;Pka&&(this.allowEmbed="1"==Pka);var Qka=a.backgroundable;Qka&&(this.backgroundable="1"==Qka);var Rka=a.autonav;Rka&&(this.Il="1"==Rka);var Ska=a.autoplay;Ska&&(this.Fk="1"==Ska);var Tka=a.iv_load_policy;Tka&&(this.annotationsLoadPolicy=aC(this.annotationsLoadPolicy,Tka,vC));var Uka=a.cc_lang_pref;Uka&&(this.captionsLanguagePreference=cC(Uka,this.captionsLanguagePreference));var Vka=a.cc_load_policy;Vka&&(this.Ui=aC(this.Ui,Vka,vC));var Wka=a.cached_load;
Wka&&(this.kv=S(this.kv,Wka));"0"==a.dash&&(this.QA=!0);var Xka=a.dashmpd;Xka&&(this.sg=g.Jd(Xka,{cpn:this.clientPlaybackNonce}));var Yka=a.delay;Yka&&(this.Ug=g.rd(Yka));var Zka=this.Qx||a.end;void 0!=Zka&&(this.clipEnd=bC(this.clipEnd,Zka));var $ka=a.fmt_list;$ka&&(this.dw=$ka);a.fresca_preroll&&this.Pe.push("fresca");a.heartbeat_preroll&&this.Pe.push("heartbeat");this.an=-Math.floor(10*Math.random());this.vp=-Math.floor(40*Math.random());var ala=a.is_listed;ala&&(this.isListed=S(this.isListed,
ala));var bla=a.is_private;bla&&(this.isPrivate=S(this.isPrivate,bla));var dla=a.pipable;dla&&(this.pipable=S(this.pipable,dla));this.Fy=(this.cv=this.pipable&&this.Pa.Is)&&(!this.Pa.showMiniplayerButton||this.ca("web_player_pip"));var ela=a.paid_content_overlay_duration_ms;ela&&(this.paidContentOverlayDurationMs=g.rd(ela));var fla=a.paid_content_overlay_text;fla&&(this.paidContentOverlayText=fla);var gla=a.url_encoded_fmt_stream_map;gla&&(this.Iq=gla);var hla=a.hls_formats;hla&&(this.hlsFormats=
hla);var ila=a.hlsvp;ila&&(this.hlsvp=ila);var UG=a.length_seconds;UG&&(this.lengthSeconds="string"===typeof UG?g.rd(UG):UG);var VG=a.live_start_walltime;VG&&(this.Ns="number"===typeof VG?VG:g.rd(VG));var WG=a.live_manifest_duration;WG&&(this.jn="number"===typeof WG?WG:g.rd(WG));var jla=a.player_params;jla&&(this.playerParams=jla);var kla=a.partnerid;kla&&(this.Eg=bC(this.Eg,kla));var lla=a.probe_url;lla&&(this.probeUrl=Kv(g.Jd(lla,{cpn:this.clientPlaybackNonce})));var mla=a.profile_picture;mla&&
(this.wf=cC(mla,this.wf));var gW=a.pyv_billable_url;gW&&Hv(gW)&&(this.Kn=gW);var hW=a.pyv_conv_url;hW&&Hv(hW)&&(this.bF=hW);wF(this,a);0<this.startSeconds||(this.qk=this.startSeconds=bC(this.startSeconds,this.Wx||this.Pw||a.start||a.startSeconds));var nla=a.live_utc_start;null!=nla&&(this.liveUtcStartSeconds=Number(nla));var ola=a.utc_start_millis;ola&&(this.liveUtcStartSeconds=.001*Number(ola));var pla=a.stream_time_start_millis;pla&&(this.ou=.001*Number(pla));var qla=this.Pw||a.start;void 0==qla||
"1"==a.resume||this.isLivePlayback||(this.clipStart=bC(this.clipStart,qla));var rla=a.url_encoded_third_party_media;rla&&(this.Un=Xp(rla));var iW=a.ypc_offer_button_formatted_text;if(iW){var sla=JSON.parse(iW);this.nz=null!=sla?sla:null;this.KG=iW}var tla=a.ypc_offer_button_text;tla&&(this.Ku=tla);var ula=a.ypc_offer_description;ula&&(this.Oq=ula);var vla=a.ypc_offer_headline;vla&&(this.Lu=vla);var wla=a.ypc_full_video_message;wla&&(this.Mq=wla);var xla=a.ypc_offer_id;xla&&(this.Mu=xla);var yla=a.ypc_buy_url;
yla&&(this.Gu=yla);var zla=a.ypc_item_thumbnail;zla&&(this.Hu=zla);var Ala=a.ypc_item_title;Ala&&(this.Iu=Ala);var Bla=a.ypc_item_url;Bla&&(this.Ju=Bla);var Cla=a.ypc_vid;Cla&&(this.Nu=Cla);a.ypc_overlay_timeout&&(this.Pq=Number(a.ypc_overlay_timeout));var Dla=a.ypc_trailer_player_vars;Dla&&(this.jo=Wp(Dla));var Ela=a.ypc_original_itct;Ela&&(this.uR=Ela);this.Ng=cC(this.Ng,a.ucid);a.baseUrl&&(this.Uc.baseUrl=a.baseUrl);a.uid&&(this.Uc.uid=a.uid);a.oeid&&(this.Uc.oeid=a.oeid);a.ieid&&(this.Uc.ieid=
a.ieid);a.ppe&&(this.Uc.ppe=a.ppe);a.engaged&&(this.Uc.engaged=a.engaged);a.subscribed&&(this.Uc.subscribed=a.subscribed);this.Uc.focEnabled=S(this.Uc.focEnabled,a.focEnabled);this.Uc.rmktEnabled=S(this.Uc.rmktEnabled,a.rmktEnabled);this.nu=a.storyboard_spec||null;this.Os=a.live_storyboard_spec||null;this.pC=a.iv_endscreen_url||null;this.Gs=S(this.Gs,a.iv3_module);this.ew=S(this.ew,a.fresca_module);this.Nq=S(this.Nq,a.ypc_license_checker_module);this.tm=S(this.tm,a.ypc_module);this.ho=S(this.ho,a.ypc_clickwrap_module);
this.tm&&this.Pe.push("ypc");this.ho&&this.Pe.push("ypc_clickwrap");this.TE={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};xF(this,a);RF(this)?GF(this)&&(this.isLivePlayback&&this.sg?this.al=!0:this.Xg&&(this.pp=!0)):SF(this)?this.al=!0:!LF(this,this.adaptiveFormats)&&this.sg&&(this.al=!0);var jW=a.adpings;jW&&(this.Zu=jW?Wp(jW):null);var Fla=a.feature;Fla&&(this.aq=Fla);var Gla=a.referrer;Gla&&(this.referrer=Gla);this.clientScreenNonce=cC(this.clientScreenNonce,a.csn);this.iq=bC(this.iq,a.root_ve_type);this.Js=bC(this.Js,a.kids_age_up_mode);void 0!=a.kids_app_info&&(this.kidsAppInfo=
a.kids_app_info);this.Hq=S(this.Hq,a.upg_content_filter_mode);var Hla=a.unplugged_location_info;Hla&&(this.be=Hla);var Ila=a.unplugged_partner_opt_out;Ila&&(this.Xn=cC("",Ila));this.wr=S(this.wr,a.disable_watch_next);this.lp=cC(this.lp,a.internal_ip_override);this.Ww=!!a.is_yto_interstitial;(this.interstitials.length||this.Ww)&&this.Pe.push("yto");var Jla=a.uj;Jla&&(this.uj=Jla);a.tq&&(this.tq=a.tq)};
g.k.T=function(){return this.Pa};
g.k.ca=function(a){return g.R(this.Pa.experiments,a)};
g.k.gw=function(){return Fs()};
g.k.oe=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.ZD=function(){this.la()||(this.ma.C||this.ma.unsubscribe("refresh",this.ZD,this),this.xA(-1))};
g.k.xA=function(a){if(!this.isLivePlayback||!this.Yc||"fairplay"!=this.Yc.flavor){var b=qA(this.ma,this.ex);if(0<b.length&&(this.W("cuepointupdated",b,a),this.ex+=b.length,NF(this)&&uG(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.W("ctmp","cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs)}}};
g.k.dr=function(a){var b=this;if(this.la())return Xr();this.Dj=this.Fg=this.Ia=null;var c=this.Pa.deviceParams.c;this.ca("disable_rqs")||(this.Ej=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||uG(this));return xma(this,a).then(void 0,function(){return yma(b,a)}).then(void 0,function(){return zma(b)}).then(void 0,function(){return Bma(b)})};
g.k.De=function(){var a={};this.Ma&&(a.fmt=Wu(this.Ma),this.Tc&&Wu(this.Tc)!=Wu(this.Ma)&&(a.afmt=Wu(this.Tc)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.bl&&(a.infringe=1);this.nj&&(a.splay=1);var b=aG(this);b&&(a.live=b);this.Fk&&(a.autoplay=1);this.au&&(a.sdetail=this.au);this.Eg&&(a.partnerid=this.Eg);this.osid&&(a.osid=this.osid);return a};
g.k.cg=function(){var a=g.MC(this.Pa)||this.ca("web_l3_storyboard");if(!this.Og)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Og=new qF(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ma&&(c=Ob(this.ma.u).index)&&(this.Og=new tF(b.spec,this.ma.isLive,c,a))}else this.nu?this.Og=new qF(this.nu,this.lengthSeconds,void 0,!1,a):this.Os&&this.ma&&(b=Ob(this.ma.u).index)&&
(this.Og=new tF(this.Os,this.ma.isLive,b,a));return this.Og};
g.k.getStoryboardFormat=function(){if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.nu||this.Os};
g.k.Dd=function(){return this.ma&&!isNaN(this.ma.Dd())?this.ma.Dd():NF(this)?0:this.lengthSeconds};
g.k.wc=function(){return this.ma&&!isNaN(this.ma.wc())?this.ma.wc():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.ma&&this.Ma){var b=this.ma.u[this.Ma.id];if(!b)return null;var c=b.index.bh(a);b=b.index.Fe(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.la()&&!(!this.videoId&&!this.Un)};
g.k.Fc=function(){return dG(this)&&!this.al&&!this.pp};
g.k.Sd=function(a){if(30==this.Eg)return(a=this.Gh["default.jpg"])?a:this.videoId?g.Jd("//docs.google.com/vt",{id:this.videoId,authuser:this.ie,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Gh[a];return b||this.Pa.N||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:HC(this.Pa,this.videoId,a)};
g.k.Ag=function(){return this.isLivePlayback||this.tf||this.np||!(!this.liveUtcStartSeconds||!this.jn)};
g.k.isOtf=function(){return!!this.ma&&(this.ma.isOtf||!this.tf&&!this.isLivePlayback&&this.ma.C)};
g.k.getAvailableAudioTracks=function(){return this.Ia?0<this.Ia.getAvailableAudioTracks().length?this.Ia.getAvailableAudioTracks():this.ys||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.Tc&&!xw(this.Tc))return g.jb(this.getAvailableAudioTracks(),function(d){return d.id==a.Tc.id})||this.Go;
if(this.ys){if(!this.kq)for(var b=g.q(this.ys),c=b.next();!c.done;c=b.next())if(c=c.value,c.u.getIsDefault()){this.kq=c;break}return this.kq||this.Go}return this.Go};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.La=function(){return this};
g.k.jk=function(){return this.Pa.getVideoUrl(this.videoId)};
g.k.oj=function(){return!!this.ma&&this.ma.oj()};
g.k.pj=function(){return!!this.ma&&this.ma.pj()};
g.k.kj=function(){return!!this.ma&&this.ma.kj()};
g.k.bn=function(){return!!this.ma&&this.ma.bn()};
g.k.isAd=function(){return!!this.adFormat};
g.k.Ze=function(){return this.oauthToken||this.Pa.zd};
g.k.fC=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.MF=function(){return this.Gs};
g.k.Cy=function(){return this.ew};
g.k.Dy=function(){return this.Nq||this.ne};
g.k.nq=function(){return this.tm||this.ne};
g.k.dv=function(){return HF(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.Yc&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.Yc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.Yc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.Yc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};g.zG.prototype.toString=function(){return this.type+this.id};g.u(g.AG,g.P);g.k=g.AG.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.ii=function(a){return this.loop||!!a||0<=this.index-1};
g.k.La=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.uF(this.Pa,a),g.C(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.Ks++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.Ks++}this.W("shuffle")};
g.k.Sd=function(a){a=a||"hqdefault.jpg";var b=this.Gh[a];if(b||this.Pa.N||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.ZF.length)return HC(this.Pa,this.ZF[0],a)};
g.k.getLength=function(){return this.length};
g.k.loadPlaylist=function(a,b){var c=this;this.JH&&g.pq(g.Jd(a,b),{format:"JSON",onSuccess:function(d,e){FG(c,e)},
onError:function(){return c.W("error")}})};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.Zp=a;this.loaded&&g.Go(this.Zp,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.jk=function(){return this.Pa.getVideoUrl(this.La().videoId,this.getPlaylistId())};
g.k.aa=function(){this.Zp=null;g.fg(this.items);g.P.prototype.aa.call(this)};HG.prototype.B=function(a,b){var c,d,e,f=null===(d=null===(c=b.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars,h=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar;f&&h&&this.replace(f,h)};
HG.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.u[d.value.encryptedTokenJarContents];GG(this,b)};YG.prototype.B=function(a){var b,c,d=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==d&&(this.locationPlayabilityToken=d,this.u=void 0,"TVHTML5"===(null===(c=a.responseContext)||void 0===c?void 0:c.clientName)?(this.localStorage=XG(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.vq("YT_CL",d,15552E3,void 0,!0))};var $G={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"};var Pma=/[&\?]action_proxy=1/,Oma=/[&\?]token=([\w-]*)/,Qma=/[&\?]video_id=([\w-]*)/,Rma=/[&\?]index=([\d-]*)/,Sma=/[&\?]m_pos_ms=([\d-]*)/,Tma=/[&\?]vvt=([\w-]*)/,Uma=/[&\?]mt=([\d-]*)/,Lma="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),nH="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),
lH={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},mH={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},oH={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};
dH.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return jH(this,a,b);var d=1===this.B;d&&this.u.app.N.tick("a_bid_s");var e=Ima();if(null!==e)return d&&this.u.app.N.tick("a_bid_f"),jH(this,a,b,e);e=Jma();d&&Jm(e,function(){c.u.app.N.tick("a_bid_f")});
return e.then(function(f){return jH(c,a,b,f)})};
dH.prototype.reset=function(){this.D=this.B=1};g.k=qH.prototype;g.k.Po=function(a){a:{var b=g.q(this.C.u.u.values());for(var c=b.next();!c.done;c=b.next()){c=g.q(c.value.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.slot.slotId===a&&"scheduled"===d.u){b=!0;break a}}b=!1}if(b)this.B.Po(a);else try{this.u().Po(a)}catch(e){g.Fo(e)}};
g.k.Bo=function(){a:{var a=kQ(this.C.u,"slot_type_above_feed_1");a=g.q(a.values());for(var b=a.next();!b.done;b=a.next())if(jQ(b.value)){a=!0;break a}a=!1}a?this.B.Bo():this.u().Bo()};
g.k.Gr=function(a){this.u().Gr(a)};
g.k.jt=function(){this.u().jt()};
g.k.it=function(){this.u().it()};
g.k.yp=function(){this.u().yp()};g.u(rH,g.B);var Zpa=new Map([[0,"trigger_category_layout_exit_normal"],[1,"trigger_category_layout_exit_skip"],[2,"trigger_category_layout_exit_mute"],[3,"trigger_category_slot_expiration"],[4,"trigger_category_slot_fulfillment"],[5,"trigger_category_slot_entry"],[6,"trigger_category_layout_exit_user_input_submitted"]]);xH.prototype.get=function(){return this.value};
g.u(yH,xH);yH.prototype.u=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(zH,xH);zH.prototype.u=function(){return"metadata_type_ad_next_params"};
g.u(AH,xH);AH.prototype.u=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(BH,xH);BH.prototype.u=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(CH,xH);CH.prototype.u=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(DH,xH);DH.prototype.u=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(EH,xH);EH.prototype.u=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(FH,xH);FH.prototype.u=function(){return"metadata_ad_video_is_listed"};
g.u(GH,xH);GH.prototype.u=function(){return"metadata_type_ad_placement_config"};
g.u(HH,xH);HH.prototype.u=function(){return"metadata_type_ad_pod_info"};
g.u(IH,xH);IH.prototype.u=function(){return"metadata_type_ad_video_id"};
g.u(JH,xH);JH.prototype.u=function(){return"metadata_type_content_cpn"};
g.u(KH,xH);KH.prototype.u=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(LH,xH);LH.prototype.u=function(){return"metadata_type_valid_instream_survey_ad_renderer"};
g.u(MH,xH);MH.prototype.u=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(NH,xH);NH.prototype.u=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(OH,xH);OH.prototype.u=function(){return"metadata_type_linked_in_player_layout_id"};
g.u(PH,xH);PH.prototype.u=function(){return"metadata_type_player_bytes_callback"};
g.u(QH,xH);QH.prototype.u=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(RH,xH);RH.prototype.u=function(){return"metadata_type_sub_layouts"};
g.u(SH,xH);SH.prototype.u=function(){return"metadata_type_cue_point"};
g.u(TH,xH);TH.prototype.u=function(){return"metadata_type_video_length_seconds"};
g.u(UH,xH);UH.prototype.u=function(){return"metadata_type_player_vars"};
g.u(VH,xH);VH.prototype.u=function(){return"metadata_type_sodar_extension_data"};
g.u(WH,xH);WH.prototype.u=function(){return"metadata_type_layout_enter_ms"};
g.u(XH,xH);XH.prototype.u=function(){return"metadata_type_layout_exit_ms"};
g.u(YH,xH);YH.prototype.u=function(){return"metadata_type_sub_layout_index"};
g.u(ZH,xH);ZH.prototype.u=function(){return"metadata_type_dai"};
g.u($H,xH);$H.prototype.u=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u(aI,xH);aI.prototype.u=function(){return"metadata_type_drift_recovery_ms"};
g.u(bI,xH);bI.prototype.u=function(){return"metadata_type_fulfilled_layout"};
g.u(cI,xH);cI.prototype.u=function(){return"metadata_type_ad_break_request_data"};
g.u(dI,xH);dI.prototype.u=function(){return"metadata_type_ad_break_response_data"};
g.u(eI,xH);eI.prototype.u=function(){return"metadata_type_remote_slots_data"};
g.u(fI,xH);fI.prototype.u=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(gI,xH);gI.prototype.u=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(hI,xH);hI.prototype.u=function(){return"metadata_type_instream_video_ad_commands"};g.u(jI,$a);g.u(tI,g.B);tI.prototype.vi=function(a,b,c,d,e,f){var h=this;lR(this.ya.get())&&!e&&Zma(d.filter(iI),a,f);var l=uH(this.Ba.get(),1);sH(this.ob.get(),"opportunity_type_player_response_received",function(){return vH(h.hc.get(),c,d,a,b,e,l)});
VM(this.ya.get())&&lsa(this.Xu)};
tI.prototype.Ql=function(){};g.u(xI,g.TD);xI.prototype.deactivate=function(){this.B=!0};DI.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.va("updateKevlarOrC3Companion",b)};EI.prototype.mp=function(){return!1};
EI.prototype.ea=function(){return function(){return null}};var GI=null;g.u(FI,g.P);FI.prototype.To=function(a){return this.u.hasOwnProperty(a)?this.u[a].To():{}};
g.Ia("ytads.bulleit.getVideoMetadata",function(a){return HI().To(a)},void 0);
g.Ia("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=HI();c=cna(c);null!==c&&d.W(c,{queryId:a,viewabilityString:b})},void 0);g.u(KI,EI);g.k=KI.prototype;g.k.sf=function(){return!0};
g.k.Ie=function(){return!1};
g.k.isSkippable=function(){return null!=this.ra};
g.k.getVideoUrl=function(){return this.Y};
g.k.mp=function(){return!0};g.u(NI,EI);NI.prototype.sf=function(){return!0};
NI.prototype.Ie=function(){return!0};g.u(UI,EI);UI.prototype.sf=function(){return!0};
UI.prototype.Ie=function(){return!1};
UI.prototype.mp=function(){return!0};
UI.prototype.ea=function(){return function(){return g.re("video-ads")}};VI.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.u.u};var fra={GR:"FINAL",SR:"AD_BREAK_LENGTH",TR:"AD_CPN",UR:"AH",VR:"AD_MT",WR:"ASR",YR:"AW",SS:"NM",US:"NX",VS:"NY",aT:"CONN",kT:"CPN",aV:"DV_VIEWABILITY",pV:"ERRORCODE",sV:"ERROR_MSG",uV:"EI",YV:"GOOGLE_VIEWABILITY",sW:"IAS_VIEWABILITY",kX:"LACT",xX:"LIVE_TARGETING_CONTEXT",HX:"I_X",IX:"I_Y",gZ:"MT",lZ:"MIDROLL_POS",mZ:"MIDROLL_POS_MS",nZ:"MOAT_INIT",oZ:"MOAT_VIEWABILITY",V_:"P_H",W_:"PV_H",X_:"PV_W",Y_:"P_W",f0:"TRIGGER_TYPE",O0:"SDKV",C1:"SLOT_POS",W1:"SURVEY_LOCAL_TIME_EPOCH_S",V1:"SURVEY_ELAPSED_MS",
vH:"VIS",d3:"VIEWABILITY",e3:"VED",k3:"VOL",m3:"WT",J3:"YT_ERROR_CODE"};var ona=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];eJ.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.on(a.baseUrl,mna(b,c,d)),f;if(a.headers)for(var h=g.q(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.Ze();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.B();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.Ct(e,void 0,d,f)}catch(p){}};g.u(fJ,eJ);fJ.prototype.Ze=function(){return this.u?this.u.Ze():""};
fJ.prototype.B=function(){return this.u?this.u.T().pageId:""};gJ.prototype.send=function(a,b,c){try{var d=a.match(wd);if("https"===d[1])var e=a;else d[1]="https",e=ud("https",d[2],d[3],d[4],d[5],d[6],d[7]);var f=nn(e);a=[];dq(e)&&(a.push({headerType:"USER_AUTH"}),a.push({headerType:"PLUS_PAGE_ID"}));this.u.send({baseUrl:e,scrubReferrer:f,headers:a},b,c)}catch(h){}};g.u(hJ,g.B);g.u(oJ,g.B);g.u(NJ,g.P);g.k=NJ.prototype;g.k.To=function(){return{}};
g.k.py=function(){};
g.k.Sb=function(a){this.Sg();this.W(a)};
g.k.Sg=function(){QJ(this,this.Y,3);this.Y=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.lk=function(){var a=this.Fa;pJ(a)||!CJ(a,"impression")&&!CJ(a,"start")||CJ(a,"abandon")||CJ(a,"complete")||CJ(a,"skip")||(rJ(a)?BJ(a,"pause"):vJ(a,"pause"))};
g.k.ij=function(){this.V||this.F||this.Jc()};
g.k.Ge=function(){wJ(this.Fa,this.getDuration())};
g.k.Td=function(){var a=this.Fa;!CJ(a,"impression")||CJ(a,"skip")||CJ(a,"complete")||BJ(a,"abandon")};
g.k.mk=function(){var a=this.Fa;rJ(a)?vJ(a,"skip"):!CJ(a,"impression")||CJ(a,"abandon")||CJ(a,"complete")||vJ(a,"skip")};
g.k.Jc=function(){if(!this.F){var a=OJ(this);this.Fa.C.AD_CPN=a;a=this.Fa;if(rJ(a)){var b=a.u.getCurrentTime(2,!1);zJ(a,"impression",b,0)}else vJ(a,"impression");vJ(a,"start");pJ(a)||a.u.isFullscreen()&&BJ(a,"fullscreen");this.F=!0}};
g.k.Ed=function(a){a=a||"";var b="",c="",d="";iJ(this.J)&&(b=g.AJ(this.J,2).state,this.J.app.F&&(c=this.J.app.F.gg(),null!=this.J.app.F.oh()&&(d=this.J.app.F.oh())));var e=this.Fa;e.C=dJ(e.C,bJ(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));vJ(e,"error")};
g.k.rf=function(){};
g.k.gF=function(){this.W("adactiveviewmeasurable")};
g.k.hF=function(){this.W("adfullyviewableaudiblehalfdurationimpression")};
g.k.iF=function(){this.W("adoverlaymeasurableimpression")};
g.k.jF=function(){this.W("adoverlayunviewableimpression")};
g.k.kF=function(){this.W("adoverlayviewableendofsessionimpression")};
g.k.lF=function(){this.W("adoverlayviewableimmediateimpression")};
g.k.mF=function(){this.W("adviewableimpression")};
g.k.dispose=function(){this.la()||(this.Sg(),this.B.unsubscribe("adactiveviewmeasurable",this.gF,this),this.B.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.hF,this),this.B.unsubscribe("adoverlaymeasurableimpression",this.iF,this),this.B.unsubscribe("adoverlayunviewableimpression",this.jF,this),this.B.unsubscribe("adoverlayviewableendofsessionimpression",this.kF,this),this.B.unsubscribe("adoverlayviewableimmediateimpression",this.lF,this),this.B.unsubscribe("adviewableimpression",
this.mF,this),delete this.B.u[this.ad.K],g.P.prototype.dispose.call(this))};
g.k.YA=function(){return""};g.u(TJ,NJ);TJ.prototype.aa=function(){this.D&&(this.J.removeEventListener("videodatachange",this.D),this.D=null);this.u&&(this.J.removeEventListener("onAdStart",this.u),this.u=null);NJ.prototype.aa.call(this)};g.u(VJ,EI);VJ.prototype.sf=function(){return!1};
VJ.prototype.Ie=function(){return!0};g.u(WJ,HJ);g.u(XJ,TJ);XJ.prototype.Od=function(){var a=this,b=this.J.getVideoData(2),c=this.G.renderer;UJ(this)||(b&&(c&&c.adVideoId||b.wf&&YJ(this,b))?this.Pk():(this.C=function(d,e,f){e&&2==f&&YJ(a,e)&&e.wf&&(a.C&&(a.J.removeEventListener("videodatachange",a.C),a.C=null),a.Pk())},this.J.addEventListener("videodatachange",this.C)))};
XJ.prototype.Pk=function(){RJ(this,[this.G])};
XJ.prototype.rf=function(a){EJ(this.Fa,a)};
XJ.prototype.aa=function(){this.C&&(this.J.removeEventListener("videodatachange",this.C),this.C=null);TJ.prototype.aa.call(this)};g.u(ZJ,EI);ZJ.prototype.sf=function(){return!0};
ZJ.prototype.Ie=function(){return!1};g.u($J,HJ);g.u(aK,NJ);g.k=aK.prototype;g.k.Od=function(){0<this.u&&this.Jc()};
g.k.Jc=function(){var a=this;this.Wa=new g.G(function(){a.Ge();for(var b=g.q(a.C.u.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.Sb("adended")},this.u,this);
g.C(this,this.Wa);this.Wa.start();RJ(this,[new $J(this.C.u,this.macros)]);NJ.prototype.Jc.call(this)};
g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
g.k.Ge=function(){NJ.prototype.Ge.call(this)};
g.k.Sb=function(a){this.Wa&&this.Wa.stop();NJ.prototype.Sb.call(this,a)};g.u(bK,HJ);g.u(cK,NJ);cK.prototype.Od=function(){this.Jc()};
cK.prototype.Jc=function(){NJ.prototype.Jc.call(this);if(g.R(this.J.T().experiments,"self_podding_force_opt_in")){var a=this.u.u.forceSelfPodOptInCommand;a&&this.C.executeCommand(a,this.macros)}else RJ(this,[new bK(this.u.u,this.macros)])};
cK.prototype.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
cK.prototype.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};g.u(dK,EI);dK.prototype.sf=function(){return!0};
dK.prototype.Ie=function(){return!1};g.u(eK,EI);eK.prototype.sf=function(){return!0};
eK.prototype.Ie=function(){return!1};g.u(fK,EI);fK.prototype.sf=function(){return!1};
fK.prototype.Ie=function(){return!0};g.u(gK,EI);gK.prototype.sf=function(){return!0};
gK.prototype.Ie=function(){return!0};g.u(hK,EI);hK.prototype.sf=function(){return!0};
hK.prototype.Ie=function(){return!1};g.u(iK,EI);iK.prototype.sf=function(){return!1};
iK.prototype.Ie=function(){return!0};g.u(jK,EI);jK.prototype.sf=function(){return!0};
jK.prototype.Ie=function(){return!1};g.u(kK,EI);kK.prototype.sf=function(){return!0};
kK.prototype.Ie=function(){return!1};lK.prototype.create=function(a,b,c){return a instanceof KI?this.ba.create(a,b):a instanceof gK?this.K.create(a,b):a instanceof iK?this.P.create(a,b,c):a instanceof UI?this.V.create(a,b):a instanceof ZJ?this.B.create(a,b):a instanceof hK?this.N.create(a,b):a instanceof VJ?this.u.create(a,b,c):a instanceof kK?this.Y.create(a,b):a instanceof jK?this.X.create(a,b):a instanceof NI?this.C.create(a,b):a instanceof eK?this.F.create(a,b):a instanceof dK?this.D.create(a,b):a instanceof fK?this.G.create(a,b):
null};g.u(mK,NJ);g.k=mK.prototype;g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
g.k.lk=function(){NJ.prototype.lk.call(this);this.W("adpause",2)};
g.k.ij=function(){NJ.prototype.ij.call(this);this.W("adplay",1)};
g.k.Jc=function(){NJ.prototype.Jc.call(this);this.u.stop();this.C.R(this.J,g.WD("bltplayback"),this.IL);var a=new g.TD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.nN(this.J,[a],2);this.W("adplay",1)};
g.k.Ge=function(){NJ.prototype.Ge.call(this);this.Sb("adended")};
g.k.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};
g.k.Od=function(){mJ(this.J,!1);var a=this.D.B||{};a.autoplay="1";this.J.cueVideoByPlayerVars(a,2);this.u.start();this.J.playVideo(2);this.J.va("onAdIntroStateChange",1)};
g.k.Sb=function(a){this.u.stop();mJ(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");this.J.va("onAdEnd");this.W(a);this.J.va("onAdIntroStateChange",0)};
g.k.IL=function(a){"bltcompletion"==a.getId()&&(g.sX(this.J,"bltplayback",2),wJ(this.Fa,this.getDuration()))};g.u(nK,HJ);g.u(oK,NJ);g.k=oK.prototype;
g.k.Od=function(){if(this.G)for(var a=g.q(this.G.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.B={slotId:PQ(b.Ua.get(),"slot_type_in_player"),Xa:"slot_type_in_player",feedPosition:1,Nb:void 0,te:[],gf:[],ab:"surface",xa:new PP([])};var c=b.C(),d=b.B;pK(c.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);c=g.q(c.B);for(var e=c.next();!e.done;e=c.next())e.value.jg(d);d=b.C();b=b.B;d=g.q(d.B);for(c=d.next();!c.done;c=d.next())c.value.zh(b)}0>=this.K&&(M(Error("durationMs was specified incorrectly with a value of: "+this.K)),
this.Ge());this.Jc();this.J.addEventListener("progresssync",this.P)};
g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandonedreset")};
g.k.Jc=function(){var a=this.J.T();NJ.prototype.Jc.call(this);this.u=Math.floor(this.J.getCurrentTime());this.D=this.u+this.K/1E3;g.zC(a)?this.J.va("onAdMessageChange",{renderer:this.C.u,startTimeSecs:this.u}):RJ(this,[new nK(this.C.u)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Ps(),c=g.R(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs;b&&g.Dq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.D,
timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)});if(this.G)for(this.N=!0,a=g.q(this.G.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.B)if(b.u)sI("Received AdNotify started event before another one exited");else{b.u=b.B;c=b.C();b=b.u;pK(c.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Je(b)}else sI("Received AdNotify started event without start requested event");g.U(g.AJ(this.J,1),
512)&&(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Ps(),c=g.R(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs,b&&g.Dq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.D,timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)}),this.Ge())};
g.k.Ge=function(){NJ.prototype.Ge.call(this);this.Sb("adended")};
g.k.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};
g.k.Sb=function(a){this.J.removeEventListener("progresssync",this.P);this.Sg();this.W(a);qK(this)};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.P);qK(this);NJ.prototype.dispose.call(this)};
g.k.Sg=function(){g.zC(this.J.T())?this.J.va("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):NJ.prototype.Sg.call(this)};g.u(rK,HJ);g.u(sK,NJ);sK.prototype.Od=function(){RJ(this,[new rK(this.ad.u,this.macros)])};
sK.prototype.rf=function(a){EJ(this.Fa,a)};g.u(tK,HJ);g.u(uK,NJ);uK.prototype.Od=function(){var a=new tK(this.u.u,this.macros);RJ(this,[a])};g.u(vK,HJ);g.u(wK,NJ);wK.prototype.Od=function(){this.Jc()};
wK.prototype.Jc=function(){RJ(this,[new vK(this.u.u,this.macros)]);NJ.prototype.Jc.call(this)};
wK.prototype.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};g.u(xK,HJ);DK.prototype.sendAdsPing=function(a){this.F.send(a,HK(this),{})};g.u(JK,HJ);g.u(KK,TJ);KK.prototype.Od=function(){UJ(this)||this.Pk()};
KK.prototype.Pk=function(){RJ(this,[this.C])};
KK.prototype.rf=function(a){EJ(this.Fa,a)};g.u(MK,g.P);MK.prototype.getProgressState=function(){return this.C};
MK.prototype.start=function(){this.D=Date.now();LK(this,{current:this.u/1E3,duration:this.B/1E3});this.Wa.start()};
MK.prototype.stop=function(){this.Wa.stop()};g.u(NK,HJ);g.u(OK,NJ);g.k=OK.prototype;g.k.Od=function(){this.Jc()};
g.k.Jc=function(){var a=this.D.u;g.zC(this.J.T())?(a=Bna(this.G,a),this.J.va("onAdInfoChange",a),this.K=Date.now(),this.u&&this.u.start()):RJ(this,[new NK(a)]);NJ.prototype.Jc.call(this)};
g.k.getDuration=function(){return this.D.B};
g.k.lk=function(){NJ.prototype.lk.call(this);this.u&&this.u.stop()};
g.k.ij=function(){NJ.prototype.ij.call(this);this.u&&this.u.start()};
g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
g.k.mk=function(){NJ.prototype.mk.call(this);this.Sb("adended")};
g.k.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};
g.k.Sb=function(a){this.Sg();this.W(a)};
g.k.rf=function(a){switch(a){case "skip-button":this.mk();break;case "survey-submit":this.Sb("adended")}};
g.k.Sg=function(){g.zC(this.J.T())?(this.u&&this.u.stop(),this.J.va("onAdInfoChange",null)):NJ.prototype.Sg.call(this)};g.u(PK,HJ);g.u(QK,NJ);QK.prototype.Od=function(){this.Jc()};
QK.prototype.Jc=function(){RJ(this,[new PK(this.u.u,this.macros)]);NJ.prototype.Jc.call(this)};
QK.prototype.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
QK.prototype.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};g.u(RK,HJ);g.u(SK,NJ);g.k=SK.prototype;g.k.Od=function(){0<this.u&&this.Jc()};
g.k.Jc=function(){this.Wa=new g.G(this.Ge,this.u,this);g.C(this,this.Wa);this.Wa.start();RJ(this,[new RK(this.C.u)]);NJ.prototype.Jc.call(this)};
g.k.Ge=function(){NJ.prototype.Ge.call(this);this.Sb("adended");for(var a=g.q(this.C.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
g.k.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};
g.k.Sb=function(a){this.Wa&&this.Wa.stop();NJ.prototype.Sb.call(this,a)};g.u(XK,HJ);g.u(YK,HJ);g.u(ZK,HJ);g.u($K,HJ);g.u(aL,HJ);g.u(bL,HJ);g.u(cL,NJ);g.k=cL.prototype;g.k.To=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.u.B,isPlaying:jJ(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.Od=function(){if(this.u.V)SJ(this),this.Sb("aderror");else{var a=this.u.u.legacyInfoCardVastExtension,b=this.u.C;a&&b&&this.J.T().K.add(b,{Ao:a});try{var c=this.u.u.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&Te(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.Fr(d)}mJ(this.J,!1);a=LI(this.u);b=this.J.T();g.R(this.J.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.u||g.zC(b)||g.MC(b)?3:1);c=this.J.getVideoData(1);c.Qf&&(a.ctrl=c.Qf);c.Re&&(a.ytr=c.Re);c.Yi&&(a.ytrcc=
c.Yi);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.pg&&(a.vss_credentials_token_type=c.pg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.ha&&this.W("adunstarted",-1);!mR(this.K)&&g.zC(b)&&(b=jL(this),b=xna(this.da,b,this.u.u.adNextParams||""),b.attributionInfo=CK(this.u.D,this.u.C||""),this.J.va("onAdInfoChange",b));this.daiEnabled?this.D.start():(this.J.cueVideoByPlayerVars(a,2),this.D.start(),this.J.playVideo(2))}};
g.k.lk=function(){NJ.prototype.lk.call(this);this.W("adpause",2)};
g.k.ij=function(){NJ.prototype.ij.call(this);this.W("adplay",1)};
g.k.Jc=function(){NJ.prototype.Jc.call(this);this.D.stop();this.ba.R(this.J,g.WD("bltplayback"),this.JL);var a=new g.TD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.nN(this.J,[a],2);a=gL(this);this.C.ra=a;if(!mR(this.K)){a=[];var b=this.J.T(),c=this.J.getVideoData(2);if(NC(b)||g.zC(b)){var d;(d=c&&c.isListed?{channelId:c.Ng,channelThumbnailUrl:c.wf||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.J.va("onAdMetadataAvailable",d)}g.zC(b)||(!g.MC(b)||(g.R(this.J.T().experiments,"enable_upg_processed_dvr_dai")?this.daiEnabled:this.C.u.getVideoData(1).Ag())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.C&&(b=c.title,d=c.author,c=c.wf,b&&d&&c?c=[new YK(b),new XK(c),new ZK(d)]:(g.Gr(new Sq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),RJ(this,c)),a.push(CK(this.u.D,this.u.C||"")),c=this.u.G,null==c?c=null:(b={},c.urlEndpoint&&
(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new bL({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!MI(this.u)&&(c=jL(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=hL(this)),a.push(new aL(c)))),c=jL(this),a.push(new $K(c)),RJ(this,a))}this.J.isMuted()&&(a=this.Fa,c=this.J.isMuted(),rJ(a)||vJ(a,c?"mute":"unmute"));this.W("adplay",1);if(null!==this.G){a=null!==this.C.u.getVideoData(1)?this.C.u.getVideoData(1).clientPlaybackNonce:
"";c=dL(this);b=this.u;d=Cna(this);for(var e=g.q(this.G.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=c,l=b,m=d;if(f.u)sI(f.u.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var n=PQ(f.Ua.get(),"slot_type_player_bytes");f.B={slotId:n,Xa:"slot_type_player_bytes",feedPosition:1,Nb:void 0,te:[],gf:[],ab:"surface",xa:new PP([])};var p=[],r=l.C||"";r&&p.push(new IH(r));(r=(r=l.u)&&r.playerOverlay&&r.playerOverlay.instreamAdPlayerOverlayRenderer)&&
p.push(new KH(r));l.u.adNextParams&&p.push(new zH(l.u.adNextParams||""));(r=l.G)&&p.push(new AH(r));(r=uH(f.Ba.get(),2))?(p.push(new EH({channelId:r.Ng,channelThumbnailUrl:r.wf,channelTitle:r.author,videoTitle:r.title})),p.push(new FH(r.isListed))):sI("Expected meaningful PlaybackData on ad started.");p.push(new HH(l.D));p.push(new TH(l.B));p.push(new JH(a));p.push(new QH({current:this}));r=l.za;null!=r.kind&&p.push(new GH(r));(l=l.X)&&p.push(new eI(l));void 0!==m&&p.push(new fI(m));f.u={layoutId:h,
layoutType:"layout_type_media",Rc:new Map,Ld:[],kd:[],jd:[],Md:[],ab:"surface",xa:new PP(p),sd:Jpa(TP(f.Ya.get()),n,"slot_type_player_bytes",1,"surface",void 0,h,"layout_type_media","surface")};Mpa(f.C(),f.B,f.u);Opa(f.C(),f.B,f.u)}}this.P=!0}this.J.va("onAdStart",gL(this));a=this.ea;c=this.u.C||"";(b=a.B.Vb())&&b.getVideoData().videoId===c?a.u=cra(b.G):a.u=null;a=g.q(this.u.u.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.C.executeCommand(c.value,this.macros)};
g.k.JL=function(a){"bltcompletion"==a.getId()&&(g.sX(this.J,"bltplayback",2),wJ(this.Fa,this.getDuration()),fL(this,"adended"))};
g.k.Ge=function(){NJ.prototype.Ge.call(this);this.Sb("adended");for(var a=g.q(this.u.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Td=function(){NJ.prototype.Td.call(this);this.Sb("adabandoned")};
g.k.ky=function(){var a=this.Fa;pJ(a)||BJ(a,"clickthrough")};
g.k.DE=function(){this.mk()};
g.k.mk=function(){NJ.prototype.mk.call(this);this.Sb("adended")};
g.k.Ed=function(a){NJ.prototype.Ed.call(this,a);this.Sb("aderror")};
g.k.Sb=function(a){this.D.stop();mR(this.K)||this.Sg();mJ(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");fL(this,a);this.J.va("onAdEnd",gL(this));this.W(a)};
g.k.Sg=function(){var a=this.J.T();g.zC(a)&&(g.MC(a)||g.R(a.experiments,"enable_topsoil_wta_for_halftime")||g.zC(a))?this.J.va("onAdInfoChange",null):NJ.prototype.Sg.call(this)};
g.k.py=function(){this.oC&&this.J.playVideo()};
g.k.oC=function(){return 2==this.J.getPlayerState(2)};
g.k.rf=function(a){if(!mR(this.K)){var b=this.Fa;if(iJ(b.u))switch(a){case "ad-title":b.u.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.u.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.u.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.N||this.py();break;case "ad-info-icon-button":(this.N=this.oC())||this.J.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.J.T().protocol+"://"+g.FC(this.J.T())+"/channel/"+this.u.ba;g.WK(a);break;case "ad-title":this.J.pauseVideo();g.WK(this.J.getVideoUrl());break;case "visit-advertiser":this.J.pauseVideo();if(g.MC(this.J.T())&&(a=this.u.G)){b=this.Fa;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.baseUrl){var e=d.headers||[];b.G.send(d.baseUrl,yJ(b),{},e)}}a.urlEndpoint&&a.urlEndpoint.url&&g.WK(a.urlEndpoint.url)}a=
this.Fa;pJ(a)||BJ(a,"clickthrough");break;case "skip-button":this.mk()}}};
g.k.YA=function(a,b){if(this.u.V)return SJ(this),this.Sb("aderror"),"";if(!Number.isFinite(a))return g.Fr(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Fr(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.B,d=LI(this.u);d=$Aa(this.J.app,d,c,a,b);a+c>b&&aBa(this.J.app,d,b-a);return d};
g.k.dispose=function(){jJ(this.J)&&!this.daiEnabled&&this.J.stopVideo(2);fL(this,"adabandoned");NJ.prototype.dispose.call(this)};kL.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.u[b];c?b=c:(c={Jm:null,wC:-Infinity},b=this.u[b]=c);c=a.startSecs+a.u/1E3;if(!(c<b.wC)){b.wC=c;if(b.Jm){if(c<b.Jm.end){a:{c=b.Jm;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Jm.end=a,this.B.YD(a));return}if(this.C)b.Jm=
null;else return}if(a=Ena(a,this.D))c=a.vJ,b.Jm=a.YH,this.B.jE(c)}};
kL.prototype.updateTime=function(){};g.u(nL,EI);g.u(oL,nL);oL.prototype.sf=function(){return!1};
oL.prototype.Ie=function(){return!0};
oL.prototype.B=function(){var a=new CI;a.imageCompanionAdRenderer=this.u;return a};wL.prototype.reset=function(){return new wL(this.J)};var SCa=jY&&4>wG?.1:0,usa=new DL;g.k=DL.prototype;g.k.Qq=null;g.k.getDuration=function(){return this.duration||0};
g.k.getCurrentTime=function(){return this.currentTime||0};
g.k.Bh=function(){this.src&&(jk&&0<this.readyState&&(this.currentTime=Math.max(SCa,0)),this.removeAttribute("src"),this.load(),this.Qq&&this.Qq.B&&(this.Qq&&this.Qq.dispose(),this.Qq=null))};
g.k.LH=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};var g2={},h2=(g2.BUFFERING="buffering-mode",g2.CUED="cued-mode",g2.ENDED="ended-mode",g2.PAUSED="paused-mode",g2.PLAYING="playing-mode",g2.SEEKING="seeking-mode",g2.UNSTARTED="unstarted-mode",g2);var TCa,i2,Mna;
TCa={kS:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",sS:"AUTHENTICATION_MALFORMED",tS:"AUTHENTICATION_MISSING",AS:"BAD_REQUEST",IS:"CAST_SESSION_DEVICE_MISMATCHED",JS:"CAST_SESSION_VIDEO_MISMATCHED",KS:"CAST_TOKEN_EXPIRED",LS:"CAST_TOKEN_FAILED",MS:"CAST_TOKEN_MALFORMED",NS:"CGI_PARAMS_MALFORMED",OS:"CGI_PARAMS_MISSING",QU:"DEVICE_FALLBACK",qV:"GENERIC_WITH_LINK_AND_CPN",rV:"LICENSE",tV:"VIDEO_UNAVAILABLE",FV:"FORMAT_UNAVAILABLE",TV:"GEO_FAILURE",oW:"HTML5_AUDIO_RENDERER_ERROR",pW:"GENERIC_WITHOUT_LINK",
qW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",EW:"INVALID_DRM_MESSAGE",r0:"PURCHASE_NOT_FOUND",s0:"PURCHASE_REFUNDED",C0:"RENTAL_EXPIRED",H0:"RETRYABLE_ERROR",V0:"SERVER_ERROR",N1:"STOPPED_BY_ANOTHER_PLAYBACK",P1:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Q1:"STREAMING_NOT_ALLOWED",R1:"STREAM_LICENSE_NOT_FOUND",k2:"TOO_MANY_REQUESTS",l2:"TOO_MANY_REQUESTS_WITH_LINK",m2:"TOO_MANY_STREAMS_PER_ENTITLEMENT",n2:"TOO_MANY_STREAMS_PER_USER",K2:"UNSUPPORTED_DEVICE",
W2:"VIDEO_FORBIDDEN",Z2:"VIDEO_NOT_FOUND"};i2={};
g.XX=(i2.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.",i2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",i2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",i2.LICENSE="Sorry, there was an error licensing this video.",i2.VIDEO_UNAVAILABLE=
"Video unavailable",i2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",i2.GEO_FAILURE="This video isn't available in your country.",i2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",i2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",i2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",i2.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",
i2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",i2.PURCHASE_NOT_FOUND="This video requires payment.",i2.PURCHASE_REFUNDED="This video's purchase has been refunded.",i2.RENTAL_EXPIRED="This video's rental has expired.",i2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",i2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",i2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",
i2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",i2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",i2.SERVER_ERROR="There was an internal server error. Please try again later.",i2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",i2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",i2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",
i2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",i2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",i2.TOO_MANY_REQUESTS="Please log in to watch this video.",i2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",i2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",i2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",
i2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",i2.VIDEO_FORBIDDEN="Access to this video is forbidden.",i2.VIDEO_NOT_FOUND="This video can not be found.",i2);
Mna={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.k=g.FL.prototype;g.k.getData=function(){return this.stateData};
g.k.Kb=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.k.isError=function(){return g.U(this,128)};
g.k.isSuspended=function(){return g.U(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.u(RL,g.P);g.k=RL.prototype;g.k.li=function(){var a=this.u;return a.B instanceof KI||a.B instanceof UI||a.B instanceof OI||a.B instanceof NI};
g.k.Jp=function(){return this.u.B.Ie()};
g.k.Ip=function(){return this.u.u};
g.k.Kp=function(){return XI(this.u)};
g.k.Bx=function(){return WI(this.u)};
g.k.Dw=function(a){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&sI("AdPlacementCoordinator handled cue range enter",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});if(!yI(a)){this.V&&(this.ea=this.J.isAtLiveHead(),this.ba=Math.ceil(g.A()/1E3));var b=new pL(this.dd);a=qL(a);sL(b,a)}this.daiEnabled&&g.R(this.J.T().experiments,"html5_dai_debug_bulleit_cue_range")||this.Wl()};
g.k.cn=function(){return this.Cs()||this.Fs()||this.F instanceof nL||this.F instanceof fK};
g.k.Cs=function(){return this.F instanceof VJ};
g.k.Sw=function(){return this.F instanceof oL};
g.k.Fs=function(){return this.F instanceof iK};
g.k.jC=function(){return!this.cn()};
g.k.Uw=function(){return this.tk()||this.Lp()};
g.k.Lp=function(){return this.F instanceof UI};
g.k.tk=function(){return this.F instanceof KI};
g.k.Wl=function(){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&sI("AdPlacementCoordinator started",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});bN(this.dd,this);if(!this.u.G.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.u.X),b=a.next();!b.done;b=a.next())TL(b.value);this.u.G.ad_placement_start=!0}zL(this.K);this.SE()};
g.k.SE=function(){this.F?this.Od(this.F):this.ck()};
g.k.Yl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;qN(this.dd,0);this.ck(a,b)};
g.k.OD=function(){this.Yl()};
g.k.gM=function(){vJ(this.B.Fa,"active_view_measurable")};
g.k.hM=function(){var a=this.B.Fa;pJ(a)||FJ(a)||vJ(a,"active_view_fully_viewable_audible_half_duration")};
g.k.kM=function(){};
g.k.lM=function(){};
g.k.mM=function(){};
g.k.nM=function(){};
g.k.qM=function(){var a=this.B.Fa;pJ(a)||FJ(a)||vJ(a,"active_view_viewable")};
g.k.kB=function(){return this.tk()?[this.Yr()]:[]};
g.k.Wb=function(a){this.daiEnabled&&!g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&sI("AdPlacementCoordinator handled player state change",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce,hasAdCoordinator:!!this.B,seenPreviousState:this.X,oldState:QL(a.zj.state),state:QL(a.state.state)});if(null!==this.B){this.X||(a=new g.KJ(a.state,new g.FL),this.X=!0);var b=a.state;if(g.MJ(a,2))BL(this.K),this.B.Ge();
else{var c=a;(g.R(this.J.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.Kb()&&!c.zj.Kb():c.state.Kb())?(CL(this.K),this.B.ij()):b.isError()?this.B.Ed(b.getData().errorCode):g.MJ(a,4)&&(this.Y||this.B.lk())}if(null!==this.B){if(g.MJ(a,16)&&(b=this.B.Fa,!(pJ(b)||.5>b.u.getCurrentTime(2,!1)&&!g.R(b.u.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.B;if(c.mp()){var d=g.R(b.P.u.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");Hl(c.K,d)}b.B.N.seek=
!0}0>LJ(a,4)&&!(0>LJ(a,2))&&(b=this.B.Fa,pJ(b)||(rJ(b)?BJ(b,"resume"):vJ(b,"resume")));!g.R(this.J.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.MJ(a,512)&&!g.NL(a.state)&&AL(this.K)}}};
g.k.Oa=function(){if(!this.daiEnabled)return!1;g.R(this.J.T().experiments,"html5_dai_debug_logging_killswitch")||sI("AdPlacementCoordinator handled video data change",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});return SL(this)};
g.k.sD=function(){};
g.k.resume=function(){this.B&&this.B.py()};
g.k.Cx=function(){this.B&&this.B.Sb("adended")};
g.k.Et=function(){this.Cx()};
g.k.rD=function(a){var b=this.dd;b.C&&g.R(b.u.T().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.u.va("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.B.rf(a)};
g.k.hB=function(){return 0};
g.k.jB=function(){return 1};
g.k.vu=function(a){this.daiEnabled&&this.u.N&&this.u.u.start<=a&&a<XL(this)&&Ura(this.J,a,this.u.u.end)};
g.k.Od=function(a){g.eg(this.B);this.B=a=this.Sj.create(a,cJ(aJ(this.u)),this.u.u.u);a.subscribe("adabandoned",g.Va(this.Yl,!0),this);a.subscribe("adabandonedreset",g.Va(this.Yl,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.gM,this);a.subscribe("adended",this.Yl,this);a.subscribe("aderror",this.OD,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.hM,this);a.subscribe("adoverlaymeasurableimpression",this.kM,this);a.subscribe("adoverlayunviewableimpression",this.lM,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.mM,this);a.subscribe("adoverlayviewableimmediateimpression",this.nM,this);a.subscribe("adpause",this.Ew,this);a.subscribe("adplay",this.Ew,this);a.subscribe("adunstarted",this.Ew,this);a.subscribe("onAdUxUpdate",this.rD,this);a.subscribe("adviewableimpression",this.qM,this);PJ(a);UL(this,!1)};
g.k.ck=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Y=!0;g.eg(this.B);if(a)var c=!1;else this.daiEnabled?(c=this.J.getCurrentTime(2,!0),c=1>=Math.abs(c-this.u.u.end/1E3)):c=!0;if(c&&!this.u.G.hasOwnProperty("ad_placement_end")){c=g.q(this.u.V);for(var d=c.next();!d.done;d=c.next())TL(d.value);this.u.G.ad_placement_end=!0}c=this.u.F;null!==c&&(vL(this.Tg,{cueIdentifier:this.u.C&&this.u.C.identifier,driftRecoveryMs:c,RE:this.u.u.start,zC:XL(this)}),this.u.F=null);b||this.daiEnabled?gN(this.dd,
!0):this.V&&this.Bx()&&this.tk()?gN(this.dd,!1,Qna(this)):gN(this.dd,!1);UL(this,!0)};
g.k.Ew=function(a){qN(this.dd,a)};
g.k.Yr=function(){return this.F};
g.k.isLiveStream=function(){return this.V};
g.k.reset=function(){return new RL(this.dd,this.J,this.K.reset(),this.u,this.Tg,this.Km,this.Sj,this.daiEnabled)};
g.k.aa=function(){g.eg(this.B);this.B=null;g.P.prototype.aa.call(this)};ZL.prototype.create=function(a){return(a.B instanceof OI?this.D:a.B instanceof nL?this.C:""===a.K?this.u:this.B)(a)};var j2={},Rna=(j2[0]=[],j2[1]=[],j2);$L.prototype.clickCommand=function(a){var b=g.Ps();if(!a.clickTrackingParams||!b)return!1;kt(this.client,b,g.Is(a.clickTrackingParams),void 0);return!0};
$L.prototype.V=function(){for(var a=g.q(this.D),b=a.next();!b.done;b=a.next())b=b.value,b();this.D=[]};g.u(fM,g.P);g.k=fM.prototype;g.k.Ip=function(){return this.u.u};
g.k.Kp=function(){return XI(this.u)};
g.k.Bx=function(){return WI(this.u)};
g.k.li=function(){return!1};
g.k.Uw=function(){return!1};
g.k.cn=function(){return!1};
g.k.Cs=function(){return!1};
g.k.Sw=function(){return!1};
g.k.Fs=function(){return!1};
g.k.Jp=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.Dw=function(a){var b=this;if(1!==this.u.D&&2!==this.u.D){var c=[];this.Kp()||(c=qL(a));this.u.D=1;Jm(this.G.fetch(this.u.K,{Eo:this.u.C||void 0,od:this.u.u}).then(function(d){if(!b.la()){var e=c;g.R(b.C.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.C.isFullscreen();var f=null;if(g.R(b.C.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else{var h=null;try{(h=JSON.parse(d.response))&&(f=h)}catch(l){d.response&&(d=d.response,d.startsWith("GIF89")||(l.params=
d.substr(0,256),g.Fo(l)))}}f=Xna(b,f);d=b.D;d.B&&f.isEmpty&&uL("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.u);if(!f.kC&&(b.u.D=2,sL(new pL(b.B),e),!f.isEmpty&&(tH(b.F,f.Pg),g.R(b.C.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")&&b.Kp())))for(e=g.q(f.Pg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&sI("Detected deferred preroll overlay.",void 0,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||"unknown"})}},function(){sL(new pL(b.B),
c);
var d=b.D;d.B&&uL("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.u.D&&(b.u.D=0);
b.Kp()&&QM(b.B)})}};
g.k.Wl=function(){};
g.k.vu=function(){};var Yna=Object.freeze([ZJ,dK,UI,jK,kK,KI]);g.u(hM,RL);g.k=hM.prototype;g.k.kB=function(){for(var a=this.D.B,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.jC=function(){return(0>=this.G?this.D.B:this.D.B.slice(this.G)).some(function(a){return a.sf()})};
g.k.Lp=function(){return this.N instanceof UI||this.N instanceof jK};
g.k.tk=function(){return this.N instanceof KI||this.N instanceof dK};
g.k.SE=function(){this.daiEnabled?iJ(this.J)&&SL(this):iM(this)};
g.k.Od=function(a){var b=gM(a);this.N&&b&&this.P!==b&&(b?hN(this.dd):kN(this.dd),this.P=b);this.N=a;(g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")&&cN(this.dd)||g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")&&dN(this.dd)||g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping")&&eN(this.dd))&&$M(this.dd,this);this.daiEnabled&&(this.G=this.D.B.findIndex(function(c){return c===
a}));
RL.prototype.Od.call(this,a)};
g.k.ck=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.C&&(g.eg(this.C),this.C=null);RL.prototype.ck.call(this,a,b)};
g.k.Et=function(){this.G=this.D.B.length;this.C&&this.C.Sb("adended");this.B&&this.B.Sb("adended");this.ck()};
g.k.sD=function(){iM(this)};
g.k.Cx=function(){this.Yl()};
g.k.Wb=function(a){RL.prototype.Wb.call(this,a);a=a.state;g.U(a,2)&&this.C?this.C.Ge():a.Kb()?(null==this.C&&(a=this.D.D)&&(this.C=this.Sj.create(a,cJ(aJ(this.u)),this.u.u.u),this.C.subscribe("onAdUxUpdate",this.rD,this),PJ(this.C)),this.C&&this.C.ij()):a.isError()&&this.C&&this.C.Ed(a.getData().errorCode)};
g.k.Yl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(qN(this.dd,0),a?this.ck(a,b):iM(this))};
g.k.OD=function(){1==this.D.C?this.ck():this.Yl()};
g.k.onAdUxClicked=function(a){RL.prototype.onAdUxClicked.call(this,a);this.C&&this.C.rf(a)};
g.k.Yr=function(){var a=0>=this.G?this.D.B:this.D.B.slice(this.G);return 0<a.length?a[0]:null};
g.k.aa=function(){g.eg(this.C);this.C=null;RL.prototype.aa.call(this)};
g.k.li=function(){return this.P};
g.k.Jp=function(){return this.D.B.every(function(a){return a.Ie()})};
g.k.reset=function(){return new hM(this.dd,this.J,this.K.reset(),this.u,this.Tg,this.Km,this.Sj,this.daiEnabled)};
g.k.hB=function(){return this.G};
g.k.jB=function(){return this.D.B.length};g.u(jM,nL);jM.prototype.sf=function(){return!1};
jM.prototype.Ie=function(){return!0};
jM.prototype.B=function(){var a=this.u,b=new ana;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=kM(a.impressionCommands||[]);b.clickTrackingUrls=kM(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new CI;a.iframeCompanionRenderer=b;return a};g.u(lM,TJ);g.k=lM.prototype;g.k.Dw=function(a){if(!yI(a)){var b=new pL(this.X);a=qL(a);sL(b,a)}this.Wl()};
g.k.Wl=function(){PJ(this)};
g.k.Od=function(){var a=this;bN(this.X,this);this.ea=this.J.getVideoData(1);this.N=this.C.B();if(!(this.C instanceof oL&&UJ(this))&&(this.Pk(),this.C instanceof jM)){this.K=function(b){var c;if(c=b.data)try{c=dq(b.source.document.location.origin)}catch(e){c=!1}if(c)if(c=a.C.u,"companion-setup-complete"==b.data)try{b.source.postMessage(JSON.stringify(c),"*");var d=b.source.frameElement;d.parentNode.style.cssText="";d.width=String(c.iframeWidth);d.height=String(c.iframeHeight)}catch(e){g.Fo(e)}else"pause-video"==
b.data&&a.J.pauseVideo()};
try{window.addEventListener("message",this.K)}catch(b){M(b)}}};
g.k.Pk=function(){null!=this.N&&(this.N.macros=Object.assign({},this.macros),this.ka.showCompanion(this.ea.videoId,this.N))};
g.k.onAdUxClicked=function(a){EJ(this.Fa,a)};
g.k.Ip=function(){return this.G.u};
g.k.Kp=function(){return XI(this.G)};
g.k.Bx=function(){return WI(this.G)};
g.k.cn=function(){return!0};
g.k.Cs=function(){return!1};
g.k.Sw=function(){return this.C instanceof oL};
g.k.Fs=function(){return!1};
g.k.li=function(){return!1};
g.k.Uw=function(){return!1};
g.k.Jp=function(){return this.G.B.Ie()};
g.k.vu=function(){};
g.k.aa=function(){if(this.K)try{window.removeEventListener("message",this.K),this.K=null}catch(a){M(a)}TJ.prototype.aa.call(this)};g.u(mM,OI);g.u(nM,OI);oM.prototype.create=function(a,b){function c(y){return new KI(y,d.C,b,d.u,d.B)}
var d=this,e=a.instreamVideoAdRenderer,f=a.invideoOverlayAdRenderer,h=a.videowallIframeCompanionAdRenderer,l=a.imageCompanionAdRenderer,m=a.instreamSurveyAdRenderer,n=a.sandwichedLinearAdRenderer,p=a.shoppingCompanionCarouselRenderer,r=a.actionCompanionAdRenderer,t=a.linearAdSequenceRenderer,w=a.adsEngagementPanelRenderer,x=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new gK(f):null!=h&&h.iframeUrl?new jM(h):null!=l?new oL(l):null!=m?new UI(m):null!=n?new nM(n,c,this.u):
null!=p?new iK(p):null!=r?new VJ(r):null!=t?new mM(t,c):null!=w?new fK(w):null!=x?new NI(x):null};qM.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 h=b,l=new wI(h.C,h.B,h.daiEnabled,h.D),m=h.ze;m&&(l.ze=new St(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.u));h.u&&(l.u=h.u);l.visible=h.visible;h=l;h.ze=f;e.push(rM(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(rM(this,d.value,c,b)),c++;return e};g.u(sM,g.B);g.u(uM,g.B);uM.prototype.addEventListener=function(a,b){this.u=b};
uM.prototype.removeEventListener=function(){this.u=null};
g.u(vM,g.B);vM.prototype.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
vM.prototype.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};g.u(wM,g.B);var xM=null,zM=null,BM=null,DM=null;g.Ia("yt.www.ads.eventcache.getLastCompanionData",function(){return xM},void 0);
g.Ia("yt.www.ads.eventcache.getLastPlaShelfData",function(){return zM},void 0);
g.Ia("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return BM},void 0);
g.Ia("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return DM},void 0);var MM={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(JM,g.B);JM.prototype.aa=function(){this.Mc.clear();g.B.prototype.aa.call(this)};
JM.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.la();a.loggingUrls&&NM(this,"loggingUrls",a.loggingUrls,b,c);a=g.q(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;MM.hasOwnProperty(d)||NM(this,d,e,b,c)}};g.u(PM,g.P);g.k=PM.prototype;
g.k.aa=function(){this.za=!0;g.us(this.K);this.V&&this.u.getVideoData(1).unsubscribe("cuepointupdated",this.Lx,this);if(kJ(this.u)){var a=RM(this.u);a.removeEventListener("updateKevlarOrC3Companion",yM);a.removeEventListener("onPlaShelfInfoCardsReady",AM);a.removeEventListener("updateEngagementPanelAction",CM);a.removeEventListener("changeEngagementPanelVisibility",EM);window.removeEventListener("yt-navigate-start",FM);DM=BM=xM=null}a=g.q(this.F.values());for(var b=a.next();!b.done;b=a.next())jN(this,
b.value);gN(this,!1);this.G.clear();this.ha=[];this.Y.clear();g.eg(this.D);this.D=null;g.eg(this.P);this.P=new Map;g.eg(this.X);this.X=new Map;this.F.clear();g.P.prototype.aa.call(this)};
g.k.Mt=function(a){if(a instanceof xI&&!a.B&&(!zI(a)||a.contains(1E3*this.u.getCurrentTime(1)||0)))if(g.U(g.AJ(this.u,1),32))this.Y.add(a);else{var b=this.F.get(a);b&&(((this.C?0:g.R(this.u.T().experiments,"enable_eviction_protection_for_bulleit"))?b.cn()&&this.D?this.D.Jp():!b.cn()&&this.B?this.B.Jp():1:1)?b.Dw(a):a.deactivate())}};
g.k.dN=function(a){a instanceof xI&&(a.B&&(a.B=!1),this.Y["delete"](a))};
g.k.Lx=function(a){Ina(this.Mb,a);if(null==this.V)M(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.C){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.Qa.reduce(b.value)}else 0!=(this.u.getCurrentTime(1)||0)&&(a=a.filter(function(c){return"start"==c.event}),UM(this,[this.V],a))};
g.k.jE=function(a){UM(this,[this.V],[a])};
g.k.YD=function(a){var b=1E3*a;this.B&&this.B.vu(b);for(var c=g.q(this.F.values()),d=c.next();!d.done;d=c.next())d.value.vu(b);g.Eb(this.Ra.u,1E3*a)};
g.k.yi=function(a){switch(a){case "control_play":this.B&&(a=this.B,a.tk()?a.J.Vb().playVideo():a.Lp()&&a.B.ij());break;case "control_pause":this.B&&(a=this.B,a.tk()?a.J.Vb().pauseVideo():a.Lp()&&a.B.lk())}};
g.k.HL=function(a){this.B&&this.B.Wb(a)};
g.k.CM=function(a){0>LJ(a,16)&&(this.Y.forEach(this.Mt,this),this.Y.clear())};
g.k.wP=function(a,b){if(this.C&&g.R(this.u.T().experiments,"html5_dai_debug_bulleit_cue_range")){if(!this.B||this.B.Oa())for(var c=g.q(this.Aa),d=c.next();!d.done;d=c.next())d=d.value,d instanceof hM&&d.u.P[b.Xb]&&d.Wl()}else if(this.B&&this.B.Oa(),this.C){c=1E3*this.u.getCurrentTime(1);d=g.q(this.F.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.start<=c&&c<e.end){this.Mt(e);break}}};
g.k.BP=function(){var a=null;this.C&&(a=this.u.getCurrentTime(1),this.Qa.updateTime(a));if(iJ(this.u)&&this.B){var b=this.u.getCurrentTime(2,!1),c=this.B;if(c.B){var d=c.B;d.F&&uJ(d.Fa,b,d.getDuration());if(null!==a&&(b=c.u.F,!(null===b||g.R(c.J.T().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.u.u.start,1E3*a<d+b)))){c.u.F=null;var e=XL(c),f=Math.min(a+eH(c.J),e/1E3),h=c.u.C&&c.u.C.identifier;a<f?(c.J.seekTo(f,void 0,void 0,1),c=c.Tg,a*=1E3,f*=1E3,c.B&&tL({driftRecoveryInfo:{contentCpn:c.u,
cueIdentifier:h||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*eH(c.C)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):vL(c.Tg,{cueIdentifier:h,driftRecoveryMs:b,RE:d,zC:e})}}}};
g.k.eM=function(){this.tb=!0;if(this.B){var a=this.B;a.B&&a.B.Td()}};
g.k.oM=function(a){if(this.B)this.B.onAdUxClicked(a);if(this.D)this.D.onAdUxClicked(a)};
g.k.DP=function(){if(2==this.u.getPresentingPlayerType()&&this.B){var a=this.B.B,b=a.Fa;a=a.J.isMuted();rJ(b)||vJ(b,a?"mute":"unmute")}};
g.k.qN=function(a){if(this.B){var b=this.B.B.Fa;pJ(b)||BJ(b,a?"fullscreen":"end_fullscreen")}};
g.k.eR=function(){for(var a=[],b=g.q(this.G),c=b.next();!c.done;c=b.next())c=c.value,yI(c)||a.push(c);b=this.u.app;1!==b.getPresentingPlayerType()||rX(b,"cuerangemarkersupdated",a)};
g.k.Ey=function(){var a=this.u.getVideoData(2);return a?a.isListed&&!this.ba:!1};
g.k.jt=function(){this.B&&this.B.li()&&this.B.sD()};
g.k.it=function(){this.B&&this.B.li()&&this.B.Cx()};
g.k.yp=function(){this.B&&this.B.li()&&this.B.Et()};
g.k.Gr=function(a){if(a=this.P.get(a)){a:{var b="instreamVideoAdRenderer 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=UM(this,[a]))&&0!==a.length&&(a=a[0],aN(this,a),a.Wl()):M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.k.Po=function(a){(a=this.P.get(a))&&(a=UM(this,[a]))&&0!=a.length&&a[0].Wl()};
g.k.Bo=function(){fN(this)};
g.k.Hc=function(a){if(this.B){var b=this.B;b.B&&(b=b.B,b.F&&uJ(b.Fa,a,b.getDuration()))}};
g.k.seekTo=function(a){iJ(this.u)&&this.B.tk()&&this.u.Vb().seekTo(a)};
g.k.resume=function(){this.B&&this.B.resume()};
g.k.executeCommand=function(a,b,c){this.ac.executeCommand(a,b,hoa(this,void 0===c?null:c))};
g.k.fC=function(){return this.C};
g.k.gB=function(){return this.Ka};g.u(rN,g.rs);rN.prototype.N=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 BI&&this.C(b)}};g.u(sN,HJ);g.u(tN,rN);
tN.prototype.C=function(a){var b=a.content;switch(b.componentType){case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "action-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:b.renderer&&b.renderer.controlFlowExperimentEnabled&&(b=this.u.getVideoData(1),this.u.va("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.u.va("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&
a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "ads-engagement-panel":switch(b=b.renderer,a.actionType){case 1:case 2:this.u.va("updateEngagementPanelAction",b.addAction);this.u.va("changeEngagementPanelVisibility",b.expandAction);break;case 3:this.u.va("changeEngagementPanelVisibility",b.hideAction),this.u.va("updateEngagementPanelAction",
b.removeAction)}}};g.u(uN,g.B);uN.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.Na().appendChild(a.Na())};
g.u(vN,uN);vN.prototype.Na=function(){return this.B};g.u(wN,g.B);var yN=1;g.u(g.AN,g.B);g.k=g.AN.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.L,d=a.ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.RC&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.Fe(a.I);if(c){if(c=BN(this,e,"class",c))CN(this,e,"class",c),this.Aa[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Aa[f.value]=e;CN(this,e,"class",d.join(" "))}d=a.Z;c=a.S;if(d)d=BN(this,e,"child",d),void 0!==d&&e.appendChild(g.Ge(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=BN(this,e,"child",f),null!=f&&e.appendChild(g.Ge(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.sb&&(h=zN(),f.id=h,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","#"+h),g.Ie(e,f,d++))}if(d=a.U)for(c=e,f=g.q(Object.keys(d)),h=f.next();!h.done;h=f.next()){h=h.value;var l=d[h];CN(this,c,h,"string"===
typeof l?BN(this,c,h,l):l)}return e};
g.k.ga=function(a){return this.Aa[a]};
g.k.fa=function(a,b){"number"===typeof b?g.Ie(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Je(this.element)};
g.k.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.ua(c,a[c])};
g.k.ua=function(a,b){var c=this.Tb["{{"+a+"}}"];c&&CN(this,c[0],c[1],b)};
g.k.aa=function(){this.Aa={};this.Tb={};this.detach();g.B.prototype.aa.call(this)};g.u(g.V,g.AN);g.k=g.V.prototype;g.k.sc=function(a,b){this.ua(b||"content",a)};
g.k.show=function(){this.Za||(g.F(this.element,"display",""),this.Za=!0)};
g.k.hide=function(){this.Za&&(g.F(this.element,"display","none"),this.Za=!1)};
g.k.yb=function(a){this.N=a};
g.k.wa=function(a,b,c){return this.R(this.element,a,b,c)};
g.k.R=function(a,b,c,d){c=(0,g.z)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Eb=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.k.focus=function(){Qe(this.element);this.element.focus()};
g.k.aa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.AN.prototype.aa.call(this)};g.u(g.EN,g.V);g.EN.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.EN.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.EN.prototype.Ck=function(a){return this.ba.Ck(a)};
g.EN.prototype.W=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ba.W.apply(this.ba,[a].concat(g.la(c)))};var UCa=new WeakSet;g.u(W,g.EN);g.k=W.prototype;g.k.bind=function(a){if(!this.Ga&&a.renderer){var b=Object.assign({},koa(this.api,this.Ea),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Ga=a;this.element.setAttribute("id",this.Ga);this.rb&&g.I(this.element,this.rb);this.V=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&JN(this,this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.EN.prototype.hide.call(this);null!=this.K&&MN(this,this.element,!1)};
g.k.show=function(){g.EN.prototype.show.call(this);if(!this.tb){this.tb=!0;var a=this.V&&this.V.impressionCommand;a&&this.Ea.executeCommand(a,this.macros,null)}null!=this.K&&MN(this,this.element,!0)};
g.k.onClick=function(a){if(this.K&&!UCa.has(a)){var b=this.element;g.KN(this.api,b)&&this.Za&&g.wX(this.api,b,this.u);UCa.add(a)}(a=this.V&&this.V.clickCommand)&&this.Ea.executeCommand(a,this.macros,this.mB())};
g.k.mB=function(){return null};
g.k.OL=function(a){var b=this.Y;b.K=!0;b.B=a.touches.length;b.u.isActive()&&(b.u.stop(),b.F=!0);a=a.touches;b.G=xN(b,a)||1!=a.length;var c=a.item(0);b.G||!c?(b.N=Infinity,b.P=Infinity):(b.N=c.clientX,b.P=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.NL=function(a){var b=this.Y;a=a.changedTouches.item(0);var c;if(c=Td()){c=g.Vc;var d="";Wc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Td()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Wc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Ac(g.Vc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Wc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Wc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Dc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.P,2)>Math.pow(5,2))b.D=!0};
g.k.ML=function(a){if(this.Y){var b=this.Y,c=a.changedTouches;c&&b.K&&1==b.B&&!b.D&&!b.F&&!b.G&&xN(b,c)&&(b.V=a,b.u.start());b.B=a.touches.length;0===b.B&&(b.K=!1,b.D=!1,b.C.length=0);b.F=!1}};
g.k.aa=function(){this.clear(null);this.Eb(this.Ra);for(var a=g.q(this.ea),b=a.next();!b.done;b=a.next())this.Eb(b.value);g.EN.prototype.aa.call(this)};g.u(PN,W);PN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&ON(a)||"";g.rc(b)?(g.R(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Fo(Error("Found AdImage without valid image URL")):(this.B?g.F(this.element,"backgroundImage","url("+b+")"):ve(this.element,{src:b}),ve(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
PN.prototype.clear=function(){this.hide()};g.u(hO,W);
hO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;if(null==b.text&&null==b.icon)g.Fo(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.I(this.element,a);null!=b.text&&(a=g.T(b.text),g.rc(a)||(this.element.setAttribute("aria-label",a),this.D=new g.EN({I:"span",L:"ytp-ad-button-text",Z:a}),g.C(this,this.D),this.D.fa(this.element)));null!=b.icon&&(b=gO(b.icon),null!=
b&&(this.C=new g.EN({I:"span",L:"ytp-ad-button-icon",S:[b]}),g.C(this,this.C)),this.F?g.Ie(this.element,this.C.element,0):this.C.fa(this.element))}};
hO.prototype.clear=function(){this.hide()};
hO.prototype.onClick=function(a){var b=this;W.prototype.onClick.call(this,a);voa(this).forEach(function(c){return b.Ea.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};var vpa={seekableStart:0,seekableEnd:1,current:0};g.u(iO,W);iO.prototype.clear=function(){this.dispose()};g.u(lO,iO);g.k=lO.prototype;g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);g.F(this.D,"stroke-dasharray","0 "+this.C);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){kO(this);iO.prototype.hide.call(this)};
g.k.show=function(){jO(this);iO.prototype.show.call(this)};
g.k.hm=function(){this.hide()};
g.k.Ik=function(){if(this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.C,this.G&&(a=this.C-a),g.F(this.D,"stroke-dasharray",a+" "+this.C))}};g.u(mO,W);mO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;this.isTemplated()||g.Ne(this.element,FN(this.B));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?ON(a):"",c=(c=this.api.getVideoData(1))&&c.qq,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()};
mO.prototype.isTemplated=function(){return this.B.isTemplated||!1};
mO.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?Lda:b;var e=g.Ua(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.v;var m=jCa.get(l);m||(m={},jCa.set(l,m));return Wd(m,[this].concat(g.la(h)),c,d)}})(function(a){var b=g.Fe("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Fe("DIV");g.Dg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Je(b);return a});g.u(g.oO,g.B);g.k=g.oO.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Au(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.u&&this.u()):this.element.Za||(pO(this,!0),this.state=1,a?this.delay.start(a):this.Au()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Za&&(pO(this,!0),this.state=4,this.delay.start(this.D)))};
g.k.Au=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:pO(this,!1);this.state=3;this.delay.start(this.C);break;case 3:this.state=null;this.u&&this.u();break;case 4:this.element.hide();pO(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.B&&this.B()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.Au()};
g.k.aa=function(){this.element.la()||this.element.element.removeAttribute("aria-hidden");g.B.prototype.aa.call(this)};g.u(qO,iO);g.k=qO.prototype;
g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&M(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.za&&g.I(this.C.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.da=null==a||0===a?this.B.tD():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.D.init(GJ("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.qq&&b.thumbnail?this.G.init(GJ("ad-image"),b.thumbnail,c):this.P.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.D.hide();this.G.hide();kO(this);iO.prototype.hide.call(this)};
g.k.show=function(){jO(this);this.C.show();this.D.show();this.G.show();iO.prototype.show.call(this)};
g.k.hm=function(){this.hide()};
g.k.Ik=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ka&&a>=this.da?(g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.ka=!0,this.W("c")):this.D&&this.D.isTemplated()&&(a=Math.max(0,Math.ceil((this.da-a)/1E3)),a!=this.ra&&(nO(this.D,{TIME_REMAINING:String(a)}),this.ra=a)))}};g.u(sO,g.B);g.k=sO.prototype;g.k.aa=function(){this.reset();g.B.prototype.aa.call(this)};
g.k.reset=function(){g.us(this.F);this.G=!1;this.u&&this.u.stop();this.D.stop();this.B&&(this.B=!1,this.K.play())};
g.k.start=function(){this.reset();this.F.R(this.C,"mouseover",this.SL,this);this.F.R(this.C,"mouseout",this.RL,this);this.u?this.u.start():(this.G=this.B=!0,g.F(this.C,{opacity:this.P}))};
g.k.SL=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.u&&this.u.stop()};
g.k.RL=function(){this.G?this.D.start():this.u&&this.u.start()};
g.k.hA=function(){this.B||(this.B=!0,this.N.play(),this.G=!0)};g.u(tO,iO);g.k=tO.prototype;
g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);this.P=b;this.da=woa(this);!b||g.Wb(b)?M(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Wb(b.message)?M(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=gO(a),null==b?M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.G=new g.EN({I:"button",ia:["ytp-ad-skip-button","ytp-button"],S:[{I:"span",L:"ytp-ad-skip-button-icon",
S:[b]}]}),g.C(this,this.G),this.G.fa(this.D.element),this.C=new mO(this.api,this.Ea,this.layoutId,this.u,"ytp-ad-skip-button-text"),this.C.init(GJ("ad-text"),this.P.message,c),g.C(this,this.C),g.Ie(this.G.element,this.C.element,0)),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_skip")&&NN(this))};
g.k.clear=function(){this.X.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.C&&this.C.hide();kO(this);iO.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.G&&(a&&g.jp(a),iO.prototype.onClick.call(this,a),this.W("d"),!this.da))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.mB=function(){return"skip"};
g.k.show=function(){this.X.start();this.D.show();this.C&&this.C.show();jO(this);iO.prototype.show.call(this)};
g.k.hm=function(){this.W("e")};
g.k.Ik=function(){};g.u(uO,g.P);g.k=uO.prototype;g.k.tD=function(){return this.B};
g.k.start=function(){this.C||(this.C=!0,this.Wa.start())};
g.k.stop=function(){this.C&&(this.C=!1,this.Wa.stop())};
g.k.KL=function(){this.u+=100;var a=!1;this.u>this.B&&(this.u=this.B,this.Wa.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.B/1E3,current:this.u/1E3};this.F&&this.F.Hc(this.D.current);this.W("b");a&&this.W("a")};
g.k.getProgressState=function(){return this.D};g.u(vO,W);g.k=vO.prototype;
g.k.init=function(a,b,c){W.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)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.rc(g.pd(e[0].url))&&(e[0].url=d.wf);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.rc(g.pd(e[0].url))&&(e[0].url=d.Sd());e=b.headline;null!=e&&g.rc(g.pd(e.text))&&(e.text=d.author)}this.P.init(GJ("ad-image"),b.image,c);this.ha.init(GJ("ad-text"),b.headline,c);this.da.init(GJ("ad-text"),b.description,c);this.X.init(GJ("ad-image"),b.backgroundImage,c);this.B=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-action-interstitial-action-button"]);g.C(this,this.B);
this.B.fa(this.Qa);this.B.init(GJ("button"),b.actionButton.buttonRenderer,c);this.ka=b.navigationEndpoint;this.api.T().u||(this.G.R(this.Ka,"click",this.Vv,this),this.G.R(this.za,"click",this.Vv,this),this.G.R(this.ra,"click",this.Vv,this));this.C=new uO(a);g.C(this,this.C);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.C&&(this.F=new tO(this.api,this.Ea,this.layoutId,this.u,this.C),g.C(this,this.F),this.F.fa(this.element),this.F.init(GJ("skip-button"),a,c)):b.nonskippableOverlayRenderer&&
(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.C&&(this.D=new qO(this.api,this.Ea,this.layoutId,this.u,this.C,!1),g.C(this,this.D),this.D.fa(this.element),this.D.init(GJ("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.C&&(c=new lO(this.api,this.Ea,this.layoutId,this.u,this.C),g.C(this,c),c.fa(this.element),c.init(GJ("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else M(Error("AdActionInterstitialRenderer has no navigation endpoint."));
else M(Error("AdActionInterstitialRenderer has no button."));else M(Error("AdActionInterstitialRenderer has no background AdImage."));else M(Error("AdActionInterstitialRenderer has no description AdText."));else M(Error("AdActionInterstitialRenderer has no headline AdText."));else M(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.us(this.G);this.hide()};
g.k.show=function(){xoa(!0);this.B&&this.B.show();this.F&&this.F.show();this.D&&this.D.show();W.prototype.show.call(this)};
g.k.hide=function(){xoa(!1);this.B&&this.B.hide();this.F&&this.F.hide();this.D&&this.D.hide();W.prototype.hide.call(this)};
g.k.Vv=function(){this.ka&&this.Ea.executeCommand(this.ka,this.macros)};g.u(wO,W);
wO.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var e=[],f=g.q(b.adChoiceButtons),h=f.next();!h.done;h=f.next()){var l=(h=h.value)&&h.buttonRenderer;if(!l){M(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}l=l.text;if(!l){M(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}e.push(h.buttonRenderer);h=g.T(l);a=Math.max(a,
h.length)}f=b.durationMilliseconds||0;if("number"!==typeof f||0>f)M(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){zoa(this,b.text);var m=Aoa(b.defaultButtonChoiceIndex);Coa(this,e,a,m)?(Eoa(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&Foa(this,b.adDurationRemaining.timedPieCountdownRenderer,
c),b&&b.background&&(c=this.ga("ytp-ad-choice-interstitial"),yoa(c,b.background)),Doa(this,a),this.show(),g.R(this.api.T().experiments,"self_podding_default_button_focused")&&g.um(function(){0===m?d.B&&d.B.focus():d.D&&d.D.focus()})):M(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else M(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer."));
else M(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else M(Error("AdChoiceInterstitialRenderer should have two choices."));else M(Error("AdChoiceInterstitialRenderer has no title."))};
wO.prototype.clear=function(){this.hide()};g.u(xO,W);g.k=xO.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?M(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.B.init(GJ("ad-text"),b.text,c),this.show())):M(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){Goa(!0);W.prototype.show.call(this)};
g.k.hide=function(){Goa(!1);W.prototype.hide.call(this)};
g.k.onClick=function(){};g.u(yO,g.B);yO.prototype.aa=function(){this.B&&g.ep(this.B);this.u.clear();zO=null;g.B.prototype.aa.call(this)};
yO.prototype.register=function(a,b){b&&this.u.set(a,b)};
var zO=null;g.u(BO,W);
BO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?M(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new hO(this.api,this.Ea,this.layoutId,this.u),g.C(this,this.button),this.button.init(GJ("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.fa(this.element),this.G&&!g.zn(this.button.element,"ytp-ad-clickable")&&g.I(this.button.element,"ytp-ad-clickable"),
a&&(this.C=new g.EN({I:"div",L:"ytp-ad-hover-text-container"}),this.F&&(b=new g.EN({I:"div",L:"ytp-ad-hover-text-callout"}),b.fa(this.C.element),g.C(this,b)),g.C(this,this.C),this.C.fa(this.element),b=AO(a),g.Ie(this.C.element,b,0)),this.show())};
BO.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();W.prototype.hide.call(this)};
BO.prototype.show=function(){this.button&&this.button.show();W.prototype.show.call(this)};g.u(CO,W);g.k=CO.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?M(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Fo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Fo(Error("AdFeedbackRenderer.title was not set.")),Noa(this,b)):M(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){np(this.F);np(this.P);this.D.length=0;this.hide()};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();W.prototype.hide.call(this);this.G&&this.G.focus()};
g.k.show=function(){this.B&&this.B.show();this.C&&this.C.show();this.G=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.xD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.W("f");this.hide()};
g.k.tP=function(){this.hide()};
DO.prototype.Na=function(){return this.u.element};
DO.prototype.isChecked=function(){return this.C.checked};g.u(EO,W);g.k=EO.prototype;g.k.hide=function(){W.prototype.hide.call(this);this.D&&this.D.focus()};
g.k.show=function(){this.D=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?M(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?M(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Ooa(this,b):M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.us(this.B);this.hide()};
g.k.Jx=function(){this.hide()};
g.k.Dx=function(){var a=this.C.cancelEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};
g.k.Kx=function(){var a=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};g.u(FO,EO);FO.prototype.Jx=function(a){EO.prototype.Jx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
FO.prototype.Dx=function(a){EO.prototype.Dx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
FO.prototype.Kx=function(a){EO.prototype.Kx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.W("g")};g.u(GO,W);g.k=GO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)M(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Fo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.B=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.C(this,this.B),
this.B.init(GJ("button"),a,this.macros),this.B.fa(this.element);b.title&&(a=g.T(b.title),this.ua("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=AO(a[c]);if(!g.rc(d.textContent)){var e=g.Ee("LI");e.appendChild(d);this.da.appendChild(e)}}else g.Fg(this.da,!1);b.dialogMessage&&(a=AO(b.dialogMessage,!0),this.ra.appendChild(a));b.confirmLabel&&(a=g.T(b.confirmLabel),this.ua("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.Fo(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Qoa(this,a):c&&Roa(this,c),this.D=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.D),this.D.init(GJ("button"),b,this.macros),this.D.wa("click",this.YN,this),this.D.fa(this.za)));
Soa(this)}};
g.k.clear=function(){np(this.P);this.hide()};
g.k.hide=function(){this.C?this.C.hide():this.F&&this.F.hide();this.B&&this.B.hide();this.D&&this.D.hide();W.prototype.hide.call(this);this.X&&this.X.focus()};
g.k.show=function(){this.B&&this.B.show();this.D&&this.D.show();this.ha||(Poa(this),this.ha=!0);this.X=document.activeElement;W.prototype.show.call(this);this.P.focus()};
g.k.yD=function(){this.G&&this.G.confirmServiceEndpoint&&this.Ea.executeCommand(this.G.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.W("i");this.hide()};
g.k.YN=function(){var a=this.C?this.C:this.F;a&&!a.Za&&(this.hide(),a.show())};g.u(HO,BO);HO.prototype.init=function(a,b,c){BO.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Uoa(this,a,c),this.show())};
HO.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();BO.prototype.hide.call(this)};
HO.prototype.show=function(){this.button&&this.button.show();BO.prototype.show.call(this)};
HO.prototype.clear=function(){this.hide()};var PO=new g.he(320,63);var VO={iconType:"CLOSE"},ZO=new g.he(320,63);g.u(UO,W);g.k=UO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.F=b;this.P=g.ub(this.F.onClickCommands||[]);this.ra=this.F.onErrorCommand||null;if(a=this.F.contentSupportedRenderer)a=this.F.contentSupportedRenderer,b=this.F.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.G=g.re("ytp-ad-overlay-ad-info-button-container",this.D.element),XO(this,b),a=dpa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.G=g.re("ytp-ad-overlay-ad-info-button-container",this.C.element),
XO(this,b),a=epa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.G=g.re("ytp-ad-overlay-ad-info-button-container",this.B.element),XO(this,b),a=fpa(this,a.imageOverlayAdContentRenderer)):(M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),gpa(this,!0))};
g.k.TN=function(){this.api.app.visibility.u&&this.clear()};
g.k.clear=function(){gpa(this,!1);this.ka.reset();this.X=0;this.D.hide();MN(this,this.D.element,!1);this.C.hide();MN(this,this.C.element,!1);this.B.hide();MN(this,this.B.element,!1);this.hide();this.dispose()};
g.k.kP=function(){this.Ka&&this.Ea.executeCommand(this.Ka,this.macros);this.api.pauseVideo()};
g.k.Ex=function(){var a=this;cpa(this).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(TO(this.api))this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId);else this.clear()};
g.k.PL=function(){this.za=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.iM=function(){this.za||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.k.WN=function(){this.za||2!=this.api.getPlayerState(1)||this.api.playVideo();TO(this.api)?this.api.W("muteadaccepted","invideo-overlay",void 0):this.clear()};
g.k.jM=function(a){a.target===this.G&&g.re("ytp-ad-button",this.Qa.element).click()};g.u($O,iO);g.k=$O.prototype;g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&M(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.G=null==a||0===a?0:a+1E3*this.B.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.C.init(GJ("ad-text"),d,c);this.C.fa(this.D.element);this.P.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){hpa(this,!1);iO.prototype.hide.call(this);this.D.hide();this.C.hide();kO(this)};
g.k.show=function(){hpa(this,!0);iO.prototype.show.call(this);jO(this);this.D.show();this.C.show()};
g.k.hm=function(){this.hide()};
g.k.Ik=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.X&&a>=this.G?(this.P.hide(),this.X=!0):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.G-a)/1E3)),a!=this.da&&(nO(this.C,{TIME_REMAINING:String(a)}),this.da=a)))}};g.u(aP,iO);g.k=aP.prototype;
g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Wb(a)?null:a){this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.xv(this.api.T().experiments,"preskip_button_style_ads_backend")&&xC(this.api.T());this.C=new qO(this.api,this.Ea,this.layoutId,this.u,this.B,d);this.C.init(GJ("preskip-component"),a,c);rO(this.C);g.C(this,this.C);this.C.fa(this.element);
g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.C.subscribe("c",this.qO,this)}else b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Wb(b)?null:b;null==b?M(Error("SkipButtonRenderer was not set in player response.")):(this.D=new tO(this.api,this.Ea,this.layoutId,this.u,this.B),this.D.init(GJ("skip-button"),b,c),g.C(this,this.D),this.D.fa(this.element),this.show())};
g.k.show=function(){this.P&&this.D?this.D.show():this.C&&this.C.show();jO(this);iO.prototype.show.call(this)};
g.k.hm=function(){};
g.k.clear=function(){this.C&&this.C.clear();this.D&&this.D.clear();kO(this);iO.prototype.hide.call(this)};
g.k.hide=function(){this.C&&this.C.hide();this.D&&this.D.hide();kO(this);iO.prototype.hide.call(this)};
g.k.qO=function(){bP(this,!0)};
g.k.Ik=function(){g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.C||1E3*this.B.getProgressState().current>=this.G&&bP(this,!0):1E3*this.B.getProgressState().current>=this.G&&bP(this,!0)};g.u(cP,W);cP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new aP(this.api,this.Ea,this.layoutId,this.u,this.B),b.fa(this.C),b.init(GJ("skip-button"),a.skipAdRenderer,this.macros),g.C(this,b)));this.show()};g.u(fP,iO);g.k=fP.prototype;g.k.init=function(a,b,c){iO.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Fo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new mO(this.api,this.Ea,this.layoutId,this.u);this.C.init(GJ("ad-text"),a,{});this.C.fa(this.element);g.C(this,this.C)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){kO(this);iO.prototype.hide.call(this)};
g.k.hm=function(){this.hide()};
g.k.Ik=function(){if(null!=this.B){var a=this.B.getProgressState();if(null!=a&&null!=a.current&&this.C){a=(void 0!==this.D?this.D:this.B instanceof uO?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.dP(a);nO(this.C,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){jO(this);iO.prototype.show.call(this)};g.u(gP,mO);gP.prototype.onClick=function(a){mO.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(hP,iO);g.k=hP.prototype;
g.k.init=function(a,b,c){iO.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.rc(g.pd(d[0].url))&&(d[0].url=a.wf)}else g.Gr(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(GJ("ad-image"),b.image,c);this.P.init(GJ("ad-text"),
b.headline,c);this.G.init(GJ("ad-text"),b.description,c);this.C.init(GJ("button"),b.actionButton.buttonRenderer,c);this.X=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.da=b.startMs||0;jO(this)}else g.Fr(Error("FlyoutCtaRenderer has no valid action button."));else g.Fr(Error("FlyoutCtaRenderer has no description AdText."));else g.Fr(Error("FlyoutCtaRenderer has no headline AdText."));else g.Gr(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){iO.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Me(this.C.element,a.target)&&this.X&&this.Ea.executeCommand(this.X,this.macros)};
g.k.Ik=function(){if(this.B){var a=this.B.getProgressState();a&&a.current&&1E3*a.current>=this.da&&(kO(this),g.Bn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.hm=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.C&&this.C.show();iO.prototype.show.call(this)};
g.k.hide=function(){this.C&&this.C.hide();iO.prototype.hide.call(this)};g.u(iP,W);g.k=iP.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)M(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)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.I(this.D,a)}a={};b.defaultText?
(c=g.T(b.defaultText),g.rc(c)||(a.buttonText=c,this.B.setAttribute("aria-label",c))):g.Fg(this.ha,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.B.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=gO(b.defaultIcon),this.ua("untoggledIconTemplateSpec",c),b.toggledIcon?(this.P=!0,c=gO(b.toggledIcon),this.ua("toggledIconTemplateSpec",c)):(g.Fg(this.G,!0),g.Fg(this.F,!1)),g.Fg(this.B,!1)):g.Fg(this.X,!1);g.Wb(a)||this.update(a);b.isToggled&&(g.I(this.D,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));jP(this);this.da=this.R(this.element,"change",this.vD);g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&NN(this,this.da);this.show()}};
g.k.onClick=function(a){0<this.ea.length&&(this.toggleButton(!this.isToggled()),this.vD());W.prototype.onClick.call(this,a)};
g.k.vD=function(){var a=this;g.K(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());ipa(this,this.isToggled()).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);jP(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.K(this.D,"ytp-ad-toggle-button-toggled",a);this.B.checked=a;jP(this)};
g.k.isToggled=function(){return this.B.checked};g.u(kP,W);g.k=kP.prototype;g.k.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);this.B=b;this.B.rectangle&&(jpa(this,c),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&NN(this,this.G),this.F.show(100),this.show(),(this.B&&this.B.impressionCommands||[]).forEach(function(e){return d.Ea.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.D.hide();this.C.hide();W.prototype.hide.call(this)};
g.k.show=function(){this.D.show();this.C.show();W.prototype.show.call(this)};
g.k.wD=function(){Dn(this.element,"ytp-ad-instream-user-sentiment-selected");this.B.postMessageAction&&this.api.va("onYtShowToast",this.B.postMessageAction);this.F.hide()};
g.k.onClick=function(a){0<this.ea.length&&this.wD();W.prototype.onClick.call(this,a)};g.u(lP,hO);lP.prototype.init=function(a,b,c){hO.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.T(b.text),a=!g.rc(a));a?null==b.navigationEndpoint?g.Fo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Fo(Error("Button style was not a link-style type in renderer,")):(g.R(this.api.T().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&NN(this),this.show()):g.Fo(Error("No visit advertiser text was present in the renderer."))};g.u(mP,W);mP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.text;g.rc(FN(a))?g.Fo(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.T(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new mO(this.api,this.Ea,this.layoutId,this.u),a.init(GJ("simple-ad-badge"),b,c),a.fa(this.element),g.C(this,a)),this.show())};
mP.prototype.clear=function(){this.hide()};nP.prototype.getLength=function(){return this.u-this.B};g.u(qP,g.EN);qP.prototype.D=function(){var a=this.B.getProgressState();a=pP(new nP(a.seekableStart,a.seekableEnd),a.current,0);this.G.style.width=100*a+"%"};
qP.prototype.F=function(){g.AC(this.C.T())||(2==this.C.getPresentingPlayerType()?-1===this.u&&(this.show(),this.u=this.B.subscribe("b",this.D,this),this.D()):-1!==this.u&&(this.hide(),this.B.Ck(this.u),this.u=-1))};g.u(rP,W);
rP.prototype.init=function(a,b,c,d){W.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new aP(this.api,this.Ea,this.layoutId,this.u,this.B),c.fa(this.F),c.init(GJ("skip-button"),a.skipAdRenderer,this.macros),g.C(this,c)):a.adPreviewRenderer&&(c=new qO(this.api,this.Ea,this.layoutId,this.u,this.B,!1),c.fa(this.F),c.init(GJ("ad-preview"),a.adPreviewRenderer,this.macros),rO(c),g.C(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new kP(this.api,this.Ea,this.layoutId,this.u),c.fa(this.P),c.init(GJ("instream-user-sentiment"),a,this.macros),g.C(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new hP(this.api,this.Ea,this.layoutId,this.u,this.B),g.C(this,c),c.fa(this.G),c.init(GJ("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.C;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new mP(this.api,this.Ea,this.layoutId,this.u,!0),g.C(this,
c),c.fa(this.C),c.init(GJ("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new fP(this.api,this.Ea,this.layoutId,this.u,this.B,d),g.C(this,d),d.fa(this.C),d.init(GJ("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new HO(this.api,this.Ea,this.layoutId,this.u,this.element),
g.C(this,a),a.fa(this.C),a.init(GJ("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=kpa(this)&&this.D?this.D:this.C))&&(a=new lP(this.api,this.Ea,this.layoutId,this.u),g.C(this,a),a.fa(d),a.init(GJ("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!pC(b)&&"3"==b.controlsType&&(b=new qP(this.api,this.B),b.fa(this.X),g.C(this,b));g.R(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.I(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
rP.prototype.clear=function(){this.hide()};g.u(sP,W);
sP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.D=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.fa(this.C),a.init(GJ("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.B=new iP(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button"]),this.B.fa(this.C),
g.C(this,this.B),this.B.init(GJ("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
sP.prototype.clear=function(){this.hide()};g.u(tP,W);tP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.B=new iP(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.B.fa(this.C),this.B.init(GJ("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(uP,hO);uP.prototype.init=function(a,b,c){hO.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.T(b.text),a=!g.rc(b));a||g.Fo(Error("No submit text was present in the renderer."))};
uP.prototype.onClick=function(a){this.W("l");hO.prototype.onClick.call(this,a)};g.u(vP,W);
vP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new aP(this.api,this.Ea,this.layoutId,this.u,this.F),c.fa(this.P),c.init(GJ("skip-button"),a,this.C),g.C(this,c),this.B=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new qO(this.api,this.Ea,this.layoutId,this.u,this.F,!1),c.fa(this.P),c.init(GJ("ad-preview"),a,this.C),rO(c),g.C(this,c),this.B=c);null==this.B&&M(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new uP(this.api,this.Ea,this.layoutId,this.u),c.fa(this.X),c.init(GJ("survey-submit"),a,this.C),g.C(this,c),this.D=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new mP(this.api,this.Ea,this.layoutId,this.u,!0),c.fa(this.G),c.init(GJ("simple-ad-badge"),a,this.C),g.C(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new fP(this.api,this.Ea,this.layoutId,this.u,this.F,void 0),c.fa(this.G),c.init(GJ("ad-duration-remaining"),
a,this.C),g.C(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new HO(this.api,this.Ea,this.layoutId,this.u,this.element),g.C(this,a),a.fa(this.G),a.init(GJ("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
vP.prototype.clear=function(){this.hide()};g.u(wP,W);wP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);opa(this)};
wP.prototype.show=function(){this.F=g.A();W.prototype.show.call(this)};
wP.prototype.wF=function(){};g.u(xP,wP);g.k=xP.prototype;g.k.init=function(a,b,c){var d=this;wP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.da,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&lpa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.P=new Set(this.D.map(function(e){return e.B.B}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&ppa(this,a,c);b.surveyAdQuestionCommon?npa(this,b.surveyAdQuestionCommon):M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.ha=b.submitEndpoints);this.R(this.element,"change",this.QL);this.show()};
g.k.wF=function(){yP(this,!1);this.G.D.subscribe("l",this.iP,this)};
g.k.QL=function(a){a.target==this.C.B.B?qpa(this):this.P.has(a.target)&&(this.C.B.toggleButton(!1),yP(this,!0))};
g.k.iP=function(){var a=this,b=this.D.reduce(function(d,e){var f=e.D;e.B&&e.B.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.ha.map(function(d){if(!d.loggingUrls)return d;
d=g.$b(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Kd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Ea.executeCommand(d,a.macros)})};
g.k.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(zP,wP);zP.prototype.init=function(a,b,c){var d=this;wP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.da,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&lpa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?npa(this,b.surveyAdQuestionCommon):M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
zP.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(AP,W);
AP.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);b.questions.forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new zP(d.api,d.Ea,d.layoutId,d.u);f.fa(d.B);f.init(GJ("survey-question-single-select"),e,c);d.C.push(f);g.C(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new xP(d.api,d.Ea,d.layoutId,d.u),f.fa(d.B),f.init(GJ("survey-question-multi-select"),e,
c),d.C.push(f),g.C(d,f))});
this.show()};
AP.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(BP,W);
BP.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)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){tpa(this.F,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);tpa(this.P,
b.brandImage);g.Ne(this.X,g.T(b.text));this.B=new hO(this.api,this.Ea,this.layoutId,this.u,["ytp-ad-survey-interstitial-action-button"]);g.C(this,this.B);this.B.fa(this.G);this.B.init(GJ("button"),b.ctaButton.buttonRenderer,c);this.B.show();var e=b.timeoutCommands;this.D=new uO(1E3*a);this.D.subscribe("a",function(){d.C.hide();e.forEach(function(f){return d.Ea.executeCommand(f,c)});
d.Ea.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.C(this,this.D);this.R(this.element,"click",function(f){return spa(d,f,b)});
this.C.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Ea.executeCommand(f,c)})}else M(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else M(Error("SurveyTextInterstitialRenderer has no brandImage."));else M(Error("SurveyTextInterstitialRenderer has no button."));else M(Error("SurveyTextInterstitialRenderer has no text."));else M(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
BP.prototype.clear=function(){this.hide()};
BP.prototype.show=function(){upa(!0);W.prototype.show.call(this)};
BP.prototype.hide=function(){upa(!1);W.prototype.hide.call(this)};g.u(CP,g.P);g.k=CP.prototype;g.k.tD=function(){return 1E3*this.u.getDuration(this.C,!1)};
g.k.stop=function(){this.D&&this.B.Eb(this.D)};
g.k.uD=function(){var a=this.u.getProgressState(this.C);this.F={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.R(this.u.T().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(this.C,!1)};this.W("b")};
g.k.getProgressState=function(){return this.F};
g.k.LL=function(a){g.MJ(a,2)&&this.W("a")};var VCa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.u(EP,rN);
EP.prototype.C=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!VCa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.D,f=c.layoutId,h=c.u;h=void 0===h?{}:h;switch(d){case "invideo-overlay":a=new UO(e,a,f,h);break;case "persisting-overlay":a=new cP(e,a,f,h,new CP(e));break;case "player-overlay":a=new rP(e,a,f,h,new CP(e));break;case "survey":a=new AP(e,a,f,h);break;case "ad-action-interstitial":a=new vO(e,a,f,h);break;case "ad-text-interstitial":a=new xO(e,a,f,h);break;
case "survey-interstitial":a=new BP(e,a,f,h);break;case "ad-choice-interstitial":a=new wO(e,a,f,h);break;case "ad-message":a=new $O(e,a,f,h,new CP(e,1));break;default:a=null}if(!a){g.Fo(Error("No UI component returned from ComponentFactory for type: "+d));break}Sb(this.B,b)?g.Fo(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);this.F.append(a.eb);break;case 2:b=wpa(this,a);if(null==b)break;b.bind(c);break;case 3:c=wpa(this,a),null!=c&&(g.eg(c),Sb(this.B,b)?(c=this.B,b in c&&
delete c[b]):g.Fo(Error("Ad UI component does not exist: "+b)))}}};
EP.prototype.aa=function(){g.fg(Object.values(this.B));this.B={};rN.prototype.aa.call(this)};var WCa={D0:"replaceUrlMacros",HW:"isExternalShelfAllowedFor"};FP.prototype.ci=function(){return"adLifecycleCommand"};
FP.prototype.handle=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.um(function(){b.controller.jt()});
break;case "END_LINEAR_AD":g.um(function(){b.controller.it()});
break;case "END_LINEAR_AD_PLACEMENT":g.um(function(){b.controller.yp()});
break;case "FILL_INSTREAM_SLOT":g.um(function(){a.elementId&&b.controller.Gr(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.um(function(){a.elementId&&b.controller.Po(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.um(function(){b.controller.Bo()})}};
FP.prototype.jj=function(a){this.handle(a)};GP.prototype.ci=function(){return"adPlayerControlsCommand"};
GP.prototype.handle=function(a){var b=this.Do();switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var c=iJ(b.u)&&b.B.tk()?b.u.getDuration(2):0;if(0>=c)break;b.seekTo(g.be(c-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,c));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":b.resume()}};
GP.prototype.jj=function(a){this.handle(a)};HP.prototype.ci=function(){return"clearCueRangesCommand"};
HP.prototype.handle=function(){var a=this.Do();g.um(function(){rL(a,Array.from(a.G))})};
HP.prototype.jj=function(a){this.handle(a)};IP.prototype.ci=function(){return"muteAdEndpoint"};
IP.prototype.handle=function(a){ypa(this,a)};
IP.prototype.jj=function(a,b){ypa(this,a,b)};JP.prototype.ci=function(){return"pingingEndpoint"};
JP.prototype.handle=function(){};
JP.prototype.jj=function(a){this.handle(a)};KP.prototype.ci=function(){return"urlEndpoint"};
KP.prototype.handle=function(a,b){var c=g.on(a.url,b);g.WK(c)};
KP.prototype.jj=function(){sI("Trying to handle UrlEndpoint with no macro in controlflow")};LP.prototype.ci=function(){return"adPingingEndpoint"};
LP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.po.send(a,b,c)};
LP.prototype.jj=function(a,b){bra(this.Da.get(),a,b)};MP.prototype.ci=function(){return"changeEngagementPanelVisibilityAction"};
MP.prototype.handle=function(a){this.J.va("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
MP.prototype.jj=function(a){this.handle(a)};NP.prototype.ci=function(){return"loggingUrls"};
NP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Ah.send(d.baseUrl,b,c,d.headers)};
NP.prototype.jj=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())d=d.value,bra(this.Da.get(),d.baseUrl,b,d.headers)};g.u(Apa,g.B);var Qpa=new Map([[0,"normal"],[1,"skipped"],[2,"muted"],[6,"user_input_submitted"]]);var Hpa=new Map([["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_player_response_received","OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED"],["opportunity_type_throttled_ad_break_request_slot_reentry","OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY"]]),
Dpa=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"],["slot_type_ad_break_request","SLOT_TYPE_AD_BREAK_REQUEST"]]),Fpa=new Map([["layout_type_media_break","LAYOUT_TYPE_MEDIA_BREAK"],["layout_type_media_layout_player_overlay","LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"],["layout_type_companion_with_action_button",
"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"],["layout_type_companion_with_image","LAYOUT_TYPE_COMPANION_WITH_IMAGE"],["layout_type_companion_with_shopping","LAYOUT_TYPE_COMPANION_WITH_SHOPPING"],["layout_type_media","LAYOUT_TYPE_MEDIA"],["layout_type_composite_player_bytes","LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"],["layout_type_forecasting","LAYOUT_TYPE_FORECASTING"],["layout_type_in_video_text_overlay","LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY"],["layout_type_in_video_enhanced_text_overlay","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"],
["layout_type_in_video_image_overlay","LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"],["layout_type_ad_break_response","LAYOUT_TYPE_AD_BREAK_RESPONSE"],["layout_type_throttled_ad_break_response","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"],["layout_type_survey","LAYOUT_TYPE_SURVEY"],["layout_type_sliding_text_player_overlay","LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY"],["layout_type_video_interstitial_buttoned_left","LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]]),RP=new Map([["trigger_type_on_new_playback_after_content_video_id",
"TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_on_different_slot_id_enter_requested","TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED"],["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_slot_id_fulfilled_empty","TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY"],["trigger_type_slot_id_fulfilled_non_empty",
"TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY"],["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_layout_exited_for_reason","TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON"],["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_ENDED","TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"],["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter",
"TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"],["trigger_type_survey_submitted","TRIGGER_TYPE_SURVEY_SUBMITTED"],["trigger_type_skip_requested","TRIGGER_TYPE_SKIP_REQUESTED"],["trigger_type_on_opportunity_received","TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED"],["trigger_type_layout_id_active_and_slot_id_has_exited","TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED"],["trigger_type_playback_minimized","TRIGGER_TYPE_PLAYBACK_MINIMIZED"]]),
Uqa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"],[6,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED"]]),Epa=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"]]),Bpa=new Map([["normal",{gq:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",yq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{gq:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",yq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{gq:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",yq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{gq:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",yq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],
["user_input_submitted",{gq:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",yq:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(WP,g.B);g.k=WP.prototype;g.k.Cg=function(a,b){JQ(this.Ab,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Cg(a,b)};
g.k.Je=function(a){if($P(this.u,a)){pK(this.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.u.Je(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Je(a);Kpa(this,a)}};
g.k.Ke=function(a){if($P(this.u,a)){pK(this.Ab,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.u.Ke(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Ke(a);$P(this.u,a)&&aQ(this.u,a).F&&YP(this,a,!1)}};
g.k.Nd=function(a,b){if($P(this.u,a)){bQ(this.Ab,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Nd(a,b)}};
g.k.Xd=function(a,b,c){if($P(this.u,a)){bQ(this.Ab,Cpa(c),a,b);this.u.Xd(a,b);for(var d=g.q(this.B),e=d.next();!e.done;e=d.next())e.value.Xd(a,b,c);(c=mQ(this.u,a))&&b.layoutId===c.layoutId&&Xpa(this,a,!1)}};
g.k.aa=function(){var a=Ypa(this.u);a=g.q(a);for(var b=a.next();!b.done;b=a.next())YP(this,b.value,!1);g.B.prototype.aa.call(this)};pQ.prototype.isActive=function(){switch(this.u){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
pQ.prototype.bx=function(){switch(this.D){case "fill_requested":return!0;default:return!1}};
pQ.prototype.ax=function(){switch(this.u){case "exit_requested":return!0;default:return!1}};
pQ.prototype.Xw=function(){switch(this.u){case "rendering_stop_requested":return!0;default:return!1}};g.u(cQ,$a);g.u(qQ,g.B);g.k=qQ.prototype;g.k.jg=function(a){a=aQ(this,a);"not_scheduled"!==a.u&&nQ(a.slot,a.u,"onSlotScheduled");a.u="scheduled"};
g.k.Qo=function(a){a=aQ(this,a);a.D="fill_requested";a.G.Qo()};
g.k.Je=function(a){a=aQ(this,a);"enter_requested"!==a.u&&nQ(a.slot,a.u,"onSlotEntered");a.u="entered"};
g.k.Dm=function(a){aQ(this,a).Dm=!0};
g.k.bx=function(a){return aQ(this,a).bx()};
g.k.ax=function(a){return aQ(this,a).ax()};
g.k.Xw=function(a){return aQ(this,a).Xw()};
g.k.Ke=function(a){a=aQ(this,a);"exit_requested"!==a.u&&nQ(a.slot,a.u,"onSlotExited");a.u="scheduled"};
g.k.Xd=function(a,b){var c=aQ(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.u&&nQ(c.slot,c.u,"onLayoutExited"),c.u="entered")};g.u(bqa,g.B);g.u(tQ,g.B);tQ.prototype.get=function(){this.la()&&sI("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.u});this.u||(this.u=this.B());return this.u};g.u(IQ,g.B);g.u(MQ,g.B);MQ.prototype.kt=function(){};
MQ.prototype.mx=function(a){var b=this,c=this.u.get(a);c&&(this.u["delete"](a),this.wb.get().removeCueRange(a),sH(this.ob.get(),"opportunity_type_throttled_ad_break_request_slot_reentry",function(){var d=b.bb.get();d=PQ(d.Ua.get(),"slot_type_ad_break_request");return[Object.assign(Object.assign({},c),{slotId:d,Nb:c.Nb?Qqa(c.slotId,d,c.Nb):void 0,te:Rqa(c.slotId,d,c.te),gf:Rqa(c.slotId,d,c.gf)})]},c.slotId))};
MQ.prototype.vi=function(){for(var a=g.q(this.u.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.wb.get().removeCueRange(b);this.u.clear()};
MQ.prototype.Ql=function(){};g.u(NQ,g.B);g.k=NQ.prototype;g.k.jg=function(){};
g.k.Di=function(){};
g.k.Je=function(){};
g.k.zh=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(a,b){this.B.has(a)||this.B.set(a,new Set);this.B.get(a).add(b)};
g.k.zi=function(a,b){this.u.has(a)&&this.u.get(a)===b&&sI("Unscheduled a Layout that is currently entered.",a,b);if(this.B.has(a)){var c=this.B.get(a);c.has(b)?(c["delete"](b),0===c.size&&this.B["delete"](a)):sI("Trying to unscheduled a Layout that was not scheduled.",a,b)}else sI("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Nd=function(a,b){this.u.set(a,b)};
g.k.Xd=function(a){this.u["delete"](a)};
g.k.Cg=function(){};$Q.prototype.clone=function(a){var b=this;return new $Q(function(){return b.triggerId},a)};aR.prototype.clone=function(a){var b=this;return new aR(function(){return b.triggerId},a)};bR.prototype.clone=function(a){var b=this;return new bR(function(){return b.triggerId},a)};cR.prototype.clone=function(a){var b=this;return new cR(function(){return b.triggerId},a)};dR.prototype.clone=function(a){var b=this;return new dR(function(){return b.triggerId},a)};g.u(gR,g.B);gR.prototype.logEvent=function(a){JQ(this,a)};g.u(iR,g.B);iR.prototype.addListener=function(a){this.listeners.push(a)};
iR.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
iR.prototype.B=function(){g.R(this.ya.get().J.T().experiments,"html5_mark_internal_abandon_in_pacf")&&this.u&&Wqa(this,this.u)};g.u(jR,g.B);jR.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.u.has(a)?sI("Tried to register duplicate cuerange",void 0,void 0,{CueRangeID:a}):(a=new Xqa(a,b,c,d,f),this.u.set(a.id,{od:a,listener:e,co:h}),g.nN(this.J,[a],h))};
jR.prototype.removeCueRange=function(a){var b=this.u.get(a);b?(g.oN(this.J.app,[b.od],b.co),this.u["delete"](a)):sI("Requested to remove unknown cuerange",void 0,void 0,{CueRangeID:a})};
jR.prototype.C=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.kt(a.id)};
jR.prototype.D=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.mx(a.id)};
g.u(Xqa,g.TD);nR.prototype.C=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.MC()};
nR.prototype.B=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.LC()};
nR.prototype.D=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.NC()};g.u(pR,eJ);pR.prototype.Ze=function(){return this.u()};
pR.prototype.B=function(){return this.C()};g.u(g.uR,g.rs);g.uR.prototype.R=function(a,b,c){return g.rs.prototype.R.call(this,a,b,c)};g.u(vR,g.B);g.k=vR.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.xP=function(a,b){var c=this.dr(b);this.u=c;this.listeners.forEach(function(e){e.qE(c)});
var d=uH(this,1);d.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=d.clientPlaybackNonce,this.listeners.forEach(function(){}))};
g.k.dr=function(a){var b,c,d,e,f=a.author,h=a.clientPlaybackNonce,l=a.isListed,m=a.Xb,n=a.title,p=a.Qf,r=a.Re,t=a.isMdxPlayback,w=a.pg,x=a.mdxEnvironment,y=a.videoId||"",D=a.wf||"",E=a.Ng||"";a=a.Yi||void 0;m=this.Ec.get().u.get(m)||{layoutId:null,slotId:null};var H=this.J.getVideoData(1),N=H.Ag(),J=H.getPlayerResponse();H=1E3*this.J.getDuration(1);J=(null===(c=null===(b=null===J||void 0===J?void 0:J.playerConfig)||void 0===b?void 0:b.daiConfig)||void 0===c?void 0:c.enableDai)||(null===(e=null===
(d=null===J||void 0===J?void 0:J.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:e.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},m),{videoId:y,author:f,clientPlaybackNonce:h,DA:H,daiEnabled:J,isListed:l,Ag:N,wf:D,title:n,Ng:E,Qf:p,Re:r,Yi:a,isMdxPlayback:t,pg:w,mdxEnvironment:x})};
g.k.aa=function(){this.listeners.length=0;this.u=null;g.B.prototype.aa.call(this)};g.u(wR,g.B);g.k=wR.prototype;g.k.vi=function(){var a=this;this.u=fb(function(){a.J.la()||g.tX(a.J,"ad",1)})};
g.k.Ql=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType()};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.yO=function(){if(2===this.J.getPresentingPlayerType())for(var a=lQ(this,2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yn(a)};
g.k.pO=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.An(a)};
g.k.gK=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.mn(a)};
g.k.hK=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.nn()};
g.k.Ai=function(){for(var a=this.J.app.visibility.u,b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ai(a)};
g.k.Sa=function(){for(var a=g.fH(this.J).getPlayerSize(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.xn(a)};g.u(ira,g.B);xR.prototype.executeCommand=function(a,b){KM(this.u(),a,b)};zR.prototype.Qo=function(){var a=this;lra(this.B,function(){var b=uI(a.slot.xa,"metadata_type_ad_break_request_data");return a.Sc.get().fetch({yG:b.getAdBreakUrl,MA:new g.TD(b.rF,b.qF),Eo:uI(a.slot.xa,"metadata_type_cue_point")})},function(b){b=b.Pg;
(!b.length||2<=b.length)&&sI("Unexpected ad placement renderers length",a.slot,null,{length:b.length})})};
zR.prototype.u=function(){mra(this.B)};AR.prototype.Qo=function(){var a=this;lra(this.B,function(){var b=uI(a.slot.xa,"metadata_type_ad_break_request_data");return a.Sc.get().fetch({yG:b.getAdBreakUrl,MA:new g.TD(b.rF,b.qF)})})};
AR.prototype.u=function(){mra(this.B)};LQ.prototype.Qo=function(){Lpa(this.callback,this.slot,uI(this.slot.xa,"metadata_type_fulfilled_layout"))};
LQ.prototype.u=function(){ZP(this.callback,this.slot,new jI("Got CancelSlotFulfilling request for "+this.slot.Xa+" in DirectFulfillmentAdapter."))};g.u(BR,nra);BR.prototype.u=function(a,b){if(KQ(b,{Xe:["metadata_type_ad_break_request_data","metadata_type_cue_point"],Xa:"slot_type_ad_break_request"}))return new zR(a,b,this.Sc,this.xb,this.Ya,this.ya);if(KQ(b,{Xe:["metadata_type_ad_break_request_data"],Xa:"slot_type_ad_break_request"}))return new AR(a,b,this.Sc,this.xb,this.Ya,this.ya);throw new jI("Unsupported slot with type: "+b.Xa+" and client metadata: "+QP(b.xa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(CR,nra);CR.prototype.u=function(a,b){throw new jI("Unsupported slot with type: "+b.Xa+" and client metadata: "+QP(b.xa)+" in DefaultFulfillmentAdapterFactory.");};g.k=ora.prototype;g.k.ag=function(){return this.slot};
g.k.xg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)eQ(this.callback,this.slot,a,new cQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=uI(a.xa,"metadata_type_ad_break_response_data");"slot_type_ad_break_request"===this.slot.Xa?(this.callback.Nd(this.slot,a),Wma(this.u,this.slot,b)):sI("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Tk=function(a,b){a.layoutId!==this.layout.layoutId?eQ(this.callback,this.slot,a,new cQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xd(this.slot,a,b)};ER.prototype.u=function(a,b,c,d){if(DR(d,{Xe:["metadata_type_ad_break_response_data"],lh:["layout_type_ad_break_response","layout_type_throttled_ad_break_response"]}))return new ora(a,c,d,this.B);throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.k=pra.prototype;g.k.ag=function(){return this.slot};
g.k.xg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?eQ(this.callback,this.slot,a,new cQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Nd(this.slot,a),NO(this.Fa,"impression"),RR(this.u,a.layoutId))};
g.k.Tk=function(a,b){a.layoutId!==this.layout.layoutId?eQ(this.callback,this.slot,a,new cQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xd(this.slot,a,b)};FR.prototype.u=function(a,b,c,d){if(DR(d,qra()))return new pra(a,c,d,this.Da,this.B);throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(GR,g.P);g.k=GR.prototype;g.k.ag=function(){return this.slot};
g.k.xg=function(){return this.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.hp=function(){};
g.k.Cw=function(){};
g.k.Bw=function(){};
g.k.qs=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?eQ(this.callback,this.slot,a,new cQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.B.get(),Fra(a,this.Lj,1))};
g.k.Tk=function(a,b){if(a.layoutId!==this.layout.layoutId)eQ(this.callback,this.slot,a,new cQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.B.get();Fra(c,this.Lj,3);this.Lj=[];this.callback.Xd(this.slot,a,b)}};
g.k.aa=function(){this.B.get().removeListener(this);g.P.prototype.aa.call(this)};g.u(KR,GR);g.k=KR.prototype;g.k.init=function(){GR.prototype.init.call(this);HR(this.Fa,this.ag(),this.xg(),this.callback,"metadata_type_action_companion_ad_renderer",function(a,b,c,d,e){return new WJ(a,b,c,d,e)},this.Lj)};
g.k.rf=function(a){JR(this.qo,a,this.td.get().u,this.Da.get(),this.Wg,this.Vk,this.ag(),this.xg())};
g.k.Nd=function(a,b){b.layoutId===this.layout.layoutId?NO(this.Fa,"impression"):IR(this.Vk,b)&&(null===this.Wg?this.Wg=rR(this.Da.get()):sI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Xd=function(){};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.aa=function(){this.Qd().B["delete"](this);GR.prototype.aa.call(this)};g.u(LR,GR);LR.prototype.init=function(){GR.prototype.init.call(this);var a=uI(this.layout.xa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.sd};this.Lj.push(new $K(a,this.layout.layoutId,uI(this.layout.xa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b))};
LR.prototype.startRendering=function(a){GR.prototype.startRendering.call(this,a);this.callback.Nd(this.slot,a)};
LR.prototype.rf=function(a){a:{var b=this.td.get();var c=this.C;b=g.q(b.u.values());for(var d=b.next();!d.done;d=b.next())if(d.value.layoutId===c){c=!0;break a}c=!1}if(c)switch(a){case "visit-advertiser":this.Da.get().J.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.u||(a=this.oa.get(),2===a.J.getPlayerState(2)&&a.J.playVideo());break;case "ad-info-icon-button":(this.u=2===this.oa.get().J.getPlayerState(2))||
this.oa.get().pauseVideo();break;case "visit-advertiser":this.oa.get().pauseVideo();uI(this.layout.xa,"metadata_type_player_bytes_callback").ky();break;case "skip-button":a=uI(this.layout.xa,"metadata_type_player_bytes_callback"),a.X&&a.DE()}};
LR.prototype.aa=function(){GR.prototype.aa.call(this)};NR.prototype.u=function(a,b,c,d){if(a=MR(a,c,d,this.Ob,this.oa,this.Da,this.td))return a;throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(SR,g.B);g.k=SR.prototype;g.k.ag=function(){return this.slot};
g.k.xg=function(){return this.layout};
g.k.init=function(){uI(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=this;XP(this.Qd(),this);this.oa.get().addListener(this);var a=uI(this.layout.xa,"metadata_type_video_length_seconds");$qa(this.fb.get(),this.layout.layoutId,a,this);sR(this.Da.get(),this)};
g.k.release=function(){uI(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=null;this.Qd().B["delete"](this);this.oa.get().removeListener(this);ara(this.fb.get(),this.layout.layoutId);tR(this.Da.get(),this);this.B.dispose()};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)eQ(this.callback,this.slot,a,new cQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if(JJ(this.fd.get(),1)){var b=this.oa.get().J;g.iN(b.app,2);vra(this,!1);zL(this.Ic.get());b=uI(a.xa,"metadata_type_ad_video_id");var c=uI(a.xa,"metadata_type_legacy_info_card_vast_extension");c&&this.ld.get().J.T().K.add(b,{Ao:c});(b=uI(a.xa,"metadata_type_sodar_extension_data"))&&
jra(this.bd.get(),b);hra(this.oa.get(),!1);b=this.oc.get();pN(b.J.app,-1);this.u="rendering_start_requested";b=this.Wc.get();a=uI(a.xa,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.B.start();this.Wc.get().J.playVideo(2)}else QR(this,"ui_unstable",new cQ("Failed to render media layout because ad ui unstable."))};
g.k.Nd=function(a,b){var c;if(b.layoutId===this.layout.layoutId){this.u="rendering";NO(this.Fa,"impression");NO(this.Fa,"start");this.oa.get().isMuted()&&MO(this.Fa,"mute");this.oa.get().isFullscreen()&&MO(this.Fa,"fullscreen");this.B.stop();var d="adcompletioncuerange:"+this.layout.layoutId;this.wb.get().addCueRange(d,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(c=uH(this.Ba.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)||"")||sI("Media layout confirmed started, but ad CPN not set.");
CL(this.Ic.get());d=this.oc.get();pN(d.J.app,1);this.oc.get().u("onAdStart",this.adCpn);d=uI(this.layout.xa,"metadata_type_instream_video_ad_commands").impressionCommands||[];var e=this.Yb.get(),f=this.layout.layoutId;IM(e.u(),d,f)}};
g.k.ky=function(){MO(this.Fa,"clickthrough")};
g.k.Tk=function(a,b){a.layoutId!==this.layout.layoutId?eQ(this.callback,this.slot,a,new cQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_stop_requested",this.C=b,this.B.stop(),hra(this.oa.get(),!0),g.mN(this.oa.get().J,2))};
g.k.kt=function(a){a!=="adcompletioncuerange:"+this.layout.layoutId?sI("Received CueRangeEnter signal for unknown layout.",this.slot,this.layout,{cueRangeId:a}):(this.wb.get().removeCueRange(a),a=uI(this.layout.xa,"metadata_type_video_length_seconds"),ura(this,a,!0),NO(this.Fa,"complete"))};
g.k.Xd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.C=void 0,BL(this.Ic.get()),vra(this,!0),"abandoned"!==c&&this.oc.get().u("onAdComplete"),this.oc.get().u("onAdEnd",this.adCpn),a=this.oc.get(),pN(a.J.app,0),c){case "abandoned":NO(this.Fa,"abandon");c=uI(this.layout.xa,"metadata_type_instream_video_ad_commands").onAbandonCommands||[];a=this.Yb.get();b=this.layout.layoutId;IM(a.u(),c,b);break;case "normal":NO(this.Fa,"complete");c=uI(this.layout.xa,"metadata_type_instream_video_ad_commands").completeCommands||
[];a=this.Yb.get();b=this.layout.layoutId;IM(a.u(),c,b);break;case "skipped":NO(this.Fa,"skip");break;case "error":NO(this.Fa,"error")}};
g.k.Vo=function(){return this.layout.layoutId};
g.k.hw=function(){return this.G};
g.k.mx=function(){};
g.k.yn=function(a){ura(this,a)};
g.k.An=function(a){var b,c;if("not_rendering"!==this.u){this.D||(a=new g.KJ(a.state,new g.FL),this.D=!0);var d=2===this.oa.get().getPresentingPlayerType();"rendering_start_requested"===this.u?d&&OR(a)&&this.callback.Nd(this.slot,this.layout):(g.MJ(a,2)||!d?this.F():OR(a)?(d=this.oc.get(),pN(d.J.app,1)):a.state.isError()?QR(this,null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new cQ("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===
c?void 0:c.errorCode})):g.MJ(a,4)&&!g.MJ(a,2)&&(MO(this.Fa,"pause"),d=this.oc.get(),pN(d.J.app,2)),0>LJ(a,4)&&!(0>LJ(a,2))&&MO(this.Fa,"resume"))}};
g.k.MC=function(){NO(this.Fa,"active_view_measurable")};
g.k.LC=function(){NO(this.Fa,"active_view_fully_viewable_audible_half_duration")};
g.k.NC=function(){NO(this.Fa,"active_view_viewable")};
g.k.aa=function(){this.release();g.B.prototype.aa.call(this)};
g.k.mn=function(a){2===this.oa.get().getPresentingPlayerType()&&(a?MO(this.Fa,"fullscreen"):MO(this.Fa,"end_fullscreen"))};
g.k.nn=function(){2===this.oa.get().getPresentingPlayerType()&&MO(this.Fa,this.oa.get().isMuted()?"mute":"unmute")};
g.k.Ai=function(){};
g.k.xn=function(){};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};TR.prototype.u=function(a,b,c,d){b=this.Qd;var e=this.B,f=this.Da,h=this.fb,l=this.bd,m=this.Wc,n=this.Ba,p=this.oa,r=this.wb,t=this.Ic,w=this.oc,x=this.fd,y=this.Yb,D=this.ld;a=DR(d,tra())?new SR(a,c,d,b,e,f,h,l,m,n,p,r,t,w,x,y,D):void 0;if(a)return a;throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(UR,g.B);g.k=UR.prototype;g.k.Nd=function(a,b){var c=this;if(wra(this)&&"layout_type_media"===b.layoutType)if(OP(b,this.u)){var d=uH(this.Ba.get(),2),e=this.B(b,d);e?sH(this.ob.get(),"opportunity_type_player_bytes_media_layout_entered",function(){return[Sqa(c.bb.get(),e.contentCpn,e.Zy,function(f){return c.C(f.slotId,"core",e,UP(c.Ya.get(),f))})]}):sI("Expected MediaLayout to carry valid opportunity on entered",a,b)}else sI("Received MediaLayout entered, missing metadata for opportunity",a,b,{Actual:QP(b.xa),
Expected:this.u})};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.Je=function(){};
g.k.zh=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.Xd=function(){};var FS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=xra.prototype;g.k.init=function(){};
g.k.ag=function(){return this.slot};
g.k.Sv=function(){this.callback.Je(this.slot)};
g.k.Xv=function(){this.callback.Ke(this.slot)};
g.k.release=function(){};WR.prototype.u=function(a,b){return new xra(a,b)};g.k=yra.prototype;g.k.init=function(){};
g.k.ag=function(){return this.slot};
g.k.Sv=function(){var a=this.oa.get();g.I(a.J.getRootNode(),"ad-showing");this.callback.Je(this.slot)};
g.k.Xv=function(){this.callback.Ke(this.slot);var a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=zra.prototype;g.k.init=function(){nI(this.slot)&&(this.u=!0)};
g.k.ag=function(){return this.slot};
g.k.Sv=function(){var a=this.oa.get();g.I(a.J.getRootNode(),"ad-showing");a=this.oa.get();g.I(a.J.getRootNode(),"ad-interrupting");this.callback.Je(this.slot)};
g.k.Xv=function(){Ara(this);var a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-showing");a=this.oa.get();g.Bn(a.J.getRootNode(),"ad-interrupting");this.callback.Ke(this.slot)};
g.k.release=function(){Ara(this)};YR.prototype.u=function(a,b){if(pH(b,["metadata_type_dai"],"slot_type_player_bytes"))return new yra(a,b,this.oa);if(pH(b,[],"slot_type_player_bytes"))return new zra(a,b,this.oa);throw new jI("Unsupported slot with type "+b.Xa+" and client metadata: "+(QP(b.xa)+" in PlayerBytesSlotAdapterFactory."));};g.u($R,g.B);$R.prototype.hp=function(a){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof yQ&&2===d.category&&e.B===a&&b.push(d)}b.length&&hQ(this.sx(),b)};g.u(aS,$R);g.k=aS.prototype;g.k.rf=function(a,b){if(b)if("survey-submit"===a){for(var c=[],d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof zQ&&f.B===b&&c.push(e)}c.length?hQ(this.sx(),c):sI("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){c=[];d=g.q(this.kb.values());for(e=d.next();!e.done;e=d.next())e=e.value,f=e.trigger,f instanceof yQ&&1===e.category&&f.B===b&&c.push(e);c.length&&hQ(this.sx(),c)}};
g.k.hp=function(a){$R.prototype.hp.call(this,a)};
g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof zQ||b instanceof yQ))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.kb.set(b.triggerId,new ZR(a,b,c,d))};
g.k.Lg=function(a){this.kb["delete"](a.triggerId)};
g.k.Cw=function(){};
g.k.Bw=function(){};
g.k.qs=function(){};g.u(bS,g.B);g.k=bS.prototype;
g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof $Q||b instanceof aR||b instanceof bR||b instanceof cR||b instanceof dR||b instanceof SQ||b instanceof oI||b instanceof xQ||b instanceof EQ||b instanceof RQ||b instanceof WQ))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new ZR(a,b,c,d);this.kb.set(b.triggerId,a);b instanceof dR&&this.F.has(b.u)&&
hQ(this.u(),[a]);b instanceof $Q&&this.C.has(b.u)&&hQ(this.u(),[a]);b instanceof oI&&this.B.has(b.B)&&hQ(this.u(),[a])};
g.k.Lg=function(a){this.kb["delete"](a.triggerId)};
g.k.jg=function(a){this.F.add(a.slotId);for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof dR&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&hQ(this.u(),b)};
g.k.Di=function(a){this.F["delete"](a.slotId)};
g.k.zh=function(a){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof SQ&&e.Xa===a.Xa&&e.C!==a.slotId&&b.push(d)}0<b.length&&hQ(this.u(),b)};
g.k.Je=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof $Q&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&hQ(this.u(),b)};
g.k.Ke=function(a){this.C["delete"](a.slotId);this.D.add(a.slotId);for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof aR)a.slotId===d.trigger.u&&b.push(d);else if(d.trigger instanceof WQ){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.layoutId)&&b.push(d)}0<b.length&&hQ(this.u(),b)};
g.k.Bi=function(a){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof bR&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&hQ(this.u(),b)};
g.k.Ci=function(a){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof cR&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&hQ(this.u(),b)};
g.k.yh=function(a,b){this.G.add(b.layoutId)};
g.k.zi=function(a,b){this.G["delete"](b.layoutId)};
g.k.Nd=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof oI)b.layoutId===e.trigger.B&&c.push(e);else if(e.trigger instanceof RQ){var f=e.trigger;a.Xa===f.Xa&&b.layoutType===f.layoutType&&b.layoutId!==f.C&&c.push(e)}else e.trigger instanceof WQ&&(f=e.trigger,b.layoutId===f.layoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&hQ(this.u(),c)};
g.k.Xd=function(a,b,c){this.B["delete"](b.layoutId);a=[];for(var d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof xQ&&b.layoutId===e.trigger.C&&a.push(e),e.trigger instanceof EQ&&b.layoutId===e.trigger.C&&"error"===c&&a.push(e);0<a.length&&hQ(this.u(),a)};
g.k.Cg=function(){};
g.k.vi=function(){this.D.clear()};
g.k.Ql=function(){};g.u(cS,g.B);cS.prototype.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof wH||b instanceof YQ))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.kb.set(b.triggerId,new ZR(a,b,c,d))};
cS.prototype.Lg=function(a){this.kb["delete"](a.triggerId)};
cS.prototype.vi=function(a){var b=[];b.push.apply(b,g.la(Cra(this.kb,a)));b.push.apply(b,g.la(Bra(this.kb,a,!1)));b.length&&hQ(this.u(),b)};
cS.prototype.Ql=function(a){var b=[];b.push.apply(b,g.la(Bra(this.kb,a,!0)));b.length&&hQ(this.u(),b)};g.u(dS,g.B);g.k=dS.prototype;
g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof pI)eS(this,a,b,c,d,e,b.B.start,b.B.end,b.D,b.visible);else if(b instanceof XQ)eS(this,a,b,c,d,e,b.B.start,b.B.end,b.C,!1);else if(b instanceof VQ)eS(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.B,b.visible);else throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Lg=function(a){var b=this.kb.get(a.triggerId);b&&(this.wb.get().removeCueRange(b.Hm),this.B["delete"](b.Hm));this.kb["delete"](a.triggerId)};
g.k.kt=function(a){if(!this.B.has(a)&&(a=Dra(this,a))&&(a=this.kb.get(a)))if(g.U(oR(this.oa.get()),32))this.u.add(a.Hm);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof pI||b instanceof VQ)b instanceof pI&&b.F&&this.B.add(a.Hm),hQ(this.C(),[a.bundle])}};
g.k.mx=function(a){if(a=Dra(this,a))if(a=this.kb.get(a))this.u["delete"](a.Hm),a.bundle.trigger instanceof XQ&&hQ(this.C(),[a.bundle])};
g.k.An=function(a){if(0>LJ(a,16)){a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.kt(b.value);this.u.clear()}};
g.k.yn=function(){};
g.k.mn=function(){};
g.k.Ai=function(){};
g.k.xn=function(){};
g.k.nn=function(){};g.u(fS,g.B);g.k=fS.prototype;g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof AQ||b instanceof ZQ))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.kb.set(b.triggerId,new ZR(a,b,c,d))};
g.k.Lg=function(a){this.kb["delete"](a.triggerId)};
g.k.jt=function(){};
g.k.it=function(){};
g.k.yp=function(){};
g.k.Nd=function(a,b){"slot_type_above_feed"===a.Xa&&(null!=this.u?sI("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.u=b.layoutId)};
g.k.Xd=function(a){"slot_type_above_feed"===a.Xa&&(this.u=null)};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(a){"slot_type_above_feed"===a.Xa&&(null!=this.B?sI("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.B=a.slotId)};
g.k.Ke=function(a){"slot_type_above_feed"===a.Xa&&(null===this.B?sI("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.B=null)};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.Bo=function(){null!=this.u&&RR(this,this.u)};
g.k.Po=function(a){if(null===this.B){for(var b=[],c=g.q(this.kb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZQ&&d.trigger.slotId===a&&b.push(d);b.length&&hQ(this.C(),b)}};
g.k.Gr=function(){};g.u(gS,g.B);g.k=gS.prototype;g.k.Cg=function(a,b){for(var c=[],d=g.q(this.kb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&hQ(this.u(),c)};
g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof Nqa))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.kb.set(b.triggerId,new ZR(a,b,c,d))};
g.k.Lg=function(a){this.kb["delete"](a.triggerId)};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Nd=function(){};
g.k.Xd=function(){};g.u(hS,g.B);hS.prototype.init=function(){};
hS.prototype.release=function(){};
hS.prototype.aa=function(){this.ud.get().removeListener(this);g.B.prototype.aa.call(this)};iS.prototype.fetch=function(a){var b=this,c=a.MA;return this.Vu.fetch(a.yG,{Eo:void 0===a.Eo?void 0:a.Eo,od:c}).then(function(d){var e=null,f=null;if(g.R(b.ya.get().J.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else try{(e=JSON.parse(d.response))&&(f=e)}catch(h){d.response&&(d=d.response,d.startsWith("GIF89")||(h.params=d.substr(0,256),g.Gr(h)))}return Era(f,c)})};g.u(jS,g.B);g.k=jS.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.onAdUxClicked=function(a,b){kS(this,function(c){c.rf(a,b)})};
g.k.fK=function(a){kS(this,function(b){b.Cw(a)})};
g.k.eK=function(a){kS(this,function(b){b.Bw(a)})};
g.k.pM=function(a){kS(this,function(b){b.qs(a)})};mS.prototype.u=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.J.va(a,c)};oS.prototype.addListener=function(a){this.listeners.push(a)};
oS.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=Hra.prototype;g.k.ag=function(){return this.slot};
g.k.xg=function(){return this.layout};
g.k.init=function(){this.Ba.get().addListener(this);this.Hd.get().addListener(this);this.oa.get().addListener(this);this.B.forEach(function(c){c.init()});
var a=uI(this.layout.xa,"metadata_type_layout_enter_ms"),b=uI(this.layout.xa,"metadata_type_layout_exit_ms");a=Kra(this.Hd.get(),a,b);null!==a&&Vra(this.Of.get(),a,b)};
g.k.release=function(){this.u=null;this.B.forEach(function(a){a.release()});
this.Ba.get().removeListener(this);this.Hd.get().removeListener(this);this.oa.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.u)sI("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Ba.get().u)||void 0===a?void 0:a.layoutId;Jra(this,b);this.callback.Nd(this.slot,this.layout);NO(this.Fa,"ad_placement_start")}};
g.k.Tk=function(a,b){var c,d;null===(d=null===(c=this.u)||void 0===c?void 0:c.Th)||void 0===d?void 0:d.Tk(b);this.u=null;null!==this.driftRecoveryMs&&(pS(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Lra(this)-uI(this.layout.xa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*eH(this.oa.get().J)).toString()}),this.driftRecoveryMs=null);this.callback.Xd(this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=lQ(this.oa.get(),2,!0);var f=
uI(this.layout.xa,"metadata_type_layout_exit_ms")/1E3;e=1>=Math.abs(e-f)}e&&NO(this.Fa,"ad_placement_end")};
g.k.qE=function(a){a=a.layoutId;var b,c;this.u&&(null===(b=this.u.Th)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.u.Th)||void 0===c?void 0:c.Tk("normal"),Jra(this,a))};
g.k.iE=function(){};
g.k.XD=function(a){var b=uI(this.layout.xa,"metadata_type_layout_enter_ms"),c=uI(this.layout.xa,"metadata_type_layout_exit_ms");a*=1E3;b<=a&&a<c&&Vra(this.Of.get(),a,c)};
g.k.yn=function(){var a=lQ(this.oa.get(),2,!0);if(this.u){var b=uI(this.layout.xa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=Lra(this),e=eH(this.oa.get().J),f=Math.min(a+e,d/1E3);f<=a?pS(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(pS(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),
appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.oa.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.An=function(){};
g.k.mn=function(){};
g.k.Ai=function(){};
g.k.xn=function(){};
g.k.nn=function(){};g.k=Mra.prototype;
g.k.init=function(){uI(this.layout.xa,"metadata_type_player_bytes_callback_ref").current=this;var a=uI(this.layout.xa,"metadata_type_video_length_seconds"),b=uI(this.layout.xa,"metadata_type_player_vars"),c=uI(this.layout.xa,"metadata_type_layout_enter_ms"),d=uI(this.layout.xa,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c){var f=this.Of.get();if(b=$Aa(f.J.app,b,e,c,d)){f=this.Ec.get();var h=this.slot.slotId,l=this.layout.layoutId;b?(f.u.has(b)&&sI("Unexpected remap of timeline playback"),f.u.set(b,
{slotId:h,layoutId:l})):sI("Invalid timeline playback ID");c+e>d&&(c=d-c,d=this.Of.get(),aBa(d.J.app,b,c))}else sI("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},qS(this.layout)),{compositeLayout:Ora(uI(this.slot.xa,"metadata_type_fulfilled_layout"))}))}else sI("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},qS(this.layout)),{compositeLayout:Ora(uI(this.slot.xa,"metadata_type_fulfilled_layout"))}));this.oa.get().addListener(this);
$qa(this.fb.get(),this.layout.layoutId,a,this);Mpa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.oa.get().removeListener(this);ara(this.fb.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.u)sI("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={hx:null,HF:!1};var a=uI(this.layout.xa,"metadata_type_sodar_extension_data");if(a)try{jra(this.bd.get(),a)}catch(b){sI("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}Opa(this.callback,this.slot,this.layout)}};
g.k.Tk=function(a){this.u?(this.u=null,eL(this.callback,this.slot,this.layout,a)):sI("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.yn=function(a){if(this.u){if(this.Fa.u.has("impression")){var b=oR(this.oa.get());Nra(this,b,a,this.u.hx)}this.u.hx=a}};
g.k.An=function(a){if(this.u){this.u.HF||(this.u.HF=!0,a=new g.KJ(a.state,new g.FL));var b=lQ(this.oa.get(),2,!1);OR(a)&&PR(b,0,null)&&NO(this.Fa,"impression");if(this.Fa.u.has("impression")&&(g.MJ(a,4)&&!g.MJ(a,2)&&MO(this.Fa,"pause"),0>LJ(a,4)&&!(0>LJ(a,2))&&MO(this.Fa,"resume"),g.MJ(a,16)&&.5<=lQ(this.oa.get(),2,!1)&&MO(this.Fa,"seek"),g.MJ(a,2))){var c=uI(this.layout.xa,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);Nra(this,a.state,d?c:b,this.u.hx);d&&NO(this.Fa,"complete")}}};
g.k.mn=function(a){this.Fa.u.has("impression")&&MO(this.Fa,a?"fullscreen":"end_fullscreen")};
g.k.Ai=function(){};
g.k.xn=function(){};
g.k.DE=function(){};
g.k.nn=function(){};
g.k.ky=function(){this.Fa.u.has("impression")&&MO(this.Fa,"clickthrough")};
g.k.MC=function(){MO(this.Fa,"active_view_measurable")};
g.k.LC=function(){this.Fa.u.has("impression")&&!this.Fa.u.has("seek")&&MO(this.Fa,"active_view_fully_viewable_audible_half_duration")};
g.k.NC=function(){this.Fa.u.has("impression")&&!this.Fa.u.has("seek")&&MO(this.Fa,"active_view_viewable")};rS.prototype.u=function(a,b,c,d){if(c.xa.u.has("metadata_type_dai")){a:{var e=uI(d.xa,"metadata_type_sub_layouts"),f=uI(d.xa,"metadata_type_ad_placement_config");if(DR(d,{Xe:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],lh:["layout_type_composite_player_bytes"]})&&void 0!==e&&void 0!==f){var h=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=uI(l.xa,"metadata_type_sub_layout_index");if(!DR(l,{Xe:["metadata_type_video_length_seconds",
"metadata_type_player_vars","metadata_type_layout_enter_ms","metadata_type_layout_exit_ms","metadata_type_player_bytes_callback_ref"],lh:["layout_type_media"]})||void 0===m){a=null;break a}m=new IO(l.Rc,this.Da,f,l.layoutId,m);h.push(new Mra(b,c,l,this.Of,m,this.oa,this.Ec,this.fb,this.bd))}b=new IO(d.Rc,this.Da,f,d.layoutId);a=new Hra(a,c,d,this.Ba,this.Of,this.Hd,this.oa,b,this.Da,h)}else a=null}if(a)return a}else{h=this.Qd;b=this.B;f=this.Da;e=this.fb;l=this.bd;m=this.Wc;var n=this.Ba,p=this.oa,
r=this.wb,t=this.Ic,w=this.oc,x=this.fd,y=this.Yb,D=this.ld;a=DR(d,tra())?new SR(a,c,d,h,b,f,e,l,m,n,p,r,t,w,x,y,D):void 0;if(a)return a}throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(sS,g.B);g.k=sS.prototype;g.k.iE=function(a){this.u&&Pra(this,this.u,a)};
g.k.XD=function(){};
g.k.vi=function(a){this.u&&this.u.contentCpn!==a&&(sI("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn}),this.u=null)};
g.k.Ql=function(a){this.u&&this.u.contentCpn!==a&&sI("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn});this.u=null};
g.k.aa=function(){g.B.prototype.aa.call(this);this.u=null};g.u(tS,g.B);
tS.prototype.Ig=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new jI("Tried to re-register the trigger.");a=new ZR(a,b,c,d);if(a.trigger instanceof Pqa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof Mqa)this.C.set(a.trigger.triggerId,a);else throw new jI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.u&&hQ(this.D(),[a])};
tS.prototype.Lg=function(a){this.B["delete"](a.triggerId);this.C["delete"](a.triggerId)};
tS.prototype.qE=function(a){a=a.slotId;if(this.u!==a){var b=[];null!=this.u&&b.push.apply(b,g.la(Qra(this.C,this.u)));null!=a&&b.push.apply(b,g.la(Qra(this.B,a)));this.u=a;b.length&&hQ(this.D(),b)}};g.u(uS,g.B);g.k=uS.prototype;g.k.vi=function(){this.D=new kL(this,Yqa(this.ya.get()));this.C=new lL;Rra(this)};
g.k.Ql=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.jE=function(a){this.u.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.iE(a)};
g.k.YD=function(a){g.Eb(this.C.u,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.XD(a)};
g.k.Mx=function(a){var b=uH(this.Ba.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b){this.Da.get();var f={cuepointTrigger:{event:Sra(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}};g.Dq("adsClientStateChange",f)}this.B.add(e);this.D.reduce(e)}};
g.k.aa=function(){this.J.getVideoData(1).unsubscribe("cuepointupdated",this.Mx,this);this.listeners.length=0;this.B.clear();this.u.length=0;g.B.prototype.aa.call(this)};vS.prototype.addListener=function(a){this.listeners.add(a)};
vS.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(wS,GR);g.k=wS.prototype;g.k.init=function(){GR.prototype.init.call(this);HR(this.Fa,this.ag(),this.xg(),this.callback,"metadata_type_image_companion_ad_renderer",function(a,b,c,d,e){return new sN(a,b,c,d,e)},this.Lj)};
g.k.rf=function(a){JR(this.qo,a,this.td.get().u,this.Da.get(),this.Wg,this.Vk,this.ag(),this.xg())};
g.k.Nd=function(a,b){b.layoutId===this.layout.layoutId?NO(this.Fa,"impression"):IR(this.Vk,b)&&(null===this.Wg?this.Wg=rR(this.Da.get()):sI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Xd=function(){};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.aa=function(){this.Qd().B["delete"](this);GR.prototype.aa.call(this)};g.u(xS,GR);g.k=xS.prototype;g.k.init=function(){GR.prototype.init.call(this);HR(this.Fa,this.ag(),this.xg(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,b,c,d,e){return new JK(a,b,c,d,e)},this.Lj)};
g.k.rf=function(a){JR(this.qo,a,this.td.get().u,this.Da.get(),this.Wg,this.Vk,this.ag(),this.xg())};
g.k.Nd=function(a,b){b.layoutId===this.layout.layoutId?NO(this.Fa,"impression"):IR(this.Vk,b)&&(null===this.Wg?this.Wg=rR(this.Da.get()):sI("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Xd=function(){};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.aa=function(){this.Qd().B["delete"](this);GR.prototype.aa.call(this)};Yra.prototype.u=function(a,b,c,d){if(DR(d,rra()))return new KR(a,c,d,this.Ob,this.Da,this.Qd,this.fb,this.td);if(DR(d,Wra()))return new wS(a,c,d,this.Ob,this.Da,this.Qd,this.fb,this.td);if(DR(d,Xra()))return new xS(a,c,d,this.Ob,this.Da,this.Qd,this.fb,this.td);throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(yS,GR);g.k=yS.prototype;g.k.yn=function(){};
g.k.An=function(){};
g.k.mn=function(){};
g.k.Ai=function(a){a&&CS(this.u,this.layout)};
g.k.xn=function(a){if(Zqa(this.ya.get())){var b=SO(this.layout);if(this.C=RO(a,gra(this.oa.get())))b.onErrorCommand&&this.Yb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),CS(this.u,this.layout)}else Yoa(a)&&CS(this.u,this.layout)};
g.k.nn=function(){};
g.k.Vo=function(){return this.xg().layoutId};
g.k.hw=function(){return this.C};
g.k.rf=function(a){"in_video_overlay_close_button"===a&&CS(this.u,this.layout)};
g.k.qs=function(a){"invideo-overlay"===a&&CS(this.u,this.layout)};
g.k.startRendering=function(a){GR.prototype.startRendering.call(this,a);this.callback.Nd(this.slot,a)};
g.k.init=function(){GR.prototype.init.call(this);sR(this.Da.get(),this);this.oa.get().addListener(this);this.Lj.push(new tK(SO(this.layout),LO(this.Fa),this.layout.layoutId,{adsClientData:this.layout.sd}))};
g.k.release=function(){GR.prototype.release.call(this);this.oa.get().removeListener(this);tR(this.Da.get(),this)};g.u(zS,GR);g.k=zS.prototype;g.k.init=function(){GR.prototype.init.call(this);sR(this.Da.get(),this);this.oa.get().addListener(this);this.Lj.push(new tK(SO(this.layout),LO(this.Fa),this.layout.layoutId,{adsClientData:this.layout.sd}))};
g.k.startRendering=function(a){GR.prototype.startRendering.call(this,a);this.callback.Nd(this.slot,a)};
g.k.rf=function(a){"in_video_overlay_close_button"===a&&CS(this.u,this.layout)};
g.k.Cw=function(a){if("invideo-overlay"===a){a=asa(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.qs=function(a){"invideo-overlay"===a&&CS(this.u,this.layout)};
g.k.Bw=function(a){if("invideo-overlay"===a){a=asa(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.yn=function(){};
g.k.An=function(){};
g.k.mn=function(){};
g.k.Ai=function(a){a&&CS(this.u,this.layout)};
g.k.xn=function(a){var b=SO(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer;if(Zqa(this.ya.get())){if(this.C=RO(a,gra(this.oa.get()),$ra(c)))b.onErrorCommand&&this.Yb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),CS(this.u,this.layout)}else Yoa(a,$ra(c))&&CS(this.u,this.layout)};
g.k.nn=function(){};
g.k.Vo=function(){return this.xg().layoutId};
g.k.hw=function(){return this.C};
g.k.release=function(){GR.prototype.release.call(this);this.oa.get().removeListener(this);tR(this.Da.get(),this)};AS.prototype.u=function(a,b,c,d){if(b=MR(a,c,d,this.Ob,this.oa,this.Da,this.td))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(JO()),f=e.next();!f.done;f=e.next())b.push(f.value);if(DR(d,{Xe:b,lh:["layout_type_in_video_image_overlay"]}))return new zS(c,d,this.Da,this.fb,this.Ob,a,this.B,this.C,this.oa,this.Yb,this.ya);if(DR(d,Zra()))return new yS(c,d,this.Da,this.fb,this.Ob,a,this.B,this.oa,this.Yb,this.ya);throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
QP(d.xa)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(BS,g.B);BS.prototype.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof Lqa))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.kb.set(b.triggerId,new ZR(a,b,c,d))};
BS.prototype.Lg=function(a){this.kb["delete"](a.triggerId)};g.u(DS,g.B);g.k=DS.prototype;g.k.Ig=function(a,b,c,d){if(this.kb.has(b.triggerId))throw new jI("Tried to register duplicate trigger for slot.");if(!(b instanceof DQ))throw new jI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.kb.set(b.triggerId,new ZR(a,b,c,d));a=this.u.has(b.layoutId)?this.u.get(b.layoutId):new Set;a.add(b);this.u.set(b.layoutId,a)};
g.k.Lg=function(a){this.kb["delete"](a.triggerId);if(!(a instanceof DQ))throw new jI("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B["delete"](a.triggerId));if(b=this.u.get(a.layoutId))b["delete"](a),0===b.size&&this.u["delete"](a.layoutId)};
g.k.jg=function(){};
g.k.Di=function(){};
g.k.zh=function(){};
g.k.Je=function(){};
g.k.Ke=function(){};
g.k.Bi=function(){};
g.k.Ci=function(){};
g.k.yh=function(){};
g.k.zi=function(){};
g.k.Cg=function(){};
g.k.Nd=function(a,b){var c=this;if(this.u.has(b.layoutId)){var d=this.u.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={ko:e.ko},f=d.next())e.ko=f.value,f=new g.G(function(h){return function(){var l=c.kb.get(h.ko.triggerId);hQ(c.C(),[l])}}(e),e.ko.durationMs),f.start(),this.B.set(e.ko.triggerId,f)}};
g.k.Xd=function(){};g.u(ES,g.B);ES.prototype.init=function(){};
ES.prototype.release=function(){};
ES.prototype.aa=function(){this.si.get().removeListener(this);g.B.prototype.aa.call(this)};g.u(bsa,g.B);g.u(csa,g.B);g.u(dsa,g.B);g.u(esa,g.B);g.u(GS,LR);GS.prototype.startRendering=function(a){LR.prototype.startRendering.call(this,a);uI(this.layout.xa,"metadata_ad_video_is_listed")&&(a=uI(this.layout.xa,"metadata_type_ad_info_ad_metadata"),this.Am.get().J.va("onAdMetadataAvailable",a))};fsa.prototype.u=function(a,b,c,d){b=sra();b.Xe.push("metadata_type_ad_info_ad_metadata");if(DR(d,b))return new GS(a,c,d,this.Ob,this.oa,this.Da,this.td,this.Am);throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(gsa,g.B);hsa.prototype.u=function(a,b,c,d){if(a=MR(a,c,d,this.Ob,this.oa,this.Da,this.td))return a;throw new cQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+QP(d.xa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(isa,g.B);g.u(ksa,g.B);g.u(g.HS,g.P);g.k=g.HS.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.ke=function(){};
g.k.Dh=function(){return!0};
g.k.aa=function(){this.loaded&&this.unload();g.P.prototype.aa.call(this)};
g.k.qb=function(){return{}};
g.k.getOptions=function(){return[]};g.u(IS,g.HS);g.k=IS.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.HS.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.B.u.qe.Xf,b=this.F(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=nsa(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);VM(a)?(this.u=new PM(this,this.player,this.D,b,this.B.u.qe),WM(this.u,f.jl),Vqa(this.B.u.Aj,c,h,f.Cn,f.Cn.concat(f.jl),e,d),QM(this.u)):(Vqa(this.B.u.Aj,c,h,f.Cn,f.Cn.concat(f.jl),e,d),this.u=new PM(this,this.player,this.D,b,this.B.u.qe),WM(this.u,f.jl))};
g.k.destroy=function(){var a=this.player.getVideoData(1);Wqa(this.B.u.Aj,a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.HS.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.u){var a=this.u;this.u=null;a.dispose()}null!=this.C&&(a=this.C,this.C=null,a.dispose());this.D.reset()};
g.k.Dh=function(){return!1};
g.k.Ey=function(){return null===this.u?!1:this.u.Ey()};
g.k.yi=function(a){null!==this.u&&this.u.yi(a)};
g.k.getAdState=function(){return this.u?this.u.ka:-1};
g.k.getOptions=function(){return Object.values(WCa)};
g.k.ke=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=ZI(this.player);Object.assign(d,c.u);this.u&&!d.AD_CPN&&(d.AD_CPN=this.u.ra);c=g.on(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}};var JS,KS,LS,MS,NS;OS.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.C,d=0;d<b&&16>this.B;)a[d++]^=c[this.B++];for(var e=b-(b-d)%16;d<e;)psa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(psa(this),this.B=0;d<b;)a[d++]^=c[this.B++];return a};g.u(g.PS,g.B);g.k=g.PS.prototype;g.k.fu=function(){};
g.k.lm=ba(5);g.k.qt=function(){return this.C};
g.k.on=function(a){var b="";a&&(qsa(this,a),b=a.u);this.Ee()&&""==b||(b&&this.Ee()!=b&&this.ju(b),wAa||a&&a.B||this.load(),this.K||(this.addEventListener("volumechange",this.zA),this.K=!0))};
g.k.ot=function(){var a=this.Na();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new FB(a);a=new IB(a);this.on(a.wp);return a};
g.k.playVideo=function(){this.mi()&&this.seekTo(0);!this.Ee()&&this.C&&(M(Error("playVideo without src")),this.ju(this.C.u),this.C.B||this.load());var a=this.play();!a&&yAa&&jY&&7<=wG&&g.mp(this,"playing",(0,g.z)(function(){g.Go((0,g.z)(this.fB,this,this.getCurrentTime(),0),500)},this));
return a};
g.k.fB=function(a,b){this.Bk()||this.getCurrentTime()>a||10<b||(this.play(),g.Go((0,g.z)(this.fB,this,this.getCurrentTime(),b+1),500))};
g.k.seekTo=function(a){0<this.gg()&&(zAa&&jY&&4>wG&&(a=Math.max(.1,a)),this.iu(a))};
g.k.stopVideo=function(){this.Ee()&&(xAa&&jk&&0<this.getCurrentTime()&&this.seekTo(0),this.du(),this.load(),qsa(this,null))};
g.k.qb=function(){try{var a=this.qn();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Iy(this.Al(),",",3),vbu:Iy(this.nf()),vpa:""+ +this.Bk(),vsk:""+ +this.Ap(),ven:""+ +this.mi(),vpr:""+this.getPlaybackRate(),vrs:""+this.gg(),vns:""+this.Wr(),vec:""+this.oh(),vemsg:this.pn(),vvol:""+this.getVolume(),vdom:""+ +this.Qw(),vsrc:""+ +!!this.Ee(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.F.wa(a,b,!1,this);this.Rv(a)};
g.k.removeEventListener=function(a,b){this.F.Eb(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.F.dispatchEvent(a)};
g.k.Nv=function(){this.G=!1};
g.k.Lv=function(){this.G=!0;this.On(!0)};
g.k.zA=function(){this.G&&!this.Vr()&&this.On(!0)};
g.k.aa=function(){this.K&&this.removeEventListener("volumechange",this.zA);g.B.prototype.aa.call(this)};
var wAa=!1,xAa=!0,yAa=!0,zAa=!0;g.u(US,g.Ll);US.prototype.preventDefault=function(){g.Ll.prototype.preventDefault.call(this);this.B&&this.B.preventDefault()};
US.prototype.stopPropagation=function(){g.Ll.prototype.stopPropagation.call(this);this.B&&this.B.stopPropagation()};g.u(g.VS,g.PS);g.k=g.VS.prototype;g.k.Ak=function(){return!0};
g.k.isView=function(){return!1};
g.k.fu=function(){return!1};
g.k.Na=function(){return this.u};
g.k.Ee=function(){return this.u.src};
g.k.ju=function(a){var b=this.getPlaybackRate();this.u.src=a;this.setPlaybackRate(b)};
g.k.du=function(){this.u.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.u.playbackRate?this.u.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.u.playbackRate=a);return a};
g.k.yl=function(){return this.u.loop};
g.k.setLoop=function(a){this.u.loop=a};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.Bk=function(){return this.u.paused};
g.k.Ap=function(){return this.u.seeking};
g.k.mi=function(){return this.u.ended};
g.k.Vr=function(){return this.u.muted};
g.k.On=function(a){DB();this.u.muted=a};
g.k.Al=function(){return this.u.played||Hy([],[])};
g.k.nf=function(){try{var a=this.u.buffered}catch(b){}return a||Hy([],[])};
g.k.Yo=function(){return this.u.seekable||Hy([],[])};
g.k.getStartDate=function(){return this.u.getStartDate?this.u.getStartDate():null};
g.k.getCurrentTime=function(){return this.u.currentTime};
g.k.iu=function(a){this.u.currentTime=a};
g.k.getDuration=function(){return this.u.duration};
g.k.load=function(){var a=this.u.playbackRate;this.u.load&&this.u.load();this.u.playbackRate=a};
g.k.pause=function(){this.u.pause()};
g.k.play=function(){var a=this.u.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.gg=function(){return this.u.readyState};
g.k.Wr=function(){return this.u.networkState};
g.k.oh=function(){return this.u.error?this.u.error.code:null};
g.k.pn=function(){return this.u.error?this.u.error.message:""};
g.k.getVideoPlaybackQuality=function(){var a={};if(this.u){if(this.u.getVideoPlaybackQuality)return this.u.getVideoPlaybackQuality();this.u.webkitDecodedFrameCount&&(a.totalVideoFrames=this.u.webkitDecodedFrameCount,a.droppedVideoFrames=this.u.webkitDroppedFrameCount)}return a};
g.k.Rl=function(){return!!this.u.webkitCurrentPlaybackTargetIsWireless};
g.k.qx=function(){return!!this.u.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){BB()?this.u!=window.document.pictureInPictureElement?this.u.requestPictureInPicture():window.document.exitPictureInPicture():CB()&&this.u.webkitSetPresentationMode("picture-in-picture"==this.u.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.hk=function(){var a=this.u;return new g.fe(a.offsetLeft,a.offsetTop)};
g.k.setPosition=function(a){return g.wg(this.u,a)};
g.k.qn=function(){return g.Eg(this.u)};
g.k.setSize=function(a){return g.Dg(this.u,a)};
g.k.getVolume=function(){return this.u.volume};
g.k.setVolume=function(a){DB();this.u.volume=a};
g.k.Rv=function(a){if(!this.B[a]){var b=(0,g.z)(this.OJ,this);this.u.addEventListener(a,b);this.B[a]=b}};
g.k.OJ=function(a){this.dispatchEvent(new US(this,a.type,a))};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.ro=ba(7);g.k.zq=ba(9);g.k.lm=ba(4);g.k.Co=ba(11);g.k.No=function(){return ps(this.u)};
g.k.Zo=function(a){return g.sg(this.u,a)};
g.k.Qw=function(){return g.Me(document.body,this.u)};
g.k.aa=function(){for(var a in this.B)this.u.removeEventListener(a,this.B[a]);g.PS.prototype.aa.call(this)};g.u(g.WS,g.PS);g.k=g.WS.prototype;g.k.isView=function(){return!0};
g.k.fu=function(){var a=this.u.getCurrentTime();if(a<this.B)try{var b=this.u.nf(),c=Ly(b,a);return!(this.B<c)}catch(d){}return!1};
g.k.Al=function(){return Yy(this.u.Al(),this.B,this.D)};
g.k.nf=function(){return Yy(this.u.nf(),this.B,this.D)};
g.k.Yo=function(){return Yy(this.u.Yo(),this.B,this.D)};
g.k.getCurrentTime=function(){return this.u.getCurrentTime()-this.B};
g.k.iu=function(a){this.u.iu(a+this.B)};
g.k.getDuration=function(){return isFinite(this.D)&&!this.N?this.D-this.B:this.u.getDuration()-this.B};
g.k.play=function(){if(this.fu()){this.u.getCurrentTime();try{this.u.iu(this.B)}catch(a){}}return this.u.play()};
g.k.qb=function(){var a=g.PS.prototype.qb.call(this);a.view=this.B+"-"+this.D;return a};
g.k.addEventListener=function(a,b){this.u.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};
g.k.qt=function(){return this.u.qt()};
g.k.on=function(a){this.u.on(a)};
g.k.ot=function(){return this.u.ot()};
g.k.playVideo=function(){return this.u.playVideo()};
g.k.Nv=function(){this.u.Nv()};
g.k.Lv=function(){this.u.Lv()};
g.k.Ak=function(){return this.u.Ak()};
g.k.Na=function(){return this.u.Na()};
g.k.Ee=function(){return this.u.Ee()};
g.k.ju=function(a){this.u.ju(a)};
g.k.du=function(){this.u.du()};
g.k.getPlaybackRate=function(){return this.u.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.u.setPlaybackRate(a)};
g.k.yl=function(){return this.u.yl()};
g.k.setLoop=function(a){this.u.setLoop(a)};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.Bk=function(){return this.u.Bk()};
g.k.Ap=function(){return this.u.Ap()};
g.k.mi=function(){return this.u.mi()};
g.k.Vr=function(){return this.u.Vr()};
g.k.On=function(a){this.u.On(a)};
g.k.getStartDate=function(){return this.u.getStartDate()};
g.k.load=function(){this.u.load()};
g.k.pause=function(){this.u.pause()};
g.k.gg=function(){return this.u.gg()};
g.k.Wr=function(){return this.u.Wr()};
g.k.oh=function(){return this.u.oh()};
g.k.pn=function(){return this.u.pn()};
g.k.getVideoPlaybackQuality=function(){return this.u.getVideoPlaybackQuality()};
g.k.Rl=function(){return this.u.Rl()};
g.k.qx=function(){return this.u.qx()};
g.k.togglePictureInPicture=function(){this.u.togglePictureInPicture()};
g.k.hk=function(){return this.u.hk()};
g.k.setPosition=function(a){return this.u.setPosition(a)};
g.k.qn=function(){return this.u.qn()};
g.k.setSize=function(a){return this.u.setSize(a)};
g.k.getVolume=function(){return this.u.getVolume()};
g.k.setVolume=function(a){this.u.setVolume(a)};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.ro=ba(6);g.k.zq=ba(8);g.k.lm=ba(3);g.k.Co=ba(10);g.k.No=function(){return this.u.No()};
g.k.Zo=function(a){return this.u.Zo(a)};
g.k.Qw=function(){return this.u.Qw()};
g.k.stopVideo=function(){this.u.stopVideo()};
g.k.Rv=function(a){this.u.Rv(a)};Pa(XS);var E0=g.v.ytPlayerUtilsVideoTagPoolInstance||XS.getInstance();g.Ia("ytPlayerUtilsVideoTagPoolInstance",E0,void 0);g.k=XS.prototype;g.k.bB=function(a){if(!(this.u.length>=a)){a-=this.u.length;for(var b=0;b<a;b++)vsa(this)}};
g.k.II=function(a,b){if(this.u.length)return this.u.pop();var c=vsa(this,a,b);a||g.rb(this.u,c);return c};
g.k.hQ=function(a){a&&g.nb(this.B,a)&&(a.Bh(),np(a),g.rb(this.B,a),g.rb(this.C,a))};
g.k.pJ=function(a){return this.u.length>=(a||1)};
g.k.zH=function(){for(var a=this.C.length-1;0<=a;a--)YS(this,this.C[a]);this.u.length==this.B.length&&4<=this.u.length||(4>this.B.length?this.bB(4):(this.u=[],g.Fb(this.B,function(b){YS(this,b)},this)))};
XS.prototype.fillPool=XS.prototype.bB;XS.prototype.getTag=XS.prototype.II;XS.prototype.releaseTag=XS.prototype.hQ;XS.prototype.hasTags=XS.prototype.pJ;XS.prototype.activateTags=XS.prototype.zH;g.KT=db(function(){var a="";try{var b=g.Fe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});var Pr=new Nr,ZS=0;g.u(aT,g.P);g.u(bT,aT);bT.prototype.G=function(a,b){if(a&&b){var c=1*Number(Pd(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.u={}):(c>this.C&&(this.C=c,g.Wb(this.u)||(this.u={},this.D.stop(),this.B.stop())),this.u[b]=a,this.B.Hb())}};
bT.prototype.F=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())b=b.value,this.W("rotated_need_key_info_ready",new jy(Fsa(this.u[b],this.C,b),"fairplay",!0));this.u={}};var k2={},Nsa=(k2.DRM_TRACK_TYPE_AUDIO="AUDIO",k2.DRM_TRACK_TYPE_SD="SD",k2.DRM_TRACK_TYPE_HD="HD",k2.DRM_TRACK_TYPE_UHD1="UHD1",k2);g.u(Jsa,g.B);g.u(dT,g.P);g.k=dT.prototype;g.k.error=function(a,b,c,d){this.la()||this.W("licenseerror",a,b,c,d);b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.ea&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.aa=function(){g.P.prototype.aa.call(this)};
g.k.qb=function(){var a={requestedKeyIds:this.ba,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(a.keyStatuses=this.u);return a};
g.k.Be=function(){var a=this.G.join();if(eT(this)){var b=[],c;for(c in this.u)"usable"!==this.u[c].status&&b.push(this.u[c].type);a+="/UKS."+b}return a+="/"+this.cryptoPeriodIndex};
g.k.qd=function(){return this.url};
var l2={},dta=(l2.widevine="DRM_SYSTEM_WIDEVINE",l2.fairplay="DRM_SYSTEM_FAIRPLAY",l2.playready="DRM_SYSTEM_PLAYREADY",l2);g.u(gT,g.B);g.k=gT.prototype;g.k.YJ=function(a){if(this.F){var b=a.messageType||"license-request";this.F(new Uint8Array(a.message),b)}};
g.k.ZJ=function(){this.K&&this.K(this.u.keyStatuses)};
g.k.tE=function(a){this.F&&this.F(a.message,"license-request")};
g.k.sE=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.u}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.rE=function(){this.G&&this.G()};
g.k.update=function(a){var b=this;if(this.u)return this.u.update(a).then(null,Eo(function(c){lta(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.N.u,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.u,a,this.initData,this.sessionId);return Yr()};
g.k.aa=function(){this.u&&this.u.close();this.element=null;g.B.prototype.aa.call(this)};g.u(hT,g.B);g.k=hT.prototype;g.k.createSession=function(a,b){var c=a.initData;if(this.u.keySystemAccess){b&&b("createsession");var d=this.B.createSession();mD(this.u)&&(c=ota(c,this.u.Xg));b&&b("genreq");c=d.generateRequest(a.contentType,c);var e=new gT(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Eo(function(f){lta(e,"t.generateRequest",f)}));
return e}if(iD(this.u))return qta(this,c);if(lD(this.u))return pta(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.u.u,c):this.element.webkitGenerateKeyRequest(this.u.u,c);return this.D=new gT(this.element,this.u,c,null,null)};
g.k.cK=function(a){var b=jT(this,a);b&&b.tE(a)};
g.k.bK=function(a){var b=jT(this,a);b&&b.sE(a)};
g.k.aK=function(a){var b=jT(this,a);b&&b.rE(a)};
g.k.aa=function(){g.B.prototype.aa.call(this);delete this.element};g.u(kT,g.B);
kT.prototype.init=function(){return Ue(this,function b(){var c=this,d,e;return Aa(b,function(f){if(1==f.u)return g.F(c.u,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.u.src=c.C.D,document.body.appendChild(c.u),c.F.R(c.u,"encrypted",c.G),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],ra(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.B;c.C.keySystemAccess=
e;c.B=new hT(c.u,c.C);g.C(c,c.B);iT(c.B);f.u=0})})};
kT.prototype.G=function(a){if(!this.la()){var b=new Uint8Array(a.initData);a=new jy(b,a.initDataType);var c=Esa(b).replace("skd://","https://"),d={},e=this.B.createSession(a,function(){});
e&&(g.C(this,e),this.D.push(e),Qsa(e,function(f){jta(f,e.u,c,d,"fairplay")},function(){},function(){},function(){}))}};
kT.prototype.aa=function(){this.D=[];this.u&&this.u.parentNode&&this.u.parentNode.removeChild(this.u);g.B.prototype.aa.call(this)};g.u(lT,aT);lT.prototype.F=function(a){var b=(0,g.O)(),c;if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.C.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.u,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.u.push({time:b+c,info:a});this.B.Hb(c)};mT.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
mT.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
mT.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
mT.prototype.findIndex=function(a){return g.kb(this.keys,function(b){return g.Db(a,b)})};g.u(oT,g.P);g.k=oT.prototype;g.k.dK=function(a){nT(this,"onecpt");a.initData&&uta(this,new Uint8Array(a.initData),a.initDataType)};
g.k.aO=function(a){nT(this,"onndky");uta(this,a.initData,a.contentType)};
g.k.cA=function(a){this.D.push(a);qT(this)};
g.k.createSession=function(a){this.C.get(a.initData);this.Y=!0;var b=new dT(this.videoData,this.B,a,this.drmSessionId);this.C.set(a.initData,b);b.subscribe("ctmp",this.RD,this);b.subscribe("hdentitled",this.dE,this);b.subscribe("keystatuseschange",this.YC,this);b.subscribe("licenseerror",this.eE,this);b.subscribe("newlicense",this.mE,this);b.subscribe("newsession",this.oE,this);b.subscribe("sessionready",this.BE,this);b.subscribe("fairplay_next_need_key_info",this.aE,this);Tsa(b,this.F)};
g.k.mE=function(a){this.la()||(nT(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.W("heartbeatparams",a)))};
g.k.oE=function(){this.la()||(nT(this,"newlcssn"),this.D.shift(),this.Y=!1,qT(this))};
g.k.BE=function(){if(iD(this.u)&&(nT(this,"onsnrdy"),this.Aa--,0===this.Aa)){var a=this.X;a.element.msSetMediaKeys(a.C)}};
g.k.YC=function(a){this.la()||(!this.ka&&this.videoData.ca("html5_log_drm_metrics_on_key_statuses")&&(Ata(this),this.ka=!0),nT(this,"onksch"),yta(this,fta(a,this.da)),this.W("keystatuseschange",a))};
g.k.dE=function(){this.la()||this.ea||!kD(this.u)||(nT(this,"onhdet"),this.ra=zwa,this.W("hdproberequired"),this.W("qualitychange"))};
g.k.RD=function(a,b){this.la()||this.W("ctmp",a,b)};
g.k.aE=function(a,b){this.la()||this.W("fairplay_next_need_key_info",a,b)};
g.k.eE=function(a,b,c,d){this.la()||(this.videoData.ca("html5_log_drm_metrics_on_error")&&Ata(this),this.W("licenseerror",a,b,c,d))};
g.k.aa=function(){this.u.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.D=[];for(var a=g.q(this.C.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.RD,this),b.unsubscribe("hdentitled",this.dE,this),b.unsubscribe("keystatuseschange",this.YC,this),b.unsubscribe("licenseerror",this.eE,this),b.unsubscribe("newlicense",this.mE,this),b.unsubscribe("newsession",this.oE,this),b.unsubscribe("sessionready",this.BE,this),b.unsubscribe("fairplay_next_need_key_info",
this.aE,this),b.dispose();a=this.C;a.keys=[];a.values=[];g.P.prototype.aa.call(this)};
g.k.qb=function(){for(var a={systemInfo:this.u.qb(),sessions:[]},b=g.q(this.C.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qb());return a};
g.k.Be=function(){return 0>=this.C.values.length?"no session":this.C.values[0].Be()+(this.G?"/KR":"")};g.u(sT,g.P);
sT.prototype.handleError=function(a,b){var c=this;Eta(this,a);if(!Fta(this,a)&&!Ita(this,a,b))if(Gta(a)&&this.videoData.Ia&&this.videoData.Ia.B)tT(this,a.errorCode,a.details),wT(this,"highrepfallback","1",{Hy:!0}),!this.videoData.ca("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&wT(this,"afmts",btoa(this.videoData.adaptiveFormats),{Hy:!0}),Cma(this.videoData),this.W("highrepfallback");else if(a.u){var d=this.u?this.u.K.F:null;if(Gta(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";
else if(!this.Pa.G&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.W("playererror",a.errorCode,e,g.tB(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),tT(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(d="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.O)(),(new LD(d,"manifest",function(h){c.V=!0;wT(c,"pathprobe",h)},function(h){tT(c,h.errorCode,h.details)})).send())};
sT.prototype.aa=function(){this.B=this.u=null;g.P.prototype.aa.call(this)};g.u(yT,g.P);yT.prototype.setPlaybackRate=function(a){this.playbackRate=a};
yT.prototype.ca=function(a){return g.R(this.u.experiments,a)};g.u(zT,g.B);zT.prototype.Wb=function(a){cua(this);this.playerState=a.state;0<=this.B&&g.MJ(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
zT.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(XCa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
zT.prototype.send=function(){if(!(this.C||0>this.u)){cua(this);var a=g.AT(this.provider)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&
g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=aG(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=dua(this.provider);var e=0>this.B?a:this.B-this.u;a=this.provider.u.Ka+36E5<(0,g.O)();b={started:0<=this.B,stateAtSend:b,
joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.YF(this.provider.videoData),isGapless:this.provider.videoData.ri};!a&&this.provider.ca("html5_health_to_gel")&&g.Dq("html5PlayerHealthEvent",b);this.provider.ca("html5_health_to_qoe")&&(b.muted=a,this.G(g.tB(b)));this.C=!0;
this.dispose()}};
zT.prototype.aa=function(){this.C||this.send();g.B.prototype.aa.call(this)};
var XCa=/\bnet\b/;g.u(ET,g.B);g.k=ET.prototype;g.k.cJ=function(){var a=g.AT(this.provider);GT(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.la()&&(a=0<=a?a:g.AT(this.provider),-1<["PL","B","S"].indexOf(this.Bc)&&(!g.Wb(this.u)||a>=this.C+30)&&(g.DT(this,a,"vps",[this.Bc]),this.C=a),!g.Wb(this.u)))if(7E3===this.sequenceNumber&&g.Gr(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.u={};else{HT(this,a);var b=a,c=this.provider.G(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.za,h=e&&!this.Qa;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.DT(this,b,"df",[f]);this.za=d;this.Qa=e;!g.R(this.provider.u.experiments,"disable_webgl_reporting")&&0<this.G&&(g.DT(this,a,"glf",[this.G]),this.G=0);a={event:"streamingstats"};this.provider.videoData.Ma&&(a.fmt=Wu(this.provider.videoData.Ma),(b=this.provider.videoData.Tc)&&Wu(b)!==a.fmt&&(a.afmt=Wu(b)));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.K&&(a.addocid=this.K);a.ei=this.provider.videoData.eventId;
a.el=mG(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=nG(this.provider.videoData);a.ns=this.provider.u.X;a.fexp=this.provider.u.experiments.experimentIds.toString();a.cl=(341488979).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=aG(this.provider.videoData))&&(a.live=b);VF(this.provider.videoData)&&(a.drm=1);cq()&&this.provider.videoData.Nh&&(a.ctt=this.provider.videoData.Nh,a.cttype=this.provider.videoData.pg,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.bc(a,this.provider.u.deviceParams);b=g.Jd("//"+this.provider.u.Qi+"/api/stats/qoe",a);a=c="";d=g.q(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.Gr(new Sq("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?a+=e:c+=e);b+=c;a=a.replace(/ /g,"%20");e=this.provider.videoData.Ze();c=g.R(this.provider.u.experiments,"qoe_with_networkless");d=
g.R(this.provider.u.experiments,"qoe_send_then_write");f=this.provider.ca("web_player_vss_pageid_header")?this.provider.u.pageId:void 0;(e=BT(b,f,this.provider.u.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,CT(b,e,{token:this.provider.videoData.Nh,Ry:this.provider.videoData.pg,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,c,d)):c?d?Dr(b):Cr(b):Dt(b,void 0,a);this.u={}}};
g.k.JF=function(){if(this.provider.videoData.Yc){var a=this.provider.videoData.Yc;JT(this,"drm-"+a.flavor);JT(this,"eme-"+(a.keySystemAccess?"final":iD(a)?"ms":mD(a)?"ytfp":lD(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.AT(this.provider);iua(this,c,a,b);HT(this,c);IT(this)};
g.k.Wb=function(a){var b=a.state,c=g.AT(this.provider);a=this.getPlayerState(a.state);if(a!==this.Bc){if(!(c<this.C)){if("PL"===this.Bc)this.playTimeSecs+=c-this.C;else if("B"===this.Bc&&this.V){this.V=!1;var d=g.Q(this.provider.u.experiments,"html5_disable_last_state_change")?this.C:this.ha;this.rebufferTimeSecs+=c-d;!this.ea&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.K(),this.u.qoealert=["1"],this.ea=!0)}"B"!==a||"PL"!==this.Bc&&"PB"!==this.Bc||(this.V=!0);this.C=c}"B"===
a&&"PL"===this.Bc||this.provider.videoData.Ej?HT(this,c):GT(this,c);"PL"===a&&this.eb.Hb();g.DT(this,c,"vps",[a]);this.Bc=a;this.C=this.ha=c;this.P=!0}a=b.getData();g.U(b,128)&&a&&iua(this,c,a.errorCode,a.pF);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Kb()&&!this.D&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.D=!0);IT(this)};
g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";var b=YCa[OL(a)];g.zC(this.provider.u)&&"B"===b&&3===this.provider.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
g.k.aa=function(){g.B.prototype.aa.call(this);window.clearInterval(this.ra)};
var kua=g.Oa,m2={},YCa=(m2[5]="N",m2[-1]="N",m2[3]="B",m2[0]="EN",m2[2]="PA",m2[1]="PL",m2);mua.prototype.update=function(){if(this.K){var a=this.provider.B()||0,b=g.AT(this.provider);if(a!==this.u||rua(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||rua(this,a,b))){var d=this.provider.De();c=d.volume;var e=c!==this.P;d=d.muted;d!==this.N?(this.N=d,c=!0):(!e||0<=this.D||(this.P=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(MT(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};NT.prototype.send=function(a){if(!this.za){var b=QT(this);b=g.Jd(this.uri,b);if(this.ea)this.V&&(a=OT(this)||{},a.method="POST",a.fc={atr:this.V},this.N?this.P?Dr(b,a):Cr(b,a):g.pq(b,a));else{var c=OT(this,a);CT(b,c,{token:this.G,Ry:this.Y,mdxEnvironment:this.mdxEnvironment},a,this.N,this.P)}this.za=!0}};
NT.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var n2={},tua=(n2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,n2.LIVING_ROOM_APP_MODE_MAIN=1,n2.LIVING_ROOM_APP_MODE_KIDS=2,n2.LIVING_ROOM_APP_MODE_MUSIC=3,n2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,n2.LIVING_ROOM_APP_MODE_GAMING=5,n2);var wua={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},xua={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},vua={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},uua={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var zua=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));g.u(VT,g.B);VT.prototype.Yd=function(){this.u.update();if(this.provider.videoData.Fc()&&this.provider.videoData.Ug&&this.C&&!this.X&&nua(this.u)>=this.provider.videoData.Ug){if(this.C&&this.provider.videoData.Ug){var a=WT(this,"delayplay");a.eb=!0;a.send();this.X=!0}Dua(this)}};
VT.prototype.Wb=function(a){this.la()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.MJ(a,2)&&this.C&&aU(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&XT(this,!1)):this.currentPlayerState="paused",this.D&&g.U(a.state,128)&&($T(this,"error-100"),g.Io(this.D)))};
VT.prototype.aa=function(){g.B.prototype.aa.call(this);g.Io(this.B);this.B=NaN;pua(this.u);g.Io(this.D)};
VT.prototype.qb=function(){return QT(WT(this,"playback"))};g.u(bU,g.B);bU.prototype.Wb=function(a){if(g.MJ(a,1024)||g.MJ(a,2048)||g.MJ(a,512)||g.MJ(a,4)){if(this.B){var b=this.B;0<=b.B||(b.u=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.D||(b.B=-1))}this.provider.videoData.enableServerStitchedDai?this.currentVideoId&&(b=this.C.get(this.currentVideoId))&&b.Wb(a):this.u&&this.u.Wb(a);this.qoe&&this.qoe.Wb(a);this.B&&this.B.Wb(a)};
bU.prototype.Yd=function(){this.u&&this.u.Yd()};
bU.prototype.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
bU.prototype.qb=function(){if(this.provider.videoData.enableServerStitchedDai){if(this.currentVideoId){var a=this.C.get(this.currentVideoId);if(a)return a.qb()}}else if(this.u)return this.u.qb();return{}};dU.prototype.reset=function(){$A(this.timerName)};
dU.prototype.tick=function(a,b){cB(a,b,this.timerName)};
dU.prototype.info=function(a,b){bB(a,b,this.timerName)};Qua.prototype.isEmpty=function(){return this.endTime===this.startTime};Rua.prototype.ca=function(a){return g.R(this.u.experiments,a)};
var Sua={other:1,none:2,wifi:3,cellular:7};Uua.prototype.xc=function(){return this.Ia.xc()};g.u(Xua,g.P);g.u(mU,g.B);mU.prototype.Wb=function(a){this.playerState=a.state};
mU.prototype.Y=function(){var a=this;if(this.C&&!this.playerState.isError()){var b=this.C,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.u,e=Nna(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();nU(this,this.da,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.u)&&0<this.u&&rsa(b,this.u);var h=!c||10<Math.abs(c-this.u);nU(this,this.ha,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.u)},"set_cmt");
h=e&&Ky(b.nf(),this.u);var l=!this.B||!this.B.u.ea;e=function(){b.seekTo(a.u+.001)};
nU(this,this.ba,h&&l&&!f,d,"qoe.slowseek",e,"jiggle_cmt");l=function(){return a.W("newmediaelementrequired")};
nU(this,this.ea,h&&!f,d,"qoe.slowseek",l,"new_elem");d=ML(this.playerState);h=g.NL(this.playerState);var m=d&&h&&Ky(b.nf(),c+5);nU(this,this.N,m&&!f,d&&!h,"qoe.longrebuffer",e,"jiggle_cmt");nU(this,this.P,m&&!f,d&&!h,"qoe.longrebuffer",l,"new_elem_nnr");if(this.B){var n=this.B.getCurrentTime();e=b.Al();e=sga(e,n);c=!this.B.N.C&&c===e;nU(this,this.ka,d&&h&&c&&!f,d&&!h&&!c,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}nU(this,this.V,d&&h&&!f,d&&!h,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.X()&&!f;nU(this,this.K,f,!f,"qoe.start15s",function(){return a.W("releaseadsprerolllock")},"ads_preroll_timeout");
this.F.start()}};
mU.prototype.qb=function(a){a=a.qb();this.u&&(a.stt=this.u.toFixed(3));this.B&&Object.assign(a,this.B.qb());this.C&&Object.assign(a,this.C.qb());return a};
kU.prototype.reset=function(){this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
kU.prototype.qb=function(){var a={},b=(0,g.O)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.u&&(a.wssd=(b-this.u).toFixed());return a};g.u(pU,g.P);g.k=pU.prototype;g.k.Ch=function(a){qU(this);this.videoData=a;this.V=this.B=null;this.K=this.Qa=this.D=0;this.ra=!0;this.P.dispose();a=this.P=new mU(this.X,(0,g.z)(this.W,this),this.visibility,this.eb);var b=this.u;(a.C=b)&&a.F.Hb();this.P.B=this.F};
g.k.Wb=function(a){this.P.Wb(a);this.ca("html5_exponential_memory_for_sticky")&&(a.state.Kb()?this.ea.Hb():this.ea.stop());var b;if(b=this.u)b=8===a.zj.state&&ML(a.state)&&g.NL(a.state)&&this.policy.D;if(b){a=this.u.getCurrentTime();b=this.u.nf();var c=this.ca("manifestless_post_live_ufph")||this.ca("manifestless_post_live")?Jy(b,Math.max(a-3.5,0)):Jy(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Ra-c)||(this.W("ctmp","seekover","b."+Iy(b,
"_")+";cmt."+a),this.Ra=c,this.seekTo(c,{jp:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.C)&&isFinite(this.C)?this.C:this.u&&jva(this)?this.u.getCurrentTime()+this.D:this.K||0};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return jU(this.B,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.lG?!1:c.lG,e=void 0===c.mG?0:c.mG,f=void 0===c.jp?!1:c.jp;c=void 0===c.Sy?0:c.Sy;var h=a,l=!isFinite(h)||(this.B?jU(this.B,h):h>=this.Dd())||!g.gG(this.videoData);l||this.W("ctmp","seeknotallowed",h+";"+this.Dd());if(!l)return this.G&&(this.G=null,hva(this)),Dm(this.getCurrentTime());if(a===this.C&&this.ba)return this.N;this.ba&&qU(this);this.N||(this.N=new $w);a&&!isFinite(a)&&sU(this,!1);h=a;(xU(this)&&!(this.u&&0<this.u.gg()&&0<QS(this.u))||
NF(this.videoData)&&this.wc()===this.Dd(!1)?0:isFinite(h)||!NF(this.videoData))&&(a=iva(this,a,f));a&&!isFinite(a)&&sU(this,!1);this.K=a;this.Ka=c;this.C=a;this.B&&(f=this.B,c=a,Zua(f,c,!1),$ua(f,c));this.W("seekto",a,!d);this.N&&(d?e&&this.Aa.start(e):(this.ba=!0,dva(this)));return this.N};
g.k.Dd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Dd();if(NF(this.videoData)&&this.videoData.np&&this.videoData.ma)return this.videoData.ma.Dd();if(this.xc()){if(!a&&this.B)return iU(this.B);a=this.videoData.Dd();this.policy.B&&this.u&&(a=Math.max(a,tsa(this.u)));return a+this.D}this.u?bk()?(a=this.u.getStartDate().getTime(),a=isNaN(a)?0:Math.max((g.A()-a)/1E3-30,0)):a=QS(this.u)+this.D||this.D:a=this.D;return a};
g.k.wc=function(){return this.videoData?this.videoData.wc()+this.D:this.D};
g.k.aa=function(){tU(this,null);this.P.dispose();g.P.prototype.aa.call(this)};
g.k.xc=function(){return!!this.videoData.Ia&&this.videoData.Ia.xc()};
g.k.uQ=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.pc(),{jp:b})};
g.k.qb=function(){var a={};this.F&&Object.assign(a,this.F.qb());this.u&&Object.assign(a,this.u.qb());return a};
g.k.Qn=function(a){this.D=a};
g.k.XK=function(a){this.Qa=a};
g.k.getStreamTimeOffset=function(){return NF(this.videoData)?this.Qa:this.videoData.ma?this.videoData.ma.getStreamTimeOffset():0};
g.k.pc=function(){return this.D};
g.k.Ce=function(a){return this.videoData.ma.Ce(a-this.D)};
g.k.FN=function(a){this.V&&(this.V.u=a.audio.index)};
g.k.ca=function(a){return this.X&&g.R(this.X.experiments,a)};g.u(yU,g.P);g.k=yU.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:lva()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Dg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Dg())};
g.k.setImmersivePreview=function(a){this.C!==a&&(this.C=a,this.Dg())};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return lva()};
g.k.Dg=function(){this.W("visibilitychange");var a=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C);a!==this.F&&this.W("visibilitystatechange");this.F=a};
g.k.aa=function(){ova(this.D);g.P.prototype.aa.call(this)};g.u(zU,g.B);zU.prototype.start=function(){this.B.start()};
zU.prototype.stop=function(){this.B.stop()};
zU.prototype.clear=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())this.u[b.value].clear()};
zU.prototype.D=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b].update(this.C[b]());this.B.start()};
AU.prototype.update=function(a){this.B?(this.buffer.add(a-this.u||0),this.u=a):this.buffer.add(a)};
AU.prototype.clear=function(){this.buffer.clear();this.u=0};var ZCa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},$Ca={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},aDa=/^(\d*)_((\d*)_?(\d*))$/;EU.prototype.isFinished=function(){return this.u};
EU.prototype.start=function(){this.started=!0};
EU.prototype.reset=function(){this.u=this.started=!1};var o2={},wva=(o2.WEB_UNPLUGGED="^unplugged/",o2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",o2.WEB_UNPLUGGED_OPS="^unplugged/",o2.WEB_UNPLUGGED_PUBLIC="^unplugged/",o2.WEB_CREATOR="^creator/",o2.WEB_KIDS="^kids/",o2.WEB_EXPERIMENTS="^experiments/",o2.WEB_MUSIC="^music/",o2.WEB_REMIX="^music/",o2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",o2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",o2);g.u(JU,IU);JU.prototype.B=function(){return sCa};
JU.prototype.C=function(a){return a.subscribeEndpoint};
JU.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};g.u(KU,IU);KU.prototype.B=function(){return tCa};
KU.prototype.C=function(a){return a.unsubscribeEndpoint};
KU.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.u(LU,IU);LU.prototype.B=function(){return qCa};
LU.prototype.C=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
LU.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(MU,IU);MU.prototype.B=function(){return rCa};
MU.prototype.C=function(a){return a.playlistEditEndpoint};
MU.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};NU.prototype.fetch=function(a,b){var c;if(null===(c=this.u)||void 0===c?0:c.B(a,b))return Dm(this.u.u(a,b)["catch"](function(e){g.Gr(e)}));
var d=new Request(a,b);return Dm(fetch(d).then(function(e){return zva(e)})["catch"](function(e){g.Gr(e)}))};var OU;var lV;g.u(QU,zq);QU.prototype.u=function(a,b){return Object.assign(Object.assign({},zq.prototype.u.call(this,a,b)),this.B)};RU.prototype.reset=function(){Cva(this);this.update(this.C)};
RU.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.G.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,Bva(this,this.G,0));for(;b+64<=c;b+=64)Bva(this,a,b);b<c&&(a=a.subarray(b),this.G.set(a,this.B),this.B+=a.length)};
var Ava=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];TU.prototype.encrypt=function(a){return Ue(this,function c(){var d=this,e;return Aa(c,function(f){if(1==f.u)return ra(f,Gva(d.u.u,a,d.iv),2);e=f.B;return f["return"](e)})})};
TU.prototype.decrypt=function(a,b){return Ue(this,function d(){var e=this,f;return Aa(d,function(h){if(1==h.u)return ra(h,Gva(e.u.u,a,b),2);f=h.B;return h["return"](f)})})};var p2={},Kva=(p2.f="video",p2["1"]="video",p2.h="video",p2.H="video",p2["9"]="video",p2["("]="video",p2["9h"]="video",p2["(h"]="video",p2.o="audio",p2.O="audio",p2.a="audio",p2.ah="audio",p2.A="audio",p2.m="audio",p2.M="audio",p2.mac3="audio",p2.MAC3="audio",p2.meac3="audio",p2.MEAC3="audio",p2.so="audio",p2.sa="audio",p2["8"]="unknown",p2["*"]="unknown",p2.w="unknown",p2["3"]="unknown",p2["6"]="unknown",p2[""]="unknown",p2);Pva.prototype.decrypt=function(a){return Ue(this,function c(){var d=this,e,f,h,l;return Aa(c,function(m){switch(m.u){case 1:if(d.u.length&&!d.u[0].isEncrypted)return m["return"]();d.B=!0;e=new Uint8Array(16);return ra(m,Rva(a),2);case 2:f=m.B;case 3:if(!d.u.length||!d.u[0].isEncrypted){m.Kd(4);break}h=d.u.shift();return ra(m,f(h.buffer,e),5);case 5:l=m.B;for(var n=0;n<e.length;n++)if(255===e[n])e[n]=0;else{e[n]+=1;break}d.C(h.streamId,l);m.Kd(3);break;case 4:Qva(d),d.B=!1,m.u=0}})})};g.u($U,g.P);
$U.prototype.feed=function(a,b){b.getLength();g.Ua(this);switch(a){case 10:var c=XU(new UU(b),1);switch(c){case 5:this.W("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new Jva(b)).u.iv;g.Ua(this);break;case 16:var d=new Ova(b),e=d.B,f=d.C;this.W("STREAM_STARTED",{id:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.u,isAudio:this.C[f]});g.Ua(this);break;default:g.Ua(this)}this.B=c;break;case 11:switch(this.B){case 0:Tva(this,b);break;case 2:c=fv(b);this.queue.decrypt(c);g.Ua(this);break;
default:g.Ua(this)}this.B=null;break;case 20:c=new Lva(b);d=c.B;e=c.isAudio;this.u[c.u]=d;this.C[d]=e;g.Ua(this);break;case 21:Sva(this,b,!1);break;case 12:Sva(this,b,!0);break;case 22:c=hv(b,0);c=this.u[c]||null;g.Ua(this);c&&this.W("STREAM_ENDED",{id:c});break;default:g.Ua(this)}};Uva.prototype.qm=function(){var a=new aV;dV(a,2,this.encryptedOnesiePlayerRequest);dV(a,5,this.encryptedClientKey);dV(a,6,this.iv);dV(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;cV(a,80);cV(a,b);return fV(a)};gV.prototype.qm=function(){var a=new aV;eV(a,1,this.name);eV(a,2,this.value);return fV(a)};Vva.prototype.qm=function(){var a=new aV;eV(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())dV(a,2,c.value.qm());eV(a,3,this.postBody);return fV(a)};Wva.prototype.qm=function(){var a=new aV;dV(a,3,this.Pv.qm());return fV(a)};Yva.prototype.feed=function(a){av(this.u,a);Zva(this)};hV.prototype.fetch=function(){return Ue(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,w,x,y;return Aa(b,function(D){switch(D.u){case 1:return d=c,c.D.start(),c.u.tick("ogpd"),sa(D,2),ra(D,dwa(c),4);case 4:e=D.B;ta(D,3);break;case 2:return f=ua(D),f instanceof sB?iV(c,f):(h=new sB("onesie.request",!1),iV(c,h)),D["return"](c.B);case 3:c.u.tick("osor");l=wv(c.videoData.T());m=e.qm();g.ak()&&(m=new Uint8Array(m.buffer.slice(0,m.length)));n={method:"POST",body:m,headers:{"Content-Type":"text/plain"}};
p=function(){bwa(d)};
r=function(){bwa(d);var E,H=d.xhr;H.Sl()?E=new sB("onesie.net",!1,{msg:H.Sl()}):400<=H.status?E=new sB("onesie.net.badstatus",!1):H.us()?d.F||(E=new sB("onesie.response.noplayerresponse",!1)):E=new sB(204===H.status?"onesie.net.nocontent":"onesie.net.connect",!1);E?iV(d,E):d.u.tick("orf")};
t=g.Oa;w=$va(c.videoData);if(!w)return x={url:"0"},y=new sB("onesie.unavailable.hotconfig",!1,x),iV(c,y),D["return"](c.B);c.u.tick("ocs");c.xhr=new zx(w,p,r,t,l,n);return D["return"](c.B)}})})};
hV.prototype.G=function(){iV(this,new sB("onesie.request",!1,{timeout:"1"}))};g.u(oV,g.P);g.k=oV.prototype;g.k.aa=function(){this.AF();this.Ve.stop();window.clearInterval(this.de);ova(this.md);this.ba.unsubscribe("visibilitystatechange",this.md);tV(this);qV(this);g.up(this.Ka);uW(this);delete this.X;g.eg(this.u);g.eg(this.N);this.ra=null;this.eb=!1;this.Tb=0;g.P.prototype.aa.call(this)};
g.k.Ch=function(a,b,c){c=void 0===c?!0:c;this.ha.length=0;this.tb=null;this.ka.reset();this.Aa.reset();this.Dc=!1;this.Qi=0;this.Cf=!0;this.Pc=null;this.B&&this.B.stopVideo();rV(this);tV(this);qV(this);g.up(this.Ka);this.za.clear();g.eg(this.u);g.eg(this.N);if(2==this.Mb||this.F.Uq)a.mC=!0;var d=this.F.B;var e=this.F.C,f;(f=a.Yp)||(f=(f=a.jz)&&ZCa.hasOwnProperty(f)&&$Ca.hasOwnProperty(f)?$Ca[f]+"_"+ZCa[f]:void 0);if(f){var h=f.match(aDa);if(h&&5===h.length){if(h=f.match(aDa)){var l=Number(h[3]),m=
[7,8,10,5,6];h=!(1===Number(h[1])&&8===l)&&0<=m.indexOf(l)}else h=!1;d=d||e||h?f:null}else d=null}else d=null;d&&(a.adFormat=d);2==this.Mb&&(a.Fk=!0);if(this.ba.isFullscreen()||this.F.B)d=g.xt("yt-player-autonavstate"),a.autonavState=d||(this.F.B?2:this.u.autonavState);this.Bf=c;this.u=a;this.u.subscribe("dataupdated",this.yP,this);this.u.subscribe("dataloaded",this.Bv,this);this.u.subscribe("dataloaderror",this.handleError,this);this.u.subscribe("ctmp",this.jb,this);uwa(this,a);owa(this,b);pwa(this);
this.eb=!1;this.Tb=0;kW(this,"newdata");mW(this,new g.FL);this.K.Ch(this.u);eG(a)&&(a=this.u.errorDetail,b=this.u.Ko,this.re("auth",unescape(b.reason),a,a,b.subreason||void 0));1==this.Mb&&this.Ve.start()};
g.k.getVideoData=function(){return this.u};
g.k.T=function(){return this.F};
g.k.Bv=function(){if(this.u.Fc()){var a=this.N;0<g.Q(a.Pa.experiments,"html5_player_min_build_cl")&&341488979<g.Q(a.Pa.experiments,"html5_player_min_build_cl")&&Hta(a,"oldplayer");wwa(this)}else this.u.al||this.u.pp?this.Qa&&g.zC(this.F)&&this.u.isLivePlayback||(this.u.al?vma(this.u):(a=this.G,a.qoe&&(a=a.qoe,JT(a,"protected"),a.provider.videoData.Yc?a.JF():a.provider.videoData.subscribe("dataloaded",a.JF,a)),tma(this.u))):!this.u.wd&&this.Bf&&swa(this)};
g.k.kO=function(a){var b=this;if(!this.la()&&!a.videoData.la()&&(this.X=a,eva(this.K,this.X),!this.u.isLivePlayback||0<this.u.qk&&!NF(this.u)||(this.seekTo(DW(this)),pW(this,"playbackData")),this.u.Ia.xc()&&(!g.R(this.F.experiments,"hoffle_save")&&!g.R(this.F.experiments,"hoffle_cfl_lock_format")||!this.F.C||this.u.lengthSeconds>g.Q(this.F.experiments,"hoffle_max_video_duration_secs")||0!==this.u.startSeconds||!this.u.offlineable||!this.u.ma||this.u.ma.isOtf||this.u.ma.isLive||this.u.ma.tf||Ow(this.u.videoId)||
(g.R(this.F.experiments,"hoffle_cfl_lock_format")?(this.jb("dlac","cfl"),this.u.BC=!0):(TF(this.u,!0),wma(this.u,new iE(this.u.videoId,2,{En:!0,Ds:!0,videoDuration:this.u.lengthSeconds})),this.jb("dlac","w"))),this.D?g.Gr(Error("Duplicated Loader")):Cwa(this)),AW(this),BW(this,"html5_nonblocking_media_capabilities"))){var c=Date.now();(a=Sta(this.da,a))&&a.then(function(){b.jb("mclatency",(Date.now()-c).toString())})}};
g.k.lO=function(a){this.la()||(a=uB(a),this.ba.isBackground()?(IW(this,"vp_none_avail"),this.tb=null,this.ka.reset()):(this.ka.u=!0,this.re(a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.tB(a.details))))};
g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.W("internalAbandon"),this.ty(!0),tV(this),g.up(this.Ka))};
g.k.re=function(a,b,c,d,e){var f,h;g.Tb(TCa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+parseInt(g.L("DCLKSTAT",0),10));a={errorCode:a,errorDetail:d,errorMessage:h||g.XX[f]||"",Tv:f,ai:e||"",pF:c};kW(this,"dataloaderror");mW(this,GL(this.C,128,a));g.up(this.Ka);qV(this);this.Bh()};
g.k.getPlayerState=function(){return this.C};
g.k.getPlayerType=function(){return this.Mb};
g.k.getPreferredQuality=function(){if(this.X){var a=this.X;a=a.videoData.Cu.compose(a.videoData.mA);a=cD(a)}else a="auto";return a};
g.k.isGapless=function(){return!!this.B&&this.B.isView()};
g.k.playVideo=function(){var a=this,b,c,d,e;return Ba(new za(new va(function(f){if(1==f.u){var h;(h=g.U(a.C,128))||(h=a.N,h.G?(h.G=!1,uT(h),h=!0):h=!1);if(h)return f["return"]();a.B&&(h=a.G,h.B&&bua(h.B),h.qoe&&jua(h.qoe));nW(a);g.U(a.C,64)&&mW(a,HL(a.C,8));return a.Aa.isFinished()&&a.B?a.X||!a.tb?f.Kd(2):ra(f,a.tb,2):f["return"]()}if(!a.u.Ia)return b=a.u.isLivePlayback&&!g.UB(a.F.D,!0)?"html5.unsupportedlive":VF(a.u)?"fmt.unplayable":"fmt.noneavailable",g.Gr(Error("selectableFormats")),a.re(b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1"),f["return"]();if(a.ba.B&&a.u.Ia.xc())return wV(a),f["return"]();if(a.u.isLivePlayback){c=a.getCurrentTime()<a.wc()-15;d=g.gG(a.u)&&g.U(a.C,4);e=!BW(a,"html5_dompaused_unpause_killswitch")&&g.U(a.C,1024);e||!c&&!d||(d?(a.seekTo(Infinity),pW(a,"unpauseLiveOnly")):(a.seekTo(a.wc()),pW(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&wU(a.K)&&(a.seekTo(Infinity),pW(a,"peggedToLive"));if(h=g.U(a.C,256)&&a.u.vg)h=a.K,h=h.ba&&!isFinite(h.C);if(h)return mW(a,JL(a.C,8,4)),f["return"]()}g.U(a.C,
4)&&g.U(a.C,16)&&mW(a,JL(a.C,9,4));if(xV(a))return!BW(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.B&&a.B.Rl()&&(a.zd=(0,g.O)()),a.F.zs?g.Go((0,g.z)(a.Vx,a),0):a.Vx(),f["return"]();a.Vx();f.u=0})))};
g.k.yH=function(){var a=this.u;a.ma.dispose();a.ma=void 0;LF(a,a.adaptiveFormats);pV(this,!0);this.W("localmediachange",new iE(this.u.videoId,4,{En:!0}))};
g.k.oQ=function(){wW(this);var a=this.u.ma&&jA(this.u.ma),b=this.B&&this.B.isView();a||b?(this.D&&(a=this.D,a.u.ea=!1,a.C&&HE(a)),pV(this)):(mW(this,HL(this.C,16)),xV(this),g.LL(this.C)&&this.playVideo())};
g.k.oN=function(){rV(this);qV(this);FW(this);this.playVideo()};
g.k.ul=function(){if(!this.X)return[];var a=Nta(this.da,this.X,yW(this,!0));return this.X.Ia.ul(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.u.Ia&&!this.u.Ia.xc()?cD(this.u.Cu):Lx()};
g.k.getAvailableAudioTracks=function(){return this.u.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.u.getAudioTrack()};
g.k.CP=function(){var a=this.G;a.provider.u.dc||3===a.provider.getVisibilityState()||(a.provider.u.dc=!0);g.cU(a);if(a.B){var b=a.B;b.F&&0>b.u&&3!==b.provider.getVisibilityState()&&bua(b)}a.qoe&&(a=a.qoe,a.ka&&0>a.B&&a.provider.u.dc&&jua(a));g.Q(this.F.experiments,"html5_background_quality_cap")&&this.D&&nV(this);this.F.no&&!this.u.backgroundable&&this.B&&!this.ba.B&&(this.ba.isBackground()&&this.B.qt()?(this.jb("bgmobile","suspend"),this.Bh(!0)):this.ba.isBackground()||xV(this)&&this.jb("bgmobile",
"resume"))};
g.k.bO=function(a,b){this.nE(new jy(b,a))};
g.k.nE=function(a){this.Bb.set(a.initData,a);this.P&&(vta(this.P,a),BW(this,"html5_eme_loader_sync")||this.Bb.remove(a.initData))};
g.k.hE=function(){g.or&&this.Ga&&this.Ga.u&&this.P&&(xta(this.P,this.Ga.u),this.Ga=null)};
g.k.vP=function(a){this.u.zG=aD("auto",a,!1,"u");nV(this)};
g.k.GN=function(a){var b=this;rW(this,a.reason,a.video.info,a.audio.info);BW(this,"html5_probe_media_capabilities")&&BW(this,"html5_dynamic_av1_hybrid_threshold")&&a.video.info&&ww(a.video.info)&&Tta(this.da,this.X).then(function(c){c&&b.D&&ID(b.D.K,b.F)})};
g.k.EN=function(a){xwa(this,a.reason,a.audio.info)};
g.k.HN=function(a){this.W("localmediachange",a)};
g.k.FM=function(){this.D&&ID(this.D.K,this.F)};
g.k.handleError=function(a){this.N.handleError(a,g.U(this.C,4)||g.U(this.C,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.C,64)||g.U(this.C,2))&&!a)if(g.U(this.C,8))mW(this,JL(this.C,4,8));else return;g.U(this.C,128)||(a?mW(this,HL(this.C,256)):mW(this,JL(this.C,4,8)));this.B&&this.B.pause();g.gG(this.u)&&this.D&&xW(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.D&&(xW(this,!1),pE(this.D))};
g.k.Bh=function(a){a=void 0===a?!1:a;this.B&&(this.B.stopVideo(),rV(this),qV(this),g.U(this.C,128)||(a?mW(this,IL(IL(HL(this.C,4),8),16)):mW(this,GL(this.C))),this.u.videoId&&this.F.K.remove(this.u.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.U(this.C,2)&&xV(this);if(this.dc){var c=this.dc;isFinite(a)&&a<vU(c.u.K)?c.isLiveNow=!1:c.isLiveNow=!0}this.K.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.K.getCurrentTime()};
g.k.getPlaylistSequenceForTime=function(a){return this.u.getPlaylistSequenceForTime(a-this.pc())};
g.k.Ce=function(){if(this.u.ma)return this.u.ma.Ce(this.getCurrentTime()-this.pc());if((!BW(this,"html5_disable_limit_ingestion_tvos")||bk())&&this.B){var a=this.B.getStartDate();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.u.lengthSeconds?this.u.lengthSeconds+this.pc():DW(this)?DW(this):0};
g.k.GI=function(){var a=new Pha;if(this.D){var b=this.F.schedule;a.B=b.K;a.D=b.X;a.bandwidthEstimate=Iz(b);a.u="d."+Gz(b).toFixed(2)+";st."+(1E9*(b.C.u()||0)).toFixed(2)+";bw."+b.u.u().toFixed(0)+";abw."+b.N.u().toFixed(0)+";v50."+Ez(b.D,.5).toFixed(2)+";v92."+Ez(b.D,.92).toFixed(2)+";v96."+Ez(b.D,.96).toFixed(2)+";v98."+Ez(b.D,.98).toFixed(2);b=this.D;if(b.C&&!MB(b.C)&&(a.il=nz(b.B,b.G),a.C=nz(b.D,b.G),b.u.za)){var c=mz(b.B),d=mz(b.D),e=Iy(b.C.B.Ye(),"_",5),f=Iy(b.C.u.Ye(),"_",5);a.u=(a.u||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=Nz(b.Y)}else this.B&&(a.il=RS(this.B));a.F=this.uB();return a};
g.k.qb=function(a){var b={};if(void 0===a?0:a){g.Wa(b,this.G.qb());this.B&&(g.Wa(b,this.B.qb()),g.Wa(b,this.tw()));this.D&&g.Wa(b,this.D.qb());this.P&&(b.drm=this.P.qb());b.state=this.C.state.toString(16);g.U(this.C,128)&&(b.debug_error=this.C.getData());oW(this)&&(b.prerolls=this.ha.join(","));this.u.mj&&(b.ismb=this.u.mj);"UNKNOWN"!=this.u.latencyClass&&(b.latency_class=this.u.latencyClass);this.u.isLowLatencyLiveStream&&(b.lowlatency="1");this.u.isLivePlayback&&(this.u.ma&&yA(this.u.ma)&&(b.segduration=
yA(this.u.ma)),a=this.K,b.lat=a.V?KD(a.V.D):0,b.liveutcstart=this.u.liveUtcStartSeconds);b.relative_loudness=this.u.cq.toFixed(3);if(a=g.qW(this))b.optimal_format=a.La().qualityLabel;b.user_qual=Lx()}b.debug_videoId=this.u.videoId;return b};
g.k.addCueRange=function(a){var b=this.ea;a=[a];b.ph();aE(b.u,a);b.C=NaN;b.ph()};
g.k.removeCueRange=function(a){cE(this.ea,[a])};
g.k.yP=function(){kW(this)};
g.k.togglePictureInPicture=function(){this.B&&this.B.togglePictureInPicture()};
g.k.AP=function(a){this.Sh.stop();var b=a.target.Ee();if(this.B&&this.B.Ee()&&this.B.Ee()==b){Lwa(this,a.type);switch(a.type){case "error":var c=TS(this.B)||"";if("capability.changed"==c){wV(this);return}if(0<this.B.oh()&&vT(this.N,c,{msg:this.B.pn()}))return;if(this.ba.isBackground()&&4==this.B.oh()){this.Bh();IW(this,"unplayable");return}break;case "durationchange":c=this.B.getDuration();(!this.V||isFinite(c)&&0<c)&&1!=c&&this.u.lengthSeconds!=c&&(this.u.lengthSeconds=c,kW(this));break;case "ratechange":this.D&&
this.D.setPlaybackRate(this.B.getPlaybackRate());c=this.ea;c.started=!0;c.ph();var d=this.G;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.AT(d.provider);c&&c!==d.Ka&&(g.DT(d,e,"rate",[c]),d.Ka=c);d.reportStats(e)}break;case "loadedmetadata":Mwa(this),this.W("onLoadedMetadata");case "loadstart":window.clearInterval(this.de);this.Av()||(this.de=Ho((0,g.z)(this.Av,this),100));break;case "progress":case "suspend":HW(this);this.W("onLoadProgress",this,this.B?g.gG(this.u)?1:hG(this.u)?this.isAtLiveHead()||
wU(this.K)?1:kva(this.K):SS(this.B):0);break;case "playing":if(BW(this,"html5_force_manifestless_seeking_state")&&NF(this.u)&&this.D&&this.D.N.C){this.jb("mflForceSeek","reason.play");return}this.Y.tick("plev");Hwa(this);mB("plev","video_to_ad");this.Qh&&(this.Qh=!1,this.isAtLiveHead()||(this.seekTo(Infinity),pW(this,"onPlaying")));break;case "timeupdate":Hwa(this);c=this.B&&!this.B.getCurrentTime();d=this.B&&0==this.B.gg();if(c&&(!this.Dc||d))return;this.Dc=this.Dc||!!this.B.getCurrentTime();this.Av();
HW(this);if(!this.B||this.B.Ee()!=b)return;this.W("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.B.Al().length&&0==this.B.nf().length&&0<this.B.getCurrentTime()&&5>this.B.getCurrentTime()&&this.D)return;break;case "resize":Mwa(this);this.u.Ma&&"auto"==this.u.Ma.La().quality&&this.W("internalvideoformatchange",this.u,!1);break;case "pause":if(this.Li&&g.U(this.C,8)&&!g.U(this.C,1024)&&0==this.getCurrentTime()&&g.SC){IW(this,"safari_autoplay_disabled");return}}if(this.B&&
this.B.Ee()==b){this.W("videoelementevent",a);b=this.C;if(!g.U(b,128)){c=this.ac;e=this.B;var f=this.F.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.mi()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!eU(c,h);if("pause"===a.type&&e.mi()||l&&h)0<e.Wr()&&e.Ee()&&(d=14);else switch(a.type){case "error":TS(e)&&(d|=128);break;case "pause":g.U(b,256)?(d^=256)||(d=
64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(d=4,g.U(b,1)&&g.U(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.R(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);eU(c,e.getCurrentTime())&&(d&=-2);g.U(b,1)&&fU(c,e.getCurrentTime(),(0,g.O)(),RS(e))&&(d|=1);break;case "seeking":d|=16;g.U(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.U(b,2)||(d|=1);fU(c,e.getCurrentTime(),(0,g.O)(),RS(e));break;case "timeupdate":f=g.U(b,16),l=g.U(b,4),(g.U(b,8)||f)&&!l&&eU(c,e.getCurrentTime())&&
(d=8),fU(c,e.getCurrentTime(),(0,g.O)(),RS(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=TS(d))?(f="GENERIC_WITHOUT_LINK",l=d.qb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.pn())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.XX[f]||"",Tv:f,pF:g.tB(l)}):d=null);b=GL(b,c,d)}!g.U(this.C,1)&&g.U(b,1)&&KW(this,"evt_"+a.type);mW(this,b)}}};
g.k.mP=function(){this.jb("misstimeupdate","");Gwa(this)&&!g.U(this.C,2)&&mV(this,!0,!1)};
g.k.tM=function(a){a="available"==a.B.availability;a!=this.Df&&(this.Df=a,this.W("airplayavailabilitychange"))};
g.k.uM=function(){var a=(0,g.O)();if(isNaN(this.zd)||!(2E3>a-this.zd)){var b=this.B.Rl();this.zd=a;b!=this.ba.B&&(a=this.ba,a.B!==b&&(a.B=b,a.Dg()),sV(this));this.W("airplayactivechange")}};
g.k.Av=function(){var a=this.B;a&&this.Dc&&!this.u.vg&&!jB("vfp",this.Y.timerName)&&2<=a.gg()&&!a.mi()&&0<My(a.nf())&&this.Y.tick("vfp");return(a=this.B)&&!this.u.vg&&0<a.getDuration()&&(!jB("pbp",this.Y.timerName)&&a.Bk()&&2<=a.gg()&&0<My(a.nf())&&this.Y.tick("pbp"),a=a.getCurrentTime(),eU(this.ac,a))?(Jwa(this),!0):!1};
g.k.bJ=function(){if(this.B&&!g.U(this.C,128)){this.u.Ej&&g.Q(this.F.experiments,"html5_log_rebuffer_events")&&Lwa(this,"pfx");var a=this.getCurrentTime(),b=RS(this.B),c=g.U(this.C,8),d=eU(this.ac,a),e=fU(this.ac,a,(0,g.O)(),b);c&&d?mW(this,IL(this.C,1)):c&&e?(c=this.getDuration(),d=this.u.isLivePlayback,(BW(this,"html5_set_ended_in_pfx_live")||!d)&&c&&1.1>Math.abs(c-a)?(this.jb("setended","ct."+a+";bh."+b+";dur."+c+";live."+ +d),d&&BW(this,"html5_set_ended_in_pfx_live_cfl")||(this.B.yl()?this.seekTo(0):
mV(this))):(g.NL(this.C)||KW(this,"progress_fix"),mW(this,HL(this.C,1)))):(c&&!d&&!e&&0<a&&(c=(Date.now()-this.Qi)/1E3,d=this.getDuration().toFixed(2),a>d-1&&this.jb("misspg","t:"+a.toFixed(2)+";d:"+d+";r:"+c.toFixed(2)+";bh:"+b.toFixed(2))),g.U(this.C,4)&&g.NL(this.C)&&5<RS(this.B)&&mW(this,IL(this.C,1)));HW(this)}};
g.k.tI=function(){return this.D?Nz(this.D.Y):Iz(this.F.schedule)};
g.k.BI=function(){return this.F.schedule.K};
g.k.uB=function(){return this.isAtLiveHead()&&this.C.Kb()?this.yB():NaN};
g.k.yB=function(){if(!this.u.isLivePlayback||!this.u.ma||!this.D)return NaN;var a=NF(this.u)?this.D.Ka.u()||0:this.u.ma.N;return g.A()/1E3-this.Ce()-a};
g.k.TI=function(){this.u.isLivePlayback||this.W("connectionissue")};
g.k.Vx=function(){var a=this;this.B&&(this.Pc=this.B.playVideo());if(this.Pc){var b=this.Pc;b.then(void 0,function(c){if(!(g.U(a.C,4)||g.U(a.C,256)||a.Pc!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{mW(a,HL(a.C,2048))}catch(e){}IW(a,d);a.Li=!0}})}};
g.k.wN=function(a,b,c,d){a:{var e=this.N;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.P&&1<this.P.C.keys.length&&96>e.K)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.ca("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.N&&(e.N++,e.W("removedrmplaybackmanager"),1<e.videoData.Jn.length&&(e.videoData.Yc=e.videoData.Jn[1]),vT(e,a,{detail:c})))break a;if(b)if(e.videoData.Ma&&nw(e.videoData.Ma.La()))Jta(e,a);else{if(e.W("playererror",a,d,c),e.videoData.ca("html5_exile_on_drm_fatal")&&
Bta(e,{detail:c}))break a}else tT(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(wT(e,"retrydrm","s"),e.K++,e.W("reattachvideosourcerequired"))}};
g.k.yN=function(){var a=this,b=g.Q(this.F.experiments,"html5_license_constraint_delay"),c=nk();b&&c?(b=new g.G(function(){AW(a);kW(a)},b),g.C(this,b),b.start()):(AW(this),kW(this))};
g.k.xN=function(){var a=this;g.or&&(this.Ga=Zga(this.u.ma))&&(this.Ga.u?g.um(function(){a.hE()}):Tla(this.D,this.Ga))};
g.k.sN=function(a){this.W("heartbeatparams",a)};
g.k.uN=function(a){this.jb("keystatuses",gta(a));var b="auto";this.u.Ma&&(b=this.u.Ma.La().quality);!hta(a,b,!1)||ita(a,"AUDIO")&&ita(a,"SD")?this.u.Ma&&nw(this.u.Ma.La())&&(!a.X||hta(a,b,!0))&&Jta(this.N):this.Ph?this.W("drmoutputrestricted"):(this.Ph=!0,this.jb("retrydrm","o"),zW(this),rwa(this))};
g.k.CN=function(){if(!this.u.vg&&this.B&&!this.ba.isBackground()){var a="0";0<this.B.gg()&&5<=RS(this.B)&&this.u.Ia&&this.u.Ia.xc()&&(mW(this,HL(this.C,1)),KW(this,"load_soft_timeout"),this.W("playbackstalledatstart"),a="1");Kwa(this);if(BW(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},oW(this)&&(a.prerolls=this.ha.join(",")),this.D&&g.Wa(a,this.D.qb()),this.B&&g.Wa(a,this.B.qb());else{var b=this.u.Ia;a={restartmsg:a,mfmt:CF(this.u)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].Cd&&!this.P?"1":"0",mfmtinfo:this.u.Ma?"0":"1",prerolls:oW(this)?this.ha.join(","):"0"};this.P&&(a.drmp=zta(this.P));b=[this.D,this.B].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Wa(a,c.value.qb())}this.G.onError("qoe.start15s",g.tB(a));this.W("loadsofttimeout")}};
g.k.eP=function(){g.U(this.C,128)||this.V&&LB(this.V)||(this.G.onError("qoe.restart",g.tB({detail:"bufferattach"})),this.Qj++,pV(this))};
g.k.ty=function(a){var b=this;a=void 0===a?!1:a;if(!this.eb){jB("att_s","player_att")||jB("att_s","player_att")||cB("att_s",void 0,"player_att");var c=new zsa(this.u,BW(this,"web_player_inline_botguard"));if("c1a"in c.u&&!$S(c)&&(mB("att_wb","player_att"),2==this.Tb&&.01>Math.random()&&g.Gr(Error("Botguard not available after 2 attempts")),!a&&5>this.Tb)){this.Af.Hb();this.Tb++;return}if("c1b"in c.u){var d=Nua(this.G);d&&Csa(c).then(function(e){e&&!b.eb&&d?(mB("att_f","player_att"),d(e),b.eb=!0):
mB("att_e","player_att")},function(){mB("att_e","player_att")})}else(a=Asa(c))?(mB("att_f","player_att"),Mua(this.G,a),this.eb=!0):mB("att_e","player_att")}};
g.k.wc=function(){return this.K.wc()};
g.k.pc=function(){return this.K?this.K.pc():0};
g.k.getStreamTimeOffset=function(){return this.K?this.K.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.u.Ia&&this.u.Ia.videoInfos&&32<this.u.Ia.videoInfos[0].La().fps&&g.zC(this.F);this.ce!=a&&b&&(this.da.setPlaybackRate(a),zW(this));this.ce=a;this.B&&this.B.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.ce};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.u.Ma&&(a=this.u.Ma.La().quality,"auto"==a&&this.B)){var b=DJ(this);b&&0<b.videoHeight&&(a=jw(b.videoWidth,b.videoHeight))}return a};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.G;c.u?(c=WT(c.u,"engage"),c.K=a,c.send(b)):b&&b()};
g.k.isAtLiveHead=function(a,b){return this.u.isLivePlayback&&(this.Cf||(void 0===b?0:b))?this.K.isAtLiveHead(a):!1};
g.k.tw=function(){return this.B?this.B.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.Oh=a;this.B&&this.B.setLoop(a)};
g.k.yl=function(){return this.B?this.B.yl():this.Oh};
g.k.HJ=function(a){var b=BW(this,"html5_unrewrite_timestamps");this.jb("timestamp","enabled."+b+";t."+a.toString())};
g.k.jb=function(a,b,c){var d=this.G;d.qoe&&FT(d.qoe,a,b,void 0===c?!1:c)};
g.k.RC=function(a,b){this.G.onError(a,g.tB(b))};
g.k.AF=function(){if(g.LL(this.C)){if(Gx){var a="";for(var b in Kx)if(Kx.hasOwnProperty(b)){var c=Kx[b];if(0===c.u)c=null;else{for(var d=c.u.toString()+"."+Math.round(c.C).toString(),e=0;e<Dx.length;++e)if(0<c.B[e])d+="."+Dx[e].toString()+"_"+Math.round(c.B[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}Kx=new Fx}else a="";a&&(b=this.G,b.qoe&&FT(b.qoe,"profile",a,void 0))}this.Ve.start()};g.Ia("yt.pubsub.publish",g.Qo,void 0);g.u(NW,IU);NW.prototype.B=function(){return pCa};
NW.prototype.C=function(a){return a.feedbackEndpoint};
NW.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};g.u(OW,IU);OW.prototype.B=function(){return oCa};
OW.prototype.C=function(a){return a.webPlayerShareEntityServiceEndpoint};
OW.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};Cq.prototype.logEvent=function(a,b){switch(a){case "IDB_UNEXPECTEDLY_CLOSED":this.u("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":this.u("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Xwa(this,b);break;case "TRANSACTION_ENDED":.02>=Math.random()&&this.u("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":var c=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.B});this.u("idbTransactionAborted",c)}};var q2={},bDa=(q2["api.invalidparam"]=2,q2.auth=150,q2["drm.auth"]=150,q2["heartbeat.net"]=150,q2["heartbeat.servererror"]=150,q2["heartbeat.stop"]=150,q2["html5.unsupportedads"]=5,q2["fmt.noneavailable"]=5,q2["fmt.decode"]=5,q2["fmt.unplayable"]=5,q2["html5.missingapi"]=5,q2["html5.unsupportedlive"]=5,q2["drm.unavailable"]=5,q2);SW.prototype.getLocalMediaInfoById=function(a){return Ue(this,function c(){return Aa(c,function(d){return d["return"](Sfa(a))})})};
SW.prototype.getAllLocalMediaInfo=function(){return Ue(this,function b(){return Aa(b,function(c){return c["return"](Tfa())})})};
SW.prototype.u=function(a){if(a.En&&2===a.status)Nw(a.videoId,2);else if(4===a.status){var b=a.videoId;Nw(b,4);Vw(b,!1)}a.Ds&&Lfa(a.videoId,a.videoDuration,g.Q(this.api.T().experiments,"hoffle_cache_size_secs"));g.R(this.api.T().experiments,"hoffle_api")&&this.api.va("localmediachange",{videoId:a.videoId,status:a.status,isBackground:a.isBackground});RW(this)};g.u(WW,g.B);g.k=WW.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.F[a],e=this.K[a],f=d;if(e)if(c&&Cv(c,xCa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Oj&&!this.V.has(a)&&(this.V.add(a),g.Dq("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Gr(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,
b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.F[a]?!0:!!(this.K[a]&&b&&Cv(b,xCa))};
g.k.getBandwidthEstimate=function(){return Iz(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.Z(this.app);b&&(a={gpu:(0,g.KT)(),d:a},b.handleError(new sB("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.N.slice()};
g.k.getInternalApiInterface=function(){return g.Qb(this.B)};
g.k.FH=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Na(b).apply(window,e)};
this.G[b]=c}else c=b;this.app.ra.subscribe(a,c)};
g.k.jQ=function(a,b){if("string"===typeof b){var c=this.G[b],d=this.G;b in d&&delete d[b];b=c}this.app.ra.unsubscribe(a,b)};
g.k.getPlayerState=function(){return TAa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.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.k.seekTo=function(a,b,c){this.u&&d1(this.app,!0,this.playerType);i1(this.app,a,b,c,this.playerType)};
g.k.seekToStreamTime=function(a,b,c){this.u&&d1(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 h=g.Z(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.pc()&&(l=h.getStreamTimeOffset());i1(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.Z(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.Z(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&i1(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.Ce(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Y.volume};
g.k.setVolume=function(a){ixa(this,a)};
g.k.isMuted=function(){return this.app.Y.muted};
g.k.mute=function(){jxa(this)};
g.k.unMute=function(){kxa(this)};
g.k.playVideo=function(){this.u&&d1(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Kc()){var b=IX(this.app.D);if(!msa(b)){b.yi("control_play");return}}3===a?g.gX(this.app.D).yi("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Kc()){var b=IX(this.app.D);if(!msa(b)){b.yi("control_pause");return}}3===a?g.gX(this.app.D).yi("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.u.za&&a.B.W("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.Z(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.T();if(a.Tb){var b=a.B||a.ca("web_player_admin_origin_killswitch")?a.Ve[0]:window.location.origin;a="https://admin.youtube.com"===b||"https://viacon.corp.google.com"===b||a.Qj?KCa:JCa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.Z(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.Z(this.app,this.playerType);return a?(a=g.Pc(a.ul(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.setSize=function(){this.app.template.resize()};
g.k.channelSubscribed=function(){this.va("SUBSCRIBE",M0(this.app).Ng)};
g.k.channelUnsubscribed=function(){this.va("UNSUBSCRIBE",M0(this.app).Ng)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.Z(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.Z(this.app).getPlaylistSequenceForTime(a)};
g.k.forceFrescaUpdate=function(){var a=oX(this.app.D);a&&a.u()};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=pBa(this.app);b&&(b.B=a,b.na())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=pBa(this.app);b&&(g.K(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.D&&(b.element.setAttribute("title","Scroll for details"),g.dg(b,g.sY(b.F.Jb(),b.element)),b.D=!0))};
g.k.confirmYpcRental=function(){var a=g.Z(this.app,this.playerType);a&&tW(a,"ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Pj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=aC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,CC)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return M0(this.app).cv};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.DX(this.app.D))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.DX(this.app.D))&&a.loaded&&a.bR()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(PW(a,b,c),this.playerType),this.u&&d1(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(PW(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Ywa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.u&&d1(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Ywa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.N)return"";var b=M0(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.T();return a.N?"":a.getVideoEmbedCode(M0(this.app).videoId,this.app.template.getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return gBa(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=dE(b.C.ea)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.C.removeCueRange(e);rX(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.u&&d1(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.u&&d1(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.u&&d1(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.u&&d1(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.DI=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.La(c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.D;return"captions"===a?(a=g.DX(d))&&a.ke(b,c):null};
g.k.getOption=function(a,b,c){var d=g.Z(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().B?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;if("captions"===a)return(b=g.DX(b))&&b.getOptions();if(!a)return a=[],g.DX(b)&&a.push("captions"),a};
g.k.gs=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.Z(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.Ma&&a.Ma.video){b.video_quality=a.Ma.video.quality;a=a.Ma.video;var c=[];32<a.fps&&c.push("hfr");nw(a)&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.k.showVideoInfo=function(){KAa(this.app,!0)};
g.k.hideVideoInfo=function(){KAa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.Z(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.U(a,128)&&5===bDa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.jX(this.app.D);return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.jX(this.app.D);b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.T().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.Z(this.app);a&&a.sendAbandonmentPing()};
g.k.deleteLocalMediaById=function(a){return TW(a)};
g.k.deleteAllLocalMedia=function(){return cxa()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.k.fetchLocalMediaById=function(a){this.app.fetchLocalMediaById(a)};
g.k.getLocalPlayerResponse=function(a){return this.app.getLocalPlayerResponse(a)};
g.k.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.k.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.k.setAutonavState=function(a){j1(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.T().K.add(a,{lr:b,Fq:c})};
g.k.updateLastActiveTime=function(){wp()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.T().Ph!==a&&(this.app.T().Ph=a,(a=g.Z(this.app,this.playerType))&&AW(a))};
g.k.updateSubtitlesUserSettings=function(a){g.DX(this.app.D).vG(a,!0)};
g.k.setFauxFullscreen=function(a){ns();K0(this.app,a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.template.setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2===a&&this.app.Kc()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.Z(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.cg();if(!c)return null;c=c.levels[b];return c?(c=c.wl(a))?{column:c.column,columns:c.columns,height:c.Ft,row:c.row,rows:c.rows,url:c.url,width:c.Gt}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.cg();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.pc();return c.zt(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.cg();return b?(b=b.levels[a])?{index:a,intervalMs:b.u,maxFrameIndex:b.Ep(),minFrameIndex:b.xx()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.cg();return a?a.levels.length:0};
g.k.lI=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.Z(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Go};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.gX(this.app.D).yi("control_set_audio_track",a);var b=g.Z(this.app,this.playerType);if(b&&!b.la()&&!g.U(b.C,128))if(b.u.Ia.xc())b.D.setAudioTrack(a);else{a:{var c=b.u;if(c.Tc&&!xw(c.Tc)||a==c.kq||!c.Dj||0>=c.Dj.length)c=!1;else{for(var d=g.q(c.Dj),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof UE)){c=!1;break a}var f=a.u.getId();e.B&&(e.B.u=f,e.u=null)}c.kq=a;c=!0}}c&&(b.W("internalaudioformatchange",b.u,!0),xV(b)&&b.jb("hlsaudio",
a.id))}};
g.k.mI=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.Z(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.Z(this.app,this.playerType);return a&&a.getVideoData().Ma?cD(a.X?Nta(a.da,a.X,yW(a)):vD):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.Z(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.DX(this.app.D);return a?a.JI():null};
g.k.resetSubtitlesUserSettings=function(){g.DX(this.app.D).pQ()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setGlobalCrop=function(a){this.app.template.setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.app.T();a=this.app.visibility.u&&!g.R(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Rl(),this.isFullscreen()||pC(this.app.T()),a,this.isInline(),this.app.visibility.pictureInPicture,this.app.visibility.C)};
g.k.isMutedByMutedAutoplay=function(){return this.app.eb};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.template.setInternalSize(new g.he(a,b))};
g.k.pc=function(){var a=g.Z(this.app,void 0);return a?a.pc():0};
g.k.Rl=function(){var a=g.Z(this.app,this.playerType);return!!a&&a.ba.B};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.T().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.ca("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==b.La().videoId||(a.index=b.index)):P0(this.app,{list:a.list,index:a.index,playlist_length:d.length});FG(this.app.getPlaylist(),a);this.va("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.Z(this.app,this.playerType||1);c&&c.getVideoData().Mg(a,b)};
g.k.updateEnvironmentData=function(a){this.app.T().Mg(a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.lX(this.app.D);d&&d.zp()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.template.getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.Z(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.Z(this.app,this.playerType);if(c){var d=aD(a,b||a,!0,"m");c.u.Cu=d;if(c.X){var e=c.da,f=c.X;if(f.Ia.xc()){var h=g.kw[Lx()];f=f.Ia.videoInfos[0].La().yc;if(!(h>f&&0!==f&&d.u===f)){g.wt("yt-player-quality",cD(d),2592E3);if(e.ca("html5_exponential_memory_for_sticky")){d=e.u.ac;h=1;var l=void 0===l?!1:l;ZB(d,"sticky-lifetime");d.values["sticky-lifetime"]&&d.hj["sticky-lifetime"]||(d.values["sticky-lifetime"]=0,d.hj["sticky-lifetime"]=0);l&&.0625<$B(d,
"sticky-lifetime")&&(h=2*d.hj["sticky-lifetime"]);d.values["sticky-lifetime"]+=1*Math.pow(2,d.u/h);d.hj["sticky-lifetime"]=h;d.D.start()}e.ca("html5_perf_cap_override_sticky")&&g.zt("yt-player-performance-cap")}}}AW(c)}};
g.k.onAdUxClicked=function(a,b){this.W("aduxclicked",a,b)};
g.k.W=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.T().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.ra.W.apply(this.app.ra,[a].concat(g.la(c)));this.app.da.W.apply(this.app.da,[a].concat(g.la(c)))};
g.k.va=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.ra.W.apply(this.app.ra,[a].concat(g.la(c)));this.app.da.W.apply(this.app.da,[a].concat(g.la(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.ca=function(a){return g.R(this.app.T().experiments,a)};
g.k.aa=function(){if(this.element){var a=this.element,b;for(b in this.B)this.B.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.D={};this.G={};g.B.prototype.aa.call(this)};g.u(aX,WW);g.k=aX.prototype;g.k.addCueRange=function(a,b,c,d,e){return gBa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return TAa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){i1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){i1(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.gs=function(a){a=void 0===a?this.playerType:a;var b=WW.prototype.gs.call(this,a)||{};if(a=g.Z(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.isLivePlayback,b.isWindowedLive=a.np,b.isManifestless=NF(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.zg,b.ypcOriginalItct=a.uR,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=ZF(a),b.paidContentOverlayDurationMs=$F(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.ma&&kA(a.ma)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):WW.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return a?this.app.getDuration(a,b):WW.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.gX(this.app.D).getProgressState();var b=this.app.getVideoData(),c=(g.Z(this.app,a)||g.Z(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.Ce(c),f=this.app.isAtLiveHead(c);var h=this.app;var l=g.Z(h,void 0);if(l){l=L0(h,l);var m=NaN;l.B&&(m=ssa(l.B));m=0<=m?m:l.getCurrentTime();h=Z0(h,m,l)}else h=0;l=this.app.wc(c);m=this.app;(c=g.Z(m,c))?(c=AX(m,c),c=Z0(m,JW(c),c)):c=0;return{allowSeeking:this.app.oe(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){var a=oX(this.app.D);return a?a.B():null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){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.ZW(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){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.ZW(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.ZW(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.ZW(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.template.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){var a=this.app.T();if(a.externalFullscreen)return this.isFullscreen()?ps(window.document.documentElement):ms(window.document.documentElement);if(ns()||this.ca("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?ps(os()):"3"!==a.controlsType&&ns()?ms(this.app.template.element):(a=this.app.F.Na())?ms(a):Promise.reject(Error("Media element missing"));this.va("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=IX(this.app.D);a&&a.created&&a.destroy();(a=g.Z(this.app))&&a.stopVideo();(a=this.app.D.Cc.get("endscreen"))&&a.wJ()&&g.fX(this.app.B,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.R(a.experiments,"disable_new_pause_state3")&&IC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():WW.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.Z(this.app,this.playerType).qb(!0)};
g.k.toggleSubtitles=function(){var a=g.DX(this.app.D);a&&a.RQ()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.jX(this.app.D);b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.jX(this.app.D);return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){ixa(this,a,b)};
g.k.mute=function(a){jxa(this,a)};
g.k.unMute=function(a){kxa(this,a)};
g.k.mutedAutoplay=function(){this.ca("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.lX(this.app.D);b&&!b.loaded&&b.load()}WW.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.lX(this.app.D);b&&b.loaded&&b.unload()}WW.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.D;switch(a){case "ad":return(a=IX(d))&&a.ke&&a.ke(b,c);case "kids":return(a=JX(d))&&a.ke(b,c);case "remote":return(a=g.gX(d))&&a.ke(b,c);case "unplugged":return(a=KX(d))&&a.ke(b,c);case "annotations_module":return(a=g.lX(d))&&a.ke(b,c);case "creatorendscreen":return(a=LX(d))&&a.ke(b,c)}return WW.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;switch(a){case "ad":return(b=IX(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.gX(b))&&b.getOptions();case "annotations_module":return(b=g.lX(b))&&b.getOptions();case "creatorendscreen":return(b=LX(b))&&b.getOptions();case "unplugged":return(b=KX(b))&&b.getOptions();case "kids":return(b=JX(b))&&b.getOptions()}if(!a){a=WW.prototype.getOptions.call(this);if(!a)return a;IX(b)&&a.push("ad");g.gX(b)&&a.push("remote");g.lX(b)&&a.push("annotations_module");
LX(b)&&a.push("creatorendscreen");KX(b)&&a.push("unplugged");JX(b)&&a.push("kids");return a}return WW.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.template.getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.ZW(this);a&&a.Ij()};
g.k.setCenterCrop=function(a){this.app.template.setCenterCrop(a)};
var mxa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_cardio enable_faster_speeds enablecastapi end fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
nxa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enable_cardio enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.u(bX,aX);g.k=bX.prototype;g.k.getRootNode=function(){return g.fH(this).element};
g.k.T=function(){return this.app.T()};
g.k.Cl=function(){return this.P};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){return(a=g.Z(this.app,a))&&a.getVideoData()};
g.k.cg=function(a){return this.app.cg(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.gX(this.app.D).yi("control_play");return}if(2===this.getPresentingPlayerType()){var b=IX(this.app.D),c;if(c=b){if(null===b.u)var d=0;else{var e=b.u;d=iJ(e.u)&&!!e.B&&e.B.Lp()}c=d}if(c)return}}catch(f){g.Fr(f)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.Z(this.app,a).stopVideo()};
g.k.Bh=function(a){g.Z(this.app,a).Bh()};
g.k.addEventListener=function(a,b){this.app.da.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.da.unsubscribe(a,b)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.ul=function(){var a={},b=g.Z(this.app).ul();b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.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 h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,h,b,c)};
g.k.setCardsVisible=function(a,b,c){var d=g.lX(g.cX(this));d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)};
g.k.fi=function(a,b){var c=g.ZW(this);if(c)return c.fi(a,b);c=this.app.template.getPlayerSize();return new g.ig(0,0,c.width,c.height)};
g.k.oe=function(){if(this.T().Y)return!1;var a=g.Z(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.gG(b)||2===this.getPresentingPlayerType()&&!this.app.Kc()||oW(a)&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.be(a,0,100);YW(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){YW(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){YW(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.getBandwidthEstimate=function(){return Iz(this.T().schedule)};
g.k.Vb=function(){return g.Z(this.app)};
g.k.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Kc=function(){return this.app.Kc()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};g.GX={};g.u(CX,g.B);g.k=CX.prototype;g.k.nq=function(){return this.J.getVideoData().nq()};
g.k.Dy=function(){return this.J.getVideoData().Dy()};
g.k.HA=function(){var a=this.Cc.get("heartbeat");FX(this,"heartbeat",this.HA,!1,!0);!a&&this.Cc.has("heartbeat")&&this.J.W("offlineslatestatechange")};
g.k.MF=function(){var a=this.J.T();if(uC(a))return!1;var b=this.J.getVideoData();return b.lC||"3"===a.controlsType?!1:a.K.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.qg||!!g.kG(b)||!!g.lG(b):!0};
g.k.Iv=function(){FX(this,"annotations_module",this.Iv,!0);var a=this.Cc.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.Cy=function(){return this.J.getVideoData().Cy()};
g.k.GA=function(){if(!this.Cc.get("ad"))try{EX(this)?FX(this,"ad",this.GA,!1,!0):g.tX(this.J,"ad")}catch(a){g.tX(this.J,"ad"),g.Fr(a)}};
g.k.aa=function(){g.B.prototype.aa.call(this);HX(this,1,!0)};g.u(NX,g.P);g.k=NX.prototype;g.k.VL=function(a){a=ip(a);if(!ge(a,this.D)){var b=2;this.G&&(b|=8);this.D=a;MX(this,b,!0)}};
g.k.WL=function(){this.G&&MX(this,8,!0);MX(this,2,!1)};
g.k.Ht=function(a){var b=ip(a);ge(b,this.D)||(this.D=b,(a=g.fp(a))&&this.jr(a)&&(MX(this,4,!0),this.u.Eb(this.C),this.C=this.u.R(this.target,"mouseover",this.Hx),this.K=this.u.R(this.target,"mouseout",this.Hx)))};
g.k.Hx=function(a){a=hp(a);a&&this.jr(a)||(this.D=new g.fe(NaN,NaN),Ixa(this))};
g.k.CJ=function(){MX(this,1,!0)};
g.k.nI=function(a){a=g.fp(a);a instanceof Element&&!(0<a.tabIndex)||MX(this,1,!0)};
g.k.AD=function(){this.G=!0;this.u.Eb(this.F);this.F=this.u.R(document,"mouseup",this.XL)};
g.k.XL=function(){this.G=!1;MX(this,8,!1);this.u.Eb(this.F);this.F=this.u.R(this.target,"mousedown",this.AD)};
g.k.dG=function(a){if(a=(a=a.changedTouches)&&a[0])this.ba=a.identifier,this.u.Eb(this.N),this.N=this.u.R(this.target,"touchend",this.SQ,void 0,!0),MX(this,1024,!0)};
g.k.SQ=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ba){var d=c;break}}d&&(this.u.Eb(this.N),this.N=this.u.R(this.target,"touchstart",this.dG,void 0,!0),MX(this,1024,!1))};
g.k.Ij=function(){MX(this,2,!0)};
g.k.resize=function(){g.AB&&Ixa(this)};
g.k.toString=function(){return g.P.prototype.toString.call(this)};g.u(g.OX,g.V);
g.OX.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.Lc&&(a.cj||b.pfpChazalUi))var c=b.pfpChazalUi?[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{I:"path",L:"ytp-dni-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{I:"path",L:"ytp-dni-large-play-button-bg",U:{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"}},{I:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.G?(g.K(this.element,"ytp-touch-device",b.u),c=[b.G?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{I:"path",L:"ytp-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{I:"path",L:"ytp-large-play-button-bg",
U:{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"}},{I:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{I:"path",L:"ytp-large-play-button-bg",
U:{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"}},{I:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.ua("largePlayButtonChildren",c);a.Lc&&(a.cj||b.pfpChazalUi)&&(a=a.cj?a.cj:"#1f1f1f",this.ga("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(PX,g.V);g.k=PX.prototype;g.k.show=function(){var a=this;this.Za||(this.C.R(this.api,"videodatachange",function(){a.u.Hb()}),this.C.R(this.api,"videoplayerreset",function(){a.u.Hb()}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.us(this.C);g.V.prototype.hide.call(this)};
g.k.Sa=function(){this.u.Hb()};
g.k.fL=function(a){var b=this.api.T();g.R(b.experiments,"disable_new_pause_state3")&&IC(b)&&(a=a.state.isCued()&&!a.zj.isCued()||g.hX(this.api)&&g.U(a.state,2),g.F(this.element,"transition-delay",a?"2s":""));this.u.Hb()};
g.k.MP=function(){this.u.Hb()};
g.k.eL=function(){this.B.stop();this.hide();this.u.Hb()};
g.k.na=function(){var a=g.AJ(this.api);if(3===this.api.getPresentingPlayerType()&&(a.Kb()||g.U(a,4)))var b=!0;else(b=g.cX(this.api).Cc.get("ypc"))&&b.Rt?b=!0:(b=this.api.T(),b=g.U(a,2)&&eX(this.api)&&b.Pc?!0:!1);b?(b=!0,this.D.hide()):(this.D.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.R(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.U(a,2)||eX(this.api)||b&&g.g1(this.api.app))||g.U(a,1024)?!0:!1));b?(this.B.show(),a=this.api.getVideoData(),this.fR(this.api.getPlaylist(),
a)):(this.B.hide(),g.U(a,1)||this.B.stop())};
g.k.fR=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.uF&&!c.videoId)){var d=g.fH(this.api).getPlayerSize();var e=g.JC(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Sd("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Sd("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Sd("sddefault.jpg")||c.Sd("hqdefault.jpg")||c.Sd("mqdefault.jpg"))break;if(d=c.Sd("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.u(g.VX,g.V);g.VX.prototype.resize=function(){};
g.VX.prototype.B=function(a){var b=this;Mxa(this);var c=a.Tv,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.G?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.sc(YX(this,"TOO_MANY_REQUESTS_WITH_LINK",d.jk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.G?this.sc(g.WX(a.errorMessage)):this.sc(YX(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Jd(c,
{hl:a})),this.sc(YX(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.za&&!d.B&&Lxa(this,function(e){if(g.QX(e,b.api,!IC(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.va("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var Kxa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u($X,g.rs);$X.prototype.Oa=function(){var a=this;this.Lf();var b=this.J.getVideoData();if(b.isValid()){var c=[];this.J.T().N||c.push({src:b.Sd("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.hX(this.J)&&(this.u["delete"]("nexttrack"),this.u["delete"]("previoustrack"),b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
ZX(this,"nexttrack",b);ZX(this,"previoustrack",c)}};
$X.prototype.Lf=function(){var a=g.AJ(this.J);a=a.isError()?"none":g.LL(a)?"playing":"paused";this.mediaSession.playbackState=a};
$X.prototype.aa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())ZX(this,b.value,null);g.rs.prototype.aa.call(this)};g.u(aY,g.V);aY.prototype.Oa=function(a,b){Nxa(this,b);this.Bc&&Oxa(this,this.Bc)};
aY.prototype.Wb=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&Nxa(this,b);this.u&&Oxa(this,a.state);this.Bc=a.state};
aY.prototype.uc=function(){this.B.show()};
aY.prototype.ib=function(){this.B.hide()};g.u(cY,g.V);cY.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
cY.prototype.B=function(a){bY(this,a.state)};
cY.prototype.C=function(){bY(this,g.AJ(this.api))};
cY.prototype.D=function(){this.message.style.display="block"};g.u(g.dY,g.EN);g.k=g.dY.prototype;g.k.show=function(){var a=this.ff();g.EN.prototype.show.call(this);this.X&&(this.K.R(window,"blur",this.ib),this.K.R(document,"click",this.hN));a||this.W("show",!0)};
g.k.hide=function(){var a=this.ff();g.EN.prototype.hide.call(this);Pxa(this);a&&this.W("show",!1)};
g.k.uc=function(a,b){this.u=a;this.V.show();b?(this.P||(this.P=this.K.R(this.J,"appresize",this.dA)),this.dA()):this.P&&(this.K.Eb(this.P),this.P=void 0)};
g.k.dA=function(){var a=g.ZW(this.J);this.u&&a.Gn(this.element,this.u)};
g.k.ib=function(){var a=this.ff();Pxa(this);this.V.hide();a&&this.W("show",!1)};
g.k.hN=function(a){var b=gp(a);b&&(g.Me(this.element,b)||this.u&&g.Me(this.u,b)||!g.eP(a))||this.ib()};
g.k.ff=function(){return this.Za&&4!==this.V.state};g.u(fY,g.dY);fY.prototype.Sp=function(a){this.C&&(a?(Qxa(this),this.uc()):(this.seen&&Rxa(this),this.ib()))};
fY.prototype.Lf=function(a){this.api.isMutedByMutedAutoplay()&&g.MJ(a,2)&&this.ib()};
fY.prototype.onClick=function(){this.api.unMute();Rxa(this)};g.u(g.hY,g.rs);g.k=g.hY.prototype;g.k.init=function(){var a=g.AJ(this.api);this.Pd(a);this.Kj();this.Sa()};
g.k.Oa=function(a,b){if(this.fx!==b.videoId){this.fx=b.videoId;var c=this.Ac;c.Y=b&&0<b.Yk.length?5E3:3E3;MX(c,512,!0);this.Kj()}};
g.k.nO=function(){this.Oa("newdata",this.api.getVideoData())};
g.k.Ok=function(){var a=g.mX(this.api)&&g.nX(this.api);pX(this.api);return this.tr||a||pX(this.api)||this.Hw};
g.k.og=function(){var a=!this.Ok();g.K(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.jr=function(a){try{if(!g.Me(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Qe(a);)a=a===this.api.getRootNode()?null:g.Le(a);return!!a};
g.k.xh=function(a){var b=this.api.getRootNode();g.K(b,"ytp-autohide",a);g.K(b,"ytp-autohide-active",!0);this.iA.start(a?250:100);a&&(this.uu=!1,g.Bn(b,"ytp-touch-mode"));this.Hv=!a;b=this.api;a=!a;b.va("onVideoAreaChange");b.va(a?"onShowControls":"onHideControls")};
g.k.EM=function(){var a=this.api.getRootNode();g.K(a,"ytp-autohide-active",!1)};
g.k.TO=function(){this.Vy=!0};
g.k.SO=function(a){if(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))this.Vy=!1,this.Wy&&this.Eb(this.Wy),0===this.Np&&kY(this,a)?(this.xs(),this.xr.start(),this.Wy=this.R(g.fH(this.api),"touchmove",this.TO,void 0,!0)):this.xr.stop();Txa(this)&&kY(this,a)&&gY(this);var b=this.xu.ff();if(hC&&Uxa(this,a))b&&g.jp(a);else if(this.Ac.B||iY(this,gp(a))||this.xu.ff()||(g.AJ(this.api).isCued(),g.jp(a)),this.uu=!0,g.I(this.api.getRootNode(),
"ytp-touch-mode"),this.Ac.Ij(),g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))if(b=g.AJ(this.api),!(!this.api.oe()||g.U(b,2)&&eX(this.api)||g.U(b,64))){b=Date.now()-this.uC;this.Np+=1;if(350>=b){this.Io=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.Np-1);0<d&&d<b?(this.eq(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.eq(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.jp(a)}this.uC=Date.now();this.CF.start()}};
g.k.OO=function(a){Uxa(this,a)||(Txa(this)||!kY(this,a)||this.xr.isActive()||(gY(this),g.jp(a)),this.Io&&(this.Io=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Dq("embedsRequestStorageAccessResult",{resolved:!0});Sx(!0);Gp();window.location.reload()},function(){g.Dq("embedsRequestStorageAccessResult",{resolved:!1});
a.Vn()})};
g.k.xs=function(){};
g.k.km=function(){};
g.k.eq=function(){};
g.k.Vn=function(){var a=g.AJ(this.api);g.U(a,2)&&eX(this.api)||(g.LL(a)?this.api.pauseVideo():(this.api.app.ue=!0,this.api.playVideo(),this.Im&&document.activeElement===this.Im.D.element&&this.api.getRootNode().focus()))};
g.k.PO=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!iY(this,gp(a)))if(a=this.api.T(),(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))&&this.Io)this.Io=!1;else if(a.ka&&3!==c)try{this.api.toggleFullscreen()["catch"](function(d){b.gp(d)})}catch(d){this.gp(d)}};
g.k.gp=function(a){String(a).includes("fullscreen error")?g.Gr(a):g.Fr(a)};
g.k.QO=function(a){Vxa(this,.3,a.scale);g.jp(a)};
g.k.RO=function(a){Vxa(this,.1,a.scale)};
g.k.Sa=function(){var a=g.fH(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Ac.resize();g.K(b,"ytp-fullscreen",this.api.isFullscreen());g.K(b,"ytp-large-width-mode",c);g.K(b,"ytp-small-mode",this.Jf());g.K(b,"ytp-tiny-mode",this.Jf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height));g.K(b,"ytp-big-mode",this.Id());this.pd&&this.pd.resize(a)};
g.k.Lf=function(a){this.Pd(a.state);this.Kj()};
g.k.lw=function(){var a=!!this.fx&&!g.dX(this.api),b=2===this.api.getPresentingPlayerType(),c=this.api.T(),d=this.api.getVideoData(1).Lc&&c.pfpChazalUi;if(b){if(LBa&&g.R(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=IX(g.cX(this.api));return a&&b.Ey()&&!d}return a&&(c.Mi||this.api.isFullscreen()||c.he)&&!d};
g.k.Kj=function(){var a=this.lw();this.ji!==a&&(this.ji=a,g.K(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Pd=function(a){var b;(b=a.isCued())||(b=((b=g.Z(this.api.app,void 0))?oW(b):!0)&&3!==this.api.getPresentingPlayerType());b!==this.isCued&&(this.isCued=b,this.Yy&&this.Eb(this.Yy),this.Yy=this.R(g.fH(this.api),"touchstart",this.SO,void 0,b));var c=a.Kb()&&!g.U(a,32)||qX(this.api);MX(this.Ac,128,!c);c=3===this.api.getPresentingPlayerType();MX(this.Ac,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[h2.ENDED];else d=[],g.U(a,8)?d.push(h2.PLAYING):g.U(a,4)&&d.push(h2.PAUSED),g.U(a,1)&&!g.U(a,32)&&
d.push(h2.BUFFERING),g.U(a,32)&&d.push(h2.SEEKING),g.U(a,64)&&d.push(h2.UNSTARTED);g.Db(this.Uu,d)||(g.Cn(c,this.Uu),this.Uu=d,g.An(c,d));d=this.api.T();var e=g.U(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.Hw);g.U(a,128)&&!g.kC(d)?(this.pd||(this.pd=new g.VX(this.api),g.C(this,this.pd),g.DP(this.api,this.pd.element,4)),this.pd.B(a.getData()),this.pd.show()):this.pd&&(this.pd.dispose(),this.pd=null)};
g.k.dj=function(){return g.mX(this.api)&&g.nX(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.dX(this.api)?(g.fX(this.api,!0),!0):!1};
g.k.Sp=function(a){this.Hw=a;this.og()};
g.k.Id=function(){return!1};
g.k.Jf=function(){return!this.Id()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.ih=function(){return this.uu};
g.k.Cl=function(){return null};
g.k.fi=function(){var a=g.fH(this.api).getPlayerSize();return new g.ig(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Gn=function(){};
g.k.showControls=function(a){void 0!==a&&lJ(g.fH(this.api),a)};
g.k.Ij=function(){};
g.k.AB=function(){return null};g.u(lY,g.V);lY.prototype.onClick=function(){this.J.va("BACK_CLICKED")};g.u(g.mY,g.V);g.mY.prototype.show=function(){g.V.prototype.show.call(this);this.u.Hb()};
g.mY.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
g.mY.prototype.km=function(a){a?g.U(g.AJ(this.J),64)||nY(this,roa(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?nY(this,uoa(),"Stop live playback"):nY(this,poa(),"Pause"))};g.u(pY,g.V);g.k=pY.prototype;g.k.pG=function(){g.mX(this.J)&&g.nX(this.J)&&this.ff()&&this.ib()};
g.k.NQ=function(){this.ib();g.Qo("iv-teaser-clicked",null!=this.u);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.bL=function(){g.Qo("iv-teaser-mouseover");this.u&&this.u.stop()};
g.k.jP=function(a){this.u||!a||g.nX(this.J)||this.B&&this.B.isActive()||(this.uc(a),g.Qo("iv-teaser-shown"))};
g.k.uc=function(a){this.ua("text",a.teaserText);this.element.setAttribute("dir",g.Kn(a.teaserText));this.D.show();this.B=new g.G(function(){g.I(this.J.getRootNode(),"ytp-cards-teaser-shown");this.hz()},0,this);
this.B.start();qY(this.Vh,!1);this.u=new g.G(this.ib,580+a.durationMs,this);this.u.start();this.F.push(this.wa("mouseover",this.hD,this));this.F.push(this.wa("mouseout",this.gD,this))};
g.k.hz=function(){if(g.kC(this.J.T())&&this.Za){var a=this.Vh.element.offsetLeft,b=g.re("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Vh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.OH=function(){g.kC(this.J.T())&&this.V.Jf()&&this.Za&&this.P.start()};
g.k.hD=function(){this.G.stop();this.u&&this.u.isActive()&&this.K.start()};
g.k.gD=function(){this.K.stop();this.u&&!this.u.isActive()&&this.G.start()};
g.k.VN=function(){this.u&&this.u.stop()};
g.k.UN=function(){this.ib()};
g.k.ib=function(){!this.u||this.C&&this.C.isActive()||(g.Qo("iv-teaser-hidden"),this.D.hide(),g.Bn(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.G(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Eb(b.value);this.F=[];this.u&&(this.u.dispose(),this.u=null);qY(this.Vh,!0)},330,this),this.C.start())};
g.k.ff=function(){return this.Za&&4!==this.D.state};
g.k.aa=function(){var a=this.J.getRootNode();a&&g.Bn(a,"ytp-cards-teaser-shown");g.fg(this.B,this.C,this.u);g.V.prototype.aa.call(this)};g.u(rY,g.V);g.k=rY.prototype;g.k.uc=function(){this.B.show();g.Qo("iv-button-shown")};
g.k.ib=function(){g.Qo("iv-button-hidden");this.B.hide()};
g.k.ff=function(){return this.Za&&4!==this.B.state};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};
g.k.tN=function(){g.Qo("iv-button-mouseover")};
g.k.onClicked=function(a){g.mX(this.J);var b=g.zn(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Qo("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!g.nX(this.J),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};var r2={},tY=(r2.BUTTON="ytp-button",r2.TITLE_NOTIFICATIONS="ytp-title-notifications",r2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",r2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",r2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",r2);g.u(uY,g.V);uY.prototype.onClick=function(){g.wX(this.api,this.element);var a=!this.u;this.ua("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.ua("pressed",a);Xxa(this,a)};g.u(g.wY,g.V);g.wY.prototype.B=function(){g.I(this.element,"ytp-sb-subscribed")};
g.wY.prototype.C=function(){g.Bn(this.element,"ytp-sb-subscribed")};g.u(xY,g.V);g.k=xY.prototype;g.k.oy=function(){bya(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Zv=function(){if($xa(this)&&!this.isExpanded()){this.ua("flyoutUnfocusable","false");this.ua("channelTitleFocusable","0");this.C&&this.C.stop();this.subscribeButton&&(this.subscribeButton.show(),g.LN(this.api,this.subscribeButton.element,!0));var a=this.api.getVideoData();this.B&&a.Sn&&a.subscribed&&(this.B.show(),g.LN(this.api,this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.Ev=function(){this.ua("flyoutUnfocusable","true");this.ua("channelTitleFocusable","-1");this.C&&this.C.start()};
g.k.na=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Xj&&!!a.wf:g.kC(b)&&(c=!!a.videoId&&!!a.Xj&&!!a.wf);b=g.XC(this.api.T())+a.Xj;g.kC(this.api.T())&&(b=g.Jd(b,g.UT({},"emb_ch_name_ex")));var d=a.Xj,e=a.wf,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.XC(this.api.T())+d,this.u.style.backgroundImage="url("+e+")",this.ua("channelLink",d),this.ua("channelLogoLabel",g.yK("Photo image of $CHANNEL_NAME",
{CHANNEL_NAME:f})),g.I(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Bn(this.api.getRootNode(),"ytp-title-enable-channel-logo");g.LN(this.api,this.u,c&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=a.Ng);this.ua("expandedTitle",a.Yv);this.ua("channelTitleLink",b);this.ua("expandedSubtitle",a.expandedSubtitle)};g.u(g.zY,g.EN);g.zY.prototype.ua=function(a,b){g.EN.prototype.ua.call(this,a,b);this.W("size-change")};g.u(CY,g.EN);CY.prototype.VD=function(){this.W("size-change")};
CY.prototype.focus=function(){this.content.focus()};
CY.prototype.HM=function(){this.W("back")};g.u(g.DY,CY);g.DY.prototype.Pb=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.Ab(this.items,a,cya);if(0<=c)return;c=~c;g.xb(this.items,c,0,a);g.Ie(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.Ox,this);this.menuItems.W("size-change")};
g.DY.prototype.Zd=function(a){a.unsubscribe("size-change",this.Ox,this);this.la()||(g.rb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.W("size-change"))};
g.DY.prototype.Ox=function(){this.menuItems.W("size-change")};
g.DY.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.u(FY,g.zY);FY.prototype.u=function(a){g.kp(a)||39!==g.lp(a)||(this.element.click(),g.jp(a))};g.u(g.HY,g.zY);g.HY.prototype.onClick=function(){this.setValue(!this.checked);this.W("select",this.checked)};
g.HY.prototype.getValue=function(){return this.checked};
g.HY.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(IY,g.DY);g.k=IY.prototype;g.k.cN=function(){TX(this.Gm.element)};
g.k.NP=function(){KY(this,this.J.getDebugText(!0))&&nY(this.Lb,RN())};
g.k.OP=function(){KY(this,this.J.getVideoEmbedCode())&&nY(this.Lb,ZN());g.wX(this.J,this.Yg.element);MW("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.PP=function(){KY(this,this.J.getVideoUrl(!0,!0))&&nY(this.Lb,bO());g.wX(this.J,this.getVideoUrl.element);MW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.QP=function(){KY(this,this.J.getVideoUrl(!1,!0))&&nY(this.Lb,bO());g.wX(this.J,this.dh.element);MW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.gE=function(a){this.nh.setValue(a)};
g.k.RP=function(){var a=this.nh.getValue();SAa(this.J.app,a);this.Va.ib();g.wX(this.J,this.nh.element)};
g.k.JO=function(a){this.J.reportPlaybackIssue();if(g.QX(a,this.J,!IC(this.J.T()))){a=this.J;var b=a.app.getFeedbackProductData();a.va("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Va.ib()};
g.k.aP=function(){this.J.showVideoInfo();this.Va.ib()};
g.k.Oa=function(a,b){this.Ch(b)};
g.k.Ch=function(a){var b=this.J.T(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.N&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.Ma&&(b.fmt=Wu(a.Ma)),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Eg&&(b.partnerid=a.Eg),b=g.Jd("//support.google.com/googleplay/",b));g.DN(this.Yg,d&&a.allowEmbed);g.DN(this.getVideoUrl,d);g.DN(this.dh,d&&
!a.isLivePlayback);this.fq.sc(b,"href");g.DN(this.nh,!a.isLivePlayback&&!c)};
g.k.yb=function(a){g.DY.prototype.yb.call(this,a);g.LN(this.J,this.Yg.element,a);g.LN(this.J,this.getVideoUrl.element,a);g.LN(this.J,this.dh.element,a);g.LN(this.J,this.nh.element,a)};g.u(g.LY,g.dY);g.k=g.LY.prototype;g.k.show=function(){g.dY.prototype.show.call(this);this.Zn()};
g.k.hide=function(){g.dY.prototype.hide.call(this);1<this.B.length&&g.OY(this)};
g.k.Zn=function(){fya(this);this.Za&&(eya(this),g.Dg(this.element,this.size))};
g.k.Pf=function(){var a=this.B.pop(),b=MY(this);NY(this,a,b,!0)};
g.k.jL=function(a){if(!g.kp(a))switch(g.lp(a)){case 27:this.ib();g.jp(a);break;case 37:1<this.B.length&&this.Pf();g.jp(a);break;case 39:g.jp(a)}};
g.k.focus=function(){MY(this).focus()};
g.k.aa=function(){g.dY.prototype.aa.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.u(g.PY,g.LY);g.k=g.PY.prototype;g.k.show=function(){this.D||(this.D=new IY(this.J,this.Y,this,this.Lb),g.C(this,this.D),g.JY(this,this.D));this.D.gE(this.J.app.G.yl());g.LY.prototype.show.call(this);g.LN(this.J,this.element,!0);this.D.yb(!0)};
g.k.hide=function(){hya(this);g.LY.prototype.hide.call(this);g.LN(this.J,this.element,!1);this.D&&this.D.yb(!1)};
g.k.ZM=function(a){var b=gp(a);if(!(this.Za||b&&(Se(b,"a")||Se(b,null,"ytp-no-contextmenu",void 0)))){g.jp(a);iya(this);b=this.J.getVideoData();g.K(this.element,"ytp-dni",b.Lc);this.element.style.left="";this.element.style.top="";a=ip(a);a.x++;a.y++;this.uc();var c=document.body;b=new gg(0,Infinity,Infinity,0);var d=ne(c);for(var e=d.u.body,f=d.u.documentElement,h=xe(d.u);c=gba(c);)if(!(g.ye&&0==c.clientWidth||g.Ae&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=ug(c,"overflow")){var l=g.yg(c),
m=new g.fe(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=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.u;d=we(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+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&&(h=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,
0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.ig(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.wg(this.element,new g.fe(d.left,d.top));g.us(this.G);this.G.R(document,"contextmenu",this.iN);this.G.R(this.J,"fullscreentoggled",this.cL);this.G.R(this.J,"pageTransition",this.dL)}};
g.k.iN=function(a){if(!g.kp(a)){var b=gp(a);g.Me(this.element,b)||this.ib();this.J.T().disableNativeContextMenu&&g.jp(a)}};
g.k.cL=function(){this.ib();iya(this)};
g.k.dL=function(){this.ib()};g.u(QY,g.V);QY.prototype.onClick=function(){return Ue(this,function b(){var c=this,d,e,f,h;return Aa(b,function(l){if(1==l.u)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),ra(l,lya(c,h),2);l.B&&jya(c);g.wX(c.api,c.element);l.u=0})})};
QY.prototype.na=function(){var a=this.api.getVideoData();this.ua("icon",{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.ua("title-attr","Copy link");var b=g.fH(this.api).getPlayerSize().width;this.visible=!!a.videoId&&
240<=b&&a.uq;g.K(this.element,"ytp-copylink-button-visible",this.visible);g.DN(this,this.visible);SY(this.tooltip);g.LN(this.api,this.element,this.visible&&this.N)};
QY.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.api,this.element,this.visible&&a)};
QY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-copylink-button-visible")};g.u(TY,g.V);TY.prototype.show=function(){g.V.prototype.show.call(this);this.u.Hb()};
TY.prototype.hide=function(){this.B.stop();g.Bn(this.element,"ytp-chapter-seek");g.V.prototype.hide.call(this)};
TY.prototype.eq=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&g.wX(this.J,e);this.u.Yf();this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.fH(this.J).getPlayerSize().height;e=g.fH(this.J).getPlayerSize();e=e.width/3-3*e.height;var h=this.ga("ytp-doubletap-static-circle");h.style.width=f+"px";h.style.height=f+"px";1===a?(h.style.left="",h.style.right=e+"px"):-1===a&&(h.style.right="",h.style.left=e+"px");var l=2.5*f;f=l/2;h=this.ga("ytp-doubletap-ripple");h.style.width=
l+"px";h.style.height=l+"px";1===a?(a=g.fH(this.J).getPlayerSize().width-b+Math.abs(e),h.style.left="",h.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,h.style.right="",h.style.left=a-f+"px");h.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");mya(this,d)};var cDa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(cDa).reduce(function(a,b){a[cDa[b]]=b;return a},{});
var dDa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(dDa).reduce(function(a,b){a[dDa[b]]=b;return a},{});
var eDa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(eDa).reduce(function(a,b){a[eDa[b]]=b;return a},{});var s2,fDa;s2=[{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"}];fDa=[{option:0,text:VY(0)},{option:.25,text:VY(.25)},{option:.5,text:VY(.5)},{option:.75,text:VY(.75)},{option:1,text:VY(1)}];
g.YY=[{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:s2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:VY(.5)},{option:-1,text:VY(.75)},{option:0,text:VY(1)},{option:1,text:VY(1.5)},{option:2,text:VY(2)},
{option:3,text:VY(3)},{option:4,text:VY(4)}]},{option:"background",text:"Background color",options:s2},{option:"backgroundOpacity",text:"Background opacity",options:fDa},{option:"windowColor",text:"Window color",options:s2},{option:"windowOpacity",text:"Window opacity",options:fDa},{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:VY(.25)},{option:.5,text:VY(.5)},{option:.75,text:VY(.75)},{option:1,text:VY(1)}]}];g.u(g.XY,g.rs);g.k=g.XY.prototype;
g.k.MB=function(a){var b=!1,c=g.lp(a),d=gp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.kp(a)?(e=!1,h=!0):l.ce&&(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.api.getVolume()+5,100);oY(this.Lb,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);oY(this.Lb,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.oe()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.oe()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.zy(!0);(b||h)&&this.Ac.Ij();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.jp(a);l.C&&(a={keyCode:g.lp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.kp(a),fullscreen:this.api.isFullscreen()},this.api.va("onKeyPress",a))};
g.k.NB=function(a){this.handleGlobalKeyUp(g.lp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.jX(g.cX(this.api));c&&(c=c.Sk)&&c.Za&&(c.KB(a),b=!0);9===a&&(this.zy(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){e=!1;c=this.api.T();if(c.ce)return e;var h=g.jX(g.cX(this.api));if(h&&(h=h.Sk)&&h.Za)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=h.JB(a)}c.G||e||(e=f||String.fromCharCode(a).toLowerCase(),this.B+=e,0==="awesome".indexOf(this.B)?(e=!0,7===this.B.length&&Dn(this.api.getRootNode(),"ytp-color-party")):(this.B=e,e=0==="awesome".indexOf(this.B)));if(!e){f=(f=this.api.getVideoData())?f.Ca:[];switch(a){case 80:b&&!c.Y&&(nY(this.Lb,
soa(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:b&&!c.Y&&(nY(this.Lb,cO(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.oe()&&(c.ca("web_player_seek_chapters_by_shortcut")&&this.u?UY(this.u,-1,10):nY(this.Lb,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.api.seekBy(-10*this.api.getPlaybackRate()),e=!0);break;case 76:this.api.oe()&&(c.ca("web_player_seek_chapters_by_shortcut")&&this.u?UY(this.u,1,10):nY(this.Lb,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.api.seekBy(10*this.api.getPlaybackRate()),e=!0);break;case 37:this.api.oe()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=pya(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(nya(this.u,-1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&this.u?UY(this.u,-1,5):nY(this.Lb,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.api.seekBy(-5*this.api.getPlaybackRate()),e=!0));break;case 39:this.api.oe()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=oya(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(nya(this.u,1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&null!=this.u?UY(this.u,1,5):nY(this.Lb,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.api.seekBy(5*this.api.getPlaybackRate()),e=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),oY(this.Lb,this.api.getVolume(),!1)):(this.api.mute(),oY(this.Lb,0,!0));e=!0;break;case 32:case 75:c.Y||(b=!g.LL(g.AJ(this.api)),this.Lb.km(b),b?this.api.playVideo():this.api.pauseVideo(),e=!0);break;case 190:b?c.Tb&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),Wxa(this.Lb,!1),e=!0):this.api.oe()&&(rya(this,1),e=!0);break;case 188:b?c.Tb&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-
.25,!0),Wxa(this.Lb,!0),e=!0):this.api.oe()&&(rya(this,-1),e=!0);break;case 70:Jxa(this.api)&&(this.api.toggleFullscreen()["catch"](function(){}),e=!0);
break;case 27:this.D()&&(e=!0)}if("3"!==c.controlsType)switch(a){case 67:g.DX(g.cX(this.api))&&(c=this.api.getOption("captions","track"),this.api.toggleSubtitles(),nY(this.Lb,YN(),!c||c&&!c.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),e=!0);break;case 79:ZY(this,"textOpacity");break;case 87:ZY(this,"windowOpacity");break;case 187:case 61:ZY(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ZY(this,"fontSizeIncrement",!0,!0)}var l;48<=a&&57>=a?l=a-48:96<=a&&105>=
a&&(l=a-96);null!=l&&this.api.oe()&&(a=this.api.getProgressState(),this.api.seekTo(l/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),e=!0);e&&this.Ac.Ij()}return e};
g.k.zy=function(a){g.K(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.K(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.aa=function(){this.C.Yf();g.rs.prototype.aa.call(this)};g.u($Y,g.V);$Y.prototype.na=function(){var a=g.kC(this.J.T())&&g.hX(this.J)&&g.U(g.AJ(this.J),128),b=this.J.getPlayerSize();this.visible=this.u.Jf()&&!a&&240<=b.width;g.K(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&SY(this.tooltip);g.LN(this.J,this.element,this.visible&&this.N)};
$Y.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.J,this.element,this.visible&&a)};
$Y.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-overflow-button-visible")};g.u(aZ,g.dY);g.k=aZ.prototype;g.k.iL=function(a){a=gp(a);g.Me(this.element,a)&&(g.Me(this.B,a)||g.Me(this.closeButton,a)||eY(this))};
g.k.ib=function(){g.dY.prototype.ib.call(this);this.tooltip.Uh(this.element)};
g.k.show=function(){this.Za&&this.J.W("OVERFLOW_PANEL_OPENED");g.dY.prototype.show.call(this);sya(this,!0)};
g.k.hide=function(){g.dY.prototype.hide.call(this);sya(this,!1)};
g.k.hL=function(a){!a&&this.ff()&&eY(this)};
g.k.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Za){b.focus();break}};g.u(cZ,g.V);cZ.prototype.zc=function(a){this.element.setAttribute("aria-checked",String(a))};
cZ.prototype.onClick=function(a){g.QX(a,this.api)&&this.api.playVideoAt(this.index)};g.u(dZ,g.dY);g.k=dZ.prototype;g.k.show=function(){g.dY.prototype.show.call(this);this.C.R(this.api,"videodatachange",this.zx);this.C.R(this.api,"onPlaylistUpdate",this.zx);this.zx()};
g.k.hide=function(){g.dY.prototype.hide.call(this);g.us(this.C);this.updatePlaylist(null)};
g.k.zx=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.gu=function(){var a=this.playlist,b=a.Ks;if(b===this.D)this.selected.zc(!1),this.selected=this.B[a.index];else{for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.B=[];for(d=0;d<c;d++){var e=new cZ(this.api,a,d);this.B.push(e);e.fa(this.items)}this.selected=this.B[a.index];this.D=b}this.selected&&this.selected.zc(!0)};
g.k.nP=function(a){var b=this.api.getVideoUrl(!0);g.RX(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.gu,this),this.playlist=a,this.D=null,a){a.subscribe("shuffle",this.gu,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.yK(c,d),playlisturl:this.api.getVideoUrl(!0)});this.gu()}else this.Za&&this.hide();
else this.playlist&&this.gu()};
g.k.focus=function(){this.selected.focus()};
g.k.aa=function(){this.hide();g.dY.prototype.aa.call(this)};g.u(eZ,g.V);
eZ.prototype.na=function(){var a=g.kC(this.api.T());g.K(this.element,"ytp-playlist-menu-button-tiny",400>g.fH(this.api).getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.yK("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.yK("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Za||(this.show(),SY(this.tooltip)),this.visible=!0):this.Za&&
(this.hide(),SY(this.tooltip))};
eZ.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.api,this.element,this.visible&&a)};
eZ.prototype.u=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.na,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.na,this);this.na()};g.u(fZ,g.V);g.k=fZ.prototype;
g.k.Mv=function(a){if(!this.C){if(a){this.tooltipRenderer=a;var b,c,d,e,f,h,l,m;a=this.tooltipRenderer.text;var n=!1;(null===(b=null===a||void 0===a?void 0:a.runs)||void 0===b?0:b.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),n=!0);g.Fg(this.title,n);b=this.tooltipRenderer.detailsText;a=!1;(null===(c=null===b||void 0===b?void 0:b.runs)||void 0===c?0:c.length)&&b.runs[0].text&&(this.update({details:b.runs[0].text.toString()}),a=!0);g.Fg(this.details,a);c=this.tooltipRenderer.acceptButton;
b=!1;(null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===d?void 0:d.text)||void 0===e?void 0:e.runs)||void 0===f?0:f.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),b=!0);g.Fg(this.acceptButton,b);d=this.tooltipRenderer.dismissButton;e=!1;(null===(m=null===(l=null===(h=null===d||void 0===d?void 0:d.buttonRenderer)||void 0===h?void 0:h.text)||void 0===l?void 0:l.runs)||void 0===m?0:m.length)&&
d.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.Fg(this.dismissButton,e)}this.u=tya(this);this.B=!1;g.DN(this,!0);(h=!this.u)||(h=this.u,l=window.getComputedStyle(h),h="none"===l.display||"hidden"===l.visibility||"true"===h.getAttribute("aria-hidden"));h||this.J.app.visibility.u?g.DN(this,!1):(h=g.Eg(this.u),h.width&&h.height?(this.F.Gn(this.element,this.u),l=g.fH(this.J).getPlayerSize().height-g.Eg(this.element).height-h.height-
12,this.element.style.top=l+"px",l=this.ga("ytp-promotooltip-pointer"),m=g.Cg(this.u,this.J.getRootNode()),d=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.J.isFullscreen()?18:12,l.style.left=m.x-d+h.width/2-e+"px"):g.DN(this,!1));this.D||(this.D=!0,gZ(this,0))}};
g.k.bN=function(){g.DN(this,!1);this.B=!0};
g.k.fM=function(){this.C=!0;gZ(this,1);g.DN(this,!1)};
g.k.gN=function(){this.C=!0;gZ(this,2);g.DN(this,!1)};
g.k.Sa=function(){this.B||(this.u||(this.u=tya(this)),this.Mv())};g.u(hZ,g.V);hZ.prototype.u=function(a){g.DN(this,g.U(a.state,2))};
hZ.prototype.onClick=function(){g.AJ(this.J);this.J.playVideo()};g.u(g.iZ,g.V);g.iZ.prototype.onClick=function(){var a=this.api.T(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);navigator.share?navigator.share({title:b.title,url:a}):(this.u.dj(),eY(this.C,this.element,!1));g.wX(this.api,this.element)};
g.iZ.prototype.na=function(){var a=this.api.T(),b=this.api.getVideoData();this.u.Jf();var c=g.kC(a)&&g.hX(this.api)&&g.U(g.AJ(this.api),128);this.ua("icon",{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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.api.getPresentingPlayerType()||
!b.showShareButton||b.uq||c;c=g.fH(this.api).getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.K(this.element,"ytp-share-button-visible",this.visible);g.DN(this,this.visible);SY(this.tooltip);g.LN(this.api,this.element,this.visible&&this.N)};
g.iZ.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.api,this.element,this.visible&&a)};
g.iZ.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-share-button-visible")};g.u(g.jZ,g.dY);g.k=g.jZ.prototype;g.k.pL=function(a){a=gp(a);g.Me(this.F,a)||g.Me(this.closeButton,a)||eY(this)};
g.k.ib=function(){g.dY.prototype.ib.call(this);this.tooltip.Uh(this.element)};
g.k.show=function(){var a=this.Za;g.dY.prototype.show.call(this);this.na();a||this.api.va("onSharePanelOpened")};
g.k.na=function(){var a=this;g.I(this.element,"ytp-share-panel-loading");g.Bn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId(),d=c&&this.D.checked,e=this.api.T();g.R(e.experiments,"web_player_innertube_share_panel")?HU(gH(this.api.app),b.getSharePanelCommand,{includeListId:d}).then(function(f){vya(a,f)}):(g.K(this.element,"ytp-share-panel-has-playlist",!!c),b={action_get_share_info:1,
video_id:b.videoId},e.ie&&(b.authuser=e.ie),e.pageId&&(b.pageid=e.pageId),g.kC(e)&&g.UT(b,"emb_share"),d&&(b.list=c),g.pq(e.P+"share_ajax",{method:"GET",onError:function(){xya(a)},
onSuccess:function(f,h){h?vya(a,h):xya(a)},
Lh:b,withCredentials:!0}));c=this.api.getVideoUrl(!0,!0,!1,!1);this.ua("link",c);this.ua("linkText",c);this.ua("shareLinkWithUrl",g.yK("Share link $URL",{URL:c}));TX(this.C)};
g.k.oL=function(a){!a&&this.ff()&&eY(this)};
g.k.focus=function(){this.C.focus()};
g.k.aa=function(){g.dY.prototype.aa.call(this);wya(this)};g.u(mZ,g.V);g.k=mZ.prototype;g.k.aa=function(){Aya(this);g.V.prototype.aa.call(this)};
g.k.IM=function(a){a.target!==this.dismissButton.element&&(zya(this,!1),this.J.va("innertubeCommand",this.onClickCommand))};
g.k.JM=function(){this.dismissed=!0;zya(this,!0);this.Kh()};
g.k.rO=function(a){this.X=a;this.Kh()};
g.k.Oa=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.u=!0);if(d||!b.videoId)this.D=this.C=!1;d=b.shoppingOverlayRenderer;this.B=this.G=this.X=this.enabled=!1;if(d){this.enabled=!0;var e,f;this.C||(this.C=!!d.trackingParams)&&g.IN(this.J,this.badge.element,d.trackingParams||null);this.D||(this.D=!(null===(e=d.dismissButton)||void 0===e||!e.trackingParams))&&g.IN(this.J,this.dismissButton.element,(null===(f=d.dismissButton)||void 0===f?
void 0:f.trackingParams)||null);this.text=g.T(d.text);if(e=null===(c=d.dismissButton)||void 0===c?void 0:c.a11yLabel)this.ha=g.T(e);this.onClickCommand=d.onClickCommand;Aya(this);d.timing?(f=d.timing,d=[],e=f.visible,f=f.expanded,e&&d.push(new g.TD(1E3*e.startSec,1E3*e.endSec,{priority:7,namespace:"shopping_overlay_visible"})),f&&d.push(new g.TD(1E3*f.startSec,1E3*f.endSec,{priority:7,namespace:"shopping_overlay_expanded"})),g.nN(this.J,d)):this.G=this.B=!0}d=this.text||"";g.Ne(g.re("ytp-shopping-overlay-badge-title",
this.element),d);this.badge.element.setAttribute("aria-label",d);this.dismissButton.element.setAttribute("aria-label",this.ha?this.ha:"");lZ(this);this.Kh()};
g.k.cR=function(a){this.ra=a;this.Kh()};
g.k.Kh=function(){nZ(this)?this.K.show():this.K.hide();yya(this)};
g.k.Dg=function(a){(this.B=a)?(kZ(this),lZ(this,!1)):this.ea.start();this.Kh()};
g.k.DQ=function(){if(this.expanded){this.V.show();var a=this.F.element.scrollWidth}else a=this.F.element.scrollWidth,this.V.hide();this.ka=34+a;g.K(this.badge.element,"ytp-shopping-overlay-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.ka)+"px";this.P.start()};
g.k.iI=function(){this.badge.element.style.width=(this.expanded?this.ka:34)+"px";this.Y.start()};
g.k.qL=function(){this.enabled=!1;this.Kh()};
g.k.OM=function(a){this.da=1===a;this.Kh()};g.u(oZ,g.dY);oZ.prototype.show=function(){g.dY.prototype.show.call(this);this.B.start()};
oZ.prototype.hide=function(){g.dY.prototype.hide.call(this);this.B.stop()};g.u(pZ,g.V);pZ.prototype.onClick=function(){var a=g.Z(this.J.app);a&&a.B&&a.B.qx()};
pZ.prototype.na=function(){var a=g.Z(this.J.app);g.DN(this,!!a&&a.Df);this.ua("icon",this.J.Rl()?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{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"}}]})};new yq("yt.autonav");g.u(qZ,g.V);g.k=qZ.prototype;
g.k.Fp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.uX(this.J)&&400<=g.fH(this.J).getPlayerSize().width)this.u||(this.u=!0,g.DN(this,this.u),this.B.push(this.R(this.J,"videodatachange",this.Fp)),this.B.push(this.R(this.J,"videoplayerreset",this.Fp)),this.B.push(this.R(this.J,"onPlaylistUpdate",this.Fp)),this.B.push(this.R(this.J,"autonavchange",this.fD)),a=this.J.getVideoData(),this.fD(a.autonavState),g.LN(this.J,this.element,this.u));else{this.u=!1;g.DN(this,this.u);a=g.q(this.B);
for(var b=a.next();!b.done;b=a.next())this.Eb(b.value)}};
g.k.fD=function(a){this.isChecked=1!==a||!g.js(g.hs.getInstance(),140);Bya(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;var a=this.J,b=this.isChecked?2:1;mBa(a.app,b);b&&j1(a.app,b);Bya(this);g.wX(this.J,this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ga("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.sZ,g.V);g.sZ.prototype.aa=function(){this.u=null;g.V.prototype.aa.call(this)};g.u(tZ,g.V);tZ.prototype.X=function(a){var b=g.Eg(this.G).width,c=g.Eg(this.V).width,d=this.K.Id()?3:1;a=a.width-b-c-40*d-52;0<a&&(this.D.style.maxWidth=a+"px")};
tZ.prototype.onClick=function(){this.J.va("innertubeCommand",this.C)};
tZ.prototype.updateVideoData=function(a,b){var c=b.WP;this.C=null===c||void 0===c?void 0:c.command;this.u.disabled=null==this.C;g.K(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Hc()};
tZ.prototype.Hc=function(){var a="",b=this.P.Ca;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=WY(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.B)this.J.va("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;a!==this.F&&(this.update({title:a}),this.F=a);a?this.show():this.hide()};g.u(g.uZ,g.V);g.uZ.prototype.Wb=function(a){g.U(a.state,32)?vZ(this,this.api.cg()):this.Za&&(g.U(a.state,16)||g.U(a.state,1))||this.u.hide()};
g.uZ.prototype.Yd=function(){var a=g.AJ(this.api);(g.U(a,32)||g.U(a,16))&&wZ(this)};
g.uZ.prototype.C=function(){this.B=NaN;wZ(this)};
g.uZ.prototype.hide=function(){this.Og&&vZ(this,null);g.V.prototype.hide.call(this)};g.u(xZ,g.V);xZ.prototype.onClick=function(){g.wX(this.u,this.element);this.u.va("onFullerscreenEduClicked")};
xZ.prototype.na=function(){this.u.isFullscreen()?this.B?this.C.hide():this.C.show():this.hide();g.LN(this.u,this.element,this.u.isFullscreen()&&!this.B)};g.u(g.yZ,g.V);g.k=g.yZ.prototype;g.k.onClick=function(){var a=this;if(this.J.T().ka||this.J.T().ca("embeds_enable_mobile_custom_controls"))try{this.J.toggleFullscreen()["catch"](function(b){a.gp(b)})}catch(b){this.gp(b)}else eY(this.message,this.element,!0)};
g.k.gp=function(a){String(a).includes("fullscreen error")?g.Gr(a):g.Fr(a);this.Nx()};
g.k.Nx=function(){this.disable();this.message.uc(this.element,!0)};
g.k.Bj=function(){os()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.MH=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.Nx()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Yo(["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/);this.message=new g.dY(this.J,{I:"div",ia:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{I:"a",U:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.T().F},Z:b[2]},b[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",function(c){a.C.Mo(a.message,c)});
g.DP(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.u)();this.u=null}};
g.k.na=function(){g.DN(this,Jxa(this.J))};
g.k.iD=function(a){if(a){var b={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"g",L:"ytp-fullscreen-button-corner-2",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",L:"ytp-fullscreen-button-corner-3",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",L:"ytp-fullscreen-button-corner-0",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
L:"ytp-fullscreen-button-corner-1",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.UX(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"g",L:"ytp-fullscreen-button-corner-0",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",L:"ytp-fullscreen-button-corner-1",S:[{I:"path",
sb:!0,L:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",L:"ytp-fullscreen-button-corner-2",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",L:"ytp-fullscreen-button-corner-3",S:[{I:"path",sb:!0,L:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.UX(this.J,"Full screen","f");this.ua("icon",b);this.ua("title",this.message?null:a);SY(this.C.Jb())};
g.k.aa=function(){this.message||((0,this.u)(),this.u=null);g.V.prototype.aa.call(this)};g.u(zZ,g.V);zZ.prototype.onClick=function(){this.J.va("onCollapseMiniplayer");g.wX(this.J,this.element)};
zZ.prototype.na=function(){this.visible=!this.J.isFullscreen();g.DN(this,this.visible);g.LN(this.J,this.element,this.visible&&this.N)};
zZ.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.J,this.element,this.visible&&a)};g.u(AZ,g.V);AZ.prototype.Oa=function(a){this.na("newdata"===a)};
AZ.prototype.na=function(a){var b=this.J.getVideoData(),c=b.Yk,d=g.AJ(this.J);d=(g.LL(d)||g.U(d,4))&&0<c.length;g.DN(this,d);a&&(this.u=!0);if(d){this.u&&this.B.Hb();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.yK("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.Sd("default.jpg")});SY(this.tooltip)}else this.B.stop()};
AZ.prototype.C=function(){RY(this.tooltip,this.element,"More cameras available");this.u=!1};g.u(BZ,g.dY);g.k=BZ.prototype;g.k.show=function(){var a=this.Za;g.dY.prototype.show.call(this);a||(this.C.R(this.api,"presentingplayerstatechange",this.na),this.C.R(this.api,"videodatachange",this.na),this.na())};
g.k.hide=function(){this.C&&(g.us(this.C),g.dY.prototype.hide.call(this))};
g.k.na=function(){var a=this,b=this.api.getVideoData(),c=b.Yk,d,e={};for(d=0;d<c.length;e={Pu:e.Pu},d++){var f=this.B[d];f||(f=new g.V({I:"button",ia:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{I:"div",L:"ytp-multicam-menu-item-title",Z:"{{cameraName}}"}]}),e.Pu=d,f.wa("click",function(n){return function(){var p=n.Pu,r=a.api.getVideoData(),t=a.api;p=r.Yk[p];r=g.Z(t.app,1).getVideoData();var w=t.getCurrentTime();p.id===r.videoId?g.Z(t.app)!==
g.Z(t.app,1)&&(g.iN(t.app,1),r.isLivePlayback||t.seekTo(w)):(g.iN(t.app,4),t.app.loadVideoByPlayerVars({videoId:p.id,title:r.title,start:r.isLivePlayback?null:w,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:r.ED}}}},4))}}(e)),f.fa(this.items),this.B[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=HC(this.api.T(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.B.length;)this.B.pop().dispose();d=g.AJ(this.api);b=c.length||!b.Fc();g.LL(d)||g.U(d,4)||b||!this.ff()||eY(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Yk,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.B[c].focus();break}};
g.k.aa=function(){g.fg(this.B);g.dY.prototype.aa.call(this)};g.u(CZ,g.B);CZ.prototype.u=function(){var a=(0,g.O)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(g.Mn(gDa,a));1>a&&this.delay.start()};
var gDa=new g.Ln(0,0,.4,0,.2,1,1,1),Hya=/[0-9.-]+|[^0-9.-]+/g;g.u(EZ,g.V);g.k=EZ.prototype;g.k.jD=function(a){this.visible=300<=a.width;g.DN(this,this.visible);g.LN(this.J,this.element,this.visible&&this.N)};
g.k.XN=function(){this.J.T().V?this.J.isMuted()?this.J.unMute():this.J.mute():eY(this.message,this.element,!0);g.wX(this.J,this.element)};
g.k.gL=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.T(),f=0===d?1:50<a?1:0;if(this.F!==f){var h=this.X;isNaN(h)?Kya(this,f):DZ(this.ba,function(m){Kya(c,h+(c.F-h)*m)},250);
this.F=f}d=0===d?1:0;if(this.D!==d){var l=this.P;isNaN(l)?Lya(this,d):DZ(this.V,function(m){Lya(c,l+(c.D-l)*m)},250);
this.D=d}e.V&&(e=g.UX(this.J,"Mute","m"),d=g.UX(this.J,"Unmute","m"),e=b?d:e,this.ua("title",e),this.ua("label",e),SY(this.tooltip))};
g.k.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.J,this.element,this.visible&&a)};
var Iya=["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"],Jya=["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.u(FZ,g.V);FZ.prototype.onClick=function(){this.J.togglePictureInPicture()};g.u(g.GZ,g.V);g.GZ.prototype.B=function(a){Mya(this,a.state)};
g.GZ.prototype.Oa=function(){g.K(this.element,"ytp-play-button-playlist",g.hX(this.J))};
g.GZ.prototype.Vn=function(){g.LL(g.AJ(this.J))?this.J.pauseVideo():this.J.playVideo()};g.u(g.JZ,g.V);g.k=g.JZ.prototype;g.k.Oa=function(){Oya(this);this.D&&(this.Eb(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.Oa,this),this.D=this.R(this.J,"progresssync",this.kL);this.C=Pya(this);IZ(this);this.yx(g.fH(this.J).getPlayerSize())};
g.k.yx=function(a){a=void 0===a?g.fH(this.J).getPlayerSize():a;var b=g.hX(this.J)||this.u&&g.uX(this.J)||Qya(this);g.DN(this,b&&(this.u||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.G?b=g.QX(a,this.J):g.jp(a);b&&(this.u&&5===this.J.getPresentingPlayerType()?this.J.W("ytoprerollinternstitialnext"):this.u?this.J.nextVideo(!0):this.C?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.kL=function(){var a=Pya(this);a!==this.C&&(this.C=a,IZ(this))};
g.k.aa=function(){this.B&&(this.B(),this.B=null);Oya(this);g.V.prototype.aa.call(this)};g.u(KZ,g.V);KZ.prototype.Na=function(a){return"PLAY_PROGRESS"===a?this.F:"LOAD_PROGRESS"===a?this.D:this.B};Rya.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.F=d;this.u=b-c-d;this.position=g.be(a,c,c+this.u);this.D=this.position-c;this.C=this.D/this.u};g.u(Sya,g.V);g.u(g.NZ,g.EN);g.k=g.NZ.prototype;g.k.Sa=function(){g.PZ(this);QZ(this);Wya(this,this.ra)};
g.k.Hc=function(){QZ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.cu()};
g.k.mL=function(a){if(!g.kp(a)){var b=!1;switch(g.lp(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.jp(a)}};
g.k.kD=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.ZI=function(){this.kD("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.ac=c&&a.allowLiveDvr;fza(this,this.api.oe());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,VZ(this),RZ(this,this.G,this.ha)):this.cu(),g.J_(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData().multiMarkersPlayerBarRenderer;var d=this.api.getVideoData().yv;c=null!=c||null!=d&&0<d.length}if(c)if(c=this.api.getVideoData().multiMarkersPlayerBarRenderer){var e;this.Ka=
null===(e=c.visibleOnLoad)||void 0===e?void 0:e.key;e=c.markersMap;null==this.Ka&&(this.Ka=e[0].key);e=g.q(e);for(c=e.next();!c.done;c=e.next())c=c.value,c.key&&c.value&&(this.Mb[c.key]=c.value);e=this.Ka;var f,h;if(c=null===(f=this.Mb[e])||void 0===f?void 0:f.chapters)Xya(this,c),this.api.getVideoData().Ca=this.Ca;if(f=null===(h=this.Mb[e])||void 0===h?void 0:h.markers){var l;Uya(this);h=g.q(f);for(f=h.next();!f.done;f=h.next())if(e=f.value,f=new Sya,e=e.markerRenderer)f.title=(null===(l=e.title)||
void 0===l?void 0:l.simpleText)||"",f.timeRangeStartMillis=e.timeRangeStartMillis||NaN,f.thumbnailUrl=e.thumbnailUrl||"",f.onActiveCommand=(null===e||void 0===e?void 0:e.onActiveCommand)||void 0,this.ra.push(f),g.C(this,f),f.fa(this.he,this.he.children.length);Wya(this,this.ra)}}else{if(l=this.api.getVideoData().yv)Xya(this,l),this.api.getVideoData().Ca=this.Ca}else Tya(this),Uya(this)}QZ(this)};
g.k.lL=function(a){this.F&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.F.cancel()};
g.k.rG=function(a){(this.K=a)?(this.ua("clipstarticon",ooa()),this.ua("clipendicon",ooa()),this.ua("clipstarttitle",null),this.ua("clipendtitle",null)):(this.ua("clipstarticon",WN()),this.ua("clipendicon",VN()),this.ua("clipstarttitle","Watch entire video"),this.ua("clipendtitle","Watch entire video"));VZ(this);RZ(this,this.G,this.ha)};
g.k.uO=function(a,b,c){var d=g.yg(this.element),e=OZ(this).u,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=pP(this.u,Number(c.getAttribute("data-position")),0)*e+g.yg(this.Qc).x);this.Qa.x=a-d.x;this.Qa.y=b-d.y;a=OZ(this);d=UZ(this,a);b=f||g.dP(this.ac?d-this.u.u:d);c=a.position+this.ce;d-=this.api.pc();if(this.api.cg()){if(1<this.Ca.length)for(e=TZ(this,this.Qa.x,!0),h=0;h<this.Ca.length;)g.K(this.Ca[h].u,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=WY(this.Ca,1E3*d);(e=this.Ca[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=WY(this.Ca,1E3*d);this.da=$ya(this,d,h)?h:$ya(this,d,h+1)?h+1:-1;g.K(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.da&&1<this.Ca.length);h=320*this.tooltip.scale;var m=e.length*(this.B?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;var n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);yza(this.tooltip,
c,d,b,!!f,l,e,n)}else yza(this.tooltip,c,d,b,!!f,l);g.K(this.api.getRootNode(),"ytp-progress-bar-hover",!g.U(g.AJ(this.api),64));Zya(this)};
g.k.tO=function(){g.J_(this.tooltip);g.Bn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.sO=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.de=b;1<this.Ca.length&&0<this.Rb&&-1!==this.da?this.api.seekTo(this.Ca[this.da].startTime/1E3,!1):this.api.seekTo(UZ(this,OZ(this)),!1);g.I(this.element,"ytp-drag");(this.dc=g.LL(g.AJ(this.api)))&&this.api.pauseVideo()};
g.k.vO=function(){var a=this;this.rb=0;g.Bn(this.element,"ytp-pull-ui");g.Bn(this.element,"ytp-pulling");this.D&&(this.D.dispose(),this.D=null);if(0<this.P){var b=(0,g.O)();this.D=new g.qn(function(){var c=a.P,d=OZ(a).position,e=1-Math.pow(1-((0,g.O)()-b)/200,3);d+=e*(a.G*a.C-d);if(0>e||1<e)e=1;aza(a,(1-e)*c,d,a.G);1>e&&a.D.start()});
this.D.start()}if(g.U(g.AJ(this.api),32)||3===this.api.getPresentingPlayerType())1<this.Ca.length&&0<this.Rb&&-1!==this.da?this.api.seekTo(this.Ca[this.da].startTime/1E3):this.api.seekTo(UZ(this,OZ(this))),g.Bn(this.element,"ytp-drag"),this.dc&&!g.U(g.AJ(this.api),2)&&this.api.playVideo()};
g.k.wO=function(a,b){var c=this,d=!1,e=!1,f=OZ(this);3600<=this.u.getLength()&&1===this.Ca.length&&(aza(this,this.de-b-10,f.position,f.C),e=!0,d=this.P>.1*(this.B?60:40),f=OZ(this));g.K(this.element,"ytp-pull-ui",e);d&&g.I(this.element,"ytp-pulling");d=0;f.B&&0>=f.position&&1===this.Ca.length?d=-1:f.F&&f.position>=f.width&&1===this.Ca.length&&(d=1);if(this.rb!==d&&1===this.Ca.length&&(this.rb=d,this.D&&(this.D.dispose(),this.D=null),d)){var h=(0,g.O)();this.D=new g.qn(function(){var l=c.C*(c.ea-1);
c.V=g.be(c.V+c.rb*((0,g.O)()-h)*.3,0,l);SZ(c);c.api.seekTo(UZ(c,OZ(c)),!1);0<c.V&&c.V<l&&c.D.start()});
this.D.start()}this.api.seekTo(UZ(this,f),!1)};
g.k.setPosition=function(a,b,c){var d=this.C!==b;this.ce=a;this.C=b;this.B=c;SZ(this);1===this.Ca.length&&(this.Ca[0].width=b||0);d&&g.PZ(this)};
g.k.TD=function(){this.K||(this.ua("clipstarticon",UN()),this.ua("clipendicon",UN()),g.I(this.element,"ytp-clip-hover"))};
g.k.SD=function(){this.K||(this.ua("clipstarticon",WN()),this.ua("clipendicon",VN()),g.Bn(this.element,"ytp-clip-hover"))};
g.k.cu=function(){this.clipStart=0;this.clipEnd=Infinity;VZ(this);RZ(this,this.G,this.ha)};
g.k.sG=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.Y[c]){var d=g.Fe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Y[c]=b;this.Ra[c]=d;yn(d,b.style);bza(this,c);g.R(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.Ca[0].C.appendChild(d)}}else eza(this,b)};
g.k.kQ=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())eza(this,b.value)};
g.k.aa=function(){fza(this,!1);g.EN.prototype.aa.call(this)};g.u(YZ,g.V);YZ.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
YZ.prototype.na=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.DN(this,a&&400<=g.fH(this.J).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.ua("icon",{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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.ua("icon",g.QN())}g.K(this.element,"ytp-remote-button-active",this.isActive())}};
YZ.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Va,b=this.element;if(a.ff())a.ib();else{a.initialize();a:{var c=g.q(a.Xc.items);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.uc(b));a.uc(b)}}};g.u(ZZ,g.V);ZZ.prototype.u=function(a){a=this.B&&400<=a.width;g.DN(this,a);g.LN(this.J,this.element,a)};
ZZ.prototype.C=function(){if(this.Va.Za)this.Va.ib();else{var a=g.DX(g.cX(this.J));a&&!a.loaded&&(a.ke("tracklist",{includeAsr:!0}).length||a.load());g.wX(this.J,this.element);this.Va.uc(this.element)}};
ZZ.prototype.updateBadge=function(){var a=(a=g.Z(this.J.app))?!!(a.u.Ma&&a.u.Ma.video&&nw(a.u.Ma.video)):!1;var b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.kX(this.J),e=c&&!!g.jX(g.cX(this.J));b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.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.u(a_,g.HY);a_.prototype.Fc=function(){var a=g.lX(g.cX(this.J));return void 0!==a&&a.loaded};
a_.prototype.na=function(){void 0!==g.lX(g.cX(this.J))&&3!==this.J.getPresentingPlayerType()?this.u||(this.Va.Pb(this),this.u=!0):this.u&&(this.Va.Zd(this),this.u=!1);this.setValue(this.Fc())};
a_.prototype.B=function(a){this.Fc();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.W("annotationvisibility",a)};
a_.prototype.aa=function(){this.u&&this.Va.Zd(this);g.HY.prototype.aa.call(this)};g.u(g.b_,g.zY);g.k=g.b_.prototype;g.k.open=function(){g.JY(this.Va,this.C)};
g.k.zc=function(a){hza(this);this.options[a].element.setAttribute("aria-checked","true");this.sc(this.qh(a));this.B=a};
g.k.jv=function(a,b,c){var d=this;b=new g.zY({I:"div",ia:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{I:"div",ia:["ytp-menuitem-label"],Z:"{{label}}"}]},b,this.qh(a,!0));b.wa("click",function(){d.He(a)});
return b};
g.k.enable=function(a){this.F?a||(this.F=!1,this.vn(!1)):a&&(this.F=!0,this.vn(!0))};
g.k.vn=function(a){a?this.Va.Pb(this):this.Va.Zd(this)};
g.k.He=function(a){this.W("select",a)};
g.k.qh=function(a){return a.toString()};
g.k.nL=function(a){g.kp(a)||39!==g.lp(a)||(this.open(),g.jp(a))};
g.k.aa=function(){this.F&&this.Va.Zd(this);g.zY.prototype.aa.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.u(d_,g.b_);d_.prototype.na=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.c_(this,g.Pc(a,this.D)),this.tracks=g.Hb(a,this.D,this),this.u.sc(a.length?" ("+a.length+")":""),this.W("size-change"),this.zc(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
d_.prototype.He=function(a){g.b_.prototype.He.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Va.Pf()};
d_.prototype.D=function(a){return a.toString()};g.u(e_,g.HY);
e_.prototype.C=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.uX(this.J))this.u||(this.Va.Pb(this),this.u=!0,this.B.push(this.R(this.J,"videodatachange",this.C)),this.B.push(this.R(this.J,"videoplayerreset",this.C)),this.B.push(this.R(this.J,"onPlaylistUpdate",this.C)),this.B.push(this.R(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),g.LN(this.J,this.element,this.u));else if(this.u){this.Va.Zd(this);this.u=!1;a=g.q(this.B);for(var b=a.next();!b.done;b=
a.next())this.Eb(b.value)}};
e_.prototype.D=function(a){this.setValue(1!==a)};
e_.prototype.F=function(a){var b=this.J;a=a?2:1;mBa(b.app,a);a&&j1(b.app,a);this.u&&(g.LN(this.J,this.element,this.u),g.wX(this.J,this.element))};
e_.prototype.aa=function(){this.u&&this.Va.Zd(this);g.HY.prototype.aa.call(this)};g.u(f_,g.dY);f_.prototype.uc=function(){g.dY.prototype.uc.call(this);this.dialog.focus()};g.u(g_,g.zY);g_.prototype.yb=function(a){this.B&&g.LN(this.J,this.element,this.u&&a)};
g_.prototype.D=function(){var a,b,c=null===(b=null===(a=this.J.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.u){var d,e,f,h,l,m;c=null===(d=this.J.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.yY(this,h_(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.C=new f_(this.J,h_(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),h_(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),h_(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.C(this,this.C);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.B=!!d)g.HN(this.J,this.element,this,!0),g.IN(this.J,this.element,d);this.Va.Pb(this);this.u=!0}else!c&&this.u&&(this.Va.Zd(this),this.u=!1)};
g_.prototype.onClick=function(){this.B&&g.wX(this.J,this.element);this.Va.ib();this.C&&this.C.uc()};g.u(i_,g.b_);g.k=i_.prototype;g.k.Hp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.ul(),a=this.J.getAvailableQualityLevels(),g.qxa(this.J)&&g.rxa(this.J)&&a.unshift("missing-qualities"),vxa(this.J)&&a.unshift("inline-survey"),g.c_(this,a),a.length)){this.lD();this.enable(!0);return}this.enable(!1)};
g.k.lD=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.u=this.J.getPlaybackQuality(),this.zc(a),"auto"===a&&this.sc(this.qh(a)))};
g.k.He=function(a){"missing-qualities"!==a&&(g.b_.prototype.He.call(this,a),this.J.setPlaybackQuality(a),this.Va.ib(),this.Hp())};
g.k.jv=function(a,b,c){var d=this;if("inline-survey"!==a)return g.b_.prototype.jv.call(this,a,b,c);a=[{I:"span",Z:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Rq:c.Rq},f=e.next())c.Rq=f.value,f=new g.V({I:"span",L:"ytp-menuitem-inline-survey-response",S:[c.Rq?g.aO():$N()],U:{tabindex:"0",role:"button"}}),f.wa("click",function(h){return function(){var l=g.Z(d.J.app);l&&(l.jb("iqsr",h.Rq?"0":"1"),l.getVideoData().YB=!0);d.Va.ib();d.Hp()}}(c)),a.push(f);
return new g.zY({I:"div",L:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{I:"div",ia:["ytp-menuitem-label"],S:a}]},b)};
g.k.qh=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.T().F},Z:"Missing options?"};if("inline-survey"===a)return"";var c=[iza(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(iza(this,this.u,["ytp-menu-label-secondary"])));return{I:"div",S:c}};g.u(j_,g.V);g.k=j_.prototype;g.k.init=function(){this.jm(this.u);this.ua("minvalue",this.minimumValue);this.ua("maxvalue",this.maximumValue)};
g.k.tL=function(a){if(!g.kp(a)){switch(g.lp(a)){case 37:case 40:var b=-this.G;break;case 39:case 38:b=this.G;break;default:return}this.jm(this.u+b);g.jp(a)}};
g.k.rL=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.F:this.F;this.jm(b);g.jp(a)};
g.k.sL=function(a){a=(a-g.yg(this.B).x)/this.K*this.range+this.minimumValue;this.jm(a)};
g.k.jm=function(a,b){b=void 0===b?"":b;var c=g.be(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.ua("valuenow",c);this.ua("valuetext",b);this.V.style.left=(c-this.minimumValue)/this.range*(this.K-this.P)+"px";this.u=c};
g.k.focus=function(){this.Y.focus()};g.u(l_,j_);l_.prototype.X=function(){this.J.setPlaybackRate(this.u,!0)};
l_.prototype.jm=function(a){j_.prototype.jm.call(this,a,m_(this,a).toString());this.C&&(k_(this),this.ba())};
l_.prototype.ea=function(){var a=this.J.getPlaybackRate();m_(this,this.u)!==a&&(this.jm(a),k_(this))};g.u(n_,g.EN);n_.prototype.focus=function(){this.u.focus()};g.u(jza,CY);g.u(o_,g.b_);g.k=o_.prototype;g.k.qh=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.na=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);mza(this)};
g.k.vn=function(a){g.b_.prototype.vn.call(this,a);a?(this.K=this.R(this.J,"onPlaybackRateChange",this.uL),mza(this),kza(this,this.J.getPlaybackRate())):(this.Eb(this.K),this.K=null)};
g.k.uL=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||lza(this,b);kza(this,a)};
g.k.He=function(a){g.b_.prototype.He.call(this,a);a===this.u?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Va.Pf()};g.u(q_,g.b_);g.k=q_.prototype;g.k.zc=function(a){g.b_.prototype.zc.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.qh=function(a){return this.getOption(a).text||""};
g.k.He=function(a){g.b_.prototype.He.call(this,a);this.W("settingChange",this.setting,this.settings[a].option)};g.u(r_,g.DY);r_.prototype.ae=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.yk[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.zc(e),c.D.element.setAttribute("aria-checked",String(!d)),c.u.element.setAttribute("aria-checked",String(d)))}}};
r_.prototype.Mf=function(a,b){this.W("settingChange",a,b)};g.u(s_,g.b_);s_.prototype.getKey=function(a){return a.languageCode};
s_.prototype.qh=function(a){return this.languages[a].languageName||""};
s_.prototype.He=function(a){this.W("select",a);g.OY(this.Va)};g.u(t_,g.b_);g.k=t_.prototype;g.k.getKey=function(a){return g.Wb(a)?"__off__":a.displayName};
g.k.qh=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.He=function(a){"__translate__"===a?this.u.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.TT(this.J.T(),this.J.getVideoData()),g.WK(a)):(this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.b_.prototype.He.call(this,a),this.Va.Pf())};
g.k.na=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData();b=b&&b.kr;var c={};if(a||b){if(a){var d=this.J.getOption("captions","track");c=this.J.getOption("captions","tracklist",{includeAsr:!0});var e=this.J.getOption("captions","translationLanguages");this.tracks=g.Hb(c,this.getKey,this);var f=g.Pc(c,this.getKey);if(e.length&&!g.Wb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===
l});
taa(e,h)}oza(this.u,e);f.push("__translate__")}e=this.getKey(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.c_(this,f);this.zc(e);d&&d.translationLanguage?this.u.zc(this.u.getKey(d.translationLanguage)):hza(this.u);a&&this.D.ae(this.J.getSubtitlesUserSettings());this.K.sc(c&&c.length?" ("+c.length+")":"");this.W("size-change");this.enable(!0)}else this.enable(!1)};
g.k.yL=function(a){var b=this.J.getOption("captions","track");b=g.Zb(b);b.translationLanguage=this.u.languages[a];this.J.setOption("captions","track",b)};
g.k.Mf=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}pza(this,!0);this.G.start();this.D.ae(this.J.getSubtitlesUserSettings())};
g.k.ZO=function(a){a||this.G.Yf()};
g.k.aa=function(){this.G.Yf();g.b_.prototype.aa.call(this)};g.u(u_,g.LY);g.k=u_.prototype;g.k.initialize=function(){if(!this.Gd){this.Gd=!0;this.ix=new g_(this.J,this);g.C(this,this.ix);var a=new i_(this.J,this);g.C(this,a);a=new t_(this.J,this);g.C(this,a);a=new a_(this.J,this);g.C(this,a);this.J.T().Tb&&(a=new o_(this.J,this),g.C(this,a));this.J.T().tb&&!g.R(this.J.T().experiments,"web_player_move_autonav_toggle")&&(a=new e_(this.J,this),g.C(this,a));a=new d_(this.J,this);g.C(this,a);$Z(this.settingsButton,this.Xc.items.length)}};
g.k.Pb=function(a){this.initialize();this.Xc.Pb(a);$Z(this.settingsButton,this.Xc.items.length)};
g.k.Zd=function(a){this.Za&&1>=this.Xc.items.length&&this.hide();this.Xc.Zd(a);$Z(this.settingsButton,this.Xc.items.length)};
g.k.uc=function(a){this.initialize();0<this.Xc.items.length&&g.LY.prototype.uc.call(this,a)};
g.k.show=function(){g.LY.prototype.show.call(this);g.I(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.LY.prototype.hide.call(this);g.Bn(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Dg=function(a){var b;g.LN(this.J,this.element,a);null===(b=this.ix)||void 0===b?void 0:b.yb(a)};g.u(v_,g.V);v_.prototype.onClick=function(){var a=this.J.app;a.B.va("SIZE_CLICKED",!a.zd)};
v_.prototype.na=function(){g.DN(this,this.J.app.Df&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.Za){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{I:"path",sb:!0,U:{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"}}]};null==this.isWidescreen?this.ua("icon",b):Gya(this.transition,this.element,b);this.isWidescreen=a;b=g.UX(this.J,"Default view","t");var c=g.UX(this.J,"Theater mode","t");this.ua("title",a?b:c);SY(this.tooltip)}}};g.u(w_,g.V);w_.prototype.onClick=function(){this.J.toggleSubtitles()};
w_.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
w_.prototype.na=function(){var a=null!=g.DX(g.cX(this.J));g.DN(this,a&&300<=g.fH(this.J).getPlayerSize().width);a&&this.ua("pressed",this.isEnabled())};g.u(g.x_,g.V);g.k=g.x_.prototype;
g.k.Hc=function(){var a=g.fH(this.api).getPlayerSize().width,b=a>=this.K&&(!this.B||!g.U(g.AJ(this.api),64));g.DN(this,b);g.K(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.dP(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.C!==c&&(this.ua("currenttime",c),this.C=c);b=g.dP(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.D!==b&&(this.ua("duration",b),this.D=b)}this.B&&(a=a.isAtLiveHead,this.G!==a||this.F!==this.isPremiere)&&(this.G=a,this.F=this.isPremiere,this.Hc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.sc(this.isPremiere?"Premiere":"Live"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.u=g.sY(this.tooltip,this.liveBadge.element)))};
g.k.Oa=function(a,b,c){this.updateVideoData(g.R(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.Hc()};
g.k.updateVideoData=function(a){this.B=a.isLivePlayback&&!a.ni;this.isPremiere=a.isPremiere;g.K(this.element,"ytp-live",this.B)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};g.u(A_,g.V);g.k=A_.prototype;g.k.Bj=function(){var a=this.B.Id();this.F!==a&&(this.F=a,z_(this,this.api.getVolume(),this.api.isMuted()))};
g.k.oD=function(a){g.DN(this,350<=a.width)};
g.k.DL=function(a){if(!g.kp(a)){var b=g.lp(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.be(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.jp(a))}};
g.k.BL=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.be(b/10,-10,10));g.jp(a)};
g.k.dP=function(){y_(this,this.u,!0,this.D,this.B.ih());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.CL=function(a){var b=this.F?78:52,c=this.F?18:12;a-=g.yg(this.V).x;this.api.setVolume(100*g.be((a-c/2)/(b-c),0,1))};
g.k.cP=function(){y_(this,this.u,!1,this.D,this.B.ih());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.EL=function(a){z_(this,a.volume,a.muted)};
g.k.yA=function(){y_(this,this.u,this.C,this.D,this.B.ih())};
g.k.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.K,"ytp-volume-slider-active")};g.u(g.B_,g.V);g.B_.prototype.Oa=function(){var a=this.api.getVideoData(1).Lc,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.DN(this,this.visible);g.LN(this.api,this.element,this.visible&&this.N);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.ua("url",a))};
g.B_.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.eP(a),!1,!0,!0);g.kC(this.api.T())&&(b=g.Jd(b,g.UT({},"emb_logo")));g.RX(b,this.api,a);g.wX(this.api,this.element)};
g.B_.prototype.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.api,this.element,this.visible&&a)};g.u(D_,g.rs);g.k=D_.prototype;g.k.Yd=function(){this.Qc.Hc();this.Hh.Hc()};
g.k.xh=function(){this.Ax();this.Ac.B?this.Yd():g.J_(this.Qc.tooltip)};
g.k.Qp=function(){this.Yd();this.Fd.start()};
g.k.Ax=function(){var a=!this.J.T().u&&300>g.gza(this.Qc)&&g.AJ(this.J).Kb()&&!!window.requestAnimationFrame,b=!a;this.Ac.B||(a=b=!1);b?this.K||(this.K=this.R(this.J,"progresssync",this.Yd)):this.K&&(this.Eb(this.K),this.K=null);a?this.Fd.isActive()||this.Fd.start():this.Fd.stop()};
g.k.Sa=function(){var a=this.B.Id(),b=g.fH(this.J).getPlayerSize(),c=E_(this),d=Math.max(b.width-2*c,100);if(this.ka!==b.width||this.ha!==a){this.ka=b.width;this.ha=a;var e=tza(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";this.Qc.setPosition(c,e,a);this.B.Jb().ba=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-F_(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.At=e;c.Zn();this.Ax();!this.J.T().ca("html5_player_bottom_linear_gradient")&&g.R(this.J.T().experiments,
"html5_player_dynamic_bottom_gradient")&&g.rZ(this.ea,b.height)};
g.k.Oa=function(){var a=this.J.getVideoData();this.V.style.background=a.Lc?a.cj:"";g.DN(this.X,a.Fy)};
g.k.Na=function(){return this.C.element};var t2={},G_=(t2.CHANNEL_NAME="ytp-title-channel-name",t2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",t2.LINK="ytp-title-link",t2.SESSIONLINK="yt-uix-sessionlink",t2.SUBTEXT="ytp-title-subtext",t2.TEXT="ytp-title-text",t2.TITLE="ytp-title",t2);g.u(H_,g.V);H_.prototype.onClick=function(a){g.wX(this.api,this.element);var b=this.api.getVideoUrl(!g.eP(a),!1,!0);g.kC(this.api.T())&&(b=g.Jd(b,g.UT({},"emb_title")));g.RX(b,this.api,a)};
H_.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();this.ua("title",a.title);uza(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Xj&&c.wf?(this.ua("channelLink",c.Xj),this.ua("channelName",c.author)):uza(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.he;g.K(this.link,G_.FULLERSCREEN_LINK,c);b.N||!a.videoId||c?this.u&&(this.ua("url",null),this.Eb(this.u),this.u=null):(this.ua("url",this.api.getVideoUrl(!0)),
this.u||(this.u=this.R(this.link,"click",this.onClick)))};g.u(g.I_,g.V);g.k=g.I_.prototype;g.k.cE=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;wza(this,c)}};
g.k.DJ=function(){oF(this.u,this.C,160*this.scale)};
g.k.xi=function(){switch(this.type){case 2:var a=this.B;a.removeEventListener("mouseout",this.V);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.V);a.addEventListener("focus",this.D);zza(this);break;case 3:zza(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.cE,this),this.u=null),this.api.removeEventListener("videoready",this.X),this.Y.stop()}this.type=null;this.K&&this.G.hide()};
g.k.Uh=function(a){for(var b=0;b<arguments.length;++b);if(this.B)for(b=0;b<arguments.length;b++)g.Me(arguments[b],this.B)&&this.xi()};
g.k.aa=function(){null!=this.type&&this.xi();this.u&&this.u.dispose();g.V.prototype.aa.call(this)};g.u(g.K_,g.V);g.k=g.K_.prototype;g.k.Bt=function(){var a=this.J.getPlayerSize(),b=this.J.T(),c=this.J.getVideoData(),d=g.kC(b)&&g.hX(this.J)&&g.U(g.AJ(this.J),128);this.visible=b.Rk&&240<=a.width&&!c.isAd()&&c.Rk&&!d;g.DN(this,this.visible);this.icon&&Cza(this,this.icon);g.LN(this.J,this.element,this.visible&&this.N)};
g.k.JE=function(){this.u=!0;this.B=!1;this.na(1);this.J.T().u&&RY(this.tooltip,this.element);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_ADDED")};
g.k.pD=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;g.wX(this.J,this.element);var b=this.J.T(),c=this.pD();b.ie?Aza(this,c):this.J.app.Qa?this.J.requestStorageAccess(function(){g.Dq("embedsItpWatchLaterResult",{accepted:!0});Gp();Bza(a,c)},function(){g.Dq("embedsItpWatchLaterResult",{accepted:!1});
L_(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Bza(this,c)};
g.k.FP=function(a,b){this.B=!1;var c="An error occurred. Please try again later.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);L_(this,c)};
g.k.KE=function(){this.B=this.u=!1;this.na(2);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_REMOVED")};
g.k.FL=function(){this.B=this.u=!1;this.na(2)};
g.k.na=function(a,b){var c=this.J.T();Cza(this,a);if(b)this.update({title:b,image:null});else if(c.userDisplayName){var d={USER_NAME:c.userDisplayName};this.update({title:this.u?g.yK("Added as $USER_NAME",d):g.yK("Watch later as $USER_NAME",d),image:WC(c)})}else this.update({title:"Watch later",image:null});SY(this.tooltip)};
g.k.yb=function(a){g.V.prototype.yb.call(this,a);g.LN(this.J,this.element,this.visible&&a)};g.u(M_,g.hY);g.k=M_.prototype;g.k.Jb=function(){return this.tooltip};
g.k.AB=function(){return this.hf};
g.k.sl=function(a,b){b?this.Zh=a:this.Zh=null;this.og()};
g.k.Mo=function(a,b){if(b)this.Ek.push(a);else for(var c=this.Ek.length;0<=c;c--)if(this.Ek[c]===a){this.Ek.splice(c,1);break}MX(this.Ac,64,0<this.Ek.length)};
g.k.Ok=function(){g.mX(this.api)&&g.nX(this.api);pX(this.api);return!!this.Zh||Dza(this)||g.hY.prototype.Ok.call(this)};
g.k.og=function(){var a=!this.Ok(),b=a&&g.mX(this.api)&&!g.U(g.AJ(this.api),2),c=this.dn&&g.hX(this.api)&&g.U(g.AJ(this.api),128);a||c?(this.Ty.show(),this.Uy.show()):(this.Ty.hide(),this.Uy.hide(),this.tooltip.Uh(this.lg.element));b?this.Vh.uc():this.Vh.ib();this.hf&&sza(this.hf,!a);g.hY.prototype.og.call(this)};
g.k.Gn=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Eg(a),h=d||this.hf&&g.Me(this.hf.Na(),b),l=d=null;null!=c&&h||(d=g.Eg(b),l=g.Cg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;if(h){var m=this.hf;b=E_(m);d=tza(m);l=g.fH(this.api).getPlayerSize().height;c=g.be(c,b,b+d-f.width);m=l-F_(m)-f.height}else g.Me(this.lg.element,b)?(m=g.fH(this.api).getPlayerSize().width,c=g.be(c,12,m-f.width-12),m=this.Id()?this.Dv:this.Cv,"gvn"===this.api.T().playerStyle&&
(m+=20),this.dn&&(m-=this.Id()?26:18)):(b=g.fH(this.api).getPlayerSize(),c=g.be(c,12,b.width-f.width-12),l.y>(b.height-d.height)/2?m=l.y-f.height-12:m=l.y+d.height+12);a.style.top=m+(e||0)+"px";a.style.left=c+"px"};
g.k.xh=function(a){a&&(this.tooltip.Uh(this.lg.element),this.hf&&this.tooltip.Uh(this.hf.Na()));g.hY.prototype.xh.call(this,a)};
g.k.fi=function(a,b){var c=g.fH(this.api).getPlayerSize();c=new g.ig(0,0,c.width,c.height);if(a||this.Ac.B&&!this.Ok()){if(this.api.T().Mi||b){var d=this.Id()?this.Dv:this.Cv;c.top+=d;c.height-=d}this.hf&&(c.height-=F_(this.hf))}return c};
g.k.Bj=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.Lr.element,b),b.parentElement.insertBefore(this.Kr.element,b.nextSibling))):M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Lr.detach(),this.Kr.detach());this.Sa();this.Kj()};
g.k.Id=function(){var a=this.api.T();a=a.ca("embeds_enable_mobile_custom_controls")&&a.u;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.tr=!a;this.og()};
g.k.Sa=function(){var a=this.Id();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.K(this.contextMenu.element,"ytp-big-mode",a);this.og();if(this.Jf()&&this.Nf)this.Uf&&bZ(this.Nf,this.Uf),this.shareButton&&bZ(this.Nf,this.shareButton),this.Zi&&bZ(this.Nf,this.Zi);else{if(this.Nf){a=this.Nf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Uf&&!g.Me(this.xf.element,this.Uf.element)&&this.Uf.fa(this.xf.element);this.shareButton&&!g.Me(this.xf.element,
this.shareButton.element)&&this.shareButton.fa(this.xf.element);this.Zi&&!g.Me(this.xf.element,this.Zi.element)&&this.Zi.fa(this.xf.element)}this.Kj();g.hY.prototype.Sa.call(this)};
g.k.lw=function(){if(Dza(this)&&!g.hX(this.api))return!1;var a=this.api.getVideoData();return!g.kC(this.api.T())||2===this.api.getPresentingPlayerType()||!this.ug||((a=this.ug||a.ug)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.hY.prototype.lw.call(this):!1};
g.k.Kj=function(){g.hY.prototype.Kj.call(this);g.LN(this.api,this.title.element,!!this.ji);this.Fn&&this.Fn.yb(!!this.ji);this.channelAvatar.yb(!!this.ji);this.overflowButton&&this.overflowButton.yb(this.Jf()&&!!this.ji);this.shareButton&&this.shareButton.yb(!this.Jf()&&!!this.ji);this.Uf&&this.Uf.yb(!this.Jf()&&!!this.ji);this.Zi&&this.Zi.yb(!this.Jf()&&!!this.ji);if(!this.ji){this.tooltip.Uh(this.lg.element);for(var a=0;a<this.Dq.length;a++){var b=this.Dq[a];b.ff()&&b.ib()}}};
g.k.Pd=function(a){this.hf&&sza(this.hf,this.Ok());this.og();g.hY.prototype.Pd.call(this,a)};
g.k.eO=function(){qX(this.api)&&MX(this.Ac,128,!1)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.qj?this.qj.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.qj?this.qj.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.dj=function(){return this.contextMenu.Za?(this.contextMenu.ib(),!0):this.Ek.length?(this.Ek[this.Ek.length-1].ib(),!0):this.Zh?(this.Zh.ib(),!0):g.hY.prototype.dj.call(this)};
g.k.Ay=function(a,b){this.By=b;this.Mo(a,b);this.xG()};
g.k.xG=function(){var a=this.By||this.contextMenu.ff();this.gv!==a&&(this.gv=a,this.api.va("onAutonavPauseRequest",this.gv))};
g.k.oI=function(){N_(this,this.api.getRootNode(),!0).focus()};
g.k.pI=function(){N_(this,this.api.getRootNode(),!1).focus()};
g.k.Cl=function(){return this.hf&&this.hf.u};
g.k.Ij=function(){this.Ac.Ij()};
g.k.xs=function(){this.Lb.hide()};
g.k.km=function(a){this.Lb.km(!g.LL(a))};
g.k.eq=function(a,b,c,d){this.yr.eq(a,b,c,d)};
g.k.aN=function(){if(g.R(this.api.T().experiments,"web_player_nitrate_promo_tooltip")){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.Wp||(this.Wp=new fZ(a.tooltipRenderer,this,this.api),g.C(this,this.Wp),g.DP(this.api,this.Wp.element,8)),this.Wp.Mv(a.tooltipRenderer))}};g.u(g.O_,g.HS);g.O_.prototype.Dh=function(){return!1};
g.O_.prototype.create=function(){var a=this.player.T();NC(a)&&a.u?this.chrome=new g.hY(this.player):this.chrome=new M_(this.player);g.C(this,this.chrome);this.chrome.init();g.tX(this.player,"ux")};g.u(Q_,g.B);g.k=Q_.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Zk=function(){var a=this.u.getVideoData(),b=this.B.getVideoData();if(a.Ia){var c;if(c=a.ma){c=a.ma;for(var d=!1,e=!1,f=g.q(Object.values(c.u)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.Fc()&&(d=!0),h.info.video&&h.index.Fc()&&(e=!0);c.u["0"]&&(e=!0);c=!(d&&e)}if(!c)if(this.u.B){h=Gza(this.policy,this.u,this.B,this.jf);f=Hza(this);c=f.aI;e=f.JD;d=f.NA;f=f.ID;if(!this.K){var l=1E3*uU(this.B.K),m=uU(this.u.K);m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();var n=this.B.G;
n.qoe&&(n=n.qoe,n.F={qQ:Number(FT(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),KD:l,iQ:m,isAd:a});this.K=!0}h?P_(this,"cannot_apply"+h+";transitionTimeMs."+this.jf):2===this.status.status?Mza(this):(a=this.u.V)&&LB(a)&&(!JB(a)&&g.ak()?P_(this,"mse_closed"):b.ma&&jA(b.ma)&&a.B&&!a.B.Sr()?P_(this,"encr_upgrade"):(b=this.u.B,b.mi()?P_(this,"elem_ended"):0>e?P_(this,"next_player_future"):(this.G=d,this.C=OB(a,c,d,!0),this.D=OB(a,e,f,!1),a=this.B.getVideoData().clientPlaybackNonce,this.u.jb("gaplessPrep",
"cpn."+a),GW(this.u,this.C),vW(this.u,Iza(b,c,d,!this.u.getVideoData().isAd())),R_(this,2),Mza(this))))}else P_(this,"no-elem")}};
g.k.Bn=function(a){var b=Lza(this).KF,c=a===b;b=c?this.C.u:this.C.B;c=c?this.D.u:this.D.B;if(b.isActive()&&!c.isActive()){var d=this.G;Ky(a.Ye(),d-.01)&&(R_(this,4),b.setActive(!1),this.B.jb("sbh","1"),c.setActive(!0));a=this.D.B;this.D.u.isActive()&&a.isActive()&&R_(this,5)}};
g.k.kE=function(){4<=this.status.status&&6>this.status.status&&P_(this,"player-reload-after-handoff")};
g.k.aa=function(){Kza(this);this.u.unsubscribe("newelementrequired",this.kE,this);if(this.C){var a=this.C.B;this.C.u.u.unsubscribe("updateend",this.Bn,this);a.u.unsubscribe("updateend",this.Bn,this)}g.B.prototype.aa.call(this)};
g.k.Wb=function(a){g.MJ(a,128)&&P_(this,"player-error-event")};g.u(S_,g.B);S_.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");T_(this)};
S_.prototype.aa=function(){T_(this);g.B.prototype.aa.call(this)};g.u(V_,g.B);g.k=V_.prototype;
g.k.YK=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=0;l<this.B.length;l++)this.B[l].cpn===a.cpn&&(0===l||this.B[l-1].Si!==a.Si?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,LW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!1)):(h=this.B[l-1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||
void 0===d?void 0:d.videoDetails)||void 0===e?void 0:e.videoId));f&&h&&LW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!0,a.playerVars.adformat)}};
g.k.ZK=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=!1,m=0;m<this.B.length;m++)this.B[m].cpn===a.cpn&&(m===this.B.length-1||this.B[m+1].Si!==a.Si?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,l=!0):(h=this.B[m+1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||void 0===d?void 0:d.videoDetails)||void 0===
e?void 0:e.videoId));f&&h&&(LW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!1,a.playerVars.adformat),l&&LW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!0))}g.R(this.D.experiments,"web_player_halftime_dai")&&this.isLiveNow&&a&&a.Wf&&!a.Wf.target&&this.u.getCurrentTime()<vU(this.u.K)&&U_(this,Infinity)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)U_(this,a);else{b=this.api.Vb();var d=b===this.G?this.K:null;$_(this,!1);this.V=a;null!=c&&this.N.start(c);b&&(this.K=d||b.getPlayerState(),CW(b),this.G=b)}};
g.k.aa=function(){$_(this,!1);yX(this);g.B.prototype.aa.call(this)};
g.k.gw=function(){return Fs()};
var Rza=0;g.u(a0,g.B);g.k=a0.prototype;g.k.aL=function(a){if(this.B===this.api.Vb()){var b=this.G.get(a);b?dAa(this,b.target,b.jf,a):b0(this,"e.unexpectedCueRangeTriggered")}else if(b=this.u.find(function(e){return e.Wf.od===a})){var c=b.Wf,d=c.target;
c=c.jf;d?dAa(this,d,c,a):cAa(this,b.Gc,c,a)}};
g.k.BO=function(){var a=this.N;e0(this);a&&(d0(this,a)||b0(this,"e.unexpectedPresentingPlayer"),this.api.Vb().addCueRange(a.Wf.od))};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)Xza(this,a);else{b=this.api.Vb();var d=b===this.D?this.K:null;g0(this,!1);this.X=a;null!=c&&this.V.start(c);b&&(this.K=d||b.getPlayerState(),CW(b),this.D=b)}};
g.k.Lf=function(a){g.MJ(a,128)&&gAa(this)};
g.k.isManifestless=function(){return NF(this.B.getVideoData())};
g.k.aa=function(){g0(this,!1);zX(this);g.B.prototype.aa.call(this)};
var Yza=0;var iAa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.u(l0,g.B);l0.prototype.get=function(a){j0(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
l0.prototype.set=function(a,b,c){this.remove(a,!0);j0(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.O)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&m0(this,c,!0);k0(this)};
l0.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(m0(this,c,b),g.sb(this.data,function(d){return d.key===a}),k0(this))};
l0.prototype.aa=function(){var a=this;g.B.prototype.aa.call(this);this.data.forEach(function(b){m0(a,b,!0)});
this.data=[]};g.u(n0,g.B);n0.prototype.aa=function(){g.B.prototype.aa.call(this);this.u=null;this.B&&this.B.disconnect()};o0.prototype.la=function(){return this.F};
o0.prototype.dispose=function(){this.F=!0;g.q0(this);this.B=null};var lAa=db(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),r0=!1;var u2;u2={};g.s0=(u2.STOP_EVENT_PROPAGATION="html5-stop-propagation",u2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",u2.IV_DRAWER_OPEN="ytp-iv-drawer-open",u2.MAIN_VIDEO="html5-main-video",u2.VIDEO_CONTAINER="html5-video-container",u2.HOUSE_BRAND="house-brand",u2);g.u(t0,g.V);g.k=t0.prototype;g.k.Gp=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.An(this.element,b)};
g.k.resize=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.B;b=!g.ie(a,new g.he(b.width,b.height));var c=sAa(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.T();(c||b||a.za)&&this.app.B.W("resize",this.getPlayerSize())}}};
g.k.updateVideoData=function(a){if(this.u){var b=this.app.T();jk&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));UF(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.Jt&&a.videoId&&(this.u.poster=a.Sd("default.jpg"));g.R(b.experiments,"html5_send_origin_for_progressive")&&a.Ia&&!a.Ia.xc()&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.bG(a,"yt:bgcolor");this.C.style.backgroundColor=b?b:"";this.ba=dC(g.bG(a,"yt:stretch"));this.ea=dC(g.bG(a,"yt:crop"),!0);g.K(this.element,"ytp-dni",a.Lc);this.resize()};
g.k.setGlobalCrop=function(a){this.X=dC(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.ka=a;this.resize()};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.B.isFullscreen();if(b&&Yj())return new g.he(window.outerWidth,window.outerHeight);if(b||a.mo){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.he(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.D.width)&&!isNaN(this.D.height))return this.D.clone();if(this.P&&this.ha&&!this.app.isWidescreen())for(a=
0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.he(b.size.width,b.size.height)}return new g.he(this.element.clientWidth,this.element.clientHeight)};
g.k.getVideoAspectRatio=function(){return isNaN(this.ba)?qAa(this):this.ba};
g.k.getVideoContentRect=function(a){var b=this.getPlayerSize();a=rAa(this,b,this.getVideoAspectRatio(),a);return new g.ig((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Sp=function(){u0(this)};
g.k.setUseFastSizingOnWatch=function(a){this.ha!==a&&(this.ha=a,this.resize())};
g.k.setInternalSize=function(a){g.ie(this.D,a)||(this.D=a,this.resize())};
g.k.aa=function(){this.V&&g.Oo(this.V);pAa(this);g.V.prototype.aa.call(this)};tAa.prototype.click=function(a,b){this.elements.has(a);this.u.has(a);var c=g.Ps();c&&a.visualElement&&g.rt(c,a.visualElement,b)};g.u(y0,g.V);
y0.prototype.setValue=function(a,b){for(var c=0;c+2<this.D.length&&this.D[c+1]<b;)c++;var d=Math.min(1,(b-this.D[c])/(this.D[c+1]-this.D[c]));if(this.B)this.B.fillStyle=this.F[c],this.B.fillRect(a*this.u,0,this.u,this.heightPx),this.B.fillStyle=this.F[c+1],this.B.fillRect(a*this.u,this.heightPx*(1-d),this.u,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.F[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.F[c]}};g.u(A0,g.V);g.k=A0.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.na()};
g.k.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.na()};
g.k.na=function(){var a=(0,g.O)(),b=this.F.getStatsForNerds();z0(this.u,b.bandwidth_samples);z0(this.D,b.network_activity_samples);z0(this.C,b.live_latency_samples);z0(this.B,b.buffer_health_samples);this.update(b);a=25<(0,g.O)()-a?5E3:500;this.delay.start(a)};g.u(C0,g.B);C0.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ua(a),e=v2[d];if(e){try{e.dispose()}catch(h){M(h)}v2[d]=null}var f=new C0(a,b,c);g.dg(f,function(){v2[d]=null;f.Ef&&f.Ef()});
return v2[d]=f}catch(h){throw M(h),h.stack;}};
g.k=C0.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.isVideoInfoVisible=function(){return!(!this.ba||!this.ba.Za)};
g.k.setIsExternalPlaylist=function(a){this.X=S(!1,a)};
g.k.zM=function(){D0(this)||g.V0(this,5)};
g.k.mO=function(a){D0(this)||(iBa(this),g.LL(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return yB(a)};
g.k.T=function(){return this.u};
g.k.getVideoData=function(){return this.G.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.Z(this,a);return a?tG(a.getVideoData())?1:(a=a.B)?SS(a):0:0};
g.k.De=function(){var a={},b=g.DX(this.D);b&&g.Wa(a,b.LJ());a.fs=this.B.isFullscreen();a.volume=Math.round(this.B.getVolume());a.muted=this.B.isMuted()?1:0;a.mos=a.muted;if(g.R(this.u.experiments,"html5_enable_embedded_player_visibility_signals")&&this.u.B&&(this.he&&(b=this.he,b=null==b.u?null:Math.round(100*b.u)/100,null!=b&&(a.inview=b)),b=this.template.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.JC();1<c&&b.push(c);a.size=b.join(":")}!this.ca("web_player_clips_vss_killswitch")&&
this.G===this.C&&this.P&&(a.clipid=this.P.postId);return a};
g.k.setLoopRange=function(a){var b=!1;!!this.P!==!!a?b=!0:this.P&&a&&(b=this.P.startTimeMs!==a.startTimeMs||this.P.endTimeMs!==a.endTimeMs||this.P.postId!==a.postId);b&&(eE(this.C.ea,"applooprange"),a?(b=new g.TD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.C.addCueRange(b)):M0(this).clipConfig=void 0,this.P=a,this.B.va("onLoopRangeChange",a),this.G===this.C&&(this.P&&!Y0(this,this.C.getCurrentTime())&&this.qy(),g.cU(this.G.G)))};
g.k.getLoopRange=function(){return this.P};
g.k.qy=function(){this.C.seekTo(.001*this.P.startTimeMs)};
g.k.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=IAa(this,a);this.C.getPlaybackRate()!==c&&(this.C.setPlaybackRate(c),b&&!this.u.B&&g.wt("yt-player-playback-rate",c),this.B.va("onPlaybackRateChange",c))}};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.gX(this.D).getCurrentTime();var c=g.Z(this,a);return c?b?(c=L0(this,c),Z0(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.k.getDuration=function(a,b){var c=g.Z(this,a);return c?void 0===b||b?(c=AX(this,c),Z0(this,c.getDuration(),c)):c.getDuration():0};
g.k.wc=function(a){a=g.Z(this,a);if(!a)return 0;a=AX(this,a);return Z0(this,a.wc(),a)};
g.k.Ce=function(a){var b=g.Z(this,a);return b?this.Kc(b)?(b=AX(this,b),b.Ce()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ce():0};
g.k.getDebugText=function(a){var b=this.C.qb(a);if(this.G&&this.G!==this.C&&(b=qBa(b,this.G.qb(a),"ad"),a)){var c=b;var d={};var e=oe(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.re("video-ads");f?(oBa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.re("videoAdUiSkipContainer"),l=g.re("ytp-ad-skip-button-container"),m=h||l;m?(oBa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=
d}a&&this.F&&(b["0sz"]=0===je(this.F.qn()),b.op=this.F.Zo("opacity"),c=this.F.hk().y+this.F.qn().height,b.yof=0>=c,b.dis=this.F.Zo("display"));(a=a?(0,g.KT)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.B.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=oX(this.D))&&(b=qBa(b,a.qb(),"fresca"));return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", ")},b=g.Z(this).qb(!0).debug_error;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(){return 1===this.ea?1:D0(this)?3:g.Z(this).getPlayerType()};
g.k.getAppState=function(){return this.ea};
g.k.zP=function(a){switch(a.type){case "loadedmetadata":jB("fvb",this.N.timerName)||this.N.tick("fvb");mB("fvb","video_to_ad");this.Tb.start();break;case "loadstart":jB("gv",this.N.timerName)||this.N.tick("gv");mB("gv","video_to_ad");break;case "progress":case "timeupdate":!jB("l2s",this.N.timerName)&&2<=My(a.target.nf())&&this.N.tick("l2s");break;case "playing":g.RC&&this.Tb.start();if(g.zC(this.u))a=!1;else{var b=g.jX(this.D);a="none"===this.F.Zo("display")||0===je(this.F.qn());var c=v0(this.template),
d=this.G.getVideoData(),e=NC(this.u)||g.tC(this.u);d=DF(d);b=!c||b||e||d||this.u.Dc;a=a&&!b}a&&(this.G.jb("hidden","1",!0),this.getVideoData().Ei||(this.ca("html5_new_elem_on_hidden")?(this.getVideoData().Ei=1,this.lE(null),this.G.playVideo()):lBa(this,"hidden",!0)))}};
g.k.BN=function(a,b){this.B.va("onLoadProgress",b)};
g.k.hP=function(){this.B.W("playbackstalledatstart")};
g.k.Up=function(a,b){var c=L0(this,a);b=Z0(this,c.getCurrentTime(),c);this.B.va("onVideoProgress",b)};
g.k.jN=function(){this.B.va("onDompaused")};
g.k.xO=function(){this.B.W("progresssync")};
g.k.BM=function(a){if(1===this.getPresentingPlayerType()){g.MJ(a,1)&&!g.U(a.state,64)&&M0(this).isLivePlayback&&this.C.isAtLiveHead()&&1<this.B.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.MJ(a,2)&&MAa(this);if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.B.va("onError",bDa[b.errorCode]||5);this.B.va("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.Tv});
6048E5<(0,g.O)()-this.u.Ka&&this.B.va("onReloadRequired")}b={};if(a.state.Kb()&&!g.NL(a.state)&&!jB("pbresume","ad_to_video")&&jB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);iB(b,"ad_to_video");cB("pbresume",void 0,"ad_to_video")}this.B.W("applicationplayerstatechange",a)}};
g.k.IE=function(a){3!==this.getPresentingPlayerType()&&this.B.W("presentingplayerstatechange",a)};
g.k.Lf=function(a){I0(this,OL(a.state));g.U(a.state,1024)&&this.B.isMutedByMutedAutoplay()&&(YW(this,{muted:!1,volume:this.Y.volume},!1),W0(this,!1))};
g.k.oO=function(a){a.state.Kb()&&!g.NL(a.state)&&(Exa(this.D),g.us(this.de))};
g.k.xM=function(a,b,c){"newdata"===a&&UAa(this);(a=c.clipConfig)&&null!=a.startTimeMs&&null!=a.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(a.startTimeMs)),endTimeMs:Math.floor(Number(a.endTimeMs)),postId:a.postId})};
g.k.SJ=function(){this.B.va("onPlaybackAudioChange",this.B.getAudioTrack().u.name)};
g.k.XJ=function(a){var b=this.G.getVideoData();a===b&&this.B.va("onPlaybackQualityChange",a.Ma.La().quality)};
g.k.Oa=function(a,b,c){b.getPlayerType();b===this.C&&(this.u.zd=c.oauthToken);if(this.u.C&&this.K){if(c.tp&&sG(c)){var d=c.tp;c.tp=null}else d=null;d&&this.K.u(d)}this.getVideoData().enableServerStitchedDai&&!this.V&&(this.V=new V_(this.B,this.u,this.C));if("newdata"===a)HX(this.D,2),this.B.W("videoplayerreset",b);else{if(!this.F)return;"dataloaded"===a&&(this.G===this.C?(c.Pa.Mg(c.TE),this.C.getPlayerState().isError()||(d=D0(this),M0(this).Fc(),d&&g.V0(this,6),OAa(this),d||(d=IX(this.D))&&!d.created&&
EX(this.D)&&d.create())):OAa(this));1===b.getPlayerType()&&(this.u.V&&nBa(this),this.getVideoData().isLivePlayback&&!this.u.Hs&&this.C.re("html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),c.Fc()&&(c.Kn||c.Vt||c.Wt||c.Uc.focEnabled||c.Uc.rmktEnabled||this.getVideoData().Zu)&&(d=this.getVideoData(),b1(this,"part2viewed",1,0x8000000000000),b1(this,"engagedview",Math.max(1,1E3*d.Ug),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,b1(this,"videoplaytime25",.25*d,d),b1(this,"videoplaytime50",
.5*d,d),b1(this,"videoplaytime75",.75*d,d),b1(this,"videoplaytime100",d,0x8000000000000),b1(this,"conversionview",d,0x8000000000000))));this.B.W("videodatachange",a,c,b.getPlayerType())}this.B.va("onVideoDataChange",{type:a,playertype:b.getPlayerType()});b===this.C&&this.P&&!Y0(this,this.C.getCurrentTime())&&this.qy();if((b=c.iq)&&g.R(this.u.experiments,"web_player_create_screens")){if(a=this.Aa,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=aM();var e=void 0===e?
{}:e;Object.values(vCa).includes(c)||(g.Gr(new Sq("createClientScreen() called with a non-page VE",c)),c=83769);e.isHistoryNavigation||b.u.push({rootVe:c,key:e.key||""});b.F=[];b.G=[];g.vo("screen_manager_wait_for_csn")&&(b.K||Ws("clearWaitForNavigationJobs"),g.Ia("midTransition",!0,void 0));e.OA?Una(b,c,e):eM(b,c,e);vAa(a)}}else vAa(this.Aa)};
g.k.wt=function(){P0(this,null);this.B.va("onPlaylistUpdate")};
g.k.PD=function(a){var b=a.getId(),c=M0(this);if("part2viewed"===b)c.aF&&g.Ct(c.aF),c.Vt&&k1(this,c.Vt),c.Wt&&l1(this,c.Wt);else if("conversionview"===b){var d=this.C.G;d.u&&Gua(d.u)}else"engagedview"===b&&g.Ct(c.Kn);if(c.bF){d=c.bF;var e={label:a.getId()};if(g.R(this.u.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.$p(d,e);g.Ct(d)}switch(b){case "videoplaytime25":c.by&&k1(this,c.by);c.dy&&l1(this,c.dy);c.dF&&g.Ct(c.dF);
break;case "videoplaytime50":c.ey&&k1(this,c.ey);c.fy&&l1(this,c.fy);c.eF&&g.Ct(c.eF);break;case "videoplaytime75":c.gy&&k1(this,c.gy);c.hy&&l1(this,c.hy);c.fF&&g.Ct(c.fF);break;case "videoplaytime100":c.Zx&&k1(this,c.Zx),c.ay&&l1(this,c.ay),c.cF&&g.Ct(c.cF)}(b=this.getVideoData().Zu)&&ZAa(b,a.getId())&&ZAa(b,a.getId()+"gaia");this.C.removeCueRange(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.Z(this,a);if(!c)return!1;var d=AX(this,c);c=L0(this,c);return d!==c?d.isAtLiveHead(Z0(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.Z(this,d))2===this.ea&&T0(this),this.Kc(d)?this.V?this.V.seekTo(a,b,c):this.ka.seekTo(a,b,c):d.seekTo(a,{lG:!b,mG:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.WJ=function(){this.B.va("SEEK_COMPLETE")};
g.k.XO=function(a,b){var c=a.getVideoData();if(1===this.ea||2===this.ea)c.startSeconds=b;2===this.ea?T0(this):(this.B.va("SEEK_TO",b),!this.ca("hoffle_api")&&this.K&&UW(this.K,c.videoId))};
g.k.rM=function(){this.B.W("airplayactivechange")};
g.k.sM=function(){this.B.W("airplayavailabilitychange")};
g.k.LM=function(){this.B.W("beginseeking")};
g.k.mN=function(){this.B.W("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.Z(this,a))?AX(this,a).getVideoData().getStoryboardFormat():null};
g.k.cg=function(a){return(a=g.Z(this,a))?AX(this,a).getVideoData().cg():null};
g.k.Kc=function(a){if(a=a||this.G){a=a.getVideoData();if(this.V)a:{var b=this.V;if(a===b.u.getVideoData()&&b.B.length)a=!0;else{b=g.q(b.B);for(var c=b.next();!c.done;c=b.next())if(a.Xb===c.value.Xb){a=!0;break a}a=!1}}else a:if(b=this.ka,a===b.B.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(c=b.next();!c.done;c=b.next())if(a.Xb===c.value.Xb){a=!0;break a}a=!1}if(a)return!0}return!1};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Kc();a=new g.uF(this.u,a);d&&(a.Xb=d);!g.R(this.u.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.C&&Lua(this.C.G,a.clientPlaybackNonce,a.Yp||"",a.breakType||0);bBa(this,a,b,c)};
g.k.clearQueue=function(){this.Ra.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f=new g.uF(this.u,a);if(!this.ca("web_player_load_video_context_killswitch")&&e){for(;f.uj.length&&f.uj[0].isExpired();)f.uj.shift();for(var h=g.q(f.uj),l=h.next();!l.done;l=h.next())e.B(l.value)&&M(new Sq("Recursive call to loadVideo detected with contexts: ",f.uj.join(", ")));f.uj.push(e)}c||(a&&BG(a)?(IC(this.u)&&!this.X&&(a.fetch=0),P0(this,a)):this.playlist&&P0(this,null),a&&this.setIsExternalPlaylist(a.external_list),IC(this.u)&&!this.X&&Q0(this));
return i0(this,f,b,d)};
g.k.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=eC(a);d=c1(b,d,e);this.Bb.get(d)||this.G&&this.G.ka.started&&d===c1(this.G.getPlayerType(),this.G.getVideoData().videoId,this.G.getVideoData().Xb)||(a=new g.uF(this.u,a),e&&(a.Xb=e),dBa(this,a,b,c))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.D;a=a.J.T().showMiniplayerUiWhenMinimized?a.Cc.get("miniplayer"):void 0;a&&(this.visibility.u?a.load():a.unload());this.B.W("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.UO=function(){"picture-in-picture"===this.F.Na().webkitPresentationMode?J0(this,!0):J0(this,!1)};
g.k.togglePictureInPicture=function(){var a=g.Z(this);a&&a.togglePictureInPicture()};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&BG(a)){this.Ka=!0;P0(this,a);var d=this.playlist.La();if(d&&d.isValid())e1(this,d,b);else this.playlist.onReady(function(){S0(c)})}else b||(b=this.getPresentingPlayerType()),1===b&&this.wt(),e1(this,new g.uF(this.u,a),b)};
g.k.cuePlaylist=function(a,b,c,d){this.Ka=!0;eBa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ka=!1;eBa(this,a,b,c,d)};
g.k.nextVideo=function(a,b){var c=this,d=this.C.getVideoData().suggestions;if(g.uX(this.B)&&d){d=d.map(function(f){return g.HZ(c.u,f)})[0];
var e=b?d.Qv:d.yd;g.f1(this,d.La().videoId,e,d.getPlaylistId(),b,d.jA||void 0)}else this.X?this.B.va("onPlaylistNext"):3===this.getPresentingPlayerType()?g.gX(this.D).nextVideo():this.playlist&&(IC(this.u)&&!this.B.isFullscreen()?a1(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&EG(this.playlist,CG(this.playlist)),this.playlist.loaded?(d=b&&g.R(this.u.experiments,"html5_player_autonav_logging"),i0(this,this.playlist.La(void 0,b,d),1)):this.Ka=!1))};
g.k.previousVideo=function(a){this.X?this.B.va("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.gX(this.D).Ut():this.playlist&&(IC(this.u)&&!this.B.isFullscreen()?a1(this,"yt.www.watch.lists.prev"):(this.playlist.ii(a)&&EG(this.playlist,DG(this.playlist)),this.playlist.loaded?i0(this,this.playlist.La(),1):this.Ka=!1))};
g.k.playVideoAt=function(a){this.X?this.B.va("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?i0(this,this.playlist.La(a),1):this.Ka=!1,EG(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.vM=function(a){this.B.va("onCueRangeEnter",a.getId())};
g.k.wM=function(a){this.B.va("onCueRangeExit",a.getId())};
g.k.AM=function(){function a(){var d=g.Ps(b.Cf||(b.visibility.u?3:0));if(d){var e={cpn:b.getVideoData().clientPlaybackNonce,csn:d};if(g.R(b.u.experiments,"web_playback_associated_ve")&&null!=b.getVideoData().zg){var f=g.Is(b.getVideoData().zg);g.it(d,f,void 0);e.playbackVe=f.getAsJson()}g.R(b.u.experiments,"kevlar_playback_associated_queue")&&b.getVideoData().queueInfo&&(e.queueInfo=b.getVideoData().queueInfo);d={};b.ca("web_playback_associated_log_ctt")&&null!==b.getVideoData().Nh&&(d.Xh={token:b.getVideoData().Nh,
videoId:b.getVideoData().videoId});g.Dq("playbackAssociated",e,d)}}
var b=this;this.getPresentingPlayerType();this.Ga||(this.Ga=et(oB,this.WD,this));Pua(this.N,this.G.getVideoData(),RAa(this));O0(this)&&this.u.B&&"embedded"===mG(M0(this))&&this.Af&&.01>Math.random()&&g.Dq("autoplayTriggered",{intentional:this.ue});this.Af=!1;g.R(this.u.experiments,"screen_manager_wait_for_csn")?Tna(a):a();fB("player_att",["att_f","att_e"]);if(this.ca("web_player_inline_botguard")){var c=this.getVideoData().botguardData;c&&(this.ca("web_player_botguard_inline_skip_config_killswitch")&&
(so("BG_I",c.interpreterScript),so("BG_IU",c.interpreterUrl),so("BG_P",c.program)),g.KC(this.u)?qp(function(){U0(b)}):U0(this))}};
g.k.UJ=function(){this.B.W("internalAbandon");this.ca("html5_ad_module_cleanup_killswitch")||$0(this)};
g.k.WD=function(a){a=a.u;if(!isNaN(a)&&0<a&&this.C){var b=this.C.G;b.qoe&&0<a&&(b.qoe.u.aft=[a.toString()])}};
g.k.SN=function(){var a=this.F;a={volume:g.be(Math.floor(100*a.getVolume()),0,100),muted:a.Vr()};a.muted||W0(this,!1);this.Y=g.Zb(a);this.B.va("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.B.va("onMutedAutoplayStarts"))};
g.k.pN=function(){var a=h1(this);K0(this,a?1:0);kBa(this,!!a)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.MO=function(){0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||K0(this,h1(this)?1:0);this.u.Oh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.F&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.F.No()};
g.k.AN=function(a){3!==this.getPresentingPlayerType()&&this.B.W("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.Z(this,a))2===this.ea?T0(this):(null!=this.ba&&this.ba.Za&&this.ba.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.Z(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.C.getVideoData(),b=new g.uF(this.u,{video_id:a.oz||a.videoId,oauth_token:a.oauthToken});b.Gh=g.Zb(a.Gh);this.cancelPlayback(6);e1(this,b,1);null!=this.ba&&this.ba.stop()};
g.k.cancelPlayback=function(a,b){dt(this.Ga);this.Ga=0;var c=g.Z(this,b);if(c&&1!==this.ea&&2!==this.ea){c===this.G&&HX(this.D,a);var d=c.getVideoData();if(this.K&&sG(d)&&d.videoId)if(this.ca("hoffle_api")){var e=this.K;d=d.videoId;if(2===Kw(d)){var f=QW(e,d);f&&f!==e.player&&sG(f.getVideoData())&&(f.D&&LE(f.D),TF(f.getVideoData(),!1),Nw(d,3),RW(e))}}else UW(this.K,d.videoId);1===b&&(g.R(this.u.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),$0(this));c.Bh();rX(this,"cuerangesremoved",
dE(c.ea)||[]);c.ea.reset();this.Ra&&c.isGapless()&&(uW(c,!0),vW(c,this.F))}};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Z(this,b))&&this.u.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.updatePlaylist=function(){IC(this.u)?Q0(this):g.R(this.u.experiments,"embeds_wexit_list_ajax_migration")&&g.qC(this.u)&&R0(this);this.B.va("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Df=a;this.zd=b;this.B.W("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.zd};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.gX(this.D).getAdState();if(!this.Kc()){var a=IX(this.D);if(a)return a.getAdState()}return-1};
g.k.LO=function(a){var b=this.template.getVideoContentRect();jg(this.zf,b)||(this.zf=b,this.G&&AW(this.G),this.C&&this.C!==this.G&&AW(this.C),1===this.visibility.fullscreen&&this.tb&&kBa(this,!0));this.ce&&g.ie(this.ce,a)||(this.B.W("appresize",a),this.ce=a)};
g.k.oe=function(){return this.B.oe()};
g.k.bP=function(){2===this.getPresentingPlayerType()&&this.ka.isManifestless()&&!this.ca("web_player_manifestless_ad_signature_expiration_killswitch")?gAa(this.ka):lBa(this,"signature",void 0,!0)};
g.k.lE=function(){G0(this);F0(this)};
g.k.KO=function(a){GW(a,this.F.ot())};
g.k.VJ=function(a){this.K&&this.K.u(a)};
g.k.YM=function(){this.B.va("CONNECTION_ISSUE")};
g.k.TJ=function(a){this.B.W("heartbeatparams",a)};
g.k.setBlackout=function(a){this.u.Dc=a;this.G&&(g.cU(this.G.G),this.u.V&&nBa(this))};
g.k.setAccountLinkState=function(a){var b=g.Z(this);b&&(b.getVideoData().zm=a,g.cU(b.G))};
g.k.updateAccountLinkingConfig=function(a){var b=g.Z(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.B.W("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.dO=function(){var a=g.Z(this);if(a){var b=!qX(this.B);(a.Cf=b)||a.Ra.stop();if(a.u.ma)if(b)a.u.ma.resume();else{var c=a.u.ma;c.D&&c.D.stop()}g.R(a.F.experiments,"html5_suspend_loader")&&a.D&&(b?a.D.resume():xW(a,!0));g.R(a.F.experiments,"html5_fludd_suspend")&&(g.U(a.C,2)||b?g.U(a.C,512)&&b&&mW(a,IL(a.C,512)):mW(a,HL(a.C,512)));a=a.G;a.qoe&&(a=a.qoe,g.DT(a,g.AT(a.provider),"stream",[b?"A":"I"]))}};
g.k.DN=function(){this.B.va("onLoadedMetadata")};
g.k.lN=function(){this.B.va("onDrmOutputRestricted")};
g.k.aa=function(){this.D.dispose();this.ka.dispose();this.V&&this.V.dispose();this.C.dispose();G0(this);g.fg(g.Pb(this.ee),this.playlist);dt(this.Ga);this.Ga=0;g.B.prototype.aa.call(this)};
g.k.ca=function(a){return g.R(this.u.experiments,a)};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Cf=a};
g.k.cancelPendingLocalMediaById=function(a){return this.K&&this.ca("hoffle_api")?UW(this.K,a):Promise.reject()};
g.k.fetchLocalMedia=function(){if(this.K&&this.ca("hoffle_api")){var a=this.K,b=a.api.Vb();b&&(b=b.getVideoData(),sG(b)||(Nw(b.videoId,2),a.api.Bh(),TF(b,!0),fxa(a,b),a.api.playVideo()))}};
g.k.fetchLocalMediaById=function(a){if(this.K&&this.ca("hoffle_api")){var b=this.K;Kw(a)||(0===Mw(2).length?gxa(b,a):Nw(a,3))}};
g.k.getLocalPlayerResponse=function(a){return this.K&&this.ca("hoffle_api")?dxa(this.K,a):Promise.reject()};
g.k.getLocalMediaInfoById=function(a){return this.K&&this.ca("hoffle_api")?this.K.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.K&&this.ca("hoffle_api")?this.K.getAllLocalMediaInfo():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.B,b=g.Z(this),c=a.getVideoData(),d=a.app.F,e=d.Na(),f=b.tw(),h=b.za,l=8*DU(h,"bandwidth")/1024,m=DU(h,"networkactivity")/1024,n=DU(h,"bufferhealth");if(b.P){var p=b.u.useInnertubeDrmService()?"IT/":"";p+=b.P.u.Be()+"/"+cD(yW(b));p+="/"+b.P.Be()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=Iy(d.nf(),",",3);var x="";c.fC()&&(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");c.fetchType&&(x+="vd:"+("gvi"===c.fetchType?
"g":"o")+", ");x+="s:"+r+" t:"+t+" b:"+w+" ";d.Ap()&&(x+="S");d.Bk()&&(x+="P");d.mi()&&(x+="E");d=b.G;d=d.qoe?d.qoe.da:void 0;d&&(x+=" l:"+d.toFixed());d=g.JC();r=g.kX(a).tJ;t=c.Ia&&!c.Ia.xc()?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){for(var y=0,D="",E=0;10>E;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var H="",N=0;6>N;N++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+H,y>>=5;D+=H}w=D.substr(0,4)+" "+
D.substr(4,4)+" "+D.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:x,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:r,shader_info_style:r?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<d?"*"+d.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||
0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=qG(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.cq.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.Ma)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.qW(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=kAa(a),!c.Tc||a.audio&&a.video?a.audio&&a.audio.itag&&
(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+kAa(c.Tc),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.tf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(NF(c)?" Manifestless":"");else if(e){a=DU(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=NF(c)?"Manifestless, ":
"";c.np&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=
e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=CU(h,"bandwidth");l.network_activity_samples=CU(h,"networkactivity");l.live_latency_samples=CU(h,"livelatency");l.buffer_health_samples=CU(h,"bufferhealth");HF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20201108_0_RC1",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.P&&this.P.postId?(a=this.u.getVideoUrl(a),a=Qd(a,"v"),a.replace("/watch","/clip/"+this.P.postId)):this.u.getVideoUrl(a,b,c,d,e)};
var v2={};g.Ia("yt.player.Application.create",C0.create,void 0);g.Ia("yt.player.Application.createAlternate",C0.create,void 0);var hDa=g.Na("ytcsi.tick");hDa&&hDa("pe");g.GX.ad=IS;var sBa=/#(.)(.)(.)/,rBa=/^#(?:[0-9a-f]{3}){1,2}$/i;var uBa=g.ye&&tBa();g.Ya(g.o1,g.B);var iDa=[];g.k=g.o1.prototype;g.k.wa=function(a,b,c,d){Array.isArray(b)||(b&&(iDa[0]=b.toString()),b=iDa);for(var e=0;e<b.length;e++){var f=Vl(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.u[f.key]=f}return this};
g.k.Ms=function(a,b,c,d){return vBa(this,a,b,c,d)};
g.k.Eb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Eb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Sa(d)?!!d.capture:!!d,e=e||this.B||this,c=Wl(c),d=!!d,b=Ol(a)?a.Wo(b,c,d,e):a?(a=Yl(a))?a.Wo(b,c,d,e):null:null,b&&(dm(b),delete this.u[b.key])};
g.k.aa=function(){g.o1.nd.aa.call(this);g.wBa(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};p1.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]};
p1.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(p1.BYTES_PER_ELEMENT=4,p1.prototype.BYTES_PER_ELEMENT=4,p1.prototype.set=p1.prototype.set,p1.prototype.toString=p1.prototype.toString,g.Ia("Float32Array",p1,void 0));q1.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]};
q1.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{q1.BYTES_PER_ELEMENT=8}catch(a){}q1.prototype.BYTES_PER_ELEMENT=8;q1.prototype.set=q1.prototype.set;q1.prototype.toString=q1.prototype.toString;g.Ia("Float64Array",q1,void 0)};})(_yt_player);
