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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ka,la,pa,qa,ra,sa,ta,ua,baa,caa,va,wa,daa,xa,za,Aa,Ba,Ca,Da,Ea,Ia,Ga,La,Ma,gaa,haa,Xa,Ya,Za,iaa,jaa,$a,kaa,bb,cb,laa,maa,eb,lb,naa,sb,tb,oaa,yb,vb,paa,wb,qaa,raa,saa,Hb,Jb,Kb,Ob,Qb,Rb,$b,bc,ec,fc,ic,jc,vaa,lc,nc,oc,xc,yc,Bc,Gc,Mc,Nc,Sc,Pc,zaa,Caa,Daa,Eaa,Wc,Xc,Zc,Yc,ad,dd,Faa,Gaa,cd,Haa,ld,md,nd,qd,sd,td,Jaa,ud,vd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Ld,Nd,Od,Qd,Sd,Td,Laa,Ud,Vd,Wd,Xd,Yd,Zd,fe,he,ke,oe,pe,ve,we,ze,xe,Be,Ee,De,Ce,Qaa,me,Se,Oe,Pe,Ue,Te,le,Ve,We,Saa,$e,bf,Ze,df,ef,ff,gf,hf,jf,kf,
nf,Taa,uf,qf,Hf,Uaa,Lf,Nf,Pf,Vaa,Qf,Sf,Tf,Vf,Wf,Xf,Yf,Zf,ag,$f,bg,cg,Yaa,$aa,aba,cba,hg,ig,kg,mg,ng,dba,og,eba,pg,fba,qg,tg,zg,Ag,Dg,gba,Gg,Fg,Hg,hba,Qg,Rg,Sg,iba,Tg,Ug,Vg,Wg,Xg,Yg,Zg,jba,$g,ah,bh,kba,lba,ch,eh,dh,gh,hh,kh,ih,nba,jh,lh,mh,oh,nh,oba,ph,qba,pba,rba,sh,sba,uh,vh,wh,th,yh,tba,zh,uba,vba,Ch,xba,Dh,Eh,Fh,yba,Hh,Jh,Mh,Qh,Sh,Ph,Oh,Th,zba,Uh,Vh,Wh,Xh,Bba,bi,ci,di,ei,Dba,fi,gi,hi,ii,ji,Eba,li,mi,ni,oi,pi,qi,si,ti,ui,xi,yi,ri,zi,Ai,Bi,Fba,Ci,Di,Gba,Ei,Fi,Hba,Hi,Iba,Ii,Ji,Ki,Jba,Li,Mi,Oi,Si,
Ti,Ui,Vi,Wi,Ni,Pi,Lba,Xi,Yi,$i,Zi,Mba,Nba,Oba,aj,bj,cj,dj,Sba,Tba,Uba,ej,gj,Vba,Wba,Xba,ij,jj,Yba,kj,Zba,$ba,lj,mj,nj,aca,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,bca,cca,Aj,dca,Cj,Bj,Fj,Gj,Ej,eca,ica,hca,Ij,jca,kca,lca,nca,mca,oca,Jj,Oj,Qj,Rj,Sj,qca,Uj,Vj,rca,sca,Wj,Xj,Yj,Zj,tca,ak,bk,vca,ck,wca,dk,fk,ek,gk,hk,jk,yca,kk,xca,lk,zca,nk,Aca,Bca,pk,rk,sk,tk,uk,qk,xk,yk,vk,Cca,Eca,Fca,Ak,Bk,Ck,Dk,Gca,Ek,Fk,Gk,Hk,Ik,Jk,Kk,Lk,Ok,Nk,Ica,Jca,Pk,Rk,Mk,Qk,Hca,Sk,Tk,Lca,Mca,Nca,Oca,Xk,Yk,Zk,Pca,Uk,$k,al,Kca,Qca,Rca,
Sca,dl,bl,el,gl,Xca,Tca,kl,ll,pl,ql,rl,sl,oj,Yca,tl,ul,Zca,$ca,ada,bda,cda,wl,xl,yl,zl,Al,Bl,fda,gda,Cl,Dl,Fl,Hl,ida,Il,Jl,Kl,Ll,Nl,Pl,jda,Ml,Vl,Wl,Sl,Zl,Yl,lda,Ql,Ol,bm,cm,dm,em,gm,nda,hm,im,oda,nm,pm,rm,sm,um,vm,wm,ym,pda,qda,Am,Cm,Dm,zm,Bm,qm,xm,sda,Gm,Em,Fm,Im,rda,Hm,Mm,Pm,Om,Um,Vm,Xm,vda,Wm,Zm,an,$m,tda,dn,fn,yda,hn,jn,ln,mn,nn,on,un,zda,wn,xn,Bda,yn,zn,Gda,Cda,Gn,Lda,Hn,In,Nda,Ln,Mn,Nn,On,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,Ro,Qo,Wda,Xda,To,
Wo,Xo,Yo,Zo,Zda,$da,fp,gp,hp,aea,np,op,pp,rp,tp,qp,wp,zp,yp,xp,Bp,Hp,Gp,bea,eea,dea,Sp,Tp,Up,Vp,Wp,Xp,Yp,bq,$p,cq,dq,eq,hq,gq,hea,jq,iea,nq,mq,kea,oq,pq,lea,tq,mea,nea,rq,uq,oea,zq,Aq,Bq,Dq,pea,Iq,Hq,Cq,Jq,Kq,qea,rea,Rq,sea,tea,Sq,Uq,Vq,Tq,Wq,Xq,Yq,Zq,$q,ar,br,cr,er,fr,hr,ir,jr,lr,mr,nr,pr,rr,sr,dr,vr,wr,xr,Tr,yr,vea,Vr,Wr,wea,yea,xea,Rr,Xr,zea,Zr,uea,Aea,Sr,$r,Bea,as,Yr,Cea,bs,cs,ds,fs,gs,Dea,js,ks,ls,ms,os,ns,Eea,Fea,Gea,Hea,ps,qs,ts,vs,us,Jea,Iea,ws,ys,xs,As,Bs,Kea,Lea,Es,Gs,Fs,Mea,Pea,Ns,Os,Qea,
Qs,Ss,Us,Ts,Ws,Xs,Ys,$s,Zs,Sea,ct,dt,et,ft,kt,lt,it,Vea,Tea,mt,pt,qt,Xea,nt,ot,rt,tt,vt,wt,At,xt,Ct,Bt,Dt,Yea,Ht,It,Kt,$ea,Mt,Nt,Ot,Qt,afa,St,Ut,Vt,Zt,$t,bfa,Wt,cfa,hu,qu,ou,dfa,vu,uu,xu,tu,wu,yu,Au,Bu,zu,Cu,Du,Eu,Fu,Iu,Gu,ffa,Ju,Ku,Lu,Mu,Nu,gfa,Hu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,hfa,$u,ifa,av,bv,dv,fv,jfa,gv,kv,iv,ev,lv,hv,jv,mv,nv,ov,kfa,qv,rv,yv,lfa,uv,Av,Cv,Fv,Ev,wv,Bv,zv,mfa,Gv,Iv,Jv,nfa,Kv,Lv,tv,vv,xv,Dv,Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,bw,dw,cw,ew,fw,gw,iw,jw,lw,nw,ow,qw,ufa,
rw,tw,uw,vw,xw,yw,zw,Aw,ww,xfa,Bw,Cw,Dw,Ew,Fw,yfa,Gw,Hw,Iw,zfa,Afa,Bfa,Kw,Lw,Cfa,Nw,Dfa,Mw,Ow,Qw,Rw,Sw,Uw,Vw,Ww,Zw,$w,Xw,dx,ex,fx,gx,hx,ix,jx,bx,Mx,Nx,Px,Qx,Sx,Tx,Ux,Wx,Xx,Yx,Zx,$x,ay,by,Efa,cy,Ffa,hy,iy,Gfa,jy,Ifa,Jfa,Kfa,Lfa,my,Mfa,Nfa,Ofa,Pfa,ny,Qfa,Rfa,oy,Sfa,fy,ky,ly,Hfa,py,Tfa,Ufa,sy,uy,ty,Vfa,qy,ry,Wfa,Xfa,vy,wy,yy,Yfa,Zfa,$fa,aga,zy,Ay,By,Cy,Dy,Ey,Fy,Gy,Ny,Jy,cga,Py,Ky,Ly,Iy,My,Hy,Oy,Ty,Sy,Ry,Vy,Wy,ega,fga,Yy,Zy,gga,bz,hz,fz,kz,cz,lz,$y,nz,dz,az,jz,oz,pz,qz,sz,rz,tz,vz,wz,xz,Az,Bz,Cz,zz,Ez,
Hz,Iz,lga,Fz,oga,Gz,Qz,Sz,Rz,Lz,mga,pga,Tz,Uz,Mz,jga,Vz,Wz,Xz,cA,qga,dA,eA,fA,gA,hA,iA,jA,lA,kA,mA,nA,rA,tA,uA,vA,wA,yA,zA,CA,sA,pA,oA,qA,DA,EA,FA,GA,BA,xA,AA,HA,IA,JA,KA,MA,LA,NA,tga,ez,Oz,Nz,PA,gz,QA,RA,Xy,OA,SA,TA,VA,UA,vga,WA,XA,YA,ZA,$A,bB,aB,cB,wga,dB,eB,fB,gB,hB,xga,yga,Cga,Dga,zga,Aga,Bga,iB,jB,Ega,Fga,Gga,lB,mB,nB,Hga,oB,qB,rB,sB,tB,uB,wB,xB,yB,zB,AB,Iga,CB,BB,EB,DB,FB,GB,Jga,HB,JB,Lga,KB,Mga,Nga,LB,MB,Oga,Pga,Qga,NB,Rga,RB,OB,UB,Sga,Tga,VB,Uga,WB,XB,Vga,YB,ZB,Wga,Xga,Yga,SB,Zga,$B,aC,bC,
cC,dC,eC,bha,aha,gC,hC,fC,cha,dha,eha,mC,nC,pC,qC,rC,sC,tC,uC,oC,wC,fha,yC,zC,AC,iC,gha,CC,DC,EC,FC,GC,HC,IC,JC,LC,MC,KC,kha,lha,PC,OC,jha,iha,NC,QC,rga,RC,mha,SC,nha,oha,UC,WC,VC,TC,R,YC,ZC,$C,aD,bD,AD,BD,ED,FD,mD,rD,cD,vD,uD,yD,ID,KD,MD,QD,jD,RD,iD,SD,tD,xha,Aha,Bha,Cha,$D,aE,bE,cE,Dha,WD,dE,eE,VD,yha,gE,XD,YD,zha,hE,ZD,Eha,Fha,iE,Gha,jE,Hha,nE,kE,mE,lE,Iha,mz,hga,oE,pE,Jha,rE,sE,tE,yE,zE,qE,AE,xE,CE,DE,FE,EE,GE,HE,JE,KE,LE,ME,SE,OE,VE,PE,YE,WE,ZE,RE,Oha,$E,NE,bF,cF,Pha,fF,Rha,Sha,Tha,kF,Uha,jF,
lF,mF,nF,oF,pF,qF,Vha,rF,uF,Xha,vF,wF,xF,zF,BF,DF,FF,Zha,aia,bia,cia,EF,HF,JF,eia,KF,NF,fia,MF,QF,RF,LF,OF,sF,Wha,CF,Yha,gia,hia,tF,IF,AF,yF,PF,iia,jia,TF,SF,VF,WF,UF,XF,$F,kia,lia,aG,bG,gG,oia,pia,eG,mia,mG,yia,zia,rG,sG,tG,uG,vG,wG,xG,yG,zG,AG,BG,CG,DG,EG,FG,GG,HG,IG,JG,KG,LG,MG,NG,OG,PG,QG,RG,SG,TG,UG,VG,WG,XG,YG,ZG,$G,aH,bH,cH,dH,eH,fH,gH,Aia,jH,kH,lH,mH,nH,oH,pH,S,hH,qH,Bia,rH,sH,tH,uH,Cia,vH,wH,yH,Eia,zH,AH,Fia,Dia,Gia,BH,CH,Hia,DH,EH,Iia,Jia,FH,GH,Kia,Oia,HH,Lia,Nia,Mia,IH,Pia,JH,Qia,Ria,Sia,
YH,ZH,bI,aI,cI,dI,eI,fI,Uia,Via,Wia,hI,iI,lI,kI,Cla,nI,oI,jI,pI,qI,Dla,uI,yI,zI,BI,Gla,HI,JI,EI,KI,Fla,Hla,LI,NI,OI,MI,PI,Ila,DI,II,TI,Jla,Kla,Lla,Nla,UI,VI,Mla,XI,YI,ZI,aJ,bJ,GI,vI,dJ,xI,wI,fJ,SI,Ola,kJ,lJ,mJ,nJ,oJ,AI,qJ,pJ,RI,QI,rJ,cJ,CI,FI,Pla,tI,uJ,sI,gI,Qla,vJ,wJ,xJ,Rla,yJ,Sla,zJ,BJ,Tla,Ula,Wla,Vla,CJ,DJ,Xla,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,Yla,OJ,PJ,QJ,RJ,TJ,ama,SJ,bma,Zla,UJ,$la,VJ,cma,WJ,XJ,YJ,ZJ,$J,aK,bK,dK,cK,eK,gK,hK,ema,iK,oK,qK,kK,nK,tK,mK,vK,pK,wK,sK,rK,yK,lK,jK,zK,BK,AK,CK,DK,FK,HK,JK,
LK,MK,KK,IK,NK,PK,QK,RK,SK,TK,UK,VK,WK,XK,YK,ZK,$K,aL,bL,cL,dL,eL,fL,gL,hL,iL,jL,lL,mL,nL,oL,pL,qL,rL,sL,uL,vL,fma,wL,ima,gma,hma,jma,xL,yL,AL,BL,zL,CL,DL,kma,lma,EL,FL,mma,oma,pma,nma,HL,GL,IL,JL,KL,LL,ML,NL,OL,SL,TL,UL,VL,WL,XL,YL,qma,aM,bM,ZL,eM,cM,dM,rma,fM,sma,gM,hM,tma,iM,jM,kM,lM,nM,uma,wma,xma,qM,yma,pM,oM,vma,rM,tM,sM,uM,wM,vM,xM,zma,yM,BM,CM,DM,EM,HM,Bma,JM,LM,MM,NM,OM,PM,RM,Cma,TM,SM,Dma,Ema,UM,VM,WM,Fma,YM,XM,Gma,ZM,$M,Kma,Jma,bN,cN,aN,dN,Mma,eN,Nma,Oma,Qma,Pma,Rma,Sma,Tma,Uma,Vma,Wma,
Xma,Yma,fN,gN,Zma,$ma,ana,cna,dna,ena,fna,gna,oN,hna,ina,lN,mN,nN,pN,lna,jna,rN,qna,nna,ona,pna,rna,sN,sna,una,vna,tna,wna,tN,OK,zna,xna,vN,yna,Ana,wN,Cna,Dna,QM,mM,Bna,AN,BN,Fna,CN,DN,EN,Gna,Hna,Ina,FN,HN,Kna,IN,W,Lna,LN,Mna,Nna,ON,RN,SN,TN,UN,Pna,Qna,Rna,Sna,Tna,Una,Vna,ZN,Wna,$N,Xna,Yna,Zna,$na,aoa,dO,eO,fO,boa,gO,hO,iO,jO,kO,lO,nO,oO,pO,qO,rO,coa,sO,tO,doa,uO,eoa,foa,goa,ioa,hoa,joa,koa,loa,vO,moa,wO,noa,yO,poa,ooa,zO,AO,toa,qoa,soa,roa,BO,CO,uoa,DO,EO,voa,woa,xoa,yoa,FO,zoa,Aoa,GO,HO,JO,KO,LO,
Boa,NO,PO,Eoa,QO,RO,SO,Foa,Goa,Hoa,VO,Ioa,Joa,Koa,Loa,WO,UO,Moa,YO,Noa,ZO,$O,aP,dP,eP,fP,gP,hP,Ooa,iP,Poa,jP,kP,lP,mP,nP,oP,pP,Qoa,qP,rP,sP,tP,uP,Roa,Toa,Soa,Uoa,vP,Voa,Woa,wP,Xoa,xP,yP,zP,Yoa,Zoa,$oa,AP,CP,bpa,DP,EP,FP,GP,dpa,cpa,HP,IP,JP,KP,LP,MP,fpa,epa,NP,OP,X,PP,hpa,QP,lpa,kpa,opa,SP,ppa,TP,RP,UP,VP,XP,rpa,eQ,spa,fQ,$L,dQ,gQ,vpa,wpa,xpa,ypa,qpa,zpa,WP,Bpa,oQ,iQ,aQ,pQ,jQ,ZP,Cpa,Apa,YP,hQ,lQ,qQ,bQ,cQ,nQ,mQ,Epa,rQ,Gpa,Fpa,sQ,Y,Kpa,tQ,Lpa,Hpa,Mpa,uQ,Ppa,Npa,Upa,Rpa,Qpa,Xpa,Wpa,Ypa,aqa,$pa,dqa,fqa,
gqa,kqa,EQ,hqa,mqa,lqa,FQ,qG,nqa,HQ,nG,LQ,xia,MQ,MO,NQ,OQ,vQ,PQ,pqa,DQ,wQ,qqa,QQ,RQ,zQ,rqa,Tpa,xQ,yQ,CQ,sqa,tqa,SQ,TQ,GQ,BQ,AQ,iqa,Zpa,bqa,UQ,VQ,uqa,WQ,XQ,YQ,ZQ,$Q,aR,bR,cR,dR,iH,wqa,vqa,xqa,eqa,Spa,Opa,Jpa,Ipa,Vpa,jqa,cqa,eR,yqa,fR,kL,$P,tpa,IQ,gR,hR,zqa,Aqa,iR,Bqa,jR,kR,lR,qN,uN,Cqa,mR,Dqa,Eqa,Coa,oR,pR,Gqa,Fqa,qR,rR,sR,Doa,IO,Hqa,Iqa,uR,pG,vR,kQ,nR,Kqa,Lqa,Mqa,wR,xR,Nqa,Oqa,Pqa,Qqa,yR,zR,KQ,JQ,Rqa,AR,BR,Sqa,CR,DR,Tqa,Uqa,ER,FR,GR,HR,IR,Vqa,JR,Wqa,KR,LR,MR,NR,PR,QR,RR,TR,Xqa,SR,Yqa,Zqa,UR,ara,$qa,
VR,WR,bra,YR,cra,dra,ZR,era,fra,gra,$R,aS,bS,cS,dS,eS,hra,fS,gS,ira,hS,OR,iS,jS,kS,jra,lS,kra,mS,nS,oS,pS,qS,lra,mra,ora,qra,nra,rS,rra,sra,tra,sS,tS,uS,oqa,ura,vS,vra,wS,pra,wra,xra,yra,Ara,xS,yS,Bra,zS,Cra,Dra,AS,Era,BS,CS,DS,ES,FS,Fra,GS,Gra,Hra,Ira,Jra,IS,Kra,Lra,Mra,Nra,Pra,Ora,Qra,KS,Rra,Sra,oG,Tra,QS,Ura,Vra,SS,Wra,TS,Xra,Yra,US,VS,WS,$ra,XS,$S,asa,bsa,aT,cT,fG,csa,fsa,esa,dsa,gsa,isa,bT,dT,eT,fT,gT,hT,iT,jsa,ksa,kT,lsa,nsa,osa,msa,psa,lT,mT,ssa,rsa,Mq,Pq,usa,tsa,vsa,wsa,xsa,ysa,zsa,Bsa,oT,
Asa,Csa,pT,Dsa,Fsa,Gsa,Hsa,sT,tT,Isa,Lsa,uT,Msa,qT,Ksa,Nsa,Psa,rT,Osa,Jsa,Rsa,yT,wT,zT,xT,mna,Ssa,Tsa,Usa,Vsa,DT,CT,JT,Ena,UT,zra,gta,dU,hta,$sa,gU,kta,lta,hU,ita,jta,iU,jU,kU,qta,sta,mU,xta,pU,zta,wta,Ata,Bta,oU,yta,rU,sU,tU,uU,Wsa,vU,Cta,xU,Dta,wU,zU,Eta,CU,DU,IU,Gta,Hta,KU,JU,LU,Ita,Jta,NU,MU,Kta,PU,QU,Mta,Lta,TU,Ota,VU,RU,Pta,Qta,Rta,Nta,WU,ZU,Sta,YU,$U,bV,aV,Uta,Vta,gV,Wta,Xta,jV,Yta,aua,Zta,nV,oV,bua,rV,sV,uV,wV,cua,dua,zV,fua,yV,eua,gua,hua,CV,iua,jua,FV,GV,lua,kua,HV,IV,mua,nua,LV,pua,oua,
MV,NV,OV,qua,PV,QV,RV,SV,rua,TV,sua,UV,uua,tua,wua,vua,ZV,XV,YV,xua,yua,$V,zua,aW,bW,cW,dW,Aua,gW,Bua,iW,jW,kW,Cua,mW,nW,oW,pW,Dua,Gua,qW,Eua,Fua,rW,Kua,Lua,sW,Nua,Mua,Oua,Pua,Qua,vW,xW,yW,gX,Rua,Sua,Tua,Uua,Wua,Xua,Yua,kX,oX,$ua,ava,mX,iX,lX,qX,dva,rX,nX,Vua,cva,pX,Zua,bva,eva,fva,sX,tX,uX,vX,hva,yX,zX,AX,BX,CX,DX,iva,EX,GX,FX,HX,IX,jva,JX,kva,mva,lva,KX,LX,nva,MX,NX,ova,OX,pva,PX,qva,QX,RX,VX,UX,rva,TX,YX,sva,tva,ZX,$X,bY,uva,hV,yva,DV,vva,XX,xva,EV,wva,zva,Dva,Cva,fY,Eva,gY,Fva,hY,Gva,Hva,Iva,
Jva,kY,Ova,Rva,Pva,Lva,lY,jY,Kva,Qva,pY,Tva,Sva,qY,Wva,Yva,Zva,Xva,tY,$va,vY,fwa,yY,ewa,dwa,zY,uY,AY,bU,gwa,xY,$ha,jwa,hwa,wY,iwa,bwa,dia,CY,owa,EY,qwa,rwa,mwa,GY,swa,HY,kwa,JY,nwa,twa,IY,FY,uwa,cU,vwa,DY,xwa,NY,LY,OY,MY,PY,ywa,QY,RY,SY,TY,zwa,UY,VY,Bwa,$Y,Dwa,fK,Ewa,Fwa,cZ,bZ,aZ,Gwa,Hwa,dta,eta,Iwa,Jwa,eZ,fZ,gZ,Kwa,hZ,iZ,Lwa,Mwa,Nwa,Pwa,Owa,jZ,Qwa,Swa,Rwa,Uwa,lZ,Ywa,Vwa,Zwa,$wa,Xwa,axa,mZ,exa,cxa,dxa,hxa,ixa,jxa,kxa,lxa,kZ,mxa,gxa,bxa,nxa,oZ,oxa,Wwa,pxa,pZ,qZ,qxa,rxa,txa,uxa,rZ,sxa,sZ,tZ,uZ,wZ,wxa,
yxa,zxa,Bxa,Axa,xZ,xxa,zZ,yZ,Cxa,vZ,Dxa,AZ,DZ,Exa,Gxa,Fxa,CZ,Hxa,Ixa,Kxa,Jxa,Lxa,EZ,BZ,Mxa,Nxa,FZ,GZ,Pxa,Qxa,Rxa,Oxa,Sxa,Txa,Vxa,Xxa,Yxa,Uxa,$xa,aya,Wxa,JZ,bya,cya,dya,eya,KZ,LZ,OZ,PZ,gya,QZ,hya,iya,RZ,jya,UZ,kya,lya,nya,mya,oya,VZ,WZ,pya,XZ,YZ,ZZ,tya,a_,$Z,uya,d_,sya,vya,rya,c_,wya,b_,xya,e_,yya,fya,TZ,Aya,Bya,Cya,Dya,Eya,g_,h_,Fya,Gya,Hya,j_,Jya,l_,Kya,Lya,k_,i_,Iya,o_,n_,p_,m_,Mya,r_,Qya,u_,Rya,Oya,s_,v_,Pya,Sya,Tya,Vya,q_,Wya,Xya,Uya,t_,Yya,Nya,w_,x_,y_,$ya,bza,aza,cza,eza,dza,z_,A_,fza,B_,C_,
D_,E_,F_,G_,gza,hza,jza,kza,lza,mza,nza,oza,pza,H_,qza,rza,I_,J_,K_,L_,M_,N_,sza,O_,tza,uza,vza,wza,xza,zza,P_,Aza,Q_,Bza,Dza,Cza,Eza,Kza,Fza,Iza,Jza,Gza,Lza,Hza,Nza,R_,Pza,Qza,Rza,$_,xK,a0,vT,Uza,awa,Wza,b0,Z_,Xza,Yza,h0,d0,sY,Vza,j0,$za,k0,Qsa,g0,l0,U_,Zza,Sza,X_,o0,p0,eAa,mY,fAa,nY,Vva,n0,BY,c0,gAa,iAa,hAa,jAa,q0,Nva,Zsa,kAa,cAa,T_,lAa,r0,e0,V_,Y_,oY,Tza,s0,mAa,nAa,f0,oAa,Mva,m0,dAa,u0,wAa,rAa,dG,qAa,zAa,AAa,x0,aU,CAa,BAa,y0,fta,t0,C0,D0,EAa,E0,G0,uAa,vAa,M0,IAa,L0,v0,Q0,xAa,R0,FAa,LT,JAa,KAa,
I0,J0,H0,U0,PAa,z0,QAa,RAa,SAa,pwa,UAa,V0,P0,Uva,A0,KY,W0,X0,VAa,K0,DAa,T0,LAa,XAa,ata,AT,ZAa,O0,Z0,aBa,B0,VT,$0,bBa,cBa,a1,eBa,tAa,S0,fBa,sAa,b1,c1,Cwa,gBa,jBa,lBa,g1,h1,aa,fa,ea,eaa,Ha,Qa,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})}};
ka=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)}};
la=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.ma=function(a){return a instanceof Array?a:la(g.q(a))};
g.u=function(a,b){a.prototype=na(b.prototype);a.prototype.constructor=a;if(oa)oa(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.Jd=b.prototype};
pa=function(){this.I=!1;this.D=null;this.B=void 0;this.u=1;this.R=this.C=0;this.F=null};
qa=function(a){if(a.I)throw new TypeError("Generator is already running");a.I=!0};
ra=function(a,b){a.F={OC:b,kL:!0};a.u=a.C||a.R};
sa=function(a,b,c){a.u=c;return{value:b}};
ta=function(a,b){a.u=b;a.C=0};
ua=function(a){a.C=0;var b=a.F.OC;a.F=null;return b};
baa=function(a){this.u=new pa;this.B=a};
caa=function(a,b){qa(a.u);var c=a.u.D;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return wa(a)};
va=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.I=!1,e;var f=e.value}catch(h){return a.u.D=null,ra(a.u,h),wa(a)}a.u.D=null;d.call(a.u,f);return wa(a)};
wa=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.I=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,ra(a.u,c)}a.u.I=!1;if(a.u.F){b=a.u.F;a.u.F=null;if(b.kL)throw b.OC;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.u);a.u.D?b=va(a,a.u.D.next,b,a.u.K):(a.u.K(b),b=wa(a));return b};
this["throw"]=function(b){qa(a.u);a.u.D?b=va(a,a.u.D["throw"],b,a.u.K):(ra(a.u,b),b=wa(a));return b};
this["return"]=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
xa=function(a,b){var c=new daa(new baa(b));oa&&a.prototype&&oa(c,a.prototype);return c};
za=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+""};
Aa=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{KD:e,rI:f}}return{KD:-1,rI:void 0}};
Ba=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ca=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};
Da=function(a){return a?a:Array.prototype.fill};
Ea=function(a){return a?a:Array.prototype.copyWithin};
g.Fa=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};
Ia=function(a){if(a&&a!=g.v)return Ga(a.document);null===Ha&&(Ha=Ga(g.v.document));return Ha};
Ga=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Ja=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.Ka=function(){};
La=function(a){a.xf=void 0;a.getInstance=function(){return a.xf?a.xf:a.xf=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Na=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Sa=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++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.Ta=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.Ua=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.Jd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.og=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)}};
Xa=function(a){return a};
Ya=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ya);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Za=function(a,b){for(var c=Ya.call,d=a.split("%s"),e="",f=d.length-1,h=0;h<f;h++)e+=d[h]+(h<b.length?b[h]:"%s");c.call(Ya,this,e+d[f])};
iaa=function(){};
jaa=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}};
$a=function(a){return function(){return a}};
g.ab=function(a){return a};
kaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
bb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
cb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
laa=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.db=function(a){return a[a.length-1]};
maa=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.fb=function(a,b,c){b=eb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
eb=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.gb=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.jb=function(a,b){return 0<=ib(a,b)};
g.kb=function(a){return 0==a.length};
lb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ob=function(a,b){var c=ib(a,b),d;(d=0<=c)&&g.nb(a,c);return d};
g.nb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.pb=function(a,b){var c=eb(a,b,void 0);0<=c&&g.nb(a,c)};
naa=function(a,b){var c=0;maa(a,function(d,e){b.call(void 0,d,e,a)&&g.nb(a,e)&&c++})};
g.qb=function(a){return Array.prototype.concat.apply([],arguments)};
g.rb=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[]};
sb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ub=function(a,b,c,d){Array.prototype.splice.apply(a,tb(arguments,1))};
tb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
oaa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Pa(f)?"o"+g.Sa(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.xb=function(a,b,c){return vb(a,c||wb,!1,b)};
yb=function(a,b){return vb(a,b,!0,void 0,void 0)};
vb=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.zb=function(a,b){a.sort(b||wb)};
paa=function(a,b){var c=wb;g.zb(a,function(d,e){return c(b(d),b(e))})};
g.Ab=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=qaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
wb=function(a,b){return a>b?1:a<b?-1:0};
qaa=function(a,b){return a===b};
g.Bb=function(a,b,c){c=g.xb(a,b,c);0>c&&g.ub(a,-(c+1),0,b)};
g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
raa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
saa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Fb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Hb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Ib=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Jb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Kb=function(a){for(var b in a)return a[b]};
g.Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Mb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Nb=function(a,b){var c=g.Na(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Ob=function(a,b){return null!==a&&b in a};
g.Pb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Qb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Rb=function(a,b){var c=Qb(a,b,void 0);return c&&a[c]};
g.Sb=function(a){for(var b in a)return!1;return!0};
g.Tb=function(a){for(var b in a)delete a[b]};
g.Ub=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.Vb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Wb=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.Wb(a[c]);return b};
g.Zb=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<Xb.length;f++)c=Xb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
$b=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
bc=function(){if(void 0===ac){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Xa,createScript:Xa,createScriptURL:Xa})}catch(c){g.v.console&&g.v.console.error(c.message)}ac=a}else ac=a}return ac};
ec=function(a,b){this.u=a===cc&&b||"";this.C=dc};
fc=function(a){return a instanceof ec&&a.constructor===ec&&a.C===dc?a.u:"type_error:Const"};
g.gc=function(a){return new ec(cc,a)};
ic=function(a,b){this.C=b===hc?a:""};
jc=function(a){return a instanceof ic&&a.constructor===ic?a.C:"type_error:TrustedResourceUrl"};
vaa=function(a,b){var c=fc(a);if(!taa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(uaa,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 ec?fc(h):encodeURIComponent(String(h))});
return lc(d)};
lc=function(a){var b=bc();a=b?b.createScriptURL(a):a;return new ic(a,hc)};
nc=function(a,b){return 0==a.lastIndexOf(b,0)};
oc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.pc=function(a){return/^[\s\xa0]*$/.test(a)};
xc=function(a,b){if(b)a=a.replace(qc,"&amp;").replace(rc,"&lt;").replace(sc,"&gt;").replace(tc,"&quot;").replace(uc,"&#39;").replace(vc,"&#0;");else{if(!waa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(qc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(rc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(sc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(tc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(uc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(vc,"&#0;"))}return a};
yc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Cc=function(a,b){for(var c=0,d=Ac(String(a)).split("."),e=Ac(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=Bc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Bc(0==l[2].length,0==m[2].length)||Bc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Bc=function(a,b){return a<b?-1:a>b?1:0};
g.Ec=function(a,b){this.C=b===Dc?a:""};
g.Fc=function(a){return a instanceof g.Ec&&a.constructor===g.Ec?a.C:"type_error:SafeUrl"};
Gc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(xaa);return b&&yaa.test(b[1])?new g.Ec(a,Dc):null};
g.Jc=function(a){a instanceof g.Ec||(a="object"==typeof a&&a.Rj?a.Tg():String(a),a=Hc.test(a)?new g.Ec(a,Dc):Gc(a));return a||Ic};
g.Kc=function(a,b){if(a instanceof g.Ec)return a;a="object"==typeof a&&a.Rj?a.Tg():String(a);if(b&&/^data:/i.test(a)){var c=Gc(a)||Ic;if(c.Tg()==a)return c}Hc.test(a)||(a="about:invalid#zClosurez");return new g.Ec(a,Dc)};
Mc=function(a,b){this.u=b===Lc?a:""};
Nc=function(a){return a instanceof Mc&&a.constructor===Mc?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.Oc(d,Pc).join(" "):Pc(d),b+=c+":"+d+";")}return b?new Mc(b,Lc):Rc};
Pc=function(a){if(a instanceof g.Ec)return'url("'+g.Fc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof ec?fc(a):zaa(String(a));if(/[{;}]/.test(a))throw new Za("Value does not allow [{;}], got: %s.",[a]);return a};
zaa=function(a){var b=a.replace(Tc,"$1").replace(Tc,"$1").replace(Uc,"url");if(Aaa.test(b)){if(Baa.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||!Caa(a))return"zClosurez"}else return"zClosurez";return Daa(a)};
Caa=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};
Daa=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.Jc(d).Tg();return c+f+b+f+e})};
Eaa=function(a){function b(d){Array.isArray(d)?g.Cb(d,b):c+=Nc(d)}
var c="";g.Cb(arguments,b);return c?new Mc(c,Lc):Rc};
Wc=function(a){return-1!=g.Vc.indexOf(a)};
Xc=function(){return Wc("Firefox")||Wc("FxiOS")};
Zc=function(){return Wc("Safari")&&!(Yc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Xc()||Wc("Silk")||Wc("Android"))};
Yc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
ad=function(a,b,c){this.C=c===$c?a:"";this.D=b};
g.bd=function(a){return a instanceof ad&&a.constructor===ad?a.C:"type_error:SafeHtml"};
dd=function(a){if(a instanceof ad)return a;var b="object"==typeof a,c=null;b&&a.B&&(c=a.u());return cd(xc(b&&a.Rj?a.Tg():String(a)),c)};
Faa=function(a){function b(f){Array.isArray(f)?g.Cb(f,b):(f=dd(f),e.push(g.bd(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=dd(ed),d=c.u(),e=[];g.Cb(a,b);return cd(e.join(g.bd(c).toString()),d)};
Gaa=function(a){return Faa(Array.prototype.slice.call(arguments))};
cd=function(a,b){var c=bc();c=c?c.createHTML(a):a;return new ad(c,b,$c)};
g.fd=function(a,b){fc(a);fc(a);return cd(b,null)};
Haa=function(a){var b=g.gc("Output of CSS sanitizer");fc(b);fc(b);return new Mc(a,Lc)};
g.gd=function(a,b){if(Iaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.bd(b)};
g.jd=function(a,b){var c=b instanceof g.Ec?b:g.Kc(b);a.href=g.Fc(c)};
g.kd=function(a,b){a.src=jc(b);var c=Ia(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
ld=function(a,b,c,d){a=a instanceof g.Ec?a:g.Kc(a);b=b||g.v;c=c instanceof ec?fc(c):c||"";return void 0!==d?b.open(g.Fc(a),c,d,void 0):b.open(g.Fc(a),c)};
md=function(a){return encodeURIComponent(String(a))};
nd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.od=function(a){return a=xc(a,void 0)};
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.pc(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()};
Jaa=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?nd(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?"":"="+md(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.Kd=function(a){var b=[],c;for(c in a)Fd(c,a[c],b);return b.join("&")};
Ld=function(a,b){var c=2==arguments.length?Gd(arguments[1],0):Gd(arguments,1);return Ed(a,c)};
g.Md=function(a,b){var c=g.Kd(b);return Ed(a,c)};
Nd=function(a,b,c){c=null!=c?"="+md(c):"";return Ed(a,b+c)};
Od=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};
Qd=function(a,b){var c=a.search(Pd),d=Od(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 nd(a.substr(d,e-d))};
Sd=function(a,b){for(var c=a.search(Pd),d=0,e,f=[];0<=(e=Od(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(Kaa,"$1")};
Td=function(a,b,c){return Nd(Sd(a,b),b,c)};
Laa=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.Kd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Ud=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Vd=function(){return Ud()||Wc("iPad")||Wc("iPod")};
Wd=function(a){Wd[" "](a);return a};
Xd=function(a,b){try{return Wd(a[b]),!0}catch(c){}return!1};
Yd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Zd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.ae=function(a){return Yd(Maa,a,function(){return 0<=g.Cc($d,a)})};
g.be=function(a){return Number(Naa)>=a};
g.ce=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.de=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.ee=function(a,b,c){return a+c*(b-a)};
fe=function(a,b){return 1E-6>=Math.abs(a-b)};
g.ge=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
he=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ie=function(a,b){this.width=a;this.height=b};
g.je=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
ke=function(a){return a.width*a.height};
oe=function(a){return a?new le(me(a)):ne||(ne=new le)};
pe=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.re=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.qe(document,"*",a,b)};
g.se=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.qe(c,"*",a,b)[0]||null}return c||null};
g.qe=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.jb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
ve=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.Rj&&(c=c.Tg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:te.hasOwnProperty(d)?a.setAttribute(te[d],c):nc(d,"aria-")||nc(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.ie(a.clientWidth,a.clientHeight)};
ze=function(a){var b=xe(a);a=a.parentWindow||a.defaultView;return g.ye&&g.ae("10")&&a.pageYOffset!=b.scrollTop?new g.ge(b.scrollLeft,b.scrollTop):new g.ge(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};
Ee=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Oaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.od(h.name),'"');if(h.type){f.push(' type="',g.od(h.type),'"');var l={};g.Zb(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.Na(f)||g.Pa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Pa(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.Cb(h?g.rb(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};
Qaa=function(a){return Paa&&void 0!=a.children?a.children:g.Ke(a.childNodes,function(b){return 1==b.nodeType})};
g.Le=function(a){var b;if(Raa&&!(g.ye&&g.ae("9")&&!g.ae("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.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};
me=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=me(a);a.appendChild(c.createTextNode(String(b)))}};
Se=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.ae("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};
Ue=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Te(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.jb(f.className.split(/\s+/),c))},!0,d)};
Te=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};
le=function(a){this.u=a||g.v.document||document};
Ve=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.od(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=oe(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=vaa(g.gc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.od(a)+".js"});g.kd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
We=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())})};
Saa=function(a){return g.Oc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Xe=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.Ye=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("")};
$e=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Ze(this,a,b,c)};
bf=function(a,b,c){if(af.length){var d=af.pop();a&&Ze(d,a,b,c);return d}return new $e(a,b,c)};
Ze=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.cf(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};
df=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};
ef=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};
ff=function(a){this.u=bf(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
gf=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=ef(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};
hf=function(a){switch(a.B){case 0:if(0!=a.B)hf(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?hf(a):a.u.advance(8);break;case 2:if(2!=a.B)hf(a);else{var b=ef(a.u);a.u.advance(b)}break;case 5:5!=a.B?hf(a):a.u.advance(4);break;case 3:b=a.C;do{if(!gf(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}hf(a)}while(1);break;default:a.D=!0}};
jf=function(a){var b=ef(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=tb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
kf=function(a){var b=ef(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};
nf=function(){this.u=[]};
g.of=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.pf=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.sf=function(a,b){void 0===b&&(b=0);qf();for(var c=rf[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.tf=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.sf(b,3)};
Taa=function(a){var b=[];uf(a,function(c){b.push(c)});
return b};
g.cf=function(a){!g.ye||g.ae("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;uf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
uf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=vf[n];if(null!=p)return p;if(!g.pc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
qf();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))}};
qf=function(){if(!vf){vf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));rf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===vf[f]&&(vf[f]=e)}}}};
g.wf=function(){this.C=[];this.B=0;this.u=new nf};
g.xf=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.zf=function(a,b,c){if(null!=c&&null!=c)if(g.of(a.u,8*b),a=a.u,0<=c)g.of(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.Cf=function(a,b,c){if(null!=c&&null!=c){g.of(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.Af=b;g.Bf=d;c=g.Af;for(b=g.Bf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.Df=function(a,b,c){if(null!=c){g.of(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.Bf=0<1/d?0:2147483648,g.Af=0;else if(isNaN(d))g.Bf=2147483647,g.Af=4294967295;else if(1.7976931348623157E308<d)g.Bf=(c<<31|2146435072)>>>0,g.Af=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.Bf=(c<<31|d/4294967296)>>>0,g.Af=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.Bf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.Af=4503599627370496*
d>>>0}g.pf(a,g.Af);g.pf(a,g.Bf)}};
g.Ef=function(){};
g.Jf=function(a,b,c,d){a.u=null;b||(b=[]);a.I=void 0;a.C=-1;a.Mf=b;a:{if(b=a.Mf.length){--b;var e=a.Mf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Ff&&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.Mf[e]=a.Mf[e]||Gf):(Hf(a),a.B[e]=a.B[e]||Gf);if(d&&d.length)for(b=0;b<d.length;b++)g.If(a,d[b])};
Hf=function(a){var b=a.D+a.C;a.Mf[b]||(a.B=a.Mf[b]={})};
g.Kf=function(a,b){if(b<a.D){var c=b+a.C,d=a.Mf[c];return d!==Gf?d:a.Mf[c]=[]}if(a.B)return d=a.B[b],d===Gf?a.B[b]=[]:d};
Uaa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.cf(a):null};
Lf=function(a,b){var c=g.Kf(a,b);return null==c?0:c};
g.Mf=function(a,b,c){b<a.D?a.Mf[b+a.C]=c:(Hf(a),a.B[b]=c);return a};
Nf=function(a,b,c){0!==c?g.Mf(a,b,c):b<a.D?a.Mf[b+a.C]=null:(Hf(a),delete a.B[b]);return a};
g.If=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Kf(a,f);null!=h&&(c=f,d=h,g.Mf(a,f,void 0))}return c?(g.Mf(a,c,d),c):0};
g.Of=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.Kf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}b=a.u[c];b==Gf&&(b=a.u[c]=[]);return b};
Pf=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?Pf(d):d)}return b}if(Ff&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Pf(d):d);return b};
Vaa=function(a){var b=g.Ja("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=Qf(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,Rf[c])c=Rf[c];else{c=String(c);if(!Rf[c]){var f=/function\s+([^\(]+)/m.exec(c);Rf[c]=f?f[1]:"[Anonymous]"}c=Rf[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};
Qf=function(a,b){b||(b={});b[Sf(a)]=!0;var c=a.stack||"",d=a.T4;d&&!b[Sf(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Qf(d,b));return c};
Sf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Tf=function(a){this.u=a||{cookie:""}};
Vf=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ac(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}};
Wf=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};
Xf=function(a){return a?a.passive&&Waa()?a:a.capture||!1:!1};
Yf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Xf(d)),!0):!1};
Zf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Xf(void 0))};
ag=function(){return!$f()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
$f=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
bg=function(a){try{return!!a&&null!=a.location.href&&Xd(a,"foo")}catch(b){return!1}};
cg=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Yaa=function(){var a=[];cg(Xaa,function(b){a.push(b)});
return a};
$aa=function(a){return(a=Zaa.exec(a))&&a[0]||""};
aba=function(){var a=dg;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""};
cba=function(){var a=g.Fe("IFRAME"),b={};g.Cb(bba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.C=function(){this.Ub=this.Ub;this.Ob=this.Ob};
g.D=function(a,b){g.eg(a,g.Ta(g.fg,b))};
g.eg=function(a,b){a.Ub?b():(a.Ob||(a.Ob=[]),a.Ob.push(b))};
g.fg=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.gg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.gg.apply(null,d):g.fg(d)}};
hg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ig=function(a,b,c){b instanceof g.ge?(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.jg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
kg=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};
mg=function(a){if(a!==lg)throw Error("Bad secret");};
ng=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
dba=function(){};
og=function(a,b){mg(b);this.u=a};
eba=function(){};
pg=function(a,b){mg(b);this.u=a};
fba=function(){};
qg=function(a,b){mg(b);this.u=a};
g.sg=function(a){rg();return lc(a)};
g.ug=function(a,b,c){if("string"===typeof b)(b=tg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=tg(c,d);f&&(c.style[f]=e)}};
tg=function(a,b){var c=vg[b];if(!c){var d=sd(b);c=d;void 0===a.style[d]&&(d=(g.Ae?"Webkit":wg?"Moz":g.ye?"ms":g.xg?"O":null)+Jaa(d),void 0!==a.style[d]&&(c=d));vg[b]=c}return c};
g.yg=function(a,b){var c=a.style[sd(b)];return"undefined"!==typeof c?c:a.style[tg(a,b)]||""};
zg=function(a,b){var c=me(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Ag=function(a,b){return zg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Cg=function(a,b,c){if(b instanceof g.ge){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Bg(d,!1);a.style.top=g.Bg(b,!1)};
Dg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
gba=function(a){if(g.ye&&!g.be(8))return a.offsetParent;var b=me(a),c=Ag(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=Ag(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.Eg=function(a){var b=me(a),c=new g.ge(0,0);var d=b?me(b):document;d=!g.ye||g.be(9)||"CSS1Compat"==oe(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=Dg(a);b=ze(oe(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Gg=function(a,b){var c=new g.ge(0,0),d=Be(me(a));if(!Xd(d,"parent"))return c;var e=a;do{var f=d==b?g.Eg(e):Fg(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.Jg=function(a,b){var c=Hg(a),d=Hg(b);return new g.ge(c.x-d.x,c.y-d.y)};
Fg=function(a){a=Dg(a);return new g.ge(a.left,a.top)};
Hg=function(a){if(1==a.nodeType)return Fg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ge(a.clientX,a.clientY)};
g.Kg=function(a,b,c){if(b instanceof g.ie)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Bg(b,!0);a.style.height=g.Bg(c,!0)};
g.Bg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Lg=function(a){var b=hba;if("none"!=Ag(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=Dg(a),new g.ie(a.right-a.left,a.bottom-a.top)):new g.ie(b,c)};
g.Mg=function(a,b){a.style.display=b?"":"none"};
Qg=function(){if(Ng&&!bg(Og)){var a="."+Pg.domain;try{for(;2<a.split(".").length&&!bg(Og);)Pg.domain=a=a.substr(a.indexOf(".")+1),Og=window.parent}catch(b){}bg(Og)||(Og=window)}return Og};
Rg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.ie(b.innerWidth,b.innerHeight)).round():we(b||window).round()}catch(d){return new g.ie(-12245933,-12245933)}};
Sg=function(a,b,c){try{a&&(b=b.top);var d=Rg(a,b,void 0===c?!1:c),e=ze(oe(b.document).u);if(-12245933==d.width){var f=d.width;var h=new hg(f,f,f,f)}else h=new hg(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new hg(-12245933,-12245933,-12245933,-12245933)}};
iba=function(a){var b={};g.Cb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
naa(a,function(c){return null===b[c.event]})};
Tg=function(){this.xc=0;this.u=!1;this.B=-1;this.Gm=!1;this.jg=0};
Ug=function(){this.B=null;this.u=!1};
Vg=function(a){Ug.call(this);this.C=a};
Wg=function(){Ug.call(this)};
Xg=function(){Ug.call(this)};
Yg=function(){this.u={};this.B=!0;this.C={}};
Zg=function(a,b,c){a.u[b]||(a.u[b]=new Vg(c));return a.u[b]};
jba=function(a){a.u.queryid||(a.u.queryid=new Xg)};
$g=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
ah=function(a,b){if(Ob(a.C,b))return a.C[b];var c=a.u[b];if(c)return c.getValue()};
bh=function(a){var b={},c=g.Fb(a.u,function(d){return d.u});
g.Eb(c,function(d,e){var f=void 0!==a.C[e]?String(a.C[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
kba=function(a){a=bh(a);var b=[];g.Eb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lba=function(){this.u=this.jl=null};
ch=function(){};
eh=function(){if(!dh())throw Error();};
dh=function(){return!(!fh||!fh.performance)};
gh=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
hh=function(){};
kh=function(a){a=a||ih();for(var b=new jh(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.Sy){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new nba(b,e,c)};
ih=function(){var a=g.v,b=[],c=null;do{var d=a;if(bg(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new jh(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.Sy=!0);return b};
nba=function(a,b,c){this.u=a;this.B=b;this.C=c};
jh=function(a,b,c){this.url=a;this.Df=b;this.Sy=!!c;this.depth=null};
lh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
mh=function(a,b){var c={};c[a]=b;return[c]};
oh=function(a,b,c,d,e){var f=[];cg(a,function(h,l){var m=nh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
nh=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(nh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(oh(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};
ph=function(a,b){this.u=a;this.depth=b};
qba=function(){function a(l,m){return null==l?m:l}
var b=ih(),c=Math.max(b.length-1,0),d=kh(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new ph([f.url,f.Sy?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ph([e.url,2],0));b.url&&b!=f&&h.push(new ph([b.url,0],a(b.depth,c)));d=g.Oc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=$aa(b.url))&&d.push([new ph([e,1],a(b.depth,c))]);d.push([]);return g.Oc(d,function(l){return pba(c,l)})};
pba=function(a,b){g.qh(b,function(e){return 0<=e.depth});
var c=g.rh(b,function(e,f){return Math.max(e,f.depth)},-1),d=raa(c+2);
d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.u});
return d};
rba=function(){var a=qba();return g.Oc(a,function(b){return nh(b)})};
sh=function(){this.B=new hh;this.u=dh()?new eh:new ch};
sba=function(){th();var a=fh.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof fh.setInterval&&"function"===typeof fh.clearInterval&&"function"===typeof fh.setTimeout&&"function"===typeof fh.clearTimeout)};
uh=function(a){th();var b=Qg()||fh;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
vh=function(){th();return rba()};
wh=function(){};
th=function(){return wh.getInstance().getContext()};
yh=function(a){g.Jf(this,a,null,null)};
tba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
zh=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.ma(d));try{return a.u=a.D.u.now(),b.apply(null,g.ma(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(){};
Ch=function(){this.C=void 0;this.B=this.I=0;this.F=-1;this.xb=new Yg;Zg(this.xb,"mv",Ah).u=!0;Zg(this.xb,"omid",Bh);Zg(this.xb,"epoh",Bh).u=!0;Zg(this.xb,"epph",Bh).u=!0;Zg(this.xb,"umt",Bh).u=!0;Zg(this.xb,"phel",Bh).u=!0;Zg(this.xb,"phell",Bh).u=!0;Zg(this.xb,"oseid",wba).u=!0;var a=this.xb;a.u.sloi||(a.u.sloi=new Wg);a.u.sloi.u=!0;Zg(this.xb,"xdi",Bh).u=!0;Zg(this.xb,"amp",Bh).u=!0;Zg(this.xb,"prf",Bh).u=!0;Zg(this.xb,"gtx",Bh).u=!0;Zg(this.xb,"mvp_lv",Bh).u=!0;Zg(this.xb,"vcm",Bh).u=!0;Zg(this.xb,
"dov",Ah).u=!0;Zg(this.xb,"mpv",Bh).u=!0;Zg(this.xb,"ssmol",Bh).u=!0;Zg(this.xb,"zocl",Bh).u=!0;this.u=new uba(th(),this.xb);this.D=!1;this.flags=new vba};
xba=function(){var a="https:";fh&&fh.location&&"http:"===fh.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
Dh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof lh)var f=c;else f=new lh,cg(c,function(l,m){var n=f,p=n.D++,r=mh(m,l);n.u.push(p);n.B[p]=r});
var h=f.Ld(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&uh(h)}catch(l){}};
Eh=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
Fh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
yba=function(a,b){var c=Fh()||Eh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Hh=function(){var a=Qg();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=Gh()||(null!=b?b:1>Math.random())};
Jh=function(a){a&&Ih&&Gh()&&(Ih.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ih.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Mh=function(){var a=Kh;this.F=Lh;this.D="jserror";this.C=!0;this.u=null;this.I=this.B;this.Za=void 0===a?null:a};
Qh=function(a,b,c,d){return zh(Ch.getInstance().u.u,function(){try{if(a.Za&&a.Za.u){var e=a.Za.start(b.toString(),3);var f=c();a.Za.end(e)}else f=c()}catch(m){var h=a.C;try{Jh(e);var l=new Oh(Ph(m));h=a.I(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Sh=function(a,b,c){var d=Rh;return zh(Ch.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Qh(d,a,function(){return b.apply(void 0,f)},c)})};
Ph=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};
Oh=function(a){Wf.call(this,Error(a),{message:a})};
Th=function(){var a=Qg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Kh.disable())};
zba=function(a){Rh.u=function(b){g.Cb(a,function(c){c(b)})}};
Uh=function(a,b){return Qh(Rh,a,b,void 0)};
Vh=function(a,b){return Sh(a,b,void 0)};
Wh=function(a,b,c,d){Rh.B(a,b,c,d)};
Xh=function(){return Date.now()-Aba};
Bba=function(){var a=Ch.getInstance().C,b=0<=Yh?Xh()-Yh:-1,c=Zh?Xh()-$h:-1,d=0<=ai?Xh()-ai:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Wh(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};
bi=function(a,b,c){var d=new hg(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
ci=function(a,b,c,d,e,f,h,l){this.D=a;this.K=b;this.C=c;this.I=d;this.u=e;this.F=f;this.B=h;this.R=l};
di=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,bg(a)&&(c=a,b=d);return{Df:c,level:b}};
ei=function(a){var b=a!==a.top,c=a.top===di(a).Df,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),Jb(Cba,function(h){return"function"===typeof f[h]})||(e=1));
return{Vh:f,compatibility:e,YR:d}};
Dba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
fi=function(a,b,c,d){var e=void 0===e?!1:e;c=Sh(d,c,void 0);Yf(a,b,c,{capture:e})};
gi=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
hi=function(a){return new hg(a.top,a.right,a.bottom,a.left)};
ii=function(a){var b=a.top||0,c=a.left||0;return new hg(b,c+(a.width||0),b+(a.height||0),c)};
ji=function(a){return null!=a&&0<=a&&1>=a};
Eba=function(){var a=g.Vc;return a?ki("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return yc(a,b)})||yc(a,"OMI/")&&!yc(a,"XiaoMi/")?!0:yc(a,"Presto")&&yc(a,"Linux")&&!yc(a,"X11")&&!yc(a,"Android")&&!yc(a,"Mobi"):!1};
li=function(){this.C=!bg(fh.top);this.isMobileDevice=$f()||ag();var a=ih();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 hg(0,0,0,0);this.D=new g.ie(0,0);this.F=new g.ie(0,0);this.K=new hg(0,0,0,0);this.I=0;this.R=!1;this.B=!(!fh||!ei(fh).Vh);this.update(fh)};
mi=function(a,b){b&&b.screen&&(a.D=new g.ie(b.screen.width,b.screen.height))};
ni=function(a,b){var c=a.u?new g.ie(a.u.Ee(),a.u.getHeight()):new g.ie(0,0);var d=b;d=void 0===d?fh: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.ie(f,e)}catch(y){w=new g.ie(-12245933,-12245933)}a.F=w};
oi=function(){var a=li.getInstance();if(0<a.I||a.R)return!0;a=th().B.isVisible();var b=0===gh(Pg);return a||b};
pi=function(a){this.C=a;this.B=0;this.u=null};
qi=function(a,b,c){this.Df=a;this.za=void 0===c?"na":c;this.D=[];this.Yd=!1;this.C=new bi(-1,!0,this);this.u=this;this.K=b;this.P=this.ma=this.R=!1;this.aa="uk";this.fa=!1;this.F=!0};
si=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.aa=b,a.K=0,a.u!=a||ri(a)};
ti=function(a,b){g.jb(a.D,b)||(a.D.push(b),b.jo(a.u),b.Xk(a.C),b.qj()&&(a.R=!0))};
ui=function(a){a=a.u;a.KE();a.JE();var b=li.getInstance();b.K=Sg(!1,a.Df,b.isMobileDevice);a.EL();a.C.u=a.qD()};
xi=function(a){a.R=a.D.length?ki(a.D,function(b){return b.qj()}):!1};
yi=function(a){var b=g.rb(a.D);g.Cb(b,function(c){c.Xk(a.C)})};
ri=function(a){var b=g.rb(a.D);g.Cb(b,function(c){c.jo(a.u)});
a.u!=a||yi(a)};
zi=function(a,b,c,d){this.element=a;this.u=new hg(0,0,0,0);this.X=null;this.D=new hg(0,0,0,0);this.B=b;this.xb=c;this.aa=d;this.Y=!1;this.timestamp=-1;this.K=new ci(b.C,this.element,this.u,new hg(0,0,0,0),0,0,Xh(),0)};
Ai=function(a){this.F=!1;this.u=a;this.D=g.Ka};
Bi=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}};
Ci=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};
Di=function(){this.C=0;this.u=[];this.B=!1};
Gba=function(a,b){(0,g.Cb)(b.u,function(c){a.add(c.B,c.u,Fba(c))})};
Ei=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;cg(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Fi=function(a){var b=Hba;a.B&&(g.zb(a.u,function(c,d){return Ci(d,c)?1:Ci(c,d)?-1:0}),a.B=!1);
return(0,g.rh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Hba=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.jb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Hi=function(a){var b=void 0===b?!0:b;this.u=new Di;void 0!==a&&Gba(this.u,a);b&&this.u.add("v",Gi,-16)};
Iba=function(a){var b=[],c=[];g.Eb(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)};
Ii=function(){if(Gi&&"unreleased"!==Gi)return Gi};
Ji=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ii();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);uh(a)};
Ki=function(){this.u=0};
Jba=function(a,b,c){(0,g.Cb)(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 Di;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=Ki.getInstance();h.add("i",d.u++);h.add("adk",e);Ei(h,f);e=new Hi(h);Ji(e)}})};
Li=function(){this.B=this.C=this.D=this.u=0};
Mi=function(a){this.B=a=void 0===a?Kba:a;this.u=g.Oc(this.B,function(){return new Li})};
Oi=function(a,b){return Ni(a,function(c){return c.u},void 0===b?!0:b)};
Si=function(a,b){return Pi(a,b,function(c){return c.u})};
Ti=function(a,b){return Ni(a,function(c){return c.C},void 0===b?!0:b)};
Ui=function(a,b){return Pi(a,b,function(c){return c.C})};
Vi=function(a,b){return Pi(a,b,function(c){return c.B})};
Wi=function(a){g.Cb(a.u,function(b){b.B=0})};
Ni=function(a,b,c){a=g.Oc(a.u,function(d){return b(d)});
return c?a:Lba(a)};
Pi=function(a,b,c){var d=g.gb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Lba=function(a){return g.Oc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Xi=function(){this.B=new Mi;this.za=new Li;this.Y=this.K=-1;this.Ub=1E3;this.Ja=new Mi([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ha=this.aa=-1};
Yi=function(a,b){return Ti(a.B,void 0===b?!0:b)};
$i=function(a,b){var c=Zi(b);return 0===c?0:Zi(a)/c};
Zi=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Mba=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=me(a),e=d&&Be(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Nba=function(a,b,c){if(!a||!b)return!1;b=ig(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Qg();bg(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=me(c))&&b.defaultView&&b.defaultView.frameElement)&&Mba(b,a);d=a===c;a=!d&&a&&Te(a,function(e){return e===c});
return!(b||d||a)};
Oba=function(a,b,c,d){return li.getInstance().C?!1:0>=a.Ee()||0>=a.getHeight()?!0:c&&d?Uh(208,function(){return Nba(a,b,c)}):!1};
aj=function(a,b,c){g.C.call(this);this.position=Pba.clone();this.Nu=this.Tt();this.ez=-2;this.oS=Date.now();this.RH=-1;this.lastUpdateTime=b;this.zu=null;this.vt=!1;this.vv=null;this.opacity=-1;this.requestSource=c;this.dI=this.fz=g.Ka;this.Uf=new lba;this.Uf.jl=a;this.Uf.u=a;this.qo=!1;this.jm={Az:null,yz:null};this.BH=!0;this.Zr=null;this.ko=this.nL=!1;Ch.getInstance().I++;this.Je=this.iy();this.QH=-1;this.Ec=null;this.jL=!1;a=this.xb=new Yg;Zg(a,"od",Qba);Zg(a,"opac",Bh).u=!0;Zg(a,"sbeos",Bh).u=
!0;Zg(a,"prf",Bh).u=!0;Zg(a,"mwt",Bh).u=!0;Zg(a,"iogeo",Bh);(a=this.Uf.jl)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Rba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+td()):a.getAttribute("data-"+td()))&&(li.getInstance().B=!0);1==this.requestSource?$g(this.xb,"od",1):$g(this.xb,"od",0)};
bj=function(a,b){if(b!=a.ko){a.ko=b;var c=li.getInstance();b?c.I++:0<c.I&&c.I--}};
cj=function(a,b){if(a.Ec){if(b.getName()===a.Ec.getName())return;a.Ec.dispose();a.Ec=null}var c=b.create(a.Uf.u,a.xb,a.qj());if(c=null!=c&&c.jz()?c:null)a.Ec=c};
dj=function(a,b,c){if(!a.zu||-1==a.lastUpdateTime||-1===b.B||-1===a.zu.B)return 0;a=b.B-a.zu.B;return a>c?0:a};
Sba=function(a,b,c){if(a.Ec){a.Ec.Ck();var d=a.Ec.K,e=d.D,f=e.u;if(null!=d.I){var h=d.C;a.vv=new g.ge(h.left-f.left,h.top-f.top)}f=a.dw()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.lD(d);a.zu=d;a.oa(f,b,c,!1,h,e,d.R)}};
Tba=function(a){if(a.vt&&a.Zr){var b=1==ah(a.xb,"od"),c=li.getInstance().u,d=a.Zr,e=a.Ec?a.Ec.getName():"ns",f=new g.ie(c.Ee(),c.getHeight());c=a.dw();a={dS:e,vv:a.vv,HS:f,dw:c,xc:a.Je.xc,FS:b};if(b=d.B){b.Ck();e=b.K;f=e.D.u;var h=null,l=null;null!=e.I&&f&&(h=e.C,h=new g.ge(h.left-f.left,h.top-f.top),l=new g.ie(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={dS:b.getName(),vv:h,HS:l,dw:c,FS:!1,xc:e}}else c=null;c&&Jba(d,a,c)}};
Uba=function(a,b,c){b&&(a.fz=b);c&&(a.dI=c)};
ej=function(){};
gj=function(a){if(a instanceof ej)return a;if("function"==typeof a.wj)return a.wj(!1);if(g.Na(a)){var b=0,c=new ej;c.next=function(){for(;;){if(b>=a.length)throw fj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.hj=function(a,b,c){if(g.Na(a))try{g.Cb(a,b,c)}catch(d){if(d!==fj)throw d;}else{a=gj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==fj)throw d;}}};
Vba=function(a){if(g.Na(a))return g.rb(a);a=gj(a);var b=[];g.hj(a,function(c){b.push(c)});
return b};
Wba=function(){this.D=this.u=this.C=this.B=this.F=0};
Xba=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};
ij=function(){Tg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
jj=function(a){return ji(a.volume)&&.1<=a.volume};
Yba=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};
kj=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)};
Zba=function(a){var b=g.Mb(a.B),c=0,d;for(d in a.u)g.jb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
$ba=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};
lj=function(){this.u=this.B=0};
mj=function(){Xi.call(this);this.C=new Li;this.ma=this.P=this.fa=0;this.R=-1;this.Ga=new Li;this.F=new Li;this.u=new Mi;this.I=this.D=-1;this.X=new Li;this.Ub=2E3;this.ia=new lj;this.Ob=new lj;this.Aa=new lj};
nj=function(a,b,c){var d=a.ma;Zh||c||-1==a.R||(d+=b-a.R);return d};
aca=function(){this.u=!1};
pj=function(a,b){if(!a.u){if(a.C(b)){var c=oj(a.R,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
qj=function(a,b){this.u=!1;this.D=a;this.R=b;this.B=0};
rj=function(a,b,c,d){zi.call(this,a,b,c,d)};
sj=function(a,b,c){zi.call(this,null,a,b,c);this.I=a.isActive();this.F=0};
tj=function(a){return[a.top,a.left,a.bottom,a.right]};
uj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;aj.call(this,b,c,d);this.Dx=0;this.Le={};this.ze=new Yba;this.tI={};this.mf="";this.Qo=null;this.Ya=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.za=this.P=void 0;this.Y=this.X=0;this.ia=-1;this.Qa=this.Ga=!1;this.ha=this.R=this.B=this.wp=this.Ta=0;new Mi;this.ma=this.Aa=0;this.Ja=-1;this.pe=0;this.aa=g.Ka;this.fa=[this.Tt()];this.kb=2;this.qn={};this.qn.pause="p";this.qn.resume="r";this.qn.skip="s";this.qn.mute="m";this.qn.unmute=
"um";this.qn.exitfullscreen="ef";this.I=null;this.hH=!1};
vj=function(a){0!=a.pe&&(a.pe=3)};
wj=function(a){!a.qo&&a.C&&0!=a.pe&&(ah(Ch.getInstance().xb,"mpv")?a.hH&&a.Ec&&2===a.Ec.Qi()&&pj(a.C,a):pj(a.C,a))};
xj=function(a){return void 0===a?a:Number(a)?gi(a,3):0};
yj=function(a,b){return a.fa[null!=b&&b<a.fa.length?b:a.fa.length-1]};
zj=function(a){var b=!!ah(Ch.getInstance().xb,"umt");return a.P||!b&&!a.za?0:1};
bca=function(a,b){if(2==a.pe)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.aa(a)||{};d=void 0!==d.currentTime?d.currentTime:a.X;var e=d-a.X,f=0;0<=e?(a.Y+=c,a.ma+=Math.max(c-e,0),f=Math.min(e,a.Y)):a.Aa+=Math.abs(e);0!=e&&(a.Y=0);-1==a.Ja&&0<e&&(a.Ja=0<=ai?Xh()-ai:-1);a.X=d;return f};
cca=function(a,b){ki(a.K,function(c){return c.D==b.D})||a.K.push(b)};
Aj=function(a,b,c){return 15E3<=b?!0:a.Ga?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.ia?b>=a.ia:!1:!1};
dca=function(a){var b=gi(a.Je.xc,2),c=a.ze.C,d=a.Je,e=yj(a),f=xj(e.D),h=xj(e.I),l=xj(d.volume),m=gi(e.K,2),n=gi(e.Y,2),p=gi(d.xc,2),r=gi(e.aa,2),t=gi(e.ha,2);d=gi(d.jg,2);a=a.Pk().clone();a.round();e=Yi(e,!1);return{GS:b,Hq:c,Ou:f,Ku:h,Op:l,Pu:m,Lu:n,xc:p,Qu:r,Mu:t,jg:d,position:a,ov:e}};
Cj=function(a,b){Bj(a.u,b,function(){return{GS:0,Hq:void 0,Ou:-1,Ku:-1,Op:-1,Pu:-1,Lu:-1,xc:-1,Qu:-1,Mu:-1,jg:-1,position:void 0,ov:[]}});
a.u[b]=dca(a)};
Bj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Fj=function(a,b,c){var d=a.tI[b];if(null!=d)return d;d=eca(a,b);var e=Qb(Dj,function(f){return f==b});
a=Ej(a,d,d,c,fca[Dj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Gj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Ej=function(a,b,c,d,e){if(a.qo)return{"if":0};var f=a.Pk().clone();f.round();var h=li.getInstance(),l=Ch.getInstance(),m=a.Xf(),n=a.Ec?a.Ec.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.oS;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.Ec?a.Ec.X:null)f=f.clone(),f.round(),p.cp=tj(f);p.tos=Oi(m.B,!1);p.mtos=Yi(m);p.mcvt=m.za.C;p.ps=void 0;p.vht=nj(m,Xh(),2==a.pe);p.mut=m.Ga.C;p.a=xj(a.Je.volume);p.mv=xj(m.I);p.fs=a.ko?1:0;p.ft=m.X.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Oi(m.u);p.ssb=
Oi(m.Ja,!1);p.amtos=Ti(m.u);p.uac=a.Ta;p.vpt=m.C.u;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=Aj(a,m.C.u,!0)?1:0;p.efpf=a.kb;if("gsv"==n||"nis"==n)n=a.Ec,0<n.F&&(p.nnut=n.F);p.tcm=zj(a);p.nmt=a.Aa;p.bt=a.ma;p.pst=a.Ja;p.vpaid=a.P;p.dur=a.D;p.vmtime=a.X;p.is=a.ze.C;1<=a.u.length&&(p.i0=a.u[0].Hq,p.a0=[a.u[0].Op],p.c0=[a.u[0].xc],p.ss0=[a.u[0].jg],n=a.u[0].position,p.p0=n?tj(n):void 0);2<=a.u.length&&(p.i1=a.u[1].Hq,p.a1=Gj(a.u[1].Ou,a.u[1].Op,a.u[1].Ku),p.c1=Gj(a.u[1].Pu,a.u[1].xc,a.u[1].Lu),
p.ss1=Gj(a.u[1].Qu,a.u[1].jg,a.u[1].Mu),n=a.u[1].position,p.p1=n?tj(n):void 0,p.mtos1=a.u[1].ov);3<=a.u.length&&(p.i2=a.u[2].Hq,p.a2=Gj(a.u[2].Ou,a.u[2].Op,a.u[2].Ku),p.c2=Gj(a.u[2].Pu,a.u[2].xc,a.u[2].Lu),p.ss2=Gj(a.u[2].Qu,a.u[2].jg,a.u[2].Mu),n=a.u[2].position,p.p2=n?tj(n):void 0,p.mtos2=a.u[2].ov);4<=a.u.length&&(p.i3=a.u[3].Hq,p.a3=Gj(a.u[3].Ou,a.u[3].Op,a.u[3].Ku),p.c3=Gj(a.u[3].Pu,a.u[3].xc,a.u[3].Lu),p.ss3=Gj(a.u[3].Qu,a.u[3].jg,a.u[3].Mu),n=a.u[3].position,p.p3=n?tj(n):void 0,p.mtos3=a.u[3].ov);
p.cs=$ba(a.ze);b&&(p.ic=Zba(a.ze),p.dvpt=m.C.B,p.dvs=Vi(m.B,.5),p.dfvs=Vi(m.B,1),p.davs=Vi(m.u,.5),p.dafvs=Vi(m.u,1),c&&(m.C.B=0,Wi(m.B),Wi(m.u)),a.Jm()&&(p.dtos=m.fa,p.dav=m.P,p.dtoss=a.Dx+1,c&&(m.fa=0,m.P=0,a.Dx++)),p.dat=m.F.B,p.dft=m.X.B,c&&(m.F.B=0,m.X.B=0));p.ps=[h.F.width,h.F.height];p.bs=[h.u.Ee(),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.wp&&(p.vds=a.wp);if(0<a.K.length||a.C)b=g.rb(a.K),a.C&&b.push(a.C),p.pings=g.Oc(b,function(r){return r.toString()});
b=g.Oc(g.Ke(a.K,function(r){return r.F()}),function(r){return r.getId()});
oaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.R&&(p.vmmk=a.R);a.ha&&(p.vmiec=a.ha);p.avms=a.Ec?a.Ec.getName():"ns";a.Ec&&g.Zb(p,a.Ec.Mk());d?(p.c=gi(a.Je.xc,2),p.ss=gi(a.Je.jg,2)):p.tth=Xh()-Hj;p.mc=gi(m.Y,2);p.nc=gi(m.K,2);p.mv=xj(m.I);p.nv=xj(m.D);p.lte=gi(a.ez,2);d=yj(a,e);Yi(m);p.qmtos=Yi(d);p.qnc=gi(d.K,2);p.qmv=xj(d.I);p.qnv=xj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.mf;p.avms||(p.avms="geo");p.psm=m.ia.u;p.psv=m.ia.getValue();p.psfv=m.Ob.getValue();p.psa=m.Aa.getValue();l=kba(l.xb);l.length&&(p.veid=l);a.I&&g.Zb(p,
Xba(a.I));return p};
eca=function(a,b){if(g.jb(gca,b))return!0;var c=a.Le[b];return void 0!==c?(a.Le[b]=!0,!c):!1};
ica=function(){this.u={};var a=Be();Ij(this,a,document);var b=hca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Ij(this,c,c.document);Ij(this,a.top,a.top.document)}}catch(d){}};
hca=function(){var a=document.documentElement;try{if(!bg(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"}};
Ij=function(a,b,c){fi(c,"mousedown",function(){return jca(a)},301);
fi(b,"scroll",function(){return kca(a)},302);
fi(c,"touchmove",function(){return lca(a)},303);
fi(c,"mousemove",function(){return mca(a)},304);
fi(c,"keydown",function(){return nca(a)},305)};
jca=function(a){g.Eb(a.u,function(b){1E5<b.C||++b.C})};
kca=function(a){g.Eb(a.u,function(b){1E5<b.u||++b.u})};
lca=function(a){g.Eb(a.u,function(b){1E5<b.u||++b.u})};
nca=function(a){g.Eb(a.u,function(b){1E5<b.B||++b.B})};
mca=function(a){g.Eb(a.u,function(b){1E5<b.D||++b.D})};
g.Nj=function(a){var b=[];Jj(new oca,a,b);return b.join("")};
oca=function(){};
Jj=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),Jj(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),Oj(d,c),c.push(":"),Jj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Oj(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);}}};
Oj=function(a,b){b.push('"',a.replace(pca,function(c){var d=Pj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Pj[c]=d);return d}),'"')};
Qj=function(){this.u=[];this.B=[]};
Rj=function(a,b){return g.fb(a.u,function(c){return c.mf==b})};
Sj=function(a,b){return b?g.fb(a.u,function(c){return c.Uf.jl==b}):null};
qca=function(a,b){return g.fb(a.B,function(c){return 2==c.Oi()&&c.mf==b})};
Uj=function(){var a=Tj;return 0==a.u.length?a.B:0==a.B.length?a.u:g.qb(a.B,a.u)};
Vj=function(a,b){var c=1==b.Oi()?a.u:a.B,d=eb(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Ec&&b.Ec.Xq(),b.dispose(),!0):!1};
rca=function(a){var b=Tj;if(Vj(b,a)){switch(a.Oi()){case 0:var c=function(){return null};
case 2:c=function(){return qca(b,a.mf)};
break;case 1:c=function(){return Rj(b,a.mf)}}for(var d=c();d;d=c())Vj(b,d)}};
sca=function(a,b){var c=Tj,d=g.Ke(a,(void 0===b?0:b)?function(e){return!Rj(c,e.mf)}:function(e){return!Sj(c,e.Uf.jl)});
c.u.push.apply(c.u,g.ma(d))};
Wj=function(a){var b=Tj,c=[];g.Cb(a,function(d){ki(b.u,function(e){return e.Uf.jl===d.Uf.jl&&e.mf===d.mf})||(b.u.push(d),c.push(d))})};
Xj=function(){this.u=this.B=null};
Yj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.fb(a.B,function(d){return null!=d&&d.yE()});
a.u&&(a.u.init(c)?ui(a.u.u):b(a.u.u.ao(),a.u));return null!=a.u};
Zj=function(a){a=tca(a);Ai.call(this,a.length?a[a.length-1]:new qi(fh,0));this.C=a;this.B=null};
tca=function(a){if(!a.length)return[];a=(0,g.Ke)(a,function(c){return null!=c&&c.LE()});
for(var b=1;b<a.length;b++)ti(a[b-1],a[b]);return a};
ak=function(a,b,c,d){zi.call(this,a,b,c,d);this.P=this.R=this.F=this.I=this.C=null};
bk=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
vca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.Df,d=Ch.getInstance().u.u;a.C=new c.IntersectionObserver(zh(d,function(e){return ck(a,e)}),uca);
d=zh(d,function(){a.C.unobserve(b);a.C.observe(b);ck(a,bk(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.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);ck(a,bk(a));return!0};
ck=function(a,b){try{if(b.length){a.R||(a.R=Xh());var c=wca(b),d=Gg(a.element,a.B.u.Df),e=d.x,f=d.y;a.u=new hg(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=hi(c.intersectionRect);a.D=ig(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.Xq(),Wh(299,l)}};
wca=function(a){return(0,g.rh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
dk=function(a){a=void 0===a?fh:a;Ai.call(this,new qi(a,2))};
fk=function(){var a=ek();qi.call(this,fh.top,a,"geo")};
ek=function(){Ch.getInstance();var a=li.getInstance();return a.C||a.B?0:2};
gk=function(){};
hk=function(){this.done=!1;this.u={qJ:0,OB:0,s5:0,KC:0,Ey:-1,NJ:0,MJ:0,OJ:0};this.F=null;this.I=!1;this.B=null;this.K=0;this.C=new pi(this)};
jk=function(){var a=ik;a.I||(a.I=!0,xca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.ma(c))}),a.D())};
yca=function(){gk.getInstance();var a=Xj.getInstance();null!=a.u&&a.u.u?ui(a.u.u):li.getInstance().update(fh)};
kk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{yca();var d=Xh(),e=Ch.getInstance();e.F=d;if(null!=Xj.getInstance().u)for(e=0;e<b.length;e++)Sba(b[e],d,c);else Dh(Lh,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Tba(b[d]);++a.u.KC;zca()}finally{c?g.Cb(b,function(f){f.Je.xc=0}):a.C.schedule()}}};
xca=function(a,b){if(!a.F){var c=Sh(142,b,void 0);th();var d;Pg.visibilityState?d="visibilitychange":Pg.mozVisibilityState?d="mozvisibilitychange":Pg.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Yf(Pg,d,c,{capture:!1})&&(a.F=c)}};
lk=function(){var a=Xj.getInstance();if(null!=a.u){var b=a.u;g.Cb(Uj(),function(c){return cj(c,b)})}};
zca=function(){var a=Ch.getInstance();ah(a.xb,"llp")};
nk=function(a,b){var c=a.K;Zh&&(c+=b-$h);return c};
Aca=function(a){var b=ik;a=void 0===a?function(){return{}}:a;
Rh.D="av-js";Lh.u=.01;zba([function(c){var d=Ch.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=bh(d.xb);if(!b.B){var f=fh.document,h=0<=Yh?Xh()-Yh:-1,l=Xh();-1==b.u.Ey&&(h=l);var m=li.getInstance(),n=Ch.getInstance(),p=bh(n.xb),r=Uj();try{if(0<r.length){var t=m.u;t&&(p.bs=[t.Ee(),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);fh.screen&&(p.scs=[fh.screen.width,fh.screen.height])}else p.url=encodeURIComponent(fh.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Yh;p.bin=n.B;void 0!==fh.google_osd_load_pub_page_exp&&(p.olpp=fh.google_osd_load_pub_page_exp);p.deb=[1,b.u.qJ,b.u.OB,b.u.KC,b.u.Ey,0,b.C.B,b.u.NJ,b.u.MJ,b.u.OJ].join("-");p.tvt=nk(b,l);m.B&&(p.inapp=1);if(null!==fh&&fh!=fh.top){0<r.length&&(p.iframe_loc=encodeURIComponent(fh.location.href.substring(0,512)));var y=m.K;p.is=[y.Ee(),y.getHeight()]}}catch(B){p.error=1}b.B=p}t=g.Vb(b.B);w=Ch.getInstance().u;if(1==ah(w.C,"prf")){y=new yh;f=w.u;h=0;-1<f.u&&(h=f.D.u.now()-f.u);y=Nf(y,
1,f.C+h);f=w.u;y=Nf(y,5,-1<f.u?f.B+1:f.B);y=Nf(y,2,w.B.u.C());y=Nf(y,3,w.B.u.B());y=Nf(y,4,w.B.u.u());w={};f=new g.wf;var x=void 0===x?0:x;h=g.Kf(y,1);h=null==h?h:+h;x=null==h?x:h;0!==x&&g.Df(f,1,x);x=Lf(y,2);0!==x&&g.Cf(f,2,x);x=Lf(y,3);0!==x&&g.Cf(f,3,x);x=Lf(y,4);0!==x&&g.Cf(f,4,x);x=Lf(y,5);0!==x&&g.zf(f,5,x);x=g.xf(f);x=(w.pf=g.sf(x),w)}else x={};g.Zb(t,x);g.Zb(c,e,d,t,a());if(e=Ii())d={},g.Zb(c,(d.v=encodeURIComponent(e),d))}])};
Bca=function(){var a=ok||fh;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("&")};
pk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
rk=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?qk(c,a):c}}};
sk=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 qk(f,b,c)}};
tk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
uk=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}};
qk=function(a,b,c){return void 0===c||c?g.Ke(a,function(d,e){return g.jb(b,e)}):g.Oc(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)})};
xk=function(a,b){var c={sv:"884",cb:"j"};c.nas=Tj.u.length;c.msg=a;if(void 0!==b){var d=vk(b);d&&(c.e=wk[d])}return c};
yk=function(a){return nc(a,"custom_metric_viewable")};
vk=function(a){var b=yk(a)?"custom_metric_viewable":a.toLowerCase();return Qb(Dj,function(c){return c==b})};
Cca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Eca=function(a){try{var b=a.split(",");return b.length>g.Mb(Dca).length?null:(0,g.rh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===zk[e[0]]||!zk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Fca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Ui(b.u,a.u):Ui(b.B,a.u);case "tos":return a.B?Si(b.u,a.u):Si(b.B,a.u)}return 0};
Ak=function(a,b,c,d){qj.call(this,b,d);this.K=a;this.I=c};
Bk=function(a){qj.call(this,"fully_viewable_audible_half_duration_impression",a)};
Ck=function(a,b){qj.call(this,a,b)};
Dk=function(){this.B=this.D=this.I=this.F=this.C=this.u=""};
Gca=function(){};
Ek=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.Zb(f,a);void 0!==c&&g.Zb(f,c);a=Fi(Ei(new Di,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Fk=function(){};
Gk=function(a,b,c){sj.call(this,a,b,c)};
Hk=function(a){a=void 0===a?fh:a;Ai.call(this,new qi(a,2))};
Ik=function(a,b,c){sj.call(this,a,b,c)};
Jk=function(a){a=void 0===a?fh:a;Ai.call(this,new qi(a,2))};
Kk=function(){qi.call(this,fh,2,"mraid");this.ha=0;this.X=this.Y=!1;this.I=null;this.B=ei(this.Df);this.C.u=new hg(0,0,0,0);this.ia=!1};
Lk=function(a,b,c){a.Gl("addEventListener",b,c)};
Ok=function(a){Ch.getInstance().D=!!a.Gl("isViewable");Lk(a,"viewableChange",Hca);"loading"===a.Gl("getState")?Lk(a,"ready",Mk):Nk(a)};
Nk=function(a){"string"===typeof a.B.Vh.AFMA_LIDAR?(a.Y=!0,Ica(a)):(a.B.compatibility=3,a.I="nc",si(a,"w"))};
Ica=function(a){a.X=!1;var b=1==ah(Ch.getInstance().xb,"rmmt"),c=!!a.Gl("isViewable");(b?!c:1)&&th().setTimeout(Vh(524,function(){a.X||(Pk(a),Wh(540,Error()),a.I="mt",si(a,"w"))}),500);
Jca(a);Lk(a,a.B.Vh.AFMA_LIDAR,Qk)};
Jca=function(a){var b=1==ah(Ch.getInstance().xb,"sneio"),c=void 0!==a.B.Vh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Vh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Vh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Vh.AFMA_LIDAR_EXP_1=!b)};
Pk=function(a){a.Gl("removeEventListener",a.B.Vh.AFMA_LIDAR,Qk);a.Y=!1};
Rk=function(a,b){if("loading"===a.Gl("getState"))return new g.ie(-1,-1);var c=a.Gl(b);if(!c)return new g.ie(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.ie(-1,-1):new g.ie(d,c)};
Mk=function(){try{var a=Kk.getInstance();a.Gl("removeEventListener","ready",Mk);Nk(a)}catch(b){Wh(541,b)}};
Qk=function(a,b){try{var c=Kk.getInstance();c.X=!0;var d=a?new hg(a.y,a.x+a.width,a.y+a.height,a.x):new hg(0,0,0,0);var e=Xh(),f=oi();var h=new bi(e,f,c);h.u=d;h.volume=b;c.Xk(h)}catch(l){Wh(542,l)}};
Hca=function(a){var b=Ch.getInstance(),c=Kk.getInstance();a&&!b.D&&(b.D=!0,c.ia=!0,c.I&&si(c,"w",!0))};
Sk=function(){this.Yd=!1;this.u=null;this.C=new Fk;this.B=null;var a={};this.K=(a.start=this.YK,a.firstquartile=this.TK,a.midpoint=this.VK,a.thirdquartile=this.ZK,a.complete=this.RK,a.pause=this.Oz,a.resume=this.rH,a.skip=this.XK,a.viewable_impression=this.Rk,a.mute=this.qp,a.unmute=this.qp,a.fullscreen=this.UK,a.exitfullscreen=this.SK,a.fully_viewable_audible_half_duration_impression=this.Rk,a.measurable_impression=this.Rk,a.abandon=this.Oz,a.engagedview=this.Rk,a.impression=this.Rk,a.creativeview=
this.Rk,a.progress=this.qp,a.custom_metric_viewable=this.Rk,a.bufferstart=this.Oz,a.bufferfinish=this.rH,a);a={};this.X=(a.overlay_resize=this.WK,a.abandon=this.yy,a.close=this.yy,a.collapse=this.yy,a.overlay_unmeasurable_impression=function(b){return Fj(b,"overlay_unmeasurable_impression",oi())},a.overlay_viewable_immediate_impression=function(b){return Fj(b,"overlay_viewable_immediate_impression",oi())},a.overlay_unviewable_impression=function(b){return Fj(b,"overlay_unviewable_impression",oi())},
a.overlay_viewable_end_of_session_impression=function(b){return Fj(b,"overlay_viewable_end_of_session_impression",oi())},a);
Ch.getInstance().B=3;Kca(this);this.P=this.D=!1};
Tk=function(a,b,c,d){b=a.Hr(null,d,!0,b);b.F=c;sca([b],a.D);return b};
Lca=function(a,b,c){iba(b);var d=a.B;g.Cb(b,function(e){var f=g.Oc(e.u,function(h){var l=Eca(h);if(null==l)h=null;else if(h=new Cca,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=oc(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});
ki(f,function(h){return null==h})||cca(c,new Ak(e.id,e.event,f,d))})};
Mca=function(a){a=a.B;return[new Ck("viewable_impression",a),new Bk(a)]};
Nca=function(){var a=[];li.getInstance();var b=Ch.getInstance();ah(b.xb,"dov");a.push(fk.getInstance());ah(b.xb,"mvp_lv")&&a.push(Kk.getInstance());b=[new Hk,new Jk];b.push(new Zj(a));b.push(new dk(fh));return b};
Oca=function(a){if(!a.Yd){a.Yd=!0;try{var b=Xh(),c=Ch.getInstance(),d=li.getInstance();Yh=b;c.C=79463069;"o"!==a.u&&(ok=di(fh).Df);if(sba()){ik.u.OB=0;ik.u.Ey=Xh()-b;var e=Nca(),f=Xj.getInstance();f.B=e;Yj(f,function(){Uk(a)})?ik.done||(lk(),ti(f.u.u,a),jk()):d.C?Uk(a):jk()}else Vk=!0}catch(h){throw Tj.reset(),h;
}}};
Xk=function(a){ik.C.cancel();Wk=a;ik.done=!0};
Yk=function(a){if(a.u)return a.u;var b=Xj.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};
Zk=function(a,b,c){if(null==a.B)return b.wp|=4,!1;a=oj(a.B,c,b);b.wp|=a;return 0==a};
Pca=function(){g.Cb(Tj.u,function(a){return wj(a)})};
Uk=function(a){if(!a.P){a.P=!0;var b=[new dk(fh)],c=Xj.getInstance();c.B=b;Yj(c,function(){Xk("i")})?ik.done||(lk(),ti(c.u.u,a),jk()):Xk("i")}};
$k=function(a,b,c){if(!b.Ya){var d=Fj(b,"start",oi());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="884v";Bd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Bca();Bd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Fi(Ei(new Di,e));Ji(c);b.Ya=!0}};
al=function(a,b,c){kk(ik,[a],!oi());Cj(a,c);4!=c&&Bj(a.fa,c,a.Tt);return Fj(a,b,oi())};
Kca=function(a){Aca(function(){var b=bl();null!=a.u&&(b.sdk=a.u);var c=Xj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Qca=function(a,b,c,d){if(a.D)var e=Rj(Tj,b);else e=Sj(Tj,c),null!==e&&e.mf!==b&&(a.cq(e),e=null);e||(b=a.Hr(c,Xh(),!1,b),0==Tj.B.length&&(Ch.getInstance().C=79463069),Wj([b]),e=b,e.F=Yk(a),d&&(e.Qo=d));return e};
Rca=function(a,b){b.R=0;for(var c in cl)null==a[c]&&(b.R|=cl[c]);dl(a,"currentTime");dl(a,"duration")};
Sca=function(a){g.Cb(Tj.u,function(b){3==b.pe&&a.cq(b)})};
dl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
bl=function(){var a=li.getInstance(),b={};return b.sv="884",b["if"]=a.C?"1":"0",b.nas=String(Tj.u.length),b};
el=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
gl=function(a){return!!(1<<a&fl)};
Xca=function(){try{Tca()}catch(d){}var a="a=1&b="+fl+"&",b=[],c=99;g.Cb(Uca,function(d,e){var f=!1;try{f=d(fh)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Cb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Cb(Vca,function(d){var e="false";try{e=d(fh)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Cb(Wca,function(d){var e="";try{e=g.tf(d(fh))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Tca=function(){if(!hl){var a=function(){il=!0;fh.document.removeEventListener("webdriver-evaluate",a,!0)};
fh.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){jl=!0;fh.document.removeEventListener("webdriver-evaluate-response",b,!0)};
fh.document.addEventListener("webdriver-evaluate-response",b,!0);hl=!0}};
kl=function(){this.B=-1};
ll=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
pl=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};
ql=function(){this.B=null};
rl=function(a){return function(b){var c=new ll;c.update(b+a);return Saa(c.digest()).slice(-8)}};
sl=function(a,b){this.B=a;this.C=b};
oj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="884",e.cb="j",e.e=Yca(b),e);var f=Fj(c,b,oi());g.Zb(e,f);c.tI[b]=f;a=2==c.Oi()?Iba(e).join("&"):a.C.u(e).u;try{return d(c.mf,a,b),0}catch(h){return 2}}else return 1};
Yca=function(a){var b=yk(a)?"custom_metric_viewable":a;a=Qb(Dj,function(c){return c==b});
return wk[a]};
tl=function(a,b,c){sl.call(this,a,b);this.D=c};
ul=function(){Sk.call(this);this.I=null;this.F=!1;this.R={};this.C=new ql};
Zca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Lca(a,c,b)};
$ca=function(a,b,c){var d=Rj(Tj,b);d||(d=c.opt_nativeTime||-1,d=Tk(a,b,Yk(a),d),c.opt_osdId&&(d.Qo=c.opt_osdId));return d};
ada=function(a,b,c){var d=Rj(Tj,b);d||(d=Tk(a,b,"n",c.opt_nativeTime||-1));return d};
bda=function(a,b){var c=Rj(Tj,b);c||(c=Tk(a,b,"h",-1));return c};
cda=function(a){Ch.getInstance();switch(Yk(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};
wl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Zb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(xk("ol",d));if(void 0!==d)if(void 0!==vk(d))if(Vk)b=xk("ue",d);else if(Oca(a),"i"==Wk)b=xk("i",d),b["if"]=0;else if(b=a.Xt(b,e))if(a.D&&3==b.pe)b="stopped";else{b:{"i"==Wk&&(b.qo=!0,a.pA());c=e.opt_fullscreen;void 0!==c&&bj(b,!!c);var f;if(c=!li.getInstance().B)(c=yc(g.Vc,"CrKey")||yc(g.Vc,"PlayStation")||yc(g.Vc,"Roku")||Eba()||yc(g.Vc,"Xbox"))||(c=g.Vc,c=yc(c,"AppleTV")||
yc(c,"Apple TV")||yc(c,"CFNetwork")||yc(c,"tvOS")),c||(c=g.Vc,c=yc(c,"sdk_google_atv_x86")||yc(c,"Android TV")),c=!c;c&&(th(),c=0===gh(Pg));if(f=c){switch(b.Oi()){case 1:$k(a,b,"pv");break;case 2:a.fA(b)}Xk("pv")}c=d.toLowerCase();if(f=!f)f=ah(Ch.getInstance().xb,"ssmol")&&"loaded"===c?!1:g.jb(dda,c);if(f&&0==b.pe){"i"!=Wk&&(ik.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;ai=f="number"===typeof f?f:Xh();b.vt=!0;var h=oi();b.pe=1;b.Le={};b.Le.start=!1;b.Le.firstquartile=!1;b.Le.midpoint=!1;b.Le.thirdquartile=
!1;b.Le.complete=!1;b.Le.resume=!1;b.Le.pause=!1;b.Le.skip=!1;b.Le.mute=!1;b.Le.unmute=!1;b.Le.viewable_impression=!1;b.Le.measurable_impression=!1;b.Le.fully_viewable_audible_half_duration_impression=!1;b.Le.fullscreen=!1;b.Le.exitfullscreen=!1;b.Dx=0;h||(b.Xf().R=f);kk(ik,[b],!h)}(f=b.qn[c])&&kj(b.ze,f);g.jb(eda,c)&&(b.hH=!0,wj(b));switch(b.Oi()){case 1:var l=yk(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.X[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=xk(void 0,c);g.Zb(e,d);d=e;break b}d=
void 0}3==b.pe&&(a.D?b.Ec&&b.Ec.Xq():a.cq(b));b=d}else b=xk("nf",d);else b=void 0;else Vk?b=xk("ue"):(b=a.Xt(b,e))?(d=xk(),g.Zb(d,Ej(b,!0,!1,!1)),b=d):b=xk("nf");return"string"===typeof b?a.D&&"stopped"===b?vl:a.C.u(void 0):a.C.u(b)};
xl=function(a){return Ch.getInstance(),"h"!=Yk(a)&&Yk(a),!1};
yl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.I,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b};
zl=function(a,b,c){c=void 0===c?{}:c;a=wl(ul.getInstance(),b,c,a);return yl(a)};
Al=function(a,b){b=void 0===b?!1:b;var c=ul.getInstance().Xt(a,{});c?vj(c):b&&(c=ul.getInstance().Hr(null,Xh(),!1,a),c.pe=3,Wj([c]))};
Bl=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));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==
c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
fda=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 y=e[1],x=e[2],B=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^y&(x^B);var K=1518500249}else G=y^x^B,K=1859775393;else 60>w?(G=y&x|B&(y|x),K=2400959708):(G=y^x^B,K=3395469782);G=((r<<5|r>>>27)&4294967295)+G+E+K+t[w]&4294967295;E=B;B=x;x=(y<<30|y>>>2)&4294967295;y=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+y&4294967295;e[2]=
e[2]+x&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+E&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],y=0,x=r.length;y<x;++y)w.push(r.charCodeAt(y));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 y=24;0<=y;y-=8)r[t++]=e[w]>>y&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,UJ: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}}};
gda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Cb(d,function(l){e.push(l)}),Cl(e.join(" "));
var f=[],h=[];g.Cb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.kb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Cb(d,function(l){e.push(l)});
a=Cl(e.join(" "));a=[c,a];g.kb(h)||a.push(h.join(""));return a.join("_")};
Cl=function(a){var b=fda();b.update(a);return b.UJ().toLowerCase()};
Dl=function(a){var b=Bl(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Tf(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 Tf(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,gda(Bl(d),c,a||null)].join(" "):null}return null};
g.El=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Fl=function(a,b){g.El.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)};
Hl=function(a){return!(!a||!a[Gl])};
ida=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.Oj=e;this.key=++hda;this.bp=this.Zs=!1};
Il=function(a){a.bp=!0;a.listener=null;a.u=null;a.src=null;a.Oj=null};
Jl=function(a){this.src=a;this.listeners={};this.u=0};
Kl=function(a,b){var c=b.type;c in a.listeners&&g.ob(a.listeners[c],b)&&(Il(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Ll=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.bp&&f.listener==b&&f.capture==!!c&&f.Oj==d)return e}return-1};
Nl=function(a,b,c,d,e){if(d&&d.once)return Ml(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Nl(a,b[f],c,d,e);return null}c=Ol(c);return Hl(a)?a.wa(b,c,g.Pa(d)?!!d.capture:!!d,e):Pl(a,b,c,!1,d,e)};
Pl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Pa(e)?!!e.capture:!!e,l=Ql(a);l||(a[Rl]=l=new Jl(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=jda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)kda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Sl(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Tl++;return c};
jda=function(){var a=lda,b=Ul?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};
Ml=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ml(a,b[f],c,d,e);return null}c=Ol(c);return Hl(a)?a.Bu(b,c,g.Pa(d)?!!d.capture:!!d,e):Pl(a,b,c,!0,d,e)};
Vl=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Vl(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=Ol(c),Hl(a)?a.Mb(b,c,d,e):a&&(a=Ql(a))&&(b=a.uq(b,c,d,e))&&Wl(b)};
Wl=function(a){if("number"!==typeof a&&a&&!a.bp){var b=a.src;if(Hl(b))Kl(b.B,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Sl(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Tl--;(c=Ql(b))?(Kl(c,a),0==c.u&&(c.src=null,b[Rl]=null)):Il(a)}}};
Sl=function(a){return a in Xl?Xl[a]:Xl[a]="on"+a};
Zl=function(a,b,c,d){var e=!0;if(a=Ql(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.bp&&(f=Yl(f,d),e=e&&!1!==f)}return e};
Yl=function(a,b){var c=a.listener,d=a.Oj||a.src;a.Zs&&Wl(a);return c.call(d,b)};
lda=function(a,b){if(a.bp)return!0;if(!Ul){var c=b||g.Ja("window.event"),d=new Fl(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=Zl(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=Zl(c[h],f,!1,d),e=e&&l}return e}return Yl(a,new Fl(b,
this))};
Ql=function(a){a=a[Rl];return a instanceof Jl?a:null};
Ol=function(a){if("function"===typeof a)return a;a[$l]||(a[$l]=function(b){return a.handleEvent(b)});
return a[$l]};
g.am=function(){g.C.call(this);this.B=new Jl(this);this.Ga=this;this.za=null};
bm=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.bp&&h.capture==c){var l=h.listener,m=h.Oj||h.src;h.Zs&&Kl(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
cm=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
dm=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
em=function(a){g.v.setTimeout(function(){throw a;},0)};
gm=function(a){a=mda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Wc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(fm||(fm=nda()),fm(a)):g.v.setImmediate(a)};
nda=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.hC;c.hC=null;e()}};
return function(e){d.next={hC:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
hm=function(){this.B=this.u=null};
im=function(){this.next=this.scope=this.u=null};
g.mm=function(a,b){jm||oda();km||(jm(),km=!0);lm.add(a,b)};
oda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);jm=function(){a.then(nm)}}else jm=function(){gm(nm)}};
nm=function(){for(var a;a=lm.remove();){try{a.u.call(a.scope)}catch(b){em(b)}dm(om,a)}km=!1};
pm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
rm=function(a){this.Ka=0;this.Fl=void 0;this.On=this.Dk=this.Wm=null;this.cu=this.Px=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){qm(b,2,c)},function(c){qm(b,3,c)})}catch(c){qm(this,3,c)}};
sm=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
um=function(a,b,c){var d=tm.get();d.C=a;d.onRejected=b;d.context=c;return d};
vm=function(a){if(a instanceof rm)return a;var b=new rm(g.Ka);qm(b,2,a);return b};
wm=function(a){return new rm(function(b,c){c(a)})};
ym=function(a,b,c){xm(a,b,c,null)||g.mm(g.Ta(b,a))};
pda=function(a){return new rm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],ym(e,b,c)})};
qda=function(a){return new rm(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],ym(m,g.Ta(f,l),h);
else b(e)})};
Am=function(a,b){var c=um(b,b,void 0);c.B=!0;zm(a,c);return a};
Cm=function(a,b){return Bm(a,null,b,void 0)};
Dm=function(a,b){if(0==a.Ka)if(a.Wm){var c=a.Wm;if(c.Dk){for(var d=0,e=null,f=null,h=c.Dk;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ka&&1==d?Dm(c,b):(f?(d=f,d.next==c.On&&(c.On=d),d.next=d.next.next):Em(c),Fm(c,e,3,b)))}a.Wm=null}else qm(a,3,b)};
zm=function(a,b){a.Dk||2!=a.Ka&&3!=a.Ka||Gm(a);a.On?a.On.next=b:a.Dk=b;a.On=b};
Bm=function(a,b,c,d){var e=um(null,null,null);e.u=new rm(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 Hm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.Wm=a;zm(a,e);return e.u};
qm=function(a,b,c){0==a.Ka&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ka=1,xm(c,a.wS,a.xS,a)||(a.Fl=c,a.Ka=b,a.Wm=null,Gm(a),3!=b||c instanceof Hm||rda(a,c)))};
xm=function(a,b,c,d){if(a instanceof rm)return zm(a,um(b||g.Ka,c||null,d)),!0;if(pm(a))return a.then(b,c,d),!0;if(g.Pa(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)}};
Gm=function(a){a.Px||(a.Px=!0,g.mm(a.bK,a))};
Em=function(a){var b=null;a.Dk&&(b=a.Dk,a.Dk=b.next,b.next=null);a.Dk||(a.On=null);return b};
Fm=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.cu;a=a.Wm)a.cu=!1;if(b.u)b.u.Wm=null,Im(b,c,d);else try{b.B?b.C.call(b.context):Im(b,c,d)}catch(e){Jm.call(null,e)}dm(tm,b)};
Im=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.cu=!0;g.mm(function(){a.cu&&Jm.call(null,b)})};
Hm=function(a){Ya.call(this,a)};
g.Km=function(a,b){g.am.call(this);this.yf=a||1;this.ls=b||g.v;this.aC=(0,g.z)(this.nS,this);this.mE=g.A()};
g.Lm=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)};
Mm=function(a,b){var c=null;return Cm(new rm(function(d,e){c=g.Lm(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Nm=function(a,b){this.B={};this.u=[];this.Ol=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.Nm)for(c=a.Sg(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Pm=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Om(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],Om(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Om=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Qm=function(a,b){this.u=this.R=this.F="";this.D=null;this.I=this.B="";this.K=!1;var c;a instanceof g.Qm?(this.K=void 0!==b?b:a.K,g.Rm(this,a.F),this.R=a.R,g.Sm(this,a.u),g.Tm(this,a.D),this.B=a.B,Um(this,a.C.clone()),this.I=a.I):a&&(c=String(a).match(wd))?(this.K=!!b,g.Rm(this,c[1]||"",!0),this.R=Vm(c[2]||""),g.Sm(this,c[3]||"",!0),g.Tm(this,c[4]),this.B=Vm(c[5]||"",!0),Um(this,c[6]||"",!0),this.I=Vm(c[7]||"")):(this.K=!!b,this.C=new Wm(null,this.K))};
g.Rm=function(a,b,c){a.F=c?Vm(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.Sm=function(a,b,c){a.u=c?Vm(b,!0):b};
g.Tm=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};
Um=function(a,b,c){b instanceof Wm?(a.C=b,tda(a.C,a.K)):(c||(b=Xm(b,uda)),a.C=new Wm(b,a.K))};
g.Ym=function(a){return a instanceof g.Qm?a.clone():new g.Qm(a,void 0)};
Vm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Xm=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)};
Wm=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
Zm=function(a){a.u||(a.u=new g.Nm,a.B=0,a.C&&Bd(a.C,function(b,c){a.add(nd(b),c)}))};
an=function(a,b){Zm(a);b=$m(a,b);return Om(a.u.B,b)};
g.bn=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set($m(a,b),g.rb(c)),a.B=a.B+c.length)};
$m=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
tda=function(a,b){b&&!a.D&&(Zm(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.bn(this,e,c))},a));
a.D=b};
dn=function(a){if(g.pc(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.Qm(a)}catch(c){return null!=g.fb(cn,function(d){return 0<a.search(d)})}return b.I.match(wda)?!0:null!=g.fb(cn,function(c){return null!=a.match(c)})};
g.en=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.pc(g.pd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
fn=function(){this.B=[];this.u=-1};
yda=function(a){-1==a.u&&(a.u=g.rh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.gn=function(a,b,c){g.C.call(this);this.u=null;this.D=!1;this.I=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.sD,this)};
hn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
jn=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.F=function(a,b,c){g.C.call(this);this.u=a;this.yf=b||0;this.B=c;this.C=(0,g.z)(this.tD,this)};
g.kn=function(a){a.stop();a.tD()};
ln=function(){this.B=64;this.u=[];this.I=[];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()};
mn=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};
nn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
on=function(a){return a.classList?a.classList:nn(a).match(/\S+/g)||[]};
g.pn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.qn=function(a,b){return a.classList?a.classList.contains(b):g.jb(on(a),b)};
g.I=function(a,b){if(a.classList)a.classList.add(b);else if(!g.qn(a,b)){var c=nn(a);g.pn(a,c+(0<c.length?" "+b:b))}};
g.rn=function(a,b){if(a.classList)g.Cb(b,function(f){g.I(a,f)});
else{var c={};g.Cb(on(a),function(f){c[f]=!0});
g.Cb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;g.pn(a,d)}};
g.sn=function(a,b){a.classList?a.classList.remove(b):g.qn(a,b)&&g.pn(a,g.Ke(on(a),function(c){return c!=b}).join(" "))};
g.tn=function(a,b){a.classList?g.Cb(b,function(c){g.sn(a,c)}):g.pn(a,g.Ke(on(a),function(c){return!g.jb(b,c)}).join(" "))};
g.J=function(a,b,c){c?g.I(a,b):g.sn(a,b)};
un=function(a,b){var c=!g.qn(a,b);g.J(a,b,c)};
g.vn=function(){g.am.call(this);this.Ka=0;this.endTime=this.startTime=null};
zda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Oc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.ug(a,"transition",c.join(","))};
wn=function(a,b,c,d,e){g.vn.call(this);this.u=a;this.F=b;this.I=c;this.C=d;this.K=Array.isArray(e)?e:[e]};
xn=function(a,b,c,d){return new wn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Bda=function(a){a=Ac(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};
yn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
zn=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.Cb(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,"");nc(e,"--")||nc(e,"var")||(d=zn(Eda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Bda(d),null!=d&&zn(Fda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Haa(b.cssText||"")};
Cda=function(a){g.Na(a)?a=g.rb(a):(a=g.Mb(a),g.ob(a,"cssText"));return a};
g.Bn=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.An.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.Cn=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.I=d;this.D=e;this.K=f;this.B=h;this.R=l};
g.Dn=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.ee(a.u,a.C,b),d=g.ee(a.C,a.D,b),e=g.ee(a.D,a.B,b);c=g.ee(c,d,b);d=g.ee(d,e,b);return g.ee(c,d,b)};
g.En=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.I=c||0};
g.Fn=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.u):0));a.B++};
Gn=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")};
Hn=function(a){return(a=a.exec(g.Vc))?a[1]:""};
In=function(a){return 0<=g.Cc(Mda,a)};
g.Jn=function(a){g.C.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.I=!!a};
Nda=function(a,b,c){g.mm(function(){a.apply(b,c)})};
g.Kn=function(a){this.u=a};
Ln=function(a){this.u=a};
Mn=function(a){this.data=a};
Nn=function(a){return void 0===a||a instanceof Mn?a:new Mn(a)};
On=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.be(9)){eo||(eo=new g.Nm);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.Sg();a=a.Hf();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.Mb(a),a=g.Lb(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.Jf(this,a,Qda,null)};
qo=function(a){g.Jf(this,a,null,null)};
Rda=function(a,b){for(;gf(b)&&4!=b.B;)switch(b.C){case 1:var c=kf(b);g.Mf(a,1,c);break;case 2:c=kf(b);g.Mf(a,2,c);break;case 3:c=kf(b);g.Mf(a,3,c);break;case 4:c=kf(b);g.Mf(a,4,c);break;case 5:c=ef(b.u);g.Mf(a,5,c);break;default:hf(b)}return a};
Sda=function(a){a=a.split("");var b=[a,"continue",function(c,d){for(var e=64,f=[];++e-f.length-32;)switch(e){case 58:e=96;continue;case 91:e=44;break;case 65:e=47;continue;case 46:e=153;case 123:e-=58;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(""))},
a,-1200248212,262068875,404102954,-460285145,null,179465532,-1669371385,a,-490898646,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
628191186,null,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
-824641148,2119880155,function(c){c.reverse()},
1440092226,1303924481,-197075122,1501939637,865495029,-1026578168,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
-1683749005,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
-191802705,-870332615,-1920825481,-327446973,1960953908,function(c,d){c.push(d)},
791473723,-802486607,283062326,-134195793,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-1264016128,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
-80833027,-1733582932,1879123177,null,"unRRLXb",-197075122,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))}];
b[8]=b;b[15]=b;b[45]=b;b[41](b[45],b[21]);b[28](b[34],b[43]);b[39](b[3],b[47]);b[39](b[15],b[44]);b[21](b[44],b[0]);b[19](b[25],b[16]);b[34](b[40],b[9]);b[9](b[5],b[48]);b[28](b[12]);b[1](b[5],b[39]);b[1](b[12],b[32]);b[1](b[12],b[40]);b[37](b[20],b[27]);b[0](b[43]);b[1](b[17],b[2]);b[1](b[12],b[34]);b[1](b[12],b[36]);b[23](b[12]);b[1](b[5],b[33]);b[22](b[24],b[35]);b[44](b[39],b[16]);b[20](b[15],b[8]);b[32](b[0],b[14]);b[46](b[19],b[36]);b[17](b[19],b[9]);b[45](b[32],b[41]);b[29](b[44],b[14]);b[48](b[2]);
b[7](b[37],b[16]);b[21](b[44],b[38]);b[31](b[32],b[30]);b[42](b[13],b[20]);b[19](b[2],b[8]);b[45](b[13],b[0]);b[28](b[2],b[26]);b[43](b[37]);b[43](b[18],b[14]);b[43](b[37],b[4]);b[43](b[6],b[33]);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.Oc(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.Ja("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.Ja("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.Cb(a,function(c){b.unsubscribeByKey(c);delete Ko[c]}))};
g.Po=function(a,b){var c=g.Jo();return c?c.publish.apply(c,arguments):!1};
Ro=function(a){var b=g.Jo();if(b)if(b.clear(a),a)Qo(a);else for(var c in Mo)Qo(c)};
g.Jo=function(){return g.v.ytPubsubPubsubInstance};
Qo=function(a){Mo[a]&&(a=Mo[a],g.Cb(a,function(b){Ko[b]&&delete Ko[b]}),a.length=0)};
g.So=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=To(a),e=document.getElementById(d),f=e&&Bo(e),h=e&&!f;f?b&&b():(b&&(f=g.No(d,b),b=""+g.Sa(b),Uo[b]=f),h||(e=Xda(a,d,function(){Bo(e)||(Ao(e,"loaded","true"),g.Po(d),g.Go(g.Ta(Ro,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.kd(e,g.sg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
To=function(a){var b=document.createElement("a");g.jd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qd(a)};
Wo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Vo+"VisibilityState";if(b in a)return a[b]};
Xo=function(a,b){var c;ki(a,function(d){c=b[d];return!!c});
return c};
Yo=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){}};
Zo=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 Qb($o,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Pa(e[4])&&g.Pa(d)&&g.Ub(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.cp=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=++ap.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Yo(l);if(!Te(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Yo(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"),bp()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);$o[e]=[a,b,c,h,d];return e};
$da=function(a,b){var c=document.body||document;return g.cp(c,"click",function(d){var e=Te(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.dp=function(a){a&&("string"==typeof a&&(a=[a]),g.Cb(a,function(b){if(b in $o){var c=$o[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?bp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete $o[b]}}))};
g.ep=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
fp=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.ep(a)};
gp=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};
hp=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.ge(b,c)};
g.ip=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.WD&&a.WD()};
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.qn(b,"ytp-ad-has-logging-urls")})};
g.mp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.cp(a,b,function(){g.dp(e);c.apply(a,arguments)},d)};
np=function(a){for(var b in $o)$o[b][0]==a&&g.dp(b)};
op=function(a){this.P=a;this.u=null;this.D=0;this.I=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.R=g.cp(window,"mousemove",(0,g.z)(this.Y,this));this.X=Ho((0,g.z)(this.K,this),25)};
pp=function(){};
rp=function(a,b){return qp(a,0,b)};
g.sp=function(a,b){return qp(a,1,b)};
tp=function(){pp.apply(this,arguments)};
g.up=function(){return!!g.Ja("yt.scheduler.instance")};
qp=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Go(a,c||0)};
g.vp=function(a){if(!isNaN(a)){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.Io(a)}};
wp=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
zp=function(){var a={},b=void 0===a.eL?!0:a.eL;a=void 0===a.yR?!1:a.yR;if(null==g.Ja("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&xp();g.cp(document,"keydown",xp);g.cp(document,"keyup",xp);g.cp(document,"mousedown",xp);g.cp(document,"mouseup",xp);b&&(a?g.cp(window,"touchmove",function(){yp("touchmove",200)},{passive:!0}):(g.cp(window,"resize",function(){yp("resize",200)}),g.cp(window,"scroll",function(){yp("scroll",
200)})));
new op(function(){yp("mouse",100)});
g.cp(document,"touchstart",xp,{passive:!0});g.cp(document,"touchend",xp,{passive:!0})}};
yp=function(a,b){Ap[a]||(Ap[a]=!0,g.sp(function(){xp();Ap[a]=!1},b))};
xp=function(){null==g.Ja("_lact",window)&&(zp(),g.Ja("_lact",window));var a=g.A();g.Fa("_lact",a,window);-1==g.Ja("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()};
Bp=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Hp=function(a){a=void 0===a?!1:a;return new rm(function(b){g.Io(Cp);g.Io(Dp);Dp=0;Ep&&Ep.isReady()?(bea(b,a),Fp.clear()):(Gp(),b())})};
Gp=function(){g.vo("web_gel_timeout_cap")&&!Dp&&(Dp=g.Go(Hp,6E4));g.Io(Cp);var a=g.L("LOGGING_BATCH_TIMEOUT",g.wo("web_gel_debounce_ms",1E4));g.vo("shorten_initial_gel_batch_timeout")&&Ip&&(a=cea);Cp=g.Go(Hp,a)};
bea=function(a,b){var c=Ep;b=void 0===b?!1:b;for(var d=Math.round((0,g.N)()),e=Fp.size,f=g.q(Fp),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.Wb(g.Jp(c.Tf||g.Kp()));l.events=m;(m=Lp[h])&&dea(l,h,m);delete Lp[h];eea(l,d);g.Mp(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();Np=Math.round((0,g.N)()-d)},
onError:function(){e--;e||a()},
JS:b});Ip=!1}};
eea=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()*Op/2));d++;d>Op&&(d=1);so("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Pp&&Np&&g.vo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Pp,roundtripMs:String(Np)});Pp=
c;Np=0}};
dea=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}]};
Sp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;a=Bp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.vo("log_sequence_info_on_gel_web")&&d.pk&&(a=e.context,b=d.pk,Qp[b]=b in Qp?Qp[b]+1:0,a.sequence={index:Qp[b],groupKey:b},d.YJ&&delete Qp[d.pk]);d=d.Fi;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Lp[d.token]=a,a=d.token);d=Fp.get(a)||[];Fp.set(a,d);d.push(e);c&&(Ep=new c);c=g.wo("web_logging_max_batch")||
100;e=(0,g.N)();d.length>=c?Hp(!0):10<=e-Rp&&(Gp(),Rp=e)};
Tp=function(){return g.Ja("yt.ads.biscotti.lastId_")||""};
Up=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)};
Vp=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=nd(f[0]||""),l=nd(f[1]||"");h in c?Array.isArray(c[h])?sb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(m){m.args=[{key:f[0],value:f[1],query:a}],fea.hasOwnProperty(f[0])||("ReferenceError"===m.name?g.Fo(m):M(m))}}return c};
Wp=function(a){var b=[];g.Eb(a,function(c,d){var e=md(d),f;Array.isArray(c)?f=c:f=[c];g.Cb(f,function(h){""==h?b.push(e):b.push(e+"="+md(h))})});
return b.join("&")};
Xp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Vp(a)};
Yp=function(a){a=a.split(",");return a=a.map(function(b){return Xp(b)})};
g.Zp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Xp(1<a.length?a[1]:a[0])):{}};
g.aq=function(a,b){return $p(a,b||{},!0)};
bq=function(a,b){return $p(a,b||{},!1)};
$p=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=Xp(e[1]||"");for(var f in b)if(c||!Ob(e,f))e[f]=b[f];return g.Md(a,e)+d};
cq=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};
dq=function(a){a||(a=document.location.href);a=g.xd(1,a);return null!==a&&"https"==a};
eq=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};
hq=function(a){var b=fq;a=void 0===a?Tp():a;var c=Object,d=c.assign,e=gq(b);var f=b.u;try{var h=f.screenX;var l=f.screenY}catch(t){}try{var m=f.outerWidth;var n=f.outerHeight}catch(t){}try{var p=f.innerWidth;var r=f.innerHeight}catch(t){}f=[f.screenLeft,f.screenTop,h,l,f.screen?f.screen.availWidth:void 0,f.screen?f.screen.availTop:void 0,m,n,p,r];h=Rg(!1,b.u.top);l={};m=new fn;g.v.SVGElement&&g.v.document.createElementNS&&m.set(0);n=cba();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&
m.set(2);g.v.crypto&&g.v.crypto.subtle&&m.set(3);g.v.TextDecoder&&g.v.TextEncoder&&m.set(4);m=yda(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=gh(b.B),l.wgl=!!fh.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
gq=function(a){var b={};b.dt=gea;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?fh:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!fh.navigator&&"unknown"!==typeof fh.navigator.javaEnabled&&!!fh.navigator.javaEnabled&&fh.navigator.javaEnabled();fh.screen&&(b.u_h=fh.screen.height,b.u_w=fh.screen.width,b.u_ah=fh.screen.availHeight,b.u_aw=fh.screen.availWidth,b.u_cd=
fh.screen.colorDepth);fh.navigator&&fh.navigator.plugins&&(b.u_nplug=fh.navigator.plugins.length);fh.navigator&&fh.navigator.mimeTypes&&(b.u_nmime=fh.navigator.mimeTypes.length);return b};
hea=function(){if(!iq)return null;var a=iq();return"open"in a?a:null};
g.kq=function(a){switch(jq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
jq=function(a){return a&&"status"in a?a.status:-1};
iea=function(a,b){b=void 0===b?{}:b;var c=cq(a),d=g.vo("web_ajax_ignore_global_headers_if_set"),e;for(e in lq){var f=g.L(lq[e]);!f||!c&&!mq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||mq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||mq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||mq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Wp(hq(void 0));
return b};
nq=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=Xp(b),f={};g.Cb(jea,function(h){e[h]&&(f[h]=e[h])});
return bq(a,f)};
mq=function(a){return g.yd(a)?!1:!0};
kea=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=oq(a,b);var d=pq(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.Zf&&b.Zf.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.PF&&0<b.timeout&&(f=g.Go(function(){e||(e=!0,g.Io(f),b.PF.call(b.context||g.v))},b.timeout))}else g.qq(a,b)};
g.qq=function(a,b){var c=b.format||"JSON";a=oq(a,b);var d=pq(a,b),e=!1,f=rq(a,function(m){if(!e){e=!0;l&&g.Io(l);var n=g.kq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=lea(a,c,m,b.U4);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.Zf&&b.Zf.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.Bg&&0<b.timeout){var h=b.Bg;var l=g.Go(function(){e||(e=!0,f.abort(),g.Io(l),h.call(b.context||g.v,f))},b.timeout)}return f};
oq=function(a,b){b.X4&&(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.si;d&&(d[c]&&delete d[c],a=g.aq(a,d));return a};
pq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.tc,h=to("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Nx||g.yd(a)&&!b.withCredentials&&g.yd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.tc&&b.tc[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Xp(e),g.Zb(e,f),e=b.HG&&"JSON"==b.HG?JSON.stringify(e):g.Kd(e));f=e||f&&!g.Sb(f);!sq&&f&&"POST"!=b.method&&(sq=!0,M(Error("AJAX request with postData should use POST")));
return e};
lea=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)?mea(a):null)e={},g.Cb(a.getElementsByTagName("*"),function(h){e[h.tagName]=nea(h)})}d&&tq(e);
return e};
tq=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||oc(b,"_html")?a[b]=g.fd(g.gc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):tq(a[b])};
mea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
nea=function(a){var b="";g.Cb(a.childNodes,function(c){b+=c.nodeValue});
return b};
rq=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=hea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.vo("debug_forward_web_query_parameters")&&(a=nq(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=iea(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};
uq=function(){return"INNERTUBE_API_KEY"in ro&&"INNERTUBE_API_VERSION"in ro};
g.Kp=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),PD:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mu:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Hy:g.L("INNERTUBE_CONTEXT_HL",void 0),Gy:g.L("INNERTUBE_CONTEXT_GL",void 0),RD:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",TD:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),SD:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.L("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
oea=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.VB||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.Ja("gapi.auth.getToken")().R4:b=Dl([]));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.Jp=function(a){var b={client:{hl:a.Hy,gl:a.Gy,clientName:a.mu,clientVersion:a.innertubeContextClientVersion,configInfo:a.PD}},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")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.q(Object.entries(Xp(g.L("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return{context:b}};
g.wq=function(a,b,c,d,e){vq.set(""+a,b,{tE:c,path:"/",domain:void 0===d?"youtube.com":d,PR:void 0===e?!1:e})};
g.xq=function(a,b){return vq.get(""+a,b)};
g.yq=function(a,b,c){vq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
zq=function(a){var b;(b=g.jo(a))||(a=new fo(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.u=(a=b)?new On(a):null;this.B=document.domain||window.location.hostname};
Aq=function(a,b){this.version=a;this.args=b};
Bq=function(a,b){this.topic=a;this.u=b};
Dq=function(a,b){var c=Cq();c&&c.publish.call(c,a.toString(),a,b)};
pea=function(a,b,c){var d=Cq();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Eq[e])try{if(h&&a instanceof Bq&&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.Ol){var p=new m;m.Ol=p.version}var r=m.Ol}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.rb(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)}},Fq[a.toString()]?g.up()?g.sp(l):g.Go(l,0):l())});
Eq[e]=!0;Gq[a.toString()]||(Gq[a.toString()]=[]);Gq[a.toString()].push(e);return e};
Iq=function(a,b,c){var d=pea(a,function(e){b.apply(c,arguments);Hq(d)},c);
return d};
Hq=function(a){var b=Cq();b&&("number"===typeof a&&(a=[a]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete Eq[c]}))};
Cq=function(){return g.Ja("ytPubsub2Pubsub2Instance")};
Jq=function(){this.C=!0};
Kq=function(){Jq.u||(Jq.u=new Jq);return Jq.u};
qea=function(a,b,c){return vm(a.u(b,c))};
rea=function(){var a={};for(Lq=new Mq(void 0===a.zy?g.Fo:a.zy,void 0===a.handleError?M:a.handleError,void 0===a.logEvent?g.Nq:a.logEvent);0<Oq.length;)switch(a=Oq.shift(),a.type){case "ERROR":Pq(a.payload);break;case "EVENT":Lq.logEvent(a.eventType,a.payload)}};
Rq=function(a,b){Qq||(Lq?Lq.logEvent(a,b):(Oq.push({type:"EVENT",eventType:a,payload:b}),10<Oq.length&&Oq.shift()))};
sea=function(a){if(!a)throw Error();throw a;};
tea=function(a){return a};
Sq=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()}})};
Uq=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 Sq?Tq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Vq=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 Sq?Tq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Tq=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Sq?Tq(a,b,f,d,e):d(f)},function(f){e(f)})};
Wq=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)};
Xq=function(a){return new Promise(function(b,c){Wq(a,b,c)})};
Yq=function(a){return new Sq(function(b,c){Wq(a,b,c)})};
Zq=function(a,b){return new Sq(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
$q=function(a,b){this.request=a;this.cursor=b};
ar=function(a){return Yq(a).then(function(b){return null===b?null:new $q(a,b)})};
br=function(){var a=/Chrome\/(\d+)/.exec(g.Vc);return a?parseFloat(a[1]):NaN};
cr=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("."))};
er=function(){return dr("android")&&dr("chrome")&&!(dr("trident/")||dr("edge/"))&&!dr("cobalt")};
fr=function(){return dr("armv7")||dr("aarch64")||dr("android")};
g.gr=function(){return dr("cobalt")};
hr=function(){return dr("cobalt")&&dr("appletv")};
ir=function(){return dr("(ps3; leanback shell)")||dr("ps3")&&g.gr()};
jr=function(){return dr("(ps4; leanback shell)")||dr("ps4")&&g.gr()};
g.kr=function(){return g.gr()&&(dr("ps4 vr")||dr("ps4 pro vr"))};
lr=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&600<=parseInt(a[1],10))};
mr=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&602<=parseInt(a[1],10))};
nr=function(){return dr("iemobile")||dr("windows phone")&&dr("edge")};
pr=function(){return or&&dr("applewebkit")&&!dr("version")&&(!dr("safari")||dr("gsa/"))};
rr=function(){return g.qr&&dr("version/")};
sr=function(){return dr("smart-tv")&&dr("samsung")};
dr=function(a){var b=g.Vc;return b?0<=b.toLowerCase().indexOf(a):!1};
g.tr=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.ma(c))};
vr=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?ur[a]:c;g.tr.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,vr.prototype);Qq||(Lq?Pq(this):(Oq.push({type:"ERROR",payload:this}),10<Oq.length&&Oq.shift()))};
wr=function(a){vr.call(this,"MISSING_OBJECT_STORE",{g5:a},ur.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,wr.prototype)};
xr=function(a,b){this.u=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.N)());this.B=!1};
Tr=function(a,b,c,d){return yr(a,[b],"readwrite",function(e){return Rr(Sr(e,b),c,d)})};
yr=function(a,b,c,d){c=void 0===c?"readonly":c;a.transactionCount++;var e=a.u.transaction(b,c);d=uea(e,d)["catch"](function(f){var h=a.u.name,l=b.join();f instanceof vr||f instanceof g.tr||("QuotaExceededError"===f.name?f=new vr("QUOTA_EXCEEDED",{objectStoreNames:l,dbName:h}):g.Ur&&"UnknownError"===f.name?f=new vr("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:l,dbName:h}):(Object.setPrototypeOf(f,g.tr.prototype),f.args=[{name:"IdbError",l5:f.name,dbName:h,objectStoreNames:l}]));throw f;});
vea(a,d,b.join(),c);return d};
vea=function(a,b,c,d){We(a,function f(){var h,l,m=this,n,p,r;return xa(f,function(t){if(1==t.u)return h=Math.round((0,g.N)()),t.C=2,sa(t,b,4);if(2!=t.u)return l=Math.round((0,g.N)()),Vr(m,!0,c,l-h),ta(t,0);n=ua(t);p=Math.round((0,g.N)());r=p-h;n instanceof vr&&("QUOTA_EXCEEDED"===n.type||"QUOTA_MAYBE_EXCEEDED"===n.type)&&Rq("QUOTA_EXCEEDED",{dbName:m.u.name,objectStoreNames:c,transactionCount:m.transactionCount,transactionMode:d});n instanceof vr&&"UNKNOWN_ABORT"===n.type&&(Rq("TRANSACTION_UNEXPECTEDLY_ABORTED",
{objectStoreNames:c,transactionDuration:r,transactionCount:m.transactionCount,dbDuration:p-m.C}),m.B=!0);Vr(m,!1,c,r);t.u=0})})};
Vr=function(a,b,c,d){Rq("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.B,duration:d,isSuccessful:b})};
Wr=function(a){this.u=a};
wea=function(a,b){return Xr(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
yea=function(a,b){return"getAll"in IDBObjectStore.prototype?Yq(a.u.getAll(b,void 0)):xea(a,b)};
xea=function(a,b){var c=[];return Xr(a,{query:b},function(d){c.push(d.getValue());return d["continue"]()}).then(function(){return c})};
Rr=function(a,b,c){return Yq(a.u.put(b,c))};
Xr=function(a,b,c){a=a.u.openCursor(b.query,b.direction);return Yr(a).then(function(d){return Zq(d,c)})};
zea=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 ar(d).then(function(e){return Zq(e,b)})};
Zr=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new Promise(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=vr;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("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.u.db.name,mode:b.u.mode});d(e)}})})};
uea=function(a,b){var c=new Zr(a);return Aea(c,b)};
Aea=function(a,b){var c=new Promise(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
Sr=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new Wr(c),a.B.set(c,d));return d};
$r=function(a){this.u=a};
Bea=function(a,b,c){a=a.u.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Yr(a).then(function(d){return Zq(d,c)})};
as=function(a,b){this.request=a;this.cursor=b};
Yr=function(a){return Yq(a).then(function(b){return null===b?null:new as(a,b)})};
Cea=function(a,b,c){return We(this,function e(){var f,h,l,m,n,p,r,t,w,y;return xa(e,function(x){if(1==x.u)return f=self.indexedDB.open(a,b),h=c,l=h.blocked,m=h.blocking,n=h.lS,p=h.upgrade,r=h.closed,w=function(){t||(t=new xr(f.result,{closed:r}));return t},f.addEventListener("upgradeneeded",function(B){if(null===B.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");B.dataLoss&&"none"!==B.dataLoss&&Rq("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:a});var E=w(),G=new Zr(f.transaction);p&&p(E,B.oldVersion,B.newVersion,G)}),l&&f.addEventListener("blocked",function(){l()}),sa(x,Xq(f),2);
y=x.B;m&&y.addEventListener("versionchange",function(){m(w())});
y.addEventListener("close",function(){Rq("IDB_UNEXPECTEDLY_CLOSED",{dbName:a,dbVersion:y.version});n&&n()});
return x["return"](w())})})};
bs=function(a,b,c){c=void 0===c?{}:c;return Cea(a,b,c)};
cs=function(a,b){b=void 0===b?{}:b;return We(this,function d(){var e,f,h;return xa(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return sa(l,Xq(e),0)})})};
ds=function(a,b){this.name=a;this.options=b;this.B=!1};
fs=function(a){return We(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,es.open(),2);d=e.B;return e["return"](yr(d,["databases"],"readwrite",function(f){var h=Sr(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier||a.signedIn!==l.signedIn||a.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return Rr(h,a).then(function(){})})}))})})};
gs=function(a){return We(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,es.open(),2);d=e.B;return e["return"](d["delete"]("databases",a))})})};
Dea=function(){return We(this,function b(){var c,d;return xa(b,function(e){switch(e.u){case 1:if(or&&lr()&&!mr()&&!g.vo("ytidb_allow_on_ios_safari_v8_and_v9")||g.hs)return e["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e["return"](!1)}catch(f){return e["return"](!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e["return"](!1);e.C=2;d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0,
signedIn:!1};return sa(e,fs(d),4);case 4:return sa(e,gs("yt-idb-test-do-not-use"),5);case 5:return e["return"](!0);case 2:return ua(e),e["return"](!1)}})})};
js=function(){if(void 0!==is)return is;Qq=!0;return is=Dea().then(function(a){Qq=!1;return a})};
ks=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
ls=function(a){return{actualName:a,publicName:a,userIdentifier:void 0,signedIn:!1}};
ms=function(a){return ls(a);throw new vr("AUTH_INVALID");};
os=function(a,b,c,d){var e;return We(this,function h(){var l,m;return xa(h,function(n){switch(n.u){case 1:return sa(n,ns(),2);case 2:return ks(a),c?l=ls(a):l=ms(a),l.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1,n.C=3,sa(n,fs(l),5);case 5:return sa(n,bs(l.actualName,b,d),6);case 6:return n["return"](n.B);case 3:return m=ua(n),n.C=7,sa(n,gs(l.actualName),9);case 9:ta(n,8);break;case 7:ua(n);case 8:throw m;}})})};
ns=function(){return We(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,js(),2);c=d.B;if(!c)throw new vr("IDB_NOT_SUPPORTED");d.u=0})})};
Eea=function(a,b,c){c=void 0===c?{}:c;return os(a,b,!1,c)};
Fea=function(a,b,c){c=void 0===c?{}:c;return os(a,b,!0,c)};
Gea=function(a,b){b=void 0===b?{}:b;return We(this,function d(){var e;return xa(d,function(f){return 1==f.u?(ks(a),sa(f,ns(),2)):3!=f.u?(e=ms(a),sa(f,cs(e.actualName,b),3)):sa(f,gs(e.actualName),0)})})};
Hea=function(a,b){b=void 0===b?{}:b;return We(this,function d(){return xa(d,function(e){return 1==e.u?(ks(a),sa(e,ns(),2)):3!=e.u?sa(e,cs(a,b),3):sa(e,gs(a),0)})})};
ps=function(a,b){ds.call(this,a,b);this.options=b;ks(a)};
qs=function(){Sq.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
ts=function(){rs||(rs=new zq("yt.offline"));return rs};
vs=function(){g.am.call(this);this.D=this.F=this.u=!1;this.C=us();Iea(this);Jea(this)};
us=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Jea=function(a){window.addEventListener("online",function(){a.C=!0;a.u&&a.dispatchEvent("ytnetworkstatus-online");ws(a);if(a.D&&g.vo("offline_error_handling")){var b=ts().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.tr(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;M(d)}ts().set("errors",{},2592E3,!0)}}})};
Iea=function(a){window.addEventListener("offline",function(){a.C=!1;a.u&&a.dispatchEvent("ytnetworkstatus-offline");ws(a)})};
ws=function(a){a.F&&(g.Fo(new g.tr("NetworkStatusManager state did not match poll",(0,g.N)()-0)),a.F=!1)};
ys=function(a){a=void 0===a?{}:a;g.am.call(this);var b=this;this.C=this.F=0;vs.u||(vs.u=new vs);this.u=vs.u;this.u.u=!0;a.uL&&(this.u.D=!0);a.Pv?(this.Pv=a.Pv,this.u.wa("ytnetworkstatus-online",function(){xs(b,"publicytnetworkstatus-online")}),this.u.wa("ytnetworkstatus-offline",function(){xs(b,"publicytnetworkstatus-offline")})):(this.u.wa("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),this.u.wa("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
xs=function(a,b){a.Pv?a.C?(g.vp(a.F),a.F=g.sp(function(){a.D!==b&&(a.dispatchEvent(b),a.D=b,a.C=(0,g.N)())},a.Pv-((0,g.N)()-a.C))):(a.dispatchEvent(b),a.D=b,a.C=(0,g.N)()):a.dispatchEvent(b)};
As=function(a,b){b=void 0===b?{}:b;js().then(function(){zs||(zs=new ys({uL:!0}));zs.u.C!==us()&&g.Fo(new g.tr("NetworkStatusManager isOnline does not match window status"));g.qq(a,b)})};
Bs=function(a,b){b=void 0===b?{}:b;js().then(function(){g.qq(a,b)})};
Kea=function(a,b){b=void 0===b?{}:b;js().then(function(){g.qq(a,b)})};
g.Cs=function(a){this.Tf=null;a?this.Tf=a:uq()&&(this.Tf=g.Kp())};
g.Mp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Fo(new g.tr("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.tr("innertube xhrclient not ready",b,c,d),M(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",tc:c,HG:"JSON",Bg:function(){d.Bg()},
PF:d.Bg,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
k5:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
j5:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.Tf.RD;f&&(c=f);f=oea(a.Tf.TD||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Tf.innertubeApiVersion+"/"+b;f={alt:"json"};a.Tf.SD&&e.headers.Authorization||(f.key=a.Tf.innertubeApiKey);var h=g.aq(""+c+b,f);js().then(function(){try{g.vo("use_fetch_for_op_xhr")?kea(h,e):g.vo("networkless_gel")&&d.retry?(e.method="POST",!d.JS&&g.vo("nwl_send_fast_on_unload")?Kea(h,e):As(h,
e)):(e.method="POST",e.tc||(e.tc={}),g.qq(h,e))}catch(l){if("InvalidAccessError"==l.name)g.Fo(Error("An extension is blocking network request."));else throw l;}})};
g.Nq=function(a,b,c){c=void 0===c?{}:c;var d=g.Cs;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Cs==g.Cs&&(d=null);Sp(a,b,d,c)};
Lea=function(){this.Pn=[];this.Om=[]};
Es=function(){Ds||(Ds=new Lea);return Ds};
Gs=function(a,b,c,d){c+="."+a;a=Fs(b);d[c]=a;return c.length+a.length};
Fs=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Mea=function(a){g.Hs(a)};
g.Is=function(a){g.Hs(a,"WARNING")};
g.Hs=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((!g.vo("web_yterr_killswitch")||window&&window.yterr||e)&&!(5<=Js)&&0!==a.sampleWeight){var h=Vaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.stack||a.u||"Not available";if(l.startsWith(f+": "+e)){var m=l.split("\n");m.shift();l=m.join("\n")}m=h.lineNumber||"Not available";h=h.fileName||"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,y=0;y<
r.length&&!(r[y]&&(n+=Gs(y,r[y],t,w),500<n));y++);else if("object"===typeof r)for(w in w=void 0,y=d,r){if(r[w]&&(n+=Gs(w,r[w],t,y),500<n))break}else d[t]=Fs(r),n+=d[t].length;else d[t]=Fs(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=Fs(r[p]),d[n]=w,t+=n.length+w.length,500<t))break}else d.params=Fs(r);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d.vendor=navigator.vendor);d={message:e,
name:f,lineNumber:m,fileName:h,stack:l,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);e=g.q(Nea);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.Nz[d.name])for(h=g.q(f.Nz[d.name]),m=h.next();!m.done;m=h.next())if(l=m.value,m=d.message.match(l.hh)){d.params["params.error.original"]=m[0];h=l.groups;l={};for(p=0;p<h.length;p++)l[h[p]]=m[p+1],d.params["params.error."+h[p]]=m[p+1];d.message=f.wE(l);break}window.yterr&&"function"===typeof window.yterr&&window.yterr(d);if(!(Ks.has(d.message)||
0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){"ERROR"===c?(Ls.V("handleError",d),g.vo("record_app_crashed_web")&&0===Ms&&g.Nq("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"}),Ms++):"WARNING"===c&&Ls.V("handleWarning",d);if(g.vo("kevlar_gel_error_routing")){e=c;a:{f=g.q(Oea);for(m=f.next();!m.done;m=f.next())if(dr(m.value.toLowerCase())){f=!0;break a}f=!1}if(!f){m={stackTrace:d.stack};d.fileName&&(m.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]))||(m.lineNumber=Number(f[0]),m.columnNumber=Number(f[1])):m.lineNumber=Number(f[0]));f=Es();h=d.message;l=d.name;a:{p=g.q(f.Om);for(r=p.next();!r.done;r=p.next())if(r=r.value,d.message&&d.message.match(r.xL)){p=r.weight;break a}p=g.q(f.Pn);for(r=p.next();!r.done;r=p.next())if(r=r.value,r.callback(d)){p=r.weight;break a}p=1}h={level:"ERROR_LEVEL_UNKNOWN",message:h,errorClassName:l,sampleWeight:p};
"ERROR"===e?h.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(h.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:m};m={pageUrl:window.location.href};g.L("FEXP_EXPERIMENTS")&&(m.experimentIds=g.L("FEXP_EXPERIMENTS"));m.kvPairs=[{key:"client.params.errorServiceSignature",value:"msg="+f.Om.length+"&cb="+f.Pn.length},{key:"client.params.serviceWorker",value:"false"}];if(f=d.params)for(l=g.q(Object.keys(f)),p=l.next();!p.done;p=l.next())p=p.value,m.kvPairs.push({key:"client."+p,value:String(f[p])});
f=g.L("SERVER_NAME",void 0);l=g.L("SERVER_VERSION",void 0);f&&l&&(m.kvPairs.push({key:"server.name",value:f}),m.kvPairs.push({key:"server.version",value:l}));g.Nq("clientError",{errorMetadata:m,stackTrace:e,logMessage:h});Hp()}}if(!g.vo("suppress_error_204_logging")){e=d.params||{};c={si:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},tc:{url:g.L("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=
e.version);if(c.tc){d.stack&&(c.tc.stack=d.stack);f=g.q(Object.keys(e));for(m=f.next();!m.done;m=f.next())m=m.value,c.tc["client."+m]=e[m];if(e=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),m=f.next();!m.done;m=f.next())m=m.value,c.tc[m]=e[m];e=g.L("SERVER_NAME",void 0);f=g.L("SERVER_VERSION",void 0);e&&f&&(c.tc["server.name"]=e,c.tc["server.version"]=f)}g.qq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",c)}Ks.add(d.message);Js++}}}};
Pea=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.ma(c))};
Ns=function(){this.Pd=!1;this.u=null};
Os=function(a,b,c,d,e){e=e?window.trayride.ad:window.botguard.bg;if(d)try{a.u=new e(b,c?function(){return c(b)}:g.Ka)}catch(f){g.Is(f)}else{try{a.u=new e(b)}catch(f){g.Is(f)}c&&c(b)}};
Qea=function(a){var b=Ps;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){setTimeout(function(){setTimeout(function(){d(Error("Timed out waiting for snapshot"))},0)},0)},g.wo("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){return b.u.hot?b.u.hot(c,!0,a):b.u.invoke(c,!0,a)})]):Promise.resolve(null)};
Qs=function(){return g.xq("CONSENT","").startsWith("YES+")};
Ss=function(){if(!g.vo("disable_ad_status_on_html5_clients")&&(!g.vo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Qs())&&"1"!=g.Nb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Rs=!0;"google_ad_status"in window?so("DCLKSTAT",1):so("DCLKSTAT",2)};
try{g.So("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Rea.push(g.sp(function(){if(!(Rs||"google_ad_status"in window)){try{if(a){var b=""+g.Sa(a),c=Uo[b];c&&g.Oo(c)}}catch(d){}Rs=!0;so("DCLKSTAT",3)}},5E3))}};
Us=function(a,b){var c=g.Vb(b),d;return Cm(new rm(function(e,f){c.onSuccess=function(h){g.kq(h)?e(h):f(new Ts("Request failed, status="+jq(h),"net.badstatus",h))};
c.onError=function(h){f(new Ts("Unknown request error","net.unknown",h))};
c.Bg=function(h){f(new Ts("Request timed out","net.timeout",h))};
d=g.qq(a,c)}),function(e){e instanceof Hm&&d.abort();
return wm(e)})};
g.Vs=function(a,b,c,d){function e(h,l,m){return Cm(h,function(n){return 0>=l||403===jq(n.xhr)?wm(new Ts("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(Us(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new rm(function(l){setTimeout(l,h)})}
return e(Us(a,b),c-1,d)};
Ts=function(a,b,c){Ya.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Ws=function(){this.Ka=0;this.u=null};
Xs=function(a){var b=new Ws;a=void 0===a?null:a;b.Ka=2;b.u=void 0===a?null:a;return b};
Ys=function(a){var b=new Ws;a=void 0===a?null:a;b.Ka=1;b.u=void 0===a?null:a;return b};
$s=function(a){Ya.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Zs;this.isTimeout=a instanceof Ts&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Hm};
Zs=function(){Ya.call(this,"Biscotti ID is missing from server")};
Sea=function(){if(g.vo("disable_biscotti_fetch_on_html5_clients"))return wm(Error("Fetching biscotti ID is disabled."));if(g.vo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Qs())return wm(Error("User has not consented - not fetching biscotti id."));if("1"===g.Nb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return wm(Error("Biscotti ID is not available in private embed mode"));at||(at=Cm(Us("//googleads.g.doubleclick.net/pagead/id",bt).then(ct),function(a){return dt(2,a)}));
return at};
ct=function(a){a=a.responseText;if(!nc(a,")]}'"))throw new Zs;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Zs;a=a.id;Up(a);at=Ys(a);et(18E5,2);return a};
dt=function(a,b){var c=new $s(b);Up("");at=Xs(c);0<a&&et(12E4,a-1);throw c;};
et=function(a,b){g.Go(function(){Cm(Us("//googleads.g.doubleclick.net/pagead/id",bt).then(ct,function(c){return dt(b,c)}),g.Ka)},a)};
ft=function(){try{var a=g.Ja("yt.ads.biscotti.getId_");return a?a():Sea()}catch(b){return wm(b)}};
g.ht=function(){this.u=g.L("ALT_PREF_COOKIE_NAME","PREF");this.B=g.L("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.xq(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])&&(gt[d]=c.toString())}}};
g.jt=function(a,b){return!!((it("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
kt=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
lt=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
it=function(a){a=void 0!==gt[a]?gt[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Vea=function(){var a=void 0===a?window.location.href:a;if(g.vo("kevlar_disable_theme_param"))return null;var b=vd(g.xd(5,a));if(Tea(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Zp(a).theme;return Uea.get(c)||null}catch(d){}return null};
Tea=function(a){var b=Wea.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};
mt=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()};
pt=function(a){var b;nt()?ot()==a&&(b=document):b=a;return b&&(a=Xo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
qt=function(a){return g.fb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Xea=function(){var a=document;return g.fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
nt=function(){return!!Xo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
ot=function(a){a=void 0===a?!1:a;var b=Xo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
rt=function(a){g.C.call(this);this.I=[];this.Ga=a||this};
tt=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.ut=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.O=function(a){a=void 0===a?!1:a;g.C.call(this);this.za=new g.Jn(a);g.D(this,this.za)};
vt=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
wt=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.zt=function(a,b,c,d){g.O.call(this);this.C=!!b;this.I=a;this.P=c||a;this.R=!!d;this.u=new rt(this);g.D(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.Ae&&a.setAttribute("draggable","true"),a.style.touchAction="none");xt(this)};
At=function(a,b,c){a.u.N(a.P,b,c,void 0,!a.C)};
xt=function(a){a.F=null;a.K=null;At(a,Bt("over"),a.qF);At(a,"touchstart",a.RA);a.C&&At(a,Bt("down"),a.EN)};
Ct=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};
Bt=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Dt=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Vb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Vb(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||{}};
Yea=function(a){a instanceof Dt||(a=new Dt(a));return a};
Ht=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(Et)for(b=1,c=0;c<Et.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Et.charCodeAt(c),b++;return a};
It=function(){for(var a=Ht(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Jt=function(){return g.Oc(Ht(),function(a){return(a&15).toString(16)}).join("")};
Kt=function(a){this.u=a};
g.Lt=function(a){return new Kt({trackingParams:a})};
$ea=function(a){var b=Zea++;return new Kt({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Mt=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Nt=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Ot=function(a){return g.L(Nt(void 0===a?0:a),void 0)};
g.Pt=function(a){return(a=Ot(void 0===a?0:a))?new Kt({veType:a,youtubeData:void 0}):null};
Qt=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},so("csn-to-ctt-auth-info",a));return a};
g.Rt=function(a){a=void 0===a?0:a;var b=g.L(Mt(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};
afa=function(a,b,c){var d=Qt();(c=g.Rt(c))&&delete d[c];b&&(d[a]=b)};
St=function(a){return Qt()[a]};
Ut=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(Mt(c))||b!==g.L(Nt(c)))if(afa(a,d,c),so(Mt(c),a),so(Nt(c),b),0==c||g.vo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Sp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Tt,clientScreenNonce:a},g.Cs)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
Vt=function(a){Aq.call(this,1,arguments);this.csn=a};
g.Xt=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Oc(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.Sb(e)||!e.trackingParams&&!e.veType)&&g.Is(Error("Child VE logged with no data"));d={Fi:St(b),pk:b};"UNDEFINED_CSN"==b?Wt("visualElementAttached",c,d):a?Sp("visualElementAttached",c,a,d):g.Nq("visualElementAttached",c,d)};
g.Yt=function(a,b,c){var d=g.vo("use_default_events_client")?void 0:g.Cs;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Fi:St(a),pk:a};"UNDEFINED_CSN"==a?Wt("visualElementShown",b,c):d?Sp("visualElementShown",b,d,c):g.Nq("visualElementShown",b,c)};
Zt=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={Fi:St(b),pk:b,YJ:d};"UNDEFINED_CSN"==b?Wt("visualElementHidden",c,d):a?Sp("visualElementHidden",c,a,d):g.Nq("visualElementHidden",c,d)};
$t=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={Fi:St(b),pk:b};"UNDEFINED_CSN"==b?Wt("visualElementGestured",c,d):a?Sp("visualElementGestured",c,a,d):g.Nq("visualElementGestured",c,d)};
bfa=function(){return g.tf(Math.random()+"")};
Wt=function(a,b,c){au.push({payloadName:a,payload:b,options:c});bu||(bu=Iq(cu,cfa))};
cfa=function(a){if(au){for(var b=g.q(au),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Sp(c.payloadName,c.payload,null,c.options));au.length=0}bu=0};
g.du=function(a,b,c){g.Xt(g.vo("use_default_events_client")?void 0:g.Cs,a,b,[c])};
g.eu=function(a,b){var c=g.vo("use_default_events_client")?void 0:g.Cs;g.Cb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Fi:St(a),pk:a};"UNDEFINED_CSN"==a?Wt("visualElementShown",d,e):c?Sp("visualElementShown",d,c,e):g.Nq("visualElementShown",d,e)})};
g.fu=function(a,b){var c=g.vo("use_default_events_client")?void 0:g.Cs;g.Cb(b,function(d){Zt(c,a,d,void 0,void 0)})};
g.gu=function(a,b,c){$t(g.vo("use_default_events_client")?void 0:g.Cs,a,b,c)};
hu=function(){this.B=new Set;this.u=new Set;this.C=new Map};
g.ku=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.iu)():ju())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.lu=function(a){var b=ju(),c=(0,g.iu)();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.mu=function(a){try{var b=ju(),c=(0,g.iu)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.nu=function(){return g.lu("yt-remote-session-screen-id")};
g.pu=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.gr())a&&(a=g.Fc(g.Jc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.bd(dd(a)).toString(),a=md(g.Nj(a))),g.pc(a)||(a=Ee("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),me(a).body.appendChild(a)));else if(e)rq(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)rq(a,b,"GET","",d);else{b:{try{var f=new jaa({url:a});if(f.C&&f.B||f.D){var h=vd(g.xd(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Qd(a,"ri"));break b}}catch(m){}l=!1}l?ou(a)?(b&&b(),c=!0):c=!1:c=!1;c||dfa(a,b)}};
qu=function(a,b,c){c=void 0===c?"":c;ou(a,c)?b&&b():g.pu(a,b,void 0,void 0,c)};
ou=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
dfa=function(a,b){var c=new Image,d=""+efa++;ru[d]=c;c.onload=c.onerror=function(){b&&ru[d]&&b();delete ru[d]};
c.src=a};
vu=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!tu(a)||c.some(function(e){return!tu(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())uu(a,d.value);return a};
uu=function(a,b){for(var c in b)if(tu(b[c])){if(c in a&&!tu(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});uu(a[c],b[c])}else if(wu(b[c])){if(c in a&&!wu(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);xu(a[c],b[c])}else a[c]=b[c];return a};
xu=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,tu(d)?a.push(uu({},d)):wu(d)?a.push(xu([],d)):a.push(d);return a};
tu=function(a){return"object"===typeof a&&!Array.isArray(a)};
wu=function(a){return"object"===typeof a&&Array.isArray(a)};
yu=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};
Au=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.u=zu(this,"Sequence-Number");this.I=zu(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=zu(this,"Ingestion-Walltime-Us")/1E6;this.B=(zu(this,"First-Frame-Time-Us")+zu(this,"First-Frame-Uncertainty-Us"))/1E6;this.kh=zu(this,"Target-Duration-Us")/1E6;this.F="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=zu(this,"Crypto-Period-Index");
this.D=zu(this,"Crypto-Period-Seconds")};
Bu=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
zu=function(a,b){return Number(a.data[b])||0};
Cu=function(a,b,c,d,e,f,h,l,m){this.qb=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.B=void 0===m?null:m;this.endTime=b+c;this.u=h||0;this.range=f||null;this.pending=l||!1};
Du=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Eu=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 Du(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Fu=function(a,b){return new Du(a,a+b-1)};
Iu=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.R="";this.B=-1;this.R=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.rb=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.rb==this.range.length:void 0===p?!!this.rb:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.P=this.duration*this.rb/this.range.length,this.I=this.K+this.P):Gu(this);this.X=[];3!=this.type||0<=this.B||!this.u.tf()||
g.Is(new g.tr("b168859904",Hu(this)))};
Gu=function(a){a.K=a.startTime;a.P=a.duration;a.I=a.K+a.P};
ffa=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.rb==a.C+a.rb:d};
Ju=function(a){return 1==a.type||2==a.type};
Ku=function(a){return 3==a.type||6==a.type};
Lu=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.rb==b.range.start+b.C:a.B==b.B?a.C+a.rb==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
Mu=function(a,b){return Lu(a,b)||fe(a.I,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
Nu=function(a){return a.B+(a.D?1:0)};
gfa=function(a){1==a.length||g.qh(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Du(a[0].range.start+a[0].C,b.range.start+b.C+b.rb-1)};
Hu=function(a){a=Ou(a);var b="";g.Eb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
Ou=function(a){var b={};b.itag=a.u.info.Yb();b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.rb-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.P).toFixed(1);b.off=String(a.C);b.len=String(a.rb);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
Pu=function(a,b){var c=b.u;a.R="updateWithEmsg";a.B=c;b.F&&(a.F=b.F)};
Qu=function(a,b){var c=b.qb;a.R="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Gu(a)};
Ru=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Su=function(a){return String.fromCharCode.apply(null,a)};
Tu=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=(this.B=e)?0:8;this.dataOffset=this.offset+this.u};
Uu=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
Vu=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
Wu=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
Xu=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
Yu=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};
Zu=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 Su(d)};
hfa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
$u=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
ifa=function(a,b){this.u=a;this.duration=b};
av=function(a,b,c,d,e){this.B=e;this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
bv=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};
dv=function(a,b){var c=g.cv(a,0,1952868452),d=g.cv(a,0,1953658222);if(c&&d){c.skip(1);var e=Uu(c)<<16|Vu(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=Xu(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=Uu(d)<<16|Vu(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=Xu(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=Xu(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
fv=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.cv(a,0,1836476516))?ev(a):NaN};
jfa=function(a){var b=g.cv(a,0,1937011556);if(!b)return null;b=gv(a,b.dataOffset+8,1635148593);if(!b)return null;var c=gv(a,b.dataOffset+78,1936995172),d=gv(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),Uu(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=gv(a,d.dataOffset,1886547818)){var h=gv(a,d.dataOffset,1886546020),l=gv(a,d.dataOffset,2037673328);if(!l&&(l=gv(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
Wu(h)/65536,f=Wu(h)/65536,e=Wu(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new av(b,c,f,e,a)}return null};
gv=function(a,b,c){for(;hv(a,b);){var d=iv(a,b);if(d.type===c)return d;b+=d.size}return null};
g.cv=function(a,b,c){for(;hv(a,b);){var d=iv(a,b);if(d.type===c)return d;b=jv(d.type)?b+8:b+d.size}return null};
kv=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)};
iv=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Tu(a,b,c,d)};
ev=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
lv=function(a){a=new Tu(a.data,a.offset,a.size,a.type,a.B);var b=Uu(a);a.skip(7);var c=Xu(a);if(0===b){b=Xu(a);var d=Xu(a)}else b=Yu(a),d=Yu(a);a.skip(2);for(var e=Vu(a),f=[],h=[],l=0;l<e;l++){var m=Xu(a);f.push(m);h.push(Xu(a));a.skip(4)}return{ow:c,XJ:b,SC:d,cA:f,lw:h}};
hv=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};
jv=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
mv=function(a){a.skip(4);return{B:Zu(a,0),value:Zu(a,0),ow:Xu(a),D:Xu(a),C:Xu(a),id:Xu(a),u:Zu(a),offset:a.offset}};
nv=function(a,b){for(var c=gv(a,0,b);c;)c.markAsSkip(),c=gv(a,c.offset+c.size,b)};
ov=function(a,b){for(var c=0,d=[];hv(a,c);){var e=iv(a,c);e.type===b&&d.push(e);c=jv(e.type)?c+8:c+e.size}return d};
kfa=function(a,b){var c=g.cv(a,0,1937011556),d=g.cv(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.cv(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 hfa(a.byteLength+d);$u(h,a,0,c.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;$u(h,a,c.offset+16,c.size-16);$u(h,e,e.byteOffset+f.dataOffset+8,d);$u(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.cv(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(pv)return h.data;d=g.cv(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
qv=function(a,b){this.B=a;this.u=0;this.start=b||0};
rv=function(a){return a.u>=a.B.byteLength};
yv=function(a,b,c){var d=new qv(c);if(!tv(d,a))return!1;d=uv(d);if(!vv(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.u;var e=wv(d,!0);d=a+(d.start+d.u-b)+e;d=9<d?xv(d-9,8):xv(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
lfa=function(a){var b=new qv(a);zv(b);if(tv(b,[408125543,374648427,174,224]))b=uv(b);else return null;for(var c=a=null;!rv(b);){var d=wv(b,!1);if(21432===d)switch(Av(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=uv(b):Bv(b)}if(!c)return null;for(var e,f=d=b=null;!rv(c);)switch(wv(c,!1)){case 30321:if(3!==Av(c))return null;break;case 30324:b=Cv(c);break;case 30323:f=Cv(c);break;case 30325:d=Cv(c);break;case 30322:e=wv(c,!0);e=Dv(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:Bv(c)}return e?new av(a,b,f,d,e):null};
uv=function(a){var b=wv(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 qv(c,a.start+a.u);a.u+=b;return c};
Av=function(a){for(var b=wv(a,!0),c=Ev(a),d=1;d<b;d++)c=256*c+Ev(a);return c};
Cv=function(a){var b=wv(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};
Fv=function(a){var b=wv(a,!0);return Su(Dv(a,b))};
Ev=function(a){return a.B.getUint8(a.u++)};
wv=function(a,b){var c=Ev(a);if(1===c){for(var d=c=0;7>d;d++)c=256*c+Ev(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Ev(a),d*=128;return b?c-d:c};
Bv=function(a){var b=wv(a,!0);a.u+=b};
zv=function(a){var b=a.u;a.u=0;var c=!1;try{vv(a,440786851)&&(a.u=0,vv(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};
mfa=function(a){if(!vv(a,440786851,!0))return null;var b=a.u;wv(a,!1);var c=wv(a,!0)+a.u-b;a.u=b+c;if(!vv(a,408125543,!1))return null;wv(a,!0);if(!vv(a,357149030,!0))return null;var d=a.u;wv(a,!1);var e=wv(a,!0)+a.u-d;a.u=d+e;if(!vv(a,374648427,!0))return null;var f=a.u;wv(a,!1);var h=wv(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};
Gv=function(a){var b=a.u,c={HA:1E6,IA:1E9,duration:0,mA:0,Pr:0};if(!vv(a,408125543))return a.u=b,null;c.mA=wv(a,!0);c.Pr=a.start+a.u;if(vv(a,357149030))for(var d=uv(a);!rv(d);){var e=wv(d,!1);2807729===e?c.HA=Av(d):2807730===e?c.IA=Av(d):17545===e?c.duration=Cv(d):Bv(d)}else return a.u=b,null;a.u=b;return c};
Iv=function(a,b,c){var d=a.u,e=[];if(!vv(a,475249515))return a.u=d,null;for(var f=uv(a);vv(f,187);){var h=uv(f);if(vv(h,179)){var l=Av(h);if(vv(h,183)){h=uv(h);for(var m=b;vv(h,241);)m=Av(h)+b;e.push({im:m,nt:l})}}}if(0<e.length&&c===e[0].im)for(Hv&&g.Fo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].im+=1;a.u=d;return e};
Jv=function(a){var b=a.u;a.u=0;var c=1E6;tv(a,[408125543,357149030,2807729])&&(c=Av(a));a.u=b;return c};
nfa=function(a,b){var c=a.u;a.u=0;if(160!==a.B.getUint8(a.u)&&!Kv(a)||!vv(a,160))return a.u=c,NaN;wv(a,!0);var d=a.u;if(!vv(a,161))return a.u=c,NaN;wv(a,!0);Ev(a);var e=Ev(a)<<8|Ev(a);a.u=d;if(!vv(a,155))return a.u=c,NaN;d=Av(a);a.u=c;return(e+d)*b/1E9};
Kv=function(a){if(!Lv(a)||!vv(a,524531317))return!1;wv(a,!0);return!0};
Lv=function(a){if(zv(a)){if(!vv(a,408125543))return!1;wv(a,!0)}return!0};
tv=function(a,b){for(var c=0;c<b.length;c++){if(!vv(a,b[c]))return!1;c!==b.length-1&&wv(a,!0)}return!0};
vv=function(a,b,c){c=void 0===c?!1:c;if(rv(a))return!1;for(var d=a.u;wv(a,!1)!==b;)if(Bv(a),d=a.u,rv(a))return!1;c&&(a.u=d);return!0};
xv=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};
Dv=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
Mv=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)})};
Nv=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};
Ov=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
Pv=function(a){a.D=void 0;a.B=0;a.C=0};
Qv=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
Rv=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
Sv=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(!Qv(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);Pv(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
Tv=function(a,b,c){a=Sv(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Uv=function(a){a=Tv(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};
Vv=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
Wv=function(a,b){a.focus(b);return Qv(a,b,4)?Rv(a).getUint32(b-a.C):256*(256*(256*Vv(a,b)+Vv(a,b+1))+Vv(a,b+2))+Vv(a,b+3)};
Xv=function(a,b,c){this.info=a;this.u=b instanceof Mv?b:new Mv([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
Yv=function(a){return Sv(a.u)};
Zv=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=Yv(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};
$v=function(a,b,c){var d;if(!(d=!Lu(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?Nv(a.u,c.u[0]):1);d=c}if(d)return null;c=new Iu(a.info.type,a.info.u,a.info.range,a.info.R,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.rb,a.info.F,a.info.D);d=b.info;c.rb+=d.rb;c.range&&(c.P+=d.P);c.I=d.I;c.D=d.D;c.F=c.F||d.F;d=new Mv;Ov(d,a.u);Ov(d,b.u);c=new Xv(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};
bw=function(a){g.aw(a.info.u.info)||a.info.u.info.Zd();if(-1!=a.D)return a.D;if(a.B&&Bu(a.B))return a.D=Bu(a.B),a.D;if(g.aw(a.info.u.info)){var b=Yv(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;hv(b,f);){var h=iv(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=ev(h):1952867444===h.type&&isNaN(d)&&(d=kv(h));f=jv(h.type)?f+8:f+h.size}!e&&c&&(e=fv(c));b=d/e}else b=new qv(Yv(a)),c=a.C?b:new qv(new DataView(a.info.u.u.buffer)),d=Jv(c),c=b.u,b.u=0,Kv(b)?vv(b,231)?(d=Av(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};
dw=function(a,b){0<a.F&&(b-=a.F);var c=bw(a)+b;cw(a,c);a.F=b};
cw=function(a,b){g.aw(a.info.u.info)||a.info.u.info.Zd();a.D=b;if(g.aw(a.info.u.info)){for(var c=Yv(a),d=a.info.u.u,e=NaN,f=NaN,h=0;hv(c,h);){var l=iv(c,h);isNaN(e)&&(1936286840===l.type?e=l.data.getUint32(l.dataOffset+8):1836476516===l.type&&(e=ev(l)));if(1952867444===l.type){!e&&d&&(e=fv(d));var m=kv(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=jv(l.type)?h+8:h+l.size}return!0}c=new qv(Yv(a));e=a.C?c:new qv(new DataView(a.info.u.u.buffer));d=b;f=Jv(e);e=c.u;c.u=0;if(Kv(c)&&vv(c,231))if(h=wv(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};
ew=function(a){g.aw(a.info.u.info)||a.info.u.info.Zd();if(a.B&&6==a.info.type)return a.B.kh;if(g.aw(a.info.u.info)){var b=Yv(a);var c=0;b=ov(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=lv(d.value),c+=d.lw[0]/d.ow;c=c||NaN;if(!(0<=c))a:{c=Yv(a);b=a.info.u.u;for(var e=d=0,f=0;hv(c,d);){var h=iv(c,d);if(1836476516===h.type)e=ev(h);else if(1836019558===h.type){!e&&b&&(e=fv(b));if(!e){c=NaN;break a}var l=gv(h.data,h.dataOffset,1953653094),m=e,n=gv(l.data,l.dataOffset,1952868452);l=gv(l.data,
l.dataOffset,1953658222);var p=Wu(n);Wu(n);p&2&&Wu(n);n=p&8?Wu(n):0;var r=Wu(l),t=r&1;p=r&4;var w=r&256,y=r&512,x=r&1024;r&=2048;var B=Xu(l);t&&Wu(l);p&&Wu(l);for(var E=t=0;E<B;E++){var G=w?Wu(l):n;y&&Wu(l);p&&0===E||!x||Wu(l);r&&Wu(l);t+=G}f+=t/m}d=jv(h.type)?d+8:d+h.size}c=f||NaN}}else c=new qv(Yv(a)),b=a.C?c:new qv(new DataView(a.info.u.u.buffer)),c=nfa(c,Jv(b));return c||a.info.P};
fw=function(a){var b=Yv(a);var c=(c=g.cv(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.cv(b,0,1836476516))?ev(b):a?fv(a):NaN);return c};
gw=function(a){if(!a.B){g.aw(a.info.u.info)||a.info.u.info.Zd();if(g.aw(a.info.u.info)){var b=Yv(a),c=gv(b,0,1701671783);if(c){var d=mv(c);var e=d.B;d=bv(d.u);if(b=gv(b,c.offset+c.size,1701671783))if(b=mv(b),b=bv(b.u),d&&b){c=g.q(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new Au(d,e):null}else e=null}else{e=new qv(Yv(a));d=e.u;e.u=0;c=b=null;if(tv(e,[408125543,307544935,29555,26568]))for(f=uv(e);!rv(f);){var h=wv(f,!1);17543===h?c=bv(Fv(f)):17827===h?b=Fv(f):Bv(f)}e.u=
d;e=c?new Au(c,b):null}a.B=e}};
iw=function(a){a=a.split("");hw.bS(a,49);hw.O2(a,3);hw.bS(a,10);hw.O2(a,1);return a.join("")};
jw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Is(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
lw=function(a,b,c){return b&&b.test(a)||kw&&c&&c.test(a)?!0:!1};
nw=function(a){return(a=mw&&mw.exec(a))?a[0]:""};
ow=function(a){var b=void 0===b?!1:b;return jw(lw(a,ofa,pfa),a,b,"Trusted Stream URL")};
g.pw=function(a){var b=void 0===b?!1:b;return jw(lw(a,qfa,rfa),a,b,"Trusted Image URL")};
qw=function(a){var b=void 0===b?!1:b;return jw(lw(a,sfa,null),a,b,"Trusted Promoted Video Domain URL")};
ufa=function(a){var b=void 0===b?!1:b;return jw(lw(a,tfa,null),a,b,"Drm Licensor URL")};
rw=function(a,b){b=void 0===b?!1:b;return jw(lw(a,vfa,wfa),a,b,"Captions URL")};
tw=function(a){a=new g.Qm(a);g.Rm(a,document.location.protocol);g.Sm(a,document.location.hostname);document.location.port&&g.Tm(a,document.location.port);return a.toString()};
uw=function(a){a=new g.Qm(a);g.Rm(a,document.location.protocol);return a.toString()};
vw=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
xw=function(a){ww(a);return a.C};
yw=function(a){return a.B?nc(a.B,"local"):"local"===a.scheme};
zw=function(a){ww(a);return g.Ib(a.u,function(b){return null!==b})};
Aw=function(a){ww(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.Ld();b=new g.Qm(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.Sm(b,"r"+d+"---"+a[1]+c),b=new vw(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.Sm(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Sm(b,"www.youtube.com"),c=b.toString()):c=tw(c);b=new vw(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
ww=function(a){if(a.B){if(!ow(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.Ym(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=Bw(c);g.Ua(a.u,
Cw(b.C.toString()));g.Ua(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))}};
xfa=function(a){ww(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(zw(a)){var c=[];g.Eb(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Bw=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Dw(c,a[b],a[b+1]);return c};
Cw=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Dw(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Dw=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};
Ew=function(a){this.og=a;this.u={};this.url=""};
Fw=function(a,b){var c=b.indexOf("?");if(0<c){var d=Cw(b.substr(c+1));g.Eb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=Bw(b);g.Eb(c,function(e,f){this.set(f,e)},a)};
yfa=function(a){var b=a.og.Ld(),c=[];g.Eb(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=zw(a.og)?"&":"?";return b+a+d};
Gw=function(a,b){var c=new vw(b),d=c.get("req_id");d&&a.set("req_id",d);g.Eb(a.u,function(e,f){c.set(f,null)});
return c};
Hw=function(){this.u=.125;this.B=!1;this.C=0;this.rf=!1};
Iw=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Ui?!1:c.Ui;var e=new Hw;e.B=a.ba("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.P(a.experiments,"html5_time_based_consolidation_ms");a.ba("html5_resume_streaming_requests")&&(e.u=0);e.rf=d||c;return e};
g.Jw=function(){this.D=new Hw;this.pB=this.oB=!1;this.AI=2;this.I=20971520;this.K=8388608;this.F=120;this.Ob=3145728;this.X=62914560;this.Ub=10485760;this.KI=this.hB=this.ng=0;this.GC=!1;this.zb=NaN;this.Hn=0;this.Ks=this.fE=2;this.An=3;this.vB=2;this.Y=2097152;this.uB=1048576;this.ma=!1;this.zn=1800;this.vI=5;this.Kg=10;this.P=15;this.ce=1;this.u=1.15;this.B=1.05;this.kB=!0;this.fa=!1;this.wB=.8;this.tv=this.kb=!1;this.Ja=6;this.sH=this.Aa=!1;this.Gn=.5;this.Nb=0;this.Is=this.Zb=!1;this.Ql=this.Jg=
0;this.NB=2;this.Ta=5E3;this.uu=6;this.za=!1;this.R=.5;this.Cc=2;this.kc=this.HB=0;this.IB=1.5;this.JB=this.En=.5;this.Ne=15;this.sI=1;this.yB=this.lB=this.wi=!1;this.yI=0;this.lu=this.Fj=this.FB=this.sB=this.gH=this.Rl=this.rB=this.nB=!1;this.Sl=0;this.zB=this.aI=this.DB=this.fd=!1;this.Hg=0;this.Dc=this.Qa=this.Gu=this.gE=this.yn=this.ia=this.GB=this.Lg=this.BB=!1;this.ha=!0;this.xi=this.aa=this.qB=this.zl=!1;this.Mt=!0;this.Bn=!1;this.C="";this.Dn=!1;this.qL=1048576;this.bH=this.jB=this.Qc=this.zh=
!1;this.Ig=46800;this.Ya=this.ut=this.Js=this.ke=this.Oe=!1;this.FD=!0;this.Bt=this.Ps=this.tB=this.xB=this.Fn=this.Ns=this.Ls=this.EB=!1;this.Ga=0;this.tu="";this.Us=this.Ms=!1;this.ub=!0;this.Gp=this.iB=this.qv=this.PC=this.Tl=!1;this.sf=0;this.NH=this.Cn=!1};
zfa=function(a,b){1080<b.Ma().Fc&&!a.oB&&(a.I=36700160,a.K=5242880,a.Ob=10485760,a.Y=4194304,a.oB=!0);2160<b.Ma().Fc&&!a.pB&&(a.I=104857600,a.zb=13107200,a.pB=!0);a.uB=Math.max(65536,Math.min(a.Y,5*b.zb))};
Afa=function(){this.C=this.u=this.B=this.started=this.D=0};
Bfa=function(a){a.D=(0,g.N)();a.started+=1};
Kw=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
Lw=function(a,b){a[b]||(a[b]=new Afa);return a[b]};
Cfa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
Nw=function(a,b,c){var d=Lw(c,xw(a.u));if(d.B>=b.NB||1<=d.u)if(a=Mw(a),c=Lw(c,xw(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
Dfa=function(a,b){var c=b?Mw(a):a.u;return new Ew(c)};
Mw=function(a){a.C||(a.C=Aw(a.D));return a.C};
Ow=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.N)():!0};
g.Pw=function(a,b,c){b.og===a.u&&(a.u=Gw(b,c));b.og===a.C&&(a.C=Gw(b,c))};
Qw=function(a,b){this.B=a[0].u.B;this.C=b||"";this.F="";this.u=a;this.range=this.u[0].range&&0<this.u[0].rb?gfa(this.u):null;this.D=this.wf=NaN;this.I=this.requestId=null};
Rw=function(a){return!Ju(a.u[a.u.length-1])};
Sw=function(a){return 4==a.u[a.u.length-1].type};
g.Tw=function(a,b,c){if(a.F){var d=new Ew(new vw(a.F));a.C&&Fw(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new Ew(new vw(a.C)):(b=null===a.I?Nw(a.B,b,c):a.I,d=Dfa(a.B,b),a.C&&Fw(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.wf)||d.set("headm",a.wf.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.K&&g.Eb(a.K,function(e,f){d.set(f,e)});
return d};
Uw=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.P*a.u.info.zb)};
Vw=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=Fu(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=Fu(0,4096)}else if(e.u.info.video)return null;c=new Iu(5,e.u,d,"createProbeRequestInfo_"+e.R,e.B);a=new Qw([c],a.C);a.I=b;return a};
Ww=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Zw=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||Xw(a,b);this.Fc=g.Yw[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.Yw[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};
$w=function(a){return 1280<=a.width||720<=a.height};
Xw=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=ax[0],f=0;f<ax.length;f++){var h=ax[f],l=g.Yw[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
dx=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.u=void 0===e?null:e;this.Ud=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.D=!0;this.B=null;this.containerType=bx(b);this.zb=h||0;this.C=l||0;this.Db=cx[this.Yb()]||""};
ex=function(a){return 0<a.id.indexOf(";")?a.id.split(";")[1]:null};
fx=function(a){return"9"===a.Db||"("===a.Db||"9h"===a.Db||"(h"===a.Db};
gx=function(a){return"9h"===a.Db||"(h"===a.Db};
hx=function(a){return"1"===a.Db};
g.aw=function(a){return 1===a.containerType};
ix=function(a){return"application/x-mpegURL"===a.mimeType};
jx=function(a){return a.includes("vtt")||a.includes("text/mp4")};
bx=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};
Mx=function(a,b,c,d,e){var f=new Ww;b in g.Yw||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.Yw[b],d=Math.round(16*e/9));d=new Zw(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new dx(c,a,f,d)};
Nx=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.D=!1;this.F=null;this.P=0;this.B=new Cfa(a);this.C=null;this.X=NaN;this.K=null};
g.Ox=function(){this.segments=[]};
Px=function(a,b){if(b>a.Xb())a.segments=[];else{var c=eb(a.segments,function(d){return d.qb>=b},a);
0<c&&a.segments.splice(0,c)}};
Qx=function(a,b,c,d,e,f){f=void 0===f?0:f;Nx.call(this,a,b,d);this.index=e||new g.Ox;this.kh=f;this.Y=c;this.R=!0;if(this.I=!c)this.D=!0};
g.Rx=function(){this.count=0;this.C=1;this.B=!1;this.offsets=new Float64Array(128);this.u=new Float64Array(128)};
Sx=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
Tx=function(a,b,c,d,e,f){Nx.call(this,a,b,c||void 0,d||void 0);this.R=null;this.index=new g.Rx;this.I=e;this.lastModified=f};
Ux=function(a,b,c,d){for(var e=[];b<=a.index.Xb();b++){var f=a.index,h=b;f=Fu(f.Wu(h),h+1<f.count||f.B?f.offsets[h+1]-f.offsets[h]:-1);h=a.index.Xe(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.Xb()&&m+n==f.length;e.push(new Iu(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new Qw(e)};
Wx=function(){void 0===Vx&&(Vx=g.jo());return Vx};
Xx=function(){var a=Wx();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
Yx=function(a){var b=Wx();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
Zx=function(a){return Xx()[a]||0};
$x=function(){var a=Xx();return Object.keys(a)};
ay=function(a){var b=Xx();return Object.keys(b).filter(function(c){return b[c]===a})};
by=function(a,b,c){c=void 0===c?!1:c;var d=Xx();if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];Yx(d)};
Efa=function(a){var b=Xx();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);Yx(b);JSON.stringify(b);return b};
cy=function(a){return!!a&&1===Zx(a)};
Ffa=function(){var a=Wx();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
hy=function(){return We(this,function b(){var c,d,e,f;return xa(b,function(h){if(1==h.u){c=Wx();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(dy){h.u=2;return}d=Kq().u(ey);var l=Object.assign({},d);delete l.Authorization;var m=Dl();if(m){var n=new ln;n.update(g.L("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.sf(n.digest(),3)}m=new ln;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;n<l.length;n++)m+="0123456789ABCDEF".charAt(Math.floor(l[n]/16))+"0123456789ABCDEF".charAt(l[n]%
16);e=m;f=c.get("yt-player-lv-id");if(!f){c.set("yt-player-lv-id",e);h.u=2;return}if(f===e){h.u=2;return}return sa(h,fy(),5)}2!=h.u&&(c.set("yt-player-lv-id",e),dy=!0);return h["return"](gy().open())})})};
iy=function(a,b){var c=IDBKeyRange.bound(b+"|",b+"~");return yea(Sr(a,"index"),c).then(function(d){return d.map(function(e){return e?e.fmts:""}).join(",")})};
Gfa=function(){return We(this,function b(){var c;return xa(b,function(d){c=gy();return d["return"](c["delete"]())})})};
jy=function(a,b){return We(this,function d(){var e;return xa(d,function(f){if(1==f.u)return sa(f,hy(),2);e=f.B;return f["return"](yr(e,["index","media","metadata","playerdata"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");l=[Sr(h,"index")["delete"](l),Sr(h,"media")["delete"](l),Sr(h,"playerdata")["delete"](l)];b&&l.push(Sr(h,"metadata")["delete"](a));return qs.all(l).then(function(){})}))})})};
Ifa=function(){return We(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,hy(),2);c=d.B;return d["return"](yr(c,["index","media"],"readwrite",function(e){var f={};return Xr(Sr(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=qs.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=ky(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h["delete"]().then(function(){}),Hfa("Deleting unexpected index key "+h.getKey());
return qs.all([h["continue"](),n]).then(function(r){return g.q(r).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=Efa(h);return zea(Sr(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||(Sr(e,"media")["delete"](r.getKey()),r.getKey());return r["continue"]()}).then(function(){return p})})}))})})};
Jfa=function(a,b,c){We(this,function e(){var f;return xa(e,function(h){if(1==h.u)return sa(h,hy(),2);f=h.B;return h["return"](yr(f,["index","media"],"readwrite",function(l){var m={},n=b;return Xr(Sr(l,"index"),{},function(p){var r,t=p.getKey().match(/^([\w\-_]+)\|(a|v)$/);if(t){t=t[1];var w=(null===(r=p.getValue())||void 0===r?void 0:r.fmts)||"";w=Yp(w);!m[t]&&0<w.length&&(w=+w[0].mket,isNaN(w)||(m[t]=w,n+=w))}return p["continue"]()}).then(function(){for(var p=$x(),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(Sr(l,"index")["delete"](w));r.push(Sr(l,"media")["delete"](w));by(t,0)}}return qs.all(r).then(function(){})})}))})})};
Kfa=function(a,b){return We(this,function d(){var e,f;return xa(d,function(h){if(1==h.u)return sa(h,hy(),2);e=h.B;f={offlineVideoData:b};return sa(h,Tr(e,"metadata",f,a),0)})})};
Lfa=function(a,b){var c=Math.floor(Date.now()/1E3);We(this,function e(){var f,h;return xa(e,function(l){if(1==l.u)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},sa(l,hy(),2);h=l.B;return sa(l,Tr(h,"playerdata",f,a),0)})})};
my=function(a,b,c,d,e){return We(this,function h(){var l,m,n,p;return xa(h,function(r){switch(r.u){case 1:return l=Zx(a),4===l?r["return"](Promise.resolve(4)):sa(r,hy(),2);case 2:return m=r.B,r.C=3,sa(r,yr(m,["index","media"],"readwrite",function(t){if(void 0!==d&&void 0!==e){var w=""+a+"|"+b.id+"|"+d;w=Rr(Sr(t,"media"),e,w)}else w=qs.resolve(void 0);var y=ly(a,b.isVideo()),x=ly(a,!b.isVideo()),B={fmts:c};y=Rr(Sr(t,"index"),B,y);var E=ky(c);t=E?Sr(t,"index").get(x):qs.resolve(void 0);return qs.all([t,
w,y]).then(function(G){G=g.q(G).next().value;var K=Zx(a);4!==K&&E&&void 0!==G&&ky(G.fmts)&&(K=1,by(a,K));return K})}),5);
case 5:return r["return"](r.B);case 3:n=ua(r);p=Zx(a);if(4===p)return r["return"](p);by(a,4);throw n;}})})};
Mfa=function(a){return We(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,hy(),2);d=e.B;return e["return"](yr(d,["index"],"readonly",function(f){return iy(f,a)}))})})};
Nfa=function(a,b,c){return We(this,function e(){var f;return xa(e,function(h){if(1==h.u)return sa(h,hy(),2);f=h.B;return h["return"](yr(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return Sr(l,"media").get(m)}))})})};
Ofa=function(a){return We(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,hy(),2);d=e.B;return e["return"](d.get("playerdata",a))})})};
Pfa=function(a){return We(this,function c(){var d,e,f,h;return xa(c,function(l){return 1==l.u?sa(l,hy(),2):3!=l.u?(d=l.B,e=[],f=[],h=[],sa(l,yr(d,["metadata"],"readonly",function(m){return Xr(Sr(m,"metadata"),{},function(n){var p,r,t=n.getKey(),w=null===(p=n.getValue())||void 0===p?void 0:p.offlineVideoData;if(!w)return n["continue"]();if(t===a){if(t=null===(r=w.thumbnail)||void 0===r?void 0:r.thumbnails){t=g.q(t);for(var y=t.next();!y.done;y=t.next())y=y.value,y.url&&e.push(y.url)}f.push.apply(f,
g.ma(ny(w)))}else h.push.apply(h,g.ma(ny(w)));return n["continue"]()})}),3)):l["return"](e.concat(f.filter(function(m){return!h.includes(m)})))})})};
ny=function(a){var b,c,d,e=null===(d=null===(c=null===(b=a.channel)||void 0===b?void 0:b.offlineChannelData)||void 0===c?void 0:c.thumbnail)||void 0===d?void 0:d.thumbnails;if(!e)return[];a=[];e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.url&&a.push(f.url);return a};
Qfa=function(a){return We(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,hy(),2);d=e.B;return e["return"](yr(d,["index","metadata"],"readonly",function(f){return oy(f,a)}))})})};
Rfa=function(){return We(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,hy(),2);c=d.B;return d["return"](yr(c,["index","metadata"],"readonly",function(e){return qs.all($x().map(function(f){return oy(e,f)}))}))})})};
oy=function(a,b){var c=Sr(a,"metadata").get(b);return iy(a,b).then(function(d){var e={videoId:b,totalSize:0,downloadedSize:0,status:Zx(b),videoData:null};if(d.length){d=Yp(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.videoData=(null===h||void 0===h?void 0:h.offlineVideoData)||null;return e})})};
Sfa=function(a){return We(this,function c(){return xa(c,function(d){by(a,0);return d["return"](jy(a,!0))})})};
fy=function(){return We(this,function b(){var c;return xa(b,function(d){c=Wx();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=Wx();e&&e.remove("yt-player-lv");return sa(d,Gfa(),0)})})};
ky=function(a){return!!a&&-1===a.indexOf("dlt")};
ly=function(a,b){return""+a+"|"+(b?"v":"a")};
Hfa=function(){};
py=function(){var a=this;this.u=this.B=iaa;this.promise=new rm(function(b,c){a.B=b;a.u=c})};
Tfa=function(a,b){this.K=a;this.u=b;this.F=a.qL;this.I=new Uint8Array(this.F);this.D=this.C=0;this.B=null;this.R=[];this.X=this.Y=null;this.P=new py};
Ufa=function(a){var b=qy(a);b=my(a.K.C,a.u.info,b);ry(a,b)};
sy=function(a){return!!a.B&&a.B.F};
uy=function(a,b){if(!sy(a)){if(1==b.info.type)a.Y=Fu(0,b.u.getLength());else if(2==b.info.type){if(!a.B||1!=a.B.type)return;a.X=Fu(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.B.type&&!Lu(a.B,b.info)&&(a.R=[],b.info.B!=Nu(a.B)||0!=b.info.C))return;if(b.info.D)a.R.map(function(c){return ty(a,c)}),a.R=[];
else{a.R.push(b);a.B=b.info;return}}a.B=b.info;ty(a,b);Vfa(a)}};
ty=function(a,b){for(var c=0,d=Tv(b.u);c<d.length;){var e=Math.min(d.length-c,a.I.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.I.set(f,a.C);a.C+=e;c+=e;if(a.C==a.I.length){if(b.info===a.B&&sy(a)&&c===d.length)break;e=qy(a);e=my(a.K.C,a.u.info,e,a.D,a.I);ry(a,e);a.I=new Uint8Array(a.F);a.C=0;a.D+=1}}};
Vfa=function(a){if(sy(a)){var b=new Uint8Array(a.I.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?"+Wp(c);c={itag:a.u.info.Yb(),type:a.u.info.mimeType,bitrate:8*a.u.info.zb,lmt:""+a.u.lastModified,init:a.Y.toString(),index:a.X.toString(),mket:Math.round(a.u.index.Nk()).toString(),avbr:Math.round(a.u.info.C).toString(),url:c};var d=ex(a.u.info);d&&(c.xtags=d);c=Wp(c);b=my(a.K.C,
a.B.u.info,c,a.D,b);ry(a,b,!0)}};
qy=function(a){var b={itag:a.u.info.Yb(),dlt:Math.round(a.B?a.B.I:0),mket:Math.round(a.u.index.Nk()),avbr:Math.round(a.u.info.C),csz:a.F,lmt:a.u.lastModified};(a=ex(a.u.info))&&(b.xtags=a);return Wp(b)};
ry=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)})};
Wfa=function(a,b){this.B=a;this.K=this.I=!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].rb||(this.B[0].rb=this.length):1===this.B.length||g.qh(this.B,function(c){return!!c.range})};
Xfa=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
vy=function(a,b){this.state=1;this.info=a;this.I=!1;this.callback=b;this.mk=0;this.Oo=!1;this.le=null};
wy=function(a){return g.qh(a.info.u,function(b){return 3==b.type})};
yy=function(a,b){a.state=b;a.Iz(b)};
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=ov(a,1886614376);g.Cb(a,function(b){return!b.B});
return g.Oc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
$fa=function(a){var b=g.rh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Cb(a,function(e){c.set(e,d);d+=e.length});
return c};
aga=function(a,b){this.ids=a;this.u=b};
zy=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Zd=!1};
Ay=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 ff(b.subarray(c+f,c+f+l)),n=new po;for(f=m;gf(f)&&4!=f.B;)switch(f.C){case 2:var p=kf(f),r=p;g.Kf(n,2).push(r);break;case 4:p=kf(f);g.Mf(n,4,p);break;case 7:p=ef(f.u);g.Mf(n,7,p);break;case 9:p=ef(f.u);g.Mf(n,9,p);break;case 10:p=ef(f.u);
g.Mf(n,10,p);break;case 11:p=df(f.u);g.Mf(n,11,p);break;case 12:p=ef(f.u);g.Mf(n,12,p);break;case 13:r=p=kf(f);g.Kf(n,13).push(r);break;case 14:p=new qo;r=f;var t=p,w=Rda,y=r.u.C,x=ef(r.u),B=r.u.u+x;r.u.C=B;w(t,r);r.u.u=B;r.u.C=y;r=n;t=p;w=qo;var E=g.Of(r,w,14),G=t?t:new w;var K=g.Kf(r,14);E.push(G);K.push(G.Mf);break;case 15:p=jf(f);g.Mf(n,15,p);break;case 16:p=jf(f);g.Mf(n,16,p);break;case 1:p=df(f.u);g.Mf(n,1,p);break;case 3:p=jf(f);g.Mf(n,3,p);break;case 5:p=jf(f);g.Mf(n,5,p);break;case 6:p=jf(f);
g.Mf(n,6,p);break;case 8:p=kf(f);g.Mf(n,8,p);break;default:hf(f)}f=n;if(null!==f){var H=f;break a}}catch(ya){}}c+=e}H=null}catch(ya){H=null}}if(null!=H)for(b=g.Kf(H,7),null==b||a.Zd||(a.cryptoPeriodIndex=b),b=g.Kf(H,10),null!=b&&0<b&&!a.Zd&&(a.u=b),H=g.Kf(H,2),H=!H.length||H[0]instanceof Uint8Array?H:g.Oc(H,Uaa),H=g.q(H),b=H.next();!b.done;b=H.next())a.B.push(g.sf(b.value,4))};
By=function(a){this.u=a;this.offset=0};
Cy=function(a){if(a.offset>=a.u.getLength())throw Error();return Vv(a.u,a.offset++)};
Dy=function(a,b){b=void 0===b?!1:b;var c=Cy(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=Cy(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+Cy(a),d*=128;return b?c:c-d};
Ey=function(a,b,c){g.O.call(this);var d=this;this.D=a;this.B=[];this.u=null;this.Y=-1;this.R=0;this.ia=NaN;this.P=0;this.C=b;this.Ta=c;this.F=NaN;this.Aa=0;this.Ja=-1;this.I=this.X=this.Ga=this.aa=this.ha=this.K=this.fa=null;this.D.C&&(this.I=new Tfa(this.D,this.C),this.I.P.promise.then(function(e){d.I=null;1==e&&d.V("localmediachange",e)},function(){d.I=null;
d.V("localmediachange",4)}),Ufa(this.I));
this.Qa=!1;this.ma=0};
Fy=function(a){return a.B.length?a.B[0]:null};
Gy=function(a){return a.B.length?a.B[a.B.length-1]:null};
Ny=function(a,b,c){if(a.ha){if(a.D.Ms){var d=a.ha;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||fe(d.K,e.K)&&d.B===e.B?!1:Mu(d,e)}else d=Mu(a.ha,c.info);d||(a.F=NaN,a.Aa=0,a.Ja=-1)}a.ha=c.info;a.C=c.info.u;0==c.info.C?Hy(a):!a.C.tf()&&a.K&&Pu(c.info,a.K);a.u?(c=$v(a.u,c),a.u=c):a.u=c;a:{c=g.aw(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?Iy(a,b,a.u):Jy(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.Y&&0==a.R){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=Wv(f,l),n=Wv(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 By(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=Dy(p,!0),t=Dy(p,!1);var w=r;var y=t}catch(B){y=w=-1}p=w;var x=y;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=x&&(e=f.offset+x,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+x);if(160===p){0>h&&(e=h=f.offset+x);break}f.skip(x)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.R=
e-h}if(a.Y>d)break;a.Y?(d=Ky(a,a.Y),d.C&&!a.C.tf()&&Ly(a,d),Iy(a,b,d),My(a,d),a.Y=0):a.R&&(d=Ky(a,0>a.R?Infinity:a.R),a.R-=d.u.getLength(),My(a,d))}}a.u&&a.u.info.D&&(My(a,a.u),a.u=null)};
Jy=function(a,b){!a.C.tf()&&0==b.info.C&&(g.aw(b.info.u.info)||b.info.u.info.Zd())&&gw(b);if(1==b.info.type)try{Ly(a,b),Oy(a,b)}catch(d){M(d);var c=Ou(b.info);c.hms="1";a.V("error",c||{})}b.info.u.gu(b);a.I&&uy(a.I,b)};
cga=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};
Py=function(a){return g.Oc(a.B,function(b){return b.info})};
Ky=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.rb);var e=c.u.split(d),f=e.iu;e=e.ln;var h=new Iu(c.info.type,c.info.u,c.info.range,c.info.R,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new Xv(h,f,c.C);c=new Iu(c.info.type,c.info.u,c.info.range,c.info.R,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.rb-d,c.info.F,c.info.D);c=new Xv(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
Ly=function(a,b){b.u.getLength();var c=Yv(b);if(!a.D.sB&&gx(b.info.u.info)&&"bt2020"===b.info.u.info.Ma().primaries){var d=new qv(c);tv(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.u,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;fx(d)&&!gx(d)&&(d=Yv(b),zv(new qv(d)),yv([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.C&&(g.aw(d.info)?d.C=jfa(c):d.info.Zd()&&(d.C=lfa(c))));
b.info.u.info.Zd()&&b.info.isVideo()&&(c=Yv(b),zv(new qv(c)),yv([408125543,374648427,174,224],30320,c)&&yv([408125543,374648427,174,224],21432,c));if(a.D.Cn&&b.info.u.info.Zd()){c=Yv(b);var e=new qv(c);if(tv(e,[408125543,374648427,174,29637])){d=wv(e,!0);e=e.start+e.u;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.C.info.audio&&g.aw(b.info.u.info)){d=Yv(b);c=g.cv(d,0,1701606260);f=g.cv(d,0,1836476516);if(c&&f){c.skip(2);var h=Vu(c),l=Xu(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<
l;++h)d.push(Yu(c)),e.push(Yu(c)),m.push(Vu(c)),n.push(Vu(c));else for(h=0;h<l;++h)d.push(Wu(c)),e.push(Wu(c)),m.push(Vu(c)),n.push(Vu(c));c=ev(f);c=new ifa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.aw(b.info.u.info))for(d=Yv(b),e=g.cv(d,0,1701082227);e;)e.markAsSkip(),e=g.cv(d,e.offset+e.size,1701082227);a.Qa=!0;b.info.u.K=c}}a.C.tf()||b.info.u.u||b.info.u.indexRange||(g.aw(b.info.u.info)?(c=Yv(b),(d=gv(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=mfa(new qv(Yv(b))),c&&(b.info.u.u=c))};
Iy=function(a,b,c){if(a.C.tf()){if(a.Qa&&a.C.tf()&&c.info.B==c.info.u.index.Xb()&&(b=Yv(c),b=g.cv(b,0,1953658222))){b.skip(1);var d=Uu(b)<<16|Vu(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=Xu(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=Xu(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.fa&&!!a.fa.C.K)if(b=c.info.isVideo())b=fw(c),h=a.fa,Qy?(l=1/b,b=Ry(a,b)>=Ry(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.C.tf()&&c.info.B==c.info.u.index.Xb()&&
(b=a.fa,Qy?(l=fw(c),h=1/l,l=Ry(a,l),b=Ry(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,dv(Yv(c),b))}else{h=!1;a.K||(gw(c),c.B&&(a.K=c.B,h=!0,Pu(c.info,c.B),e=c.info.u.info,d=Yv(c),g.aw(e)?nv(d,1701671783):e.Zd()&&yv([408125543],307544935,d)));if(d=e=ew(c))d=c.info.u.info.Zd()&&160==Vv(c.u,0);if(d)a.P+=e,a.F=l+e;else{if(a.D.DB){if(l=f=a.Ta(bw(c),1),0<=a.F&&6!=c.info.type){f-=a.F;var n=f-a.Aa;d=c.info.B;var p=c.info.K,r=a.aa?a.aa.B:-1,t=a.aa?a.aa.K:-1,w=a.aa?a.aa.duration:-1;m=a.D.Hg&&
f>a.D.Hg;var y=a.D.sf&&n>a.D.sf;1E-4<Math.abs(n)&&(a.D.aI&&a.V("avsyncissue",{audio:""+ +!!a.C.info.audio,sq:d.toFixed(),sliceStart:p,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*n).toFixed(),skipRewrite:""+(+m||y)}),a.Ja=d);n=0;a.D.zB&&(m||y||(l=a.F),a.D.BB&&a.fa&&!a.C.info.audio&&g.aw(c.info.u.info)&&(y=a.fa,m=y.Ja,y=y.Aa,p=.02<Math.abs(y-f),(d==m||d>m&&d>a.Ja)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(y-f))/e)),dv(Yv(c),d),d=ew(c),n=e-d,e=d)));
a.Aa=f+n}}else isNaN(a.F)?f=c.info.startTime:f=a.F,l=f;cw(c,l)?(isNaN(a.ia)&&(a.ia=l),a.P+=e,a.F=l+e):(l=Ou(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=Sy(a,!0);Qu(c.info,h);a.u&&Qu(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())Qu(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.X=h,a.V("placeholderinfo",h),Ty(a))}}Oy(a,c);a.ma&&dw(c,a.ma);a.aa=c.info};
My=function(a,b){if(b.info.D){a.Ga=b.info;if(a.K){var c=Sy(a,!1);a.V("segmentinfo",c);a.X||Ty(a);a.X=null}Hy(a)}a.I&&uy(a.I,b);if(c=Gy(a))if(c=$v(c,b,a.D.Ls)){a.B.pop();a.B.push(c);return}a.B.push(b)};
Hy=function(a){a.u=null;a.Y=-1;a.R=0;a.K=null;a.ia=NaN;a.P=0;a.X=null};
Oy=function(a,b){if(a.C.info.Ud){if(b.info.u.info.Zd()){var c=new qv(Yv(b));if(tv(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=wv(c,!0);c=16!==d?null:Dv(c,d)}else c=null;d="webm"}else b.info.X=Zfa(Yv(b)),c=$fa(b.info.X),d="cenc";c&&c.length&&(c=new zy(c,d),c.Zd=b.info.u.info.Zd(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.D.Ps&&b.B&&b.B.D&&(c.u=b.B.D),a.V("needkeyinfo",c))}};
Ty=function(a){var b=a.K,c;b.data["Cuepoint-Type"]?c=new yu(Uy?Number(b.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0),Number(b.data["Cuepoint-Total-Duration-Sec"])||0,b.data["Cuepoint-Context"],b.data["Cuepoint-Identifier"]||"",dga[b.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.ia,a.V("cuepoint",c,b.u))};
Sy=function(a,b){var c=a.K;if(c.data["Stitched-Video-Id"]||c.data["Stitched-Video-Duration-Us"]||c.data["Stitched-Video-Start-Frame-Index"]||c.data["Serialized-State"]){var d=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.data["Stitched-Video-Duration-Us"])for(var f=g.q(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((Number(h.value)||0)/1E6);e=[];if(c.data["Stitched-Video-Start-Frame-Index"])for(f=
g.q(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push(Number(h.value)||0);d=new aga(d,c.data["Serialized-State"]?c.data["Serialized-State"]:"")}return new Cu(c.u,a.ia,b?c.kh:a.P,c.ingestionTime,"sq/"+c.u,void 0,void 0,b,d)};
Ry=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ma*b)/b:a.ma;a.C.K&&c&&(c+=a.C.K.u);return c+a.getDuration()};
Vy=function(a,b){0>b||(a.B.forEach(function(c){return dw(c,b)}),a.ma=b)};
Wy=function(a,b,c){var d=this;this.fl=a;this.ie=b;this.loaded=this.status=0;this.error="";a=Eu(this.fl.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new Mv;ega(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
ega=function(a){return We(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,y,x,B;return xa(c,function(E){if(1==E.u){d.status=200;e=d.fl.get("docid");f=nd(d.fl.get("fmtid")||"");h=+(d.fl.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?E=sa(E,Nfa(e,f,p),5):(E.u=0,E=void 0),E;r=E.B;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;y=Math.max(0,l.start-t);x=Math.min(l.end+1,w)-(y+t);B=
new Uint8Array(r.buffer,y,x);d.u.append(B);d.loaded+=x;d.loaded<l.length&&d.ie(g.A(),d.loaded);p++;E.u=2})})};
fga=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
Yy=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.Ng?!1:e.Ng;var f=void 0===e.aj?!1:e.aj,h=void 0===e.Fm?!1:e.Fm,l=e.dj,m=e.qb;e=e.wf;this.ha=null;this.fa=this.u=NaN;this.Ub=0;this.Y=this.ia=this.B=this.D=NaN;this.Aa=this.ma=this.isActive=!1;this.C=0;this.aa=NaN;this.R=this.I=Infinity;this.X=NaN;this.Ob=!1;this.K=this.P=NaN;this.F=this.za=void 0;this.Ng=d;this.aj=f;this.Fm=h;this.dj=l;this.qb=m;this.wf=e;this.schedule=a;this.Ja=b;this.Ga=c;this.snapshot=Xy(this.schedule)};
Zy=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.aa).toFixed(),pb:a.Ja.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.fa-a.u).toFixed(),elbowBytes:a.Ub.toFixed()}};
gga=function(a){a.u=g.A();a.D=a.u;a.B=0;a.ia=a.u;a.Y=0;a.F&&(a.F=[]);a.ma=!1;a.Aa=!1;a.C=0;a.snapshot=Xy(a.schedule);a.I=Infinity;a.R=Infinity;$y(a);az(a,a.u);a.aa=(a.P-a.u)/1E3;a.K=NaN;a.za=void 0};
bz=function(a){!a.K&&a.ha&&(a.K=a.ha(),3===a.K&&(a.za=new fga(a.schedule)));return a.K};
hz=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=bz(a);if(3===h&&f){var l=a.za;l.B.push({e5:f,w5:isNaN(l.u)?NaN:d-l.u,o5:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&fz(a,.05,f)):fz(a,e,f),a.Aa=!0):cz(a,c)&&(1===h&&(d=(b-a.u)/1E3,dz(a)||a.aj||ez(a.schedule,d)),a.fa=b,a.Ub=c,a.isActive=!0);a.aj||gz(a.schedule,e,f);a.D=b;a.B=c};
fz=function(a,b,c){if(!a.aj){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Fm;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.I=iz())}};
kz=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(jz(b-a.ia,c-a.Y));a.ia=b;a.Y=c};
cz=function(a,b){return b?a.dj&&1!==bz(a)?!0:2048<=b:!1};
lz=function(a){return cz(a,a.B)};
$y=function(a){a.X=a.u+1E3*a.snapshot.delay;a.Ob=!1};
nz=function(a,b){if(a.dj&&void 0!==a.qb&&void 0!==a.wf){var c=Math,d=c.min,e=a.I;var f=a.dj;var h=a.u;if(mz(f,a.qb))f=b;else{var l=0;f.rf&&(l=.2);f=h+1E3*(f.Qf+l)}a.I=d.call(c,e,f);c=Math;d=c.min;e=a.R;f=a.dj;h=a.u;l=hga(f,a.qb,a.wf);2===l?f=b:(h=l?b:h+1E3*f.Qf,f.rf&&(h+=1E3*f.Qf),f=h);a.R=d.call(c,e,f);a.I<=a.u?$y(a):(a.X=a.I,a.Ob=!0)}};
dz=function(a){a.dj&&nz(a,g.A());return a.Ob};
az=function(a,b){b=void 0===b?g.A():b;if(a.dj){nz(a,b);var c=a.K?a.dj?1!==bz(a):!1:a.I!==a.R;if(c){if(c=a.R,b<c){a.P=a.R;return}}else c=a.I;c=Math.max(c,a.X)}else c=a.X;var d=a.Ja-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=lz(a)?d+b:d+Math.max(b,c);a.P=d};
jz=function(a,b){for(var c="";4095<a;)c+=jz(4095,0),a-=4095;for(;4095<b;)c+=jz(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))};
oz=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
pz=function(a){if(a.nq())return!1;a=a.qe("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
qz=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.aa=b;this.Y=c;this.fa=d;this.policy=e;this.status=0;this.response=void 0;this.X=!1;this.B=0;this.R=NaN;this.aborted=this.I=this.P=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new Mv;this.id=iga++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
sz=function(a){a.C.read().then(function(b){if(!a.na()){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,rz(a)?a.u.append(e):a.F=e,a.aa(d,a.B,c),sz(a))}},function(b){a.onError(b)}).then(void 0,M)};
rz=function(a){var b=a.qe("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.rf&&pz(a)&&b};
tz=function(a,b,c,d){var e=this;this.status=0;this.na=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.ie(f)}),!1)};
vz=function(){this.C=this.u=0;this.B=Array.from({length:uz.length}).fill(0)};
wz=function(){};
xz=function(a){this.name=a;this.startTimeMs=(0,g.N)();this.u=!1};
Az=function(a,b){var c=this;return yz?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.N)();e=b.apply(c,e);zz(a,(0,g.N)()-f);return e}:b};
Bz=function(a,b){b=void 0===b?1:b;a&&(zz(a.name,(0,g.N)()-a.startTimeMs,b),a.u=!0)};
Cz=function(a,b){if(yz){var c=(0,g.N)();b();zz(a,(0,g.N)()-c)}else b()};
zz=function(a,b,c){c=void 0===c?1:c;0>b||(a in Dz||(Dz[a]=new vz),Dz[a].iH(b,c))};
Ez=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Hz=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.BG?[]:h.BG;var l=void 0===h.ds?!1:h.ds;h=void 0===h.dm?0:h.dm;vy.call(this,b,e);var m=this;this.u=a;this.timing=c;this.timing.ha=function(){var n;if(jga(m)){if(n=m.u.lu&&!(!window.performance||!window.performance.now)&&m.Ab&&m.Ab.Dm()&&m.Ab.tj())n=m.Ab,n=n.policy.rf&&pz(n);n=n?m.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.R=d;this.ds=l;this.Mr=++kga;this.B=g.Tw(this.info,this.u,this.R);this.B.set("rn",this.Mr.toString());this.B.set("rbuf",(1E3*h).toFixed().toString());this.ds&&this.B.set("smb","1");this.P=f||null;this.Oo=lga(this);this.Yg=null;this.K=this.hj=0;this.vH=!1;this.D=this.C=null;this.X=this.u.zn*(this.u.ub?Kw(Fz(this)):1);this.F=new g.F(this.JR,this.X,this);this.info.B.F=(0,g.N)();Bfa(Fz(this));gga(this.timing);try{this.Ab=mga(this),this.F.start()}catch(n){g.Fo(n),this.Yg="net.ssl",g.mm(function(){return Gz(m)})}};
Iz=function(a){var b=Zy(a.timing);b.shost=xw(a.B.og);b.rn=a.Mr.toString();a.hj&&(b.rc=a.hj.toString());b.itag=""+a.info.u[0].u.info.Yb();b.ml=""+ +a.info.u[0].u.Fe();b.sq=""+a.info.u[0].B;if(a.B){var c=a.B.og;ww(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!==a.hj&&500!==a.hj&&503!==a.hj||(b.fmt_unav="true");a.Ab&&a.Ab.Qm()&&(b.msg=a.Ab.Qm());a.ds&&(b.smb="1");a.le&&(a=a.le.u,a.length&&Zv(a[0],b));return b};
lga=function(a){if(!(Sw(a.info)&&a.info.Ng()&&a.u.wi&&a.P)||2<=a.info.B.B||Jz()||!Kz())return!1;var b=a.B.get("aitags");if(!b)return!1;var c=nd(b).split(","),d=[];g.Cb(a.P,function(e){g.jb(c,e)&&d.push(e)});
if(!d.length)return!1;a.B.set("altitags",md(d.join(",")));return!0};
Fz=function(a){return Lw(a.R,xw(a.B.og))};
oga=function(a,b){if(400<=b.status)return a.Yg="net.badstatus",6;if(!b.hu())return a.Yg=204===b.status?"net.nocontent":"net.connect",6;var c="";if(Lz(a)){var d=b.hz();2048>=d.getLength()&&(c=Tv(d),c=Su(c),c=ow(c)?c:"")}if(c){d=Fz(a);(0,g.N)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.B;g.Pw(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.Uu();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.bA())return a.Yg="net.closed",6;Mz(a,!0);if(a.u.FD&&!d&&a.le&&(d=a.le.u,d.length&&!Zv(d[0])))return a.Yg=
"net.closed",6;e=wy(a)?b.qe("X-Bandwidth-Est"):0;if(d=wy(a)?b.qe("X-Bandwidth-Est3"):0)a.vH=!0,a.u.rB&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ma){d.ma=!0;if(!d.aj){e=e>d.u&&4E12>e?e:g.A();kz(d,e,c);hz(d,e,c);var h=bz(d);if(2===h&&f)fz(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.Aa&&lz(d)&&fz(d,f,c),lz(d)&&Nz(d.schedule,c,d.C);Oz(d.schedule,(e-d.u)/1E3||.05,d.B,d.aa,d.Ng,d.Fm)}d.deactivate()}c=Fz(a);(0,g.N)();c.started=0;c.B=0;c.u=0;a.info.B.B=
0;(0,g.N)()<Pz+3E5||!a.B||yw(a.B.og)||!(c=xw(a.B.og))||0>c.indexOf("googlevideo.com")||(nga({primary:c}),Pz=(0,g.N)());return 5};
Gz=function(a){if("net.timeout"===a.Yg){var b=a.timing,c=g.A();if(!b.aj){c=c>b.u&&4E12>c?c:g.A();kz(b,c,1024*b.Y);var d=(c-b.u)/1E3;2!==bz(b)&&(lz(b)?(b.C+=(c-b.D)/1E3,Nz(b.schedule,b.B,b.C)):(dz(b)||b.aj||ez(b.schedule,d),b.fa=c));Oz(b.schedule,d,b.B,b.aa,b.Ng,b.Fm);gz(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.Yg&&("net.timeout"===a.Yg||"net.connect"===a.Yg?(b=Fz(a),b.B+=1):(b=Fz(a),b.u+=1),a.info.B.B++);yy(a,6)};
Qz=function(a){a.na();var b=Fz(a);return 100>b.B&&b.u<a.u.uu};
Sz=function(a,b){if(b){var c=Fz(a);c.C+=1}Rz(a);a.Yg="net.timeout";Gz(a)};
Rz=function(a){a.Ab&&a.Ab.abort();a.timing.deactivate()};
Lz=function(a){var b=a.Ab.qe("content-type"),c=a.Ab.nq();return(!a.Ab.tj()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
mga=function(a){var b=(0,g.z)(a.hR,a),c=(0,g.z)(a.jR,a),d=(0,g.z)(a.iR,a);if(yw(a.B.og))return new Wy(a.B,c,b);var e=a.B.Ld();return a.u.fa&&(a.u.yB&&!isNaN(a.info.wf)&&a.info.wf>a.u.yI?0:oz())?new qz(e,c,b,d,a.u.D):new tz(e,c,b,d)};
pga=function(a){a.le&&a.le.F?(a=a.le.F,a=new Iu(a.type,a.u,a.range,"getEmptyStubAfter_"+a.R,a.B,a.startTime+a.duration,0,a.C+a.rb,0,!1)):(a=a.info.u[0],a=new Iu(a.type,a.u,a.range,"getEmptyStubBefore_"+a.R,a.B,a.startTime,0,a.C,0,!1));return a};
Tz=function(a){return 1>a.state?!1:a.le&&a.le.u.length||a.Ab.Mh()?!0:!1};
Uz=function(a){Mz(a,!1);return a.le?a.le.u:[]};
Mz=function(a,b){if(b||a.Ab.Dm()&&a.Ab.Mh()&&!Lz(a)&&!a.Oo){if(!a.le){if(a.Ab.tj())a.info.range&&(c=a.info.range.length);else var c=a.Ab.Uu();a.le=new Wfa(a.info.u,c)}for(;a.Ab.Mh();)a:{c=a.le;var d=a.Ab.Vu(),e=b&&!a.Ab.Mh();c.D&&(Ov(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.rb<=c.C)f+=m.rb;else{d.getLength();if(Ju(m)&&!e&&c.C+d.getLength()-h<f+m.rb){c.D=d.split(h).ln;break a}var n=c.C-f;var p=c,r=m;if(1===r.type){p.I=!0;var t=!1}else 3==
r.type||4==r.type?(r=p.I&&!p.K,p.K=!0,t=r):t=!1;p=c;var w=m,y=n;r=h;var x=d;n=t||m.u.GE()&&!n;var B=!!e;t=x.getLength()-r;w.range&&(t=Math.min(w.rb-y,t));B=w.range?w.C+y+t===w.range.length:B;w=new Iu(w.type,w.u,w.range,"reslice_"+w.R,w.B,w.startTime,w.duration,w.C+y,t,B&&w.F,B);y=t;r=x.split(r).ln.split(y).iu;p.u.push(new Xv(w,r,n));p=t;c.C+=p;h+=p;f+=m.rb;if(h===d.getLength())break}d.getLength()}}};
jga=function(a){if(!a.u.D.rf||!isNaN(a.info.wf)&&0<a.info.wf)return!1;if(!a.Ab.Dm())return!0;if(!pz(a.Ab))return!1;if(isNaN(a.info.wf)){var b=a.Ab.qe("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
Vz=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Wz=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)};
Xz=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};
cA=function(a,b){return 0<=Xz(a,b)};
qga=function(a,b){if(!a)return NaN;var c=Xz(a,b);return 0<=c?a.start(c):NaN};
dA=function(a,b){if(!a)return NaN;var c=Xz(a,b);return 0<=c?a.end(c):NaN};
eA=function(a){return a&&a.length?a.end(a.length-1):NaN};
fA=function(a,b){var c=dA(a,b);return 0<=c?c-b:0};
gA=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 Vz(d,e)};
hA=function(a,b,c){this.aa=a;this.u=b;this.D=[];this.C=new Ey(a,b,c);this.B=this.K=null;this.ma=0;this.zb=b.info.zb;this.ia=0;this.R=b.po();this.I=-1;this.za=b.po();this.F=this.R;this.P=!1;this.Y=-1;this.ha=null;this.fa=0;this.X=!1};
iA=function(a,b){b&&Qy&&Vy(a.C,b.ly());a.K=b};
jA=function(a){return a.K&&a.K.Pt()};
lA=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();kA(a,b);b=b.timing;a.ma=(b.D-b.u)/1E3}a.D.length&&Tz(a.D[0])&&!a.D[0].info.Ng()&&kA(a,a.D[0])};
kA=function(a,b){if(Tz(b)){if(Uz(b).length){b.I=!0;var c=b.le;var d=c.u;c.u=[];c.F=g.db(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())mA(a,b,d.value)}};
mA=function(a,b,c){switch(c.info.type){case 1:case 2:Jy(a.C,c);break;case 4:var d=c.info.u.HE(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.rb==c.rb&&(a.B=g.db(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())mA(a,b,c.value);break;case 3:Ny(a.C,b,c);break;case 6:Ny(a.C,b,c),a.B=c.info}};
nA=function(a,b){var c=b.info;c.u.info.zb>=a.zb&&(a.zb=c.u.info.zb)};
rA=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Se(),e=dA(d,b),f=NaN,h=jA(a);h&&(f=dA(d,h.u.index.Xe(h.B)));if(e==f&&a.B&&a.B.rb&&oA(pA(a),0))return b}a=qA(a,b,c);return 0<=a?a:NaN};
tA=function(a,b){a.u.Fe();var c=qA(a,b);if(0<=c)return c;c=a.C;c.I?(c=c.I,c=c.B&&3==c.B.type?c.B.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.Kj(b).u[0];sA(a)&&a.K&&a.K.abort();a.ia=0;return a.B.startTime};
uA=function(a){a.R=!0;a.F=!0;a.I=-1;tA(a,Infinity)};
vA=function(a){var b=0;g.Cb(a.D,function(c){var d=b;c=c.le&&c.le.length?Xfa(c.le):Uw(c.info);b=d+c},a);
return b+=cga(a.C)};
wA=function(a,b){if(!a.K)return 0;var c=jA(a);if(c&&c.F)return c.I;c=a.K.Se(!0);return fA(c,b)};
yA=function(a){xA(a);a=a.C;a.B=[];Hy(a)};
zA=function(a,b,c,d){xA(a);for(var e=a.C,f=!1,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.B>=b&&(e.B.pop(),e.F-=ew(l),f=!0)}f&&(e.ha=0<e.B.length?e.B[e.B.length-1].info:null);d>c?tA(a,d):a.B=a.u.ql(b-1,!1).u[0]};
CA=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)AA(a,b);else{for(;c<a.D.length;)AA(a,a.D.pop());var d=BA(a);a.aa.ub&&d&&d.u.tf()&&ki(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.rb&&d.C+d.rb>e.C&&d.C+d.rb<=e.C+e.rb})?a.B=d:Ku(b.info.u[0])?a.B=pga(b):a.B=null}};
sA=function(a){var b;!(b=!a.aa.Js&&"f"===a.u.info.Db)&&(b=a.aa.zh)&&(b=a.C,b=!!b.I&&sy(b.I));if(b)return!0;b=jA(a);if(!b)return!1;var c=b.F&&b.D;return a.za&&0<a.Y?c||b.B>=a.Y:c};
pA=function(a){var b=[],c=jA(a);c&&b.push(c);b=g.qb(b,Py(a.C));g.Cb(a.D,function(d){g.Cb(d.info.u,function(e){d.I&&(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.rb<=e.range.start+e.C+e.rb:f.B==e.B&&f.C>=e.C&&(f.C+f.rb<=e.C+e.rb||e.D))}));
(Ku(e)||4==e.type)&&b.push(e)})});
a.B&&!ffa(a.B,g.db(b),a.B.u.tf())&&b.push(a.B);return b};
oA=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Mu(a[c-1],a[c]))return!1;return!0};
qA=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.rb)return NaN;a=pA(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:oA(a,c?b:0)?a[b].startTime:NaN};
DA=function(a){return ki(a.D,function(b){return 3<=b.state})};
EA=function(a){return!(!a.B||a.B.u==a.u)};
FA=function(a){return EA(a)&&a.u.Fe()&&a.B.u.info.zb<a.u.info.zb};
GA=function(a,b,c){return(a=BA(a))&&!a.F?a.I>b&&a.I<b+c:!1};
BA=function(a){var b=Gy(a.C);return b?b.info:jA(a)};
xA=function(a){g.Cb(a.D,function(b){AA(this,b)},a);
a.D=[];a.B=null};
AA=function(a,b){var c=a.aa.ub&&b.info.u[0].u.tf();b.I&&!c&&(c=a.C,c.X&&!c.D.Lg&&c.V("placeholderrollback",c.X),c.X=null,c.K=null,c.ha=c.Ga,c.F-=c.P,Hy(c));b.dispose()};
HA=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.Eh()};
IA=function(a){var b=a.B;b&&-1==b.B&&(a=Gy(a.C))&&Ku(a.info)&&(a=a.info.B,b.R="updateLastSliceRequested",b.B=a)};
JA=function(a){return ki(a.D,function(b){return b.Oo})};
KA=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
MA=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.I=!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.R=LA(this);this.F=c;this.K=d};
LA=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
NA=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.I&&(g.zb(a.R,function(c,d){return a.values[c]-a.values[d]}),a.I=!1);
return a.values[a.R[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
tga=function(a){var b=new rga;this.policy=a;this.P=b;this.K=this.Y=0;this.B=-1;this.F=this.I=iz();this.X=new MA(4,1,.6,.4);this.C=new MA(10,1,.5,.4);this.u=a.B?new KA(a.u):new MA(a.u,20,.5,.4);this.R=new MA(5,1,.25);this.D=new MA(30,1,.5);a=sga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.X.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=iz()};
ez=function(a,b){a.X.C(1,b);-1<a.B&&3E4<iz()-a.B&&OA(a)};
Oz=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.R.C(b,c/b);f||(a.I=iz());e||a.D.C(1,b-d)};
Nz=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<iz()-a.B&&OA(a)};
PA=function(a){a=a.X.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
gz=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.Y+=b)};
QA=function(a){a=a.u.u();return 0<a?a:1};
RA=function(a){var b=QA(a);b=1/((a.C.u()||0)+1/b);a=a.R.u();return Math.max(b,0<a?a:1)};
Xy=function(a){return{delay:PA(a),stall:a.C.u()||0,byterate:QA(a),init:a.F}};
OA=function(a){uga(Xy(a));a.B=iz()};
SA=function(a){return 4E3<=iz()-a.I};
TA=function(a,b){this.B=a;this.u=b;this.C=1};
VA=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.Qc&&(d=Math.abs(d));d/=a.C;var f=1/RA(a.B);var h=.9*(d-a.u.An);h=Math.max(h,PA(a.B)+2048*f);c=h/f*a.u.wB/(b+c);c=Math.min(c,d);a.u.Ne&&e&&(c=Math.max(c,a.u.Ne));return UA(a,c,b)};
UA=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.vB*c),Math.min(Math.min(a.u.Y,31*c),Math.ceil(b*c))))||65536};
vga=function(a,b){var c=UA(a,b.video?a.u.fE:a.u.Ks,b.zb);return a.u.Hn&&b.video?Math.max(c,a.u.Hn):c};
WA=function(a){var b=RA(a.B);if(a.u.tv)return b;var c=a.u.uB,d=1E-9+PA(a.B);b*=Math.min(1,c/(b*d));a.u.Gn&&(c=((NA(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.Gn*c);return b};
XA=function(a){return WA(a)/a.C};
YA=function(a){a=void 0===a?{}:a;var b=void 0===a.Ui?!1:a.Ui,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.DA?!1:a.DA;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&oz()?3:2:c&&d?-1:1};
ZA=function(a){return YA({hasSubfragmentedFmp4:a.D.rf,Ui:a.D.rf,defraggedFromSubfragments:a.Fj,isManifestless:!0,DA:a.fa})};
$A=function(a){var b=void 0===a?{}:a;a=void 0===b.kh?0:b.kh;var c=void 0===b.Ai?!1:b.Ai,d=void 0===b.Hj?0:b.Hj,e=void 0===b.Hd?0:b.Hd,f=void 0===b.Lf?Infinity:b.Lf,h=void 0===b.Sq?0:b.Sq;b=void 0===b.he?!1:b.he;this.segments=[];this.u=this.D=-1;this.B=null;this.Qf=a;this.Hj=d;this.Ai=c;this.Hd=e;this.Lf=f;this.Sq=h;this.he=b};
bB=function(a,b,c){b=aB(a,b);return 0<=b&&(c||!a.segments[b].pending)};
aB=function(a,b){return yb(a.segments,function(c){return b-c.qb})};
cB=function(a,b,c){c=void 0===c?{}:c;Qx.call(this,a,b,"",void 0,void 0,c.kh||0);this.index=new $A(c)};
wga=function(a,b,c,d,e){this.qb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
dB=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""};
eB=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};
fB=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};
gB=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
hB=function(){this.u=[];this.B=null;this.I=0;this.D=[];this.C=!1;this.K="";this.F=-1};
xga=function(a){var b=a.D;a.D=[];return b};
yga=function(){this.D=[];this.u=null;this.B={};this.C={}};
Cga=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=zga(a):"AdaptationSet"==f.nodeName?h=Aga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=Bga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);sb(d,xga(h))}sb(a.D,d);paa(a.D,function(l){return 1E3*l.startSecs+l.u})};
Dga=function(a){a.u&&(a.u.u=[]);g.Eb(a.B,function(b){b.u=[]});
g.Eb(a.C,function(b){b.u=[]})};
zga=function(a){a.u||(a.u=new hB);return a.u};
Aga=function(a,b){a.B[b]||(a.B[b]=new hB);return a.B[b]};
Bga=function(a,b){a.C[b]||(a.C[b]=new hB);return a.C[b]};
iB=function(a,b,c,d,e){Nx.call(this,a,b,d||void 0,e||void 0);this.index=new g.Ox;this.I=c};
jB=function(a,b,c){var d=a.index.ky(b),e=a.index.Xe(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.zb&&(h=a.info.zb*f);c=b==a.index.Xb()&&0<h;a=new Iu(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new Qw([a],d)};
Ega=function(a,b){if(!a.index.Uc()){for(var c=[],d=b.I,e=b.K.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 Cu(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
Fga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Vp(b||"");var c={};g.Cb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.Q=function(a,b){return"true"===a.flags[b]};
g.P=function(a,b){return Number(a.flags[b])||0};
g.kB=function(a,b){var c=a.flags[b];return c?c.toString():""};
Gga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
lB=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
mB=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.Fe("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a};
nB=function(a){var b=mB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Hga=function(a){try{var b=oB('video/mp4; codecs="avc1.42001E"')||oB('video/webm; codecs="vp9"');return(oB('audio/mp4; codecs="mp4a.40.2"')||oB('audio/webm; codecs="opus"'))&&(b||!a)||nB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
oB=function(a){if(/opus/.test(a)&&(g.pB&&!In("38")||g.pB&&dr("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!jr())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!nB(a)};
qB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
rB=function(){var a=mB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
sB=function(){var a=mB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
tB=function(a,b,c,d){g.O.call(this);var e=this;this.Rc=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.CD={error:function(){!e.na()&&e.isActive&&e.V("error",e)},
updateend:function(){!e.na()&&e.isActive&&e.V("updateend",e)}};
vt(this.Rc,this.CD);this.zs=this.isActive};
uB=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.vB=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||""};
wB=function(a){var b=void 0===b?!1:b;if(a instanceof uB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Hs(a):g.Is(a);return new uB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
xB=function(a,b,c,d,e){var f;g.O.call(this);var h=this;this.jc=a;this.de=b;this.id=c;this.containerType=d;this.isVideo=e;this.iE=this.yu=this.Zy=null;this.appendWindowStart=this.timestampOffset=0;this.cC=Vz([],[]);this.Xs=!1;this.Oj=function(l){return h.V(l.type,h)};
if(null===(f=this.jc)||void 0===f?0:f.addEventListener)this.jc.addEventListener("updateend",this.Oj),this.jc.addEventListener("error",this.Oj)};
yB=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
zB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
AB=function(a,b,c){c=void 0===c?!1:c;g.C.call(this);this.mediaSource=a;this.de=b;this.isView=c;this.C=0;this.callback=null;this.events=new rt(this);g.D(this,this.events);this.Tq=new zB(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.de.webkitMediaSourceURL,!0);a=this.mediaSource||this.de;tt(this.events,a,["sourceopen","webkitsourceopen"],this.FQ);tt(this.events,a,["sourceclose","webkitsourceclose"],this.EQ)};
Iga=function(a,b){BB(a)?g.mm(function(){return b(a)}):a.callback=b};
CB=function(a){return!!a.u||!!a.B};
BB=function(a){try{return"open"===DB(a)}catch(b){return!1}};
EB=function(a){try{return"closed"===DB(a)}catch(b){return!0}};
DB=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.de.webkitSourceState){case a.de.SOURCE_OPEN:return"open";case a.de.SOURCE_ENDED:return"ended";default:return"closed"}};
FB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
GB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.Rc:a.u,f=a.B.isView()?a.B.Rc:a.B,h=new AB(a.mediaSource,a.de,!0);h.Tq=a.Tq;e=new tB(e,b,c,d);b=new tB(f,b,c,d);h.u=e;h.B=b;g.D(h,e);g.D(h,b);BB(a)||a.u.ip(a.u.yc());return h};
Jga=function(a,b){return HB(function(c,d){return g.Vs(c,d,4,1E3)},a,b)};
g.IB=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Su(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
HB=function(a,b,c){b.match(Kga);return a(b,c).then(function(d){var e=g.IB(d);return e?HB(a,e,c):d})};
JB=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.O.call(this);this.ha=this.duration=0;this.he=this.I=this.isLive=this.C=!1;this.Lf=this.Hd=0;this.isOtf=this.Wg=!1;this.Y=(0,g.N)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ka=this.aa=0;this.F=null;this.Ja=!!b&&g.Q(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.P=[];this.Ga=!!b&&g.Q(b,"html5_live_self_init_segments");this.D=null;this.Qa=c;this.Aa=!b||!g.Q(b,"html5_manifest_without_credentials");
this.R=0;this.fa=!!b&&g.Q(b,"disable_html5_manifest_namespace_redux");this.ia="";this.X=NaN;this.ma=b&&g.Q(b,"disable_html5_duration_caching")?Infinity:10;this.ck=this.Nm=this.B=0};
Lga=function(a){return g.Ib(a.u,function(b){return!!b.info.video&&b.info.video.Vg()})};
KB=function(a){return g.Ib(a.u,function(b){return!!b.info.Ud})};
Mga=function(a){return g.Ib(a.u,function(b){return jx(b.info.mimeType)})};
Nga=function(a){return Jb(a.u,function(b){return b.info.video?b.Fv():!0})};
LB=function(a){return g.Ib(a.u,function(b){return yw(b.B.u)})};
MB=function(a,b){a.u[b.info.id]=b};
Oga=function(a,b,c,d){c=void 0===c?0:c;var e=new JB("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=NB(f,b,e.duration),l=Eu(f.init),m=Eu(f.index),n=parseInt(f.clen,10),p=OB(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&MB(e,new Tx(p,h,l,m,n,f))});
return e};
Pga=function(a,b,c,d){c=void 0===c?0:c;var e=new JB("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=NB(f,b,e.duration),l=OB(f.url,f.sp,f.s);if(!g.aw(h)){var m=d&&g.Q(d,"html5_manifestless_vp9_otf"),n=d&&g.Q(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?MB(e,new iB(l,h,"sq/0",null,null)):(m=Eu(f.init),f=Eu(f.index),MB(e,new iB(l,h,"",m,f))))});
e.isOtf=!0;return e};
Qga=function(a,b,c,d){var e=new JB("",d,!0);g.Cb(a,function(f){var h=NB(f,c),l=OB(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.Hd=e.Hd||n;e.Lf=e.Lf||p;var r=!jx(h.mimeType),t=d&&g.P(d,"html5_manifestless_max_segment_history");l&&MB(e,new cB(l,h,{kh:m,Ai:r,Hj:f,Hd:n,Lf:p,Sq:t,he:b}))});
e.C=!b;e.Wg=!0;e.isManifestless=!0;e.isLive=!b;e.he=b;e.I=!!e.Hd&&!!e.Lf&&isFinite(e.Lf);return e};
NB=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 Zw(+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===PB&&(PB=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((PB||QB)&&('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 Ww(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new lB(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Gga(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 dx(e,d,l,h,m,p,n,c,f)};
Rga=function(a){return ki(a,function(b){return 3==+b.stream_type})?3:0};
RB=function(a,b){return a.F?tb(a.F.D,b):a.P.length?tb(a.P,b):[]};
OB=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new vw(a,!0);a.set("alr","yes");c&&(c=iw(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
UB=function(a,b){var c=dB(b,"id");c=c.replace(":",";");var d=dB(b,"mimeType"),e=dB(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(dB(b,"bandwidth"),10)/8;var f=parseInt(eB(b,"BaseURL").getAttribute(SB(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(dB(b,"width"),10);var l=parseInt(dB(b,"height"),10),m=parseInt(dB(b,"frameRate"),10),n=Sga(dB(b,SB(a,"projectionType")));a:switch(dB(b,SB(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}dB(b,"video_level");h=new Zw(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(dB(b,"audioSamplingRate"),10),m=parseInt(dB(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Tga(dB(b,SB(a,"spatialAudioType"))),l=new Ww(l,m,n),m=dB(b,"lang")||"und",n=eB(b,"Role")){var r=dB(n,"value")||"";Ob(TB,r)?(n=m+"."+TB[r],p="main"==r,m=dB(b,SB(a,"langName"))||m+" - "+r,m=new lB(m,
n,p)):m=null}else m=null;p=null;if(n=eB(b,"ContentProtection"))if(g.gr())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 dx(c,d,l,h,m,p,e,f)};
Sga=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Tga=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
VB=function(a,b){b=void 0===b?"":b;a.Ka=1;a.Y=(0,g.N)();return Cm(Jga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.Aa}).then((0,g.z)(a.GK,a)),(0,g.z)(a.HK,a))};
Uga=function(a,b,c){return VB(new JB(a,b,c),a)};
WB=function(a){return a.isLive&&(0,g.N)()-a.Y>=a.K};
XB=function(a){var b=a.K;isFinite(b)&&(WB(a)?a.refresh():(b=Math.max(0,a.Y+b-(0,g.N)()),a.D||(a.D=new g.F(a.refresh,b,a),g.D(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.Uc())return c.Xb()+1}return 0};
YB=function(a){return a.Nm&&a.B?a.Nm-a.B:0};
ZB=function(a){if(!isNaN(a.X))return a.X;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Uc()){b=0;for(c=d.Eh();c<=d.Xb();c++)b+=d.getDuration(c);b/=d.fo();b=.5*Math.round(b/.5);d.fo()>a.ma&&(a.X=b);return b}if(a.isLive&&(d=b[c],d.kh))return d.kh}return NaN};
Wga=function(a,b){var c=Rb(a.u,function(e){return e.index.Uc()});
if(!c)return NaN;c=c.index;var d=c.Gh(b);return c.Xe(d)==b?b:d<c.Xb()?c.Xe(d+1):NaN};
Xga=function(a,b){g.Eb(a.u,function(c){g.Eb(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 dx("0","fakesb",void 0,new Zw(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new Qx(new vw("http://www.youtube.com/videoplayback"),c,"fake"):new Tx(new vw("http://www.youtube.com/videoplayback"),c,new Du(0,0),new Du(0,0),0,NaN)}};
SB=function(a,b){return a.fa?"yt:"+b:a.ia+":"+b};
Zga=function(a){return g.fb(Object.values(a.u),function(b){return b.info.Ud&&b.info.video?480<b.info.video.Fc&&"H"==b.info.Db:!1})};
$B=function(a,b,c,d,e){g.O.call(this);this.C=this.u=null;this.K=!1;this.B=e?1:0;this.D=this.F=NaN;this.I=0;this.R=b;this.X=a;this.P=c;this.P.C.subscribe("cuepoint",this.Y,this);this.aa=d};
aC=function(a,b){if(a.u){a.C=null;a.K=!1;var c=b.startTime+a.I-a.u.Ce.startSecs;0>=c||(c=new yu(a.u.Ce.startSecs-(a.R.Dc&&!isNaN(a.I)?a.I:0),c,a.u.Ce.context,a.u.Ce.identifier,"stop",a.u.Ce.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.qb,!1),a.Y(c,b.qb))}};
bC=function(a,b){a.C=null;a.K=!1;0<b&&4===a.B&&(a.B=5)};
cC=function(a,b,c,d,e){g.O.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.P=d;this.X=e;this.I=0;this.K=this.F.isManifestless&&!this.F.he;this.C=!1;this.R=null};
dC=function(a,b){var c=a.u.index,d=a.B.B;bB(c,d)||b&&b.B==d?(a.F=!bB(c,d),a.P=!bB(c,d)):(a.F=!0,a.P=!0)};
eC=function(a,b,c){if(!a.u.Fe())return 0!=b&&xA(a),b;var d=rA(a,b);if(!isNaN(d))return d;yA(a);return c&&(c=dA(c.Se(),b),!isNaN(c))?(tA(a,c+$ga),b):tA(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.mm(function(){fC(a,"seekreason","behindMinSq");gC(a,e)});
return}}c?a.B.P=!1:a.u.P=!1;0<=rA(a.B,a.D)&&0<=rA(a.u,a.D)?((a.B.F||a.u.F)&&fC(a,"iterativeSeeking","done;count."+a.I,!1),a.B.F=!1,a.u.F=!1):d&&g.mm(function(){if(a.K||!a.P.ha)a.P.Fn?hC(a):c&&gC(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.na()&&l;var m=-1!=a.B.I&&-1!=a.u.I,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||(fC(a,"iterativeSeeking","done;count."+a.I,!1),a.I=0)):8>a.I?(a.I++,fC(a,"iterativeSeeking","inprogress;count."+a.I+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(fC(a,"iterativeSeeking","incomplete;count."+a.I+";target."+a.D+";actual."+f,!1),a.I=0,a.B.F=!1,a.u.F=!1,a.V("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.Gh(a.D);return(bB(c,a.F.Hd)||b.qb==a.F.Hd)&&d<a.F.Hd?a.F.Kc():-1};
gC=function(a,b){!a.na()&&a.K&&-1!=a.B.I&&-1!=a.u.I&&(a.K=!1,a.V("seekplayerrequired",b+.1,a.P.Fn))};
hC=function(a){var b=-1!=a.B.I,c=-1!=a.u.I;if(!b||!c)if(b=!b&&Fy(a.B.C),c=!c&&Fy(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.I=Fy(c.C).info.B,-1!=b.I){var d=Math.max(b.u.index.Xe(b.I),c.u.index.Xe(c.I));fC(a,"seekreason","initManifestlessSync");g.mm(function(){return gC(a,d)});
a.R&&(a.R.resolve(d+.1),a.R=null)}};
fC=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
cha=function(){this.ia=this.Ob=this.C=this.F=this.D=this.K=this.R=this.aa=this.Y=!1;this.fa=!0;this.ha=!1;this.I=0;this.Aa=!1;this.ma=Infinity;this.ax=!1;this.Ub=!0;this.X=this.P=!1;this.B={};this.u=this.za=!1;this.Nl=this.mn=null};
dha=function(a){if(a.aa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Aa&&b.unshift("1");a.C&&b.unshift("h");a.mn&&b.unshift(a.mn);return b};
eha=function(a){var b=["o","a","A"];a.K&&(b=["m","M"].concat(b));a.D&&(b=["mac3","MAC3"].concat(b));a.F&&(b=["meac3","MEAC3"].concat(b));a.Y&&(b=["so","sa"].concat(b));!a.Ob||a.D||a.Nl||b.unshift("a");a.R&&b.unshift("ah");a.Nl&&b.unshift(a.Nl);return b};
mC=function(a,b,c){b=void 0===b?{}:b;if(iC(a.D,jC.AV1_CODECS)&&iC(a.D,jC.HEIGHT)&&iC(a.D,jC.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=kC();if(d)return b.localPref=d}catch(f){}d=g.P(a.experiments,"html5_av1_thresh");var e=g.P(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.P(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.P(a.experiments,"html5_av1_thresh_arm"))&&fr()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return hx(f)}))&&a.B)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(lC("1",c.fps),lC("1",30));b.perfCap=a;d=Math.min(d,a);c.Vg()&&(b.hdr=1,d*=.75)}else c=lC("1",30),b.perfCap30=c,d=Math.min(d,c),c=lC("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
nC=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Bh=this.keySystemAccess=null;this.zt=this.At=-1;this.Ap=null;this.D="";this.F=!!d&&g.Q(d,"edge_nonprefixed_eme");this.D=d?g.kB(d,"html5_hdcp_probing_stream_url"):""};
pC=function(a){return a.F?!1:!a.keySystemAccess&&!!oC()&&"com.microsoft.playready"===a.u};
qC=function(a){return"com.microsoft.playready"===a.u};
rC=function(a){return g.hs&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
sC=function(a){return!a.keySystemAccess&&!!oC()&&"com.apple.fps.1_0"===a.u};
tC=function(a){return"com.youtube.fairplay"===a.u};
uC=function(a){return"fairplay"===a.flavor};
oC=function(){var a=window,b=a.MSMediaKeys;lr()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
wC=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.pB&&!g.gr())return In("45");if(g.hs||g.ye)return g.Q(a,"edge_nonprefixed_eme");if(g.vC)return In("47");if(g.Ur){var b=g.P(a,"html5_safari_desktop_eme_min_version");if(b)return In(b)}return!g.Q(a,"html5_disable_nonprefixed_eme_for_other")};
fha=function(a,b,c){var d=hr(),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.ma(e),g.ma(xC.playready)):[].concat(g.ma(xC.playready),g.ma(e))};
yC=function(a,b,c){this.experiments=a;this.X=b;this.Y=void 0===c?!1:c;this.F=!!g.Ja("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.R=new Set;this.I=!0;this.B=!g.Q(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.P=g.Q(this.experiments,"html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
zC=function(a,b,c){c=void 0===c?1:c;var d=b.Yb();if("0"===d)return!0;var e=b.mimeType;if(g.Q(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.R.has(b.Db))return"byerr"}else if(hx(b)&&a.K)return"dav1";if(b.video&&(b.video.Vg()||"bt2020"===b.video.primaries)&&!(iC(a,jC.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.pB?In(53):g.vC&&In(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[jC.WIDTH.name]=b.video.width),b.video.height&&(c[jC.HEIGHT.name]=b.video.height),b.video.fps&&(c[jC.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[jC.EOTF.name]=b.video.u),b.zb&&(c[jC.BITRATE.name]=8*b.zb*f),"("===b.Db&&(c[jC.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[jC.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(c[jC.CHANNELS.name]=b.audio.u);a.C&&fx(b)&&
(c[jC.EXPERIMENTAL.name]="allowed");f=g.q(Object.keys(jC));for(var h=f.next();!h.done;h=f.next()){h=jC[h.value];var l;if(l=c[h.name])(l=h===jC.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.Q(a.experiments,"html5_ignore_h264_framerate_cap")&&h===jC.FRAMERATE&&("H"===l.Db||"h"===l.Db)),l=!(l||h===jC.DECODETOTEXTURE&&!g.Q(a.experiments,"html5_decode_to_texture_cap"));if(l)if(iC(a,h))if(a.u){if(a.u[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(gx(b)&&h===jC.EOTF)return"dvp92"}!g.Q(a.experiments,
"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.Fc&&b.Ud&&(e+="; hdcp=2.2");return"227"!==d||g.Q(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.Q(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
AC=function(){var a=er()&&!In(29),b=dr("google tv")&&dr("chrome")&&!In(30),c=hr();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.BC=function(a,b){b=void 0===b?!1:b;return AC()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(mB(),"application/x-mpegURL")?!0:!1};
iC=function(a,b){b.name in a.D||(a.D[b.name]=gha(a,b));return a.D[b.name]};
gha=function(a,b){if(a.u)return!!a.u[b.name];if(b===jC.BITRATE&&g.Q(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===jC.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)};
CC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
DC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
EC=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
FC=function(a,b,c,d){return new DC(g.Yw[a]||0,g.Yw[b]||0,c,d)};
GC=function(a){var b=g.Yw.auto;return a.B===b&&a.u===b};
HC=function(a){var b=a.u||a.B;return Rb(hha,function(c){return g.Yw[c]===b})||"auto"};
IC=function(a,b){var c=g.Yw[b];return a.B<=c&&(!a.u||a.u>=c)};
JC=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.u&&!a.has(c.u.id)){var d=new CC(c.id,c.u);a.add(c.u.id);this.audioTracks.push(d)}};
LC=function(a,b,c,d){var e=[],f={};if(LB(c)){for(var h in c.u)d=c.u[h],f[d.info.Db]=[d.info];return f}for(var l in c.u){h=c.u[l];var m=h.info.Yb();if(""==h.info.Db)e.push(m),e.push("unkn");else if("304"!=m&&"266"!=m||!a.fa)if(a.ia&&"h"==h.info.Db&&h.info.video&&1080<h.info.video.Fc)e.push(m),e.push("blkhigh264");else if(a.ha&&h.info.video&&4320<=h.info.video.Fc&&32<h.info.video.fps)e.push(m),e.push("blk8khfr");else{var n=zC(b,h.info);!0!==n?(e.push(m),e.push(n)):"(h"!=h.info.Db||b.B?(n="MAC3"==h.info.Db||
"MEAC3"==h.info.Db||"M"==h.info.Db,c.isLive&&n&&!a.P?(e.push(m),e.push("blk51live")):(f[h.info.Db]=f[h.info.Db]||[],f[h.info.Db].push(h.info))):(e.push(m),e.push("enchdr"))}else e.push(m),e.push("blk2khfr")}a.u&&(d(e.join(".")),c="bfflt."+KC(f),d(c));c=g.q(Object.keys(f));for(e=c.next();!e.done;e=c.next())e=e.value,f[e]&&f[e][0].isVideo()&&(f[e]=iha(a,f[e]),f[e]=jha(b,f[e]));b=g.Fb(f,function(p){return!!p.length});
a.u&&(f="aftflt."+KC(f),d(f));return b};
MC=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
KC=function(a){for(var b=[],c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;b.push(MC(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Yb())}return b.join(".")};
kha=function(a,b,c){var d={};g.Eb(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.Ud&&c&&l.Ud[c.flavor]&&c.B[l.mimeType])(l="("!=l.Db&&"(h"!=l.Db)||(l=(iC(a,jC.CRYPTOBLOCKFORMAT)||a.Y)&&!a.P),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
lha=function(a,b,c,d,e,f){function h(B){return!!l[B]}
f=void 0===f?!1:f;var l=LC(a,b,c,e);KB(c)&&(l=kha(b,l,d));if(LB(c))return e=g.fb(Object.values(l),function(B){return!!B.length&&!!B[0].audio}),a=g.fb(Object.values(l),function(B){return!!B.length&&!!B[0].video}),e&&a||Xs(),Ys(new JC(a,e));
b=eha(a);b=g.fb(b,h);d=l[b];if(!b)return a.u&&e("noaudio"),Xs();l["9"]&&l.h&&c.Wg&&!a.X&&(a.u&&e("dltvp9"),delete l["9"]);var m=l["9h"]?"9h":"9",n=l["1"],p=l[m];n&&n.length&&(a.B.highestAv1Resolution=n[n.length-1].Ma().Fc);p&&p.length&&(a.B.higestVp9Resolution=p[p.length-1].Ma().Fc);var r=[],t=[];if(a.za&&!a.C)for(t=Lga(c)?n||l["9h"]?["1","9h"]:["9","h"]:["1","9","h"],a.u&&e("newhybpref."+t.join(".")),c=g.q(t),f=c.next();!f.done;f=c.next())r=r.concat(l[f.value]).filter(function(B){return B});
else if(0<a.I&&p&&n){if(!f){var w=Math.min(a.I,NC(n)),y=NC(p),x=function(B){return B<=w||B>y};
a.u&&e("lth."+w+".uth."+y);n=n.filter(function(B){return x(B.Ma().Fc)});
p=p.filter(function(B){return!x(B.Ma().Fc)})}t=["1",
m];r=[].concat(n,p).filter(function(B){return B})}if(r.length&&!a.C){OC(r,d,t);
if(a.u){a=[];m=g.q(r);for(c=m.next();!c.done;c=m.next())a.push(c.value.Yb());e("hbdfmt."+a.join("."))}return Ys(new JC(r,d,PC(l,"",b)))}r=dha(a);r=g.fb(r,h);if(!r)return a.u&&e("novideo"),Xs();a.Ub&&"1"==r&&l[m]&&(c=NC(l["1"]),NC(l[m])>c&&(r=m));"9"==r&&l.h&&(m=NC(l["9"]),NC(l.h)>1.5*m&&(r="h"));a.u&&e("vfmly."+MC(r));m=l[r];if(!m.length)return a.u&&e("novfmly."+MC(r)),Xs();OC(m,d);return Ys(new JC(m,d,PC(l,r,b)))};
PC=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)?(OC(d,e),new JC(d,e)):null};
OC=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.Ma().height*e.Ma().width-d.Ma().height*d.Ma().width;if(!f&&c&&0<c.length){f=c.indexOf(d.Db)+1;var h=c.indexOf(e.Db)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.zb-d.zb);return f});
g.zb(b,function(d,e){return e.zb-d.zb})};
jha=function(a,b){var c=g.rh(b,function(d,e){return 32<e.Ma().fps?Math.min(d,e.Ma().width):d},Infinity);
Infinity>c&&(b=a.I&&(a.X||iC(a,jC.FRAMERATE))?g.Ke(b,function(d){return 32<d.Ma().fps||d.Ma().width<c}):g.Ke(b,function(d){return!(32<d.Ma().fps)}));
ir()&&(b=g.Ke(b,function(d){return"299"!=d.Yb()}));
return b};
iha=function(a,b){return b=g.Ke(b,function(c){return c.Ma().Fc<=a.ma})};
NC=function(a){return g.rh(a,function(b,c){return Math.max(b,c.Ma().Fc)},0)};
QC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
rga=function(){this.u=0};
RC=function(){g.O.call(this);this.items={}};
mha=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
SC=function(a){try{return g.cf(a)}catch(b){return null}};
nha=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?SC(b.clientKey):null;var c=b.encryptedClientKey?SC(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.u=new mha(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=SC(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
oha=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
UC=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.C.call(this);var c=this;this.values=a;this.Mj=b;this.B={};this.C=this.u=0;this.D=new g.F(function(){TC(c)},1E4);
g.D(this,this.D)};
WC=function(a,b){VC(a,b);return a.values[b]&&a.Mj[b]?a.values[b]/Math.pow(2,a.u/a.Mj[b]):0};
VC=function(a,b){if(!a.values[b]){var c=XC();a.values=c.values||{};a.Mj=c.halfLives||{};a.B=c.values?Object.assign({},c.values):{}}};
TC=function(a){var b=XC();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]=WC(a,e);a.B=c}pha(a.B,a.Mj)};
R=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
YC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
ZC=function(a,b){return void 0===b||null===b?a:Number(b)};
$C=function(a,b){return void 0===b||null===b?a:b.toString()};
aD=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};
bD=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};
AD=function(a,b,c){var d;g.C.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.sf=this.Cc=this.kc=this.wi=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Sj=NaN;this.ke=!1;this.Aa=0;this.ce=this.zn=this.Rg=!1;a=a?g.Vb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=$C("",a.csp_nonce);this.experiments=new Fga(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.Ja=b?b.serializedForcedExperimentIds:$C("",a.forced_experiments)||void 0;kw=this.ba("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(y){e=""}this.Dc=e;this.Kg=(e=window.location.ancestorOrigins)?Array.from(e):[];e=!this.ba("web_player_context_config_embeds_fields_killswitch");this.B=R(!1,b&&e?b.isEmbed:a.is_embed);if(b&&b.device){var f=b.device;f.brand&&(this.deviceParams.cbrand=f.brand);f.browser&&(this.deviceParams.cbr=f.browser);f.browserVersion&&
(this.deviceParams.cbrver=f.browserVersion);this.deviceParams.c=f.interfaceName||"WEB";this.deviceParams.cver=f.interfaceVersion||"html5";f.interfaceTheme&&(this.deviceParams.ctheme=f.interfaceTheme);this.deviceParams.cplayer=f.interfacePlayerType||"UNIPLAYER";f.model&&(this.deviceParams.cmodel=f.model);f.network&&(this.deviceParams.cnetwork=f.network);f.os&&(this.deviceParams.cos=f.os);f.osVersion&&(this.deviceParams.cosver=f.osVersion);f.platform&&(this.deviceParams.cplatform=f.platform)}else this.deviceParams.c=
a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.ba("wpcc_loader_url_killswitch")?this.loaderUrl=this.B||cD(this)&&b.loaderUrl?b.loaderUrl||"":this.Dc:this.loaderUrl=this.B||cD(this)&&a.loaderUrl?$C("",a.loaderUrl):this.Dc;this.C=lw(this.loaderUrl,rha,sha);f=this.loaderUrl;var h=void 0===h?!1:h;this.Us=jw(lw(f,tha,null),f,h,"Trusted Ad Domain URL");this.ma=R(!1,a.privembed);this.protocol=0===this.Dc.indexOf("http:")?"http":"https";this.P=nw((b?b.customBaseYoutubeUrl:
a.BASE_YT_URL)||"")||nw(this.Dc)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;f="detailpage";"adunit"===h?f=this.B?"embedded":"detailpage":"embedded"===h||this.C?f=YC(f,h,uha):h&&(f="embedded");this.fa=f;zp();h=null;f=b?b.playerStyle:a.ps;var l=g.jb(dD,f);!f||l&&!this.C||(h=f);this.playerStyle=h;this.R=(this.I=g.jb(dD,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Ps=!this.R;this.aa=R(!1,a.disableplaybackui);this.Qc=
mB().defaultPlaybackRate?eD||g.qr||fD?g.vC&&In("20")||g.pB&&In("4")||g.xg&&In("11")||mr():!(g.xg&&!dr("chrome")||eD||dr("android")||dr("silk")):!1;this.Ks=R(!1,a.enable_faster_speeds);this.u=R("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?h=!this.I:(h=Number(g.A()/1E3),f=g.ht.getInstance(),h=this.ba("block_desktop_background_playback_with_mobile_cookie")&&f&&h>Number(f.get("dhmu",h.toString())));this.Ns=h;this.Ya="3"===this.controlsType||this.u||R(!1,a.use_media_volume);
this.X=sB();this.tu=g.gD;this.An=R(!1,b&&e?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=R(!1,(b&&e?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.ba("embeds_pfp_chazal_ui_killswitch"));var m;b?void 0!==b.hideInfo&&(m=!b.hideInfo):m=a.showinfo;this.En=g.hD(this)&&!this.An||R(!iD(this)&&!jD(this)&&!this.I,m);this.Bn=b?!!b.mobileIphoneSupportsInlinePlayback:R(!1,a.playsinline);m=this.u&&kD&&null!=lD&&0<lD&&2.3>=lD;h=b?b.useNativeControls:a.use_native_controls;f=this.u&&!this.ba("embeds_enable_mobile_custom_controls");
h=mD(this)||!m&&R(f,h)?"3":"1";f=b?b.controlsType:a.controls;this.controlsType="0"!==f&&0!==f?h:"0";this.Oe=this.u;this.color=YC("red",b&&e?b.progressBarColor:a.color,vha);this.Bt="3"===this.controlsType||R(!1,b&&e?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Ga=!this.B;this.Fn=(h=!this.Ga&&!jD(this)&&!this.R&&!this.I&&!iD(this))&&!this.Bt&&"1"===this.controlsType;this.Nb=g.nD(this)&&h&&"0"===this.controlsType&&!this.Fn;this.tv=this.Mt=m;this.Gn=oD&&!g.ae(601)?!1:!0;this.Ms=
this.B||!1;this.Qa=jD(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=$C("",b&&e?b.widgetReferrer:a.widget_referrer);var n;b&&e?b.disableCastApi&&(n=!1):n=a.enablecastapi;n=!this.C||R(!0,n);m=!0;b&&b.disableMdxCast&&(m=!1);this.Ig=n&&m&&"1"===this.controlsType&&!this.u&&(jD(this)||g.nD(this)||g.pD(this))&&!g.qD(this)&&!rD(this);this.qv=qB()||rB();n=b?!!b.supportsAutoplayOverride:R(!1,a.autoplayoverride);this.Sl=!this.u&&!dr("nintendo wiiu")&&!dr("nintendo 3ds")||
n;n=b?!!b.enableMutedAutoplay:R(!1,a.mutedautoplay);m=this.ba("embeds_enable_muted_autoplay")&&g.hD(this);this.Tl=n&&m&&this.X&&!mD(this);n=(jD(this)||iD(this))&&"blazer"===this.playerStyle;this.Jg=b?!!b.disableFullscreen:!R(!0,a.fs);this.za=!this.Jg&&(n||nt());this.yn=this.ba("uniplayer_block_pip")&&(er()&&In(58)&&!rr()||or);n=g.hD(this)&&!this.An;var p;b?void 0!==b.disableRelatedVideos&&(p=!b.disableRelatedVideos):p=a.rel;this.ub=n||R(!this.I,p);this.Dn=R(!1,b&&e?b.enableContentOwnerRelatedVideos:
a.co_rel);this.F=rr()&&0<lD&&4.4>=lD?"_top":"_blank";this.Ne=g.pD(this);this.Ql=R("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "books":p="gb";break;case "docs":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;case "google-one":p="go";break;case "play":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p="hm";break;case "photos-edu":case "picasaweb":p="pw";break;default:p=
"yt"}this.Y=p;this.ye=$C("",b&&e?b.authorizedUserIndex:a.authuser);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Ll=(this.B&&!this.ma||!!this.ye)&&R(!this.R,this.C?r:void 0);this.Hg=b?!!b.disableKeyboardControls:R(!1,a.disablekb);this.loop=R(!1,a.loop);this.pageId=$C("",a.pageid);this.uu=R(!0,a.canplaylive);this.Zi=R(!1,a.livemonitor);this.disableSharing=R(this.I,b?b.disableSharing:a.ss);(r=a.video_container_override)?(p=r.split("x"),2!==p.length?r=null:(r=
Number(p[0]),p=Number(p[1]),r=isNaN(r)||isNaN(p)||0>=r*p?null:new g.ie(r,p))):r=null;this.Hn=r;this.mute=b?!!b.startMuted:R(!1,a.mute);this.Rl=!this.mute&&R("0"!==this.controlsType,a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:YC(void 0,r,sD);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":$C("",a.cc_lang_pref);r=YC(2,b&&e?b.captionsLanguageLoadPolicy:a.cc_load_policy,sD);"3"===this.controlsType&&2===r&&(r=
3);this.zj=r;this.Lg=b?b.hl||"en_US":$C("en_US",a.hl);this.region=b?b.contentRegion||"US":$C("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":$C("en",a.host_language);this.Is=!this.ma&&Math.random()<g.P(this.experiments,"web_player_api_logging_fraction");this.ia=!this.ma;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:R(!0,a.deviceHasDisplay);this.Sj=ZC(this.Sj,a.ismb);r=a;g.kB(this.experiments,"html5_qoe_intercept")?r=g.kB(this.experiments,"html5_qoe_intercept"):this.Ps?
(r=r.vss_host||"s.youtube.com",this.ba("www_for_videostats")&&"s.youtube.com"===r&&(r=tD(this.P)||"www.youtube.com")):r="video.google.com";this.Gp=r;this.nh(a,!0);this.K=new RC;g.D(this,this.K);r=b?b.innertubeApiKey:$C("",a.innertube_api_key);p=b?b.innertubeApiVersion:$C("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:$C("",a.innertube_context_client_version);this.ha={innertubeApiKey:to("INNERTUBE_API_KEY")||r,innertubeApiVersion:to("INNERTUBE_API_VERSION")||p,PD:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),
mu:this.deviceParams.c,innertubeContextClientVersion:to("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,Hy:this.hostLanguage,Gy:this.region,RD:to("INNERTUBE_HOST_OVERRIDE")||"",TD:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),SD:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Cn=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new yC(this.experiments,this.ba("html5_force_hfr_support")?!0:uD(this)||ir()||jr()||vD(this),g.pB&&g.ae(56)||g.vC&&g.ae(54)||vD(this));r=this.Sj;p=this.experiments;
n=new oha;g.wD(this)&&(n.B=!0,n.D=.1);g.Q(p,"html5_ewma_bandwidth_estimator")&&(n.B=!0);g.Q(p,"html5_pctile_bandwidth_estimator")&&(n.B=!1);r&&(n.C=r/8);n.u=g.P(p,"html5_bandwidth_window_size")||n.u;this.schedule=new tga(n);this.enableSafetyMode=R(!1,a.enable_safety_mode);r=this.aa?!1:jD(this)&&"blazer"!==this.playerStyle;var t;b&&e?null!=b.disableAutonav&&(t=!b.disableAutonav):t=a.allow_autonav;this.Zb=R(r,t);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:R(!1,a.send_visitor_id_header);this.Ta=
(0,g.N)();var w;"docs"===this.playerStyle&&(b&&e?w=b.disableNativeContextMenu:w=a.disable_native_context_menu);this.disableNativeContextMenu=R(!1,w);this.Ls=uD(this)&&this.ba("enable_skip_intro_button");this.embedConfig=$C("",b&&e?b.serializedEmbedConfig:a.embed_config);this.ng=R(!1,a.full_window);this.kb=!g.xD(this)&&!yD(this)&&!g.qD(this)&&!rD(this)&&!0;this.livingRoomAppMode=YC("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(d=b.device)||void 0===d?void 0:d.livingRoomAppMode:a.living_room_app_mode,
zD);this.transparentBackground=b?!!b.transparentBackground:R(!1,a.transparent_background);this.useFastSizingOnWatchDefault=R(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:R(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:R(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:R(!1,a.use_miniplayer_ui);this.showBackButton=R(!1,a.showbackbutton);this.ut=
1E-4>Math.random();this.xi=a.onesie_hot_config?new nha(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic;this.lu=c;this.fd=new UC;g.D(this,this.fd)};
BD=function(a,b){return!a.I&&er()&&In(55)&&"3"===a.controlsType&&!b};
g.CD=function(a){a=tD(a.P);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.DD=function(a){return g.qD(a)?"music.youtube.com":g.CD(a)};
ED=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
FD=function(a){return jD(a)&&!g.xD(a)};
mD=function(a){return oD&&!a.Bn||dr("nintendo wiiu")||dr("nintendo 3ds")?!0:!1};
rD=function(a){return"area120-boutique"===a.playerStyle};
g.qD=function(a){return"music-embed"===a.playerStyle};
g.wD=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
cD=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
vD=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.GD=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
uD=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.HD=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
yD=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.xD=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
ID=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.JD=function(a){return g.xD(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||ID(a)};
KD=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.LD=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
MD=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.ND=function(a){return g.HD(a)&&a.ba("web_player_i_see_captions")};
g.PD=function(a){return(a.deviceHasDisplay&&g.pB&&!or&&"3"!==a.controlsType?g.qr?a.B&&g.ae(51):!0:!1)||(a.deviceHasDisplay&&g.vC&&!or&&"3"!==a.controlsType?g.qr?a.B&&g.ae(48):g.ae(38):!1)||(a.deviceHasDisplay&&g.xg&&!or&&"3"!==a.controlsType?g.qr?a.B&&g.ae(37):g.ae(27):!1)||a.deviceHasDisplay&&g.OD&&!nr()&&g.ae(11)||a.deviceHasDisplay&&g.Ur&&g.ae("604.4")};
QD=function(a){if(g.nD(a)&&kD)return!1;if(g.vC){if(!g.ae(47)||!g.ae(52)&&g.ae(51))return!1}else if(g.Ur)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
jD=function(a){return"detailpage"===a.fa};
g.nD=function(a){return"embedded"===a.fa};
RD=function(a){return"leanback"===a.fa};
iD=function(a){return"adunit"===a.fa||"gvn"===a.playerStyle};
g.pD=function(a){return"profilepage"===a.fa};
g.hD=function(a){return a.B&&g.nD(a)&&!iD(a)&&!a.I};
SD=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.Is(new g.tr("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.TD=function(a){var b=g.DD(a);!a.ba("yt_embeds_disable_new_error_lozenge_url")&&wha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
tD=function(a){var b=g.yd(a);return(a=Number(g.xd(4,a))||null)?b+":"+a:b};
xha=function(a,b,c,d){this.ma=a;this.u=b;this.K=c;this.R=d;this.F=UD;this.B=this.X=null;this.aa=-1;this.D=this.I=null;this.C=[];this.ia={};this.P=0;this.Ob=this.fa=this.Y=!1;this.ha=0;this.Aa=new Set;this.Ub=!1;this.za=null};
Aha=function(a,b,c){VD(a,b);yha(a,c);a.X=a.I;zha(a);a.B=a.D;return WD(a)};
Bha=function(a,b){if(EC(a.F,b))return null;if("m"==b.reason&&b.isLocked())return VD(a,b),a.P=a.C.length-1,XD(a),YD(a),a.fa=a.fa||a.B!=a.D,a.B=a.D,new QC(a.I,a.B,b.reason);"r"==b.reason&&(a.aa=-1);VD(a,b);YD(a);if("r"==b.reason&&a.D==a.B)return new QC(a.I,a.D,b.reason);if(a.B&&a.D&&ZD(a,a.B.info)<ZD(a,a.D.info)){var c=a.F.reason;a.Y=a.Y||"r"==c||"u"==c||"v"==c}return null};
Cha=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,WD(a)}else a.Ob=a.X!=b,a.X=b;return null};
$D=function(a,b){b.X=(0,g.N)();a.aa=-1;VD(a,a.F);a.Y=a.u.PC};
aE=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.R.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].X>b)return!0;return!1};
bE=function(a,b){return new QC(a.X,a.B,b||a.F.reason)};
cE=function(a){return a.F.isLocked()};
Dha=function(a){return 0<a.C.length&&0==a.P};
WD=function(a){a.aa=(0,g.N)();a.Y=!1;return new QC(a.X,a.B,a.F.reason)};
dE=function(a){var b=!cE(a)&&-1<a.aa&&8E3>(0,g.N)()-a.aa,c=a.D&&3*ZD(a,a.D.info)<XA(a.ma);if(!b||c)XD(a),YD(a),a.fa=a.fa||a.D!=a.B};
eE=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.Fc,h=c[f],l=h&&hx(h)&&h.video.Fc>a.u.Ga,m=f<=a.u.Ga?hx(e):fx(e);if(!h||l||m)c[f]=e}return c};
VD=function(a,b){a.F=b;var c=a.R.videoInfos;if(!cE(a)){var d=(0,g.N)()-6E4;c=g.Ke(c,function(p){if(p.zb>this.u.zb)return!1;p=this.K.u[p.id];var r=p.info.Db;return this.u.Us&&this.Aa.has(r)||p.X>d?!1:4<p.B.B||4<p.P||p.F?!1:!0},a);
if(aE(a)){var e=g.Ke(c,function(p){p=p.Yb();return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.R.videoInfos);e=g.Ke(c,b.D,b);if(a.u.Bt||a.u.iB){var f="m"===b.reason||"s"===b.reason;a.u.qv&&fE&&g.Ur&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.B}));
if(!yB()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.Fc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.Fc==h});
var l=eE(a,f)[h].Db;e=e.filter(function(p){return!!p&&!!p.video&&p.Db==l})}}var m=eE(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Db==m[p.video.Fc].Db})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return ZD(this,p)-ZD(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.nb(e,c),c--):ZD(a,f)*a.u.u>ZD(a,n)&&(g.nb(e,c-1),c--)}c=e[e.length-1];a.Ub=!!a.B&&!!a.B.info&&a.B.info.Db!=c.Db;a.C=e;zfa(a.u,c)};
yha=function(a,b){if(b)a.I=a.K.u[b];else{var c=g.fb(a.R.u,function(d){return!!d.u&&d.u.isDefault});
c=c||a.R.u[0];a.I=a.K.u[c.id]}XD(a)};
gE=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].Ma().quality;)c++;var d=XA(a.ma)/a.u.u;return ZD(a,b.info)+ZD(a,a.C[c])>d};
XD=function(a){if(!a.I||!a.u.C&&!a.u.Dn)if(!a.I||!a.I.info.u)if(a.I=a.K.u[a.R.u[0].id],1<a.R.u.length){var b=!1;if(a.u.zl){if(b=!0,a.u.qB){var c=eb(a.R.u,function(d){return"250"===d.Yb()});
0<=c&&(a.I=a.K.u[a.R.u[c].id],b=gE(a,a.I))}}else b=a.F.isLocked()?240>a.F.u:gE(a,a.I);b&&(a.I=a.K.u[g.db(a.R.u).id])}};
YD=function(a){a.u.Tl&&(a.za=a.za||new g.F(function(){a.u.Tl&&a.B&&!aE(a)&&1===Math.floor(10*Math.random())?$D(a,a.B):a.za.start()},6E4),a.za.Sb());
if(!a.D||!a.u.C&&!a.u.Dn)if(cE(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.db(a.C).id];else{for(var b=Math.min(a.P,a.C.length-1),c=XA(a.ma),d=ZD(a,a.I.info),e=c/a.u.B-d;0<b&&!(ZD(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(ZD(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.P=b}};
zha=function(a){var b=a.u.B,c=XA(a.ma)/b-ZD(a,a.I.info);b=g.gb(a.C,function(d){return ZD(this,d)<c},a);
0>b&&(b=0);a.P=b;a.D=a.K.u[a.C[b].id]};
hE=function(a,b){a.u.Ga=mC(b,{},a.R);VD(a,a.F);dE(a);a.Y=a.D!=a.B};
ZD=function(a,b){if(!a.ia[b.id]){var c=a.K.u[b.id].index.kD(a.ha,15);c=b.C&&a.B&&a.B.index.Uc()?c||b.C:c||b.zb;a.ia[b.id]=c}c=a.ia[b.id];a.u.Nb&&b.video&&b.video.Fc>a.u.Nb&&(c*=1.5);return c};
Eha=function(a,b){var c=Rb(a.K.u,function(d){return d.info.Yb()==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Fha=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Nga(a.K)){for(var d=Math.max(0,a.P-2);d<a.P&&d<a.C.length;d++){var e=a.C[d].Yb();$w(a.C[d].Ma())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.lB)for(d=Math.max(0,a.P-3);0<=d&&!c;d--)$w(a.C[d].Ma())||(c=!0,b.push(a.C[d].Yb()))}return b};
iE=function(a,b,c,d){g.O.call(this);this.u=a;this.ha=b;this.fa=c;this.Y=d;this.aa=NaN;this.C=this.P=this.F=null;this.B=this.K=this.R=this.I=NaN;this.D=!1;this.X=NaN};
Gha=function(a,b,c,d){return a.za&&a.ia&&3===ZA(a)?new iE(a,b,c,d):null};
jE=function(a,b){if(a.u.GB){var c=b.info.zb;if(0>=c)a.X=NaN;else{var d=RA(a.ha),e=b.index.Qf;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*e+a.u.R)/c,e-a.u.Cc))}}};
Hha=function(a,b){var c=g.A()/1E3,d=c-a.I,e=c-a.R,f=e>=a.u.En,h=!1;if(f){var l=0;!isNaN(b)&&b>a.K&&(l=b-a.K,a.K=b);l/e<a.u.IB&&(h=!0);a.R=c}c=d>=a.u.Cc&&!a.D;if(!f&&!c&&kE(a,b))return NaN;c&&(a.D=!0);a:{d=h;c=g.A()/1E3-(a.fa.u()||0)-a.P.B-a.u.R;f=a.C.startTime;c=f+c;if(d){if(isNaN(b)){lE(a,NaN,"n",b);f=NaN;break a}d=b-a.u.kc;d<c&&(c=d)}else a.D&&(d=c+a.u.R-a.aa+a.u.JB,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.kc))),c=d);f=c=Math.max(c,f)}a.B=f;if(isNaN(a.B))return mE(a),NaN;if(!h&&kE(a,b))return nE(a,
b),NaN;if(a.B<=a.C.startTime)return lE(a,NaN,"y",b),mE(a),NaN;if(!a.Y(a.B,!1))return!nE(a,b)&&h&&(lE(a,NaN,"t",b),mE(a)),NaN;h=a.B;lE(a,h,"s",b);mE(a);return h};
nE=function(a,b){return a.Y(a.B,!0)?!1:(lE(a,NaN,"ns",b),mE(a),!0)};
kE=function(a,b){return isNaN(b)?!0:isNaN(a.B)?!1:b<a.B+(a.D?a.u.kc:a.u.HB)};
mE=function(a){a.F=null;a.P=null;a.C=null;a.I=NaN;a.R=NaN;a.K=NaN;a.B=NaN;a.D=!1};
lE=function(a,b,c,d){var e=Iz(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.I).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.P.B).toFixed(0);e.ssr_fa=a.D?"1":"0";e.ssr_o=(1E3*a.fa.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.C.u.index;bB(b,a.C.B,!0)&&(e.ssr_ist=(1E3*b.Xe(a.C.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.C.B)).toFixed(0));e=g.vB(e);a.V("ctmp","ssr",e,!1)};
Iha=function(a){a=void 0===a?{}:a;var b=a.rf,c=a.Qf,d=a.Xb,e=a.bo;this.Fj=a.Fj;this.rf=b;this.Qf=c;this.Xb=d;this.bo=e};
mz=function(a,b){if(0>b)return!0;var c=a.Xb();return b<c||b===c&&!a.Fj||b===c&&(c=a.bo())&&b===c.qb?!0:!1};
hga=function(a,b,c){if(!mz(a,b))return 0;if(!a.rf||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Xb();return b<c||b===c&&(a=a.bo())&&b===a.qb&&!a.pending?2:1};
oE=function(a,b){Aq.call(this,1,arguments)};
pE=function(a,b){Aq.call(this,1,arguments);this.u=a};
Jha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
rE=function(a){var b=qE(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};
sE=function(a){return!!g.Ja("yt.timing."+(a||"")+"pingSent_")};
tE=function(a,b){g.Fa("yt.timing."+(b||"")+"pingSent_",a,void 0)};
yE=function(a){return g.Ja("ytcsi."+(a||"")+"data_")||xE(a)};
zE=function(a){a=yE(a);a.info||(a.info={});return a.info};
qE=function(a){a=yE(a);a.tick||(a.tick={});return a.tick};
AE=function(a){var b=yE(a).nonce;b||(b=It(),yE(a).nonce=b);return b};
xE=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b,void 0);return b};
CE=function(a){var b=qE(a||""),c=rE(a);c&&!BE&&(Dq(Kha,new oE(Math.round(c-b._start),a)),BE=!0)};
DE=function(){var a=g.Ja("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a,void 0),g.Fa("ytcsi.reference",{},void 0));return a};
FE=function(a){a=a||"";var b=EE();if(b[a])return b[a];var c=DE(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
EE=function(){var a=g.Ja("ytcsi.reference");if(a)return a;DE();return g.Ja("ytcsi.reference")};
GE=function(){this.u=0};
HE=function(){GE.u||(GE.u=new GE);return GE.u};
JE=function(a,b){IE[b]=IE[b]||{count:0};var c=IE[b];c.count++;c.time=(0,g.N)();a.u||(a.u=rp(function(){var d=(0,g.N)(),e;for(e in IE)IE[e]&&6E4<d-IE[e].time&&delete IE[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.tr("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Is(c)),!0):!1};
KE=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.vo("csi_on_gel")||!!yE(a).useGel};
LE=function(a){a=yE(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};
ME=function(a){xE(a);Lha();tE(!1,a);a||(g.L("TIMING_ACTION")&&so("PREVIOUS_ACTION",g.L("TIMING_ACTION")),so("TIMING_ACTION",""))};
SE=function(a,b,c,d){d=d?d:a;NE(d);var e=d||"",f=EE();f[e]&&delete f[e];var h=DE(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;FE(d||"").info.actionType=a;ME(d);yE(d).useGel=!0;so(d+"TIMING_AFT_KEYS",b);so(d+"TIMING_ACTION",a);OE("yt_sts","c",d);PE("_start",c,d);if(KE(d)){a={actionType:QE[to((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:QE[to("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.Rt())a.clientScreenNonce=b;b=AE(d);HE().info(a,b)}g.Fa("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);RE(d)};
OE=function(a,b,c){if(null!==b)if(zE(c)[a]=b,KE(c)){var d=b;b=LE(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 TE){b=TE[a];g.jb(Mha,b)&&(d=!!d);a in UE&&"string"===typeof d&&(d=UE[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=vu({},e)}else g.jb(Nha,a)||g.Is(new g.tr("Unknown label logged with GEL CSI",
a)),b=void 0;b&&VE(b,c)}else FE(c||"").info[a]=b};
VE=function(a,b){if(KE(b)){var c=FE(b||"");vu(c.info,a);c=LE(b);"gelInfos"in c||(c.gelInfos={});vu(c.gelInfos,a);c=AE(b);HE().info(a,c)}};
PE=function(a,b,c){var d=qE(c);if(g.vo("use_first_tick")&&WE(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;XE.mark&&(nc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),XE.mark(e))}e=b||(0,g.N)();d[a]=e;e=LE(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(KE(c)){FE(c||"").tick[a]=b||(0,g.N)();e=AE(c);if("_start"===a){var f=HE();JE(f,"baseline_"+e)||g.Nq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else HE().tick(a,e,b);CE(c);e=!0}else e=!1;e||(RE(c),FE(c||"").tick[a]=b||(0,g.N)());
return d[a]};
YE=function(a){var b="above_the_fold";XE&&XE.measure&&(nc(b,"measure_")||(b="measure_"+b),a?XE.measure(b,a):XE.measure(b))};
WE=function(a,b){var c=qE(b);return a in c};
ZE=function(a,b){WE("_start",b)&&!WE(a,b)&&PE(a,void 0,b)};
RE=function(a){if(!sE(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=qE(a);if(g.Ja("ytglobal.timing"+(a||"")+"ready_")&&b&&WE("_start")&&rE(a))if(CE(a),a)$E(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&&$E(a)}}};
Oha=function(){switch(Wo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
$E=function(a){if(!KE(a)){var b=qE(a),c=zE(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=rE(a);var l=qE(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&zE(a).yt_pvis&&"youtube"===e&&(OE("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var 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.Ja("yt.timing.csiData"),c||(c=[],g.Fa("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?qu(f):g.pu(f);tE(!0,a);Dq(aF,new pE(p.aft+(Number(h)||0),a))}};
NE=function(a){if(KE(a))WE("_start",a)&&PE("aa",void 0,a);else if(!sE(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(PE("aa",void 0,a),OE("ap",1,a),OE("yt_fss","c",a),$E(a))}};
bF=function(){this.C=this.D=0;this.ticks={}};
cF=function(a,b,c,d){this.target=a;this.trigger=b;this.C=c;this.D=d;this.u=0};
Pha=function(){this.dm=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
g.eF=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=Qha++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||dF.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.qh(d.thumbnails,function(e){return g.pw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
fF=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Rha=function(a,b){switch(a.style){case dF.CHAPTER_MARKER:return b?8:5;case dF.AD_MARKER:return 6;case dF.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.gF=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.hF=function(a){return"crn_"+a};
g.iF=function(a){return"crx_"+a};
Sha=function(){this.B=g.gF;this.u=[]};
Tha=function(a,b,c){var d=[];for(b=jF(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};
kF=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};
Uha=function(a){return a.u.slice(jF(a,0x7ffffffffffff),a.u.length)};
jF=function(a,b){var c=yb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
lF=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};
mF=function(a,b,c,d){g.C.call(this);this.X=a;this.Y=b;this.K=c;this.R=d;this.C=NaN;this.F=this.I=this.started=!1;this.B=[];this.P=new g.F(this.fk,250,this);g.D(this,this.P);this.D=new g.F(this.fk,0,this);g.D(this,this.D);this.u=new Sha};
nF=function(a,b){if(!a.na()){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.xb(e,d,f.B);0<=d&&g.nb(e,d)}a.fk()}};
oF=function(a,b){var c=a.Lk().filter(function(d){return d.namespace===b});
nF(a,c);return c};
pF=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};
qF=function(a,b){var c=[];if(!b.length)return c;b.sort(g.gF);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};
Vha=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.R(g.hF(e.namespace),e):a.R(g.iF(e.namespace),e)}};
rF=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isHeadless?!1:d.isHeadless;var e=void 0===d.Ro?!1:d.Ro,f=void 0===d.ou?!1:d.ou;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isHeadless=c;this.Ro=e;this.ou=f;this.videoDuration=d};
uF=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.O.call(this);var m=this;this.fa=a;this.u=b;this.F=c;this.Ja=new bF;this.ce=h||null;this.aa=new TA(a,b);this.K=new xha(this.aa,b,this.F,d);a=Aha(this.K,e,f&&f.id);this.D=new hA(this.u,a.audio,(0,g.z)(this.UB,this));this.B=new hA(this.u,a.video,(0,g.z)(this.UB,this));sF(this,this.D);sF(this,this.B);this.B.C.fa=this.D.C;this.C=null;this.kb={updateend:this.WQ,error:this.jO};this.Oe=new g.F(this.Uh,0,this);g.D(this,this.Oe);this.Dc=new g.F(this.Uh,1E3,this);
g.D(this,this.Dc);this.sf=new g.F(this.Uh,void 0,this);g.D(this,this.sf);this.fd=new g.F(this.Uh,1E4,this);g.D(this,this.fd);this.Y=this.I=NaN;this.Ga=this.Cc=0;this.Aa=this.Nb=this.ma=!1;this.Ta="";this.Ya=new KA(5);this.Qa={};this.Zb=NaN;(this.P=Gha(this.u,this.fa,this.Ya,function(n,p){return tF(m,n,p)}))&&this.P.subscribe("ctmp",this.dd,this);
this.R=new $B(this.F,this.u,this.B,this.D,l);g.D(this,this.R);this.R.subscribe("ctmp",this.dd,this);this.X=new cC(this.F,this.B,this.D,this.u,this.R);g.D(this,this.X);Wha(this,this.X);this.ke=NaN;this.Qc=null;this.ia=NaN;this.Ne=!1;this.kc=0;this.ha=!1};
Xha=function(a){var b=a.B.u.index;a.Qc=new Iha({Fj:a.u.Fj,rf:a.u.D.rf,Qf:b.Qf,Xb:function(){return b.Xb()},
bo:function(){return b.bo()}})};
vF=function(a,b){b=b||a.B&&a.B.B&&a.B.B.startTime||a.I;var c=a.B;var d=a.K;var e=d.D&&d.D.index.Gh(b)||0;d.ha!=e&&(d.ia={},d.ha=e,VD(d,d.F));dE(d);d.D&&!d.D.index.Uc()&&(d.ha=-1);d=d.D;c.u!=d&&(c.u=d);c=a.D;d=a.K.I;c.u!=d&&(c.u=d)};
wF=function(a,b){a.Nb=b;a.ha||(a.ma=!0)};
xF=function(a){a.C&&a.C.u&&a.C.B&&(wt(a.C.u,a.kb,a),wt(a.C.B,a.kb,a));iA(a.D,null);iA(a.B,null);a.C=null};
zF=function(a,b){b=void 0===b?!1:b;xF(a);b?a.ha=!0:a.u.xi?wF(a,a.Ne):wF(a,!1);yF(a)};
BF=function(a){a.C&&EB(a.C)&&(zF(a),a.u.xB&&AF(a,!0,"fmt.unplayable",{unexpected:1}))};
DF=function(a,b,c){var d=a.R;if(2===d.B||3===d.B||a.ma&&(!SA(a.fa)||a.Nb)||a.u.zh&&!SA(a.fa))return!1;if(a.F.isManifestless){if(0<b.D.length&&b.B&&-1==b.B.B||b.D.length>=a.u.sI&&!a.u.Zb||!a.u.nB&&0<b.D.length&&!a.u.D.rf)return!1;if(b.R)return!a.F.isLive||!isNaN(a.Zb)}if(JA(b))return!1;if(!(b.B||a.F.isManifestless&&a.u.Zb&&b.R)){if(!b.u.Fe())return!1;tA(b,a.I)}d=b.D.length+c.D.length;(DA(b)||DA(c)||a.F.isLive&&(!a.u.Zb||!b.D.length))&&--d;if(d+1>=a.u.AI)return!1;d=b.B;if(!d)return!0;if(!Ow(d.u.B))return!1;
4==d.type&&d.u.Fe()&&(b.B=g.db(d.u.Yv(d)),d=b.B);if(!d.F&&!d.u.ek(d))return!1;var e=a.F.he||a.F.I;if(a.F.isManifestless&&e){e=b.u.index.Xb();var f=c.u.index.Xb();e=Math.min(e,f);if(0<b.u.index.D&&0<e&&d.B>=e)return b.Y=e,c.Y=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(FA(b)&&!a.u.ma)return!0;if(d.F||vA(b)&&vA(b)+vA(c)>a.u.Ob)return!1;e=!b.F&&!c.F;f=b==a.B&&a.ha;if(!(c=!!(c.B&&!c.B.F&&c.B.I<d.I)&&(!a.F.isManifestless||c.B&&c.B.I&&d.I)&&e&&!f||a.u.ha&&!b.F&&c.F)&&(c=Ku(d))){c=d.I;a:if(d=a.R,d=d.u?
d.u.Ce:null,a.ha&&d)a=d.startSecs+d.durationSecs;else{d=CF(a,b,!0);!cE(a.K)&&0<a.u.P&&(e=((0,g.N)()-a.Cc)/1E3,d=Math.min(d,a.u.P+a.u.ce*e));d=a.I+d;if(a.u.Ql&&(e=Yha(a)+a.u.Ql,e<d)){a.dd("mrl","ori."+d+";mod."+e,!0);a.u.bH&&(a.Cc=(0,g.N)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
FF=function(a,b,c){if(DF(a,b,c))if(c=Zha(a,b,c),a.u.EB&&a.F.isManifestless&&!b.R&&0>c.u[0].B)a.dd("invalidsq",Hu(c.u[0]));else{if(a.ub){var d=a.R;var e=c.u[0].B;d=0>e&&!isNaN(d.D)?d.D:e;e=a.R;var f=0>d&&!isNaN(e.F)?e.F:c.u[0].K;if(e=$ha(a.ub.te,f,d,c.u[0].u.info.id))d="decurl_itag_"+c.u[0].u.info.Yb()+"_sg_"+d+"_st_"+f.toFixed(3)+".",a.dd("sdai",d),c.F=e}a.u.Ns&&-1!=c.u[0].B&&c.u[0].B<a.F.Hd&&(c=b.u.ql(a.F.Hd,!1));d=c.u[0].B;b.ha===d?b.fa++:(b.ha=d,b.fa=0);20<b.fa&&!b.X&&(a.dd("requestLoopRequest",
"segNum."+d,!0),g.Fo(new g.tr("b172965563","requestLoopRequest.segNum."+d)),b.X=!0);a=EF(a,c);b.D.push(a);b.B=g.db(a.info.u)}};
Zha=function(a,b,c){if(b.R){if(a.F.isLive){var d=a.F.Hd&&a.F.I?b.u.ql(a.F.Hd,!1):b.u.Kj(Infinity);d.wf=a.Zb}else d=b.u.ql(0,!1);a.P?0==d.wf&&(d.D=a.P.X):d.D=a.ke;return d}d=b.B;if(!d.u.Fe())return d.u.tf()?(a=VA(a.aa,b.u.info.zb,c.u.info.zb,0),a=d.u.Sm(d,a)):a=d.Ok(),a;var e=d.I-a.I,f=!d.range||0==d.rb&&0==d.C?0:d.range.length-(d.C+d.rb),h=d.u;aia(a,b,e)&&0==f&&(a.F.isManifestless?h=b.u:(h=d.startTime+GF,d.rb&&(h+=d.duration),tA(b,h),d=b.B,h=d.u));h.tf()?(c=VA(a.aa,h.info.zb,c.u.info.zb,e,Dha(a.K)&&
a.Aa),d=bia(d,c,EA(b))):(0>d.B&&(c=Ou(d),c.pr=""+b.D.length,a.X.C&&(c.sk="1"),a.dd("nosq",d.R+";"+g.vB(c))),d=h.Ok(d));a.ha&&d.u.forEach(function(l){l.type=6});
return d};
aia=function(a,b,c){if(!EA(b)||!b.u.Fe())return!1;var d=Math.min(15,.5*CF(a,b,!0));return FA(b)||c<=d||a.K.Y};
bia=function(a,b,c){b=a.u.Sm(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!=a.u)b=a.u.Sm(a,b.u[0].rb);else{c=b.u[b.u.length-1];var d=c.rb/b.range.length;!c.D&&.4>d&&(b=a.u.Sm(a,b.range.length-c.rb))}return b};
cia=function(a,b){var c=Uw(b),d=a.aa,e=Math.min(2.5,PA(d.B));d=WA(d);var f=Ju(b.u[0]),h=yw(b.B.u),l=a.u.zh,m;a.Qc?m={Ng:f,aj:h,Fm:l,dj:a.Qc,qb:b.u[0].B,wf:b.wf}:m={Ng:f,aj:h,Fm:l};return new Yy(a.fa,c,c-e*d,m)};
EF=function(a,b){Ku(b.u[b.u.length-1])&&HF(a,Cha(a.K,b.u[0].u));var c=cia(a,b);a.u.sH&&(c.F=[]);var d={dm:Math.max(0,b.u[0].K-a.I)};a.u.wi&&Sw(b)&&b.u[0].u.info.video&&(d.BG=Fha(a.K));a.ha&&(d.ds=!0);return new Hz(a.u,b,c,a.Qa,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.Ab.tj()||e.mk||!(!a.C||a.ma||3<wA(h,a.I))){var l=a.u.Sl;if(!(!l||4<=e.state||e.mk<l||Nw(e.info.B,a.u,a.Qa))){l=a.Qa;var m=xw(Mw(e.info.B));l=Lw(l,m);l.u||l.B||l.started||(l=Vw(e.info,
!0,a.u.Rl))&&EF(a,l)}if(!a.na()&&2<=e.state){l=a.Ja;var n=e.info.u[0].u;m=!l.B&&n.info.video;n=!l.u&&n.info.audio;4===e.state?m?l.tick("vrr"):n&&l.tick("arr"):5===e.state?m?(l.B=e.Ld(),wp(4)):n&&(l.u=e.Ld()):3===e.state&&m&&wp(4);4<=e.state&&(a.u.Aa&&(l=Zy(e.timing),m=e.timing,a.dd("rqs",g.vB({rn:e.Mr.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.Ab.tj(),d:m.F?m.F.join(""):""}))),e.vH&&a.dd("sbwe3","1",!0));if(4==e.state)CA(h,e),Sw(e.info)&&IF(a,h,f,!0),a.Uh();
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 instanceof Hz&&f.mk&&Sz(f,!0),e.dispose();else{if(!e.isFailed()&&e.Oo&&2<=e.state&&4!=e.state)if(f=e.Ab?e.Ab.qe("X-Response-Itag"):null){f=Eha(a.K,f);h=e.info.range.length-f.Qt();f.D=!0;e.info.u[0].u.D=!1;l=f.wm(h)[0];e.info=l;if(e.le){h=e.le;l=l.u;h.B=l;m=l[0].range;n=Tv(h.u[0].u);Tv(g.db(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 Mv([new Uint8Array(n.buffer,
r.start-m.start,r.length)])}}e.Oo=!1;h=a.B;h.u!=f&&(h.u=f);h=a.B;h.B&&(h.B.u=f);a.V("constraint",f.info.Ma().quality);(h=e.Ab?e.Ab.qe("X-Segment-Lmt"):null)&&f instanceof Tx&&(isNaN(f.lastModified)||f.lastModified==h||CA(a.B,e))}else e.Oo=!1;if(5==e.state){if(JF(a,e),a.R&&(f=a.R,h=e.info,l=a.ub,0!==f.B&&l&&h.u[0].isVideo()))if(h.u[0].B>f.D&&(f.D=NaN,f.F=NaN),f.u&&f.u.qb===h.u[0].B)if(m=f.u.Ce.event,"start"===m||"continue"===m){if(1===f.B||5===f.B)f.D=h.u[0].B,f.F=h.u[0].K,f.B=2,f.V("ctmp","sdai",
"joinad_sg_"+f.D+"_st_"+f.F.toFixed(3),!1),dia(l.te,f.u.Ce)}else f.B=5;else 1===f.B&&(f.B=5)}else if(a.u.fa&&Tz(e)&&!(4<=e.state)&&!JF(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&(f=e.info.u[0].u,h=e.Yg,yw(f.B.u)&&(l=g.tf(e.Ab.Qm()||""),a.dd("dldbrerr",l||"none")),Qz(e)?(l=(f.info.video&&1<f.B.B||410===e.hj||500===e.hj||503===e.hj)&&!aE(a.K),m=Iz(e),n=f.info.video?a.B:a.D,l&&(m.stun="1"),AF(a,!1,h,m),a.na()||(l&&$D(a.K,f),a.u.yn&&1==e.info.u.length&&0<e.info.u[0].C&&f!=n.u&&a.Aa?a.V("reattachrequired"):
(CA(n,e),a.Uh()))):yw(f.B.u)?(a.V("localplaybackfailed"),AF(a,!1,"net.closed",{err:e.Yg,rn:e.Mr.toString()})):(AF(a,!1,h,Iz(e)),e.info.Ng()?(f.F=h,a.Uh()):AF(a,!0,"net.retryexhausted",{err:h,rn:e.Mr.toString()})));a.Uh();a.u.Ta&&4<=e.state&&Qz(e)&&Nw(e.info.B,a.u,a.Qa)&&(f=a.Qa,h=xw(e.info.B.u),f=Lw(f,h),f.D+a.u.Ta*Kw(f)>(0,g.N)()||(e=Vw(e.info,!1,a.u.Rl))&&EF(a,e))}}}e=void 0}return e},d)};
HF=function(a,b){b&&a.V("videoformatchange",b);a.u.NH&&a.K.Ob&&a.V("audioformatchange",bE(a.K,"a"))};
JF=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;eia(a,d,b);b.info.Ng()&&!Rw(b.info)&&(g.Cb(Uz(b),function(e){Jy(d.C,e)}),a.V("metadata",c));
lA(d);return!!Fy(d.C)};
eia=function(a,b,c){if(a.F.isManifestless&&b){b.R&&(c.na(),4<=c.state||c.Ab.tj()||Tz(c),b.R=!1);c.ay()&&a.Ya.C(1,c.ay());b=c.eF();c=c.gD();a=a.F;for(var d in a.u){var e=a.u[d].index;e.Ai&&(b&&(e.D=Math.max(e.D,b)),c&&(e.u=Math.max(e.u||0,c)))}}};
KF=function(a){a.Oe.Sb()};
NF=function(a){var b=a.C.u,c=a.C.B;if(fia(a)){if(a.u.Is){if(!b.qm()){var d=Fy(a.D.C);d&&LF(a,b,d)}c.qm()||(b=Fy(a.B.C))&&LF(a,c,b)}a.Ga||(a.Ga=(0,g.N)())}else{if(a.Ga){d=(0,g.N)()-a.Ga;var e=wA(a.D,a.I),f=wA(a.B,a.I);a.dd("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Ga=0}if(a.P){d=a.P;e=a.D;f=eA(a.C.B.Se());if(d.F)d=Hha(d,f);else{if(f=Fy(e.C)){var h=f.B;h&&h.C&&h.B&&(e=e.D.length?e.D[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.wf&&e.Ab.tj()&&(d.F=
e,d.P=h,d.C=f.info,d.I=g.A()/1E3,d.R=d.I,d.K=d.C.startTime)}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;MF(a,a.B,c)&&(d=!0,e=a.Ja,e.D||(e.D=g.A(),e.tick("vda"),ZE("vda","video_to_ad"),e.C&&wp(4)));if(a.C&&!EB(a.C)&&(MF(a,a.D,b)&&(d=a.Ja,d.C||(d.C=g.A(),d.tick("ada"),ZE("ada","video_to_ad"),d.D&&wp(4)),d=!0),!a.na()&&a.C)){!a.u.aa&&sA(a.B)&&sA(a.D)&&BB(a.C)&&!a.C.Kf()&&(e=jA(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,BB(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.de.webkitSourceEndOfStream(e.de.EOS_NO_ERROR)),
OA(a.fa)));e=a.u.KI;f=a.u.GC;d||!(0<e||f)||!BB(a.C)||sA(a.B)||sA(a.D)||(b.us(a.I,f,e),c.us(a.I,f,e));if(c=d)c=a.C,c=!(c.u?c.u.supports(0):FB());c&&KF(a)}}};
fia=function(a){var b;(b=JA(a.B))||(b=a.R,b=1===b.B||2===b.B||3===b.B);if(b)return!0;if(a.u.Qa)return!1;if(b=a.X.C){b=a.aa;var c=a.B,d=a.D;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=Py(c.C).concat(Py(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.rb;c=c.u.info.zb+d.u.info.zb;e/=c;b=10<e?!0:10>c*(10-e)/XA(b)}(b=!b)||(b=a.B,b=0<b.D.length&&1==b.C.B.length&&Fy(b.C).info.P<b.ma)}if(b)return!0;if(!a.Aa||!a.u.Ja||10>a.I||360<a.B.u.info.Ma().Fc)return!1;b=GA(a.B,a.I,a.u.Ja)||GA(a.D,
a.I,a.u.Ja);return(0<a.B.D.length||0<a.D.D.length||DF(a,a.B,a.D)||DF(a,a.D,a.B))&&b};
MF=function(a,b,c){if(c.Kf())return!0;if(!c.lx())return!1;var d=Fy(b.C),e;if(!(e=!d||6==d.info.type)&&(e=a.R)){e=a.R;var f;if(f=0!=e.B&&b===e.aa)e=BA(e.P),f=d.info.B>(e?e.B:-1);e=!!f}if(e)return!1;e=d.info;f=jA(b);!f||f.D||Lu(f,e)||c.abort();!c.qq()||yB()?c.WA(e.u.info.containerType,e.u.info.mimeType):e.u.info.containerType!=c.qq()&&a.dd("ctu","ct."+yB()+";prev_c."+c.qq()+";curr_c."+e.u.info.containerType);f=e.u.K;a.u.Mt&&f&&(e=0+f.duration,f=-f.u,0==c.Nt()&&e==c.Yx()||c.qA(0,e),f!=c.yc()&&(c.ip(f),
Qy&&Vy(a.D.C,c.ly())));if(a.F.C&&0==d.info.C&&(g.aw(d.info.u.info)||a.u.gE)){if(null==c.qm()){e=jA(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.X,f=d.info.X,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Ab(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.qm(),f=d.info.u.u,e=e!==f&&!g.Ab(e,f);e&&a.dd("initchg","it."+d.info.u.info.id+".ty."+d.info.type+".seg."+d.info.B);a.u.kb&&!e&&(g.aw(d.info.u.info)?(nv(Yv(d),1836019574),nv(Yv(d),1718909296)):(e=new qv(Yv(d)),Lv(e),vv(e,524531317,!0),d.u=
d.u.split(e.start+e.u).ln),d.C=!1)}a.u.Bn&&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)&&LF(a,c,d))return!0;if(e)return!1;e=a.I+CF(a,b,!1);if(!(e=d.info.K>e)){a:if(a.u.Oe&&(!d.info.C||d.info.D)&&a.dd("sba",c.sb({as:Hu(d.info)})),e=d.C?d.info.u.u:null,f=Tv(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=OF(a,c,f,d.info,e),"s"==e)a.kc=0,a=!0;else{a.u.ut||(PF(a,b),c.abort(),yA(b));if("i"==e||"x"==e)QF(a,"checked",e,d.info);else{if("q"==
e&&(d.info.isVideo()?(e=a.u,e.I=Math.floor(.8*e.I),e.X=Math.floor(.8*e.X),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Ub=Math.floor(.8*e.Ub),e.F=Math.floor(.8*e.F)),!c.Kf()&&!a.C.isView&&c.us(Math.min(a.I,d.info.startTime),!0,5))){a=!1;break a}a.V("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();nA(b,d);return!0};
QF=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.F=e,d.u.info.video&&!aE(a.K)&&$D(a.K,d.u)):"i"==c&&(15>a.kc?(a.kc++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Ou(d);d.mrs=DB(a.C);d.origin=b;d.reason=c;AF(a,f,e,d)};
RF=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=jx(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,bB(h,b.qb)||(h.ME(b),e=!0))}bha(a.X,b,c,e);c&&(a=a.R,a.R.Ya&&(c=a.u&&a.C&&a.u.qb==a.C.qb-1,c=a.u&&c&&"stop"!=a.u.Ce.event&&"predictStart"!=a.u.Ce.event,a.C&&a.C.qb<b.qb&&(c?aC(a,a.C):a.K=!0),a.C=b))};
LF=function(a,b,c){c.info.u.Fe();var d=c.info.u.u;if(null==d||b.qm()==d)return!1;var e=d,f=b.Ot();if(a.u.Bn&&f&&b.isView()&&g.aw(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=kfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.dd("fenc","1")}f=null;h=c.info.u.wm(0);h.length&&(f=h[0].u[0]);a.u.Gp&&b.abort();d=OF(a,b,e,f,d);return"s"!=d?(QF(a,"sepInit",d,c.info),!0):b.Kf()};
OF=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=Wz(b.Se()).replace(/,/g,"_");d=g.tf(f.message);a.dd("quex","br."+c+";t."+(a.C?b==a.C.B?"v":"a":"u")+";e."+d);return"q"}return EB(a.C)?"m":"s"};
sF=function(a,b){b.C.subscribe("needkeyinfo",a.MN,a);b.C.subscribe("error",a.oP,a);b.C.subscribe("avsyncissue",a.nP,a);var c=(0,g.z)(a.qP,a,b);b.C.subscribe("placeholderinfo",c,void 0);c=(0,g.z)(a.rP,a,b);b.C.subscribe("placeholderrollback",c,void 0);c=(0,g.z)(a.sP,a,b);b.C.subscribe("segmentinfo",c,void 0);c=a.pP.bind(a);b.C.subscribe("localmediachange",c,void 0)};
Wha=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.ha||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.dd(c,d,!1)});
b.subscribe("error",function(c,d,e){AF(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.I=c})};
CF=function(a,b,c){if(a.ma)return 1;var d=b.u.info.audio?a.u.K:a.u.I;!a.u.ma&&cE(a.K)&&(d=Math.max(d,b.u.info.audio?a.u.Ub:a.u.X));c&&(d+=a.u.Ob);var e=cE(a.K)?b.B?b.B.u.info.zb:b.u.info.zb:b.zb;d/=e;0<a.u.ng&&a.C&&BB(a.C)&&(b=b.u.info.video?a.C.B:a.C.u)&&!b.Kf()&&(b=b.Se(),e=Xz(b,a.I),0<=e&&(b=a.I-b.start(e),d+=Math.max(0,Math.min(b-a.u.ng,a.u.hB))));0<a.u.F&&(d=Math.min(d,a.u.F));a.u.Jg&&c&&!cE(a.K)&&(c=a.K,c=ZD(c,g.db(c.C))+ZD(c,c.R.u[0]),c=a.u.Jg*(c/WA(a.aa)),c<d&&15>c&&a.dd("bwcapped","1",!0),
c=Math.max(c,15),d=Math.min(d,c));return d};
Yha=function(a){if(!a.ce)return Infinity;var b=g.Ke(a.ce.Lk(),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.I)return c.start/1E3;return Infinity};
gia=function(a,b){if(a.C&&a.C.B){b-=!isNaN(a.ia)&&a.u.Dc?a.ia:0;a.I!=b&&a.resume();if(a.X.C&&!EB(a.C)){var c=a.I<=b&&b<a.I+10,d=cA(a.C.B.Se(),a.I+GF);c&&d&&(a.X.C=!1)}a.X.C||(a.I=b);a.Dc.Sb()}};
hia=function(a,b){var c=pA(a.B).find(function(d){return d.startTime>=b&&tF(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
tF=function(a,b,c){if(!(a.B.u.Fe()&&a.D.u.Fe()&&a.C&&a.C.B&&a.C.u))return!1;if(c&&a.F.isManifestless&&(-1==a.B.I||-1==a.D.I))return!0;var d=rA(a.B,b,c);if(isNaN(d))return!1;a=rA(a.D,a.u.ia?b:d,c);return isNaN(a)?!1:!0};
IF=function(a,b,c,d){c.Fe()||c.D||!Ow(c.B)||(d=c.wm(d?vga(a.aa,c.info):0),g.Cb(d,function(e){if("f"!=e.u[0].u.info.Db){var f=EF(this,e);Rw(e)&&(b.D.push(f),b.B=g.db(f.info.u))}},a),c.D=!0)};
AF=function(a,b,c,d){a.na()||(d=new uB(c,b,d),g.Sa(a),g.vB(d.details),a.V("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
yF=function(a){PF(a,a.D);PF(a,a.B);yA(a.D);yA(a.B)};
PF=function(a,b){if(20<b.fa&&!b.X){var c=b.ha;a.dd("requestLoopDispose","segNum."+c,!0);g.Fo(new g.tr("b172965563","requestLoopDispose.segNum."+c));b.X=!0}};
iia=function(a,b){var c=b.info.video?a.B:a.D;null!=c&&IF(a,c,b,!1)};
jia=function(a,b){Ao(a,"version",b)};
TF=function(){this.u={};var a=g.xq("CONSISTENCY");a&&SF(this,{encryptedTokenJarContents:a})};
SF=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.wq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
VF=function(){var a=g.L("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.L("INNERTUBE_CLIENT_NAME")&&(this.localStorage=UF(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.u=void 0)};
WF=function(){VF.u||(VF.u=new VF);return VF.u};
UF=function(a){return void 0===a.localStorage?new zq("yt-client-location"):a.localStorage};
XF=function(a){var b=this;this.u=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c})};
g.ZF=function(a,b){b=void 0===b?!1:b;var c=g.L("INNERTUBE_CONTEXT");if(!c)return g.Hs(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.Wb(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.ht.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.jt(0,165)?m="USER_INTERFACE_THEME_DARK":g.jt(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.vo("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(m="USER_INTERFACE_THEME_DARK");l=l?m:Vea()||m;h.userInterfaceTheme=l;if(g.vo("web_log_connection")&&!d){a:{if(m=
(l=window.navigator)?l.connection:void 0){l=YF[m.type||"unknown"]||"CONN_UNKNOWN";m=YF[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("kevlar_woffle")&&XF.u&&("MWEB"===h.clientName||"WEB"===h.clientName)&&(c.client.mainAppWebInfo||
(c.client.mainAppWebInfo={}),c.client.mainAppWebInfo.pwaInstallabilityStatus=XF.u.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN");g.vo("web_populate_time_zone_itc_killswitch")||(l="undefined"!==typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:void 0,l&&(h.timeZone=l));(l="MWEB"===h.clientName||g.vo("it_context_exp_goog_cookie_killswitch")?g.xq("EXPERIMENTS_DEBUG"):vq.get("EXPERIMENTS_DEBUG"))?h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;
h=yo();TF.u||(TF.u=new TF);l=g.Lb(TF.u.u);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.ht.getInstance();h=g.jt(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.Rt())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.vo("web_enable_client_location_service")&&
(d=WF(),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=hq(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});!Qs()&&d&&(c.adSignalsInfo.consentBumpParams=d)}return c};
$F=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
kia=function(){var a=null;ft().then(function(b){return a=b},function(b){return a=$F(b)});
return a};
lia=function(){var a=Mm(1E3,"NO_BID");return Am(Cm(pda([ft(),a]),$F),function(){return a.cancel()})};
aG=function(a){return a.Zb?g.jt(g.ht.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
bG=function(a){this.player=a;this.C=this.u=1;this.B=g.P(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3};
gG=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Zp,f=c.Kd;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().Js,l={AD_BLOCK:a.u++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:aG(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Ni(),LACT:Bp(),LIVE_INDEX:e?a.C++: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.player.getVisibilityState(),P_H:g.cG(a.player).getPlayerSize().height,
P_W:g.cG(a.player).getPlayerSize().width,YT_REMOTE:h?h.join(","):""},m=gq(fq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(e=a.player.T().Ja)&&eq(b)&&(d.forced_experiments=e);b=bq(g.en(b,l),d);a.player.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!==d.length)return wm(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;e=e.next().value;g.Q(a.player.T().experiments,"get_midroll_info_wexit")&&(f=mia(a,b,l),f={rpc_data:JSON.stringify(f)},b=bq(b,f));f={};c.oauthToken&&dq()&&(f.Authorization="Bearer "+c.oauthToken);
c=Xp(e);e=a.player.T();return g.Q(e.experiments,"get_midroll_info_wexit")?Us(b,{Nx:!0,format:"RAW",headers:f,method:"POST",tc:c,timeout:a.B,withCredentials:!0}):g.Q(e.experiments,"get_midroll_info_use_client_rpc")?(c=dG(a.player.app),a=eG(a,b,l),fG(c,a,"/youtubei/v1/player/ad_break")):g.JD(e)?Us(d,{Nx:!0,format:"RAW",headers:f,method:"POST",tc:c,timeout:a.B,withCredentials:!0}):Us(b,{Nx:!0,format:"RAW",headers:f,method:"GET",timeout:a.B,withCredentials:!0})};
oia=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=cq(b),f=hG(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=hG(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Wp(hq(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=[];nia.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};
pia=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 iG&&(h.clientName=iG[e[0]]),e[1]in jG&&(h.platform=jG[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};
eG=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=qia.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=ria.test(b),h=sia.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=tia.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var m=uia.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.CD(a.player.T()),p=g.ZF(a.player.getVideoData(1).Ug,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";oia(p,b,r.toString(),a.player.T());var t={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18610,autonavState:aG(a.player.T())},w={};pia(w,c.YT_REMOTE,g.Q(a.player.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=kG.includes(n)?void 0:g.xq("PREF")){w=a.split(/[:&]/);for(var y=0,x=w.length;y<x;y++){var B=w[y].split("=");if(("SML"===B[0].toUpperCase()||"GSML"===B[0].toUpperCase())&&1<B.length&&"TRUE"===B[1].toUpperCase()){p.user.lockedSafetyMode=
!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in lG)for(a=a.split(/[:&]/),y=lG.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),x=0,B=a.length;x<B;x++){var E=a[x].split("=");if(E[0]===w&&parseInt("0x"+E[1],16)&y){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=via.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:Wp(hq(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};
mia=function(a,b,c){var d=g.xq("dkv"),e=wia.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.CD(a.player.T()),h={clientName:a.player.T().ha.mu.toString(),host:f,Y4:void 0};f=kG.includes(f)?void 0:g.xq("PREF");return{adBreakRequest:eG(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:18610}};
mG=function(a,b,c,d,e,f){g.C.call(this);this.tb=a;this.ib=b;this.uc=c;this.Da=d;this.B=e;this.u=f};
yia=function(a,b,c){c.nn?(nG(a.tb.get(),"opportunity_type_ad_break_service_response_received",function(){return[]},b.slotId),xia(a.B,b)):oG(a.u,c.ph,b.slotId)};
zia=function(a,b,c,d){var e=pG(a.Da.get(),1);nG(a.tb.get(),"opportunity_type_ad_break_service_response_received",function(){return qG(a.uc.get(),c,d,e.clientPlaybackNonce,e.uC,e.daiEnabled,e)},b)};
rG=function(a){this.value=a};
sG=function(a){this.value=a};
tG=function(a){this.value=a};
uG=function(a){this.value=a};
vG=function(){rG.apply(this,arguments)};
wG=function(a){this.value=a};
xG=function(a){this.value=a};
yG=function(a){this.value=a};
zG=function(a){this.value=a};
AG=function(a){this.value=a};
BG=function(a){this.value=a};
CG=function(){rG.apply(this,arguments)};
DG=function(a){this.value=a};
EG=function(a){this.value=a};
FG=function(a){this.value=a};
GG=function(a){this.value=a};
HG=function(a){this.value=a};
IG=function(a){this.value=a};
JG=function(a){this.value=a};
KG=function(a){this.value=a};
LG=function(a){this.value=a};
MG=function(a){this.value=a};
NG=function(a){this.value=a};
OG=function(a){this.value=a};
PG=function(a){this.value=a};
QG=function(a){this.value=a};
RG=function(a){this.value=a};
SG=function(a){this.value=a};
TG=function(a){this.value=a};
UG=function(a){this.value=a};
VG=function(a){this.value=a};
WG=function(a){this.value=a};
XG=function(a){this.value=a};
YG=function(a){this.value=a};
ZG=function(a){this.value=a};
$G=function(a){this.value=a};
aH=function(a){this.value=a};
bH=function(a){this.value=a};
cH=function(){rG.apply(this,arguments)};
dH=function(){rG.apply(this,arguments)};
eH=function(a,b,c){if(c&&c!==a.ab)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.va.u.has(c.value))return!1;return!0};
fH=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)};
gH=function(a,b,c){c=void 0===c?!1:c;Ya.call(this,a);this.Ul=c;this.args=[];b&&this.args.push(b)};
Aia=function(a,b,c,d,e,f,h){b=hH(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof gH?b:iH(a,d,e,b,c);return a instanceof gH?a:[a]};
jH=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)};
kH=function(a,b){this.C=b;this.triggerType="trigger_type_before_content_video_id_started";this.triggerId=a(this.triggerType)};
lH=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.ab&&a.hc instanceof kH};
mH=function(a,b){this.u=b;this.triggerType="trigger_type_layout_id_entered";this.triggerId=a(this.triggerType)};
nH=function(a,b,c,d,e,f){this.C=b;this.D=c;this.visible=d;this.F=void 0===e?!1:e;this.I=void 0===f?!1:f;this.triggerType="trigger_type_media_time_range";this.triggerId=a(this.triggerType)};
oH=function(a){return a?"layout:  "+a.layoutType:""};
pH=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof nH&&a.F||a instanceof mH&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
S=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 g.tr(a);if(a.args)for(var f=g.q(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.ab:"");c&&(d.layout=oH(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Is(a)}};
hH=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={gh:new Gn(-0x8000000000000,-0x8000000000000),Ov:d},null!=c&&(d.Wn=new Gn(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={gh:new Gn(0x7ffffffffffff,0x8000000000000),Ov:d},null!=c&&(d.Wn=new Gn(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||S("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 gH("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={gh:new Gn(a,e),Ov:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Wn=new Gn(a,e)}return d;default:return new gH("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
qH=function(a,b,c,d,e,f){g.C.call(this);this.tb=a;this.uc=b;this.Tw=c;this.Ca=d;this.u=e;this.Da=f};
Bia=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&&jH(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=hH(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof gH||d.push({range:f.gh,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(","),S("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
rH=function(a,b,c,d){this.C=a;this.Ce=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
sH=function(a,b,c,d,e){g.eF.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};
tH=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
uH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Cia=function(a){return a.end-a.start};
vH=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Gn(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Gn(Math.max(0,b.C-b.u),0x7ffffffffffff):new Gn(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 Gn(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Ce;a=1E3*d.startSecs;if(c){if(a<b.B)return new Gn(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new Gn(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new Gn(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
wH=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.T=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.xH=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];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Ee("B",null,h||l));d.italics&&(h=Ee("I",null,h||l));d.strikethrough&&(h=Ee("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Ee("A",null,h||l),g.jd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Ee("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Ee("SPAN",null,b)};
yH=function(a,b,c,d){d=void 0===d?!1:d;g.C.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);this.ea()};
Eia=function(a,b){a.callback=b;a.C=[];wC(a.experiments)?zH(a):Dia(a)};
zH=function(a){if(!a.na())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Fia(a,c);a.ea();navigator.requestMediaKeySystemAccess(b,d).then(Eo(function(e){if(!a.na()){a.ea();c.keySystemAccess=e;if(qC(c)){e=mB();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())AH(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())AH(a,c,f.value)}a.C.push(c);a.ba("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),zH(a)):a.callback(a.C)}}),Eo(function(){a.ea();
a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;a.F||a.u.shift();zH(a)}))}};
AH=function(a,b,c){a.ba("log_robustness_for_drm")?b.B[c.contentType]=c.robustness||!0:b.B[c.contentType]=!0};
Fia=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};qC(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.ba("html5_query_sw_secure_crypto_for_android")&&(rr()||er())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Dia=function(a){if(oC()&&g.Ur)a.ea(),a.C.push(new nC("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Gia(),c=g.fb(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.ea(),a.C.push(a.B[c])):a.ea();a.u=[]}a.callback(a.C)};
Gia=function(){var a=oC();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=mB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
BH=function(a){this.Oa=a};
CH=function(a,b,c){if(c)return Xs();var d={};c=mB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Te().mimeType)){var f=e.Oa.Ma().quality;if(!d[f]||d[f].Te().Zd())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Cb(ax,function(l){(l=d[l])&&h.push(l)});
return h.length?Ys(h):Xs()};
Hia=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
DH=function(a,b,c){a.cpn&&(b=g.Md(b,{cpn:a.cpn}));c&&(b=g.Md(b,{m5:c}));return b};
EH=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
Iia=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)};
Jia=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.Ud=n||"";this.B=""};
FH=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 lB(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new Jia(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};
GH=function(a,b,c){this.Oa=a;this.B=b;this.expiration=c;this.u=null};
Kia=function(a,b){if(!(or||lr()||hr()))return null;var c=FH(b,g.Q(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 CC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
Oia=function(a,b,c,d,e){if(!(or||lr()||hr()))return Xs();var f=Lia(c),h=FH(c,g.Q(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return Xs();g.Q(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||Mia(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.P(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),y=w.next();!y.done;y=w.next())if(y=y.value,!g.Q(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
y&&"373"!==y){y=g.q(h[y]);for(var x=y.next();!x.done;x=y.next())if(x=x.value,x.width){if(!(x.height<p)){var B=g.q(x.D);for(var E=B.next();!E.done;E=B.next())if(E=E.value,h[E]){x.B=E;break}x.B||(x.B=Nia(h,x));if(E=h[x.B]){c.push(x);B="fairplay"===x.Ud?l:null;var G="";"PQ"===x.C?G="smpte2084":"HLG"===x.C&&(G="arib-std-b67");G&&(t=G);n.push(HH(E,[x],e,x.itag,x.width,x.height,x.fps,f,void 0,void 0,B,G));if(!r||x.width*x.height*x.fps>r.width*r.height*r.fps)r=x}}}else m.push(x)}B=n.reduce(function(K,H){return H.Te().isEncrypted()&&
K},!0)?l:null;
d=Math.max(d,g.P(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(HH(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,B,t));return CH(a.D,n,BD(a,b))};
HH=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",y=g.q(a),x=y.next();!x.done;x=y.next())x=x.value,w||(w=x.itag),x.audioChannels&&x.audioChannels>t&&(t=x.audioChannels,w=x.itag);d=new dx(d,"application/x-mpegURL",new Ww(0,t,null,w),new Zw(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Hia(a,b,c);a.D=n?n:1369843;return new GH(d,a,l)};
Lia=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};
Nia=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.Ud===b.Ud&&!e.audioChannels)return d}return""};
Mia=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]};
IH=function(a,b){this.Oa=a;this.u=b};
Pia=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 vw(h.url,!0);if(h.s){var l=h.sp,m=iw(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=Mx(h.type,h.quality,h.itag,h.width,h.height);e.push(new IH(h,f))}}return CH(a.D,e,BD(a,b))};
JH=function(a,b){this.Oa=a;this.u=b};
Qia=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=Mx(c.type,"medium","0");b.push(new JH(d,c.url))}});
return b};
Ria=function(a,b,c){c=Qia(c);return CH(a.D,c,BD(a,b))};
Sia=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=SC(a.ustreamerConfig))};
g.KH=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.LH=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("")};
YH=function(a){for(var b={},c=g.q(Object.keys(XH)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[XH[d]];e&&(b[d]=e)}return b};
ZH=function(a,b){for(var c={},d=g.q(Object.keys(XH)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.pw(f)&&(c[XH[e]]=f)}return c};
bI=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($H)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=$H[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=aI(h.url);g.pw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=aI(a.url),g.pw(a)&&(b["maxresdefault.jpg"]=a));return b};
aI=function(a){return a.startsWith("//")?"https:"+a:a};
cI=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Tia[a];return null};
dI=function(a){return a&&a.baseUrl||""};
eI=function(a){a=g.Zp(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};
fI=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.rh=c)};
Uia=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=gI(d.baseUrl);if(!e)return;d=new g.KH({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.nx=b.audioTracks||[];a.fC=b.defaultAudioTrackIndex||0;a.gC=b.translationLanguages?g.Oc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.T(f.languageName)}}):
[];
a.gt=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Via=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},Xp(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,yp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,yp: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,
yp:0===h?5:7})}}};
Wia=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
hI=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)};
iI=function(a){g.O.call(this);this.u=null;this.C=new g.no;this.u=null;this.I=new Set;this.crossOrigin=a||""};
lI=function(a,b,c){c=jI(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Uc(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),g.mo(d.C,f,{oE:f,mF:e}))}kI(a)};
kI=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=Cla(a,b)}};
Cla=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.oE].Ld(b.mF);c.onload=function(){var d=b.oE,e=b.mF;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);kI(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.fy()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.mI=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};
nI=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;iI.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)};
oI=function(a,b,c){return(a=a.levels[b])?a.dv(c):-1};
jI=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].Ee()>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
pI=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.mI.call(this,a,b,c,0);this.B=null;this.I=d?3:0};
qI=function(a,b,c,d){nI.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].SE(c)};
Dla=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Md(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.rI=function(a,b){g.O.call(this);this.Sa=a;this.adModule=!1;this.adaptiveFormats="";this.RB=this.adSafetyReason=this.adQueryId=this.Vw=null;this.Xw={start:NaN,end:NaN};this.Mp="";this.Ud=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Mg="";this.bx=this.Ss=this.rE=!1;this.eE=null;this.Bp=this.un=this.Ds=this.ru=!1;this.pd=null;this.Yl=!1;this.Ir=NaN;this.Pz={};this.JA=this.cycToken=null;this.author="";this.wh=0;this.ox=!1;this.zj=null;this.jx=
this.HC=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Ek=this.Tp="";this.contentCheckOk=!1;this.yh=0;this.wt=this.gq=!1;this.endSeconds=0;this.Ap=this.Bh=this.Oa=this.Ix=null;this.Vx="";this.Pd=!1;this.Sj=this.lo=0;this.Zw=this.pipable=this.Kh=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Zi=this.isPrivate=this.isListed=this.Oy=this.mutedAutoplay=this.eh=!1;this.dz="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=
this.Ry=this.Lq=this.he=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.cd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.pj=0;this.reloadReason="";this.Wy=this.bE=this.Uj=!1;this.keywords={};this.Ph="";this.vu=0;this.ws=!1;this.liveChunkReadahead=NaN;this.Cu=0;this.vo=null;this.Rq=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.bk=[];this.Of=[];this.racyCheckOk=!1;this.GG={};this.Or=0;this.La=
null;this.autonavState=1;this.XB=null;this.shortDescription="";this.Rg=this.zA=!1;this.kw=this.Zk=this.startSeconds=0;this.yw=this.bC=this.qI=UD;this.suggestions=null;this.Nl=this.mn=void 0;this.mp=null;this.GA=!1;this.expandedSubtitle=this.Rx=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.sx=void 0;this.Ea=[];this.hlsFormats=this.xs="";this.Du=this.jw=this.oh=this.lk=this.fh=this.Qr=this.ku=null;this.Gg="vvt";this.Ge=!1;this.fB=null;this.BI="";this.Fs=NaN;this.Jw=this.Fw=this.Ew=
this.Dw=this.Cw=this.Iw=this.Cs=this.Hw=this.Es=this.Gw="";this.Cp=null;this.pH=!1;this.qd={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.HD=this.GD=NaN;this.an=this.Mq=this.Xl=this.QD=this.ID=!1;this.Vr=!0;this.li={};this.captionTracks=[];this.nx=[];this.fC=0;this.gC=[];this.gt=!1;this.bq=new CC("und",new lB("Default","und",!0));this.Yy=0;this.md=null;this.Vo=[];this.Vl=[];this.bB=this.Xo="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.MC=
this.fq=this.Qg=this.Gx=this.Yw=this.Sw=null;this.ot=!1;this.ue=null;this.My=this.eq=this.useCobaltWidevine=this.CH=this.Hm=this.nk=!1;this.al=this.Em=NaN;this.defraggedFromSubfragments=this.Ui=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.zl=this.dB=this.tn=!1;this.interstitials=[];this.qc=this.Py=!1;this.Br=this.tF=this.Gj="";this.isVisualizerEligible=!1;this.Cv=null;this.Hc="";this.Lh=this.OD=!1;this.rF=this.Bs="";this.Qz=this.Lz=this.Iy=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Xr=!1;this.kp=this.Ll=!0;this.errorDetail=this.userGenderAge="";this.KA=this.LA=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ki=this.errorReason=this.errorCode=null;this.jt=this.it="";this.zh=this.Vn=!1;this.ck=this.Nm=this.Lf=this.Hd=0;this.Qq=this.fetchType=null;this.IG=!0;this.WH=void 0;this.Ts=-1;this.jp=this.Kl=!1;this.mq=
null;this.ba("web_player_ux_module_wait")&&this.Sa.kb&&this.Of.push("ux");this.Kl=this.ba("web_new_autonav_countdown");this.jp=this.ba("web_new_big_thumbnail_endscreen");this.setData(b)};
uI=function(a,b){a.fflags=$C(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Mg=uw(c));a.Ss=R(a.Ss,b.iv_ads_only);a.bx=R(a.bx,b.iv_allow_in_place_switch);a.isPharma=R(a.isPharma,b.is_pharma);a.author=$C(a.author,b.author);a.Tp=gI(b.ttsurl)||a.Tp;a.ox=R(a.ox,b.cc_asr);a.Ek=$C(a.Ek,b.channel_path);a.channelBanner=$C(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.lf=$C(c,a.lf);a.videoCountText=$C(a.videoCountText,b.video_count_text);a.autonavState=YC(a.autonavState,b.autonav_state,Ela);a.clientPlaybackNonce=
$C(a.clientPlaybackNonce,b.cpn);a.subscribed=R(a.subscribed,b.subscribed);a.rawViewCount=ZC(a.rawViewCount,b.view_count);a.shortViewCount=$C(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=$C(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=$C(a.lengthText||"",b.lengthText);a.Au=$C(a.Au||"",b.Au);a.Qp=$C(a.Qp||"",b.Qp);a.title=$C(a.title,b.title);a.subtitle=$C(a.subtitle,b.subtitle);a.Rx=$C(a.Rx,b.expanded_title);a.expandedSubtitle=$C(a.expandedSubtitle,b.expanded_subtitle);
a.Mp=$C(a.Mp,b.aria_label);a.ypcPreview=$C(a.ypcPreview,b.ypc_preview);a.gB=$C(a.gB,b.ypc_origin);a.Ge=R(a.Ge,b.ypc_is_premiere_trailer);a.Bs=$C(a.Bs,b.ypc_clickwrap_message);a.paygated=R(a.paygated,b.paygated);a.pH=R(a.pH,b.requires_purchase);a.showShareButton=!R(!a.showShareButton,b.ss);a.Ll=R(a.Ll,b.showwatchlater);a.kp=R(a.kp,b.shownotifybutton);a.Xr=R(a.Xr,b.copy_share);if(c=b.keywords)a.keywords=sI(c.split(","));if(c=b.rvs)a.suggestions=Yp(c);a.contentCheckOk=R(a.contentCheckOk,b.cco);a.racyCheckOk=
R(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=R(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=$C(a.oauthToken,b.oauth_token);a.Ph=$C(a.Ph,b.kpt);a.visitorData=$C(a.visitorData,b.visitor_data);if(c=b.session_data)a.Ad=Vp(c);if(c=b.endscreen_autoplay_session_data)a.Ix=Vp(c);a.xt=$C(a.xt,b.endscreen_ad_tracking_data);a.uI=R(a.uI,b.wait_for_vast_info_cards_xml);a.EA=R(a.EA,b.suppress_creator_endscreen);a.aE=R(a.aE,b.is_trueview_action);a.VH=$C(a.VH,b.tracking_list);a.it=$C(a.it,b.clip);
a.jt=$C(a.jt,b.clipt);tI(a,b)};
yI=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,w,y,x,B=b.raw_watch_next_response;if(!B){var E=b.watch_next_response;E&&(B=JSON.parse(E))}if(B){a.watchNextResponse=B;var G=a.watchNextResponse.contents;if(G){var K=G.singleColumnWatchNextResults;if(K){var H=ZC(0,b.autoplay_count);if(K.autoplay&&K.autoplay.autoplay&&!K.playlist){var ya=K.autoplay.autoplay.sets,ia={},Oa={},Ra=null;if(ya){for(var Wa=g.q(ya),kc=Wa.next();!kc.done;kc=Wa.next()){var Yb=kc.value.autoplayVideoRenderer;if(Yb&&Yb.compactVideoRenderer){Ra=
Yb.compactVideoRenderer;break}}var Qe=ya[0].autoplayVideo;if(Qe){var ue=Qe.clickTrackingParams;ue&&(ia.itct=ue);ia.autonav="1";ia.playnext=String(H)}}else ia.feature="related-auto";if(Ra){Oa.autonav="1";Oa.video_id=Ra.videoId;var lf=Ra.shortBylineText;lf&&(Oa.author=g.T(lf));var Uf=Ra.title;Uf&&(Oa.title=g.T(Uf))}Oa.endscreen_autoplay_session_data=g.Kd(ia);a.suggestions=[Oa]}}var Qc=G.twoColumnWatchNextResults}var kx=a.watchNextResponse.playerOverlays;if(kx){var Rd=kx.playerOverlayRenderer;if(Rd){var Hd=
Rd.endScreen;if(Hd){var lx=Hd.watchNextEndScreenRenderer;if(lx)var vi=lx.results}var zr=Rd.videoDetails;if(zr){var mx=zr.embeddedPlayerOverlayVideoDetailsRenderer;var Ar=zr.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Ar&&(a.Ux=Ar.title,a.Tx=Ar.byline)}var mf=Rd.actions;if(mf)for(var nx=g.q(mf),Br=nx.next();!Br.done;Br=nx.next()){var ox=Br.value;ox.likeButtonRenderer&&(a.likeButtonRenderer=ox.likeButtonRenderer)}var Pn=null===(c=Rd.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer;
Pn&&(a.multiMarkersPlayerBarRenderer=null===(d=Pn.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.sx=null===(f=null===(e=Pn.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||void 0===f?void 0:f.chapters,a.vR=null===(h=Pn.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer);g.nD(a.Sa)&&(a.Ll=!!Rd.addToMenu);vI(a,Rd.shareButton);var Qn=Rd.productsInVideoOverlayRenderer;Qn&&(a.shoppingOverlayRenderer=Qn.shoppingOverlayRenderer);var px=Rd.autoplay;if(px)var xh=px.playerOverlayAutoplayRenderer}}if(!vi&&
Qc){var qx=Qc.endScreen&&Qc.endScreen.endScreen;qx&&(vi=qx.results)}if(Qc){var Cr=Qc.desktopOverlay&&Qc.desktopOverlay.desktopOverlayConfigRenderer;Cr&&(Cr.suppressShareButton&&(a.showShareButton=!1),Cr.suppressWatchLaterButton&&(a.Ll=!1))}mx&&wI(a,b,mx);var rx=ZC(0,b.autoplay_count);if(vi){for(var uE=Qc||null,Rn=xh||null,Dr=[],Er=!0,sx=g.q(vi),Sn=sx.next();!Sn.done;Sn=sx.next()){var Tn=Sn.value,Fr=void 0,zc=null;if(Tn.endScreenVideoRenderer){var Ig=Tn.endScreenVideoRenderer,Gr=Ig.title;zc={id:Ig.videoId,
length_seconds:Ig.lengthInSeconds};var tx=Ig.publishedTimeText;tx&&(zc.publishedTimeText=g.T(tx));var hd=Ig.shortBylineText;hd&&(zc.author=g.T(hd));var ux=Ig.shortViewCountText;ux&&(zc.short_view_count_text=g.T(ux));if(Gr){zc.title=g.T(Gr);var vx=Gr.accessibility;if(vx){var Hr=vx.accessibilityData;Hr&&Hr.label&&(zc.aria_label=Hr.label)}}var Ir=Ig.navigationEndpoint;if(Ir){Fr=Ir.clickTrackingParams;var wx=Ir.watchEndpoint;wx&&(zc.Jx=wx)}var xx=Ig.thumbnailOverlays;if(xx)for(var yx=g.q(xx),Jr=yx.next();!Jr.done;Jr=
yx.next()){var Kr=Jr.value.thumbnailOverlayTimeStatusRenderer;if(Kr)if("LIVE"===Kr.style){zc.live_playback="1";break}else if("UPCOMING"===Kr.style){zc.isUpcoming=!0;break}}var vE=bI(Ig.thumbnail),ml=YH(vE);ml.iurlmq&&(ml={iurlmq:ml.iurlmq,iurlhq:ml.iurlmq});Object.assign(zc,ml)}else if(Tn.endScreenPlaylistRenderer){var Kj=Tn.endScreenPlaylistRenderer,Lr=Kj.navigationEndpoint;if(!Lr)continue;var Mr=Lr.watchEndpoint;if(!Mr)continue;var zx=Mr.videoId;zc={list:Kj.playlistId,video_id:zx,playlist_length:Kj.videoCount,
thumbnail_ids:zx};var Ax=Kj.title;Ax&&(zc.playlist_title=g.T(Ax));var Bx=Kj.shortBylineText;Bx&&(zc.playlist_author=g.T(Bx));Fr=Lr.clickTrackingParams;var wE=bI(Kj.thumbnail);Object.assign(zc,YH(wE))}zc&&(zc.session_data=g.Kd({itct:Fr}),Er?(xI(zc,uE,Rn,rx),Dr.splice(0,0,zc),Er=!1):Dr.push(zc))}a.suggestions=Dr}if(xh){a.IG=!!xh.preferImmediateRedirect;a.Kl=a.Kl||!!xh.webShowNewAutonavCountdown;a.jp=a.jp||!!xh.webShowBigThumbnailEndscreen;if(a.Kl||a.jp){var Re=xh,Un=Qc||null,id=void 0,Id={id:Re.videoId},
Cx=Re.videoTitle;if(Cx){Id.title=g.T(Cx);var Dx=Cx.accessibility;if(Dx){var Vn=Dx.accessibilityData;Vn&&Vn.label&&(Id.aria_label=Vn.label)}}var Ex=Re.byline;Ex&&(Id.author=g.T(Ex));var Fx=Re.publishedTimeText;Fx&&(Id.publishedTimeText=g.T(Fx));var Lj=Re.shortViewCountText;Lj&&(Id.short_view_count_text=g.T(Lj));var Jd=Re.thumbnailOverlays;if(Jd)for(var nl=g.q(Jd),Nr=nl.next();!Nr.done;Nr=nl.next()){var wi=Nr.value.thumbnailOverlayTimeStatusRenderer;if(wi)if("LIVE"===wi.style){Id.live_playback="1";
break}else if("UPCOMING"===wi.style){Id.isUpcoming=!0;break}else if("DEFAULT"===wi.style&&wi.text){Id.lengthText=g.T(wi.text);var Gx=wi.text.accessibility;if(Gx){var Or=Gx.accessibilityData;Or&&Or.label&&(Id.Au=Or.label)}break}}var Hx=bI(Re.background),ol=YH(Hx);ol.iurlmq&&(ol={iurlmq:ol.iurlmq,iurlhq:ol.iurlmq});Object.assign(Id,ol);var Wn=Re.nextButton;if(Wn){var Ix=Wn.buttonRenderer;if(Ix){var Pr=Ix.navigationEndpoint;if(Pr){id=Pr.clickTrackingParams;Id.session_data=g.Kd({itct:id});var Jx=Pr.watchEndpoint;
Jx&&(Id.Jx=Jx)}}}if(Re.topBadges){var Xn=Re.topBadges[0];if(Xn){var Kx=Xn.metadataBadgeRenderer;Kx&&"BADGE_STYLE_TYPE_PREMIUM"==Kx.style&&(Id.ew=!0)}}var Lx=Re.alternativeTitle;Lx&&(Id.Qp=g.T(Lx));xI(Id,Un,Re,rx);a.suggestions||(a.suggestions=[]);a.suggestions[0]=Id}null!=xh.countDownSecs&&(a.Ts=1E3*xh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.li=bI(a.watchNextResponse.currentVideoThumbnail));if(!a.ba("player_parse_profile_picture_from_watch_next_killswitch")){var Qr=null===(r=
null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)||void 0===n?void 0:n.results)||void 0===p?void 0:p.results)||void 0===r?void 0:r.contents;if(Qr&&Qr[1]){var Mj=null===(x=null===(y=null===(w=null===(t=Qr[1].videoSecondaryInfoRenderer)||void 0===t?void 0:t.owner)||void 0===w?void 0:w.videoOwnerRenderer)||void 0===y?void 0:y.thumbnail)||void 0===x?void 0:x.thumbnails;Mj&&Mj.length&&(a.lf=Mj[Mj.length-1].url)}}}};
zI=function(a){return!!(a.La&&a.La.videoInfos&&a.La.videoInfos.length)};
BI=function(a){if(a.ba("html5_single_format_policy")&&a.mq)return a.mq;var b=a.Lh,c=!!a.ra&&(a.ra.Vj()||a.ra.Wj()||a.ra.Pj()),d=a.Sa,e=!!a.ra&&a.ra.Wg,f=AI(a),h=a.dB;a.isAd();var l=a.isOtf(),m=a.ax(),n=new cha;g.Q(d.experiments,"html5_high_res_logging")&&(n.u=!0);n.aa=f;n.R=h&&d.C;dr("windows nt 5.1")&&!g.vC&&(n.C=!0);if(f=c)f=d.ba("disable_html5_ambisonic_audio")||!(g.PD(d)||d.ba("html5_enable_spherical")||d.ba("html5_enable_spherical3d"))?!1:QD(d);f&&(n.Y=!0);b&&(n.C=!0,n.Ob=!0);l&&!g.Q(d.experiments,
"html5_otf_prefer_vp9")&&(n.C=!0);iC(d.D,jC.CHANNELS)&&(g.Q(d.experiments,"html5_enable_aac51")&&(n.K=!0),g.Q(d.experiments,"html5_enable_ac3")&&(n.D=!0),g.Q(d.experiments,"html5_enable_eac3")&&(n.F=!0));g.Q(d.experiments,"html5_block_8k_hfr")&&(n.ha=!0);!g.Q(d.experiments,"html5_kaios_hd_killswitch")&&fD&&(n.ma=480);if(e||c)n.fa=!1;n.ia=!1;b=mC(d,n.B);0<b&&2160>b&&(yB()||g.Q(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=+yB(),n.I=b);2160<=b&&(n.Aa=!0);kC()&&(n.B.serveVp9OverAv1IfHigherRes=
0,n.Ub=!1);n.ax=m;m=g.hs||sr()&&!m?!1:!0;n.X=m;n.za=g.Q(d.experiments,"html5_format_hybridization");hr()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.D=!0,n.F=!0);a.mn&&(n.mn=a.mn);a.Nl&&(n.Nl=a.Nl);a.isLivePlayback&&(d=a.cd&&a.Sa.ba("html5_enable_audio_51_for_live_dai"),m=!a.cd&&a.Sa.ba("html5_enable_audio_51_for_live_non_dai"),n.P=d||m);return a.mq=n};
Gla=function(a){a.Bh||a.ra&&KB(a.ra);var b={};a.ra&&(b=LC(BI(a),a.Sa.D,a.ra,function(c){return a.V("ctmp","fmtflt",c)}));
b=new yH(b,a.Sa.experiments,a.CH,Fla(a));g.D(a,b);a.Mq=!1;a.Pd=!0;Eia(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.Bh=a.Bh;e.At=a.At;e.zt=a.zt;break;case "widevine":e.Ap=a.Ap}a.Vo=c;if(0<a.Vo.length&&(a.md=a.Vo[0],CI(a))){c=[];d=g.q(Object.entries(a.md.B));for(e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Na("drmProbe",c.join("."))}DI(a)})};
HI=function(a,b){var c;(c=!b)||(c=!(!EI(a)&&a.adaptiveFormats));if(c)return null;FI(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(QB=!0);c=GI(b);var d=a.Ud;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.he,l=a.Sa.experiments,m=Rga(c);d=f||h?Qga(c,h,d,l):3==m?Pga(c,d,e,l):Oga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=OB(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Lq=!0)));if(c=d.isManifestless)c=!(a.ba("html5_manifestless_vp9")||a.ba("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Hla(d));return c?(d.dispose(),null):d};
JI=function(a,b){var c=HI(a,b);if(!c)return!1;II(a,c);return!0};
EI=function(a){return hr()&&!KI(a)};
KI=function(a){return FI(a,"html5_enable_tvos_dash_dogfood")||a.ba("html5_enable_tvos_dash")&&(a.ba("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Fla=function(a){return a.useCobaltWidevine?a.ba("html5_enable_tvos_widevine")&&hr()?KI(a):FI(a,"html5_enable_androidtv_cobalt_widevine")&&dr("cobalt")&&dr("android")?!0:!1:!1};
Hla=function(a){return a.isManifestless&&oB('video/webm; codecs="vp9"')&&g.Ib(a.u,function(b){return fx(b.info)})};
LI=function(a){return!(!a.ra||!a.ra.isManifestless)};
NI=function(a){if(!oz())return!1;if(a.ba("html5_streaming_debug"))return!0;if(g.hs)return!1;if(g.gr()){var b=cr();if(16<=b&&17>b)return!1}return!LI(a)||"ULTRALOW"!=a.latencyClass&&21530001!=MI(a)?window.AbortController?a.ba("html5_streaming_xhr")||a.ba("html5_streaming_xhr_manifestless")&&LI(a)?!0:!1:!1:!0};
OI=function(a){return YA({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Ui:a.Ui,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:LI(a),DA:NI(a)})};
MI=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ra&&5<=ZB(a.ra)?21530001:a.liveExperimentalContentId};
PI=function(a){return hr()&&KI(a)?!1:!AC()||a.HC?!0:!1};
Ila=function(a){a.Pd=!0;a.Xl=!1;if(!a.Og&&QI(a))Mfa(a.videoId).then(function(d){a:{var e=HI(a,a.adaptiveFormats);if(e)if(d=HI(a,d)){if(0<g.P(a.Sa.experiments,"hoffle_cache_size_secs")){var f=a.videoId,h=Zx(f);0!==h&&by(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){RI(a,!0);a.Qq=new rF(a.videoId,2,{Ro:!0});d.dispose();II(a,e);a.Na("dlacfb",h.lastModified+"-"+(null===l||void 0===l?void 0:l.lastModified));break a}}e.dispose();
II(a,d)}else II(a,e)}a.Na("dlac","r")},function(){return JI(a,a.adaptiveFormats)}).then(function(){DI(a)});
else{ow(a.Og)||g.Is(new g.tr("DASH MPD Origin invalid: ",a.Og));var b=a.Og,c=g.P(a.Sa.experiments,"dash_manifest_version")||4;b=g.Md(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Md(b,{pacing:0}));Uga(b,a.Sa.experiments,a.isLivePlayback).then(function(d){a.na()||(II(a,d,!0),PE("mrc"),DI(a))},function(d){a.na()||(a.Pd=!1,a.V("dataloaderror",new uB("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
PE("mrs")}};
DI=function(a){a.na()||(a.Pd=!1,a.V("dataloaded"))};
II=function(a,b,c){c=void 0===c?!1:c;a.ra=b;g.D(a,b);b.Hd=a.Hd;b.Lf=a.Lf;b.ck=a.ck;b.Nm=a.Nm;SI(a)&&a.Of.push("webgl");a.ra.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.vo=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(c?b.subscribe("refresh",a.NF,a):b.subscribe("cuepointsadded",a.oC,a));KB(b)&&(a.Mq=!0)};
TI=function(a){return a.Ud?!0:!!a.ra&&KB(a.ra)};
Jla=function(a,b){var c=b||PI(a);return a.ra&&!c?(AI(a)&&Yga(a.ra,a.isLivePlayback),FI(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Sa.D.C=!0),lha(BI(a),a.Sa.D,a.ra,a.md,function(d){return a.V("ctmp","fmtflt",d)},a.ba("html5_dynamic_av1_hybrid_threshold")).then(function(d){UI(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.mq&&a.Na("av1",g.vB(a.mq.B))})):Xs()};
Kla=function(a,b){if(b&&a.hlsvp)return Xs();if(a.hlsFormats){var c=GI(a.hlsFormats);a.ku=Kia(a.Sa,c);var d=a.clientPlaybackNonce;return Oia(a.Sa,a.isAd(),c,a.Sj,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.Te())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.Te().audio.u);2<l&&a.Na("hlschl",""+l);VI(a,e)})}return Xs()};
Lla=function(a){return a.mp&&a.bE?Ria(a.Sa,a.isAd(),a.mp).then(function(b){VI(a,b)}):Xs()};
Nla=function(a){var b=GI(a.xs,a.Vx);if(a.hlsvp){var c=Dla(a.hlsvp,a.clientPlaybackNonce,a.Sj);b.push(c)}return Pia(a.Sa,a.isAd(),b,Mla(a)).then(function(d){VI(a,d)})};
UI=function(a,b){a.La=b;var c=a.getAvailableAudioTracks();c=c.concat(a.bq);for(var d=0;d<a.nx.length;d++)for(var e=a.nx[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.fC||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.md&&a.La&&a.La.videoInfos&&!(0>=a.La.videoInfos.length)&&(c=ix(a.La.videoInfos[0]),c!=("fairplay"==a.md.flavor)))for(d=g.q(a.Vo),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.md=e;break}};
VI=function(a,b){a.lk=b;UI(a,new JC(g.Oc(a.lk,function(c){return c.Te()})))};
Mla=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Sa.deviceParams.c,cver:a.Sa.deviceParams.cver};a.Ev&&(b.ptk=a.Ev,b.oid=a.zG,b.ptchn=a.yG,b.pltype=a.AG);return b};
g.WI=function(a){return EI(a)&&a.Bh?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Oa&&a.Oa.Ud||null};
XI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.T(b.text):a.paidContentOverlayText};
YI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.rd(b.durationMs):a.paidContentOverlayDurationMs};
ZI=function(a){var b="";if(a.dz)return a.dz;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.$I=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
aJ=function(a){return!!(a.Og||a.adaptiveFormats||a.xs||a.mp||a.hlsvp)};
bJ=function(a){var b=g.jb(a.Of,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Pd&&(aJ(a)||g.jb(a.Of,"heartbeat")||b)};
GI=function(a,b){var c=Yp(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};
vI=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Xr=!!c.copyTextEndpoint)}};
dJ=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.Qg=c);if(a.Qg){if(c=a.Qg.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.Qg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Gj=d,a.qc=!0):(a.Gj="",a.qc=!1);if(d=c.defaultThumbnail)a.li=bI(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&wI(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Ux=d.title,a.Tx=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Ll=!!c.addToWatchLaterButton;vI(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.Cv=new Sia(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.rd(c.videoDurationSeconds));a.ba("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&hI(a,c.webPlayerActionsPorting);if(a.ba("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.MC=d}}a.Qg.playabilityStatus&&(a.fq=a.Qg.playabilityStatus,cJ(a)&&(a.errorDetail="0",a.fq&&(c=a.fq.embeddedPlayerErrorMessageRenderer)))&&
(a.LC=c.embeddedPlayerErrorMessageRenderer);(c=a.Qg.attestation)&&fI(a,c)}};
xI=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.Kd(d)};
wI=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.kp=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.LA=b.toggledServiceEndpoint||null,a.KA=b.defaultServiceEndpoint||null):(a.LA=b.defaultServiceEndpoint||null,a.KA=b.toggledServiceEndpoint||
null))}};
g.eJ=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
fJ=function(a){return a.isLivePlayback&&a.allowLiveDvr};
SI=function(a){return a.Wj()||a.Vj()||a.mo()||a.Pj()};
Ola=function(a){a.La=a.La.B};
g.gJ=function(a){if(a.EA)return null;var b=a.eE;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.hJ=function(a){return a.EA?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.iJ=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.jJ=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};
kJ=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Sa.fa};
lJ=function(a){if(a.isAd()&&a.videoId!=a.Sa.Cc)return a.Sa.Cc};
mJ=function(a){return a.eh||"detailpage"==kJ(a)||a.mutedAutoplay};
nJ=function(a){if(mJ(a)){if("detailpage"==kJ(a))return a.Kh||0<a.pj;if("adunit"!=kJ(a)||!a.Wo)return!0}return!1};
oJ=function(a){var b=1,c=g.P(a.Sa.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Ir;g.Q(a.Sa.experiments,"html5_enable_per_format_loudness")&&a.La&&a.La.u&&a.La.u[0]&&a.Pz[a.La.u[0].id]&&(c=a.Pz[a.La.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
AI=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Sa.deviceParams.c&&"MUSIC"===a.Sa.deviceParams.ctheme;!a.tn&&(KD(a.Sa)||c)&&b.includes(a.musicVideoType)&&(a.tn=!0);if(b=g.gr())b=/Starboard\/([0-9]+)/.exec(g.Vc),b=10>(b?parseInt(b[1],10):NaN);c=a.Sa;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Sa.deviceParams.ctheme;
var d;if(d=!a.tn)c||(c=a.Sa,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.ba("cast_prefer_audio_only_for_atv_and_uploads")||a.ba("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.tn=!0);return!a.Sa.deviceHasDisplay||a.tn&&a.Sa.C};
qJ=function(a){return pJ(a)&&!!a.adaptiveFormats};
pJ=function(a){return!!(a.ba("hoffle_save")&&a.Vn&&a.Sa.C)};
RI=function(a,b){if(a.Vn!=b&&(a.Vn=b)&&a.ra){var c=a.ra,d;for(d in c.u){var e=c.u[d];e.D=!1;e.u=null}}};
QI=function(a){return!(!(a.ba("hoffle_load")&&a.adaptiveFormats&&cy(a.videoId))||a.Vn)};
rJ=function(a){if(!a.ra||!a.Oa||!a.pd)return!1;var b=a.ra.u;return!!b[a.Oa.id]&&yw(b[a.Oa.id].B.u)&&!!b[a.pd.id]&&yw(b[a.pd.id].B.u)};
cJ=function(a){return(a=a.fq)&&a.showError?a.showError:!1};
CI=function(a){return a.ba("disable_rqs")?!1:FI(a,"html5_high_res_logging")};
FI=function(a,b){return a.ba(b)?!0:(a.fflags||"").includes(b+"=true")};
Pla=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
tI=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.Mv=c.quartile_0_url,a.Vz=c.quartile_25_url,a.Xz=c.quartile_50_url,a.Zz=c.quartile_75_url,a.Tz=c.quartile_100_url,a.Nv=c.quartile_0_urls,a.Wz=c.quartile_25_urls,a.Yz=c.quartile_50_urls,a.aA=c.quartile_75_urls,a.Uz=c.quartile_100_urls)};
uJ=function(a){return a?AC()?!0:sJ&&5>tJ?!1:!0:!1};
sI=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};
gI=function(a){if(a){if(rw(a))return a;a=tw(a);if(rw(a,!0))return a}return""};
Qla=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
vJ=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
wJ=function(a){this.u=a};
xJ=function(a){var b=a.u.getVideoData(1);a.u.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})};
Rla=function(a){var b=new wJ(a.J);return{nK:function(){return b}}};
yJ=function(a,b){this.u=a;this.Ob=b||{};this.K=String(Math.floor(1E9*Math.random()));this.R={};this.P=0};
Sla=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}};
zJ=function(){g.O.call(this);var a=this;this.u={};g.eg(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
BJ=function(){if(null===AJ){AJ=new zJ;ul.getInstance().u="b";var a=ul.getInstance(),b="h"==Yk(a)||"b"==Yk(a),c=!(Ch.getInstance(),!1);b&&c&&(a.F=!0,a.I=new ica)}return AJ};
Tla=function(a,b,c){a.u[b]=c};
Ula=function(a){this.C=a;this.B={};this.u=ag()?500:g.wD(a.T())?1E3:2500};
Wla=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 Vla(a,c)};
Vla=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};
CJ=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};
DJ=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||[]]])};
Xla=function(a){return(a=a.pings)?Object.fromEntries(DJ(a)):{}};
EJ=function(a,b,c,d,e){yJ.call(this,a,Xla(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ub=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new CJ(0,[]);this.I=this.fa=null;this.Ja=b;this.ia=[];this.F={};this.Aa=null;this.B=0;this.X=this.aa=this.C=null;this.ma=d;this.za=e;this.Y=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.Aa=b);this.F=Xp(this.u.playerVars||"");if(b=this.u.external)this.ia=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=Wla(this.Ja,this.ia))?(this.aa=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.aa)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.ma&&g.Q(this.ma,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.fa=this.F.ucid||null,this.B=ZC(this.B,this.F.length_seconds),this.za&&this.C&&(this.Y=this.za(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.I=this.u.clickthroughEndpoint||null;this.D=new CJ(0,[this.B])};
FJ=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
GJ=function(a){return 0<a.B&&7.05>=a.B};
HJ=function(){yJ.apply(this,arguments)};
IJ=function(){this.B=[];this.D=null;this.C=0};
JJ=function(a,b){b&&a.B.push(b)};
KJ=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};
LJ=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};
MJ=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
NJ=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Yla=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=KJ(a.impressionCommands)||[];b.error=KJ(a.errorCommands)||[];b.mute=KJ(a.muteCommands)||[];b.unmute=KJ(a.unmuteCommands)||[];b.pause=KJ(a.pauseCommands)||[];b.rewind=KJ(a.rewindCommands)||[];b.resume=KJ(a.resumeCommands)||[];b.skip=KJ(a.skipCommands)||[];b.close=KJ(a.closeCommands)||[];b.clickthrough=KJ(a.clickthroughCommands)||[];b.fullscreen=KJ(a.fullscreenCommands)||[];b.active_view_viewable=KJ(a.activeViewViewableCommands)||
[];b.active_view_measurable=KJ(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=KJ(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=KJ(a.endFullscreenCommands)||[];b.channel_clickthrough=KJ(a.channelClickthroughCommands)||[];b.abandon=KJ(a.abandonCommands)||[];b.progress=LJ(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=LJ(a.progressCommands.filter(function(c){return NJ(c)&&fe(MJ(c),0)}));
b.first_quartile=LJ(a.progressCommands.filter(function(c){return NJ(c)&&fe(MJ(c),.25)}));
b.midpoint=LJ(a.progressCommands.filter(function(c){return NJ(c)&&fe(MJ(c),.5)}));
b.third_quartile=LJ(a.progressCommands.filter(function(c){return NJ(c)&&fe(MJ(c),.75)}));
b.complete=LJ(a.progressCommands.filter(function(c){return NJ(c)&&fe(MJ(c),1)}));
return b};
OJ=function(a){yJ.call(this,a,Yla(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};
PJ=function(a,b,c,d){this.id=b;this.Y=a.placementStartPings||[];this.X=a.placementEndPings||[];this.C=d.Ce;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=vH(b,d);if(null==f)d=new sH(b,new Gn(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(oo.getInstance().u++).toString(36);var h=d.daiEnabled||d.Ce;f=new sH(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Ce||0<d.u)if(d=vH(b,d,!0))h=new sH(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.aa=d[0];this.u=d[1];this.B=c;this.R=!1;this.I={};this.P={};this.F=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
QJ=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
RJ=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
TJ=function(a){var b={};Zla(a,b);$la(b);b.LACT=SJ(function(){return Bp().toString()});
b.VIS=SJ(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=SJ(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
ama=function(a){var b={};if(!a.kind)return g.Hs(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.Hs(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=SJ($a(Math.round(g.rd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=SJ($a("0"));return b};
SJ=function(a){return{toString:function(){return a()}}};
bma=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.Sb(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};
Zla=function(a,b){b.CPN=SJ(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.Is(Error("Video data is null.")),c=null);return c});
b.AD_MT=SJ(function(){return UJ(a,2)});
b.MT=SJ(function(){return UJ(a,1)});
b.P_H=SJ(function(){return g.cG(a).getPlayerSize().height.toString()});
b.P_W=SJ(function(){return g.cG(a).getPlayerSize().width.toString()});
b.PV_H=SJ(function(){return g.cG(a).getVideoContentRect().height.toString()});
b.PV_W=SJ(function(){return g.cG(a).getVideoContentRect().width.toString()})};
UJ=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
$la=function(a){a.CONN=SJ($a("0"));a.WT=SJ(function(){return Date.now().toString()})};
VJ=function(a){var b=Object.assign({},{});b.MIDROLL_POS=QJ(a)?SJ($a(Math.round(a.u.start/1E3).toString())):SJ($a("0"));return b};
cma=function(a){var b={};b.SLOT_POS=SJ($a(a.D.u.toString()));return b};
WJ=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};
XJ=function(a){for(var b={},c=g.q(dma),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
YJ=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ma(b)));return c};
ZJ=function(){};
$J=function(a){this.u=a};
aK=function(a){this.u=a;dq()};
bK=function(a){g.C.call(this);var b=this;this.B=a;this.u=null;g.eg(this,function(){return b.u=null})};
dK=function(a){return cK(a)&&1==a.getPlayerState(2)};
cK=function(a){a=a.dc();return void 0!==a&&2==a.getPlayerType()};
eK=function(a){a=a.T();return uD(a)&&!g.JD(a)&&"desktop-polymer"==a.playerStyle};
gK=function(a,b){var c=a.T();mD(c)||"3"!=c.controlsType||fK(g.cG(a),b)};
hK=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};
ema=function(a){this.u=a;var b=ul.getInstance(),c=a.cd();b.D!==c&&((b.D=c)||Sca(b));g.Q(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&$g(Ch.getInstance().xb,"ssmol",1)};
iK=function(a,b,c,d,e,f,h){f=void 0===f?new aK(new $J(d.getVideoData(1))):f;h=void 0===h?!1:h;g.C.call(this);this.B=a;this.R=b;this.C=c;this.u=d;this.K=e;this.X=f;this.I=Array.from(this.B.Ob.progress||[]);this.I.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={mB:.25,AB:.5,CB:.75};this.F=null;this.P=h};
oK=function(a,b,c){!jK(a)&&0<c&&(kK(a,b),lK(a)?mK(a,b,c):nK(a,b,c))};
qK=function(a,b){jK(a)||(lK(a)?(kK(a,0,!0),mK(a,b,b)):(kK(a,0,!0),nK(a,0,0,!0)),pK(a,"complete"))};
kK=function(a,b,c){for(c=void 0===c?!1:c;a.B.P<a.I.length;){var d=rK(a,"progress"),e=a.I[a.B.P];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&sK(a,f,d,e.headers||[]);a.B.P++}else break}};
nK=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.mB||d)&&pK(a,"first_quartile");(b>=c*a.D.AB||d)&&pK(a,"midpoint");(b>=c*a.D.CB||d)&&pK(a,"third_quartile")};
tK=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;pK(a,b)};
mK=function(a,b,c){if(0<c&&0<b){var d=g.uK(a.u,a.u.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(tK(a,"first_quartile",b,c*a.D.mB),tK(a,"midpoint",b,c*a.D.AB),tK(a,"third_quartile",b,c*a.D.CB))}a.F=b};
vK=function(a,b){for(var c=rK(a,b),d=g.q(a.B.Ob[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&sK(a,f,c,e.headers||[])}a.B.R[b]=!0};
pK=function(a,b){a.B.R.hasOwnProperty(b)||vK(a,b)};
wK=function(a,b){return a.B.R.hasOwnProperty(b)};
sK=function(a,b,c,d){for(var e=a.X,f=e.send,h={},l=TJ(a.u),m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.C);f.call(e,b,a,c,d)};
rK=function(a,b){var c=a.R;var d=a.B;if(d.Kq()){var e=hK(b);if(null==e)d={};else{var f;(f=d.ha()())||(f=(f=c.u)&&f.dc?(f=f.dc())&&2==f.getPlayerType()?xK(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=zl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
yK=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.K){var c=a.K.u;c&&c()}else M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
lK=function(a){return!g.Q(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.P};
jK=function(a){return lK(a)&&!wK(a,"impression")};
zK=function(a){return lK(a)&&wK(a,"seek")};
BK=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=AK(a)};
AK=function(a){return a+(":"+(oo.getInstance().u++).toString(36))};
CK=function(a){this.W=a};
DK=function(a,b){if(0===b||1===b&&(a.W.u||g.JD(a.W)||g.wD(a.W)||yD(a.W)||!g.Ur))return!0;var c=g.se("video-ads");return null!=c&&"none"!==zg(c,"display")};
g.EK=function(a,b){this.state=a;this.hk=b};
FK=function(a,b){return g.U(a.state,b)&&!g.U(a.hk,b)?1:!g.U(a.state,b)&&g.U(a.hk,b)?-1:0};
g.GK=function(a,b){return 0<FK(a,b)};
HK=function(a,b,c,d,e,f,h){f=void 0===f?0:f;h=void 0===h?!1:h;g.O.call(this);this.J=a;this.Ia=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.UG,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.VG,this);this.B.subscribe("adoverlaymeasurableimpression",this.WG,this);this.B.subscribe("adoverlayunviewableimpression",this.XG,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.YG,this);this.B.subscribe("adoverlayviewableimmediateimpression",
this.ZG,this);this.B.subscribe("adviewableimpression",this.aH,this);this.ad=b;this.aa=[];this.macros=c;this.F=!1;this.X=!DK(new CK(this.J.T()),f);this.daiEnabled=h};
JK=function(a){a.daiEnabled&&!g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")&&S("AdCoordinator registered for play",void 0,void 0,{adCpn:IK(a),contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce,adEverStarted:a.F,adBlocked:a.X});a.X?a.Wd("ui_unstable"):a.je()};
LK=function(a,b){sb(a.aa,b);KK(a,b,1)};
MK=function(a){a=a.Ia;a.C=YJ(a.C,WJ(0,"No playable media files can be selected"));pK(a,"error")};
KK=function(a,b,c){0!=b.length&&(b=g.Oc(b,function(d){return new wH(d,c,d.id)}),a.V("onAdUxUpdate",b))};
IK=function(a){return(a=a.J.getVideoData(2))&&a.clientPlaybackNonce||""};
NK=function(a,b,c,d,e,f,h,l,m){HK.call(this,b,c,f,h,l);this.u=this.D=null;this.P=!1;this.ia=d;this.fa=e;this.ma=m;this.Xc=a};
PK=function(a){if(!a.ma)return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.ia)return a.Jl(),!0;var b=a.J.getVideoData(2);a.P=b?a.fa===b.videoId:!1;a.D=function(c,d){a.P=d?a.fa===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),OK(a.Xc),a.Jl())};
a.J.addEventListener("onAdStart",a.u);return!0};
QK=function(){yJ.apply(this,arguments)};
RK=function(a,b,c,d,e){BK.call(this,"action-companion",a,b,c,d,e)};
SK=function(a,b,c,d,e,f,h){NK.call(this,a,b,c,void 0===h?"AD_PLACEMENT_KIND_UNKNOWN":h,c.u.adVideoId,d,e,f,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_action"));this.C=null;this.I=new RK(this.ad.u,this.macros)};
TK=function(a,b){if(!b)return!1;var c=a.I.renderer;return c&&c.adVideoId==b.videoId};
UK=function(a){var b={};b.abandon=a.abandonCommands&&KJ(a.abandonCommands.commands)||[];yJ.call(this,a,b)};
VK=function(a,b){BK.call(this,"ad-action-interstitial",a,b)};
WK=function(a,b,c,d,e,f){HK.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.Za=null;this.D=f};
XK=function(a,b){BK.call(this,"ad-choice-interstitial",a,b)};
YK=function(a,b,c,d,e,f){HK.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
ZK=function(a){yJ.call(this,a);this.B=Xp(this.u.playerVars||"")};
$K=function(){yJ.apply(this,arguments)};
aL=function(){yJ.apply(this,arguments)};
bL=function(){yJ.apply(this,arguments)};
cL=function(){yJ.apply(this,arguments)};
dL=function(){yJ.apply(this,arguments)};
eL=function(){yJ.apply(this,arguments)};
fL=function(){yJ.apply(this,arguments)};
gL=function(a,b,c,d,e,f,h,l,m,n,p,r,t){this.fa=a;this.K=b;this.P=c;this.X=d;this.B=e;this.R=f;this.u=h;this.aa=l;this.Y=m;this.C=n;this.F=p;this.D=r;this.I=t};
hL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.F(function(){f.Wd("load_timeout")},1E4);
g.D(this,this.u);this.C=new rt(this);g.D(this,this.C)};
iL=function(a){BK.call(this,"ad-message",a)};
jL=function(a,b,c,d,e,f,h){HK.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.I=h;this.R=!1;this.D=this.u=0;this.P=function(){var m=l.J.getProgressState().current;m<l.u?l.oe():m>l.D&&l.Ye()}};
lL=function(a){if(a.I&&a.R){a.R=!1;a=g.q(a.I.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();kL(c.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.df(b)}else S("Received AdNotify terminated event when no slot is active")}}};
mL=function(a,b){BK.call(this,"ads-engagement-panel",a,b)};
nL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e)};
oL=function(a,b,c,d){BK.call(this,"invideo-overlay",a,b,c,d);this.u=d};
pL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e);this.u=b};
qL=function(a,b){BK.call(this,"persisting-overlay",a,b)};
rL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e);this.u=b};
sL=function(){BK.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.tL=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Ow:c.Ow},e=d.next())e=e.value,c.Ow=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Ow}}(c));
return a};
uL=function(a){return a?g.T(a):null};
vL=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};
fma=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
wL=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
ima=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&&(gma(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=uL(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
hma(a,b,c,d))}};
gma=function(a,b,c){var d=uL(b.confirmLabel)||"",e=uL(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(uL(l.value)||"");d={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,dialogMessage:uL(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;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)}};
hma=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:uL(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=vL(b.navigationEndpoint);var h=wL(b[1]),l=[wL(b[0])];(b=fma(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)};
jma(a,e,d)}}};
jma=function(a,b,c){a.muteAdInfo.goneText=uL(b.title)||"";a.muteAdInfo.questionText=uL(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=uL(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=uL(e.reason)||"";e=vL(e.endpoint)[0];a.push({label:d,url:e})}};
xL=function(a,b){var c=new sL;c.adBadgeText="Ad";1<a.B&&(c.adPodPositionInfoString=g.tL("$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};
yL=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=TJ(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.I=d;this.F=e};
AL=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?zL(a,e):a.D.Wk()};
b.skipShown=function(){zL(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
BL=function(a,b,c){ima(b,c,function(d){zL(a,d)},function(d){a.sendAdsPing(d)})};
zL=function(a,b){if(b){var c=CL(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
CL=function(a){if(g.Q(a.I.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)};
DL=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}};
kma=function(a,b,c,d,e,f,h){this.u=c;this.B=new yL(a,b,d,e,f);this.C=h};
lma=function(a,b,c){var d=DL();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){zL(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":AL(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":BL(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=GJ(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.I)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.Y;return d};
EL=function(a,b,c,d,e){BK.call(this,"shopping-companion",a,b,c,d,e)};
FL=function(a,b,c,d,e,f,h){NK.call(this,a,b,c,void 0===h?"AD_PLACEMENT_KIND_UNKNOWN":h,c.u.adVideoId,d,e,f,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_shopping"));this.C=new EL(this.ad.u,this.macros)};
mma=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};
oma=function(a,b,c,d,e,f){this.u=new yL(a,b,c,d,e,nma(f))};
pma=function(a,b){var c=DL();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){zL(a.u,e)};
var d=mma(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":AL(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":BL(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
nma=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=SJ(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=SJ(a);return b};
HL=function(a,b,c){g.O.call(this,!0);var d=this;this.I=b;this.F=c;this.B=a;this.Za=new g.Km(200);this.Za.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.Za.stop());e=d.u/1E3;d.F&&d.F.sc(e);GL(d,{current:e,duration:d.B/1E3})});
g.D(this,this.Za);this.u=0;this.C=null;g.eg(this,function(){d.C=null});
this.D=0};
GL=function(a,b){a.I.xa("onAdPlaybackProgress",b);a.C=b};
IL=function(a){BK.call(this,"survey",a)};
JL=function(a,b,c,d,e,f,h){HK.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new rt;g.D(this,this.C);this.C.N(this.J,"resize",function(){450>g.cG(l.J).getPlayerSize().width&&(g.ut(l.C),l.oe())});
this.K=0;this.I=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.wD(a.T())?new HL(1E3*b.B,a,f):null)g.D(this,this.u),this.C.N(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,zL(l.I.u,m&&m.timeoutCommands)):g.Hs(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
KL=function(a,b){BK.call(this,"survey-interstitial",a,b)};
LL=function(a,b,c,d,e){HK.call(this,a,b,c,d,e,1);this.u=b};
ML=function(a){BK.call(this,"ad-text-interstitial",a)};
NL=function(a,b,c,d,e,f){HK.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Za=null;this.D=f};
OL=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.jb(d,e)||!e&&nc(a,"/"))if(g.vo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.jd(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.Rt()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+qd(d).toString(36),c=c?g.Kd(c):"",g.wq(d,c,f||5))}else f=b,c="ST-"+qd(d).toString(36),
f=f?g.Kd(f):"",g.wq(c,f,5)};
g.PL=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.Md(a,b)+c;a=a instanceof g.Ec?a:g.Kc(a);d.href=g.Fc(a)};
g.QL=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&&OL(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.PL(a))};
g.RL=function(a,b,c){c&&OL(a,c);c=g.Jc(a);c=g.Fc(c);a!=c&&g.Fo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||qd(a).toString(36))};
SL=function(a){a=void 0===a?null:a;BK.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
TL=function(a){a=void 0===a?null:a;BK.call(this,"ad-title");this.videoTitle=a};
UL=function(a){a=void 0===a?null:a;BK.call(this,"advertiser-name");this.channelName=a};
VL=function(a,b,c,d){BK.call(this,"player-overlay",a,{},b,d);this.C=c;this.u=d};
WL=function(a){BK.call(this,"skip-button",a)};
XL=function(a){BK.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Vb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
YL=function(a,b,c,d,e,f,h,l,m,n,p){HK.call(this,a,b,c,d,e,1,l);var r=this;this.Y=!0;this.I=n;this.u=b;this.C=h;this.fa=new rt(this);g.D(this,this.fa);this.D=new g.F(function(){r.Wd("load_timeout")},1E4);
g.D(this,this.D);this.ma=!g.Q(a.T().experiments,"bulleit_unstarted_event_killswitch");this.R=!1;this.ia=m(this);this.ha=f;this.K=p;this.P=!1};
qma=function(a){if(a.daiEnabled&&g.Q(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.Hs(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Hs(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)}};
aM=function(a,b){if(null!==a.I&&a.P){a.P=!1;for(var c=ZL(a),d=g.q(a.I.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";$L(e.C(),e.B,e.u,f);e.B=null;e.u=null}else S("Received AD_ENDED for unknown layout")}};
bM=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
ZL=function(a){if(a=a.u.u.elementId)return a;g.Hs(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
eM=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.J.T();if(g.JD(d)&&!c.skipOrPreviewRenderer){var e=a.J.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.JD(d)&&g.Hs(new g.tr("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!GJ(a.u)?d.skipAdRenderer=cM(a):d.adPreviewRenderer=dM(a,!1,GJ(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Sb(c.skipOrPreviewRenderer)&&
g.Hs(new g.tr("IAPOR.skipOrPreview was filled, but empty.",b));return c};
cM=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=dM(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
dM=function(a,b,c){var d=a.J.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.tL("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.tL("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.tL("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=ED(a.J.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
rma=function(a){function b(y,x){var B=a.wR,E=Object.assign({},{});E.FINAL=SJ($a("1"));E.SLOT_POS=SJ($a("0"));return YJ(B,XJ(E),x)}
function c(y){return null==y?{create:function(){return null}}:{create:function(x,B,E){var G=b(x,B);
B=a.rs(x,G);x=y(x,G,B,E);g.D(x,B);return x}}}
var d=c(function(y,x,B){return new pL(a.J,y,x,B,a.Ff)}),e=c(function(y,x,B,E){return new FL(a.Ha,a.J,y,x,B,a.Ff,E)}),f=c(function(y,x,B){return new WK(a.J,y,x,B,a.Ff,a.Ha)}),h=c(function(y,x,B){return new rL(a.J,y,x,B,a.Ff)}),l=c(function(y,x,B,E){return new SK(a.Ha,a.J,y,x,B,a.Ff,E)}),m=c(function(y,x,B){return new NL(a.J,y,x,B,a.Ff,a.Ha)}),n=c(function(y,x,B){return new LL(a.J,y,x,B,a.Ff)}),p=c(function(y,x,B){return new YK(a.J,y,x,B,a.Ff,a.Ha)}),r=c(function(y,x,B){return new jL(a.J,y,x,B,a.Ff,
a.Ha,a.Zj)}),t=c(function(y,x,B){return new hL(a.J,y,x,B,a.Ff,a.Ha)}),w=c(function(y,x,B){return new nL(a.J,y,x,B,a.Ff)});
this.u=new gL({create:function(y,x){var B=YJ(b(y,x),XJ(cma(y))),E=a.rs(y,B),G=new YL(a.J,y,B,E,a.Ff,a.IJ,a.Ha,a.daiEnabled,function(K){return new kma(a.Ha,B,y,K,a.J,a.ci,a.daiEnabled)},a.ak,a.qg);
g.D(G,E);return G}},d,e,{create:function(y,x){var B=a.rs(y,x),E=new JL(a.J,y,x,B,a.Ff,a.Ha,function(G,K){return new oma(a.Ha,x,G,a.J,a.ci,K)});
g.D(E,B);return E}},f,h,l,m,n,p,r,t,w)};
fM=function(a,b,c){this.B=a;this.u={};this.D=void 0===b?!1:b;this.C=void 0===c?!1:c};
sma=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{PJ:new Gn(d,c),hL:new yu(d,c-d,a.context,a.identifier,a.event,a.u)}};
gM=function(){this.u=[]};
hM=function(a,b,c){var d=g.xb(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
tma=function(a){this.B=new gM;this.u=new fM(a.QJ,a.DR,a.tR)};
iM=function(){yJ.apply(this,arguments)};
jM=function(a){iM.call(this,a);g.Oc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.ie(b.width,b.height)})};
kM=function(a){this.u=a};
lM=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};
nM=function(a,b){var c=a.u;g.mm(function(){return mM(c,b,1)})};
uma=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
wma=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;oM({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:vma(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&pM("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&pM("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
xma=function(a,b,c){a.B&&oM({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
qM=function(a,b){a.B&&oM({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.pE-b.CG).toString(),driftFromHeadMs:Math.round(1E3*a.C.Ni()).toString()}})};
yma=function(a,b){a.B&&oM({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.zJ}})};
pM=function(a,b){oM({daiStateTrigger:{errorType:a,contentCpn:b}})};
oM=function(a){g.Nq("adsClientStateChange",a)};
vma=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"}};
rM=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.Jh=!1;this.adFormat=null;this.clientName=(a=!g.Q(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.I=a?this.J.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
tM=function(a,b,c,d,e,f){sM(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?sM(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.Jh=!0,a.Jh&&(OE("c",a.clientName,a.actionType),OE("cver",a.clientVersion,a.actionType),g.Q(a.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")||
(OE("cbrand",a.F,a.actionType),OE("cmodel",a.I,a.actionType)),OE("yt_pt",a.playerType,a.actionType),OE("yt_pre",a.preloadType,a.actionType),OE("yt_abt",zma(a.B),a.actionType),a.contentCpn&&OE("cpn",a.contentCpn,a.actionType),a.videoId&&OE("docid",a.videoId,a.actionType),a.adCpn&&OE("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&OE("ad_docid",a.adVideoId,a.actionType),OE("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&OE("ad_at",a.adFormat,a.actionType)))};
sM=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.Jh=!1;a.u=!1};
uM=function(a){a.u=!1;SE("video_to_ad",["apbs"],void 0,void 0)};
wM=function(a){a.D?vM(a):(a.u=!1,SE("ad_to_ad",["apbs"],void 0,void 0))};
vM=function(a){a.u=!1;SE("ad_to_video",["pbresume"],void 0,void 0)};
xM=function(a){a.Jh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&PE("apbs",void 0,a.actionType))};
zma=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"}};
yM=function(){};
g.zM=function(a){return(a=Ama[a.toString()])?a:"LICENSE"};
g.AM=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
BM=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.AM(b,c)};
CM=function(a,b){return BM(a,a.state|b)};
DM=function(a,b){return BM(a,a.state&~b)};
EM=function(a,b,c){return BM(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.FM=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.GM=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
HM=function(a){return a.Hb()&&!g.U(a,16)&&!g.U(a,32)};
Bma=function(a){return g.U(a,8)&&g.U(a,16)};
g.IM=function(a){return g.U(a,1)&&!g.U(a,2)};
JM=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};
LM=function(a){var b=g.Ke(g.Mb(KM),function(c){return!!(a&KM[c])});
g.zb(b);return"yt.player.playback.state.PlayerState<"+b.join(",")+">"};
MM=function(a,b,c,d,e,f,h,l){g.O.call(this);this.Xc=a;this.J=b;this.u=d;this.F=this.u.B instanceof yJ?this.u.B:null;this.B=null;this.aa=!1;this.K=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.fa=0;this.ha=!1;this.xh=e;this.Tn=f;this.zk=h;this.Y=!1;this.daiEnabled=l};
NM=function(a){if(cK(a.J)){var b=a.J.getVideoData(2),c=a.u.P[b.Hc]||null;if(!c)return g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator ended because no mapped ad is found",void 0,void 0,{adCpn:b.clientPlaybackNonce,contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.Ii(),!0;if(!a.B||a.B&&a.B.ad!==c)g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator played an ad due to ad to ad transition",void 0,void 0,{adCpn:b.clientPlaybackNonce,
contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.je(c)}else if(1===a.J.getPresentingPlayerType()&&(g.Q(a.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator ended due to ad to content transition",void 0,void 0,{contentCpn:(a.J.getVideoData(1)||{}).clientPlaybackNonce}),a.B))return a.Ii(),!0;return!1};
OM=function(a){(a=a.baseUrl)&&g.pu(a,void 0,dn(a))};
PM=function(a,b){tM(a.K,a.u.u.u,b,a.WC(),a.YC(),a.isLiveStream())};
RM=function(a){QM(a.Xc,a.u.u,a);a.daiEnabled&&!a.u.R&&(Cma(a,a.ZC()),a.u.R=!0)};
Cma=function(a,b){for(var c=SM(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=TM(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(!Dma(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+TM(p)},0);
xma(a.xh,Cia(a.u.u),c);yma(a.xh,{cueIdentifier:a.u.C&&a.u.C.identifier,zJ:e})};
TM=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};
SM=function(a){var b=a.u.u.end;a=hM(a.Tn,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Dma=function(a,b,c,d){var e=a.zk.create(b,XJ(VJ(a.u)),a.u.u.u);c=e.NC(c,d);g.fg(e);if(!c)return!1;a.u.P[c]=b;return!0};
Ema=function(a){if(a.ha)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.fa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
UM=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
VM=function(){this.D=[];this.F=[];this.u=[];this.B=!1;this.I=new Map};
WM=function(){VM.u||(VM.u=new VM);return VM.u};
Fma=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.Rt(c),l=g.Pt(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Xt(a.client,h,l,[g.Lt(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Xt(a.client,h,l,[g.Lt(d.playerResponse.trackingParams)]))})};
YM=function(a,b){XM(a,g.Lt(b),void 0,void 0)};
XM=function(a,b,c,d){if(a.B&&!d)a.D.push([b,c]);else{var e=g.Rt(d);c=c||g.Pt(d);e&&c&&g.Xt(a.client,e,c,[b])}};
Gma=function(a,b,c){c=void 0===c?{}:c;a.B=!0;a.C=function(){ZM(a,b,c);var f=g.Pt(c.layer);if(f){for(var h=g.q(a.D),l=h.next();!l.done;l=h.next())l=l.value,XM(a,l[0],l[1]||f,c.layer);f=g.q(a.F);for(h=f.next();!h.done;h=f.next()){l=h.value;h=l[0];var m=l[1];if(a.B)a.F.push([h,m]);else{var n=g.Lt(h);if(l=g.Rt())h=a.client,m={csn:l,ve:n.getAsJson(),clientData:m},n={Fi:St(l),pk:l},"UNDEFINED_CSN"==l?Wt("visualElementStateChanged",m,n):h?Sp("visualElementStateChanged",m,h,n):g.Nq("visualElementStateChanged",
m,n)}}}};
g.Rt(c.layer)||a.C();if(c.FC)for(var d=g.q(c.FC),e=d.next();!e.done;e=d.next())Fma(a,e.value,c.layer);else g.Hs(Error("Delayed screen needs a data promise."))};
ZM=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.rR?c.rR:c.layer;var e=g.Rt(d);d=g.Pt(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));try{var h=a.client,l=f,m=c.CC,n=c.Fi,p=Hma(),r={csn:p,pageVe:(new Kt({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.Is(new g.tr("newScreen() parent element does not have a VE - rootVe",
b));m&&(r.cloneCsn=m);m={Fi:n,pk:p};h?Sp("screenCreated",r,h,m):g.Nq("screenCreated",r,m);Dq(cu,new Vt(p));var t=p}catch(w){Pea(w,{Or:b,rootVe:d,parentVisualElement:void 0,W4:e,n5:f,CC:c.CC});g.Hs(w);return}Ut(t,b,c.layer,c.Fi);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.vo("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(Ima));for(f=b.next();!f.done;f=b.next())if(g.Rt(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Zt(a.client,e,d,!0);a.u[a.u.length-1]&&!a.u[a.u.length-1].csn&&(a.u[a.u.length-
1].csn=t||"");OE("csn",t);hu.getInstance().clear();d=g.Pt(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.vo("web_mark_root_visible")||g.vo("music_web_mark_root_visible"))&&g.Yt(t,d,void 0);a.B=!1;a.C=void 0;e=g.q(a.I);for(t=e.next();!t.done;t=e.next())t=g.q(t.value),b=t.next().value,t.next().value===c.layer&&d&&XM(a,b,d,c.layer)};
$M=function(a,b,c,d,e,f){g.O.call(this);this.F=a;this.B=b;this.C=c;this.I=d;this.u=e;this.D=f;Jma(this)};
Kma=function(a,b){var c={isEmpty:!0,ZD:!1,ph:[]};if(!b)return c;b&&b.trackingParams&&YM(WM(),b.trackingParams);if(b&&b.adThrottled)return c.ZD=!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.kb(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.ph=d;
c.isEmpty=!1;return c};
Jma=function(a){[a.u.aa,a.u.u].filter(function(b){return null!=b}).forEach(function(b){QM(a.B,b,a)})};
bN=function(a,b,c,d,e,f,h,l){MM.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.I=-1;this.R=this.C=null;this.P=aN(this.Ut())};
cN=function(a){a.I++;var b=a.Ut();b?a.je(b):a.Ik()};
aN=function(a){return a?Lma.some(function(b){return a instanceof b}):!1};
dN=function(){iM.apply(this,arguments)};
Mma=function(a){return a.length?g.Oc(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
eN=function(a,b,c,d,e,f,h){NK.call(this,a,b,d.B,d.u.u,d.B.u.adVideoId,e,f,h,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_image"));this.Y=c;this.I=d;this.C=d.B;this.R=this.ha=this.K=null;a=this.I.u;a.visible=!1;QM(this.Xc,a,this)};
Nma=function(a){this.u=new UM(function(b){b=new MM(a.Xc,a.J,a.BC(),b,a.xh,a.Tn,a.zk,a.daiEnabled);RM(b);return b},function(b){return new $M(a.Tw,a.Xc,a.J,a.Qw,b,a.xh)},function(b){var c=a.rs(b.B);
b=new eN(a.Xc,a.J,a.JJ,b,a.cS,c,a.Ff);g.D(b,c);return b},function(b){b=new bN(a.Xc,a.J,a.BC(),b,a.xh,a.Tn,a.zk,a.daiEnabled);
RM(b);return b})};
Oma=function(a,b){IJ.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Nq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),JJ(this,new $K(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),JJ(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new UK(e.adActionInterstitialRenderer),JJ(this,e)):e.adIntroRenderer&&(e=new ZK(e.adIntroRenderer),
JJ(this,e),this.C=1),this.B.filter(function(f){return f instanceof EJ}).forEach(function(f,h){if(f instanceof EJ){var l=new CJ(h,c);
f.D=l}})};
Qma=function(a,b){IJ.call(this);var c=a.persistingOverlay;this.D=c&&c.persistingAdOverlayRenderer?new cL(c.persistingAdOverlayRenderer):null;JJ(this,Pma(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new OJ(c.instreamSurveyAdRenderer);break a}}c=null}JJ(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.C=1,c=new UK(c.adActionInterstitialRenderer)):c=null:c=null;JJ(this,c)};
Pma=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.C=1,new UK(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new fL(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Nq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new $K(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new eL(b.surveyTextInterstitialRenderer):null};
Rma=function(a,b,c){this.C=a;this.u=b;this.B=c};
Sma=function(a){var b=new $J(a.vC),c=new aK(b);return{jK:function(){return b},
jy:function(){return c}}};
Tma=function(a){this.u=a};
Uma=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 PJ(b,c,h,d)}catch(l){M(l)}};
Vma=function(a){var b=new Tma(a.rJ);return{VC:function(){return b}}};
Wma=function(a){g.C.call(this);this.u=a;this.C=new ema(a.J);this.B=new bK(a.J);g.D(this,this.B)};
Xma=function(a){return function(){return new rM(a.u.J)}};
Yma=function(a){return function(b,c){return new iK(b,a.C,c,a.u.J,a.B,a.u.ci,a.u.daiEnabled)}};
fN=function(a){g.C.call(this);var b=this;this.B=a;this.u=null;g.eg(this,function(){return b.u=null});
var c=qt(a);if(c){var d=function(){b.u&&b.u(!!ot())};
this.B.addEventListener(c,d);g.eg(this,function(){b.B.removeEventListener(c,d)})}};
gN=function(a){g.C.call(this);this.u=a};
Zma=function(a){var b=window.document;return g.JD(a.T())?new fN(b):new gN(a)};
$ma=function(a){g.C.call(this);this.u=new uma(a.J,a.contentCpn,a.daiEnabled)};
ana=function(a){hN=a&&a.data};
cna=function(a){bna=a&&a.data};
dna=function(a){iN=a&&a.data};
ena=function(a){jN=a&&a.data};
fna=function(a){kN=a&&a.data};
gna=function(){kN=jN=iN=hN=null};
oN=function(){g.C.call(this);var a=this;this.hd=new Map;this.u=new Map;lN(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.na();b=g.q(b);for(var e=b.next();!e.done;e=b.next())a.executeCommand(e.value,c,d)});
mN(this,"commandExecutorCommand",function(b,c){nN(a,b.commands,c)});
lN(this,"clickTrackingParams",function(){});
mN(this,"clickTrackingParams",function(){})};
hna=function(a,b){lN(a,b.Dh(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
ina=function(a,b){mN(a,b.Dh(),function(c,d,e){b.Si(c,d,e)})};
lN=function(a,b,c){a.na();a.hd.get(b)&&M(Error("Extension name "+b+" already registered"));a.hd.set(b,c)};
mN=function(a,b,c){a.na();a.u.get(b)&&M(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
nN=function(a,b,c){b=void 0===b?[]:b;a.na();var d=[],e=[],f="Ordered commands: ";b=g.q(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var l="";h.loggingUrls&&(l="loggingUrls filled on ");var m="not recognized command";h.adPingingEndpoint?m="adPingingEndpoint":h.pingingEndpoint?m="pingingEndpoint":h.muteAdEndpoint?m="muteAdEndpoint: "+h.muteAdEndpoint.type:h.adLifecycleCommand?m="adLifecycleCommand: "+h.adLifecycleCommand.action:h.adPlayerControlsCommand?m="adPlayerControlsCommand":h.clearCueRangesCommand?
m="clearCueRangesCommand":h.openPopupAction?m="openPopupAction":h.changeEngagementPanelVisibilityAction?m="changeEngagementPanelVisibilityAction":h.clearCueRangesCommand?m="clearCueRangesCommand":h.urlEndpoint&&(m="urlEndpoint");f=f.concat(l.concat(m),", ");h.hasOwnProperty("pingingEndpoint")||h.hasOwnProperty("adPingingEndpoint")?d.push(h):e.push(h)}d=g.q(d);for(h=d.next();!h.done;h=d.next())pN(a,h.value,c,f);1<e.length&&S("Trying to execute multiple non-logging command in a CEC.");e=g.q(e);for(h=
e.next();!h.done;h=e.next())pN(a,h.value,c)};
pN=function(a,b,c,d){a.na();b.loggingUrls&&jna(a,"loggingUrls",b.loggingUrls,c,d);b=g.q(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;kna.hasOwnProperty(e)||jna(a,e,f,c,d)}};
lna=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.hd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){M(f)}else b=new g.tr("Unhandled field",b),g.Fo(b)};
jna=function(a,b,c,d,e){(a=a.u.get(b))||new g.tr("Unhandled field",b);try{a(c,d,e)}catch(f){M(f)}};
rN=function(a,b,c,d,e){g.O.call(this);var f=this;this.u=b;this.Ja=null;this.Qc=c;this.ha=e.qg;this.ia=e.yl;c=this.u.getVideoData(1).getPlayerResponse()||{};this.C=!qN(this.ha)&&c.playerConfig&&c.playerConfig.daiConfig&&(c.playerConfig.daiConfig.enableDai||c.playerConfig.daiConfig.enableServerStitchedDai)||!1;this.Cc=Rla({J:b}).nK();this.B=this.Ya=this.D=null;this.F=new Map;this.Ga=[];c=this.u.T().experiments;var h=Sma({vC:b.getVideoData(1)}),l=new Wma({ci:h.jy(),J:b,daiEnabled:this.C});g.D(this,l);
this.I=new Set;this.Aa=-1;this.ma=[];this.Y=null;this.X=new Map;this.aa=new Map;this.K=new Set;this.R=new rt(this);g.D(this,this.R);this.P=new rt(this);g.D(this,this.P);this.Qa=this.kc=this.Ta=!1;this.fa=g.JD(b.T());this.ce=d;d=new $ma({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,V4:this,daiEnabled:this.C,J:this.u});g.D(this,d);this.Dc=d.u;d=new tma({QJ:this,DR:g.Q(c,"html5_recognize_predict_start_cue_point"),tR:g.Q(c,"html5_persist_cue_range_killswitch")});this.ub=d.u;this.Nb=d.B;var m=
$b(XJ(TJ(this.u)));e=new rma({Ha:this,IJ:l.B,Ff:BJ(),ci:h.jy(),J:this.u,wR:m,rs:Yma(l),daiEnabled:this.C,ak:e.ak,qg:this.ha,Zj:e.Zj});this.fd=(new Nma({Qw:this.Qc,zk:e.u,Tw:a,Xc:this,JJ:this.Cc,Ff:BJ(),BC:Xma(l),xh:this.Dc,Tn:this.Nb,J:this.u,cS:m,rs:function(n){return Yma(l)(n,m)},
daiEnabled:this.C})).u;this.kb=Vma({rJ:new Rma(new Ula(b),c,function(n){return f.aa.has(n)?f.aa.get(n):null})}).VC();
this.Zb=Zma(this.u);g.D(this,this.Zb);this.ke=RD(this.u.T())?g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
qna=function(a,b){var c=a.u.getVideoData(1);if(c.jx||g.L("SERVED_VIA_SPF_HISTORY"))g.Q(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.ia.u():sN(a);else{if(eK(a.u)){var d=mna(a.u);d.addEventListener("updateKevlarOrC3Companion",ana);d.addEventListener("onPlaShelfInfoCardsReady",cna);d.addEventListener("updateEngagementPanelAction",dna);d.addEventListener("changeEngagementPanelVisibility",ena);d.addEventListener("scrollToEngagementPanel",fna);window.addEventListener("yt-navigate-start",
gna)}a.R.N(a.u,"applicationplayerstatechange",a.nO);a.R.N(a.u,g.hF("ad"),a.xv,a);a.R.N(a.u,g.iF("ad"),a.KO,a);a.R.N(a.u,"aduxclicked",a.ZN);a.R.N(a.u,"videodatachange",a.YQ);d=nna(a,b);d=ona(a,d);d=pna(a,d);0<d.length&&tN(a,d);a.Y&&(c.subscribe("cuepointupdated",a.Dz,a),a.C&&c.ra&&a.Dz(RB(c.ra,0)));uN(a.ha)||sN(a);g.mm(a.BS,a)}};
nna=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.JD(a.u.T())&&a.u.getVideoData(1).Wg()||(a.Y=c),!1):!0})};
ona=function(a,b){a.X=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.X.set(c.elementId,c),!1):!0})};
pna=function(a,b){a.aa=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.aa.set(c.hostElementId,c),!1):!0})};
rna=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 $M?!1:c instanceof MM?!c.Xi():!0})};
sN=function(a){var b=sna(a);if(0<b.length){uN(a.ha)||rna(a,b)&&a.ia.u();var c=g.P(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.fa&&g.wD(a.u.T())?(c=new g.F(function(){tna(a,b)},c),g.D(a,c),c.start()):g.mm(function(){tna(a,b)})}else uN(a.ha)||a.ia.u()};
sna=function(a){for(var b=una(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.I["delete"](d.value);return b};
una=function(a){var b=[];a=g.q(a.I);for(var c=a.next();!c.done;c=a.next())c=c.value,tH(c)&&b.push(c);return b};
vna=function(a,b,c){c=void 0===c?null:c;var d=a.kb,e=d.create;var f=1E3*a.u.getDuration(1);f=new rH(f,1E3*a.u.getCurrentTime(1)||0,g.Q(a.u.T().experiments,"enable_upg_processed_dvr_dai")?a.C:a.u.getVideoData(1).Wg(),g.Q(a.u.T().experiments,"html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.ma.length,c);a.ma=a.ma.concat(b);return b};
tna=function(a,b){if(!a.na())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.xv(d.value)};
wna=function(a,b){var c=a.F.get(b);c&&(((a.C?0:g.Q(a.u.T().experiments,"enable_eviction_protection_for_bulleit"))?c.no()&&a.D?a.D.jr():!c.no()&&a.B?a.B.jr():1:1)?c.vy(b):b.deactivate())};
tN=function(a,b,c){b=vna(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.fd.create(d)})};
OK=function(a){g.fg(a.Ya);a.Ya=null};
zna=function(a,b){b.no()?(g.Q(a.u.T().experiments,"html5_enable_consistent_companion_clearing")?a.Ya=a.D:g.fg(a.D),a.D=b):(xna(a,b),b.YD()&&yna(a,b))};
xna=function(a,b){a.D&&a.D.ir().start<b.ir().start&&((g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping"))&&b.Xi()?vN(a):b.Ny()&&vN(a))};
vN=function(a){g.Q(a.u.T().experiments,"html5_enable_consistent_companion_clearing")||xJ(a.Cc);g.fg(a.D);a.D=null};
yna=function(a,b){a.B&&wN(a,a.C);a.B=b;b.Xi()&&Ana(a)};
Ana=function(a){a.Ta||(a.P.N(a.u,"presentingplayerstatechange",a.rN),a.P.N(a.u,"internalAbandon",a.PN),a.P.N(a.u,"progresssync",a.bR),a.P.N(a.u,"onVolumeChange",a.cR),a.P.N(a.Zb,"fullscreentoggled",a.WO),a.Ta=!0);g.I(a.u.getRootNode(),"ad-showing");a.C||(g.I(a.u.getRootNode(),"ad-interrupting"),g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&eK(a.u)&&g.I(a.u.getRootNode(),"ad-teal-design"),g.Q(a.u.T().experiments,"html5_activate_deferred_cue_ranges_on_video_ad")&&(a.K.forEach(function(b){wna(a,
b)}),a.K.clear()),g.xN(a.u.app,2))};
wN=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.Xi()&&(cK(a.u)||a.C);d=b&&d&&d.reset()||null;a.B&&Bna(a,a.B);a.B=null;a.Aa=-1;e&&Cna(a,c);a.Qa||a.ia.u();b&&d&&(d.ir().B=!1,RM(d))};
Cna=function(a,b){g.ut(a.P);a.Ta=!1;g.sn(a.u.getRootNode(),"ad-showing");a.C||(a.ke?(a.Qa||a.ia.u(),Dna(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),Dna(a)),g.sn(a.u.getRootNode(),"ad-interrupting"),g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.sn(a.u.getRootNode(),"ad-teal-design"));b&&b(a.u)};
Dna=function(a){if(a.kc)!a.fa&&g.wD(a.u.T())&&(g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.yN(a.u,2);else if(g.yN(a.u,2),!a.fa){var b=g.uK(a.u,1);g.U(b,4)&&!g.U(b,2)&&a.u.playVideo()}};
QM=function(a,b,c){if(b instanceof sH){if(a.fa&&uH(b)&&g.U(g.uK(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.I.add(b),a.F.set(b,c),tH(b)||g.zN(a.u,[b],1))}else M(Error("Should use AdCueRange instead of CueRange"))};
mM=function(a,b,c){a.u.app.Zo(b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.I["delete"](c),a.F["delete"](c)};
Bna=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.fg(b)};
AN=function(a,b){Ena(a.u,b);switch(b){case 1:a.Aa=1;break;case 0:a.Aa=0}};
BN=function(a){rt.call(this);this.u=a;this.N(this.u,"onAdUxUpdate",this.R)};
Fna=function(a,b,c,d,e){BK.call(this,"image-companion",a,b,c,d,e)};
CN=function(a){BN.call(this,a)};
DN=function(a){g.C.call(this);this.u=a};
EN=function(a){DN.call(this,!0);this.B=a};
Gna=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.Ja});
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 Bp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Hna=function(a,b){g.C.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.I=this.D=!1;this.X=null;var d=(0,g.z)(a,b);this.u=new g.F(function(){return d(c.X)},300);
g.D(this,this.u);this.P=this.R=Infinity};
Ina=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};
FN=function(){var a="ytp-id-"+Jna.toString();Jna++;return a};
g.GN=function(a){g.C.call(this);this.Ja={};this.Qc={};this.element=this.createElement(a)};
HN=function(a,b,c,d){if("{{"===d.substr(0,2))a.Qc[d]=[b,c];else return d};
Kna=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.G?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};
IN=function(a,b,c,d){if("child"===c){g.He(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=Kna(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.ug(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Fc(g.Jc(a))),b.setAttribute(c,a))};
g.V=function(a){g.GN.call(this,a);this.fb=!0;this.R=!1;this.listeners=[]};
g.JN=function(a,b){b?a.show():a.hide()};
g.KN=function(a){g.V.call(this,a);this.fa=new g.O;g.D(this,this.fa)};
W=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.KN.call(this,c);this.api=a;this.Ha=b;this.macros={};this.componentType=d;this.K=null;this.ub=h;this.layoutId=e;this.u=f;this.Qa=null;this.Nb=new EN(this.element);g.D(this,this.Nb);this.kb=this.N(this.element,"click",this.onClick);this.ha=[];this.aa=new Hna(this.onClick,this);g.D(this,this.aa);this.Zb=!1;this.X=null};
Lna=function(a,b,c){a.Ha?a.Ha.executeCommand(b,a.macros,c):M(Error("null or undefined adService"))};
LN=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};
Mna=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.pd(a.thumbnails[0].url)};
Nna=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.ie(0,0):new g.ie(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
ON=function(a,b,c){g.MN(a.api,b,a);g.NN(a.api,b,c)};
RN=function(a,b,c){g.PN(a.api,b)&&g.QN(a.api,b,c,a.u)};
SN=function(a){return a&&a.thumbnails&&!g.kb(a.thumbnails||null)&&a.thumbnails[0].url?g.pd(a.thumbnails[0].url):""};
TN=function(a,b,c,d,e,f){f=void 0===f?!1:f;W.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.B=f;this.hide()};
g.Ona=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
UN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"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.VN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"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.WN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"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"}}]}};
Pna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"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"}}]}};
Qna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",wb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Rna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",wb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.XN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"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"}}]}};
Sna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
Tna=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"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"}}]}};
Una=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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"}}]}};
Vna=function(){return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"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.YN=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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"}}]}};
ZN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"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"}}]}};
Wna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",wb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
$N=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.aO=function(){return{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"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"}}]}};
Xna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
Yna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
Zna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
$na=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.bO=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.cO=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
aoa=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
dO=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}};
eO=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"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{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"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{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.XN();case "INFO_OUTLINE":return Vna();case "REMOVE_CIRCLE":return{G:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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 $N();case "LIKE":return g.YN();case "DISLIKE":return Una();default:return g.Is(new g.tr("Unexpected icon:",a)),null}};
fO=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",la:["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()};
boa=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||[]};
gO=function(a,b,c,d,e,f,h){W.call(this,a,b,c,d,e,f);this.B=h;g.D(this,this.B);this.ma=this.F=-1};
hO=function(a){a.B&&-1===a.F&&(a.F=a.B.subscribe("b",a.Cl,a),a.ma=a.B.subscribe("a",a.bn,a),a.Cl())};
iO=function(a){null!=a.B&&-1!==a.F&&(a.B.nl(a.F),a.B.nl(a.ma),a.ma=-1,a.F=-1)};
jO=function(a,b,c,d,e,f){f=void 0===f?!1:f;gO.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{G:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.D=this.ka("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.I=f;this.hide()};
kO=function(a,b,c,d,e,f){W.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.B=null;this.hide()};
lO=function(a,b){b&&g.Ne(a.element,LN(a.B,b))};
g.mO=function(a,b,c,d,e,f){g.C.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.F(this.ww,0,this);g.D(this,this.delay)};
nO=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
oO=function(a,b,c,d,e,f){gO.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.Aa=-1;this.C=new g.KN({G:"span",L:"ytp-ad-preview-container"});g.D(this,this.C);this.D=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-preview-text");g.D(this,this.D);this.D.ga(this.C.element);this.P=new g.KN({G:"span",L:"ytp-ad-preview-image"});g.D(this,this.P);this.I=new TN(this.api,this.Ha,this.layoutId,this.u);g.D(this,this.I);this.I.ga(this.P.element);this.P.ga(this.C.element);
this.C.ga(this.element);this.Y=new g.mO(this.C,400,!1,100,function(){return h.hide()});
g.D(this,this.Y);this.ia=0;this.za=!1;this.Ga=f;this.hide()};
pO=function(a){a.Y.show(100);a.show()};
qO=function(a,b,c,d,e){e=void 0===e?0:e;g.C.call(this);this.C=a;this.B=!1;this.P=d;this.I=!1;this.u=null;0<b&&(this.u=new g.F(this.WB,b,this),g.D(this,this.u));this.D=new g.F(this.WB,c,this);g.D(this,this.D);this.R=xn(this.C,e,1,d);g.D(this,this.R);this.K=xn(this.C,0,d,1);g.D(this,this.K);this.F=new rt;g.D(this,this.F)};
rO=function(a,b,c,d,e){gO.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var f=this;this.P=null;this.ia=!1;this.D=new g.KN({G:"span",la:["ytp-ad-skip-button-container"]});g.D(this,this.D);this.D.ga(this.element);this.C=this.I=null;this.za=new g.mO(this.D,500,!1,100,function(){return f.hide()});
g.D(this,this.za);this.Y=new qO(this.D.element,15E3,5E3,.5,.5);g.D(this,this.Y);this.hide()};
coa=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})};
sO=function(a,b){g.O.call(this);this.F=b;this.I=new rt(this);g.D(this,this.I);this.B=a;this.Za=new g.Km(100);g.D(this,this.Za);this.I.N(this.Za,"tick",this.uN);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.C=!1;this.u=0;this.start()};
tO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",S:[{G:"div",L:"ytp-ad-action-interstitial-card",S:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Ta=this.ka("ytp-ad-action-interstitial-image-container");this.P=new TN(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-action-interstitial-image");g.D(this,this.P);this.P.ga(this.Ta);this.Ga=this.ka("ytp-ad-action-interstitial-headline-container");this.ma=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-action-interstitial-headline");g.D(this,this.ma);this.ma.ga(this.Ga);this.Aa=this.ka("ytp-ad-action-interstitial-description-container");this.ia=new kO(this.api,
this.Ha,this.layoutId,this.u,"ytp-ad-action-interstitial-description");g.D(this,this.ia);this.ia.ga(this.Aa);this.kc=this.ka("ytp-ad-action-interstitial-background-container");this.Y=new TN(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-action-interstitial-background",!0);g.D(this,this.Y);this.Y.ga(this.kc);this.Ya=this.ka("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.I=new rt;g.D(this,this.I);this.za=null;this.hide()};
doa=function(a){var b=g.se("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
uO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-choice-interstitial",S:[{G:"div",L:"ytp-ad-choice-interstitial-main-content",S:[{G:"div",L:"ytp-ad-choice-interstitial-head-title"},{G:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c,d);this.F=this.D=this.B=this.C=null;this.I=new g.mO(this,0,!1,0);g.D(this,this.I);this.hide()};
eoa=function(a,b){var c=SN(b)||"";g.pc(c)?g.Fo(Error("Found ThumbnailDetails without valid image URL")):g.ug(a,"backgroundImage","url("+c+")")};
foa=function(a,b){var c=a.ka("ytp-ad-choice-interstitial-head-title");g.Ne(c,g.T(b))};
goa=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}};
ioa=function(a,b,c,d){if(2!==b.length)return!1;a.B=hoa(a,b[0],c,0===d);a.B.show();a.D=hoa(a,b[1],c,1===d);a.D.show();return!0};
hoa=function(a,b,c,d){var e=a.ka("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.Q(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.Q(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 fO(a.api,a.Ha,a.layoutId,a.u,h,"button",!1,f);g.D(a,d);d.init(AK("button"),
b,a.macros);d.ga(e);d.element.style.width=8*c+32+"px";return d};
joa=function(a,b){var c=8*b+32,d=a.ka("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="")};
koa=function(a,b,c,d){a.C=new sO(d);a.C.subscribe("a",function(){a.I.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Ha.executeCommand(f.value,c)});
g.D(a,a.C)};
loa=function(a,b,c){var d=a.ka("ytp-ad-choice-interstitial");a.F=new jO(a.api,a.Ha,a.layoutId,a.u,a.C,!0);g.D(a,a.F);a.F.init(AK("timed-pie-countdown"),b,c);a.F.ga(d)};
vO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.C=this.ka("ytp-ad-text-interstitial");this.B=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-text-interstitial-message");g.D(this,this.B);this.B.ga(this.C);this.hide()};
moa=function(a){var b=g.se("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
wO=function(){g.C.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.pu(b[c],void 0,void 0)})};
noa=function(){null==xO&&(xO=new wO);return xO};
yO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=ooa(c);if(d){c=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(poa(e,b))}return 1==c.length?c[0]:Ee("SPAN",null,c)};
poa=function(a,b){var c=null,d=a.text;b&&(d=ooa(d)||d);a.bold&&(c=Ee("B",null,c||d));a.italics&&(c=Ee("I",null,c||d));a.strikethrough&&(c=Ee("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=Ee("A",null,c||d);g.jd(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),noa().register(c,e),g.I(c,"ytp-ad-has-logging-urls")}return c||Ee("SPAN",null,d)};
ooa=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(Ee("BR")),b.push(a[c]);return b}return null};
zO=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,{G:"span",la:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.C=null;this.I=f;this.F=e;this.hide()};
AO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",S:[{G:"div",L:"ytp-ad-feedback-dialog-container",S:[{G:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-feedback-dialog-title",S:[{G:"span",Z:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.B=null;this.F=this.ka("ytp-ad-feedback-dialog-cancel-button");this.P=this.ka("ytp-ad-feedback-dialog-confirm-button");this.Y=this.ka("ytp-ad-info-dialog-feedback-options");this.ia=this.ka("ytp-ad-feedback-dialog-title");this.I=this.C=null;this.hide()};
toa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new fO(a.api,a.Ha,a.layoutId,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.D(a,a.B),a.B.init(AK("button"),c,a.macros),a.B.wa("click",a.kF,a),a.B.ga(a.element));b.title&&(c=g.T(b.title),a.ya("title",c));b.reasonsTitle&&(c=g.T(b.reasonsTitle),a.ya("reasonsTitle",c));b.reasons&&qoa(a,b.reasons);b.cancelLabel&&(c=g.T(b.cancelLabel),a.ya("cancelLabel",c),g.cp(a.F,"click",function(){return a.kF()}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ya("confirmLabel",c),g.cp(a.P,"click",function(){return roa(a)}));
b.undoRenderer&&soa(a,b.undoRenderer)};
qoa=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 BO(d,e),g.D(a,d),a.Y.appendChild(d.Pa()),a.D.push(d)))}};
soa=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new fO(a.api,a.Ha,a.layoutId,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.D(a,a.C),a.C.init(AK("ad-feedback-undo-mute-button"),c,a.macros),a.C.wa("click",a.VQ,a),a.C.ga(a.ia)):g.Fo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
roa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Ha.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("f"),a.hide())};
BO=function(a,b){this.B=b;this.u=new g.KN({G:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.T(a)}]});this.C=this.u.ka("ytp-ad-feedback-dialog-reason-input")};
CO=function(a,b,c,d,e,f){e=void 0===e?[]:e;W.call(this,a,b,{G:"div",la:["ytp-ad-confirm-dialog-background"],S:[{G:"div",L:"ytp-ad-confirm-dialog-container",S:[{G:"div",la:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{G:"button",la:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{G:"span",L:"ytp-ad-button-icon",S:[g.XN()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.I=this.ka("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ka("ytp-ad-confirm-dialog-cancel-button");this.Y=this.ka("ytp-ad-confirm-dialog-confirm-button");this.P=this.ka("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new rt;g.D(this,this.B);this.C=null;this.hide()};
uoa=function(a,b){if(b.title){var c=g.T(b.title);a.ya("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=yO(d.value),a.P.appendChild(d)}b.cancelLabel&&(c=g.T(b.cancelLabel),a.ya("cancelLabel",c),a.B.N(a.F,"click",function(e){return a.vz(e)}));
b.confirmLabel&&(c=g.T(b.confirmLabel),a.ya("confirmLabel",c),a.B.N(a.Y,"click",function(e){return a.Cz(e)}));
a.B.N(a.I,"click",function(e){return a.Bz(e)})};
DO=function(a,b,c,d){CO.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
EO=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",S:[{G:"div",L:"ytp-ad-info-dialog-container",S:[{G:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.B=this.C=null;this.P=this.ka("ytp-ad-info-dialog-confirm-button");this.Ga=this.ka("ytp-ad-info-dialog-mute-container");this.Aa=this.ka("ytp-ad-info-dialog-message");this.ia=this.ka("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.za=e;this.I=null;this.ma=!1;this.Y=null;this.hide()};
voa=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Ha.executeCommand(b,a.macros)})};
woa=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new AO(a.api,a.Ha,a.layoutId,a.u),g.D(a,a.C),a.C.init(AK("ad-feedback-dialog"),c,a.macros),a.C.ga(a.za),a.C.subscribe("f",function(){return a.V("h")}))};
xoa=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new DO(a.api,a.Ha,a.layoutId,a.u),g.D(a,a.F),a.F.init(AK("ad-mute-confirm-dialog"),c,a.macros),a.F.ga(a.za),a.F.subscribe("g",function(){return a.V("h")}))};
yoa=function(a){a.B&&a.B.wa("click",a.lF,a);g.cp(a.P,"click",function(){return a.lF()})};
FO=function(a,b,c,d,e,f){zO.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()};
zoa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new EO(a.api,a.Ha,a.layoutId,a.u,a.D),g.D(a,a.B),a.B.init(AK("ad-info-dialog"),b,c),a.B.ga(a.D),a.B.subscribe("i",function(){return a.V("k")}),a.B.subscribe("h",function(){return a.V("j")}))};
Aoa=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"):(zoa(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.fb&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
GO=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Fa=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,vE:e}};
HO=function(){return["metadata_type_ad_placement_config"]};
JO=function(a){var b=a.Fa.get();return IO(b,a.F)};
KO=function(a,b){var c=a.D.get(b)||[];Boa(a,b,c);a.u.add(b)};
LO=function(a,b){a.u.has(b)||KO(a,b)};
Boa=function(a,b,c){var d=a.Fa.get();a=a.layoutId;c=void 0===c?[]:c;var e=MO(d.Nd.get(),a);if(e)for(b=Coa(d.jb.get(),a,b),a=IO(d,Doa(e),e),c=g.q(c),e=c.next();!e.done;e=c.next())e=e.value,e.baseUrl&&d.ci.send(e.baseUrl,a,b,e.headers);else S("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a,trackingType:b})};
NO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
PO=function(a,b,c){c=void 0===c?OO:c;c.width<OO.width&&(c=OO);if(a.width<c.width||a.height<c.height)return{Kw:3,ys:501,errorMessage:"ad("+NO(c)+") larger than container("+NO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Kw:3,ys:501,errorMessage:"ad("+NO(c)+") to container("+NO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Kw:3,ys:501,errorMessage:"ad("+NO(c)+") covers container("+NO(a)+") center."}};
Eoa=function(a,b){var c=X(a.va,"metadata_type_ad_placement_config");return new GO(a.kd,b,c,a.layoutId)};
QO=function(a){return X(a.va,"metadata_type_invideo_overlay_ad_renderer")};
RO=function(a){return g.Q(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
SO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",S:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.P=[];this.F=this.Ta=this.Aa=null;a=this.ka("ytp-ad-overlay-container");this.za=new qO(a,45E3,6E3,.3,.4);g.D(this,this.za);RO(this.api)||(this.ma=new g.F(this.clear,45E3,this),g.D(this,this.ma));this.D=Foa(this);g.D(this,this.D);this.D.ga(a);this.C=Goa(this);g.D(this,this.C);this.C.ga(a);this.B=Hoa(this);g.D(this,this.B);this.B.ga(a);this.Ya=this.ia=null;this.Ga=
!1;this.I=null;this.Y=0;this.hide()};
Foa=function(a){var b=new g.KN({G:"div",L:"ytp-ad-text-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[eO(TO)]}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",la:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.N(b.ka("ytp-ad-overlay-title"),"click",function(c){return UO(a,b.element,c)});
a.N(b.ka("ytp-ad-overlay-link"),"click",function(c){return UO(a,b.element,c)});
a.N(b.ka("ytp-ad-overlay-close-container"),"click",a.wz);b.hide();return b};
Goa=function(a){var b=new g.KN({G:"div",la:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[eO(TO)]}]},{G:"div",L:"ytp-ad-overlay-text-image",S:[{G:"img",U:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",la:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.N(b.ka("ytp-ad-overlay-title"),"click",function(c){return UO(a,b.element,c)});
a.N(b.ka("ytp-ad-overlay-link"),"click",function(c){return UO(a,b.element,c)});
a.N(b.ka("ytp-ad-overlay-close-container"),"click",a.wz);a.N(b.ka("ytp-ad-overlay-text-image"),"click",a.MQ);b.hide();return b};
Hoa=function(a){var b=new g.KN({G:"div",L:"ytp-ad-image-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[eO(TO)]}]},{G:"div",L:"ytp-ad-overlay-image",S:[{G:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.ka("ytp-ad-overlay-image"),"click",function(c){return UO(a,b.element,c)});
a.N(b.ka("ytp-ad-overlay-close-container"),"click",a.wz);b.hide();return b};
VO=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.se("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.ia=new g.KN({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.D(a,a.ia),a.ia.ga(d),d=new FO(a.api,a.Ha,a.layoutId,a.u,a.ia.element,!1),g.D(a,d),d.init(AK("ad-info-hover-text-button"),c,a.macros),a.I?
(d.ga(a.I,0),d.subscribe("k",a.TN,a),d.subscribe("j",a.xP,a),a.N(a.I,"click",a.UN),c=g.se("ytp-ad-button",d.element),a.N(c,"click",a.zN),a.Ya=d):M(Error("Ad info button container within overlay ad was not present.")))}}else g.Fo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Ioa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Joa=function(a,b){if(WO(a,XO)||a.api.app.visibility.u)return!1;var c=LN(b.title),d=LN(b.description);if(g.pc(c)||g.pc(d))return!1;ON(a,a.D.element,b.trackingParams||null);a.D.ya("title",LN(b.title));a.D.ya("description",LN(b.description));a.D.ya("displayUrl",LN(b.displayUrl));b.navigationEndpoint&&sb(a.P,b.navigationEndpoint);a.D.show();a.za.start();RN(a,a.D.element,!0);RO(a.api)||(a.N(a.api,"resize",function(){WO(a,XO)&&a.clear()}),a.N(a.api,"minimized",a.uP));
a.N(a.D.element,"mouseover",function(){a.Y++});
return!0};
Koa=function(a,b){if(WO(a,XO)||a.api.app.visibility.u)return!1;var c=LN(b.title),d=LN(b.description);if(g.pc(c)||g.pc(d))return!1;ON(a,a.C.element,b.trackingParams||null);a.C.ya("title",LN(b.title));a.C.ya("description",LN(b.description));a.C.ya("displayUrl",LN(b.displayUrl));a.C.ya("imageUrl",Mna(b.image));b.navigationEndpoint&&sb(a.P,b.navigationEndpoint);a.Ta=b.imageNavigationEndpoint||null;a.C.show();a.za.start();RN(a,a.C.element,!0);RO(a.api)||a.N(a.api,"resize",function(){WO(a,XO)&&a.clear()});
a.N(a.C.element,"mouseover",function(){a.Y++});
return!0};
Loa=function(a,b){if(a.api.app.visibility.u)return!1;var c=Nna(b.image),d=c;c.width<XO.width&&(d=XO);if(0==c.width||0==c.height||WO(a,d))return!1;ON(a,a.B.element,b.trackingParams||null);a.B.ya("imageUrl",Mna(b.image));a.B.ya("width",c.width);a.B.ya("height",c.height);b.navigationEndpoint&&sb(a.P,b.navigationEndpoint);d=a.B.ka("ytp-ad-image-overlay");g.ug(d,"max-width",c.width+"px");a.B.show();RN(a,a.B.element,!0);RO(a.api)||(a.ma.start(),a.N(a.api,"resize",function(){WO(a,c)&&a.clear()}));
a.N(a.B.element,"mouseover",function(){a.Y++;RO(a.api)?a.api.V("aduxmouseover","invideo-overlay",a.layoutId):a.ma.stop()});
a.N(a.B.element,"mouseout",function(){RO(a.api)?a.api.V("aduxmouseout","invideo-overlay",a.layoutId):a.ma.start()});
return!0};
WO=function(a,b){var c=g.cG(a.api).getPlayerSize(),d=a.api.Pi(!0,!1);return(c=PO(c,c.height-(d.height+d.top),b))?(a.Aa&&c&&(d=g.Vb(a.macros),d.ERRORCODE=c.ys.toString(),d.ERROR_MSG=c.errorMessage,a.Ha.executeCommand(a.Aa,d)),!0):!1};
UO=function(a,b,c){var d=g.Vb(a.macros),e=g.Lg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Jg(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.Y.toString()}};
a.P.forEach(function(h){return a.Ha.executeCommand(h,d)});
a.api.pauseVideo()};
Moa=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
YO=function(a,b,c,d,e){gO.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",S:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.ia=-1;this.za=this.ka("ytp-ad-message-slot");this.D=new g.KN({G:"span",L:"ytp-ad-message-container"});this.D.ga(this.za);g.D(this,this.D);this.C=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-message-text");g.D(this,this.C);this.C.ga(this.D.element);this.P=new g.mO(this.D,400,!1,100,function(){return f.hide()});
g.D(this,this.P);this.I=0;this.Y=!1;this.hide()};
Noa=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
ZO=function(a,b,c,d,e){gO.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.P=!1;this.I=0;this.D=this.C=null;this.hide()};
$O=function(a,b){if(!a.P)if(a.P=!0,a.C&&(b?a.C.Y.hide():a.C.hide()),b){var c=a.D;c.za.show();c.show()}else a.D.show()};
aP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-persisting-overlay",S:[{G:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.C=this.ka("ytp-ad-persisting-overlay-skip");this.B=e;g.D(this,this.B);this.hide()};
g.bP=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.cP=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)};
dP=function(a,b,c,d,e,f){gO.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()};
eP=function(a,b,c,d){kO.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
fP=function(a,b,c,d,e){gO.call(this,a,b,{G:"div",la:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",S:[{G:"div",L:"ytp-flyout-cta-text-container",S:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.D=new TN(this.api,this.Ha,this.layoutId,this.u,"ytp-flyout-cta-icon");g.D(this,this.D);this.D.ga(this.ka("ytp-flyout-cta-icon-container"));
this.P=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-flyout-cta-headline");g.D(this,this.P);this.P.ga(this.ka("ytp-flyout-cta-headline-container"));this.I=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-flyout-cta-description");g.D(this,this.I);this.I.ga(this.ka("ytp-flyout-cta-description-container"));this.C=new fO(this.api,this.Ha,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.D(this,this.C);this.C.ga(this.ka("ytp-flyout-cta-action-button-container"));this.Y=null;this.ia=0;this.hide()};
gP=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=AK("ytp-ad-toggle-button-input");W.call(this,a,b,{G:"div",la:["ytp-ad-toggle-button"].concat(e),S:[{G:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},S:[{G:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ka("ytp-ad-toggle-button");this.B=this.ka("ytp-ad-toggle-button-input");this.ka("ytp-ad-toggle-button-label");this.Y=this.ka("ytp-ad-toggle-button-icon");this.I=this.ka("ytp-ad-toggle-button-untoggled-icon");this.F=this.ka("ytp-ad-toggle-button-toggled-icon");this.ia=this.ka("ytp-ad-toggle-button-text");
this.C=null;this.P=!1;this.hide()};
hP=function(a){a.P&&(a.isToggled()?(g.Mg(a.I,!1),g.Mg(a.F,!0)):(g.Mg(a.I,!0),g.Mg(a.F,!1)))};
Ooa=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||[]};
iP=function(a,b,c,d,e){W.call(this,a,b,{G:"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 gP(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.D(this,this.D);this.D.ga(this.element);this.C=new gP(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.D(this,this.C);this.C.ga(this.element);this.F=new g.mO(this,400,!1,500,function(){return f.hide()});
g.D(this,this.F);this.hide()};
Poa=function(a,b){a.D.init(AK("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(AK("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.jF)};
jP=function(a,b,c,d){fO.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
kP=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()};
lP=function(a,b){this.B=a;this.u=b};
mP=function(a,b){return a.B+b*a.getLength()};
nP=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.ce(a,0,1)};
oP=function(a,b){g.KN.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.D(this,this.B);this.I=this.ka("ytp-ad-persistent-progress-bar");this.u=-1;this.N(a,"presentingplayerstatechange",this.F);this.hide();this.F()};
pP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",S:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.I=this.ka("ytp-ad-player-overlay-flyout-cta");this.C=this.ka("ytp-ad-player-overlay-instream-info");this.D=null;Qoa(this)&&(a=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 eP(this.api,this.Ha,this.layoutId,this.u),c.ga(a),c.init(AK("ad-title"),{text:b.title},this.macros),g.D(this,c)),this.D=a);this.F=this.ka("ytp-ad-player-overlay-skip-or-preview");this.Y=this.ka("ytp-ad-player-overlay-progress-bar");this.P=this.ka("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.D(this,this.B);this.hide()};
Qoa=function(a){a=a.api.T();return KD(a)&&a.u};
qP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ka("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
rP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ka("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
sP=function(a,b,c,d){fO.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
tP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",S:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.I=this.ka("ytp-ad-survey-player-overlay-instream-info");this.C={};this.P=this.ka("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.Y=this.ka("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.D(this,this.F);this.hide()};
uP=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",S:[{G:"div",la:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",la:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",la:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ka("ytp-ad-survey-question");this.za=this.ka("ytp-ad-survey-question-background");this.ia=this.ka("ytp-ad-survey-question-text");
this.answers=this.ka("ytp-ad-survey-answers");this.Y=this.ka("ytp-ad-survey-question-player-overlay");this.I=null;this.D=[];this.B=null;this.F=g.A()};
Roa=function(a,b,c){var d=new qP(a.api,a.Ha,a.layoutId,a.u);d.ga(a.answers);d.init(AK("survey-answer"),b,c);a.D.push(d)};
Toa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&SN(c)||"",g.pc(c)?g.Fo(Error("Found ThumbnailDetails without valid image URL")):g.ug(a.za,"backgroundImage","url("+c+")"));Soa(a,b)}else M(Error("addCommonComponents() needs to be called before starting countdown."))};
Soa=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 sO(b.durationMilliseconds,a.Ha);g.D(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Ha.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new tP(a.api,a.Ha,a.layoutId,a.u,a.B);
d.ga(a.Y);d.init(AK("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.I=d;g.D(a,d);a.kH()}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 oP(a.api,a.B),d.ga(a.Y),g.D(a,d)):M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
Uoa=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})};
vP=function(a,b,c,d){uP.call(this,a,b,c,d,"survey-question-multi-select");this.C=null;this.ma=[];this.P=null;this.hide()};
Voa=function(a,b,c){a.C=new rP(a.api,a.Ha,a.layoutId,a.u);a.C.ga(a.answers);a.C.init(AK("survey-none-of-the-above"),b,c)};
Woa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
wP(a,!0)};
wP=function(a,b){var c=a.I,d=Xoa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof ZO&&!c.B.P&&$O(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
Xoa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
xP=function(a,b,c,d){uP.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
yP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey",S:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.B=this.ka("ytp-ad-survey-questions");this.C=[];this.hide()};
zP=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",S:[{G:"div",L:"ytp-ad-survey-interstitial-contents",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.F=this.ka("ytp-ad-survey-interstitial");this.I=this.ka("ytp-ad-survey-interstitial-contents");this.B=null;this.Y=this.ka("ytp-ad-survey-interstitial-text");this.P=this.ka("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.mO(this,500,!1,300);g.D(this,this.C)};
Yoa=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.Ha.executeCommand(e,a.macros)})};
Zoa=function(a,b){var c=b&&SN(b)||"";if(g.pc(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=Eaa(d,Sc({"background-image":'url("'+c+'")'}));a.style.cssText=Nc(c)}};
$oa=function(a){var b=g.se("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
AP=function(a,b){b=void 0===b?2:b;g.O.call(this);this.u=a;this.B=new rt(this);g.D(this,this.B);this.F=apa;this.D=null;this.B.N(this.u,"presentingplayerstatechange",this.vN);this.D=this.B.N(this.u,"progresssync",this.hF);this.C=b;1===this.C&&this.hF()};
CP=function(a,b){BN.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({G:"div",la:["video-ads","ytp-ad-module"]});g.D(this,c);fD&&g.I(c.element,"ytp-ads-tiny-mode");this.F=new EN(c.element);g.D(this,this.F);g.BP(this.D,c.element,4);g.D(this,noa())};
bpa=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};
DP=function(a){this.controller=a};
EP=function(a){this.Xp=a};
FP=function(a){this.Xp=a};
GP=function(a,b,c){this.Xp=a;this.vg=b;this.Wh=c};
dpa=function(a,b,c){var d=a.Xp();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.vg.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.ab&&"core"===h.bb&&(b=!0)}b?(c=cpa(a,c))?a.Wh.Eq(c):S("No triggering layout ID available when attempting to mute."):g.mm(function(){d.Ii()})}};
cpa=function(a,b){if(b)return b;for(var c=g.q(a.vg.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.ab&&"core"===d.bb)return e.layoutId}};
HP=function(){};
IP=function(){};
JP=function(){};
KP=function(a,b){this.Ip=a;this.Fa=b};
LP=function(a){this.J=a};
MP=function(a,b){this.ci=a;this.Fa=b};
fpa=function(a){g.C.call(this);this.u=a;this.B=epa(this)};
epa=function(a){var b=new oN;g.D(a,b);a=g.q([new DP(a.u.tJ),new KP(a.u.Ip,a.u.Fa),new EP(a.u.uJ),new LP(a.u.J),new MP(a.u.ci,a.u.Fa),new GP(a.u.KN,a.u.vg,a.u.Wh),new FP(a.u.FJ),new IP,new JP,new HP]);for(var c=a.next();!c.done;c=a.next())c=c.value,hna(b,c),ina(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())lN(b,c.value,function(){});
return b};
NP=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.va.u.has(c.value))return!1;return!0};
OP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
X=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
PP=function(a){return Array.from(a.u.keys())};
hpa=function(a){var b;return(null===(b=gpa.get(a))||void 0===b?void 0:b.gs)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
QP=function(a,b){var c={type:b.ab,controlFlowManagerLayer:ipa.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.hc&&(c.entryTriggerType=jpa.get(b.hc.triggerType)||"TRIGGER_TYPE_UNSPECIFIED");1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.hc;d&&(c.debugData.slotEntryTriggerData=kpa(d))}return c};
lpa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:ipa.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
kpa=function(a,b){var c={type:jpa.get(a.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};b&&(c.category=mpa.get(b)||"TRIGGER_CATEGORY_UNSPECIFIED");null!=a.B&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.B);null!=a.u&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.u);return c};
opa=function(a,b,c,d){b={opportunityType:npa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Oc(d||[],function(e){return QP(a,e)}),
associatedSlotId:c});return b};
SP=function(a,b){return function(c){return ppa(RP(a),b.slotId,b.ab,b.feedPosition,b.bb,b.hc,c.layoutId,c.layoutType,c.bb)}};
ppa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:QP(a,{slotId:b,ab:c,feedPosition:d,bb:e,hc:f,Me:[],Af:[],va:new OP([])}),layoutData:lpa(a,{layoutId:h,layoutType:l,bb:m,ae:[],wd:[],ud:[],be:[],kd:new Map,va:new OP([]),td:{}})}}};
TP=function(a){this.Ca=a;this.u=.1>Math.random()};
RP=function(a){return a.u||g.Q(a.Ca.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
UP=function(a,b,c,d){g.C.call(this);this.B=b;this.Gb=c;this.Ca=d;this.u=a(this,this,this,this,this);g.D(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.D(this,b.value)};
VP=function(a,b){a.B.add(b);g.D(a,b)};
XP=function(a,b,c){S(c,b,void 0,void 0,c.Ul);WP(a,b,!0)};
rpa=function(a,b,c){if(YP(a.u,b))if(ZP(a.u,b).D=c?"filled":"not_filled",null===c){$P(a.Gb,"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.lj(b);WP(a,b,!1)}else{$P(a.Gb,"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.mj(b);if(ZP(a.u,b).F)WP(a,b,!1);else{$P(a.Gb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!ZP(f,b))throw new aQ("Unknown slotState for onLayout");
if(!f.hd.Yj.get(b.ab))throw new aQ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ab);if(g.kb(c.ae)&&g.kb(c.wd)&&g.kb(c.ud)&&g.kb(c.be))throw new aQ("Layout has no exit triggers.");bQ(f,0,c.ae);bQ(f,1,c.wd);bQ(f,2,c.ud);bQ(f,6,c.be)}catch(n){a.Nf(b,c,n);WP(a,b,!0);return}a.u.Nn(b);try{var h=a.u,l=ZP(h,b),m=h.hd.Yj.get(b.ab).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new aQ("Already had LayoutRenderingAdapter registered for slot");l.C=m;cQ(h,l,0,c.ae);cQ(h,l,1,c.wd);
cQ(h,l,2,c.ud);cQ(h,l,6,c.be)}catch(n){dQ(a,b);WP(a,b,!0);a.Nf(b,c,n);return}$P(a.Gb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.ai(b,c);dQ(a,b);qpa(a,b)}}};
eQ=function(a,b,c){$P(a.Gb,"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.ai(b,c)};
spa=function(a,b){kL(a.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);YP(a.u,b)&&(ZP(a.u,b).D="fill_canceled",WP(a,b,!1))};
fQ=function(a,b,c){$P(a.Gb,"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.xd(b,c)};
$L=function(a,b,c,d){$P(a.Gb,hpa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.yd(b,c,d)};
dQ=function(a,b){if(YP(a.u,b)){ZP(a.u,b).Nn=!1;var c=gQ,d=ZP(a.u,b),e=[].concat(g.ma(d.K));lb(d.K);c(a,e)}};
gQ=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,YP(a.u,e.slot))if(ZP(a.u,e.slot).Nn)ZP(a.u,e.slot).K.push(e);else{tpa(a.Gb,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(upa.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))&&vpa(a,e,f);(d=c.get(3))&&wpa(a,d);(d=c.get(4))&&xpa(a,d);(c=c.get(5))&&ypa(a,c)};
vpa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&hQ(a.u,d.slot)&&zpa(a,d.slot,d.layout,c)};
wpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())WP(a,d.value.slot,!1)};
xpa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(ZP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(kL(a.Gb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.lq(d.slot))}};
ypa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;kL(a.Gb,"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.bi(d.slot);try{var h=a.u,l=d.slot,m=ZP(h,l);if(!m)throw new gH("Got enter request for unknown slot");if(!m.B)throw new gH("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new gH("Tried to enter a slot from stage: "+m.u);if(iQ(m))throw new gH("Got enter request for already active slot");
for(var n=g.q(jQ(h,l.ab+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&iQ(r)){var t=void 0;f=e=void 0;var w=h,y=r,x=l,B=kQ(w.ua.get(),1,!1),E=pG(w.Da.get(),1),G=oH(y.layout),K=y.slot.hc,H=Apa(w,K),ya=pH(K,H),ia=x.va.u.has("metadata_type_fulfilled_layout")?oH(X(x.va,"metadata_type_fulfilled_layout")):"unknown",Oa=x.hc,Ra=Apa(w,Oa),Wa=pH(Oa,Ra);w=H;var kc=Ra;if(w&&kc){if(w.start>kc.start){var Yb=g.q([kc,w]);w=Yb.next().value;kc=Yb.next().value}t=w.end>kc.start}else t=
!1;var Qe={details:B+" |"+(ya+" |"+Wa),activeSlotStatus:y.u,activeLayout:G?G:"empty",activeLayoutId:(null===(f=y.layout)||void 0===f?void 0:f.layoutId)||"empty",enteringLayout:ia,enteringLayoutId:(null===(e=X(x.va,"metadata_type_fulfilled_layout"))||void 0===e?void 0:e.layoutId)||"empty",hasOverlap:String(t),contentCpn:E.clientPlaybackNonce,contentVideoId:E.videoId,isAutonav:String(E.Kh),isAutoplay:String(E.eh)};throw new gH("Trying to enter a slot when a slot of same type is already active.",Qe);
}}}catch(ue){S(ue,d.slot,lQ(a.u,d.slot),void 0,ue.Ul);WP(a,d.slot,!0);continue}d=ZP(a.u,d.slot);"scheduled"!==d.u&&mQ(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Lx()}};
qpa=function(a,b){var c;if(YP(a.u,b)&&iQ(ZP(a.u,b))&&lQ(a.u,b)&&!hQ(a.u,b)){$P(a.Gb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=lQ(a.u,b))&&void 0!==c?c:void 0);var d=ZP(a.u,b);"entered"!==d.u&&mQ(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
zpa=function(a,b,c,d){if(YP(a.u,b)){var e=a.Gb,f;var h=(null===(f=gpa.get(d))||void 0===f?void 0:f.Lr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";$P(e,h,b,c);a=ZP(a.u,b);"rendering"!==a.u&&mQ(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.jh(c,d)}};
WP=function(a,b,c){if(YP(a.u,b)){if(a.u.Uy(b)||a.u.Qy(b))if(ZP(a.u,b).F=!0,!c)return;if(iQ(ZP(a.u,b)))ZP(a.u,b).F=!0,Bpa(a,b,c);else if(a.u.Vy(b))ZP(a.u,b).F=!0,YP(a.u,b)&&(kL(a.Gb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=ZP(a.u,b),b.D="fill_cancel_requested",b.I.u());else{c=lQ(a.u,b);kL(a.Gb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=ZP(a.u,b),e=b.hc,f=d.Y.get(e.triggerId);f&&(f.mh(e),d.Y["delete"](e.triggerId));e=g.q(b.Me);for(f=e.next();!f.done;f=e.next()){f=
f.value;var h=d.P.get(f.triggerId);h&&(h.mh(f),d.P["delete"](f.triggerId))}e=g.q(b.Af);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.R.get(f.triggerId))h.mh(f),d.R["delete"](f.triggerId);null!=d.layout&&(e=d.layout,nQ(d,e.ae),nQ(d,e.wd),nQ(d,e.ud),nQ(d,e.be));d.I=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;ZP(d,b)&&(d=jQ(d,b.ab+"_"+b.feedPosition))&&d["delete"](b.slotId);kL(a.Gb,"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.nj(b),c&&d.jj(b,c)}}};
Bpa=function(a,b,c){if(YP(a.u,b)&&iQ(ZP(a.u,b))){var d=lQ(a.u,b);if(d&&hQ(a.u,b))zpa(a,b,d,c?"error":"abandoned");else{kL(a.Gb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=ZP(a.u,b);if(!e)throw new gH("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&mQ(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new gH("Cannot exit slot because adapter is not defined");e.B.Qx()}catch(f){S(f,b,void 0,void 0,f.Ul)}}}};
oQ=function(a){this.slot=a;this.Y=new Map;this.P=new Map;this.R=new Map;this.X=new Map;this.C=this.layout=this.B=this.I=void 0;this.Nn=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"};
iQ=function(a){return"enter_requested"===a.u||a.isActive()};
aQ=function(a,b,c){c=void 0===c?!1:c;Ya.call(this,a);this.Ul=c;this.args=[];b&&this.args.push(b)};
pQ=function(a,b,c,d,e,f,h,l){g.C.call(this);this.hd=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Ib=f;this.ua=h;this.Da=l;this.u=new Map};
jQ=function(a,b){var c=a.u.get(b);return c?c:new Map};
ZP=function(a,b){return jQ(a,b.ab+"_"+b.feedPosition).get(b.slotId)};
Cpa=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};
Apa=function(a,b){if(b instanceof nH)return b.D;if(b instanceof mH){var c=MO(a.Ib.get(),b.u);if(c=null===c||void 0===c?void 0:X(c.va,"metadata_type_ad_placement_config"))return c=hH(c,0x7ffffffffffff),c instanceof gH?void 0:c.gh}};
YP=function(a,b){return null!=ZP(a,b)};
hQ=function(a,b){var c=ZP(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};
lQ=function(a,b){var c=ZP(a,b);return null!=c.layout?c.layout:null};
qQ=function(a,b,c){if(g.kb(c))throw new gH("No "+Dpa.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.hd.Dg.get(d.triggerType))throw new gH("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
bQ=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.hd.Dg.get(d.triggerType))throw new aQ("No trigger adapter registered for "+Dpa.get(b)+" trigger of type: "+d.triggerType);};
cQ=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.hd.Dg.get(e.triggerType);f.ih(c,e,b.slot,b.layout?b.layout:null);b.X.set(e.triggerId,f)}};
nQ=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.X.get(d.triggerId);e&&(e.mh(d),a.X["delete"](d.triggerId))}};
mQ=function(a,b,c){S("Slot stage was "+b+" when calling method "+c,a)};
Epa=function(a){return rQ(a.Vm).concat(rQ(a.Dg)).concat(rQ(a.Jj)).concat(rQ(a.qk)).concat(rQ(a.Yj))};
rQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Wi&&b.push(c);return b};
Gpa=function(a){g.C.call(this);this.u=a;this.B=Fpa(this)};
Fpa=function(a){var b=new UP(function(c,d,e,f){return new pQ(a.u.hd,c,d,e,f,a.u.Ib,a.u.ua,a.u.Da)},new Set(Epa(a.u.hd).concat(a.u.listeners)),a.u.Gb,a.u.Ca);
g.D(a,b);return b};
sQ=function(a){g.C.call(this);var b=this;this.B=a;this.u=null;g.eg(this,function(){g.fg(b.u);b.u=null})};
Y=function(a){return new sQ(a)};
Kpa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,tQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return Hpa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Dp:b.Dp},h=f.next()){b.Dp=h.value;h={};for(var l=g.q(b.Dp.Ww),m=l.next();!m.done;h={xk:h.xk},m=l.next())h.xk=m.value,m=function(n,p){return function(r){return n.xk.zC(r,p.Dp.instreamVideoAdRenderer.elementId,n.xk.PB)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.xk.Kn?a.push(Ipa(c,d,h.xk.QB,e,h.xk.adSlotLoggingData,m)):a.push(Jpa(c,d,e,b.Dp.instreamVideoAdRenderer.elementId,h.xk.adSlotLoggingData,m))}return a};
tQ=function(a,b,c){if(b=Lpa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Mpa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.nu=c)}else S("InstreamVideoAdRenderer without externalVideoId")}};
Lpa=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};
Hpa=function(a){if(void 0===a.instreamVideoAdRenderer)return S("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.Ww),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.zC)return!1;if(void 0===c.PB)return S("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.nu||void 0===c.Kn||a.nu!==c.Kn&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Kn)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return S("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.nu,"matching APSR kind":c.Kn}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Kn&&void 0===c.QB)return S("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
Mpa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,nu:void 0,adVideoId:b,Ww:[]});return a.get(b)};
uQ=function(a,b,c,d,e,f,h){d?Mpa(a,d).Ww.push({QB:b,Kn:c,PB:e,adSlotLoggingData:f,zC:h}):S("Companion AdPlacementSupportedRenderer without adVideoId")};
Ppa=function(a,b,c,d,e,f,h){if(!Npa(a))return new gH("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Opa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=vQ(e.Ua.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bb:"core"},r=new wQ(e.u,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",kd:new Map,ae:[r],wd:[],
ud:[],be:[],bb:"core",va:new OP([new GG(l)]),td:n(p)}})]};
Npa=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};
Upa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Qpa(a))return function(){return new gH("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=Rpa(h);return 0>=l?function(){return new gH("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=Spa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=vQ(e.Ua.get(),"LAYOUT_TYPE_SURVEY",t);var y={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",bb:"core"},x=new wQ(e.u,d),B=new xQ(e.u,t),E=new yQ(e.u,t),G=new Tpa(e.u);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",kd:new Map,ae:[x,G],wd:[B],ud:[],be:[E],bb:"core",va:new OP([new FG(h),new AG(b),new bH(l/1E3)]),td:w(y),adLayoutLoggingData:h.adLayoutLoggingData}}),r=Ppa(a,c,p.slotId,d,e,m,n);
return r instanceof gH?r:[p].concat(g.ma(r))}};
Rpa=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};
Qpa=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};
Xpa=function(a,b,c,d,e){var f=[];try{var h=[],l=Vpa(a,d,function(t){t=Wpa(t.slotId,c,b,e(t),d);h=t.iS;return t.SJ});
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 gH)return r;f.push.apply(f,g.ma(r))}}catch(t){return new gH(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
Wpa=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={KH:h,LH:0,fS:n};l=l.map(function(t){return Ypa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var y=new CJ(w,n);
return t(y)});
var r=l.map(function(t){return t.TJ});
return{SJ:Zpa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),$pa(b),d,m),iS:l.map(function(t){return t.hS})}};
Ypa=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=Xp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=aqa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.KH,t=c.LH,w=Number(m.trimmedMaxNonSkippableAdDurationMs),y=isNaN(w)?b:Math.min(b,
w/1E3),x=Math.min(r+1E3*y,l);c.KH=x;c.LH++;c.fS.push(y);var B=m.pings?DJ(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.B&&(n.slot_pos=G.u);n.autoplay="1";var K=m.adLayoutLoggingData,H=m.sodarExtensionData,ya=vQ(d.Ua.get(),"LAYOUT_TYPE_MEDIA",a),ia={layoutId:ya,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};G={layoutId:ya,layoutType:"LAYOUT_TYPE_MEDIA",kd:B,ae:[],wd:[],ud:[],be:[],bb:"adapter",va:new OP([new DG(h),
new OG(y),new PG(n),new RG(r),new SG(x),new TG(t),new LG({current:null}),E&&new EG(E),new AG(f),new CG(p),new BG(G),H&&new QG(H)].filter(bqa)),td:e(ia),adLayoutLoggingData:K};K=Upa(m,f,h,G.layoutId,d);return{TJ:G,hS:K}}};
aqa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
$pa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
dqa=function(a,b,c,d,e,f,h,l){a=cqa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=vQ(b.Ua.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",kd:r,ae:[new zQ(b.u,n)],wd:[],ud:[],be:[],bb:"core",va:new OP([new WG(e),new AG(c)]),td:m(p)}});
return a instanceof gH?a:[a]};
fqa=function(a,b,c,d,e,f,h,l){a=eqa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=vQ(b.Ua.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),r=AQ(b,t,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,r,BQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=vQ(b.Ua.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),r=AQ(b,t,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,r,BQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=vQ(b.Ua.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),p=BQ(b,n,p),p.push(new CQ(b.u,t)),r=AQ(b,t,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,r,p)):r=new aQ("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new aQ("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof gH?a:[a]};
gqa=function(a,b,c,d){if(!c.playerVars)return new gH("No playerVars available in AdIntroRenderer.");var e=Xp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=vQ(a.Ua.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};return{eS:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",kd:new Map,ae:[],wd:[],ud:[],be:[],bb:"adapter",va:new OP([new VG({}),new AG(b),new LG({current:null}),new PG(e)]),td:f(l)},LJ:[new DQ(a.u,h)],KJ:[]}}};
kqa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var y=new CJ(0,[t.Rs]),x=hqa(t.playerVars,t.fH,l,p,y);w=m(w);var B=n.get(t.zw.externalVideoId);y=iqa(b,"core",t.zw,c,x,t.Rs,f,y,w,B);return{layoutId:y.layoutId,layoutType:y.layoutType,kd:y.kd,ae:y.ae,wd:y.wd,ud:y.ud,be:y.be,bb:y.bb,va:y.va,td:y.td,adLayoutLoggingData:y.adLayoutLoggingData}}
var t=EQ(e);if(t instanceof aQ)return new gH(t);if(r instanceof gH)return r;a=jqa(a,c,f,h,d,r);return a instanceof gH?a:[a]};
EQ=function(a){if(!a.playerVars)return new aQ("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 aQ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Xp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new aQ("Expected valid length seconds in player vars"):
{zw:a,playerVars:b,fH:a.playerVars,Rs:c}};
hqa=function(a,b,c,d,e){a.iv_load_policy=d;b=Xp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.gg&&(a.ctrl=c.gg);c.nf&&(a.ytr=c.nf);c.Cj&&(a.ytrcc=c.Cj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gg&&(a.vss_credentials_token_type=c.Gg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.u);a.autoplay="1";return a};
mqa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new gH("Received invalid LinearAdSequenceRenderer.");b=lqa(b,c,e,f,l,m,n,p);if(b instanceof gH)return new gH(b);a=jqa(a,c,f,h,d,b);return a instanceof gH?a:[a]};
lqa=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=EQ(r.instreamVideoAdRenderer);if(r instanceof aQ){n=new gH(r);break b}n.push(r.Rs)}}if(!(n instanceof gH)){p=0;r=[];for(var t=[],w=[],y=g.q(c.linearAds),x=y.next();!x.done;x=y.next())if(x=x.value,x.adIntroRenderer){x=gqa(a,b,x.adIntroRenderer,f);if(x instanceof gH){n=x;break a}x=x(m);r.push(x.eS);t=[].concat(g.ma(x.LJ),g.ma(t));w=[].concat(g.ma(x.KJ),
g.ma(w))}else if(x.instreamVideoAdRenderer){x=EQ(x.instreamVideoAdRenderer);if(x instanceof aQ){n=new gH(x);break a}var B=new CJ(p,n),E=hqa(x.playerVars,x.fH,e,l,B),G=f(m),K=h.get(x.zw.externalVideoId);E=iqa(a,"adapter",x.zw,b,E,x.Rs,d,B,G,K);x={layoutId:E.layoutId,layoutType:E.layoutType,kd:E.kd,ae:[],wd:[],ud:[],be:[],bb:E.bb,va:E.va,td:E.td,adLayoutLoggingData:E.adLayoutLoggingData};B=E.wd;E=E.ud;p++;r.push(x);t=[].concat(g.ma(B),g.ma(t));w=[].concat(g.ma(E),g.ma(w))}else if(x.adActionInterstitialRenderer){var H=
a;B=m.slotId;K=b;G=f(m);x=x.adActionInterstitialRenderer.adLayoutLoggingData;var ya=vQ(H.Ua.get(),"LAYOUT_TYPE_MEDIA_BREAK",B),ia={layoutId:ya,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"adapter"};E=ya;B=new Map;new zQ(H.u,ya);H=[new xQ(H.u,ya)];K=new OP([new AG(K)]);G=G(ia);r.push({layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",kd:B,ae:[],wd:[],ud:[],be:[],bb:"adapter",va:K,td:G,adLayoutLoggingData:x});t=[].concat(g.ma(H),g.ma(t));w=[].concat(g.ma([]),g.ma(w))}else{n=new gH("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}n={gS:r,wd:t,ud:w}}}r=n;r instanceof gH?m=r:(t=m.slotId,n=r.gS,p=r.wd,r=r.ud,m=f(m),t=vQ(a.Ua.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",t),w={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"},m={layoutId:t,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kd:new Map,ae:[new zQ(a.u,t)],wd:p,ud:r,be:[],bb:"core",va:new OP([new MG(n)]),td:m(w)});return m}};
FQ=function(a,b,c,d,e,f){this.ib=a;this.Cb=b;this.gb=c;this.u=d;this.Gi=e;this.loadPolicy=void 0===f?1:f};
qG=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,y,x,B,E,G=[];if(0===b.length)return G;b=b.filter(fH);for(var K=new Map,H=new Map,ya=g.q(b),ia=ya.next();!ia.done;ia=ya.next())(ia=ia.value.renderer.remoteSlotsRenderer)&&ia.hostElementId&&H.set(ia.hostElementId,ia);ya=g.q(b);for(ia=ya.next();!ia.done;ia=ya.next()){ia=ia.value;var Oa=nqa(a,K,ia,d,e,f,h,H);Oa instanceof gH?S(Oa,void 0,void 0,{renderer:ia.renderer,config:ia.config.adPlacementConfig,kind:ia.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.ma(Oa))}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),G.length||a||S("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}),G;c=c.filter(fH);G.push.apply(G,g.ma(Kpa(K,c,a.ib.get(),a.u,d)));G.length||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(B=null===(x=null===(y=b[0])||void 0===y?void 0:y.config)||void 0===x?void 0:x.adPlacementConfig)||void 0===B?void 0:B.kind,renderer:null===(E=b[0])||
void 0===E?void 0:E.renderer});return G};
nqa=function(a,b,c,d,e,f,h,l){function m(w){return SP(a.gb.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)uQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,y,x){var B=a.Cb.get(),E=n.actionCompanionAdRenderer,G=SP(a.gb.get(),w);return GQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new sG(E),y,x,E.impressionPings,E.impressionCommands,G,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)uQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,y,x){var B=a.Cb.get(),E=n.imageCompanionAdRenderer,G=SP(a.gb.get(),w);return GQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new wG(E),y,x,E.impressionPings,E.impressionCommands,G,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)uQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,y,x){var B=a.Cb.get(),E=n.shoppingCompanionCarouselRenderer,G=SP(a.gb.get(),w);return GQ(B,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new xG(E),y,x,E.impressionPings,E.impressionEndpoints,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!jH(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Gi)return new gH("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");oqa(a.Gi,{adPlacementRenderer:c,contentCpn:d,uC:e});return[]}return Aia(a.ib.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return dqa(a.ib.get(),a.Cb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return fqa(a.ib.get(),
a.Cb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return Xpa(a.ib.get(),a.Cb.get(),c,d,m);tQ(b,n,r);return mqa(a.ib.get(),a.Cb.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return tQ(b,n,r),kqa(a.ib.get(),a.Cb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
HQ=function(a){g.C.call(this);this.u=a};
nG=function(a,b,c,d){a.u().Zg(b,d);c=c();a=a.u();IQ(a.Gb,"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;kL(d.Gb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.pc(c.slotId))throw new gH("Slot ID was empty");if(ZP(e,c))throw new gH("Duplicate registration for slot.");if(!e.hd.Jj.has(c.ab))throw new gH("No fulfillment adapter factory registered for slot of type: "+c.ab);if(!e.hd.qk.has(c.ab))throw new gH("No SlotAdapterFactory registered for slot of type: "+
c.ab);qQ(e,5,c.hc?[c.hc]:[]);qQ(e,4,c.Me);qQ(e,3,c.Af);var f=d.u,h=c.ab+"_"+c.feedPosition,l=jQ(f,h);if(ZP(f,c))throw new gH("Duplicate slots not supported");l.set(c.slotId,new oQ(c));f.u.set(h,l)}catch(kc){S(kc,c,void 0,void 0,kc.Ul);break a}d.u.Nn(c);try{var m=d.u,n=ZP(m,c),p=c.hc,r=m.hd.Dg.get(p.triggerType);r&&(r.ih(5,p,c,null),n.Y.set(p.triggerId,r));for(var t=g.q(c.Me),w=t.next();!w.done;w=t.next()){var y=w.value,x=m.hd.Dg.get(y.triggerType);x&&(x.ih(4,y,c,null),n.P.set(y.triggerId,x))}for(var B=
g.q(c.Af),E=B.next();!E.done;E=B.next()){var G=E.value,K=m.hd.Dg.get(G.triggerType);K&&(K.ih(3,G,c,null),n.R.set(G.triggerId,K))}var H=m.hd.Jj.get(c.ab).get(),ya=m.C,ia=c;var Oa=JQ(ia,{Be:["metadata_type_fulfilled_layout"]})?new KQ(ya,ia):H.u(ya,ia);n.I=Oa;var Ra=m.hd.qk.get(c.ab).get().u(m.F,c);Ra.init();n.B=Ra}catch(kc){S(kc,c,void 0,void 0,kc.Ul);WP(d,c,!0);break a}kL(d.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.Ag(c);ia=g.q(d.B);for(var Wa=ia.next();!Wa.done;Wa=ia.next())Wa.value.Ag(c);
dQ(d,c)}};
LQ=function(a,b,c,d){g.C.call(this);var e=this;this.tb=a;this.ib=b;this.Bb=c;this.u=new Map;d.get().addListener(this);g.eg(this,function(){d.get().removeListener(e)})};
xia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.Me),f=e.next();!f.done;f=e.next())f=f.value,f instanceof nH?(c=Math.min(c,f.D.start),d=Math.max(d,f.D.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Gn(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.Bb.get().addCueRange(d,c.start,c.end,!1,a)};
MQ=function(){g.C.apply(this,arguments);this.Wi=!0;this.u=new Map;this.B=new Map};
MO=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}S("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.pc(b)),layoutId:b})};
NQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
OQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return It()};
vQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;d++;a.u.set(b,d);return c+"_"+b+"_"+d}return It()};
PQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return It()};
pqa=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)};
DQ=function(a,b){this.u=b;this.triggerType="trigger_type_layout_exited_for_reason";this.triggerId=a(this.triggerType)};
wQ=function(a,b){this.u=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)};
qqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
QQ=function(a,b){this.D=b;this.ab="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)};
RQ=function(a,b){this.D=b;this.ab="SLOT_TYPE_IN_PLAYER";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)};
zQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)};
rqa=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)};
Tpa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)};
xQ=function(a,b){this.u=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)};
yQ=function(a,b){this.u=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)};
CQ=function(a,b){this.durationMs=45E3;this.u=b;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)};
sqa=function(a){return[new HG(a.pw),new EG(a.instreamAdPlayerOverlayRenderer),new KG(a.EG),new AG(a.adPlacementConfig),new OG(a.videoLengthSeconds),new bH(a.uE)]};
tqa=function(a,b,c,d,e,f){a=c.By?c.By:vQ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",kd:new Map,ae:[new wQ(function(l){return PQ(f,l)},c.pw)],
wd:[],ud:[],be:[],bb:b,va:d,td:e(h),adLayoutLoggingData:c.adLayoutLoggingData}};
SQ=function(a,b){var c=this;this.Ca=a;this.Ua=b;this.u=function(d){return PQ(c.Ua.get(),d)}};
TQ=function(a,b,c,d,e){return tqa(b,c,d,new OP(sqa(d)),e,a.Ua.get())};
GQ=function(a,b,c,d,e,f,h,l,m,n){b=vQ(a.Ua.get(),c,b);var p={layoutId:b,layoutType:c,bb:"core"},r=new Map;h?r.set("impression",h):l&&S("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":l.length,adPlacementKind:f.kind,companionType:d.u()});return{layoutId:b,layoutType:c,kd:r,ae:[new zQ(a.u,b),new QQ(a.u,e)],wd:[],ud:[],be:[],bb:"core",va:new OP([d,new AG(f),new HG(e)]),td:m(p),adLayoutLoggingData:n}};
BQ=function(a,b,c){var d=[];d.push(new RQ(a.u,c));g.Q(a.Ca.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
AQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,bb:"core"};return{layoutId:b,layoutType:c,kd:new Map,ae:h,wd:[new pqa(a.u,b)],ud:[],be:[],bb:"core",va:new OP([new vG(d),new AG(e)]),td:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
iqa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",bb:b};d=[new AG(d),new BG(l),new CG(c.externalVideoId),new DG(h),new EG(c.playerOverlay.instreamAdPlayerOverlayRenderer),new dH({impressionCommands:c.impressionCommands,onAbandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,adVideoProgressCommands:c.adVideoProgressCommands}),new PG(e),new LG({current:null}),new OG(f)];e=OQ(a.Ua.get(),"SLOT_TYPE_IN_PLAYER");f=vQ(a.Ua.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",
e);d.push(new IG(f));d.push(new JG(e));c.adNextParams&&d.push(new tG(c.adNextParams));c.clickthroughEndpoint&&d.push(new uG(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new cH(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new QG(c.sodarExtensionData));n&&d.push(new aH(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",kd:DJ(c.pings),ae:[new zQ(a.u,p)],wd:c.skipOffsetMilliseconds?[new xQ(a.u,f)]:[],ud:[new xQ(a.u,f)],be:[],bb:b,va:new OP(d),td:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
Zpa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return NP(p,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout");
b=vQ(a.Ua.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",kd:f,ae:[new qqa(a.u)],wd:[],ud:[],be:[],bb:"core",va:new OP([new RG(c),new SG(m),new MG(d),new AG(e),new XG(h)]),td:l(n)}};
bqa=function(a){return null!=a};
UQ=function(a,b,c){this.C=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)};
VQ=function(a,b,c){this.u=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)};
uqa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
WQ=function(a,b,c){this.C=b;this.D=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)};
XQ=function(a,b){this.D=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)};
YQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)};
ZQ=function(a,b){this.B=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)};
$Q=function(a,b){this.B=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)};
aR=function(a,b){this.B=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)};
bR=function(a,b){this.B=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)};
cR=function(a,b){this.B=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)};
dR=function(a){var b=this;this.Ua=a;this.u=function(c){return PQ(b.Ua.get(),c)}};
iH=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=OQ(a.Ua.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Wn&&d.Wn.start!==d.gh.start&&l.push(new nH(a.u,c,new Gn(d.Wn.start,d.gh.start),!1));l.push(new nH(a.u,c,new Gn(d.gh.start,d.gh.end),d.Ov));d={getAdBreakUrl:b.getAdBreakUrl,eH:d.gh.start,dH:d.gh.end};b=new bR(a.u,h);f=[new ZG(d)].concat(g.ma(f));return{slotId:h,ab:"SLOT_TYPE_AD_BREAK_REQUEST",feedPosition:1,hc:b,Me:l,Af:[new XQ(a.u,c),new $Q(a.u,h),new aR(a.u,h)],bb:"core",va:new OP(f),adSlotLoggingData:e}};
wqa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(vqa(a,b,e.value));return d};
vqa=function(a,b,c){return null!=c.B&&c.B===a?c.clone(b):c};
xqa=function(a,b,c,d,e){e=e?e:OQ(a.Ua.get(),"SLOT_TYPE_IN_PLAYER");c=new mH(a.u,c);var f={slotId:e,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,bb:"core",hc:c};return{slotId:e,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,hc:c,Me:[new ZQ(a.u,e)],Af:[new XQ(a.u,b),new $Q(a.u,e)],bb:"core",va:new OP([new YG(d(f))])}};
eqa=function(a,b,c,d,e,f){var h=eR(a,b,c,d);if(h instanceof gH)return h;h instanceof nH&&(h=new nH(a.u,h.C,h.D,h.visible,h.F,!0));d=h instanceof nH?new WQ(a.u,c,h.D):null;b=OQ(a.Ua.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,bb:"core",hc:h},d);return f instanceof aQ?new gH(f):{slotId:b,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,hc:h,Me:[new ZQ(a.u,b)],Af:[new XQ(a.u,c),new $Q(a.u,b)],bb:"core",va:new OP([new YG(f)]),adSlotLoggingData:e}};
Spa=function(a,b,c,d){var e=OQ(a.Ua.get(),"SLOT_TYPE_IN_PLAYER");c=new mH(a.u,c);var f={slotId:e,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,bb:"core",hc:c};return{slotId:e,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,hc:c,Me:[new ZQ(a.u,e)],Af:[new XQ(a.u,b),new $Q(a.u,e)],bb:"core",va:new OP([new YG(d(f))])}};
Opa=function(a,b,c,d,e){var f=OQ(a.Ua.get(),"SLOT_TYPE_IN_PLAYER");c=new VQ(a.u,d,c);d={slotId:f,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,bb:"core",hc:c};return{slotId:f,ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,hc:c,Me:[new ZQ(a.u,f)],Af:[new XQ(a.u,b)],bb:"core",va:new OP([new YG(e(d))])}};
Jpa=function(a,b,c,d,e,f){var h=OQ(a.Ua.get(),b);return yqa(a,h,b,new mH(a.u,d),c,e,f)};
Ipa=function(a,b,c,d,e,f){return yqa(a,c,b,new YQ(a.u,c),d,e,f)};
Vpa=function(a,b,c){var d=OQ(a.Ua.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new uqa(a.u),f={slotId:d,ab:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,bb:"core",hc:e};return{slotId:d,ab:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,hc:e,Me:[new cR(a.u,d)],Af:[new XQ(a.u,b)],bb:"core",va:new OP([new YG(c(f)),new UG({})])}};
jqa=function(a,b,c,d,e,f){var h=OQ(a.Ua.get(),"SLOT_TYPE_PLAYER_BYTES");b=eR(a,b,c,d);if(b instanceof gH)return b;f=f({slotId:h,ab:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,bb:"core",hc:b});return f instanceof gH?f:{slotId:h,ab:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,hc:b,Me:[new ZQ(a.u,h)],Af:[new $Q(a.u,h),new XQ(a.u,c)],bb:"core",va:new OP([new YG(f)]),adSlotLoggingData:e}};
cqa=function(a,b,c,d,e,f){var h=OQ(a.Ua.get(),"SLOT_TYPE_FORECASTING");b=eR(a,b,c,d);if(b instanceof gH)return b;d={slotId:h,ab:"SLOT_TYPE_FORECASTING",feedPosition:1,bb:"core",hc:b};return{slotId:h,ab:"SLOT_TYPE_FORECASTING",feedPosition:1,hc:b,Me:[new ZQ(a.u,h)],Af:[new $Q(a.u,h),new XQ(a.u,c)],bb:"core",va:new OP([new YG(f(d))]),adSlotLoggingData:e}};
eR=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new kH(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=hH(b,d);if(b instanceof gH)return b;b=b.gh;return new nH(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new UQ(a.u,c,e);default:return new gH("Cannot construct entry trigger",{kind:b.kind})}};
yqa=function(a,b,c,d,e,f,h){var l={slotId:b,ab:c,feedPosition:1,bb:"core",hc:d};return{slotId:b,ab:c,feedPosition:1,hc:d,Me:[new cR(a.u,b)],Af:[new XQ(a.u,e),new $Q(a.u,b)],bb:"core",va:new OP([new YG(h(l))]),adSlotLoggingData:f}};
fR=function(a,b,c){g.C.call(this);this.Ca=a;this.u=b;this.Da=c;this.eventCount=0};
kL=function(a,b,c){IQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
$P=function(a,b,c,d){IQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
tpa=function(a,b,c,d){g.Q(a.Ca.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&IQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)};
IQ=function(a,b,c,d,e,f,h,l,m,n){if(g.Q(a.Ca.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.Q(a.Ca.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=RP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.P(a.Ca.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:pG(a.Da.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=pG(a.Da.get(),1).Wg;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=QP(p,f));h&&(a.layoutData=lpa(p,h));l&&(a.triggerData=kpa(l.trigger,l.category));c&&(a.opportunityData=opa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Nq("adsClientStateChange",{adsClientEvent:b})}};
gR=function(){this.u=new Map};
hR=function(a,b,c,d,e){g.C.call(this);this.C=b;this.ua=c;this.Ca=d;this.ee=e;this.listeners=[];var f=new rt(this);g.D(this,f);f.N(a,"internalAbandon",this.B);g.eg(this,function(){g.ut(f)})};
zqa=function(a,b,c,d,e,f,h){var l;if(""===b)S("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.u=b;a.ua.get().ej(b,c,d,e,f,h);null===(l=a.ee)||void 0===l?void 0:l.get().ej(b,c,d,e,f,h);a.C.ej(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.ej(b,c,d,e,f,h)}};
Aqa=function(a,b){a.u=void 0;for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())d.value.Pm(b)};
iR=function(a){g.C.call(this);this.J=a;this.u=new Map;this.B=new rt(this);g.D(this,this.B);this.B.N(this.J,g.hF("ad"),this.C,this);this.B.N(this.J,g.iF("ad"),this.D,this)};
Bqa=function(a,b,c,d,e){g.eF.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
jR=function(a){this.J=a};
kR=function(a){return g.Q(a.J.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
lR=function(a){if(g.JD(a.J.T()))return!1;if(KD(a.J.T()))return g.Q(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");var b=g.HD(a.J.T())||a.J.T().u||g.LD(a.J.T())||MD(a.J.T())||yD(a.J.T());a=g.wD(a.J.T())&&g.Q(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
qN=function(a){return g.Q(a.J.T().experiments,"html5_pacf_enable_dai")||g.Q(a.J.T().experiments,"html5_server_stitched_dai_group")};
uN=function(a){return g.Q(a.J.T().experiments,"html5_handle_preroll_lock_in_pacf")};
Cqa=function(a){return g.Q(a.J.T().experiments,"html5_recognize_predict_start_cue_point")};
mR=function(a,b){this.ua=a;this.J=b;this.u=new Map;BJ().subscribe("adactiveviewmeasurable",this.C,this);BJ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);BJ().subscribe("adviewableimpression",this.D,this)};
Dqa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?S("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),Tla(BJ(),b,{oq:function(){return c?{currentTime:kQ(a.ua.get(),2,!1),duration:c,Hb:2===a.ua.get().getPresentingPlayerType()&&1===nR(a.ua.get(),2),c5:!1,d5:!0,volume:a.ua.get().isMuted()?0:a.ua.get().getVolume()/100}:{}}}))};
Eqa=function(a,b){a.u.has(b)?(a.u["delete"](b),delete BJ().u[b]):S("Unexpected unregistration of layout in LidarApi")};
Coa=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.Q(a.J.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Al(b,a),{};c=hK(c);if(null===c)return{};var d=a.J.dc();d=d&&2===d.getPlayerType()&&xK(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.ua.get().isFullscreen()};return zl(c,b,a)};
oR=function(a,b){this.u=a;this.C=b};
pR=function(a,b,c,d){var e=void 0===e?new oR(function(){var f=a.getVideoData(1);return f?f.uf():""},function(){return a.T().pageId}):e;
this.J=a;this.Nd=b;this.jb=c;this.Da=d;this.Ip=e;this.B=null;this.u=new Map;this.ci=new aK(e)};
Gqa=function(a,b,c,d,e){d=void 0===d?[]:d;var f=MO(a.Nd.get(),c);f?(c=IO(a,Doa(f),f),b.hasOwnProperty("baseUrl")?a.Ip.send(b,c):a.ci.send(b,c,{},d)):b.hasOwnProperty("baseUrl")?S("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,ping:Fqa(b.baseUrl),commandsOrderedAsString:e}):S("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,ping:Fqa(b),commandsOrderedAsString:e})};
Fqa=function(a){if(!a)return"empty url";var b=a.length;if(300>b)return a;var c="";if(a.includes("event=")){var d=a.indexOf("event=");c=c.concat(a.substring(d,d+100),", ")}a.includes("label=")&&(d=a.indexOf("label="),c=c.concat(a.substring(d,d+100)));return 0<c.length?c:a.substring(0,Math.min(b,300))};
qR=function(a,b){g.Nq("adsClientStateChange",b)};
rR=function(a,b){a.u.has(b.tq())?S("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.tq(),b)};
sR=function(a,b){a.u["delete"](b.tq())||S("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Doa=function(a){var b=X(a.va,"metadata_type_ad_placement_config");a=X(a.va,"metadata_type_sub_layout_index");return{adPlacementConfig:b,vE:a}};
IO=function(a,b,c){var d=c?Hqa(a):{};c=c?Iqa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},TJ(a.J)),ama(b.adPlacementConfig)),(e.SLOT_POS=SJ(function(){return(b.vE||0).toString()}),e)),c),d),(f.FINAL=SJ(function(){return"1"}),f.AD_CPN=SJ(function(){var l;
return(null===(l=pG(a.Da.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(Jqa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
Hqa=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=SJ(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=SJ(function(){return Math.round(Date.now()/1E3).toString()});
return c};
Iqa=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.Xx();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Kw.toString(),d.ERRORCODE=c.ys.toString(),d.ERROR_MSG=c.errorMessage,d};
g.tR=function(){rt.apply(this,arguments)};
uR=function(a,b){g.C.call(this);this.J=a;this.Sc=b;this.listeners=[];var c=new g.tR(this);g.D(this,c);c.N(a,"videodatachange",this.ZQ);this.u=pG(this);this.contentCpn=pG(this,1).clientPlaybackNonce};
pG=function(a,b){var c=a.J.getVideoData(b);return c?a.Vs(c,b||a.J.getPresentingPlayerType()):null};
vR=function(a){g.C.call(this);this.J=a;this.listeners=[];this.u=function(){S("Called 'doUnlockPreroll' before it's initialized.")};
var b=new rt(this);g.D(this,b);b.N(a,"progresssync",this.XP);b.N(a,"presentingplayerstatechange",this.OP);b.N(a,"fullscreentoggled",this.UL);b.N(a,"onVolumeChange",this.VL);b.N(a,"minimized",this.kj);b.N(a,"resize",this.Va)};
kQ=function(a,b,c){return a.J.getCurrentTime(b,c)};
nR=function(a,b){return g.uK(a.J,b)};
Kqa=function(a){var b=g.cG(a.J).getPlayerSize();a=a.J.Pi(!0,!0);return b.height-(a.height+a.top)};
Lqa=function(a,b){var c=a.J.T();mD(c)||"3"!==c.controlsType||fK(g.cG(a.J),b)};
Mqa=function(a,b,c){g.C.call(this);var d=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(d.Ca,d.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(d.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.gb=Y(function(){return new TP(d.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(d.ib,d.Cb,d.gb,null,null)});
g.D(this,this.uc);this.Da=Y(function(){return new uR(b,d.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.jb=Y(function(){return new mR(d.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,d.Ib,d.jb,d.Da)});
g.D(this,this.Fa);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var e=new hR(b,this.Pb,this.ua,this.Ca);this.Td=Y(function(){return e});
this.ik=e;this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.hd={Vm:new Map,Jj:new Map,Dg:new Map,qk:new Map,Yj:new Map};this.listeners=[];this.Ke={Qb:this.Qb,yi:null,ak:null,qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:null,Wh:{Eq:function(){}},
vg:this.Ib.get()}};
wR=function(a){this.u=a};
xR=function(){};
Nqa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Ve(b.siub,b.scs,b.bgub,b.bgp)};
Oqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Cb=c;this.gb=d;this.Ca=e;this.u=null};
Pqa=function(a,b,c){a.u&&S("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=kR(a.Ca.get()))if(e=!d.nn)a:{e=g.q(a.slot.Me);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof kH){e=!0;break a}e=!1}if(e)for(e=g.q(d.ph),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&S("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.nn?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";f=a.Cb.get();var h=a.slot.slotId,l=SP(a.gb.get(),{slotId:a.slot.slotId,ab:a.slot.ab,feedPosition:a.slot.feedPosition,bb:a.slot.bb,hc:a.slot.hc}),m=vQ(f.Ua.get(),e,h),n={layoutId:m,layoutType:e,bb:"core"};d={layoutId:m,layoutType:e,kd:new Map,ae:[new rqa(f.u,h)],wd:[],ud:[],be:[],bb:"core",va:new OP([new $G(d)]),td:l(n)};rpa(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Hm||XP(a.callback,a.slot,new gH(d,void 0,!0))})};
Qqa=function(a){if(null==a.u)spa(a.callback,a.slot);else try{a.u.cancel(),a.u=null,spa(a.callback,a.slot)}catch(b){a.u=null,XP(a.callback,a.slot,new gH(b))}};
yR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.od=c;this.B=new Oqa(a,b,d,e,f)};
zR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.od=c;this.B=new Oqa(a,b,d,e,f)};
KQ=function(a,b){this.callback=a;this.slot=b};
JQ=function(a,b){return eH(a,b.Be,b.ab)?!0:!1};
Rqa=function(){};
AR=function(a,b,c,d){this.od=a;this.Cb=b;this.gb=c;this.Ca=d};
BR=function(){};
Sqa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
CR=function(a,b){return NP(a,b.Be,b.wg)?!0:!1};
DR=function(a){this.B=a};
Tqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.u=e;a=X(this.layout.va,"metadata_type_ad_placement_config");this.Ia=new GO(c.kd,this.Fa,a,c.layoutId)};
Uqa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];HO().forEach(function(b){a.push(b)});
return{Be:a,wg:["LAYOUT_TYPE_FORECASTING"]}};
ER=function(a,b,c){this.Fa=a;this.B=b;this.jb=c};
FR=function(a,b,c,d){g.O.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.wk=[]};
GR=function(a,b,c,d,e,f,h){e=X(c.va,e);a=JO(a);var l=cb(function(){d.xd(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.td},function(){l()}))};
HR=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ab&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():S("Tried to call engagePingCallback but it is null",h,l)}}else S("Companion AdUxClick received without a layoutId",h,l)};
IR=function(a,b,c,d,e,f,h,l){FR.call(this,a,b,c,d);this.Fa=e;this.me=f;this.Nd=l;this.Wi=!0;this.Ah=null;this.Jp="action-companion";this.cj=X(c.va,"metadata_type_linked_player_bytes_layout_id");VP(this.me(),this);a=X(c.va,"metadata_type_ad_placement_config");this.Ia=new GO(c.kd,this.Fa,a,c.layoutId)};
Vqa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];HO().forEach(function(b){a.push(b)});
return{Be:a,wg:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
JR=function(a,b,c,d,e,f,h){FR.call(this,a,b,c,d);this.ua=e;this.Fa=f;this.Nd=h;this.B=!1;this.cj=X(this.layout.va,"metadata_type_linked_player_bytes_layout_id")};
Wqa=function(){return{Be:["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"],wg:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
KR=function(a,b,c,d,e,f,h){return CR(c,Wqa())?new JR(a,b,c,d,e,f,h):null};
LR=function(a,b,c,d){this.Vb=a;this.ua=b;this.Fa=c;this.Nd=d};
MR=function(a,b,c,d){g.C.call(this);this.callback=a;this.Yc=b;this.ua=c;this.Tc=d};
NR=function(a,b,c,d,e,f,h,l){MR.call(this,a,b,c,d);this.D=e;this.slot=f;this.layout=h;this.F=l;this.u=[];this.B=-1};
PR=function(a){a.B===a.u.length-1?OR(a.F,a.layout.layoutId):(-1===a.B&&a.callback.xd(a.slot,a.layout),a.B++,a=a.u[a.B],a.startRendering(a.Vd()))};
QR=function(a){return!a.hk.Hb()&&a.state.Hb()};
RR=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
TR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,B,E,G,K){g.C.call(this);var H=this;this.callback=a;this.slot=b;this.layout=c;this.me=d;this.Fa=e;this.jb=f;this.Bd=h;this.Yc=l;this.Da=m;this.ua=n;this.Bb=p;this.Tc=r;this.ld=t;this.Dd=w;this.oc=y;this.Gd=x;this.C=B;this.position=G;this.P=K;this.Wi=!0;this.adCpn="";this.I=!1;this.B="not_rendering";a=X(this.layout.va,"metadata_type_ad_placement_config");this.Ia=new GO(c.kd,this.Fa,a,c.layoutId);this.D=new g.F(function(){SR(H,"load_timeout",new aQ("Media layout load timeout."))},
1E4);
this.K=cb(function(){"rendering_stop_requested"!==H.B&&E(H);H.F?H.callback.yd(H.slot,H.layout,H.F):S("Received layout exit signal when not in layout exit flow.",H.slot,H.layout)})};
Xqa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(HO()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Be:a,wg:["LAYOUT_TYPE_MEDIA"]}};
SR=function(a,b,c){a.R={Kw:3,ys:"load_timeout"===b?402:400,errorMessage:c.message};LO(a.Ia,"error");a.callback.Nf(a.slot,a.layout,c)};
Yqa=function(a,b,c){c=void 0===c?!1:c;var d,e=a.Ia,f=1E3*b,h=c;for(h=void 0===h?!1:h;e.B<e.C.length;){var l=e.C[e.B];if(l.offsetMilliseconds<=f||h)Boa(e,"progress",[l]),e.B++;else break}if(e=null===(d=pG(a.Da.get(),2))||void 0===d?void 0:d.playbackDurationMs)e/=1E3,(b>=.25*e||c)&&LO(a.Ia,"first_quartile"),(b>=.5*e||c)&&LO(a.Ia,"midpoint"),(b>=.75*e||c)&&LO(a.Ia,"third_quartile")};
Zqa=function(a,b){tM(a.Tc.get(),X(a.layout.va,"metadata_type_ad_placement_config").kind,b,a.position,a.P,!1)};
UR=function(a,b,c,d,e){MR.call(this,a,b,c,d);this.u=e};
ara=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,B,E){if(CR(d,{Be:["metadata_type_sub_layouts"],wg:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var G=X(d.va,"metadata_type_sub_layouts");a=new NR(a,n,r,w,b,c,d,f);b=[];for(var K={Pl:0};K.Pl<G.length;K={Pl:K.Pl},K.Pl++){var H=$qa({xd:a.HQ.bind(a),yd:a.JQ.bind(a),Nf:a.IQ.bind(a)},c,G[K.Pl],e,h,l,m,n,p,r,t,w,y,x,B,E,function(ya){return function(ia){ia.jh(G[ya.Pl],"normal")}}(K),K.Pl,G.length);
if(!H)return;b.push(H)}a.u=b;return a}if(CR(d,{Be:[],wg:["LAYOUT_TYPE_MEDIA"]}))return(c=$qa({xd:a.xd.bind(a),yd:a.yd.bind(a),Nf:a.Nf.bind(a)},c,d,e,h,l,m,n,p,r,t,w,y,x,B,E,function(){OR(f,d.layoutId)},0,1))?new UR(a,n,r,w,c):c};
$qa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,B,E,G){if(CR(c,Xqa()))return c.va.u.has("metadata_type_ad_intro")?new TR(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,function(K){t.get().u("onAdIntroStateChange",K)},B,E,G):new TR(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,function(K){var H=t.get();
Ena(H.J,K)},B,E,G)};
VR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.me=a;this.B=b;this.Fa=c;this.jb=d;this.Bd=e;this.Yc=f;this.Da=h;this.ua=l;this.Bb=m;this.Tc=n;this.ld=p;this.Dd=r;this.oc=t;this.Gd=w};
WR=function(a,b,c,d,e,f,h,l){g.C.call(this);this.u=a;this.C=b;this.B=c;this.tb=d;this.ib=e;this.gb=f;this.Ca=h;this.Da=l;this.Wi=!0};
bra=function(a){var b;return lR(a.Ca.get())||(null===(b=pG(a.Da.get()))||void 0===b?0:b.daiEnabled)&&qN(a.Ca.get())?!0:!1};
YR=function(a){var b,c=null===(b=X(a.va,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=X(a.va,"metadata_type_content_cpn"),f=X(a.va,"metadata_type_instream_ad_player_overlay_renderer"),h=X(a.va,"metadata_type_ad_placement_config"),l=X(a.va,"metadata_type_video_length_seconds");var m=a.va.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.va,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.va.u.has("metadata_type_layout_enter_ms")&&a.va.u.has("metadata_type_layout_exit_ms")?
(X(a.va,"metadata_type_layout_exit_ms")-X(a.va,"metadata_type_layout_enter_ms"))/1E3:void 0;a={pw:d,contentCpn:e,EG:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,uE:m,adLayoutLoggingData:a.adLayoutLoggingData,By:X(a.va,"metadata_type_linked_in_player_layout_id"),MD:X(a.va,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
cra=function(a,b){var c,d=null===(c=X(a.va,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.va.u.has("metadata_ad_video_is_listed"))var e=X(a.va,"metadata_ad_video_is_listed");else b?e=b.isListed:(S("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);if(a.va.u.has("metadata_type_ad_info_ad_metadata"))var f=X(a.va,"metadata_type_ad_info_ad_metadata");else b?f={channelId:b.kg,channelThumbnailUrl:b.lf,channelTitle:b.author,videoTitle:b.title}:
(S("No layout metadata nor AdPlayback specified for AdMetaData"),f={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{sJ:f,adLayoutLoggingData:a.adLayoutLoggingData,adPlacementConfig:X(a.va,"metadata_type_ad_placement_config"),vJ:e,contentCpn:X(a.va,"metadata_type_content_cpn"),By:X(a.va,"metadata_type_linked_in_player_layout_id"),MD:X(a.va,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.va,"metadata_type_instream_ad_player_overlay_renderer"),
uE:void 0,EG:d,pw:a.layoutId,videoLengthSeconds:X(a.va,"metadata_type_video_length_seconds")}};
dra=function(a,b){this.callback=a;this.slot=b};
ZR=function(){};
era=function(a,b,c){this.callback=a;this.slot=b;this.ua=c};
fra=function(a,b,c){this.callback=a;this.slot=b;this.ua=c;this.u=!1};
gra=function(a){a.u&&(a.ua.get().u(),a.u=!1)};
$R=function(a){this.ua=a};
aS=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
bS=function(a){g.C.call(this);this.kz=a;this.ob=new Map};
cS=function(a,b){bS.call(this,a);var c=this;b.get().addListener(this);g.eg(this,function(){b.get().removeListener(c)})};
dS=function(a){g.C.call(this);this.u=a;this.Wi=!0;this.ob=new Map;this.F=new Set;this.C=new Set;this.D=new Set;this.I=new Set;this.B=new Set};
eS=function(a,b){g.C.call(this);var c=this;this.u=a;this.ob=new Map;b.get().addListener(this);g.eg(this,function(){b.get().removeListener(c)})};
hra=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 XQ&&e.trigger.D===b===c&&d.push(e);return d};
fS=function(a,b,c,d){g.C.call(this);var e=this;this.C=a;this.Bb=b;this.ua=c;this.Da=d;this.ob=new Map;this.u=new Set;this.B=new Set;c.get().addListener(this);g.eg(this,function(){c.get().removeListener(e)})};
gS=function(a,b,c,d,e,f,h,l,m,n){if(pG(a.Da.get(),1).clientPlaybackNonce!==m)throw new gH("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.ob.set(c.triggerId,{bundle:new aS(b,c,d,e),u:f});a.Bb.get().addCueRange(f,h,l,n,a)};
ira=function(a,b){for(var c=g.q(a.ob.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.u)return d}return""};
hS=function(a){g.C.call(this);this.C=a;this.Wi=!0;this.ob=new Map;this.B=this.u=null};
OR=function(a,b){for(var c=[],d=g.q(a.ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof zQ){var f;if(f=e.trigger.layoutId===b)f=(f=upa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&gQ(a.C(),c)};
iS=function(a){g.C.call(this);this.u=a;this.Wi=!0;this.ob=new Map};
jS=function(a,b,c,d,e,f){g.C.call(this);this.C=a;this.Od=b;this.gb=c;this.Da=d;this.Ca=e;this.Ua=f;this.u=this.B=null;this.Od.get().addListener(this)};
kS=function(a,b){this.Qw=a;this.Ca=b};
jra=function(a,b){if(!a)return{ph:[],nn:!0};a.trackingParams&&YM(WM(),a.trackingParams);if(a.adThrottled)return{ph:[],nn:!0};var c=a.playerAds;if(!c||!c.length)return{ph:[],nn:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{ph:[],nn:!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{ph:c,
nn:!1}};
lS=function(a){g.C.call(this);this.J=a;this.listeners=[];this.u=new rt(this);g.D(this,this.u);this.u.N(this.J,"aduxclicked",this.onAdUxClicked);this.u.N(this.J,"aduxmouseover",this.TL);this.u.N(this.J,"aduxmouseout",this.SL);this.u.N(this.J,"muteadaccepted",this.aO)};
kra=function(a,b,c){b=g.Oc(b,function(d){return new wH(d,c,d.id)});
a.J.xa("onAdUxUpdate",b)};
mS=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
nS=function(a){this.J=a};
oS=function(a){this.J=a};
pS=function(a){this.J=a};
qS=function(){this.listeners=[]};
lra=function(a){this.J=a};
mra=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.eg=e;this.ee=f;this.ua=h;this.Ia=l;this.Fa=m;this.B=n;this.u=null;this.driftRecoveryMs=X(c.va,"metadata_type_drift_recovery_ms")||null};
ora=function(a,b){var c=nra(a,b);a.u={zi:c};c&&c.startRendering()};
qra=function(a){var b=X(a.layout.va,"metadata_type_layout_enter_ms"),c=X(a.layout.va,"metadata_type_layout_exit_ms");a=pra(a.ee.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
nra=function(a,b){return null==b?null:a.B.find(function(c){return c.layout.layoutId===b})||null};
rS=function(a,b){var c;qR(a.Fa.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Da.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.td.adClientDataEntry},b)})};
rra=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.eg=d;this.Ia=e;this.ua=f;this.Sc=h;this.jb=l;this.Bd=m;this.Y=!0;this.u=null};
sra=function(a,b,c,d){var e=X(a.layout.va,"metadata_type_video_length_seconds");0>=e||0>=c||g.U(b,16)||g.U(b,32)||(RR(c,.25*e,d)&&LO(a.Ia,"first_quartile"),RR(c,.5*e,d)&&LO(a.Ia,"midpoint"),RR(c,.75*e,d)&&LO(a.Ia,"third_quartile"))};
tra=function(a){return Object.assign(Object.assign({},sS(a)),{adPlacementConfig:X(a.va,"metadata_type_ad_placement_config"),subLayouts:X(a.va,"metadata_type_sub_layouts").map(sS)})};
sS=function(a){return{enterMs:X(a.va,"metadata_type_layout_enter_ms"),exitMs:X(a.va,"metadata_type_layout_exit_ms")}};
tS=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,y,x,B){this.me=a;this.B=b;this.Da=c;this.eg=d;this.ua=e;this.Fa=f;this.Sc=h;this.ee=l;this.jb=m;this.Bd=n;this.Yc=p;this.Bb=r;this.Tc=t;this.ld=w;this.Dd=y;this.oc=x;this.Gd=B};
uS=function(a,b,c,d,e,f,h){g.C.call(this);var l=this;this.tb=a;this.ib=b;this.Da=c;this.ee=e;this.ua=f;this.Ca=h;this.u=null;d.get().addListener(this);g.eg(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.eg(this,function(){e.get().removeListener(l)})};
oqa=function(a,b){if(pG(a.Da.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)S("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.ee.get().u),d=c.next();!d.done;d=c.next())ura(a,a.u,d.value)}};
ura=function(a,b,c){var d=kQ(a.ua.get(),1,!1);nG(a.tb.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.ib.get(),f=g.Q(a.Ca.get().J.T().experiments,"enable_server_stitched_dai");var h=1E3*c.startSecs;h={gh:new Gn(h,h+1E3*c.durationSecs),Ov:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Gn(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new Gn(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Wn=f;return[iH(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new NG(c)])]})};
vS=function(a,b){var c;g.C.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.eg(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
vra=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};
wS=function(a,b,c,d){g.C.call(this);this.J=a;this.Da=b;this.Ca=c;this.Fa=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new fM(this,Cqa(c.get()));this.C=new gM;wra(this)};
pra=function(a,b,c){return hM(a.C,b,c)};
wra=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.Ez,a);a.B.clear();a.u.length=0;c=(null===(b=c.ra)||void 0===b?void 0:RB(b,0))||[];a.Ez(c)};
xra=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");}};
yra=function(a){this.J=a};
Ara=function(a,b,c){zra(a.J,b,c)};
xS=function(){this.listeners=new Set};
yS=function(a,b,c,d,e,f,h,l){FR.call(this,a,b,c,d);this.Fa=e;this.me=f;this.Nd=l;this.Wi=!0;this.Ah=null;this.Jp="image-companion";this.cj=X(c.va,"metadata_type_linked_player_bytes_layout_id");VP(this.me(),this);a=X(c.va,"metadata_type_ad_placement_config");this.Ia=new GO(c.kd,this.Fa,a,c.layoutId)};
Bra=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];HO().forEach(function(b){a.push(b)});
return{Be:a,wg:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
zS=function(a,b,c,d,e,f,h,l){FR.call(this,a,b,c,d);this.Fa=e;this.me=f;this.Nd=l;this.Wi=!0;this.Ah=null;this.Jp="shopping-companion";this.cj=X(c.va,"metadata_type_linked_player_bytes_layout_id");VP(this.me(),this);a=X(c.va,"metadata_type_ad_placement_config");this.Ia=new GO(c.kd,this.Fa,a,c.layoutId)};
Cra=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];HO().forEach(function(b){a.push(b)});
return{Be:a,wg:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Dra=function(a,b,c,d,e){this.Vb=a;this.Fa=b;this.me=c;this.Nd=d;this.jb=e};
AS=function(a,b,c,d,e,f,h,l,m,n){FR.call(this,f,a,b,e);this.Fa=c;this.B=h;this.ua=l;this.oc=m;this.Ca=n;this.Ia=Eoa(b,c)};
Era=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];HO().forEach(function(b){a.push(b)});
return{Be:a,wg:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
BS=function(a,b,c,d,e,f,h,l,m,n,p){FR.call(this,f,a,b,e);this.Fa=c;this.B=h;this.D=l;this.ua=m;this.oc=n;this.Ca=p;this.Ia=Eoa(b,c)};
CS=function(a,b,c,d,e,f,h,l,m){this.Vb=a;this.ua=b;this.Fa=c;this.Nd=d;this.jb=e;this.B=f;this.C=h;this.oc=l;this.Ca=m};
DS=function(a){g.C.call(this);this.u=a;this.ob=new Map};
ES=function(a,b){for(var c=[],d=g.q(a.ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&gQ(a.u(),c)};
FS=function(a){g.C.call(this);this.C=a;this.Wi=!0;this.ob=new Map;this.u=new Map;this.B=new Map};
Fra=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};
GS=function(a,b,c){g.C.call(this);this.C=a;this.bj=b;this.Ua=c;this.u=this.B=void 0;this.bj.get().addListener(this)};
Gra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,"SLOT_TYPE_ABOVE_FEED",f.Gi)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Od=Y(function(){return new qS});
g.D(this,this.Od);this.bj=Y(function(){return new xS});
g.D(this,this.bj);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ee=Y(function(){return new wS(b,f.Da,f.Ca,f.Fa)});
g.D(this,this.ee);this.eg=Y(function(){return new yra(b)});
g.D(this,this.eg);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.Bd=Y(function(){return new xR});
this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.jf=new WR(YR,HS,function(l,m,n,p){return TQ(f.Cb.get(),l,m,n,p)},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca,this.ee);this.Td=Y(function(){return h});
this.ik=h;this.Gi=new uS(this.tb,this.ib,this.Da,this.Td,this.ee,this.ua,this.Ca);g.D(this,this.Gi);this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.hm=new DS(a);g.D(this,this.hm);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.Lm=new vS(a,this.Da);g.D(this,this.Lm);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.on=new FS(a);g.D(this,this.on);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.MB=Y(function(){return new Dra(f.Vb,f.Fa,a,f.Ib,f.jb)});
g.D(this,this.MB);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.hf=Y(function(){return new tS(a,f.fc,f.Da,f.eg,f.ua,f.Fa,f.Sc,f.ee,f.jb,f.Bd,f.Yc,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.Ih=Y(function(){return new CS(f.Vb,f.ua,f.Fa,f.Ib,f.jb,f.hm,f.on,f.oc,f.Ca)});
g.D(this,this.Ih);this.Uw=new GS(a,this.bj,this.Ua);g.D(this,this.Uw);this.kk=new jS(a,this.Od,this.gb,this.Da,this.Ca,this.Ua);g.D(this,this.kk);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_live_stream_break_signal",this.Gi],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Qe],["SLOT_TYPE_ABOVE_FEED",this.zc],["SLOT_TYPE_FORECASTING",this.zc],["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",this.zc]]),Dg:new Map([["trigger_type_skip_requested",this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",
this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",this.Wa],["trigger_type_on_different_slot_id_enter_requested",this.Wa],["trigger_type_close_requested",this.hm],["trigger_type_before_content_video_id_started",this.Fd],["trigger_type_after_content_video_id_ended",this.rd],["trigger_type_media_time_range",this.rd],["trigger_type_not_in_media_time_range",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Lm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.Lm],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",this.gf],["trigger_type_time_relative_to_layout_enter",this.on]]),qk:new Map([["SLOT_TYPE_ABOVE_FEED",this.wc],["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.kf]]),Yj:new Map([["SLOT_TYPE_ABOVE_FEED",
this.MB],["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.hf],["SLOT_TYPE_IN_PLAYER",this.Ih]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:this.fc,ak:this.Od.get(),qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:this.bj.get(),Wh:this.Ed,vg:this.Ib.get()}};
Hra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,null,null)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Od=Y(function(){return new qS});
g.D(this,this.Od);this.bj=Y(function(){return new xS});
g.D(this,this.bj);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.Bd=Y(function(){return new xR});
g.D(this,this.Bd);this.jf=new WR(YR,HS,function(l,m,n,p){return TQ(f.Cb.get(),l,m,n,p)},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca);this.Td=Y(function(){return h});
this.ik=h;this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.hm=new DS(a);g.D(this,this.hm);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.on=new FS(a);g.D(this,this.on);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.Ih=Y(function(){return new CS(f.Vb,f.ua,f.Fa,f.Ib,f.jb,f.hm,f.on,f.oc,f.Ca)});
g.D(this,this.Ih);this.hf=Y(function(){return new VR(a,f.fc,f.Fa,f.jb,f.Bd,f.Yc,f.Da,f.ua,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.Uw=new GS(a,this.bj,this.Ua);g.D(this,this.Uw);this.kk=new jS(a,this.Od,this.gb,this.Da,this.Ca,this.Ua);g.D(this,this.kk);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.zc],
["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",this.zc]]),Dg:new Map([["trigger_type_skip_requested",this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",
this.Wa],["trigger_type_on_different_slot_id_enter_requested",this.Wa],["trigger_type_close_requested",this.hm],["trigger_type_before_content_video_id_started",this.Fd],["trigger_type_after_content_video_id_ended",this.rd],["trigger_type_media_time_range",this.rd],["trigger_type_not_in_media_time_range",this.rd],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",
this.gf],["trigger_type_time_relative_to_layout_enter",this.on]]),qk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.kf]]),Yj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Ih],["SLOT_TYPE_PLAYER_BYTES",this.hf]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:null,ak:this.Od.get(),qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:this.bj.get(),
Wh:this.Ed,vg:this.Ib.get()}};
Ira=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,null,null)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Od=Y(function(){return new qS});
g.D(this,this.Od);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.Bd=Y(function(){return new xR});
g.D(this,this.Bd);this.jf=new WR(YR,HS,function(l,m,n,p){return TQ(f.Cb.get(),l,m,n,p)},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca);this.Td=Y(function(){return h});
this.ik=h;this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.xG=Y(function(){return new LR(f.Vb,f.ua,f.Fa,f.Ib)});
g.D(this,this.xG);this.hf=Y(function(){return new VR(a,f.fc,f.Fa,f.jb,f.Bd,f.Yc,f.Da,f.ua,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.kk=new jS(a,this.Od,this.gb,this.Da,this.Ca,this.Ua);g.D(this,this.kk);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.zc],["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",
this.zc]]),Dg:new Map([["trigger_type_skip_requested",this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",this.Wa],["trigger_type_before_content_video_id_started",
this.Fd],["trigger_type_after_content_video_id_ended",this.rd],["trigger_type_media_time_range",this.rd],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",this.gf]]),qk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_ABOVE_FEED",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",
this.kf]]),Yj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.xG],["SLOT_TYPE_PLAYER_BYTES",this.hf]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:null,ak:this.Od.get(),qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:null,Wh:this.Ed,vg:this.Ib.get()}};
Jra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,null,null)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Od=Y(function(){return new qS});
g.D(this,this.Od);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.Bd=Y(function(){return new xR});
g.D(this,this.Bd);this.jf=new WR(YR,HS,function(l,m,n,p){return TQ(f.Cb.get(),l,m,n,p)},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca);this.Td=Y(function(){return h});
this.ik=h;this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.Ih=Y(function(){return new LR(f.Vb,f.ua,f.Fa,f.Ib)});
g.D(this,this.Ih);this.hf=Y(function(){return new VR(a,f.fc,f.Fa,f.jb,f.Bd,f.Yc,f.Da,f.ua,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.kk=new jS(a,this.Od,this.gb,this.Da,this.Ca,this.Ua);g.D(this,this.kk);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.zc],["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",
this.zc]]),Dg:new Map([["trigger_type_skip_requested",this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",this.Wa],["trigger_type_before_content_video_id_started",
this.Fd],["trigger_type_media_time_range",this.rd],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",this.gf]]),qk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.kf]]),Yj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",
this.Re],["SLOT_TYPE_IN_PLAYER",this.Ih],["SLOT_TYPE_PLAYER_BYTES",this.hf]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:null,ak:this.Od.get(),qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:null,Wh:this.Ed,vg:this.Ib.get()}};
IS=function(a,b,c,d,e,f,h,l){JR.call(this,a,b,c,d,e,f,h);this.Jn=l};
Kra=function(a,b,c,d,e){this.Vb=a;this.ua=b;this.Fa=c;this.Nd=d;this.Jn=e};
Lra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Jn=Y(function(){return new lra(b)});
g.D(this,this.Jn);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,null,null)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Od=Y(function(){return new qS});
g.D(this,this.Od);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.Bd=Y(function(){return new xR});
g.D(this,this.Bd);this.jf=new WR(cra,HS,function(l,m,n,p){var r=f.Cb.get(),t=sqa(n);t.push(new yG(n.sJ));t.push(new zG(n.vJ));return tqa(l,m,n,new OP(t),p,r.Ua.get())},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca);this.Td=Y(function(){return h});
this.ik=h;this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.hf=Y(function(){return new VR(a,f.fc,f.Fa,f.jb,f.Bd,f.Yc,f.Da,f.ua,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.wI=Y(function(){return new Kra(f.Vb,f.ua,f.Fa,f.Ib,f.Jn)});
g.D(this,this.wI);this.kk=new jS(a,this.Od,this.gb,this.Da,this.Ca,this.Ua);g.D(this,this.kk);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.zc],["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",
this.zc]]),Dg:new Map([["trigger_type_skip_requested",this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",this.Wa],["trigger_type_before_content_video_id_started",
this.Fd],["trigger_type_after_content_video_id_ended",this.rd],["trigger_type_media_time_range",this.rd],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",this.gf]]),qk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.kf]]),Yj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Pe],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.wI],["SLOT_TYPE_PLAYER_BYTES",this.hf]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:null,ak:this.Od.get(),qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:null,Wh:this.Ed,vg:this.Ib.get()}};
Mra=function(a,b,c,d){this.Vb=a;this.ua=b;this.Fa=c;this.Nd=d};
Nra=function(a,b,c,d,e){g.C.call(this);var f=this;this.Ua=Y(function(){return new NQ});
g.D(this,this.Ua);this.Cb=Y(function(){return new SQ(f.Ca,f.Ua)});
g.D(this,this.Cb);this.Ib=Y(function(){return new MQ});
g.D(this,this.Ib);this.tb=Y(function(){return new HQ(a)});
g.D(this,this.tb);this.ib=Y(function(){return new dR(f.Ua)});
g.D(this,this.ib);this.Sc=Y(function(){return new gR});
g.D(this,this.Sc);this.Dd=Y(function(){return new CK(b.T())});
g.D(this,this.Dd);this.Vb=Y(function(){return new lS(b)});
g.D(this,this.Vb);this.oc=Y(function(){return new wR(e)});
g.D(this,this.oc);this.Tc=Y(function(){return new rM(b)});
g.D(this,this.Tc);this.Bb=Y(function(){return new iR(b)});
g.D(this,this.Bb);this.Yc=Y(function(){return new nS(b)});
g.D(this,this.Yc);this.ld=Y(function(){return new oS(b)});
g.D(this,this.ld);this.Ca=Y(function(){return new jR(b)});
g.D(this,this.Ca);this.od=Y(function(){return new kS(d,f.Ca)});
g.D(this,this.od);this.gb=Y(function(){return new TP(f.Ca)});
g.D(this,this.gb);this.uc=Y(function(){return new FQ(f.ib,f.Cb,f.gb,null,f.Gi,3)});
g.D(this,this.uc);this.Gd=Y(function(){return new pS(b)});
g.D(this,this.Gd);this.Da=Y(function(){return new uR(b,f.Sc)});
g.D(this,this.Da);this.Gb=new fR(this.Ca,this.gb,this.Da);g.D(this,this.Gb);this.ee=Y(function(){return new wS(b,f.Da,f.Ca,f.Fa)});
g.D(this,this.ee);this.eg=Y(function(){return new yra(b)});
g.D(this,this.eg);this.ua=Y(function(){return new vR(b)});
g.D(this,this.ua);this.Bd=Y(function(){return new xR});
this.jb=Y(function(){return new mR(f.ua,b)});
g.D(this,this.jb);this.Fa=Y(function(){return new pR(b,f.Ib,f.jb,f.Da)});
g.D(this,this.Fa);this.Pb=new qH(this.tb,this.uc,c,this.Ca,a,this.Da);g.D(this,this.Pb);var h=new hR(b,this.Pb,this.ua,this.Ca,this.ee);this.Td=Y(function(){return h});
this.ik=h;this.jf=new WR(YR,HS,function(l,m,n,p){return TQ(f.Cb.get(),l,m,n,p)},this.tb,this.ib,this.gb,this.Ca,this.Da);
g.D(this,this.jf);this.Gi=new uS(this.tb,this.ib,this.Da,this.Td,this.ee,this.ua,this.Ca);g.D(this,this.Gi);this.jd=new LQ(this.tb,this.ib,this.Bb,this.Td);g.D(this,this.jd);this.Qb=new mG(this.tb,this.ib,this.uc,this.Da,this.jd,c);g.D(this,this.Qb);this.Qe=Y(function(){return new AR(f.od,f.Cb,f.gb,f.Ca)});
g.D(this,this.Qe);this.zc=Y(function(){return new BR});
g.D(this,this.zc);this.Ed=new cS(a,this.Vb);g.D(this,this.Ed);this.Wa=new dS(a);g.D(this,this.Wa);this.Fd=new eS(a,this.Td);g.D(this,this.Fd);this.rd=new fS(a,this.Bb,this.ua,this.Da);g.D(this,this.rd);this.Lm=new vS(a,this.Da);g.D(this,this.Lm);this.fc=new hS(a);g.D(this,this.fc);this.gf=new iS(a);g.D(this,this.gf);this.wc=Y(function(){return new ZR});
g.D(this,this.wc);this.kf=Y(function(){return new $R(f.ua)});
g.D(this,this.kf);this.Pe=Y(function(){return new DR(f.Qb)});
g.D(this,this.Pe);this.Re=Y(function(){return new ER(f.Fa,f.fc,f.jb)});
g.D(this,this.Re);this.hf=Y(function(){return new tS(a,f.fc,f.Da,f.eg,f.ua,f.Fa,f.Sc,f.ee,f.jb,f.Bd,f.Yc,f.Bb,f.Tc,f.ld,f.Dd,f.oc,f.Gd)});
g.D(this,this.hf);this.Ih=Y(function(){return new Mra(f.Vb,f.ua,f.Fa,f.Ib)});
g.D(this,this.Ih);this.hd={Vm:new Map([["opportunity_type_ad_break_service_response_received",this.Qb],["opportunity_type_live_stream_break_signal",this.Gi],["opportunity_type_player_bytes_media_layout_entered",this.jf],["opportunity_type_player_response_received",this.Pb],["opportunity_type_throttled_ad_break_request_slot_reentry",this.jd]]),Jj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.zc],["SLOT_TYPE_IN_PLAYER",this.zc],["SLOT_TYPE_PLAYER_BYTES",this.zc]]),Dg:new Map([["trigger_type_skip_requested",
this.Ed],["trigger_type_layout_id_entered",this.Wa],["trigger_type_layout_id_exited",this.Wa],["trigger_type_layout_exited_for_reason",this.Wa],["trigger_type_on_different_layout_id_entered",this.Wa],["trigger_type_slot_id_entered",this.Wa],["trigger_type_slot_id_exited",this.Wa],["trigger_type_slot_id_fulfilled_empty",this.Wa],["trigger_type_slot_id_fulfilled_non_empty",this.Wa],["trigger_type_slot_id_scheduled",this.Wa],["trigger_type_before_content_video_id_started",this.Fd],["trigger_type_after_content_video_id_ended",
this.rd],["trigger_type_media_time_range",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Lm],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Lm],["trigger_type_on_layout_self_exit_requested",this.fc],["trigger_type_on_element_self_enter_requested",this.fc],["trigger_type_on_new_playback_after_content_video_id",this.Fd],["trigger_type_on_opportunity_received",this.gf]]),qk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wc],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",
this.kf]]),Yj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.hf],["SLOT_TYPE_IN_PLAYER",this.Ih]])};this.listeners=[this.Ib.get()];this.Ke={Qb:this.Qb,yi:null,ak:null,qg:this.Ca.get(),yl:this.ua.get(),Pb:this.Pb,Zj:null,Wh:this.Ed,vg:this.Ib.get()}};
Pra=function(a,b,c,d){g.C.call(this);var e=this;this.u=Ora(function(){return e.B},a,b,c,d);
g.D(this,this.u);this.B=(new Gpa(this.u)).B;g.D(this,this.B)};
Ora=function(a,b,c,d,e){try{var f=b.T();if(g.HD(f))var h=new Gra(a,b,c,d,e);else if(g.LD(f))h=new Hra(a,b,c,d,e);else if(MD(f))h=new Jra(a,b,c,d,e);else if(yD(f))h=new Ira(a,b,c,d,e);else if(KD(f))h=new Lra(a,b,c,d,e);else if(g.xD(f))h=new Nra(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,b5:e.deviceParams.cver,a5:e.deviceParams.ctheme,
Z4:e.deviceParams.cplayer,p5:e.playerStyle}),new Mqa(a,b,c,d)}};
Qra=function(a,b,c){this.u=a;this.yi=b;this.B=c};
g.JS=function(a){g.O.call(this);this.loaded=!1;this.player=a};
KS=function(a){g.JS.call(this,a);var b=this;this.u=null;this.D=new bG(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=Sma({vC:a.getVideoData(1)});e=new fpa({tJ:new Qra(d,b.B.u.Ke.yi,b.B.B),Ip:e.jK(),uJ:d,FJ:d,KN:d,Wh:b.B.u.Ke.Wh,ci:e.jy(),J:b.player,qg:b.B.u.Ke.qg,Fa:b.B.u.Fa,vg:b.B.u.Ke.vg});b.C=e.B;return b.C};
this.B=new Pra(this.player,this,this.D,this.F);g.D(this,this.B);this.created=!1;var c=a.T();!uD(c)||g.xD(c)||yD(c)||(c=function(){return b.u},g.D(this,new CP(a,c)),g.D(this,new CN(a,c)))};
Rra=function(a){var b=a.B.u.Ke.Pb,c=b.u().u;c=jQ(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);b=pG(b.Da.get(),1).clientPlaybackNonce;c=!1;e=void 0;d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=lH(f)?f.hc.C:void 0;h&&h===b&&(h=X(f.va,"metadata_type_fulfilled_layout"),c&&S("More than 1 preroll playerBytes slot detected",f,h,{matches_layout_id:String(e&&h?e.layoutId===h.layoutId:!1),found_layout_id:(null===e||void 0===
e?void 0:e.layoutId)||"empty",collide_layout_id:(null===h||void 0===h?void 0:h.layoutId)||"empty"}),c=!0,e=h)}(b=c)||(b=a.u,b=!rna(b,una(b)));b||a.B.u.Ke.yl.u()};
Sra=function(a){a=g.q(a.B.u.Ke.vg.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ab&&"core"===b.bb)return!0;return!1};
oG=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.Ke.qg,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=Tra(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);zia(a.B.u.Ke.Qb,c,d.Mo,b);a.u&&0<d.em.length&&(a=a.u,b=d.em,b=ona(a,b),b=pna(a,b),b=tN(a,b)||[],a.C&&g.Q(a.u.T().experiments,"html5_dai_debug_bulleit_cue_range")&&a.Ga.push.apply(a.Ga,g.ma(b)))};
Tra=function(a,b,c){var d={em:[],Mo:[]};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;(c?qN(l):null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h||(null!=f.actionCompanionAdRenderer?f.actionCompanionAdRenderer.controlFlowExperimentEnabled:null!=f.imageCompanionAdRenderer?f.imageCompanionAdRenderer.controlFlowExperimentEnabled:
null!=f.shoppingCompanionCarouselRenderer?f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled:null!=f.invideoOverlayAdRenderer?kR(l):null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer?g.Q(l.J.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds&&(f.linearAdSequenceRenderer.adStart?0:g.Q(l.J.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf"))))?d.Mo.push(e):d.em.push(e)}return d};
QS=function(a){if(!LS){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);LS=new Uint8Array(256);MS=[];NS=[];OS=[];PS=[];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;LS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;MS.push(b<<24|e<<16|e<<8|h);NS.push(h<<24|MS[f]>>>8);OS.push(e<<24|NS[f]>>>8);PS.push(e<<24|OS[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=(LS[a>>16&255]^d)<<24|LS[a>>8&255]<<16|LS[a&255]<<8|LS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
Ura=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};
Vra=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=MS[c>>>24]^NS[d>>16&255]^OS[e>>8&255]^PS[f&255]^b[h++];var m=MS[d>>>24]^NS[e>>16&255]^OS[f>>8&255]^PS[c&255]^b[h++];var n=MS[e>>>24]^NS[f>>16&255]^OS[c>>8&255]^PS[d&255]^b[h++];f=MS[f>>>24]^NS[c>>16&255]^OS[d>>8&255]^PS[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++]=LS[c[0]>>>24]^b[h]>>>24,a[d++]=LS[c[1]>>16&255]^b[h]>>16&255,a[d++]=LS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=LS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.RS=function(){g.C.call(this);this.C=null;this.K=this.I=!1;this.F=new g.am;g.D(this,this.F)};
SS=function(a){a=a.yq();return 1>a.length?NaN:a.end(a.length-1)};
Wra=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
TS=function(a){return fA(a.Gf(),a.getCurrentTime())};
Xra=function(a,b){if(0==a.yg()||0<a.Sh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.yq();if(d.length||!c)return cA(d,b)}return c};
Yra=function(a){var b=a.Gf();return 0<eA(b)&&a.getDuration()?b.end(b.length-1):0};
US=function(a){switch(a.Sh()){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}};
VS=function(a,b,c){g.El.call(this,b,a);this.B=c||null};
WS=function(){this.u=[];this.B=[];this.C=[]};
$ra=function(a,b,c){c=g.Fe(c?"AUDIO":"VIDEO");g.Ua(c,Zra);g.cp(c,"loadeddata",(0,g.z)(c.CJ,c));oD&&6<=tJ&&g.cp(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):XS(a,c);return c};
XS=function(a,b){g.jb(a.B,b)&&!g.jb(a.u,b)&&(b.src||b.load(),g.ob(a.C,b)||a.u.push(b))};
g.YS=function(a){g.RS.call(this);this.u=a;this.B={}};
g.ZS=function(a,b,c,d){d=void 0===d?!1:d;g.RS.call(this);this.u=a;this.B=b;this.D=c;this.R=d};
$S=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.Md("/sharing_services",a);g.pu(d)};
asa=function(a){a=bq(a,{key:g.L("INNERTUBE_API_KEY")});var b=g.L("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Ad(a)));return a};
bsa=function(a){return{method:"POST",mode:cq(a)?"same-origin":"cors",credentials:cq(a)?"same-origin":"include"}};
aT=function(a,b,c,d,e){this.u=a;this.D=b;this.B=c;this.handleError=d;this.C=e};
cT=function(a,b,c){var d=void 0===d?ey:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.AA&&(e=a.u.AA[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.Ax&&(f=a.u.Ax[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.lt[h]&&(f=a.u.lt[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new g.tr("Error: No request builder found for command.",b)),vm({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?ey:d;c={context:g.ZF(b.clickTrackingParams)};if(e=h.C(b)){h.u(c,e,f);var m;h=bT(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=asa(h);l={input:l,ep:bsa(l),Fy:c,config:Object.assign({},void 0)};l.config.Zl?l.config.Zl.identity=d:l.config.Zl={identity:d}}else g.Hs(new g.tr("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return vm(csa(a,l));a.handleError(new g.tr("Error: Failed to build request for command.",
b));return vm({})};
fG=function(a,b,c){var d=void 0===d?{Zl:{identity:ey}}:d;var e=void 0===e?!0:e;b.context||(b.context=g.ZF(void 0,e));c=asa(c);b={input:c,ep:bsa(c),Fy:b,config:d};return vm(csa(a,b))};
csa=function(a,b){return We(a,function d(){var e=this,f,h,l,m,n,p;return xa(d,function(r){switch(r.u){case 1:f=e;r.u=2;break;case 3:if((h=r.B)&&!h.isExpired())return r["return"](Promise.resolve(h.u()));case 2:l=JSON.stringify(b.Fy);if(e.B.C){m=dsa(e,b);r.u=4;break}return sa(r,esa(e,b),5);case 5:m=r.B;case 4:return b.ep=Object.assign(Object.assign({},b.ep),{headers:m}),g.vo("enable_get_account_switcher_endpoint_on_webfe")?(n=Object.assign({},b.ep),"POST"===b.ep.method&&(n=Object.assign(Object.assign({},
n),{body:l}))):n=Object.assign(Object.assign({},b.ep),{body:l}),p=e.D.fetch(b.input,n),r["return"](p.then(function(t){if(t&&f.C)for(var w=g.q(f.C),y=w.next();!y.done;y=w.next())y.value.B(t,b);return Promise.resolve(t)}))}})})};
fsa=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.AA)return-1<xo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.AA[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.Ax)return-1<xo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.Ax[b.continuationCommand.request];for(var e in b)if(a.u.lt[e]){if(-1<xo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
esa=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.Zl)||void 0===d?void 0:d.identity)||ey,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.Zl)||void 0===f?void 0:f.sessionIndex;return qea(a.B,h,{sessionIndex:l}).then(function(m){return Promise.resolve(Object.assign(Object.assign({},gsa()),m))})};
dsa=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.Zl)||void 0===d?void 0:d.identity)||ey,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.Zl)||void 0===f?void 0:f.sessionIndex;h=a.B.u(h,{sessionIndex:l});return Object.assign(Object.assign({},gsa()),h)};
gsa=function(){var a={"Content-Type":"application/json"},b=g.L("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);g.vo("enable_get_account_switcher_endpoint_on_webfe")&&((b=g.L("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=b),(b=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]=b));g.vo("webfe_track_one_platform_auth_mismatch")&&(a["X-Youtube-Bootstrap-Logged-In"]=g.L("LOGGED_IN",!1));return a};
isa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=hsa[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(hsa).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]};
bT=function(a){return"/youtubei/v1/"+isa(a)};
dT=function(){};
eT=function(){};
fT=function(){};
gT=function(){};
hT=function(){};
iT=function(){this.u=this.B=void 0};
jsa=function(){iT.u||(iT.u=new iT);return iT.u};
ksa=function(a,b){var c=g.vo("enable_get_account_switcher_endpoint_on_webfe")?b.text().then(function(d){return JSON.parse(d.replace(")]}'",""))}):b.json();
b.redirected||b.ok?a.u&&a.u.success():(a.u&&a.u.failure(),c=c.then(function(d){g.Is(new g.tr("Error: API fetch failed",b.status,b.url,d));return Object.assign(Object.assign({},d),{errorMetadata:{status:b.status}})}));
return c};
kT=function(a){if(!jT){var b={lt:{playlistEditEndpoint:hT,subscribeEndpoint:eT,unsubscribeEndpoint:fT,modifyChannelNotificationPreferenceEndpoint:gT}},c=g.vo("web_enable_client_location_service")?WF():void 0,d=[];c&&d.push(c);void 0===a&&(a=Kq());c=jsa();aT.u=new aT(b,c,a,Mea,d);jT=aT.u}return jT};
lsa=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=cT(kT(),c);Am(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.Zf&&a.Zf({},d)})};
nsa=function(a,b,c){g.vo("web_classic_playlist_one_platform_update")?lsa(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):msa("add_to_watch_later_list",a,b,c)};
osa=function(a,b,c){g.vo("web_classic_playlist_one_platform_update")?lsa(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):msa("delete_from_watch_later_list",a,b,c)};
msa=function(a,b,c,d){g.qq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",si:{feature:b.feature||null,authuser:b.ye||null,pageid:b.pageId||null},tc:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.q5||null,add_to_playlists:b.S4||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Zf:b.Zf,withCredentials:!!d})};
g.qsa=function(a,b,c){b=psa(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)};
psa=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=Ld(c,"mode",a));a=Ld(d,"next",c);b&&(a=Ld(a,"feature",b));return a};
lT=function(){};
mT=function(){};
ssa=function(){var a,b;return We(this,function d(){var e;return xa(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f["return"](e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.u)?f["return"](rsa()):f["return"]()})})};
rsa=function(){var a=navigator;return new Promise(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."))})};
Mq=function(a,b,c){var d=this;this.zy=a;this.handleError=b;this.u=c;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){d.B=!0})};
Pq=function(a){var b=Lq;if(a instanceof vr)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.zy(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a)};
usa=function(a,b){ssa().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:tsa(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:tsa(null===c||void 0===c?void 0:c.quota)});a.u("idbQuotaExceeded",c)})};
tsa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
vsa=function(){ZE("bg_l","player_att");nT=(0,g.N)()};
wsa=function(a){a=void 0===a?{}:a;var b=Ps;a=void 0===a?{}:a;return b.u?b.u.hot?b.u.hot(void 0,void 0,a):b.u.invoke(void 0,void 0,a):null};
xsa=function(a){a=void 0===a?{}:a;return Qea(a)};
ysa=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if(oT(c)){var e="";c.videoData&&c.videoData.rh&&(e=c.videoData.rh+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);ZE("bg_v","player_att");e=c.C?wsa(e):g.Ja("yt.abuse.player.invokeBotguard")(e);ZE("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else ZE("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.Ja("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.rh?this.u=Xp(this.videoData.rh):this.u={}};
zsa=function(a){if(a.videoData&&a.videoData.rh){for(var b=[a.videoData.rh],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};
Bsa=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return Asa(a)});
if(a.videoData&&a.videoData.rh){for(var c=[a.videoData.rh],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)};
oT=function(a){return a.C?Ps.Yd():(a=g.Ja("yt.abuse.player.botguardInitialized"))&&a()};
Asa=function(a){if(!oT(a))return ZE("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.rh&&(b=a.videoData.rh+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?xsa:g.Ja("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){ZE("bg_v","player_att");e(d).then(function(h){h?(ZE("bg_s","player_att"),f("r1a="+h)):(ZE("bg_e","player_att"),f("r1c=2"))},function(){ZE("bg_e","player_att");
f("r1c=3")})})};
Csa=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 pT(a)};
pT=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};
Dsa=function(a,b,c,d){if(g.Pa(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};
Fsa=function(a){var b,c;return We(this,function e(){var f,h,l,m,n;return xa(e,function(p){if(1==p.u)return f=kT(),h={context:g.ZF(),videoIds:[a]},l=bT(Esa),sa(p,fG(f,h,l),2);m=p.B;if(!m)throw Error("Network request failed");if(!m.videos||1!==m.videos.length)throw Error("Failed request: "+(null!==(c=null===(b=m.error)||void 0===b?void 0:b.code)&&void 0!==c?c:"?"));n=m.videos[0].offlineVideoData;if(!n)throw Error("No data");return p["return"](n)})})};
Gsa=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()};
Hsa=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()};
sT=function(a,b,c){var d=this;this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Ifa().then(function(){var e=ay(2);e=g.q(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var h=qT(d,f);d.ea();h||by(f,3)}d.ea();rT(d)});
this.ea()};
tT=function(a){return We(this,function c(){var d;return xa(c,function(e){return 1==e.u?sa(e,Pfa(a),2):3!=e.u?(d=e.B,sa(e,Gsa(d),3)):e["return"](Sfa(a))})})};
Isa=function(){return We(this,function b(){return xa(b,function(c){return 1==c.u?sa(c,Promise.all(["caches"in window?window.caches["delete"]("yt-player-local-img"):Promise.resolve(!0),fy()]),2):c["return"]()})})};
Lsa=function(a,b){return We(a,function d(){var e,f=this;return xa(d,function(h){if(1==h.u)return Zx(b)?h["return"]():sa(h,Fsa(b),2);if(3!=h.u)return e=h.B,sa(h,Jsa(f,b,e),3);0===ay(2).length?Ksa(f,b):by(b,3);h.u=0})})};
uT=function(a,b){var c=Zx(b);if(1===c||0===c)return Promise.resolve();c=qT(a,b);c===a.player?(a.player.stopVideo(),a.player.Bi()):c&&(c.Bi(),RI(c.getVideoData(),!1));return tT(b)};
Msa=function(a,b){var c,d;return We(a,function f(){var h,l,m;return xa(f,function(n){if(1==n.u)return sa(n,Ofa(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)})})};
qT=function(a,b){var c=a.api.dc(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:qJ(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
Ksa=function(a,b){by(b,2);var c=Nsa(a,{videoId:b,download_media:!0,download_media_headlessly:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){return void Osa(a,c)});
a.player.hi(c,a.B);var d=Psa();g.Q(a.player.T().experiments,"hoffle_lmqf_killswitch")||(d=FC(d,d,!0,"m"),Qsa(a.player,d));a.ea();vT(a.player,!1)};
Nsa=function(a,b){return new g.rI(a.player.T(),b)};
Psa=function(){switch(g.ht.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
rT=function(a){if(g.Q(a.api.T().experiments,"hoffle_api"))0<ay(2).length||(b=ay(3),0<b.length&&Ksa(a,b[0]));else{a=g.q(ay(3));for(var b=a.next();!b.done;b=a.next())tT(b.value)}};
Osa=function(a,b){var c;if(g.Q(a.api.T().experiments,"hoffle_api")){var d=b.getPlayerResponse(),e=null===(c=null===d||void 0===d?void 0:d.videoDetails)||void 0===c?void 0:c.videoId;d&&e&&Lfa(e,d)}};
Jsa=function(a,b,c){return We(a,function e(){var f=this;return xa(e,function(h){if(1==h.u)h=g.Q(f.api.T().experiments,"hoffle_api")?sa(h,Kfa(b,c),2):h["return"]();else{var l=h["return"],m,n,p=Rsa(c.thumbnail);p=p.concat(Rsa(null===(n=null===(m=c.channel)||void 0===m?void 0:m.offlineChannelData)||void 0===n?void 0:n.thumbnail));m=p.length?Hsa(p):Promise.resolve(void 0);h=l.call(h,m)}return h})})};
Rsa=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};
yT=function(a,b){g.C.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.R=[];this.I={};this.D={};this.C=null;this.X=new Set;wT(this,"cueVideoById",this.cueVideoById);wT(this,"loadVideoById",this.loadVideoById);wT(this,"cueVideoByUrl",this.cueVideoByUrl);wT(this,"loadVideoByUrl",this.loadVideoByUrl);wT(this,"playVideo",this.playVideo);wT(this,"pauseVideo",this.pauseVideo);wT(this,"stopVideo",this.stopVideo);wT(this,"clearVideo",this.clearVideo);
wT(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);wT(this,"getVideoBytesTotal",this.getVideoBytesTotal);wT(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);wT(this,"getVideoStartBytes",this.getVideoStartBytes);wT(this,"cuePlaylist",this.cuePlaylist);wT(this,"loadPlaylist",this.loadPlaylist);wT(this,"nextVideo",this.nextVideo);wT(this,"previousVideo",this.previousVideo);wT(this,"playVideoAt",this.playVideoAt);wT(this,"setShuffle",this.setShuffle);wT(this,"setLoop",this.setLoop);wT(this,
"getPlaylist",this.uK);wT(this,"getPlaylistIndex",this.getPlaylistIndex);wT(this,"getPlaylistId",this.getPlaylistId);wT(this,"loadModule",this.loadModule);wT(this,"unloadModule",this.unloadModule);wT(this,"setOption",this.setOption);wT(this,"getOption",this.getOption);wT(this,"getOptions",this.getOptions);wT(this,"mute",this.mute);wT(this,"unMute",this.unMute);wT(this,"isMuted",this.isMuted);wT(this,"setVolume",this.setVolume);wT(this,"getVolume",this.getVolume);wT(this,"seekTo",this.seekTo);wT(this,
"getPlayerState",this.getPlayerState);wT(this,"getPlaybackRate",this.getPlaybackRate);wT(this,"setPlaybackRate",this.setPlaybackRate);wT(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);wT(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
wT(this,"setPlaybackQuality",this.setPlaybackQuality);wT(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);wT(this,"getCurrentTime",this.getCurrentTime);wT(this,"getDuration",this.getDuration);wT(this,"addEventListener",this.wJ);wT(this,"removeEventListener",this.GR);wT(this,"getDebugText",this.getDebugText);wT(this,"getVideoData",function(){return c.Yt()});
wT(this,"addCueRange",this.addCueRange);wT(this,"removeCueRange",this.removeCueRange);wT(this,"setSize",this.setSize);wT(this,"getApiInterface",this.getApiInterface);wT(this,"destroy",this.destroy);wT(this,"showVideoInfo",this.showVideoInfo);wT(this,"hideVideoInfo",this.hideVideoInfo);wT(this,"isVideoInfoVisible",this.isVideoInfoVisible);wT(this,"getSphericalProperties",this.getSphericalProperties);wT(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().I||(wT(this,"getVideoEmbedCode",
this.getVideoEmbedCode),wT(this,"getVideoUrl",this.getVideoUrl));wT(this,"getMediaReferenceTime",this.getMediaReferenceTime);xT(this,"getInternalApiInterface",this.getInternalApiInterface);xT(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);xT(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);xT(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);xT(this,"getAdState",this.getAdState);xT(this,"sendAbandonmentPing",this.sendAbandonmentPing);xT(this,"setLoopRange",this.setLoopRange);
xT(this,"getLoopRange",this.getLoopRange);xT(this,"setAutonavState",this.setAutonavState);xT(this,"seekToLiveHead",this.seekToLiveHead);xT(this,"seekToStreamTime",this.seekToStreamTime);xT(this,"getStreamTimeOffset",this.getStreamTimeOffset);xT(this,"getVideoData",this.Yt);xT(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);xT(this,"deleteLocalMediaById",this.deleteLocalMediaById);xT(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);xT(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
xT(this,"fetchLocalMedia",this.fetchLocalMedia);xT(this,"fetchLocalMediaById",this.fetchLocalMediaById);xT(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);xT(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);xT(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);xT(this,"getAppState",this.getAppState);xT(this,"addInfoCardXml",this.addInfoCardXml);xT(this,"updateLastActiveTime",this.updateLastActiveTime);xT(this,"setBlackout",this.setBlackout);xT(this,"setAccountLinkState",this.setAccountLinkState);
xT(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);xT(this,"setUserEngagement",this.setUserEngagement);xT(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);xT(this,"setFauxFullscreen",this.setFauxFullscreen);xT(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);xT(this,"getPresentingPlayerType",this.getPresentingPlayerType);xT(this,"canPlayType",this.canPlayType);xT(this,"updatePlaylist",this.updatePlaylist);xT(this,"updateVideoData",this.updateVideoData);
xT(this,"updateEnvironmentData",this.updateEnvironmentData);xT(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);xT(this,"setCardsVisible",this.setCardsVisible);xT(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);xT(this,"setSafetyMode",this.setSafetyMode);xT(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
xT(this,"getVideoAspectRatio",this.getVideoAspectRatio);xT(this,"getPreferredQuality",this.getPreferredQuality);xT(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);xT(this,"onAdUxClicked",this.onAdUxClicked);xT(this,"getFeedbackProductData",this.getFeedbackProductData);xT(this,"getStoryboardFrame",this.getStoryboardFrame);xT(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);xT(this,"getStoryboardLevel",this.getStoryboardLevel);xT(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
xT(this,"setAutonav",this.setAutonav);xT(this,"isNotServable",this.isNotServable);xT(this,"channelSubscribed",this.channelSubscribed);xT(this,"channelUnsubscribed",this.channelUnsubscribed);xT(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);xT(this,"togglePictureInPicture",this.togglePictureInPicture);xT(this,"supportsGaplessAudio",this.supportsGaplessAudio);xT(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
xT(this,"clearQueue",this.clearQueue);xT(this,"isFastLoad",function(){return!1});
xT(this,"getPlayerResponse",this.getPlayerResponse);xT(this,"getAudioTrack",this.cK);xT(this,"setAudioTrack",this.setAudioTrack);xT(this,"getAvailableAudioTracks",this.dK);xT(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);xT(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);xT(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);xT(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);xT(this,"setMinimized",this.setMinimized);xT(this,"confirmYpcRental",
this.confirmYpcRental);xT(this,"handleExternalCall",this.handleExternalCall);xT(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);xT(this,"getStatsForNerds",this.getStatsForNerds);xT(this,"setScreenLayer",this.setScreenLayer);xT(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);xT(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);xT(this,"forceFrescaUpdate",this.forceFrescaUpdate);xT(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);
xT(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);xT(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);xT(this,"setGlobalCrop",this.setGlobalCrop);xT(this,"getVisibilityState",this.getVisibilityState);xT(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);xT(this,"setInternalSize",this.setInternalSize)};
wT=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)};
a.B.hasOwnProperty(b)||xT(a,b,c);a.R.push(b)};
zT=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)};
a.B.hasOwnProperty(b)||xT(a,b,c);a.R.push(b)};
xT=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)}};
mna=function(a){a.C||(a.C={},g.Ua(a.C,a.F),g.Ua(a.C,a.K),a.C.addEventListener=function(b,c){Ssa(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Sa(c)),e=a.D[d];
e&&(a.app.ha.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
Ssa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Sa(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.Ja(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.ha.subscribe(b,f)}};
Tsa=function(a,b,c){b=g.ce(Math.floor(b),0,100);isFinite(b)&&AT(a.app,{volume:b,muted:a.isMuted()},c)};
Usa=function(a,b){AT(a.app,{muted:!0,volume:a.getVolume()},b)};
Vsa=function(a,b){AT(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.BT=function(a){var b=Wsa(a.app.C);if(b)return b.chrome;a=a.app.C;a=g.qD(a.J.T())?a.Vc.get("music"):void 0;return a?a.chrome:null};
DT=function(a,b){yT.call(this,a,b);var c=this;this.u=!1;zT(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(CT(c,d),e)});
zT(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(CT(c,d),e,f,h)});
zT(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(CT(c,d),e,f,h)});
zT(this,"seekBy",this.seekBy);zT(this,"mutedAutoplay",this.mutedAutoplay);zT(this,"showControls",this.showControls);zT(this,"hideControls",this.hideControls);zT(this,"cancelPlayback",this.cancelPlayback);zT(this,"getProgressState",this.getProgressState);zT(this,"isInline",this.isInline);zT(this,"setInline",this.setInline);zT(this,"getStoryboardFormat",this.getStoryboardFormat);zT(this,"getVideoContentRect",this.getVideoContentRect);zT(this,"toggleFullscreen",this.toggleFullscreen);zT(this,"isFullscreen",
this.isFullscreen);zT(this,"getVideoStats",this.getVideoStats);zT(this,"getPlayerSize",this.getPlayerSize);zT(this,"toggleSubtitles",this.toggleSubtitles);zT(this,"setCenterCrop",this.setCenterCrop);zT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);zT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);zT(this,"setSizeStyle",this.setSizeStyle);zT(this,"wakeUpControls",this.wakeUpControls)};
CT=function(a,b){var c={};if(a.app.T().R)for(var d=g.q(Xsa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(Ysa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
g.ET=function(a){DT.call(this,a);this.P=null};
g.GT=function(a,b,c,d,e,f){return g.FT(a.app,b,c,d,e,f)};
g.HT=function(a){return a.app.C};
g.IT=function(a){a=g.HT(a).Vc.get("endscreen");return!!a&&a.EE()};
JT=function(a){a=g.HT(a);var b=a.Vc.get("endscreen");return b&&b.FE()?!0:a.Tr()||g.qD(a.J.T())};
g.KT=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.uK=function(a,b){return LT(a.app,b)};
g.cG=function(a){return a.app.template};
g.NT=function(a){var b=g.MT(g.HT(a));return a.app.R&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Ti()||!!a.getPlaylist()};
g.OT=function(a,b,c){a.app.B.handleError(new uB(b,!1,c))};
Ena=function(a,b){var c=a.app;1===b&&(c.eb.tick("vr"),c.za||(c.za=Iq(aF,c.KF,c)),Zsa(c.D),$sa(c.eb,c.D.getVideoData(),ata(c)));var d=c.W;(RD(d)&&d.C||g.xD(d))&&(c.cd()||c.u.xa("onAdStateChange",b))};
g.QT=function(a){return(a=g.PT(g.HT(a)))?a.AL():{}};
g.ST=function(a){a=g.RT(g.HT(a));return!!a&&a.Vq()};
g.TT=function(a){a=g.RT(g.HT(a));return!!a&&a.DE()};
UT=function(a){a=g.HT(a).Vc.get("heartbeat");return!!a&&a.yL()};
g.zN=function(a,b,c){a.app.Kp(b,c)};
g.WT=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=oF(d.Vf,b),c&&a.getPresentingPlayerType()!==c||VT(a,"cuerangesremoved",b))};
g.bta=function(a){a=(a=a.getVideoData())&&a.Oa;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.cta=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Og)};
g.BP=function(a,b,c){a=g.cG(a).element;var d=yb(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.XT=function(a){var b=a.T();if(!b.Zb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.Q(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.qc&&f;return!c.ypcPreview&&(!d||e)&&!g.jb(c.Of,"ypc")&&!a&&(!g.hD(b)||f)};
g.ZT=function(a,b,c,d,e){a.T().ia&&dta(a.app.ia,b,c,d,void 0===e?!1:e)};
g.MN=function(a,b,c,d){a.T().ia&&eta(a.app.ia,b,c,void 0===d?!1:d)};
g.NN=function(a,b,c){a.T().ia&&(a.app.ia.elements.has(b),c&&(b.visualElement=g.Lt(c)))};
g.$T=function(a,b,c){a.T().ia&&a.app.ia.click(b,c)};
g.QN=function(a,b,c,d){if(a.T().ia){a=a.app.ia;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.Rt(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.eu(e,[f]):g.fu(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.Yt(e,f,d),a.C.add(b))}};
g.PN=function(a,b){return a.T().ia?a.app.ia.elements.has(b):!1};
g.yN=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(c.ea("release presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId),d!==c.B?aU(c,c.B):fta(c))}};
zra=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.I?bU(a.I,b,c):cU(a.te,b,c)};
gta=function(a){if(!a.ba("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Oa||!c.Oa.video||1080>c.Oa.video.Fc||c.OD)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Oa.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ba("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Na("iqss",e,!0),!0):!1};
dU=function(a,b){this.W=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
hta=function(a){a=a.timerName;OE("yt_sts","p",a);PE("_start",void 0,a)};
$sa=function(a,b,c){var d=g.nD(b.Sa)&&b.Sa.Sl&&mJ(b);if(b.Sa.Ql&&(jD(b.Sa)||RD(b.Sa)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||so("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&so("CSI_SERVICE_NAME",a.W.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,PE(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,OE(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}OE("yt_pvis",Oha(),a.timerName);OE("yt_pt","html5",a.timerName);
c&&!WE("pbs",a.timerName)&&a.tick("pbs",c);c=a.W;!RD(c)&&!jD(c)&&WE("_start",a.timerName)&&$E(a.timerName)}};
g.eU=function(a,b){this.type=a||"";this.id=b||""};
g.fU=function(a,b){g.O.call(this);this.Sa=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.Pd=this.loaded=!1;this.Ad=this.Ix=this.Cr=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.li={};this.xu=0;var c=b.session_data;c&&(this.Ad=Vp(c));this.AJ=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.JN="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.Pd||(this.listId=new g.eU("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":ita(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.eU(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):jta(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.li=ZH(b,"playlist_");this.PH=(c=b.thumbnail_ids)?c.split(","):[]};
gU=function(a){return!!(a.playlist||a.list||a.api)};
kta=function(a){var b=a.index+1;return b>=a.length?0:b};
lta=function(a){var b=a.index-1;return 0>b?a.length-1:b};
hU=function(a,b){a.index=g.ce(b,0,a.length-1);a.startSeconds=0};
ita=function(a,b){if(!a.Pd){a.listId=new g.eU("SR",b);var c={search_query:b};a.JN&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
jta=function(a){if(!a.Pd){var b=b||a.listId;b={list:b};var c=a.Ma();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
iU=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.Ma();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.Pd=!1;a.loaded=!0;a.xu++;a.Cr&&a.Cr()}};
jU=function(a){var b=g.ZF(),c=a.Ug;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=kJ(a);c=a.T();"leanback"===f?e="WATCH":c.ba("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Zi?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(c.Ja){f=c.Ja.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.ws&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.ue)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;if(e=a.mdxControlMode)d.mdxControlMode=mta[e];b.request=d;d=b.user||{};if(e=a.lg)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.Ph)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.Qa)b.thirdParty={embedUrl:a};return b};
kU=function(a,b,c){var d=a.videoId,e=jU(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Bp()),referer:document.location.toString(),signatureTimestamp:18610};g.ht.getInstance();a.Kh&&(h.autonav=!0);g.jt(0,141)&&(h.autonavState=g.jt(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.jt(0,66);nJ(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.Ly&&(h.fling=!0);var l=a.Yn;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=nta[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.Cu;if(null!=l){l={startWalltime:String(l)};if(m=a.vo)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Uj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.Q(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.nf)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),
m={clientName:ota[n[0]]||"UNKNOWN_INTERFACE",platform:pta[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.ba("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.ba("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.Cj)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.ba("hoffle_save")&&pJ(a)&&(d.forOffline=!0);a=a.T();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=e;e=g.jt(g.ht.getInstance(),
65);g.ND(a)&&(d.captionParams={deviceCaptionsOn:null!=e?!e:!1});return d};
qta=function(a){var b=a.T();g.ht.getInstance();var c={context:jU(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===kJ(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Dn&&(c.showContentOwnerOnly=!0);g.jt(0,141)&&(c.autonavState=g.jt(0,140)?"STATE_OFF":"STATE_ON");return c};
sta=function(a,b){return We(this,function d(){var e,f,h,l;return xa(d,function(m){if(1==m.u){e=kT();var n=a.T(),p={context:jU(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=bT(rta);return sa(m,fG(e,f,h),2)}l=m.B;a.nh({raw_embedded_player_response:l},!1);m.u=0})})};
g.lU=function(a,b){return jx(a.info.mimeType)?b?a.info.Yb()===b:!0:!1};
g.tta=function(a,b){if(null!=a.ra&&g.JD(b.T())&&!a.ra.isManifestless&&null!=a.ra.u.rawcc)return!0;if(!a.Wg())return!1;var c=!!a.ra&&a.ra.isManifestless&&Object.values(a.ra.u).some(function(e){return g.lU(e,"386")}),d=!!a.ra&&!a.ra.isManifestless&&Mga(a.ra);
return c||d};
mU=function(a,b){g.C.call(this);this.J=a;this.F=b;this.u={};this.B={};this.C=null;this.Vc=new Map;this.D=g.Q(a.T().experiments,"web_player_defer_modules")};
g.nU=function(a){return a.Vc.get("captions")};
xta=function(a,b){switch(b){case "ad":return oU(a);case "annotations_module":return a.zH();case "attribution":var c=a.J.T();return g.Q(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.gJ(c)||!!g.hJ(c))),c;case "embed":return g.hD(a.J.T());case "endscreen":return g.uta(a);case "heartbeat":return a.xA();case "kids":return yD(a.J.T());
case "remote":return a.J.T().Ig;case "miniplayer":return a.J.T().showMiniplayerUiWhenMinimized;case "music":return g.qD(a.J.T());case "captions":return c=a.J.getVideoData(),!!c.Tp||!!c.captionTracks.length||g.tta(c,a.J);case "unplugged":return g.xD(a.J.T());case "ux":return a.J.T().kb;case "visualizer":return g.vta(a);case "webgl":return wta(a);case "ypc":return a.Tr();case "ypc_clickwrap":return c=a.J.getVideoData(),c.Bp&&!c.Py;case "yto":return!!a.J.getVideoData().Of.includes("yto");default:return g.Hs(Error("Module descriptor "+
b+" does not match")),!1}};
pU=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Vc.get(b);if(!f||e)if(c||(c=function(){pU(a,b,void 0,d,e)}),f=f||yta(a,b,c,xta(a,b)))a.Vc.set(b,f),f.create(),d&&a.J.xa("onApiChange")};
zta=function(a){a.D&&(pU(a,"endscreen"),a.Bx(),pU(a,"creatorendscreen",void 0,!0))};
g.uta=function(a){var b=a.J.T();if(RD(b)||b.I||!b.ub&&!b.Ne)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.Q(b.experiments,"desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.PT=function(a){return a.Vc.get("webgl")};
wta=function(a){var b=a.J.getVideoData(),c=a.J.T().experiments,d=g.kr(),e=g.Q(c,"enable_spherical_kabuki");a=g.PD(a.J.T());if(b.Pj())return d||e||a||g.Q(c,"html5_enable_spherical");if(b.Vj())return a||d||e||g.Q(c,"html5_enable_spherical");if(b.Wj())return a||d||g.Q(c,"html5_enable_spherical3d");if(b.mo())return a||g.Q(c,"html5_enable_anaglyph3d")||!1;d=b.Oa&&b.Oa.video&&b.Oa.video.Vg();return a&&!g.WI(b)&&!b.isVisualizerEligible&&!d&&(g.Q(c,"enable_webgl_noop")||g.Q(c,"html5_enable_bicubicsharp")||
g.Q(c,"html5_enable_smartsharp"))};
Ata=function(a){g.Q(a.J.T().experiments,"web_player_ux_module_wait")&&a.Vc.get("ux")&&a.J.Wc("ux")};
Bta=function(a){Ata(a);pU(a,"ux",void 0,!0)};
oU=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.vta=function(a){var b=a.J.T();return a.J.getVideoData().isVisualizerEligible&&QD(b)&&g.Q(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.PD(b)&&!(g.hs&&!g.ae(42))};
yta=function(a,b,c,d){try{if(d){var e=g.qU[b];if(e)return new e(a.J);"creatorendscreen"===b?Cta(a,"annotations_module",c):Cta(a,b,c)}else a.J.Wc(b)}catch(f){a.J.Wc(b),g.Hs(f)}return null};
rU=function(a,b,c){for(var d=g.q(a.Vc),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.ii(b))&&(g.fg(f),a.Vc["delete"](e))}};
sU=function(a){return a.Vc.get("ad")};
tU=function(a){if(yD(a.J.T()))return a.Vc.get("kids")};
g.MT=function(a){if(a.J.T().Ig)return a.Vc.get("remote")};
uU=function(a){if(g.xD(a.J.T()))return a.Vc.get("unplugged")};
Wsa=function(a){if(a.J.T().kb)return a.Vc.get("ux")};
g.RT=function(a){return a.Vc.get("annotations_module")};
vU=function(a){return a.Vc.get("creatorendscreen")};
Cta=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.na()||c.call(a)},p=function(){a.na()||a.J.Wc(b)},r=h.onload;
h.onload=function(x){gm(n);r&&r.apply(window,[x])};
var t=h.onerror;h.onerror=function(x){if(.01>Math.random()){var B=new g.tr("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Hs(B)}gm(p);t&&t(x)};
var w=h,y=w.onreadystatechange;w.onreadystatechange=function(x){switch(w.readyState){case "loaded":case "complete":gm(n)}y&&y(x)};
f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.kd(h,g.sg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.eg(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.qU[b]=null;"annotations_module"===b&&(g.qU.creatorendscreen=null)}))}};
xU=function(a,b,c,d){g.O.call(this);var e=this;this.target=a;this.aa=b;this.B=0;this.I=!1;this.D=new g.ge(NaN,NaN);this.u=new g.tR(this);this.ha=this.C=this.K=null;g.D(this,this.u);b=d?4E3:3E3;this.P=new g.F(function(){wU(e,1,!1)},b,this);
g.D(this,this.P);this.X=new g.F(function(){wU(e,2,!1)},b,this);
g.D(this,this.X);this.Y=new g.F(function(){wU(e,512,!1)},b,this);
g.D(this,this.Y);this.fa=c&&0<c.Vl.length?5E3:3E3;d||(this.C=this.u.N(a,"mouseover",this.lv),this.u.N(a,"mousemove",this.FN),this.u.N(a,"mouseleave",this.GN));wg?this.u.N(a,"keypress",this.pL):this.u.N(a,"focusin",this.gK);this.F=this.u.N(a,"mousedown",this.nF);this.R=this.u.N(a,"touchstart",this.TH,void 0,!0);wU(this,640,!0)};
Dta=function(a){wU(a,4,!1);a.K&&(a.u.Mb(a.K),a.K=null,a.C=a.u.N(a.target,"mouseover",a.lv));a.C&&(a.u.Mb(a.C),a.C=a.u.N(a.target,"mouseover",a.lv))};
wU=function(a,b,c){a.na();var d=!a.B;c?(a.B|=b,b&1&&a.P.start(),b&2&&a.X.start()):(a.B&=~b,b&1&&a.P.stop(),b&2&&a.X.stop(),b&512&&a.Y.stop());a.B&512&&!(a.B&128)&&a.Y.Sb(a.fa);b=!a.B;d!==b&&a.V("autohideupdate",b)};
g.yU=function(a){g.V.call(this,{G:"button",la:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.oa);this.oa()};
zU=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.Q(b.experiments,"web_player_contain_thumbnail")||b.I)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{G:"div",la:c,S:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ka("ytp-cued-thumbnail-overlay");c=new g.yU(a);g.D(this,c);c.ga(b);this.C=new g.tR(this);g.D(this,this.C);this.api=a;this.F=this.ka("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.mO(this,250);g.D(this,this.B);this.u=new g.F(this.oa,0,this);g.D(this,
this.u);this.oa();this.N(a,"appresize",this.Va);this.N(a,"presentingplayerstatechange",this.OM);this.N(a,"ypcStateChanged",this.lR);jD(a.T())&&this.N(a,"videoplayerreset",this.MM)};
Eta=function(a){var b=!a.T().Jg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.AU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.cP(a))return g.ip(a),!0;b.pauseVideo();a=e.getAttribute("href");g.QL(a,d,!0);return!1};
g.BU=function(a,b,c){if(FD(b.T())&&2!==b.getPresentingPlayerType()){if(g.cP(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.ip(c),!0}else{var d=g.cP(c);d&&b.pauseVideo();g.QL(a,void 0,!0);d&&(g.RL(a),g.ip(c))}return!1};
CU=function(){return{G:"div",L:"ytp-spinner-container",S:[{G:"div",L:"ytp-spinner-rotator",S:[{G:"div",L:"ytp-spinner-left",S:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",S:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
DU=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.EU=function(a,b,c){a=a.T();return g.Q(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Hg?g.tL("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.FU=function(a){g.V.call(this,{G:"div",la:["ytp-error"],U:{role:"alert"},S:[{G:"div",L:"ytp-error-content",S:[{G:"div",L:"ytp-error-icon-container",S:[{G:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{G:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"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"}}]}]},{G:"div",L:"ytp-error-content-wrap",
S:[{G:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.GU=function(a){a=a.split(Fta);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({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",U:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{G:"span",S:b}};
IU=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.tL(g.HU[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",Z:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",U:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{G:"span",S:d}};
Gta=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.N(c[d],"click",b);a.keys.push(e)}};
Hta=function(a){for(var b=0;b<a.keys.length;b++)a.Mb(a.keys[b]);a.keys=[]};
KU=function(a){g.tR.call(this);this.J=a;this.u=new Set;this.mediaSession=navigator.mediaSession;JU(this,"play",function(){a.playVideo()});
JU(this,"pause",function(){a.pauseVideo()});
JU(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
JU(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.Ra);this.N(a,"presentingplayerstatechange",this.B);this.Ra()};
JU=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
LU=function(a){g.V.call(this,{G:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.D=new g.V({G:"div",la:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.C=!1;this.B=new g.mO(this.D,250,!1,100);this.Pc=this.u=null;g.D(this,this.D);this.D.ga(this.element);g.D(this,this.B);this.N(a,"videodatachange",this.Ra);this.N(a,"presentingplayerstatechange",this.lc)};
Ita=function(a,b){var c=XI(b),d=YI(b);a.u?b.videoId&&b.videoId!==a.videoId&&(a.u.rg(),a.videoId=b.videoId,a.C=!!d):c&&d&&(a.u=new g.F(a.nb,d,a),g.D(a,a.u),g.Ne(g.se("ytp-paid-content-overlay-text",a.element),c))};
Jta=function(a,b){a.u&&(g.U(b,8)&&a.C?(a.C=!1,a.Bc(),a.u.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
NU=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",S:[CU(),{G:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ka("ytp-spinner-message");this.u=new g.F(this.show,500,this);g.D(this,this.u);this.N(a,"presentingplayerstatechange",this.B);this.N(a,"onFrescaStateChange",this.C);this.N(a,"playbackstalledatstart",this.D);MU(this,g.uK(a))};
MU=function(a,b){(g.U(b,128)?0:g.U(b,16)||g.U(b,1))?a.u.start():a.hide()};
g.OU=function(a,b,c,d){d=void 0===d?!1:d;g.KN.call(this,b);var e=this;this.J=a;this.Y=d;this.K=new g.tR(this);this.X=new g.mO(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),g.Q(e.J.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Me(e.u,document.activeElement)&&e.focus():e.focus())});
g.D(this,this.K);g.D(this,this.X)};
Kta=function(a){a.u&&(document.activeElement&&g.Me(a.element,document.activeElement)&&(Se(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.ut(a.K);a.P=void 0};
PU=function(a,b,c){a.zf()?a.nb():a.Bc(b,c)};
QU=function(a){var b=g.kB(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",la:["ytp-unmute-icon"],S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}]},
{G:"div",la:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",la:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.OU.call(this,a,{G:"button",la:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{G:"div",L:"ytp-unmute-inner",S:d}]},100);this.seen=this.B=!1;this.api=a;g.ZT(this.api,this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.D,this);this.N(a,"presentingplayerstatechange",
this.F);this.wa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.hD(this.api.T());g.JN(this,a);a&&Lta(this);this.C=a};
Mta=function(a){a.B||(a.B=!0,g.$T(a.api,a.element))};
Lta=function(a){a.seen||(a.seen=!0,g.QN(a.api,a.element,!0))};
g.SU=function(a){g.tR.call(this);var b=this;this.api=a;this.wA=!1;this.Vi=null;this.mt=!1;this.u=null;this.Y=this.R=!1;this.ia=this.ma=null;this.Aa=NaN;this.ha=this.C=!1;this.D=0;this.X=[];var c=a.T(),d=g.cG(a);this.za=new g.F(this.pO,0,this);g.D(this,this.za);g.qD(c)||(this.B=new zU(a),g.D(this,this.B),g.BP(a,this.B.element,4));if(Nta()){var e=new NU(a);g.D(this,e);e=e.element;g.BP(a,e,4)}var f=a.getVideoData();this.Nc=new xU(d,function(l){a:{try{if(!g.Me(b.api.getRootNode(),l)){var m=!1;break a}}catch(n){m=
!1;break a}for(;l&&!Se(l);)l=l===b.api.getRootNode()?null:g.Le(l);m=!!l}return m},f,c.Oe);
g.D(this,this.Nc);this.Nc.subscribe("autohideupdate",this.Yh,this);var h=new LU(a);g.D(this,h);g.BP(a,h.element,4);this.P=new QU(a);g.D(this,this.P);g.BP(this.api,this.P.element,2);this.aa=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.GM);this.K=new g.F(this.ev,200,this);g.D(this,this.K);this.fa=f.videoId;this.Ja=new g.F(function(){b.D=0},350);
g.D(this,this.Ja);this.F=new g.F(function(){b.ha||RU(b)},350,this);
g.D(this,this.F);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.I(f,"ytp-color-white")}g.qD(c)&&g.I(f,"ytp-music-player");!g.Q(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new KU(a),g.D(this,f));this.N(a,"appresize",this.Va);this.N(a,"presentingplayerstatechange",this.HM);this.N(a,"videodatachange",this.Ra);this.N(a,"videoplayerreset",this.MP);
this.N(a,"autonavvisibility",function(){b.vk()});
this.N(a,"sizestylechange",function(){b.vk()});
this.N(a,"onFrescaStateChange",function(){b.Fg()});
this.N(d,"click",this.nQ,this);this.N(d,"dblclick",this.oQ,this);c.za&&(this.N(d,"gesturechange",this.pQ,this),this.N(d,"gestureend",this.qQ,this));this.rl=[d.C];this.B&&this.rl.push(this.B.element);e&&this.rl.push(e)};
TU=function(a,b){if(!b)return!1;var c=a.api.Zc();if(c.ol()&&(c=c.Pa())&&g.Me(c,b))return c.controls;for(c=0;c<a.rl.length;c++)if(g.Me(a.rl[c],b))return!1;return g.qn(b,"ytp-player-content")||g.qn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Ota=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.cG(a.api).I&&a.api.T().u&&UU&&11<=tJ)};
VU=function(a,b){return!TU(a,fp(b))&&g.cP(b)};
RU=function(a){a.Nc.tk();if(g.Q(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.R&&a.Y)a.Y=!1;else if(!a.api.T().aa&&!a.Ij()){var b=g.uK(a.api);g.U(b,2)&&JT(a.api)||a.gn(b);if(!a.api.T().za||b.isCued()||g.U(b,1024)){var c=a.api.app.Ja;g.Nq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,2048);c&&(b.isCued()||d)?(g.Nq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||
g.Nq("embedsRequestStorageAccessFailedState",{state:b.state}),a.ev())}else a.K.isActive()?(a.ju(),a.K.stop()):a.K.start()}};
Pta=function(a,b){if(g.cP(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.uK(a.api);!g.U(c,4)||g.U(c,8)||g.U(c,2)||a.ev();return!0}return!1};
Qta=function(a){String(a).includes("fullscreen error")?g.Is(a):g.Hs(a)};
Rta=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Nta=function(){var a=er()&&67<=br();return!dr("tizen")&&!fD&&!a&&!0};
WU=function(a){g.V.call(this,{G:"button",la:["ytp-button","ytp-back-button"],S:[{G:"div",L:"ytp-arrow-back-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",wb:!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.JN(this,a.T().showBackButton);this.wa("click",this.onClick)};
g.XU=function(a){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-bezel-text-wrapper",S:[{G:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{G:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{G:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.J=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,500,this);g.D(this,this.B);g.D(this,this.u);this.hide()};
ZU=function(a,b,c){if(0>=b){c=dO();b="muted";var d=0}else c=c?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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";YU(a,c,b,d+"%")};
Sta=function(a,b){var c=b?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.tL("Speed is $RATE",{RATE:String(d)});YU(a,c,e,d+"x")};
YU=function(a,b,c,d){d=void 0===d?"":d;a.ya("label",void 0===c?"":c);a.ya("icon",b);a.u.rg();a.B.start();a.ya("title",d);g.J(a.element,"ytp-bezel-text-hide",!d)};
$U=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",S:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",S:[{G:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.J=a;this.X=b;this.Di=c;this.D=new g.mO(this,250,!1,250);this.u=null;this.K=new g.F(this.wP,300,this);this.I=new g.F(this.vP,2E3,this);this.F=[];this.B=null;this.P=new g.F(function(){d.element.style.margin="0"},250);
this.C=null;g.D(this,this.D);g.D(this,this.K);g.D(this,this.I);g.D(this,this.P);this.N(c.element,"mouseover",this.VE);this.N(c.element,"mouseout",this.UE);this.N(a,"cardsteasershow",this.LQ);this.N(a,"cardsteaserhide",this.nb);this.N(a,"cardstatechange",this.fI);this.N(a,"presentingplayerstatechange",this.fI);this.N(a,"appresize",this.ZA);this.N(a,"onShowControls",this.ZA);this.N(a,"onHideControls",this.GJ);this.wa("click",this.kS);this.wa("mouseenter",this.IM)};
bV=function(a,b,c){g.V.call(this,{G:"button",la:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.hD(a.T()))},S:[{G:"span",L:"ytp-cards-button-icon-default",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}]},
{G:"div",L:"ytp-cards-button-title",Z:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"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"}},{G:"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"}},{G:"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"}}]}]},{G:"div",
L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.mO(this,250,!0,100);g.D(this,this.B);g.J(this.C,"ytp-show-cards-title",g.hD(a.T()));this.hide();this.wa("click",this.onClicked);this.wa("mouseover",this.YO);aV(this,!0)};
aV=function(a,b){b?a.u=g.cV(a.D.Rb(),a.element):(a.u=a.u,a.u(),a.u=null)};
Uta=function(a,b,c,d){var e=window.location.search;if(38===b.bh&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Md("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.ON});if(30===b.bh&&"docs"===a.playerStyle)return g.Md("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.ye,authkey:b.authKey,eurl:a.Qa});if(33===b.bh&&"google-live"===a.playerStyle)return g.Md("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Y&&g.Hs(Error("getVideoInfoUrl for invalid namespace: "+a.Y));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Qa,ps:a.playerStyle,el:kJ(b),hl:a.Lg,list:b.playlistId,agcid:b.RB,aqi:b.adQueryId,sts:18610,lact:Bp()};g.Ua(f,a.deviceParams);a.Ja&&(f.forced_experiments=a.Ja);b.lg?(f.vvt=b.lg,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.uf()&&(f.access_token=b.uf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Sw&&(f.ad_id=b.Sw);null!==b.Yw&&(f.ad_sys=b.Yw);null!==b.Gx&&(f.encoded_ad_playback_context=b.Gx);b.GA&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.zj&&2!==a.zj&&(f.cc_load_policy=a.zj);var h=g.jt(g.ht.getInstance(),65);g.ND(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.xt&&(f.endscreen_ad_tracking=
b.xt);(h=a.K.get(b.videoId))&&h.ts&&(f.ic_track=h.ts);b.Ug&&(f.itct=b.Ug);nJ(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Kh&&(f.autonav="1");b.Oy&&(f.noiba="1");g.Q(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.nf&&(f.ytr=b.nf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.nf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Cj&&(f.ytrcc=b.Cj);b.Wy&&(f.utpsa="1");b.Ly&&(f.is_fling="1");b.My&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Yn&&(h=
3===b.Yn.split("|").length,f.force_ad_params=h?b.Yn:"||"+b.Yn);b.an&&(f.preload=b.an);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Uj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");lJ(b)&&(f.content_v=lJ(b));b.Zi&&(f.livemonitor=1);a.ye&&(f.authuser=a.ye);a.pageId&&(f.pageid=a.pageId);a.kc&&(f.ei=a.kc);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Cu&&(f.live_start_walltime=b.Cu);a.C&&b.vo&&(f.live_manifest_duration=b.vo);a.C&&b.playerParams&&
(f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.JA&&(f.tkn=b.JA);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Ph&&(f.kpt=b.Ph);b.vu&&(f.kids_age_up_mode=b.vu);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.ws&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ue?(h=null!=b.ue.latitudeE7&&null!=b.ue.longitudeE7?b.ue.latitudeE7+","+b.ue.longitudeE7:",",h+=","+(b.ue.clientPermissionState||0)+","+
(b.ue.locationRadiusMeters||"")+","+(b.ue.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.Iq&&(f.internalipoverride=b.Iq);a.embedConfig&&(f.embed_config=a.embedConfig);a.Dn&&(f.co_rel="1");0<a.Kg.length&&(f.ancestor_origins=Array.from(a.Kg).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.it&&b.jt&&(f.clip=b.it,f.clipt=b.jt);b.ot&&(f.disable_watch_next="1");a.ba("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(kU(b,c,d)));a.ba("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(qta(b)));for(var l in f)!Tta.has(l)&&f[l]&&512<String(f[l]).length&&(g.Is(Error("GVI param too long: "+l)),f[l]="");b=a.P;g.xD(a)&&(b=nw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.P);a=g.Md(b+"get_video_info",f);e&&(a=nq(a,e));return a};
g.dV=function(a,b){return a.P+"timedtext_video?ref=player&v="+b.videoId};
g.eV=function(a,b){a.feature=b;return a};
Vta=function(a){var b={};a.mH&&(b.ytrext=a.mH);return g.Sb(b)?void 0:b};
gV=function(a,b){g.V.call(this,{G:"button",la:[fV.BUTTON,fV.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{G:"div",L:fV.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.aO()]},{G:"div",L:fV.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"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.ZT(a,this.element,this,36927);this.wa("click",this.onClick,this);this.ya("pressed",!1);this.ya("label","Get notified about every new video")};
Wta=function(a,b){a.u=b;a.element.classList.toggle(fV.NOTIFICATIONS_ENABLED,a.u);if(g.Q(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.LA:c.KA){var d=dG(a.api.app);d?cT(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.qq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",tc:{channel_id:a.channelId,receive_all_updates:!a.u}})};
Xta=function(a,b,c){return b?a.P+"subscription_ajax":c?"/subscription_service":""};
g.iV=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.nD(w)||g.pD(w))c.target=w.F;g.V.call(this,{G:"div",la:["ytp-button","ytp-sb"],S:[{G:"a",L:"ytp-sb-subscribe",U:c,S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"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.nD(w)&&!g.Q(w.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{G:"div",la:["ytp-button","ytp-sb"],S:[{G:"div",L:"ytp-sb-subscribe",U:p?{title:g.tL("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":SD(w),"data-tooltip-opaque":String(g.hD(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},
a]},b?{G:"div",L:"ytp-sb-count",Z:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.tL("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":SD(w),"data-tooltip-opaque":String(g.hD(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",Z:d}:""]}]});var y=this;this.channelId=h;this.u=t;var x=this.ka("ytp-sb-subscribe"),B=this.ka("ytp-sb-unsubscribe");
f&&g.I(this.element,"ytp-sb-classic");if(e){l?this.B():this.C();var E=function(){a:{var K=y.channelId;if(m||n){var H=r.T();var ya={c:K};if(g.Q(H.experiments,"embeds_botguard_with_subscribe_killswitch"))ya="";else{var ia;Ps.Yd()&&(ia=wsa(ya));ya=ia||""}if(g.Q(H.experiments,"web_player_innertube_subscription_update")){H=r.getVideoData();if(!H){M(Error("No video data available when updating subscription."));break a}H=H.subscribeCommand;if(!H){M(Error("No subscribe command in videoData."));break a}ia=
dG(r.app);if(!ia){M(Error("No innertube service available when updating subscriptions."));break a}cT(ia,H,{botguardResponse:ya,feature:m})}else g.qq(Xta(H,!!m,!!n),m?{method:"POST",si:{action_create_subscription_to_channel:1,c:K},tc:{feature:m,silo_name:null,r2b:ya},withCredentials:!0}:n?{method:"POST",si:{action_subscribe:1},tc:{channel_ids:K,itct:n}}:{});r.xa("SUBSCRIBE",K)}}B.focus();B.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")},G=function(){var K=y.channelId;
if(m||n){var H=r.T();g.Q(H.experiments,"web_player_innertube_subscription_update")?(H=r.getVideoData(),cT(dG(r.app),H.unsubscribeCommand,{feature:m})):g.qq(Xta(H,null!=m,null!=n),m?{method:"POST",si:{action_remove_subscriptions:1},tc:{c:K,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",si:{action_unsubscribe:1},tc:{channel_ids:K,itct:n}}:{});r.xa("UNSUBSCRIBE",K)}x.focus();x.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.N(x,"click",E);this.N(B,"click",G);this.N(x,"keypress",function(K){13===K.keyCode&&E(K)});
this.N(B,"keypress",function(K){13===K.keyCode&&G(K)});
this.N(r,"SUBSCRIBE",this.B);this.N(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Rb(),hV(this.tooltip),g.eg(this,g.cV(this.tooltip,x)),g.eg(this,g.cV(this.tooltip,B)))}else g.I(x,"ytp-sb-disabled"),g.I(B,"ytp-sb-disabled")}};
jV=function(a,b){g.V.call(this,{G:"div",L:"ytp-title-channel",S:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{G:"div",L:"ytp-title-expanded-heading",S:[{G:"h2",L:"ytp-title-expanded-title",S:[{G:"a",Z:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.K=b;this.channel=this.ka("ytp-title-channel");this.u=this.ka("ytp-title-channel-logo");this.D=this.ka("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.hD(this.api.T());g.ZT(a,this.u,this,36925);this.F&&Yta(this);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",this.oa);this.oa()};
Yta=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.ma){var d=b.ye?null:psa(),e=new g.iV("Subscribe",null,"Subscribed",null,!0,!1,c.kg,c.subscribed,"channel_avatar",null,d,a.api,a.K);a.subscribeButton=e;g.D(a,e);e.ga(a.D);g.ZT(a.api,e.element,a,36926);e.hide();a.N(e.element,"click",function(){g.$T(a.api,e.element)});
var f=new gV(a.api,c.kg);a.B=f;g.D(a,f);f.ga(a.D);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.kp&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.kp&&(f.hide(),Wta(f,!1))})}a.ya("flyoutUnfocusable","true");
a.ya("channelTitleFocusable","-1");b.u?a.N(a.u,"click",function(h){Zta(a)&&(h.preventDefault(),a.isExpanded()?a.yx():a.Sx());g.$T(a.api,a.u)}):(a.N(a.channel,"mouseenter",a.Sx),a.N(a.channel,"mouseleave",a.yx),a.N(a.channel,"focusin",a.Sx),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.yx()}),a.N(a.u,"click",function(){g.$T(a.api,a.u)}));
a.C=new g.F(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.QN(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.QN(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.D(a,a.C);a.N(a.channel,$ta,function(){aua(a)});
a.N(a.api,"onHideControls",a.hA);a.N(a.api,"appresize",a.hA);a.N(a.api,"fullscreentoggled",a.hA)};
aua=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
Zta=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.lV=function(a,b,c,d){g.KN.call(this,a);this.priority=b;c&&g.kV(this,c);d&&this.Gc(d)};
g.mV=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{G:c?"a":"div",la:b,U:a,S:[{G:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{G:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
nV=function(a,b){a.ya("icon",b)};
g.kV=function(a,b){a.ya("label",b)};
oV=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",S:[{G:"button",la:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({G:"button",la:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.KN.call(this,h);this.content=b;d&&h.S?b.ga(this.element,h.S.length-1):b.ga(this.element);this.DD=!1;this.aL=d;c&&(c=this.ka(l),this.N(c,"click",this.rO),this.DD=!0,
e&&(n=this.ka(n),this.N(n,"click",e)));b.subscribe("size-change",this.JF,this);this.N(a,"fullscreentoggled",this.JF)};
g.pV=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.KN({G:"div",L:"ytp-panel-menu",U:h});oV.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.D(this,this.menuItems)};
g.qV=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Hz,a);a.items=[];g.He(a.menuItems.element);a.menuItems.V("size-change")};
bua=function(a,b){return b.priority-a.priority};
rV=function(a){var b=g.mV({"aria-haspopup":"true"});g.lV.call(this,b,a);this.wa("keydown",this.u)};
sV=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.tV=function(a,b){g.lV.call(this,g.mV({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.wa("click",this.onClick)};
uV=function(a,b,c,d){g.pV.call(this,a);this.J=a;this.Xa=c;this.Tb=d;this.Rh=new g.tV("Loop",7);this.getVideoUrl=new rV(6);this.Hh=new rV(5);this.Ch=new rV(4);this.sb=new rV(3);this.Kr=new g.lV(g.mV({href:"{{href}}",target:this.J.T().F},void 0,!0),2,"Troubleshoot playback issue");this.Rn=new g.KN({G:"div",la:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.wC=new oV(this.J,this.Rn);this.Yk=null;g.D(this,this.Rh);this.Wb(this.Rh,!0);this.Rh.wa("click",this.qR,
this);g.ZT(a,this.Rh.element,this.Rh,28661);g.D(this,this.getVideoUrl);this.Wb(this.getVideoUrl,!0);this.getVideoUrl.wa("click",this.oR,this);g.ZT(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.D(this,this.Hh);this.Wb(this.Hh,!0);this.Hh.wa("click",this.pR,this);g.ZT(a,this.Hh.element,this.Hh,28660);g.D(this,this.Ch);this.Wb(this.Ch,!0);this.Ch.wa("click",this.nR,this);g.ZT(a,this.Ch.element,this.Ch,28658);g.D(this,this.sb);this.Wb(this.sb,!0);this.sb.wa("click",this.mR,this);g.D(this,this.Kr);
this.Wb(this.Kr,!0);this.Kr.wa("click",this.iQ,this);b=new g.lV(g.mV(),1,"Stats for nerds");g.D(this,b);this.Wb(b,!0);b.wa("click",this.zQ,this);g.D(this,this.Rn);this.Rn.wa("click",this.JO,this);g.D(this,this.wC);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.pB&&g.ae(43)&&(c=!0);g.vC&&!g.ae(41)&&(c=!1);c&&(this.Yk=new g.V({G:"textarea",L:"ytp-html5-clipboard",U:{readonly:""}}),g.D(this,this.Yk),this.Yk.ga(this.element));nV(this.Rh,{G:"svg",U:{fill:"none",height:"24",
viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});nV(this.sb,{G:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"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"}}]});nV(this.Kr,{G:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"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"}}]});nV(b,Vna());this.N(a,"loopchange",this.SF);this.N(a,"videodatachange",this.Ra);cua(this);this.hi(this.J.getVideoData())};
wV=function(a,b){var c=!1;if(a.Yk){var d=a.Yk.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Xa.nb():(a.Rn.Gc(b,"text"),g.vV(a.Xa,a.wC),DU(a.Rn.element),a.Yk&&(a.Yk=null,cua(a)));return c};
cua=function(a){var b=!!a.Yk;g.kV(a.sb,b?"Copy debug info":"Get debug info");sV(a.sb,!b);g.kV(a.Ch,b?"Copy embed code":"Get embed code");sV(a.Ch,!b);g.kV(a.getVideoUrl,b?"Copy video URL":"Get video URL");sV(a.getVideoUrl,!b);g.kV(a.Hh,b?"Copy video URL at current time":"Get video URL at current time");sV(a.Hh,!b);nV(a.Ch,b?Tna():null);nV(a.getVideoUrl,b?ZN():null);nV(a.Hh,b?ZN():null)};
g.xV=function(a,b){g.OU.call(this,a,{G:"div",la:["ytp-popup",b||""]},100,!0);this.B=[];this.C=this.F=null;this.fv=this.maxWidth=0;this.size=new g.ie(0,0);this.wa("keydown",this.SM)};
dua=function(a){var b=yV(a);if(b){g.Kg(a.element,a.maxWidth||"100%",a.fv||"100%");g.ug(b.element,"minWidth","250px");g.ug(b.element,"width","");g.ug(b.element,"height","");g.ug(b.element,"maxWidth","100%");g.ug(b.element,"maxHeight","100%");g.ug(b.content.element,"height","");var c=g.Lg(b.element);c.width+=1;c.height+=1;g.ug(b.element,"width",c.width+"px");g.ug(b.element,"height",c.height+"px");g.ug(b.element,"maxWidth","");g.ug(b.element,"maxHeight","");var d=0;b.DD&&(d=b.ka("ytp-panel-header"),
d=g.Lg(d).height);var e=0;b.aL&&(e=b.ka("ytp-panel-footer"),g.ug(e,"width",c.width+"px"),e=g.Lg(e).height);g.ug(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.ug(b.element,"width",c.width+"px")));a.size=c}};
g.vV=function(a,b){var c=a.B[a.B.length-1];a.B.push(b);zV(a,c,b)};
g.AV=function(a){var b=a.B.pop(),c=a.B[0];a.B=[c];zV(a,b,c,!0)};
zV=function(a,b,c,d){eua(a);yV(a);g.qn(c.element,"ytp-panel-animate-back")||g.qn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.tp,a),b.unsubscribe("back",a.fg,a));c.subscribe("size-change",a.tp,a);c.subscribe("back",a.fg,a);if(a.fb){g.I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ga(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;dua(a);g.Kg(a.element,e);a.F=new g.F(function(){fua(a,b,c,d)},20,a);
a.F.start()}else c.ga(a.element),b&&b.detach()};
fua=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.sn(c.element,"ytp-panel-animate-back")):(g.I(b.element,"ytp-panel-animate-back"),g.sn(c.element,"ytp-panel-animate-forward"));g.Kg(a.element,a.size);a.C=new g.F(function(){g.sn(a.element,"ytp-popup-animating");b.detach();g.tn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
yV=function(a){return a.B[a.B.length-1]};
eua=function(a){a.F&&g.kn(a.F);a.C&&g.kn(a.C)};
g.BV=function(a,b,c){g.xV.call(this,a);this.aa=b;this.Tb=c;this.I=new g.tR(this);this.D=null;g.D(this,this.I);g.ZT(a,this.element,this,28656);g.I(this.element,"ytp-contextmenu");gua(this);this.hide()};
gua=function(a){g.ut(a.I);"gvn"!==a.J.T().playerStyle&&a.I.N(g.cG(a.J),"contextmenu",a.GO)};
hua=function(a){a.J.isFullscreen()?g.BP(a.J,a.element,9):a.ga(document.body)};
CV=function(a,b){g.V.call(this,{G:"button",la:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.hD(a.T()))},S:[{G:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{G:"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.Rb();var c=a.T();hV(this.tooltip);g.J(this.element,"ytp-show-copylink-title",g.hD(c)&&!g.qD(c));g.ZT(a,this.element,this,86570);this.wa("click",this.onClick);this.N(a,"videodatachange",
this.oa);this.N(a,"videoplayerreset",this.oa);this.N(a,"appresize",this.oa);this.oa();g.eg(this,g.cV(this.tooltip,this.element))};
iua=function(a){a.ya("icon",UN());if(a.api.T().u)DV(a.tooltip,a.element,"Link copied to clipboard");else{a.ya("title-attr","Link copied to clipboard");EV(a.tooltip);DV(a.tooltip,a.element);var b=a.wa("mouseleave",function(){a.Mb(b);a.oa();a.tooltip.Ci()})}};
jua=function(a,b){return We(a,function d(){var e=this;return xa(d,function(f){if(1==f.u)return f.C=2,sa(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);ua(f);var h=f["return"],l=!1,m=g.Fe("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(or){var p=window.getSelection();p.removeAllRanges();var r=document.createRange();r.selectNodeContents(m);p.addRange(r);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
return h.call(f,l)})})};
FV=function(a){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",S:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",S:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",S:[{G:"div",L:"ytp-doubletap-arrows-container",S:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",L:"ytp-doubletap-tooltip",
S:[{G:"div",L:"ytp-chapter-seek-text",Z:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,700,this);g.D(this,this.B);g.D(this,this.u);this.hide();this.C=this.ka("ytp-doubletap-fast-forward-ve");this.D=this.ka("ytp-doubletap-rewind-ve");g.ZT(this.J,this.C,this,28240);g.ZT(this.J,this.D,this,28239);g.QN(this.J,this.C,!0);g.QN(this.J,this.D,!0)};
GV=function(a,b,c){var d=g.cG(a.J).getPlayerSize();a.u.rg();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var e=a.ka("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";kua(a,c)};
lua=function(a,b,c){a.u.rg();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");b=a.ka("ytp-doubletap-static-circle");b.style.width="0";b.style.height="0";g.I(a.element,"ytp-chapter-seek");a.ya("seekText",c);a.ya("seekTime","")};
kua=function(a,b){var c=g.tL("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.ya("seekTime",c)};
HV=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
IV=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};
mua=function(a,b){var c=IV(a,b)+1;return c<a.length?c:-1};
nua=function(a,b){return IV(a,b)-1};
g.JV=function(a,b,c,d,e,f,h){g.tR.call(this);var l=this;this.api=a;this.contextMenu=c;this.Nc=d;this.Tb=e;this.u=f;this.D=h;this.C=new g.F(function(){oua(l,!1)},1E3);
this.B="";g.D(this,this.C);a=g.Ta(this.tA,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.AD);this.N(c.element,"keydown",this.AD);this.N(b,"keyup",this.BD);this.N(c.element,"keyup",this.BD)};
LV=function(a,b,c,d){var e=g.nU(g.HT(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.KV.length;h++){var l=g.KV[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);oua(a,!0);a.C.start()}};
pua=function(a,b){a.api.He();if(g.U(g.uK(a.api),4)){var c=a.api.getVideoData().Oa;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
oua=function(a,b){g.nU(g.HT(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
MV=function(a,b,c){g.V.call(this,{G:"button",la:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{G:"div",L:"ytp-overflow-icon",S:[{G:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{G:"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.Rb();
g.ZT(a,this.element,this,16499);this.N(a,"appresize",this.oa);this.N(a,"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();g.eg(this,g.cV(this.tooltip,this.element));this.wa("click",function(){g.$T(a,d.element);PU(c,d.element,!1)})};
NV=function(a,b){g.OU.call(this,a,{G:"div",L:"ytp-overflow-panel",U:{id:FN(),role:"dialog"},S:[{G:"div",L:"ytp-overflow-panel-content",S:[{G:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{G:"button",la:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.XN()]}]},250);this.actionButtons=[];this.tooltip=b.Rb();this.B=this.ka("ytp-overflow-panel-content");this.closeButton=this.ka("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.nb);g.eg(this,g.cV(this.tooltip,
this.closeButton));this.wa("click",this.RM);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.QM);this.hide()};
OV=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.ya("buttons",a.actionButtons))};
qua=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.Eb(b)};
PV=function(a,b,c){var d=b.Ma(c),e=a.T(),f=d.ne("default.jpg");g.V.call(this,{G:"a",la:["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:[{G:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",Z:d.title},{G:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.wa("click",this.onClick)};
QV=function(a){g.OU.call(this,a,{G:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:FN()},S:[{G:"div",L:"ytp-playlist-menu-header",S:[{G:"div",L:"ytp-playlist-menu-title",S:[{G:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Z:"{{title}}"},{G:"button",la:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.XN()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.D=
this.playlist=null;this.items=this.ka("ytp-playlist-menu-items");this.C=new g.tR(this);this.B=[];a=this.ka("ytp-playlist-menu-close");this.N(a,"click",this.nb);a=this.ka("ytp-playlist-menu-title-name");this.N(a,"click",this.PQ);g.D(this,this.C);this.hide()};
RV=function(a,b,c){g.V.call(this,{G:"button",la:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{G:"div",L:"ytp-playlist-menu-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Rb();g.ZT(a,this.element,this,70344);this.N(a,"videodatachange",this.u);this.N(a,"onPlaylistUpdate",this.u);this.N(a,"presentingplayerstatechange",this.oa);this.N(a,"appresize",this.oa);this.hide();this.u();g.eg(this,g.cV(this.tooltip,this.element));this.wa("click",function(){g.$T(a,d.element);PU(c,d.element,!1)})};
SV=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-promotooltip-wrapper",S:[{G:"div",L:"ytp-promotooltip-container",S:[{G:"div",L:"ytp-promotooltip-content",S:[{G:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",S:[{G:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",U:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",U:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.I=b;this.J=c;this.u=this.B=null;this.title=this.ka("ytp-promotooltip-title");this.details=this.ka("ytp-promotooltip-details");this.acceptButton=this.ka("ytp-promotooltip-accept-button");this.dismissButton=this.ka("ytp-promotooltip-dismiss-button");this.F=this.D=this.C=!1;g.JN(this,!1);this.N(c,"onShowControls",this.rz);this.N(c,"onHideControls",this.IO);this.N(c,"resize",this.Va);this.N(this.acceptButton,"click",this.QN);this.N(this.dismissButton,
"click",this.NO);this.N(document,"click",this.YM)};
rua=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
TV=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=dG(a.J.app);(null===h||void 0===h?0:fsa(h,f))&&cT(h,f,e)}}};
sua=function(a){var b,c,d,e,f,h,l,m,n,p,r=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text);a=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return r||a};
UV=function(a,b){g.V.call(this,{G:"button",la:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.bO()]});this.J=a;this.N(a,"presentingplayerstatechange",this.u);this.wa("click",this.onClick,this);var c=g.uK(a);g.JN(this,g.U(c,2));g.cV(b.Rb(),this.element)};
g.VV=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",la:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.hD(a.T()))},S:[{G:"div",L:"ytp-share-icon",Z:"{{icon}}"},{G:"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.Rb();b=a.T();g.ZT(a,this.element,this,28664);this.wa("click",this.onClick);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",
this.oa);this.N(a,"appresize",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();g.J(this.element,"ytp-show-share-title",g.hD(b)&&!g.qD(b));g.eg(this,g.cV(this.tooltip,this.element))};
g.WV=function(a,b){var c=FN(),d=a.T();c={G:"div",L:"ytp-share-panel",U:{id:FN(),role:"dialog","aria-labelledby":c},S:[{G:"div",L:"ytp-share-panel-inner-content",S:[{G:"div",L:"ytp-share-panel-title",U:{id:c},Z:"Share"},{G:"a",la:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",S:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",S:[CU()]},{G:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",Z:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",la:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.XN()]}]};g.OU.call(this,a,c,250);this.api=a;this.tooltip=b.Rb();this.B=[];this.F=this.ka("ytp-share-panel-inner-content");this.closeButton=this.ka("ytp-share-panel-close");
this.N(this.closeButton,"click",this.nb);g.eg(this,g.cV(this.tooltip,this.closeButton));this.D=this.ka("ytp-share-panel-include-playlist-checkbox");this.N(this.D,"click",this.oa);this.C=this.ka("ytp-share-panel-link");g.eg(this,g.cV(this.tooltip,this.C));this.wa("click",this.bN);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.aN);this.N(a,"onLoopRangeChange",this.oa);this.hide()};
uua=function(a,b){a.na()||(g.sn(a.element,"ytp-share-panel-loading"),tua(a,b))};
tua=function(a,b){vua(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={yk:e.yk},f++){e.yk=c[f];a:switch(e.yk.img||e.yk.iconId){case "facebook":var h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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({G:"a",la:["ytp-share-panel-service-button","ytp-button"],U:{href:e.yk.url,target:"_blank",title:e.yk.sname||e.yk.serviceName},S:[h]}),h.wa("click",function(m){return function(n){if(g.cP(n)){var p=m.yk.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.Ec?p:g.Jc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var y=[];for(x in r)switch(x){case "width":case "height":case "top":case "left":y.push(x+
"="+r[x]);break;case "target":case "noopener":case "noreferrer":break;default:y.push(x+"="+(r[x]?1:0))}var x=y.join(",");Vd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(x=g.Fe("A"),g.jd(x,w),x.setAttribute("target",p),r.noreferrer&&x.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),x.dispatchEvent(r),t={}):r.noreferrer?(t=ld("",t,p,x),r=g.Fc(w),t&&(g.OD&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.fd(g.gc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.od(r)+'">'),(w=t.document)&&w.write&&(w.write(g.bd(r)),w.close()))):(t=ld(w,t,p,x))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.ip(n)}}}(e)),g.eg(h,g.cV(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink;
c=new g.V({G:"a",la:["ytp-share-panel-service-button","ytp-button"],S:[{G:"span",L:"ytp-share-panel-service-button-more",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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.BU(l,a.api,m)&&a.api.xa("SHARE_CLICKED")});
g.eg(c,g.cV(a.tooltip,c.element));a.B.push(c);a.ya("buttons",a.B)};
wua=function(a){g.sn(a.element,"ytp-share-panel-loading");g.I(a.element,"ytp-share-panel-fail")};
vua=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.fg(c);a.B=[]};
ZV=function(a,b){g.V.call(this,{G:"div",L:"ytp-suggested-action"});var c=this;this.J=a;this.Ta=b;this.za=this.I=this.u=this.C=this.B=this.F=this.expanded=this.enabled=this.dismissed=!1;this.Qa=!0;this.ha=new g.F(function(){c.badge.element.style.width=""},200,this);
this.ma=new g.F(function(){XV(c);YV(c)},200,this);
this.dismissButton=new g.V({G:"button",la:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.D(this,this.dismissButton);this.D=new g.V({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",S:[{G:"label",L:"ytp-suggested-action-badge-title",Z:"{{badgeLabel}}"},this.dismissButton]});g.D(this,this.D);this.badge=new g.V({G:"button",la:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[{G:"div",L:"ytp-suggested-action-badge-icon"},this.D]});
g.D(this,this.badge);this.badge.ga(this.element);this.P=new g.mO(this.badge,250,!1,100);g.D(this,this.P);this.Y=new g.mO(this.D,250,!1,100);g.D(this,this.Y);this.ia=new g.gn(this.ZR,null,this);g.D(this,this.ia);this.X=new g.gn(this.ZJ,null,this);g.D(this,this.X);g.D(this,this.ha);g.D(this,this.ma);g.MN(this.J,this.badge.element,this.badge,!0);g.MN(this.J,this.dismissButton.element,this.dismissButton,!0);this.N(this.J,"onHideControls",function(){c.u=!1;YV(c);XV(c);c.ri()});
this.N(this.J,"onShowControls",function(){c.u=!0;YV(c);XV(c);c.ri()});
this.N(this.badge.element,"click",this.DF);this.N(this.dismissButton.element,"click",this.EF);this.N(this.J,"pageTransition",this.TM);this.N(this.J,"appresize",this.ri);this.N(this.J,"fullscreentoggled",this.ri);this.N(this.J,"cardstatechange",this.vO);this.N(this.J,"annotationvisibility",this.zS,this)};
XV=function(a){g.J(a.badge.element,"ytp-suggested-action-badge-with-controls",a.u||!a.F)};
YV=function(a,b){var c=a.I||a.u||!a.F;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ia.stop(),a.X.stop(),a.ha.stop(),a.ia.start()):(g.JN(a.D,a.expanded),g.J(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),xua(a))};
xua=function(a){a.B&&g.QN(a.J,a.badge.element,a.cw());a.C&&g.QN(a.J,a.dismissButton.element,a.cw()&&(a.I||a.u||!a.F))};
yua=function(a,b){b?a.C&&g.$T(a.J,a.dismissButton.element):a.B&&g.$T(a.J,a.badge.element)};
$V=function(a,b){ZV.call(this,a,b);var c=this;this.K=this.aa=this.fa=!1;this.N(this.J,g.hF("shopping_overlay_visible"),function(){c.ff(!0)});
this.N(this.J,g.iF("shopping_overlay_visible"),function(){c.ff(!1)});
this.N(this.J,g.hF("shopping_overlay_expanded"),function(){c.I=!0;YV(c)});
this.N(this.J,g.iF("shopping_overlay_expanded"),function(){c.I=!1;YV(c)});
this.N(this.J,"changeProductsInVideoVisibility",this.QP);this.N(this.J,"videodatachange",this.Ra);this.N(this.J,"paidcontentoverlayvisibilitychange",this.HP)};
zua=function(a,b){b=void 0===b?0:b;var c=[],d=a.timing.visible,e=a.timing.expanded;d&&c.push(new g.eF(1E3*(d.startSec+b),1E3*(d.endSec+b),{priority:7,namespace:"shopping_overlay_visible"}));e&&c.push(new g.eF(1E3*(e.startSec+b),1E3*(e.endSec+b),{priority:7,namespace:"shopping_overlay_expanded"}));g.zN(a.J,c)};
aW=function(a){g.WT(a.J,"shopping_overlay_visible");g.WT(a.J,"shopping_overlay_expanded")};
bW=function(a){g.OU.call(this,a,{G:"button",la:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{G:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.F(function(){b.hide()},5E3);
this.al=this.Em=NaN;g.D(this,this.B);this.I=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Em/1E3&&c<b.al/1E3&&b.show()};
this.N(this.J,"videodatachange",function(c,d){if("dataloaded"===c)if(b.Em=d.Em,b.al=d.al,isNaN(b.Em)||isNaN(b.al))b.C&&(g.WT(b.J,"intro"),b.J.removeEventListener(g.hF("intro"),b.I),b.J.removeEventListener(g.iF("intro"),b.F),b.J.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.J.addEventListener(g.hF("intro"),b.I);b.J.addEventListener(g.iF("intro"),b.F);b.J.addEventListener("onShowControls",b.D);var e=new g.eF(b.Em,b.al,{priority:7,namespace:"intro"});g.zN(b.J,[e]);b.C=!0}});
this.N(this.element,"click",function(){b.J.seekTo(b.al/1E3)});
this.hide()};
cW=function(a,b){g.V.call(this,{G:"button",la:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Z:"{{icon}}"});this.J=a;this.wa("click",this.onClick);this.N(a,"airplayactivechange",this.oa);this.N(a,"airplayavailabilitychange",this.oa);this.oa();g.eg(this,g.cV(b.Rb(),this.element))};
dW=function(a,b){g.V.call(this,{G:"button",la:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{G:"div",L:"ytp-autonav-toggle-button-container",S:[{G:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.u=!1;this.isChecked=!0;g.ZT(a,this.element,this,113681);this.N(a,"presentingplayerstatechange",this.er);this.wa("click",this.onClick);this.tooltip=b.Rb();g.eg(this,g.cV(b.Rb(),this.element));
this.er()};
Aua=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.ya("title",b);a.ya("label",b);EV(a.tooltip)};
g.fW=function(a){g.V.call(this,{G:"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.qD(a.T());g.eW(this,g.cG(a).getPlayerSize().height)};
g.eW=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){}}}};
gW=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-chapter-container",S:[{G:"button",la:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{G:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{G:"div",L:"ytp-chapter-title-content",Z:"{{title}}"},{G:"div",L:"ytp-chapter-title-chevron",S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"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.I=d;this.X=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ka("ytp-chapter-container");this.u=this.ka("ytp-chapter-title");this.updateVideoData("newdata",this.J.getVideoData());this.N(a,"videodatachange",this.updateVideoData);this.N(this.D,"click",this.onClick);a.T().ba("html5_ux_control_flexbox_killswitch")&&this.N(a,"resize",this.Y);this.N(a,"onVideoProgress",this.sc);this.N(a,"SEEK_TO",this.sc)};
Bua=function(a,b,c,d,e){var f=b.jv/b.rows,h=Math.min(c/(b.kv/b.columns),d/f),l=b.kv*h,m=b.jv*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.hW=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",S:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ka("ytp-storyboard-framepreview-img");this.oh=null;this.B=NaN;this.events=new g.tR(this);this.u=new g.mO(this,100);g.D(this,this.events);g.D(this,this.u);this.N(this.api,"presentingplayerstatechange",this.lc)};
iW=function(a,b){var c=!!a.oh;a.oh=b;a.oh?(c||(a.events.N(a.api,"videodatachange",function(){iW(a,a.api.tg())}),a.events.N(a.api,"progresssync",a.ie),a.events.N(a.api,"appresize",a.C)),a.B=NaN,jW(a),a.u.show(200)):(c&&g.ut(a.events),a.u.hide(),a.u.stop())};
jW=function(a){var b=a.oh,c=a.api.getCurrentTime(),d=g.cG(a.api).getPlayerSize(),e=jI(b,d.width);c=oI(b,e,c);c!==a.B&&(a.B=c,lI(b,c,d.width),b=b.pm(c,d.width),Bua(a.D,b,d.width,d.height))};
kW=function(a,b){g.V.call(this,{G:"button",la:["ytp-fullerscreen-edu-button","ytp-button"],S:[{G:"div",la:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{G:"div",la:["ytp-fullerscreen-edu-chevron"],S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"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.mO(this,250,void 0,100);this.D=this.B=!1;g.ZT(a,this.element,this,61214);this.F=b;g.D(this,this.C);this.N(a,
"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.wa("click",this.onClick);this.oa()};
g.lW=function(a,b){g.V.call(this,{G:"button",la:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.cV(this.C.Rb(),this.element);this.B=new g.F(this.DJ,2E3,this);g.D(this,this.B);this.N(a,"fullscreentoggled",this.WE);this.N(a,"presentingplayerstatechange",this.oa);this.wa("click",this.onClick);if(nt()){var c=g.cG(this.J);this.N(c,Xea(),this.Fz);this.N(c,qt(document),this.jk)}a.T().za||a.T().ba("embeds_enable_mobile_custom_controls")||
this.disable();this.oa();this.WE(a.isFullscreen())};
Cua=function(a,b){String(b).includes("fullscreen error")?g.Is(b):g.Hs(b);a.Fz()};
mW=function(a,b){g.V.call(this,{G:"button",la:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[Yna()]});this.J=a;this.visible=!1;this.wa("click",this.onClick);this.N(a,"fullscreentoggled",this.oa);this.ya("title",g.EU(a,"Miniplayer","i"));g.eg(this,g.cV(b.Rb(),this.element));g.ZT(a,this.element,this,62946);this.oa()};
nW=function(a,b,c){g.V.call(this,{G:"button",la:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.F(this.C,400,this);this.tooltip=b.Rb();hV(this.tooltip);g.D(this,this.B);this.wa("click",function(){PU(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.oa(!1)});
this.N(a,"videodatachange",this.Ra);this.oa(!0);g.eg(this,g.cV(this.tooltip,this.element))};
oW=function(a){g.OU.call(this,a,{G:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{G:"div",L:"ytp-multicam-menu-header",S:[{G:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{G:"button",la:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.XN()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.tR(this);this.items=this.ka("ytp-multicam-menu-items");this.B=[];g.D(this,this.C);a=this.ka("ytp-multicam-menu-close");this.N(a,"click",this.nb);this.hide()};
pW=function(){g.C.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.gn(this.u,null,this);g.D(this,this.delay)};
Dua=function(a,b){if("path"===b.G)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=Dua(a,d)))return d}};
Gua=function(a,b,c){c=Dua(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=FN();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=Eua(e),m=Eua(c);qW(a,function(n){d.setAttribute("d",Fua(l,m,n))},200)};
qW=function(a,b,c){a.B=b;a.startTime=(0,g.N)();a.duration=c;a.u()};
Eua=function(a){var b=[];a=a.match(Hua);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};
Fua=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};
rW=function(a,b){g.V.call(this,{G:"button",la:["ytp-mute-button","ytp-button"],U:a.T().X?{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.Y=NaN;this.aa=this.I=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.J.T();this.ya("icon",dO());this.tooltip=b.Rb();this.u=new g.GN({G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"defs",S:[{G:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{G:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"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"}}]},{G:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{G:"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"}}]}]},{G:"path",wb:!0,la:["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"}},{G:"path",wb:!0,la:["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.D(this,this.u);this.I=this.u.ka("ytp-svg-volume-animation-speaker");this.aa=this.I.getAttribute("d");this.C=g.re("ytp-svg-volume-animation-mover",this.u.element);
this.B=g.re("ytp-svg-volume-animation-hider",this.u.element);this.fa=new pW;g.D(this,this.fa);this.X=new pW;g.D(this,this.X);this.wa("click",this.yP);this.N(a,"appresize",this.XE);this.N(a,"onVolumeChange",this.PM);var d=null;if(c.X)g.eg(this,g.cV(b.Rb(),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.OU(a,{G:"span",la:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{G:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.F},Z:e[2]},e[4]]},100,!0);g.D(this,d);d.hide();d.subscribe("show",function(f){b.hq(d,f)});
g.BP(a,d.element,4)}this.message=d;g.ZT(a,this.element,this,28662);this.XE(g.cG(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Kua=function(a,b){a.Y=b;var c=a.aa;b&&(c+=Fua(Iua,Jua,b));a.I.setAttribute("d",c)};
Lua=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=dO():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.ya("icon",e),a.K=e)};
sW=function(a,b){g.V.call(this,{G:"button",la:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[Yna()]});this.J=a;this.ya("title","Picture in Picture");this.wa("click",this.onClick);g.eg(this,g.cV(b.Rb(),this.element))};
g.tW=function(a,b){g.V.call(this,{G:"button",la:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Z:"{{icon}}"});this.J=a;this.u=null;this.transition=new pW;this.tooltip=b.Rb();g.D(this,this.transition);this.N(a,"fullscreentoggled",this.Ra);this.N(a,"presentingplayerstatechange",this.B);this.N(a,"videodatachange",this.Ra);Mua(this,g.uK(a));this.wa("click",this.C,this);g.eg(this,g.cV(b.Rb(),this.element))};
Nua=function(a){switch(a){case 1:return Zna();case 2:return Xna();case 3:return g.bO();case 4:return aoa();default:return null}};
Mua=function(a,b){var c=g.eJ(a.J.getVideoData()),d=!1;if(g.GM(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.EU(a.J,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.EU(a.J,"Play","k");break;case 4:c="Stop live playback"}3===e?a.update({title:c,label:null,icon:Nua(e)}):(a.update({title:c,label:c}),(c=Nua(e))&&a.u&&3!==a.u?Gua(a.transition,a.element,c):a.ya("icon",c));EV(a.tooltip);a.u=e}};
g.uW=function(a,b){return gU(b)?(b.fetch=0,new g.fU(a,b)):new g.rI(a,b)};
g.wW=function(a,b,c){g.V.call(this,{G:"a",la:[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?$N():$na()]});var d=this;this.J=a;this.u=c;this.playlist=this.videoData=null;this.I=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Rb();this.N(a,"fullscreentoggled",this.Ra);
this.N(a,"videodatachange",this.Ra);this.N(a,"onPlaylistUpdate",this.Ra);this.u||this.N(a,"appresize",this.pz);this.N(a,"mdxpreviousnextchange",function(){vW(d);d.pz()});
this.Ra()};
Oua=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Ra,a)};
Pua=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
Qua=function(a){var b=g.MT(g.HT(a.J));return b?a.u?b.hasNext():b.Ti():!1};
vW=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.NT(a.J)&&(!a.u||c);var d=a.u&&g.XT(a.J),e=Qua(a),f=a.u&&5===a.J.getPresentingPlayerType(),h=g.EU(a.J,"Next","SHIFT+n"),l=g.EU(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.Ma(a.u?kta(a.playlist):lta(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.bP(m.lengthSeconds):null;b.preview=m.ne("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.uW(a.J.T(),a.videoData.suggestions[0]),b.url=l.Sk(),b.text=l.title,b.duration=l instanceof g.rI?g.bP(l.lengthSeconds):null,b.preview=l.ne("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.cV(a.tooltip,a.element),a.F=a.wa("click",
a.onClick,a)):a.B&&(a.B(),a.B=null,a.Mb(a.F),a.F=null);EV(a.tooltip)};
xW=function(){g.V.call(this,{G:"div",L:"ytp-chapter-hover-container",S:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",S:[{G:"div",la:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.ka("ytp-ad-progress-list");this.D=this.ka("ytp-load-progress");this.F=this.ka("ytp-play-progress");this.B=this.ka("ytp-hover-progress");
this.u=this.ka("ytp-chapter-hover-container")};
yW=function(a,b){g.ug(a.u,"width",b)};
gX=function(a,b){g.ug(a.u,"margin-right",b+"px")};
Rua=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
Sua=function(){g.V.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.hX=function(a,b){g.KN.call(this,{G:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{G:"div",la:["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:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},
{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",S:[{G:"div",la:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.ce=!1;this.C=this.Hg=
0;this.ha=1;this.Ig=this.P=0;this.D=null;this.X=this.ub=0;this.Ne=this.ka("ytp-marker-crenellation-list");this.aa={};this.kb={};this.clipEnd=Infinity;this.Ga=this.ka("ytp-clip-end");this.Zb=new g.zt(this.Ga,!0);this.ke=this.ka("ytp-clip-end-exclude");this.Kg=this.ka("ytp-clip-start-exclude");this.clipStart=0;this.Qa=this.ka("ytp-clip-start");this.kc=new g.zt(this.Qa,!0);this.K=this.ma=0;this.nd=this.ka("ytp-progress-bar");this.Ta=void 0;this.Cc={};this.Nb=this.ka("ytp-chapters-container");this.ng=
this.ka("ytp-timed-markers-container");this.Ea=[];this.Aa=[];this.ia=-1;this.Dc=g.P(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.za=this.Y=0;this.I=null;this.Jg=this.ka("ytp-scrubber-button");this.Lg=this.ka("ytp-scrubber-container");this.Ya=new g.ge;this.Oe=new Rua;this.u=new lP(0,0);this.F=null;this.B=this.fd=!1;this.sf=null;this.tooltip=b.Rb();g.eg(this,g.cV(this.tooltip,this.Ga));g.D(this,this.Zb);this.Zb.subscribe("hoverstart",this.HF,this);this.Zb.subscribe("hoverend",
this.GF,this);this.N(this.Ga,"click",this.Tv);g.eg(this,g.cV(this.tooltip,this.Qa));g.D(this,this.kc);this.kc.subscribe("hoverstart",this.HF,this);this.kc.subscribe("hoverend",this.GF,this);this.N(this.Qa,"click",this.Tv);Tua(this);this.N(a,"resize",this.Va);this.N(a,"presentingplayerstatechange",this.WM);this.N(a,"videodatachange",this.YE);this.N(a,"videoplayerreset",this.MK);this.N(a,"cuerangesadded",this.jI);this.N(a,"cuerangesremoved",this.HR);this.N(a,"cuerangemarkersupdated",this.jI);this.N(a,
"onLoopRangeChange",this.hI);this.updateVideoData(a.getVideoData(),!0);this.hI(a.getLoopRange())};
Tua=function(a){if(0===a.Ea.length){var b=new xW;a.Ea.push(b);g.D(a,b);b.ga(a.Nb,0)}for(;1<a.Ea.length;)a.Ea.pop().dispose();yW(a.Ea[0],"100%");a.Ea[0].startTime=0;a.Ea[0].title=""};
Uua=function(a){for(;a.Aa.length;)a.Aa.pop().dispose()};
Wua=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=Vua(a,d.timeRangeStartMillis/(1E3*a.u.u),iX(a));g.ug(d.element,"transform","translateX("+e+"px)")}};
Xua=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;if((h=e.title)&&h.simpleText)h=h.simpleText;else{var l="";if(h&&h.runs)for(var m=0;m<h.runs.length;m++)h.runs[m].text&&(l+=h.runs[m].text);h=l}f.title=h;h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Ea[c].startTime=0,a.Ea[c].title="",a.Ea[c].onActiveCommand=
e.onActiveCommand,c++);a.Ea.length<=c&&(f=new xW,a.Ea.push(f),g.D(a,f),f.ga(a.Nb,a.Nb.children.length));a.Ea[c].startTime=e.startTime;a.Ea[c].title=e.title?e.title:"";a.Ea[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Ea.length;)a.Ea.pop().dispose();g.jX(a);kX(a)};
g.jX=function(a){a.Y=a.Ea.length-1;a.za=0;Yua(a,!0)&&Yua(a,!1);for(var b=0,c=0;c<a.Ea.length;c++)if(0===a.Ea[c].width){if(c===a.Ea.length-1)for(var d=a.Ea.length-1;0<=d;d--)if(0<a.Ea[d].width){gX(a.Ea[d],0);yW(a.Ea[d],Math.floor(a.Ea[d].width)+"px");break}yW(a.Ea[c],"0")}else c===a.Ea.length-1?yW(a.Ea[c],Math.floor(a.Ea[c].width+b)+"px"):(b=a.Ea[c].width+b,d=Math.round(b),b-=d,yW(a.Ea[c],d+"px"))};
Yua=function(a,b){var c=0,d=!1,e=a.Ea.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.Y,l=0===a.za?3:h*a.za,m=g.q(a.Ea),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Ea[c].startTime;c<e-1&&(m=a.Ea[c+1].startTime-a.Ea[c].startTime,gX(a.Ea[c],a.B?3:2));g.J(a.Ea[c].u,"ytp-exp-chapter-hover-container",1<a.Ea.length);n=(0===f?0:m/f*h)+a.Ea[c].width;if(n>l)a.Ea[c].width=n;else{a.Ea[c].width=0;var p=a,r=c,t=p.Ea[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Ea.length-1&&(p.Ea[r+1].width+=n);gX(p.Ea[r],0);b&&(a.Y--,m/f>a.za&&(a.za=m/f),d=!0)}c++}}return d};
kX=function(a){if(a.C){var b=a.api.getProgressState(),c=new lP(b.seekableStart,b.seekableEnd),d=nP(c,b.loaded,0);b=nP(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;lX(a,b,d);e&&mX(a);Zua(a)}};
oX=function(a,b){var c=mP(a.u,b.C);if(1<a.Ea.length){c=nX(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Ea[e].width&&(d+=a.Ea[e].width,d+=a.B?3:2);c=(a.Ea[c].startTime+(b.D-d)/a.Ea[c].width*((c===a.Ea.length-1?1E3*a.u.u:a.Ea[c+1].startTime)-a.Ea[c].startTime))/1E3}return c};
$ua=function(a,b,c){return c>=a.Ea.length?!1:Math.abs(b-a.Ea[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.Y)<a.Dc};
ava=function(a,b,c,d){b=g.ce(b,0,a.B?60:40);a.P=b;var e=a.ha,f=Math.max(a.u.getLength()/a.C,1);a.ha=b/(a.B?60:40)*(f-1)+1;b=a.C*a.ha;a.X=g.ce(d*b-c,0,b-a.C);e!==a.ha&&mX(a)};
mX=function(a){var b=iX(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Qaa(a.Ne),f=0;if(a.P>.2*(a.B?60:40)&&1===a.Ea.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.Ne.appendChild(m));f++;0===h%60?g.pn(m,"ytp-60m-progress"):0===h%30?g.pn(m,"ytp-30m-progress"):0===h%15?g.pn(m,"ytp-15m-progress"):g.pn(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.fd?a.u.u:0;a.update({boundTimeLeft:g.bP(mP(a.u,c)-b),boundTimeRight:g.bP(mP(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.V("height-change",a.P);a.Jg.style.height=a.P+(a.B?20:13)+"px";e=g.q(Object.keys(a.aa));for(f=e.next();!f.done;f=e.next())bva(a,f.value);pX(a);lX(a,a.K,a.ma)};
iX=function(a){var b=a.Ya.x,c=a.C*a.ha;b=g.ce(b,0,a.C);a.Oe.update(b,a.C,-a.X,-(c-a.X-a.C));return a.Oe};
lX=function(a,b,c){a.K=b;a.ma=c;var d=iX(a),e=a.u.u,f=mP(a.u,a.K),h=g.tL("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.bP(f,!0),DURATION:g.bP(e,!0)}),l=IV(a.Ea,1E3*f);l=a.Ea[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.F&&2!==a.api.getPresentingPlayerType()&&(e=a.F.startTimeMs/1E3,f=a.F.endTimeMs/1E3);e=nP(a.u,e,0);h=nP(a.u,f,1);f=g.ce(b,e,h);c=g.ce(c,e,h);b=Vua(a,b,d);g.ug(a.Lg,"transform","translateX("+
b+"px)");qX(a,d,e,f,"PLAY_PROGRESS");qX(a,d,e,c,"LOAD_PROGRESS")};
qX=function(a,b,c,d,e){var f=a.Ea.length,h=b.u-a.Y*(a.B?3:2),l=c*h;c=nX(a,l);var m=d*h;h=nX(a,m);"HOVER_PROGRESS"===e&&(h=nX(a,b.u*d,!0),m=b.u*d-cva(a,b.u*d)*(a.B?3:2));b=Math.max(l-dva(a,c),0);for(d=c;d<f;d++)a.Ea[d].Pa(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Ea[f].width,rX(a,a.Ea[f].Pa(e),f===c?d-b:d,d);f=a.Ea[h].width;m=g.ce(m-dva(a,h),0,f);c===h&&(m-=b);rX(a,a.Ea[h].Pa(e),m,f);m=a.Ea.length;for(h+=1;h<m;h++)rX(a,a.Ea[h].Pa(e),0,a.Ea[h].width);for(h=0;h<c;h++)rX(a,a.Ea[h].Pa(e),0,a.Ea[h].width)};
dva=function(a,b){if(b>=a.Ea.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Ea[d].width,d++;return c};
rX=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.ug(b,"transform","scalex("+(d?c/d:0)+")")};
nX=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=cva(a,b)*(a.B?3:2));c=g.q(a.Ea);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.Ea.length?d-1:d};
Vua=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Ea),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.Y)+(a.B?3:2)*(0>e?0:e)+c.B};
cva=function(a,b){for(var c=a.Ea.length,d=0,e=g.q(a.Ea),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};
pX=function(a){var b=!!a.F&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.F?(c=a.F.startTimeMs/1E3,d=a.F.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);g.J(a.element,"ytp-loop-range-enabled",b);g.J(a.element,"ytp-clip-start-enabled",e);g.J(a.element,"ytp-clip-end-enabled",f);b=e?nP(a.u,c,0):0;d=f?nP(a.u,d,1):1;a.Qa.style.left=Math.round(1E3*b)/10+"%";a.Ga.style.left=Math.round(1E3*d)/10+"%";a.Kg.style.width=Math.round(1E3*b)/10+"%";a.ke.style.left=Math.round(1E3*d)/10+
"%";a.ke.style.width=Math.round(1E3*(1-d))/10+"%"};
Zua=function(a){var b=iX(a);qX(a,b,a.K,Math.max(b.C,a.K),"HOVER_PROGRESS");for(var c=nX(a,b.u*a.K,!0),d=nX(a,b.D,!0),e=c;e<=d;e++)g.J(a.Ea[e].B,"ytp-hover-progress-light",b.C>a.K);g.J(a.Jg,"ytp-scrubber-button-hover",c===d&&1<a.Ea.length)};
bva=function(a,b){var c=a.aa[b],d=a.kb[b],e=iX(a),f=nP(a.u,c.start/1E3,0),h=Rha(c,a.B)/e.width;var l=nP(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.ce(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";rX(a,d,g.ce((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
eva=function(a,b){var c=b.getId();a.aa[c]===b&&(g.Je(a.kb[c]),delete a.aa[c],delete a.kb[c])};
fva=function(a,b){b?a.I||(a.element.removeAttribute("aria-disabled"),a.I=new g.zt(a.nd,!0),a.I.subscribe("hovermove",a.TP,a),a.I.subscribe("hoverend",a.SP,a),a.I.subscribe("dragstart",a.RP,a),a.I.subscribe("dragmove",a.VP,a),a.I.subscribe("dragend",a.UP,a),a.sf=a.wa("keydown",a.XM)):a.I&&(a.element.setAttribute("aria-disabled","true"),a.Mb(a.sf),a.I.cancel(),a.I.dispose(),a.I=null)};
g.gva=function(a){var b=2*a.C*g.GD();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
sX=function(a,b,c){g.V.call(this,{G:"button",L:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.Xa=c;this.u=null;this.N(a,"onMdxReceiversChange",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.N(a,"appresize",this.oa);this.oa();this.wa("click",this.B,this);g.eg(this,g.cV(b.Rb(),this.element))};
tX=function(a,b,c){g.V.call(this,{G:"button",la:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":FN(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.cO()]});this.J=a;this.Xa=c;this.B=!0;this.wa("click",this.C);this.N(a,"onPlaybackQualityChange",this.updateBadge);this.N(a,"videodatachange",this.updateBadge);this.N(a,"webglsettingschanged",this.updateBadge);this.N(a,"appresize",this.u);g.eg(this,g.cV(b.Rb(),this.element));g.ZT(this.J,this.element,this,
28663);this.updateBadge();this.u(g.cG(a).getPlayerSize())};
uX=function(a,b){a.B=!!b;a.u(g.cG(a.J).getPlayerSize())};
vX=function(a,b){g.tV.call(this,"Annotations",6);this.J=a;this.Xa=b;this.u=!1;this.N(a,"videodatachange",this.oa);this.N(a,"onApiChange",this.oa);this.subscribe("select",this.B,this);this.oa()};
g.wX=function(a,b,c,d,e,f,h){g.lV.call(this,g.mV({"aria-haspopup":"true"}),b,a);this.Xa=d;this.F=!1;this.B=null;this.options={};this.C=new g.pV(c,void 0,a,e,f,h);g.D(this,this.C);this.wa("keydown",this.ZM);this.wa("click",this.open)};
hva=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.xX=function(a,b){g.qV(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.kV(l.options[f],l.Th(f,!0)),delete a.options[f]):h=a.ix(f,-e,l);c[f]=h;a.C.Wb(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};
yX=function(a,b){g.wX.call(this,"Audio track",3,a,b);this.J=a;this.tracks={};this.u=new g.V({G:"div",S:[{G:"span",Z:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.D(this,this.u);g.kV(this,this.u);this.N(a,"videodatachange",this.oa);this.N(a,"onPlaybackAudioChange",this.oa);this.oa()};
zX=function(a,b){g.tV.call(this,"Autoplay",7);this.J=a;this.Xa=b;this.u=!1;this.B=[];this.N(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);g.ZT(a,this.element,this,113682);this.C()};
AX=function(a,b,c,d){d=new g.V({G:"div",la:["ytp-linked-account-popup-button"],Z:d,U:{role:"button",tabindex:"0"}});b=new g.V({G:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{G:"div",L:"ytp-linked-account-popup-title",Z:b},{G:"div",L:"ytp-linked-account-popup-description",Z:c},{G:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.OU.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.D(this,this.dialog);
d.wa("click",function(){e.nb()});
g.D(this,d);g.BP(this.J,this.element,4);this.hide()};
BX=function(a,b){g.lV.call(this,g.mV({"aria-haspopup":"true"}),1);this.J=a;this.Xa=b;this.B=this.u=!1;this.N(this.J,"videodatachange",this.D);this.wa("click",this.onClick);this.D()};
CX=function(a){return a?g.T(a):""};
DX=function(a,b){g.wX.call(this,"Quality",2,a,b);this.J=a;this.D={};this.u="unknown";g.I(this.C.element,"ytp-quality-menu");this.N(a,"videodatachange",this.gr);this.N(a,"videoplayerreset",this.gr);this.N(a,"onPlaybackQualityChange",this.ZE);this.gr()};
iva=function(a,b,c){a=a.D[b];var d=g.Yw[b];c={G:"span",la: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({G:"sup",L:"ytp-swatch-color",Z:e}));return c};
EX=function(a,b,c,d,e,f,h){g.V.call(this,{G:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-slider",S:[{G:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.P=f;this.range=this.maximumValue-this.minimumValue;this.aa=this.ka("ytp-slider-section");this.B=this.ka("ytp-slider");this.X=this.ka("ytp-slider-handle");
this.D=new g.zt(this.B,!0);this.u=h?h:c;g.D(this,this.D);this.D.subscribe("dragmove",this.dN,this);this.N(this.element,"keydown",this.eN);this.N(this.element,"wheel",this.cN);this.init()};
GX=function(a){EX.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.fa=laa(this.Y,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);FX(this);this.N(this.J,"onPlaybackRateChange",this.ha)};
FX=function(a){a.C.textContent=HX(a,a.u)+"x"};
HX=function(a,b){var c=Number(g.ce(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))};
IX=function(a){g.KN.call(this,{G:"div",L:"ytp-speedslider-component"});this.u=new GX(a);g.D(this,this.u);this.element.appendChild(this.u.element)};
jva=function(a){var b=new IX(a);oV.call(this,a,b,"Custom");g.D(this,b)};
JX=function(a,b){var c=new jva(a);g.wX.call(this,"Playback speed",5,a,b,"Custom",function(){g.vV(b,c)});
g.D(this,c);this.J=a;this.D=this.u=this.K=null;this.I=this.J.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.oa);this.oa()};
kva=function(a,b){var c=KX(b);a.options[c]?a.Mc(c):b===a.D&&a.u&&(a.Mc(a.u),a.Gc(b.toString()))};
mva=function(a){g.xX(a,a.I.map(KX));a.u=null;a.D=null;var b=a.J.getPlaybackRate();a.I.includes(b)||(lva(a,b),g.wX.prototype.af.call(a,a.u))};
lva=function(a,b){a.D=b;a.u=g.tL("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(KX);c.unshift(a.u);g.xX(a,c)};
KX=function(a){return a.toString()};
LX=function(a,b,c,d){var e=new g.pV(b,void 0,"Video Override");g.wX.call(this,d.text||"",a,b,c,"Video Override",function(){g.vV(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.Db(a,this.getKey,this);this.I=e;g.D(this,this.I);b=new g.lV({G:"div",L:"ytp-menuitemtitle",Z:"Allow for a different caption style if specified by the video."},0);g.D(this,b);this.I.Wb(b,!0);this.D=new g.lV({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Z:"On"}]},-1);g.D(this,this.D);this.I.Wb(this.D,!0);this.N(this.D.element,
"click",function(){nva(f,!0)});
this.u=new g.lV({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Z:"Off"}]},-2);g.D(this,this.u);this.I.Wb(this.u,!0);this.N(this.u.element,"click",function(){nva(f,!1)});
g.xX(this,g.Oc(a,this.getKey))};
nva=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.Xa.fg()};
MX=function(a,b){g.pV.call(this,a,void 0,"Options");var c=this;this.kl={};for(var d=0;d<g.KV.length;d++){var e=g.KV[d],f=new LX(-d,a,b,e);g.D(this,f);f.subscribe("settingChange",this.ag,this);this.kl[e.option.toString()]=f;this.Wb(f,!0)}d=new g.lV(g.mV(),-g.KV.length,"Reset");g.D(this,d);d.wa("click",function(){c.ag("reset",!0)});
this.Wb(d,!0)};
NX=function(a,b){g.wX.call(this,"Auto-translate",0,a,b);this.languages={}};
ova=function(a,b){a.languages=g.Db(b,a.getKey,a);g.xX(a,g.Oc(b,a.getKey))};
OX=function(a,b){var c=new MX(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.ND(a.T())&&(e={G:"div",L:"ytp-panel-footer-content",S:[{G:"span",Z:d[0]},{G:"a",L:"ytp-panel-footer-content-link",Z:"Settings",U:{href:"/account_playback"}},{G:"span",Z:d[1]}]});g.wX.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.vV(b,c)},e);
var f=this;this.J=a;this.Xa=b;this.tracks={};this.I=new g.F(function(){pva(f,!1)},3E3);
g.D(this,this.I);this.K=new g.V({G:"div",S:[{G:"span",Z:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.D(this,this.K);g.kV(this,this.K);this.u=new NX(a,b);g.D(this,this.u);this.u.subscribe("select",this.jN,this);this.D=c;g.D(this,this.D);this.D.subscribe("settingChange",this.ag,this);b.subscribe("show",this.yQ,this);this.N(a,"videodatachange",this.oa);this.N(a,"onApiChange",this.oa);this.N(a,"onCaptionsTrackListChanged",this.oa);this.N(a,"captionschanged",this.oa);this.oa()};
pva=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
PX=function(a){g.xV.call(this,a,"ytp-settings-menu");var b=this;this.sd=new g.pV(this.J);this.cz=this.settingsButton=null;this.Yd=!1;g.D(this,this.sd);this.hide();g.vV(this,this.sd);g.ZT(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.ff(c)})};
qva=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
QX=function(a,b){g.V.call(this,{G:"button",la:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new pW;this.tooltip=b.Rb();g.D(this,this.transition);this.N(a,"sizestylechange",this.oa);this.N(a,"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();this.wa("click",this.onClick);g.eg(this,g.cV(this.tooltip,this.element))};
RX=function(a,b){g.V.call(this,{G:"button",la:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.EU(a,"Subtitles/closed captions","c")},S:[Sna()]});this.J=a;this.N(a,"videodatachange",this.oa);this.N(a,"appresize",this.oa);this.N(a,"promotooltipacceptbuttonclicked",this.u);this.N(a,"onApiChange",this.oa);this.N(a,"onCaptionsTrackListChanged",this.oa);this.N(a,"captionschanged",this.oa);this.oa();this.wa("click",this.onClick);g.eg(this,g.cV(b.Rb(),this.element))};
g.SX=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",la:["ytp-time-display","notranslate"],S:[{G:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",Z:" / "},{G:"span",L:"ytp-time-duration",Z:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({G:"button",la:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Z:"{{content}}"});this.u=null;this.B=!1;this.I=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.Gc("Live");g.D(this,this.liveBadge);
this.liveBadge.ga(this.element);this.tooltip=b.Rb();this.wa("click",this.onClick);this.N(a,"presentingplayerstatechange",this.sc);this.N(a,"appresize",this.sc);this.N(a,"videodatachange",this.Ra);(a=a.getVideoData())&&this.updateVideoData(a);this.sc()};
VX=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-volume-slider",S:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.K=c;this.Nh=!1;this.Y=this.volume=0;this.P=null;this.D=this.u=this.C=!1;this.B=b;this.K=c;this.F=b.ge();this.X=this.ka("ytp-volume-slider");this.aa=this.ka("ytp-volume-slider-handle");
this.I=new g.zt(this.X,!0);g.D(this,this.I);this.I.subscribe("dragstart",this.CQ,this);this.I.subscribe("dragmove",this.nN,this);this.I.subscribe("dragend",this.BQ,this);this.N(a,"onVolumeChange",this.pN);this.N(a,"appresize",this.cF);this.N(a,"fullscreentoggled",this.jk);this.N(a,"onShowControls",this.pC);this.N(a,"onHideControls",this.pC);this.N(this.element,"keydown",this.oN);this.N(this.element,"focus",function(){TX(d,d.u,d.C,!0,d.B.Nh())});
this.N(this.element,"blur",function(){TX(d,d.u,d.C,!1,d.B.Nh())});
this.cF(g.cG(a).getPlayerSize());UX(this,a.getVolume(),a.isMuted())};
UX=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.ya("valuenow",d);a.ya("valuetext",e);a.aa.style.left=(a.F?60:40)*c+"px";a.volume=b};
rva=function(a,b){g.J(a.element,"ytp-volume-control-hover",b);TX(a,b,a.C,a.D,a.B.Nh())};
TX=function(a,b,c,d,e){var f=a.u||a.C||a.D||a.Nh;a.u=b;a.C=c;a.D=d;a.Nh=e;b=a.u||a.C||a.D||a.Nh;f!==b&&(b?a.P=a.N(a.element,"wheel",a.mN):(a.Mb(a.P),a.P=null),g.J(a.K,"ytp-volume-slider-active",b))};
g.WX=function(a,b){var c=a.T(),d=g.DD(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.qD(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{G:"a",la:e,U:{href:"{{url}}",target:c.F,title:g.tL("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},S:[f?{G:"svg",U:{viewBox:"0 0 77 20"},S:[{G:"g",U:{fill:"none"},S:[{G:"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"}},{G:"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"}}]}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{G:"path",wb:!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.ZT(a,this.element,this,28666);this.wa("click",this.onClick);this.N(a,"videodatachange",this.Ra);this.N(a,"onLoopRangeChange",this.Ra);this.Ra();g.eg(this,g.cV(b.Rb(),this.element))};
YX=function(a,b,c){g.tR.call(this);var d=this;this.J=a;this.B=b;this.Nc=c;this.za=NaN;this.ha=this.ma=null;this.u=new PX(this.J);this.nd=new g.hX(this.J,this.B);this.muteButton=null;this.mi=new g.SX(this.J,this.B);this.D=this.F=this.P=this.R=null;this.Y=new sW(this.J,this.B);this.ia=new g.lW(this.J,this.B);this.Xd=new g.gn(this.ur,null,this);this.K=null;c=a.T();this.Nc.subscribe("autohideupdate",this.Yh,this);var e=!g.uK(a).isCued(),f=this.J.T().ba("html5_player_bottom_linear_gradient");f||!g.qD(c)&&
!g.Q(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({G:"div",L:"ytp-gradient-bottom-container",S:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.V({G:"div",L:"ytp-gradient-bottom"}):this.ha=f=new g.fW(a);g.D(this,f);g.BP(a,f.element,8);this.fa=new g.mO(f,250,e,100);g.D(this,this.fa);this.C=new g.V({G:"div",L:"ytp-chrome-bottom",S:[{G:"div",L:"ytp-chrome-controls"}]});g.D(this,this.C);g.BP(a,this.C.element,8);this.aa=new g.mO(this.C,250,
e,100);g.D(this,this.aa);this.X=this.C.element.children[0];g.eg(this.u,function(){a.Qk()===d.u&&(a.P=null)});
g.D(this,this.u);a.P=this.u;g.BP(a,this.u.element,6);this.u.subscribe("show",function(m){var n=d.B.Rb(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:XX(n);n.I.show();break;default:n.I.show()}else n.I.hide();n.K=p;b.uA(d.u,m)});
g.D(this,this.nd);this.nd.ga(this.C.element,0);e=new g.hW(a);g.D(this,e);g.BP(a,e.element,4);f=new g.GN({G:"div",L:"ytp-left-controls"});g.D(this,f);f.ga(this.X);e=new g.wW(a,b,!1);g.D(this,e);e.ga(f.element);c.aa||(e=new g.tW(a,b),g.D(this,e),e.ga(f.element));e=new g.wW(a,b,!0);g.D(this,e);e.ga(f.element);e=new g.V({G:"span",L:"ytp-volume-area"});g.D(this,e);e.ga(f.element);if(!c.Ya&&(this.muteButton=new rW(a,b),g.D(this,this.muteButton),this.muteButton.ga(e.element),c.X)){var h=new VX(a,b,this.C.element);
g.D(this,h);h.ga(e.element);e=new g.zt(e.element);g.D(this,e);e.subscribe("hoverstart",function(){rva(h,!0)});
e=new g.zt(f.element);g.D(this,e);e.subscribe("hoverend",function(){rva(h,!1)})}g.D(this,this.mi);
this.mi.ga(f.element);e=new g.GN({G:"div",L:"ytp-right-controls"});g.D(this,e);this.R=new gW(a,b,this.nd,f.element,e.element);g.D(this,this.R);a.T().ba("html5_ux_control_flexbox_killswitch")?this.R.ga(this.X):this.R.ga(f.element);e.ga(this.X);a.T().Zb&&g.Q(c.experiments,"web_player_move_autonav_toggle")&&(f=new dW(a,b),g.D(this,f),f.ga(e.element));g.Q(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&FD(c)&&(this.P=new kW(a,b),g.D(this,this.P),this.P.ga(e.element));f=new RX(a,b);
g.D(this,f);f.ga(e.element);f=new tX(a,b,this.u);g.D(this,f);qva(this.u,f);f.ga(e.element);var l=new oW(a);g.D(this,l);g.BP(a,l.element,5);l.subscribe("show",function(m){b.mm(l,m)});
f=new nW(a,b,l);g.D(this,f);f.ga(e.element);f=a.getVideoData();if(c.Fn||f.qc&&"1"===c.controlsType)this.F=new g.WX(a,b),g.D(this,this.F),this.F.ga(e.element);c.showMiniplayerButton&&!g.Q(a.T().experiments,"web_player_pip")&&(this.D=new mW(a,b),g.D(this,this.D),this.D.ga(e.element));g.D(this,this.Y);this.Y.ga(e.element);f.zA||this.Y.hide();c.ng||(f=new QX(a,b),g.D(this,f),f.ga(e.element));c.Ig&&(f=new sX(a,b,this.u),g.D(this,f),f.ga(e.element));c.Cn&&(c=new cW(a,b),g.D(this,c),c.ga(e.element));g.D(this,
this.ia);this.ia.ga(e.element);g.D(this,this.Xd);this.N(a,"appresize",this.Va);this.N(a,"fullscreentoggled",this.Va);this.N(a,"presentingplayerstatechange",this.sz);this.N(a,"videodatachange",this.Ra);this.Va()};
sva=function(a,b){g.uK(a.J).isCued()||b?b&&(a.aa.hide(),a.fa.hide(),a.muteButton&&a.muteButton.Eb(!1),a.F&&a.F.Eb(!1),a.D&&a.D.Eb(!1),a.B.Rb().Ci(a.Pa())):b||(a.aa.show(),a.fa.show(),a.muteButton&&a.muteButton.Eb(!0),a.F&&a.F.Eb(!0),a.D&&a.D.Eb(!0),a.Yh())};
tva=function(a){var b=g.cG(a.J).getPlayerSize().width;return Math.max(b-2*ZX(a),100)};
ZX=function(a){var b=a.B.ge();return 12*(a.J.getVideoData().qc?0:b?2:1)};
$X=function(a){var b=a.B.ge()?72:50;a=a.J.T();g.HD(a)&&(g.Q(a.experiments,"web_player_bigger_buttons")?b=54:g.Q(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
bY=function(a){g.V.call(this,{G:"div",L:aY.TITLE,S:[{G:"div",L:aY.TEXT,S:[{G:"a",la:[aY.LINK,aY.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title"},Z:"{{title}}"},{G:"div",L:aY.SUBTEXT,S:[{G:"a",L:aY.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ka(aY.LINK);g.ZT(a,this.element,this,23851);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",this.oa);this.oa()};
uva=function(a){a.ya("channelLink","");a.ya("channelName","")};
g.cY=function(a,b){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-tooltip-text-wrapper",S:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",Z:"{{title}}"},{G:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",S:[{G:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.ma=b;this.env=this.api.T();this.ia=this.env.u;this.bg=this.ka("ytp-tooltip-bg");this.image=this.ka("ytp-tooltip-image");this.text=this.ka("ytp-tooltip-text");this.title=this.ka("ytp-tooltip-title");
this.X=function(e){(e=gp(e))&&g.Me(c.B,e)||c.gj()};
this.D=function(e){3===c.type&&c.gj();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.D),e.addEventListener("mouseout",c.X),e.removeEventListener("focus",c.D),e.addEventListener("blur",c.X),vva(c,e,2))};
this.Y=function(){c.gj()};
this.B=null;this.I=new g.mO(this,100);this.type=null;this.P=!1;this.u=null;this.C=NaN;this.F="";this.fa=g.cG(this.api).getPlayerSize().width;this.K=!0;this.scale=1;this.aa=new g.F(this.rL,250,this);this.ha=new g.F(this.gj,5E3,this);g.D(this,this.I);g.D(this,this.aa);g.D(this,this.ha);if(eD){var d=this.ka("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
hV=function(a){a.element.setAttribute("aria-live","polite")};
yva=function(a,b,c,d,e,f,h,l){if(!a.ia){3===a.type&&a.gj();1!==a.type&&(g.pn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.tg(),a.u&&a.u.subscribe("l",a.QF,a));a.update({text:d,title:h?h:""});g.J(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.J(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=jI(a.u,160*a.scale),g.Q(a.env.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=oI(a.u,d,c));wva(a,d);if(l)switch(c=g.Lg(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"}xva(a,!!e,b,f)}};
g.dY=function(a){1===a.type&&a.gj()};
g.cV=function(a,b){if(a.ia)return g.Ka;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.gj();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
DV=function(a,b,c){if(a.type)if(3===a.type)a.gj();else return;vva(a,b,3,c)};
vva=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.tr("showElementTooltip called with non-element.",b.toString()),g.Hs(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"));g.pn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.J(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.J(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Y);a.K&&(XX(a),a.I.show(0))}};
XX=function(a){var b;a.B&&(b=a.B.getAttribute("data-tooltip-text"));if(b&&!a.P){var c=a.B;a.ya("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.rn(a.element,["ytp-text-detail","ytp-preview"]);
g.J(a.element,"ytp-has-duration",!!d)}else a.ya("text",a.F),g.tn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);xva(a,!!b)};
xva=function(a,b,c,d){var e=Math.min(a.fa,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ma.To(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.ha.start()};
EV=function(a){a.B&&!a.P&&a.B.hasAttribute("title")&&(a.F=a.B.getAttribute("title")||"",a.B.removeAttribute("title"),a.K&&XX(a))};
wva=function(a,b){g.J(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.pm(a.C,c);Bua(a.bg,e,c,d,!0);a.aa.start()}};
zva=function(a){var b=a.B;3===a.type&&a.ha.stop();a.api.removeEventListener("appresize",a.Y);a.P||b.setAttribute("title",a.F);a.F="";a.B=null};
g.eY=function(a,b){g.V.call(this,{G:"button",la:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.hD(a.T()))},S:[{G:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{G:"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.Rb();hV(this.tooltip);g.ZT(a,this.element,this,28665);this.wa("click",this.onClick,this);this.N(a,"videoplayerreset",this.qN);this.N(a,"appresize",
this.gv);this.N(a,"videodatachange",this.gv);this.N(a,"presentingplayerstatechange",this.gv);this.gv();var c=this.J.T(),d=Ava();c.B&&d?(Bva(),Cva(this,d.videoId)):this.oa(2);g.J(this.element,"ytp-show-watch-later-title",g.hD(c));g.eg(this,g.cV(b.Rb(),this.element))};
Dva=function(a,b){g.qsa(function(){Bva({videoId:b});window.location.reload()},"wl_button",g.CD(a.J.T()))};
Cva=function(a,b){if(!a.B)if(a.B=!0,a.oa(3),g.Q(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=dG(a.J.app),e=a.u?function(){a.wG()}:function(){a.vG()};
cT(d,c).then(e,function(){a.B=!1;fY(a,"An error occurred. Please try again later.")})}else c=a.J.T(),(a.u?osa:nsa)({videoIds:b,
ye:c.ye,pageId:c.pageId,onError:a.eR,onSuccess:a.u?a.wG:a.vG,context:a},c.P,!0)};
fY=function(a,b){a.oa(4,b);a.J.T().C&&a.J.xa("WATCH_LATER_ERROR",b)};
Eva=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=CU();break;case 1:d=UN();break;case 2:d={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.Q(c.experiments,"watch_later_iconchange_killswitch")?{G:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.ya("icon",d);
a.icon=b}};
gY=function(a){g.SU.call(this,a);var b=this;this.oo=g.hD(this.api.T());this.wx=48;this.xx=69;this.Hi=null;this.sl=[];this.Tb=new g.XU(this.api);this.qt=new FV(this.api);this.Cg=new g.V({G:"div",L:"ytp-chrome-top"});this.qs=[];this.tooltip=new g.cY(this.api,this);this.backButton=this.So=null;this.channelAvatar=new jV(this.api,this);this.title=new bY(this.api,this);this.Rf=new g.GN({G:"div",L:"ytp-chrome-top-buttons"});this.mg=null;this.Di=new bV(this.api,this,this.Cg.element);this.overflowButton=this.dg=
null;this.Bf="1"===this.api.T().controlsType?new YX(this.api,this,this.Nc):null;this.contextMenu=new g.BV(this.api,this,this.Tb);this.gx=!1;this.Ht=new g.V({G:"div",U:{tabindex:"0"}});this.Gt=new g.V({G:"div",U:{tabindex:"0"}});this.Ar=null;this.wA=this.mt=!1;var c=g.cG(a),d=a.T(),e=a.getVideoData();this.oo&&(g.I(a.getRootNode(),"ytp-embed"),g.I(a.getRootNode(),"ytp-embed-playlist"),this.wx=60,this.xx=89);this.Qg=e&&e.Qg;g.D(this,this.Tb);g.BP(a,this.Tb.element,4);g.D(this,this.qt);g.BP(a,this.qt.element,
4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.D(this,e);g.BP(a,e.element,1);this.QA=new g.mO(e,250,!0,100);g.D(this,this.QA);g.D(this,this.Cg);g.BP(a,this.Cg.element,1);this.PA=new g.mO(this.Cg,250,!0,100);g.D(this,this.PA);g.D(this,this.tooltip);g.BP(a,this.tooltip.element,4);var f=new QV(a);g.D(this,f);g.BP(a,f.element,5);f.subscribe("show",function(l){b.mm(f,l)});
this.qs.push(f);this.So=new RV(a,this,f);g.D(this,this.So);d.showBackButton&&(this.backButton=new WU(a),g.D(this,this.backButton),this.backButton.ga(this.Cg.element));this.oo||this.So.ga(this.Cg.element);this.channelAvatar.ga(this.Cg.element);g.D(this,this.channelAvatar);g.D(this,this.title);this.title.ga(this.Cg.element);g.D(this,this.Rf);this.Rf.ga(this.Cg.element);this.mg=new g.eY(a,this);g.D(this,this.mg);this.mg.ga(this.Rf.element);var h=new g.WV(a,this);g.D(this,h);g.BP(a,h.element,5);h.subscribe("show",
function(l){b.mm(h,l)});
this.qs.push(h);this.shareButton=new g.VV(a,this,h);g.D(this,this.shareButton);this.shareButton.ga(this.Rf.element);this.Dj=new CV(a,this);g.D(this,this.Dj);this.Dj.ga(this.Rf.element);d.Ls&&(e=new bW(a),g.D(this,e),g.BP(a,e.element,4));this.oo&&this.So.ga(this.Rf.element);g.D(this,this.Di);this.Di.ga(this.Rf.element);e=new $U(a,this,this.Di);g.D(this,e);e.ga(this.Rf.element);this.dg=new NV(a,this);g.D(this,this.dg);g.BP(a,this.dg.element,5);this.dg.subscribe("show",function(){b.mm(b.dg,b.dg.zf())});
this.qs.push(this.dg);this.overflowButton=new MV(a,this,this.dg);g.D(this,this.overflowButton);this.overflowButton.ga(this.Rf.element);this.Bf&&g.D(this,this.Bf);"3"===d.controlsType&&(e=new UV(a,this),g.D(this,e),g.BP(a,e.element,8));g.D(this,this.contextMenu);this.contextMenu.subscribe("show",this.oI,this);e=new oP(a,new AP(a));g.D(this,e);g.BP(a,e.element,4);this.Ht.wa("focus",this.hK,this);g.D(this,this.Ht);this.Gt.wa("focus",this.iK,this);g.D(this,this.Gt);(this.Xj=d.Oe?null:new g.JV(a,c,this.contextMenu,
this.Nc,this.Tb,this.qt,function(){return b.Ij()}))&&g.D(this,this.Xj);
this.oo||(this.yH=new $V(this.api,this),g.D(this,this.yH),g.BP(a,this.yH.element,4));this.rl.push(this.Tb.element);this.N(a,"fullscreentoggled",this.jk);this.N(a,"offlineslatestatechange",function(){UT(b.api)&&wU(b.Nc,128,!1)});
this.N(a,"cardstatechange",function(){b.Fg()});
this.N(a,"resize",this.HO);this.N(a,"showpromotooltip",this.kP)};
Fva=function(a){var b=a.api.T(),c=g.U(g.uK(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
hY=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==zg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=hY(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};
Gva=function(a,b,c){var d;if(g.Q(a.api.T().experiments,"web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.Ar){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.Ar=new SV(e,a,a.api),g.D(a,a.Ar),g.BP(a.api,a.Ar.element,8));null===
(d=a.Ar)||void 0===d?void 0:d.rz(e,c)}}};
g.iY=function(a){g.JS.call(this,a);this.chrome=null;this.load()};
Hva=function(){this.B=200;this.u=12};
Iva=function(a){var b=new Hva;b.B=g.P(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.P(a.experiments,"html5_gapless_max_played_ranges");return b};
Jva=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.La;if(b.Mi()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.Zc())&&b.isView()&&(b=b.u),b&&b.xm().length>a.u&&g.WI(e)))return"played-ranges";if(!e.La)return null;if(!e.La.Lc()||!c.Lc())return"non-dash";if(e.La.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.WI(f)&&g.WI(e))return"content-protection";
a=c.u[0].audio;e=e.La.u[0].audio;return a.sampleRate===e.sampleRate||g.pB?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
kY=function(a,b,c,d){g.C.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.I=-1;this.K=!1;this.F=new py;this.Cf=d-1E3*b.yc();this.F.then(void 0,function(){});
this.timeout=new g.F(function(){jY(e,"timeout")},1E4);
g.D(this,this.timeout);this.R=isFinite(d);this.status={status:0,error:null};this.ea()};
Ova=function(a){return We(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return xa(c,function(y){if(1==y.u){e=d;if(d.na())return y["return"](Promise.reject(Error(d.status.error||"disposed")));d.ea();d.timeout.start();f=yz?new xz("gtfta"):null;return sa(y,d.F,2)}Bz(f);h=d.u.Zc();if(h.Yi())return jY(d,"ended_in_finishTransition"),y["return"](Promise.reject(Error(d.status.error||"")));if(!d.D||!BB(d.D))return jY(d,"next_mse_closed"),y["return"](Promise.reject(Error(d.status.error||"")));if(d.B.tm()!==
d.D)return jY(d,"next_mse_mismatch"),y["return"](Promise.reject(Error(d.status.error||"")));l=Kva(d);m=l.wF;n=l.EC;p=l.vF;d.u.Pf(!1,!0);r=Lva(h,m,p,!d.B.getVideoData().isAd());d.B.setMediaElement(r);d.R&&(d.B.seekTo(d.B.getCurrentTime()+.001,{Gq:!0,OA:3}),r.play()||Ys());t=h.sb();t.cpn=d.u.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.B.Na("gapless",g.vB(t));d.u.Na("gaplessTo",d.B.getVideoData().clientPlaybackNonce);w=d.u.getPlayerType()===d.B.getPlayerType();Mva(d.u,n,!1,w,d.B.getVideoData().clientPlaybackNonce);
Mva(d.B,d.B.getCurrentTime(),!0,w,d.u.getVideoData().clientPlaybackNonce);g.mm(function(){!e.B.getVideoData().Rg&&g.GM(e.B.getPlayerState())&&Nva(e.B)});
lY(d,6);d.dispose();return y["return"](Promise.resolve())})})};
Rva=function(a){if(a.B.getVideoData().La){mY(a.B,a.D);lY(a,3);Pva(a);var b=Qva(a),c=b.xH;b=b.XR;c.subscribe("updateend",a.Lo,a);b.subscribe("updateend",a.Lo,a);a.Lo(c);a.Lo(b)}};
Pva=function(a){a.u.unsubscribe("internalvideodatachange",a.Wl,a);a.B.unsubscribe("internalvideodatachange",a.Wl,a);a.u.unsubscribe("mediasourceattached",a.Wl,a);a.B.unsubscribe("statechange",a.lc,a)};
Lva=function(a,b,c,d){a=a.isView()?a.u:a;return new g.ZS(a,b,c,d)};
lY=function(a,b){a.ea();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
jY=function(a,b){if(!a.na()&&!a.isFinished()){a.ea();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.Na("gaplessError","cpn."+d+";msg."+b);d=a.u;d.videoData.Lh=!1;c&&nY(d);d.Ba&&(c=d.Ba,c.u.aa=!1,c.C&&NF(c))}a.F.reject(void 0);a.dispose()}};
Kva=function(a){var b=a.u.Zc();b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:oY(a.u,!0);c=Math.min(a.Cf/1E3,c)+b;var d=a.R?100:0;a=c-a.B.Mi()+d;return{RJ:b,wF:a,EC:c,vF:Infinity}};
Qva=function(a){return{xH:a.C.u.Rc,XR:a.C.B.Rc}};
pY=function(a){g.C.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.R=Iva(this.api.T());this.C=null;this.I=function(){g.mm(function(){Sva(b)})}};
Tva=function(a,b,c,d){d=void 0===d?0:d;a.ea();!a.B||qY(a);a.D=new py;a.B=b;var e=c,f=a.api.dc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*oY(f,!0);e>h&&(e=h-a.R.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.hF("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.eF(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().ra;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,oY(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,oY(b)+l));f=Wga(e,h)||d;f!==d&&a.B.Na("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;if(e=a.api.dc())d.Kv=e;d.getVideoData().an=!0;d.getVideoData().Lh=!0;vT(d,!0);e="";a.u&&(e=g.rY(a.u.Jb.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Na("queued",e);0!==b&&d.seekTo(b+.01,{Gq:!0,OA:3});a.C=new kY(a.R,a.api.dc(),a.B,c);c=a.C;c.ea();Infinity!==c.status.status&&(lY(c,1),c.u.subscribe("internalvideodatachange",
c.Wl,c),c.B.subscribe("internalvideodatachange",c.Wl,c),c.u.subscribe("mediasourceattached",c.Wl,c),c.B.subscribe("statechange",c.lc,c),c.u.subscribe("newelementrequired",c.WF,c),c.Wl());return a.D};
Sva=function(a){We(a,function c(){var d=this,e,f,h,l;return xa(c,function(m){switch(m.u){case 1:e=d;if(d.na())return m["return"]();d.ea();if(!d.D||!d.B)return d.ea(),m["return"]();d.K&&sY(d.api.dc(),!0,!1);f=null;if(!d.C){m.u=2;break}m.C=3;return sa(m,Ova(d.C),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return Uva(d.api.app,d.B),Cz("vqsp",function(){var n=e.B.getPlayerType();g.xN(e.api.app,n)}),Cz("vqpv",function(){e.api.playVideo()}),f&&Vva(d.B,f.message),l=d.D,qY(d),m["return"](l.resolve(void 0))}})})};
qY=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.hF("vqueued"),a.I);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&jY(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
Wva=function(){var a=Wo();return!(!a||"visible"===a)};
Yva=function(a){var b=Xva();b&&document.addEventListener(b,a,!1)};
Zva=function(a){var b=Xva();b&&document.removeEventListener(b,a,!1)};
Xva=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Vo+"VisibilityState"])return"";a=Vo+"visibilitychange"}return a};
tY=function(){g.O.call(this);var a=this;this.fullscreen=0;this.B=this.pictureInPicture=this.C=this.u=this.inline=!1;this.D=function(){a.ff()};
Yva(this.D);this.F=this.getVisibilityState(this.Ze(),this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.B)};
$va=function(a){this.end=this.start=a};
vY=function(a,b,c){g.C.call(this);var d=this;this.api=a;this.W=b;this.u=c;this.fa=new Map;this.C=new Map;this.B=[];this.ha=NaN;this.R=this.F=null;this.aa=new g.F(function(){uY(d,d.ha)});
this.events=new g.tR(this);this.isLiveNow=!0;this.ia=g.P(this.W.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.D=new g.F(function(){d.I=!0;d.u.Na("sdai","aftimeout."+d.ia.toString());d.du(!0)},this.ia);
this.I=!1;this.Y=new Map;this.X=[];this.K=null;this.P=[];this.u.getPlayerType();awa(this.u,this);g.D(this,this.aa);g.D(this,this.events);g.D(this,this.D);this.events.N(this.api,g.hF("serverstitchedcuerange"),this.CM);this.events.N(this.api,g.iF("serverstitchedcuerange"),this.DM)};
fwa=function(a,b,c,d,e){if(g.Q(a.W.experiments,"web_player_ss_timeout_skip_ads")&&bwa(a,d,d+c))return a.u.Na("sdai","adskip_"+d),"";a.I&&a.u.Na("sdai","adaftto");var f=a.u;e=void 0===e?d+c:e;if(d>e)return wY(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Kc();if(d<h)return wY(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return wY(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.pc&&d<m.gd||e<=m.gd&&e>m.pc)return wY(a,"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+xY(m))),"";if(e===m.pc)return wY(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+xY(m))),"";
d===m.gd&&(h=m)}l="childplayback_"+cwa++;m={Kd:yY(c,!0),Cf:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.Q(a.W.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.Wx());b={Hc:l,playerVars:b,playerType:2,durationMs:c,pc:d,gd:e,pg:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.pc-t.pc});
h?(b.xj=h.xj,dwa(h,{Kd:yY(h.durationMs,!0),Cf:Infinity,target:b})):(b.xj=b.cpn,d={Kd:yY(d,!1),Cf:d,target:b},a.fa.set(d.Kd,d),a.ea(),f.addCueRange(d.Kd));d=ewa(b.pc,b.pc+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.D.isActive()&&(a.I=!1,a.D.stop(),a.du(!1));a.ea();return l};
yY=function(a,b){return new g.eF(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
ewa=function(a,b){return new g.eF(a,b,{namespace:"serverstitchedcuerange",priority:7})};
dwa=function(a,b){a.pg=b};
zY=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.pc/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{sh:e,ul:b-d};d=h-e.gd/1E3}return{sh:null,ul:b-d}};
uY=function(a,b){var c=a.R||a.api.dc().getPlayerState();AY(a,!0);var d=zY(a,b).ul;a.ea();a.ea();a.u.seekTo(d);d=a.api.dc();var e=d.getPlayerState();g.GM(c)&&!g.GM(e)?d.playVideo():g.U(c,4)&&!g.U(e,4)&&d.pauseVideo()};
AY=function(a,b){a.ha=NaN;a.aa.stop();a.F&&b&&BY(a.F);a.R=null;a.F=null};
bU=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=g.q(a.fa),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Cf>=d&&l.target&&l.target.gd<=e&&(a.u.removeCueRange(h),a.fa["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.pc<d||l.gd>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=zY(a,b/
1E3);b=d.sh;d=d.ul;b&&(d=1E3*d-b.pc,gwa(a,b,d,b.pc+d));(b=zY(a,c/1E3).sh)&&wY(a,"Invalid clearEndTimeMs="+c+" that falls during "+xY(b)+".Child playbacks can only have duration updated not their start.")};
gwa=function(a,b,c,d){a.ea();b.durationMs=c;b.gd=d;c={Kd:yY(c,!0),Cf:c,target:null};b.pg=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.Hc===b.Hc&&(c=f)}c&&(a.u.removeCueRange(c),c=ewa(b.pc,b.pc+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
xY=function(a){return"playback={timelinePlaybackId="+a.Hc+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.pc+" parentReturnTimeMs="+a.gd+"}"};
$ha=function(a,b,c,d){if(hwa(a,c))return null;var e=a.Y.get(c);e||(e=0,a.W.ba("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.yc():a.u.getStreamTimeOffset()),e=zY(a,b+e,1).sh);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(m){return m.itag===f});
if(h&&h.url){b=a.u.getVideoData();var l=b.ra.u[d].index.pD(c-1);d=h.url;l&&l.u&&(d=d.concat("&daistate="+l.u));(b=b.clientPlaybackNonce)&&(d=d.concat("&cpn="+b));e.xj&&(b=iwa(a,e.xj),0<b.length&&(d=d.concat("&acpns="+b.join(","))));g.Q(a.W.experiments,"html5_high_res_logging")&&a.u.Na("sdai","ast."+e.pc.toFixed(3)+".alen."+e.durationMs.toFixed(3)+".acpn."+e.cpn);a.Y.set(c,e);return d}}jwa(a,c);return null};
jwa=function(a,b){for(var c=g.q(a.X),d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.X.push(new $va(b))};
hwa=function(a,b){for(var c=g.q(a.X),d=c.next();!d.done;d=c.next())if(d=d.value,b>=d.start&&b<=d.end)return!0;return!1};
wY=function(a,b){a.u.Na("timelineerror",b)};
iwa=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.xj===b&&e.cpn&&c.push(e.cpn);return c};
bwa=function(a,b,c){if(!a.P.length)return!1;a=g.q(a.P);for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=1E3*e.startSecs;e=1E3*e.durationSecs+d;if(b>d&&b<e||c>d&&c<e)return!0}return!1};
dia=function(a,b){ki(a.P,function(c){return c.identifier===b.identifier})?(a.u.Na("sdai","timedoutcp.1"),a.D.start(0)):a.D.isActive()||(g.Q(a.W.experiments,"html5_high_res_logging")&&a.u.Na("sdai","adf.1"),a.I=!1,a.D.start(),a.K=b,a.Y.clear(),a.X=[])};
CY=function(a,b,c){g.C.call(this);var d=this;this.api=a;this.W=b;this.B=c;this.F=new Map;this.u=[];this.C=this.K=null;this.X=NaN;this.I=this.D=null;this.P=new g.F(function(){kwa(d,d.X)});
this.R=[];this.Y=new g.F(function(){var e=d.R.pop();if(e){var f=e.Hc,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.R.length&&d.Y.Sb(4500)}});
this.events=new g.tR(this);c.getPlayerType();g.D(this,this.P);g.D(this,this.Y);g.D(this,this.events);this.events.N(this.api,g.hF("childplayback"),this.EM);this.events.N(this.api,"onQueuedVideoLoaded",this.aQ);this.events.N(this.api,"presentingplayerstatechange",this.FM)};
owa=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return DY(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Kc();if(d<h)return DY(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return DY(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.pc&&d<m.gd)return DY(a,
"e.overlappingEnter"),a.ea(),"";if(e<=m.gd&&e>m.pc)return DY(a,"e.overlappingReturn"),a.ea(),"";if(e===m.pc)return DY(a,"e.outOfOrder"),a.ea(),"";d===m.gd&&(h=m)}l="childplayback_"+lwa++;m={Kd:EY(c,!0),Cf:Infinity,target:null};var n={Hc:l,playerVars:b,playerType:2,durationMs:c,pc:d,gd:e,pg:m};a.u=a.u.concat(n).sort(function(t,w){return t.pc-w.pc});
h?mwa(a,h,{Kd:EY(h.durationMs,!0),Cf:a.W.ba("timeline_manager_transition_killswitch")?Infinity:h.pg.Cf,target:n}):(b={Kd:EY(d,!1),Cf:d,target:n},a.F.set(b.Kd,b),a.ea(),f.addCueRange(b.Kd));b=g.Q(a.W.experiments,"html5_gapless_preloading");if(a.B===a.api.dc()&&(f=1E3*f.getCurrentTime(),f>=n.pc&&f<n.gd)){var p=a.api.dc().getPlayerState(),r=f-n.pc;gm(function(){nwa(a,n,r/1E3,p)});
b=!1}b&&(a.R.unshift(n),a.Y.Sb(0));a.ea();return l};
EY=function(a,b){return new g.eF(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
qwa=function(a,b,c,d){a.ea();a.C=d;pwa(a.api.app,a.B,c,void 0===b?0:b)};
rwa=function(a,b,c,d){a.ea();a.C=d;d=b.Hc;var e=b.playerVars,f=b.playerType;a.K=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
mwa=function(a,b,c){var d=b.pg;b.pg=c;FY(a,b)&&(c=a.api.dc(),d.Kd===a.C&&GY(a),a.ea(),c.removeCueRange(d.Kd),b=b.pg,a.ea(),c.addCueRange(b.Kd))};
GY=function(a){a.K=null;a.C=null;!a.api.app.Ga.B||a.api.clearQueue()};
swa=function(a,b){FY(a,b)||DY(a,"e.childPlaybackIsNotPresenting");return b.gd===b.pc+b.durationMs?b.pc+1E3*a.api.dc().getCurrentTime():b.gd};
HY=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.pc/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{sh:e,ul:b-f};c=h-e.gd/1E3}return{sh:null,ul:b-c}};
kwa=function(a,b){var c=a.I||a.api.dc().getPlayerState();IY(a,!0);var d=g.Q(a.W.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.B.Fh(),e=HY(a,d);d=e.sh;e=e.ul;var f=d&&!FY(a,d)||!d&&a.B!==a.api.dc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||GY(a);a.ea();d?(a.ea(),nwa(a,d,e,c)):(a.ea(),JY(a,e,c))};
JY=function(a,b,c){var d=a.B;if(d!==a.api.dc()){var e=d.getPlayerType();g.xN(a.api.app,e)}d.seekTo(b);twa(a,c)};
nwa=function(a,b,c,d){var e=FY(a,b);if(!e){g.xN(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.rI(a.W,b.playerVars);f.Hc=b.Hc;KY(a.api.app,f,b.playerType,void 0)}f=a.api.dc();e||(b=b.pg,a.ea(),f.addCueRange(b.Kd));f.seekTo(c);twa(a,d)};
twa=function(a,b){var c=a.api.dc(),d=c.getPlayerState();g.GM(b)&&!g.GM(d)?c.playVideo():g.U(b,4)&&!g.U(d,4)&&c.pauseVideo()};
IY=function(a,b){a.X=NaN;a.P.stop();a.D&&b&&BY(a.D);a.I=null;a.D=null};
FY=function(a,b){var c=a.api.dc();return!!c&&c.getVideoData().Hc===b.Hc};
uwa=function(a){var b=a.u.find(function(d){return FY(a,d)});
if(b){GY(a);var c=new g.AM(8);b=swa(a,b)/1E3;JY(a,b,c)}};
cU=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=g.q(a.F),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Cf>=d&&l.target&&l.target.gd<=e&&(a.B.removeCueRange(h),a.F["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.pc>=d&&l.gd<=e){var m=a;m.K===l&&GY(m);FY(m,l)&&g.yN(m.api,l.playerType)}else f.push(l);a.u=f;d=HY(a,b/1E3);b=d.sh;d=d.ul;b&&(d*=1E3,vwa(a,b,d,b.gd===b.pc+b.durationMs?b.pc+
d:b.gd));(b=HY(a,c/1E3).sh)&&DY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Hc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.gd+"}.Child playbacks can only have duration updated not their start."))};
vwa=function(a,b,c,d){a.ea();b.durationMs=c;b.gd=d;d={Kd:EY(c,!0),Cf:c,target:null};mwa(a,b,d);FY(a,b)&&1E3*a.api.dc().getCurrentTime()>c&&(b=swa(a,b)/1E3,c=a.api.dc().getPlayerState(),JY(a,b,c))};
DY=function(a,b){a.B.Na("timelineerror",b)};
xwa=function(a){a&&"web"!==a&&wwa.includes(a)};
NY=function(a,b){g.C.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.F(function(){LY(c);MY(c)});
g.D(this,this.u)};
LY=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&OY(a,c,!0)});
a.data=g.Ke(a.data,function(c){return!(c.expire<b)})};
OY=function(a,b,c){c&&a.B&&a.B(b.value)};
MY=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))};
PY=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
ywa=function(a){return a.data[a.u]||0};
QY=function(a){g.C.call(this);this.D=a;this.u=new Map;this.B=new g.F(this.C,250,this);g.D(this,this.B);this.start()};
RY=function(a,b){var c;if(null===(c=a.u.get(b))||void 0===c)var d=void 0;else{d=c.buffer;for(var e=[];d.B!==d.u;)d.B=(d.B+1)%d.data.length,e.push(d.data[d.B]);d=e}return d||[]};
SY=function(a,b){var c;return(null===(c=a.u.get(b))||void 0===c?void 0:ywa(c.buffer))||0};
TY=function(a){this.B=a;this.u=NaN;this.buffer=new PY(100)};
zwa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Yb()+")":a.Yb()};
UY=function(a,b){g.C.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)};
VY=function(a,b){this.u=a;this.da=b;this.B=null;this.C=[];this.D=!1};
g.WY=function(a){a.B||(a.B=a.u.createMediaElementSource(a.da.Pa()));return a.B};
g.XY=function(a){for(var b;0<a.C.length;)(b=a.C.pop())&&b.disconnect();a.B&&a.B.disconnect()};
Bwa=function(a,b){if(g.gr())return null;var c=Awa();if(!c)return g.OT(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.OT(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.OT(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.GM(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);YY=!1},null)};
YY||(a.addEventListener("presentingplayerstatechange",d),YY=!0)}return new VY(c,b)};
$Y=function(a){g.V.call(this,{G:"div",la:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{G:"div",L:g.ZY.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ka(g.ZY.VIDEO_CONTAINER);this.B=new g.jg(0,0,0,0);this.u=null;this.K=new g.jg(0,0,0,0);this.Y=this.ha=this.fa=NaN;this.I=this.za=!1;this.X=NaN;this.aa=!1;this.F=null;this.dispatchEvent=function(){};
this.ia=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.fr("ytp-transparent");"0"===e.controlsType&&this.fr("ytp-hide-controls");e.ba("html5_ux_control_flexbox_killswitch")||g.I(this.element,"ytp-exp-bottom-control-flexbox");e.ba("html5_player_bottom_linear_gradient")&&g.I(this.element,"ytp-linear-gradient-bottom-experiment");e.ba("web_player_bigger_buttons")&&g.I(this.element,"ytp-exp-bigger-button");jia(this.element,Cwa(a));FD(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.P="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.ie(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ie(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ie(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.ie(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.ie(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ie(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ie(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ie(640,360)}]);this.ma=e.useFastSizingOnWatchDefault;this.D=new g.ie(NaN,NaN);Dwa(this);this.N(a.u,"onMutedAutoplayChange",this.JM)};
Dwa=function(a){function b(){a.u&&aZ(a);bZ(a)!==a.aa&&a.resize()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.jg(0,0,0,0);a.B=new g.jg(0,0,0,0)}
var f=a.app.u;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.eg(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
fK=function(a,b){mD(a.app.T());a.I=!b;aZ(a)};
Ewa=function(a){var b=g.Q(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.Vj()||c.Wj()||c.Pj())return 16/9;if(b&&zI(c)&&c.La.Lc())return b=c.La.videoInfos[0].video,cZ(b.width,b.height)}return(a=a.u)?cZ(a.videoWidth,a.videoHeight):b?16/9:NaN};
Fwa=function(a,b,c,d){var e=c,f=cZ(b.width,b.height);a.za?e=c<f?Infinity:0:isNaN(a.Y)?isNaN(a.ha)||(e=a.ha):e=a.Y;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};
cZ=function(a,b){return 1>Math.abs(dZ*b-a)||1>Math.abs(dZ/a-b)?dZ:a/b};
bZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||b.Qj())return!1;var c=g.uK(a.app.u);a=!g.U(c,2)||!g.Q(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Lh;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
aZ=function(a){var b="3"===a.app.T().controlsType&&!a.I&&bZ(a)&&!a.app.Ta||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.ia):g.Q(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.ia)};
Gwa=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=Fwa(a,b,a.getVideoAspectRatio()),f=nr();if(bZ(a)){var h=Ewa(a);var l=isNaN(h)||g.hs||fE&&g.Ur;or&&!g.ae(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.jg(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.jg((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Ur&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.aa=!0}else l=-b.height,or?l*=window.devicePixelRatio:g.OD&&(l-=window.screen.height),
l=new g.jg(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.aa=!1;kg(a.K,l)||(a.K=l,g.xD(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Kg(a.u,new g.ie(l.width,l.height)),d=new g.ge(l.left,l.top),g.Cg(a.u,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.jg((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);kg(a.B,b)||(a.B=b,d=!0);g.ug(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
Hwa=function(){this.csn=g.Rt();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
dta=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=$ea(d);b.visualElement=d;var f=g.Rt(),h=g.Pt();f&&h&&g.du(f,h,d);g.eg(c,function(){Iwa(a,b)});
e&&a.B.add(b)};
eta=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.eg(c,function(){Iwa(a,b)});
d&&a.B.add(b)};
Iwa=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
Jwa=function(a){if(a.csn!==g.Rt())if("UNDEFINED_CSN"===a.csn)a.csn=g.Rt();else{var b=g.Rt(),c=g.Pt();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.du(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.Yt(b,c,void 0)}};
eZ=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-horizonchart"});this.I=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.I+"em"};
fZ=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="")};
gZ=function(a){var b=null;b={G:"button",la:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Z:"[x]"};g.V.call(this,{G:"div",L:"html5-video-info-panel",S:[b,{G:"div",L:"html5-video-info-panel-content",S:[{G:"div",S:[{G:"div",Z:"Video ID / sCPN"},{G:"span",Z:"{{video_id_and_cpn}}"}]},{G:"div",S:[{G:"div",Z:"Viewport / Frames"},{G:"span",Z:"{{dims_and_frames}}"}]},{G:"div",S:[{G:"div",Z:"Current / Optimal Res"},{G:"span",Z:"{{resolution}}"}]},{G:"div",S:[{G:"div",Z:"Volume / Normalized"},
{G:"span",Z:"{{volume}}"}]},{G:"div",S:[{G:"div",Z:"Codecs"},{G:"span",Z:"{{codecs}}"}]},{G:"div",U:{style:"{{shader_info_style}}"},S:[{G:"div",Z:"Shader Info"},{G:"span",Z:"{{shader_info}}"}]},{G:"div",U:{style:"{{color_style}}"},S:[{G:"div",Z:"Color"},{G:"span",Z:"{{color}}"}]},{G:"div",U:{style:"{{drm_style}}"},S:[{G:"div",Z:"Protected"},{G:"span",Z:"{{drm}}"}]},{G:"div",U:{style:"{{bandwidth_style}}"},S:[{G:"div",Z:"Connection Speed"},{G:"span",S:[{G:"span",Z:"{{bandwidth_chart}}"},{G:"span",
Z:"{{bandwidth_kbps}}"}]}]},{G:"div",U:{style:"{{network_activity_style}}"},S:[{G:"div",Z:"Network Activity"},{G:"span",S:[{G:"span",Z:"{{network_activity_chart}}"},{G:"span",Z:"{{network_activity_bytes}}"}]}]},{G:"div",S:[{G:"div",Z:"Buffer Health"},{G:"span",S:[{G:"span",Z:"{{buffer_health_chart}}"},{G:"span",Z:"{{buffer_health_seconds}}"}]}]},{G:"div",U:{style:"{{live_latency_style}}"},S:[{G:"div",Z:"Live Latency"},{G:"span",S:[{G:"span",Z:"{{live_latency_chart}}"},{G:"span",Z:"{{live_latency_secs}}"}]}]},
{G:"div",U:{style:"{{live_mode_style}}"},S:[{G:"div",Z:"Live Mode"},{G:"span",Z:"{{live_mode}}"}]},{G:"div",U:{style:"{{playback_categories_style}}"},S:[{G:"div",Z:"Playback Categories"},{G:"span",Z:"{{playback_categories}}"}]},{G:"div",S:[{G:"div",Z:"Mystery Text"},{G:"span",Z:"{{debug_info}}"}]},{G:"div",U:{style:"{{release_style}}"},S:[{G:"div",Z:"Player Release"},{G:"span",Z:"{{release_name}}"}]}]}]});b&&(b=this.ka("html5-video-info-panel-close"),this.N(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 eZ(300,1,150,b,c);g.D(this,this.u);this.ya("bandwidth_chart",this.u);this.C=new eZ(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.D(this,this.C);this.ya("live_latency_chart",this.C);this.B=new eZ(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.D(this,this.B);this.ya("buffer_health_chart",this.B);this.D=new eZ(300,1,150,d,c);g.D(this,this.D);this.ya("network_activity_chart",this.D);this.delay=new g.F(this.oa,
500,this);g.D(this,this.delay);this.F=a};
Kwa=function(a){this.te=a};
hZ=function(){g.O.apply(this,arguments)};
iZ=function(a,b,c,d){hZ.call(this);var e=this;this.C=-1;this.u={};this.D=new g.F(this.F,0,this);g.D(this,this.D);this.B=new g.F(function(){e.na()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.D(this,this.B);d.subscribe("fairplay_next_need_key_info",this.I,this)};
Lwa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
Mwa=function(a){var b=a.interval,c=a.Nr,d=a.xI,e=a.drmSessionId;this.url=a.url;this.interval=b;this.Nr=c;this.xI=d;this.drmSessionId=e};
Nwa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
Pwa=function(a){var b=Su(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=bv(b.slice(d+2));if(null==b)return null;a=new Nwa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.zM(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Mwa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Nr:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=Owa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Owa=function(a){if(!a)return{};a=a.split(";");var b={};g.Cb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
jZ=function(a,b){g.C.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.En(5E3,2E4,.2)};
Qwa=function(a,b,c){a.onSuccess=b;a.onError=c};
Swa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.na())if(a.ea(),0!==e.status&&e.response)if(PE("drm_net_r"),e=new Uint8Array(e.response),e=Pwa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Rwa(a,e)},
onError:function(e){Rwa(a,e)}};
c&&(b=Td(b,"access_token",c));g.qq(b,d);a.ea()};
Rwa=function(a,b){if(!a.na())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
Uwa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.na()){a.ea();PE("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.cf(f.license)}catch(y){}if(0!==h||l){l=new Nwa(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=Twa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;
try{w=g.cf(r.keyId)}catch(y){}w&&(n[g.sf(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.na())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")},
Bg:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.VB="Bearer "+d);g.Mp(c,"player/get_drm_license",b,e)};
lZ=function(a,b,c,d){g.O.call(this);this.videoData=a;this.W=b;this.ha=c;this.sessionId=d;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.I=this.P=!1;this.C=null;this.aa=[];this.F=[];this.X=!1;this.u={};this.Y=NaN;this.status="";this.K=!1;this.B=a.md;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.lg&&(a.vvt=this.videoData.lg,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.ye&&(a.authuser=this.W.ye);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ba("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.D=a;this.D.session_id=d;this.R=!0;"widevine"===this.B.flavor&&(this.D.hdr="1");"playready"===this.B.flavor&&(b=Number(g.kB(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.D.mfpe=""+
b),this.R=!1,this.videoData.ba("html5_playready_enable_non_persist_license")&&(this.D.pst="0"));b=uC(this.B)?Lwa(c.initData).replace("skd://","https://"):this.B.C;this.videoData.ba("enable_shadow_yttv_channels")&&(b=new g.Qm(b),document.location.origin&&document.location.origin.includes("green")?g.Sm(b,"web-green-qa.youtube.com"):g.Sm(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Qd(this.baseUrl,"ek")||"";if(b=Qd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.fa=
this.videoData.ba("html5_use_drm_retry");this.aa=c.B;this.ea();kZ(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
Ywa=function(a,b){kZ(a,"createkeysession");a.status="gr";PE("drm_gk_s");a.url=Vwa(a);try{a.C=b.createSession(a.ha,function(d){kZ(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.V("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(Wwa(a.C,function(d,e){Xwa(a,d,e)},function(d){a.na()||(a.ea(),a.error("drm.keyerror",!0,d))},function(){a.na()||(a.ea(),kZ(a,"onkyadd"),a.I||(a.V("sessionready"),a.I=!0))},function(d){a.xl(d)}),g.D(a,a.C))};
Vwa=function(a){var b=a.baseUrl;ufa(b)||a.error("drm.net",!0,"t.x");if(!Qd(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.D.fexp=c.join())}c=g.q(Object.keys(a.D));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Td(b,d,a.D[d]);return b};
Zwa=function(a){var b={};Object.assign(b,a.D);return b};
$wa=function(a,b){var c=new Mwa({xI:g.sf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
Xwa=function(a,b,c){if(!a.na())if(b){a.ea();kZ(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":axa(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.P||(PE("drm_gk_f"),a.P=!0,a.V("newsession",a));if(a.videoData.ba("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.K&&"widevine"===a.B.flavor)a.K&&"license-request"!==c&&kZ(a,"wvrenew.mt."+c,!0),
$wa(a,b);else{if(qC(a.B)&&(b=bxa(b),!b))return;uC(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=Ru(g.sf(b)));b=new jZ(b,++a.requestNumber);Qwa(b,function(d,e){cxa(a,d,e)},function(d,e,f,h){if(!a.na()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.P(a.W.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.fa&&36E4<(0,g.N)()-a.Y);h&&(l=!0,e="drm.net.retryexhausted");a.ea();kZ(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&dxa(a,d)}});
g.D(a,b);exa(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
axa=function(a,b){a.ea();kZ(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.W.deviceParams);c=g.Md("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:Su(b)}),responseType:"arraybuffer"};
g.Vs(c,d,3,500).then(Eo(function(e){if(!a.na()){e=new Uint8Array(e.response);var f=Su(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.C&&a.C.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.na()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
mZ=function(a){var b;if(b=a.R&&null!=a.C)a=a.C,b=!(!a.u||!a.u.keyStatuses);return b};
exa=function(a,b){a.status="km";PE("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.Cs(a.W.ha),d=g.Jp(c.Tf||g.Kp());d.drmSystem=fxa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.sf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.ea();a.error("drm.net",!0,"t.r;ic.0");return}var e=a.W.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.lg&&(d.context.user.credentialTransferTokens=[{token:a.videoData.lg,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Ph&&
(d.context.user.kidsParent={oauthToken:a.videoData.Ph});if(uC(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.sf(f)}Uwa(b,d,c,a.videoData.uf())}else Swa(b,a.url,a.videoData.oauthToken);a.status="rs"};
cxa=function(a,b,c){if(!a.na()){if(a.requestNumber!==c&&"widevine"===a.B.flavor&&((a.W.ba("html5_drm_ignore_out_of_order_responses")||a.W.ba("html5_drm_ignore_out_of_order_responses_cfl"))&&kZ(a,"drmOOO."+a.requestNumber+"."+c,!0),a.W.ba("html5_drm_ignore_out_of_order_responses")))return;kZ(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(PE("drm_kr_s"),a.videoData.ba("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.V("newlicense",b.heartbeatParams),b.u&&(a.F=b.u,a.K=!0,a.X=ki(a.F,function(d){return d.includes("HDR")})),b.B&&(a.u=Hb(b.B,function(d){return{type:d,
status:"unknown"}})),sC(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.cf(Su(b.message)):tC(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=Ru(g.sf(b.message))),a.C&&(a.ea(),kZ(a,"updtks"),a.status="ku",a.C.update(b.message).then(function(){PE("drm_kr_f");
if(!mZ(a))if(kZ(a,"ksApiUnsup"),rC(a.B)){var d=gxa(a.F);480<g.Yw[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.tf(d.message);
a.error("drm.keyerror",!0,d)})),a.I&&(a.Y=(0,g.N)()),uC(a.B)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
dxa=function(a,b){var c=b.u.getValue();c=new g.F(function(){exa(a,b)},c);
g.D(a,c);c.start();g.Fn(b.u);a.ea();kZ(a,"rtyrq")};
hxa=function(a,b){if(!mZ(a)&&rC(a.B)&&!b)return"large";var c=[],d=!0;if(mZ(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(!mZ(a)||d)c=a.F;return gxa(c)};
ixa=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)};
jxa=function(a){var b=a.status+".";return mZ(a)?b+ixa(a,"."):b+a.F.join(".")};
kxa=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};
lxa=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
kZ=function(a,b,c){c=void 0===c?!1:c;a.ea();(c||CI(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.V("ctmp","drmlog",b)};
mxa=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};
gxa=function(a){return g.jb(a,"UHD2")?"highres":g.jb(a,"UHD1")?"hd2160":g.jb(a,"HD")?"hd1080":g.jb(a,"HD720")?"hd720":"large"};
bxa=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(nZ(Taa(a.childNodes[0].nodeValue)).buffer):null:null};
nxa=function(a,b,c,d,e){var f;"playready"===e?f=bxa(a):"fairplay"===e&&(f=Ru(g.sf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Laa(c,d),g.Vs(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=Pwa(h))&&h.message&&b.update(h.message)}))};
oZ=function(a,b,c,d,e){g.C.call(this);this.element=a;this.R=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.I=this.C=this.F=null;this.D=new rt(this);g.D(this,this.D);oxa(this)};
oxa=function(a){a.u?(a.D.N(a.u,"message",a.NL),a.D.N(a.u,"keystatuseschange",a.xl),a.u.closed&&a.u.closed.then(Eo(function(){a.na()||dr("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(tt(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.fG),tt(a.D,a.B,["mskeyerror","webkitkeyerror"],a.eG),tt(a.D,a.B,["mskeyadded","webkitkeyadded"],a.dG))};
Wwa=function(a,b,c,d,e){a.F=b;a.C=c;a.I=d;a.K=e};
pxa=function(a,b,c){M(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
pZ=function(a,b){g.C.call(this);this.element=a;this.u=b;this.I={};this.D=null;this.F=new rt(this);this.C=this.B=null;g.D(this,this.F)};
qZ=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.na()||(a.B=b,a.element.setMediaKeys(b))});
pC(a.u)?a.C=new (oC())(a.u.u):sC(a.u)?(a.C=new (oC())(a.u.u),a.element.webkitSetMediaKeys(a.C)):qxa(a);return null};
qxa=function(a){tt(a.F,a.element,["keymessage","webkitkeymessage"],a.QL);tt(a.F,a.element,["keyerror","webkitkeyerror"],a.PL);tt(a.F,a.element,["keyadded","webkitkeyadded"],a.OL)};
rxa=function(a){return"widevine"===a.u.flavor&&a.u.Ap&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.Ap):null};
txa=function(a,b){var c=sxa(b,a.u.Bh);c=a.C.createSession("video/mp4",c);return new oZ(null,null,null,null,c)};
uxa=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 oZ(null,null,null,null,c)};
rZ=function(a,b){var c=a.I[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
sxa=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};
sZ=function(a,b){g.C.call(this);this.u=g.Fe("video");this.B=null;this.D=[];this.F=new rt(this);this.C=new nC("fairplay","com.youtube.fairplay","",b);this.C.Bh=a;g.D(this,this.F);this.init()};
tZ=function(a,b,c){hZ.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.F(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.V("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.N)(),d.B.start(Math.max(0,e)))},0);
g.D(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
uZ=function(){this.keys=[];this.values=[]};
wZ=function(a,b,c){g.O.call(this);this.element=a;this.videoData=b;this.W=c;this.u=this.videoData.md;this.drmSessionId=this.videoData.drmSessionId||g.Jt();this.B=new uZ;this.I=new uZ;this.R=new uZ;this.C=[];this.Ja=2;this.aa=new rt(this);this.Ga=this.ia=!1;this.heartbeatParams=null;this.Y=this.ha=this.fa=this.P=!1;this.F=null;this.ma=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||oC()||wC(c.experiments);c=g.Q(this.W.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.eq:g.Q(this.W.experiments,
"html5_drm_start_from_null_constraint");this.K="fairplay"===this.u.flavor||c?UD:vxa;this.D=new pZ(this.element,this.u);g.D(this,this.D);pC(this.u)&&(this.X=new pZ(this.element,this.u),g.D(this,this.X));g.D(this,this.aa);c=this.element;this.u.keySystemAccess?this.aa.N(c,"encrypted",this.RL):tt(this.aa,c,pC(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.BP);wxa(this);a:switch(c=this.u,a=this.W.experiments,b=this.B,c.flavor){case "fairplay":19.2999<cr()?(a=c.At,c=c.zt,c>=a&&(c=.75*a),b=.5*(a-
c),c=new iZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new tZ(g.Q(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.F=c)g.D(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.SB,this);this.ea("Created, key system "+this.u.u+", final EME "+wC(this.W.experiments));vZ(this,"cks"+this.u.Te());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Qa=new sZ(this.videoData.Bh,this.W.experiments),g.D(this,this.Qa))};
wxa=function(a){var b=qZ(a.D);b?b.then(Eo(function(){xxa(a)}),Eo(function(c){if(!a.na()){a.ea();
M(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ea(),vZ(a,"mdkrdy"),a.P=!0);
a.X&&(b=qZ(a.X))};
yxa=function(a,b,c){a.Ga=!0;c=new zy(b,c);a.W.ba("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));a.W.ba("html5_process_all_encrypted_events")?xZ(a,c):a.W.ba("html5_eme_loader_sync")?xZ(a,c):0!==a.C.length&&a.videoData.La&&a.videoData.La.Lc()?yZ(a):xZ(a,c)};
zxa=function(a,b){vZ(a,"onneedkeyinfo");g.Q(a.W.experiments,"html5_eme_loader_sync")&&(a.R.get(b.initData)||a.R.set(b.initData,b));xZ(a,b)};
Bxa=function(a,b){if(pC(a.u)&&!a.fa){var c=Yfa(b);if(0!==c.length){var d=new zy(c);a.fa=!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){Axa(a,f,d)})},null)}}};
Axa=function(a,b,c){var d=b.createSession(),e=a.B.values[0],f=Zwa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);nxa(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.ha=!0,Cxa(a,hxa(e,a.ha)))});
d.generateRequest("cenc",c.initData)};
xZ=function(a,b){if(!a.na()){vZ(a,"onInitData");if(g.Q(a.W.experiments,"html5_eme_loader_sync")&&a.videoData.La&&a.videoData.La.Lc()){var c=a.R.get(b.initData),d=a.I.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.I.remove(c);a.R.remove(c)}a.ea();vZ(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ia&&!a.videoData.isLivePlayback?a.W.ba("html5_process_all_encrypted_events")&&yZ(a):g.Q(a.W.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Zd||(a.ia=!0,c=b.cryptoPeriodIndex,
d=b.u,Ay(b),b.Zd||(d&&b.u!==d?a.V("ctmp","cpsmm","emsg."+d+";pssh."+b.u):c&&b.cryptoPeriodIndex!==c&&a.V("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex)),a.V("widevine_set_need_key_info",b)):a.SB(b)}};
xxa=function(a){if(!a.na())if(g.Q(a.W.experiments,"html5_drm_set_server_cert")&&!g.wD(a.W)){var b=rxa(a.D);b?b.then(Eo(function(c){CI(a.videoData)&&a.V("ctmp","ssc",c)}),Eo(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Eo(function(){zZ(a)})):zZ(a)}else zZ(a)};
zZ=function(a){a.na()||(a.P=!0,a.ea(),vZ(a,"onmdkrdy"),yZ(a))};
yZ=function(a){if(a.Ga&&a.P&&!a.Y){for(;a.C.length;){var b=a.C[0];if(a.B.get(b.initData))if("fairplay"===a.u.flavor)a.B.remove(b.initData);else{a.C.shift();continue}Ay(b);break}a.C.length&&a.createSession(a.C[0])}};
Cxa=function(a,b){var c=FC("auto",b,!1,"l");if(g.Q(a.W.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.eq:g.Q(a.W.experiments,"html5_drm_start_from_null_constraint")){if(EC(a.K,c))return}else if(IC(a.K,b))return;a.K=c;a.V("qualitychange");a.ea();vZ(a,"updtlq"+b)};
vZ=function(a,b,c){c=void 0===c?!1:c;a.na()||(a.ea(),(CI(a.videoData)||c)&&a.V("ctmp","drmlog",b))};
Dxa=function(a){var b;if(b=g.gr()){var c;b=!(null===(c=a.D.B)||void 0===c||!c.u)}b&&(b=a.D,b=b.B&&b.B.u?b.B.u():null,vZ(a,"mtr."+g.sf(b,3),!0))};
AZ=function(a,b,c){g.O.call(this);this.videoData=a;this.Sa=b;this.playerVisibility=c;this.Nq=0;this.da=this.Ba=null;this.F=this.B=this.u=!1;this.D=this.C=0};
DZ=function(a,b,c){var d=!1,e=a.Nq+3E4<(0,g.N)()||!1,f;if(f=a.videoData.ba("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.B);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.Oa;if(!e&&((null===f||void 0===f?0:hx(f))||(null===f||void 0===f?0:fx(f))))if(a.videoData.ba("html5_disable_codec_on_platform_errors"))a.Sa.D.R.add(f.Db),d=e=!0,c.cfalls=f.Db;else{var h;if(h=a.videoData.ba("html5_disable_codec_for_playback_on_error")&&
a.Ba){h=a.Ba.K;var l=f.Db;h.Aa.has(l)?h=!1:(h.Aa.add(l),h.aa=-1,VD(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Db)}if(!e)return Exa(a,c);a.Nq=(0,g.N)();e=a.videoData;e=e.fh?e.fh.dD()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");BZ(a,"qoe.restart",c);if(e&&Fxa(a))return CZ(a),!0;dr("philips")&&Gxa(a);!a.videoData.ba("html5_disable_codec_on_platform_errors")&&f&&hx(f)?(a.Sa.D.disableAv1(),d=!0):a.Ba?(b=a.Ba,c=(c=jA(b.B)||b.B.B)?c.u:b.B.u,c.P+=1,$D(b.K,c)):a.videoData.fh&&a.videoData.fh.nA();a.V("newelementrequired",
d);return!0};
Exa=function(a,b){if(a.videoData.Rg)return!1;a.Sa.Aa+=1;if(10>=a.Sa.Aa)return!1;b.exiled=""+a.Sa.Aa;BZ(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
Gxa=function(a){if("GAME_CONSOLE"!==a.Sa.deviceParams.cplatform)try{window.close()}catch(b){}};
Fxa=function(a){return a.u||"yt"!==a.Sa.Y?!1:a.videoData.Rg?25>a.videoData.pj:!a.videoData.pj};
CZ=function(a){a.u||(a.u=!0,a.V("signatureexpiredreloadrequired"))};
Hxa=function(a,b){if(a.da&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.da.Sh();b.details.merr=c?c.toString():"0";b.details.msg=a.da.Bo()}};
Ixa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
Kxa=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="18610";if(Fxa(a))return c?(a.B=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),BZ(a,b.errorCode,b.details),CZ(a)),!0;6048E5<(0,g.N)()-a.Sa.Ta&&Jxa(a,"signature");return!1};
Jxa=function(a,b){try{window.location.reload();BZ(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Sa.ba("tvhtml5_retire_old_players")&&g.wD(a.Sa)&&Gxa(a)};
Lxa=function(a,b){a.Sa.D.B=!1;BZ(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
EZ=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{BA:!1}:d).BA)};
BZ=function(a,b,c){a.V("qoeerror",b,c)};
Mxa=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
Nxa=function(a){navigator.mediaCapabilities?FZ(a.videoInfos).then(function(){return a},function(){return a}):Ys(a)};
FZ=function(a){var b=navigator.mediaCapabilities;if(!b)return Ys(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.zb||1E6,framerate:d.video.fps||30}:null})});
return qda(c).then(function(d){for(var e=0;e<d.length;e++)a[e].D=d[e].smooth,a[e].B=d[e].powerEfficient;return a},function(){return a})};
GZ=function(a,b,c){this.W=a;this.Yr=b;this.u=c;this.P=this.I=this.K=this.C=this.B=this.F=this.R=this.D=0;this.playbackRate=1};
Pxa=function(a,b,c){!g.Q(a.W.experiments,"html5_tv_ignore_capable_constraint")&&g.wD(a.W)&&(c=c.compose(Oxa(a,b)));return c};
Qxa=function(a){return a.ba("html5_exponential_memory_for_sticky")?.5>WC(a.W.fd,"sticky-lifetime")?"auto":HZ():HZ()};
Rxa=function(a,b){var c=new DC(0,0,!1,"o");if(a.ba("html5_varispeed_playback_rate")&&1<a.playbackRate){c=a.W.D;for(var d=a.playbackRate,e=480,f=g.q(b.La.videoInfos),h=f.next();!h.done;h=f.next())if(h=h.value,zC(c,h,d)){e=h.video.Fc;break}c=new DC(0,e,!0,"o")}else 1<a.playbackRate&&(c=new DC(0,480,!0,"o"));return c};
Oxa=function(a,b){if(g.wD(a.W)&&iC(a.W.D,jC.HEIGHT))var c=b.La.videoInfos[0].Ma().Fc;else{c=b.La.Lc();var d;mD(a.W)&&(d=window.screen&&window.screen.width?new g.ie(window.screen.width,window.screen.height):null);d||(d=a.W.Hn?a.W.Hn.clone():a.Yr.getPlayerSize());(oD||fE||c)&&d.scale(g.GD());c=d;AI(b.videoData)||qJ(b.videoData);var e=b.La.videoInfos;if(e.length){d=.85;var f=e[0].Ma();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||kD||(d=.45);f=e[0];var h=f.Ma();e=g.q(e);for(var l=
e.next();!l.done&&!(f=h=l.value,h=h.Ma(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===f.Yb()?Xw(h.width,h.height):h.quality;c=FC("auto",c,!1,"r")}else c=UD;c=c.u}c&&(c=Math.max(c,360));return new DC(0,c,!1,"r")};
Sxa=function(a,b){return We(a,function d(){var e;return xa(d,function(f){if(!b.La.Lc())return f["return"](void 0);e=b.La.videoInfos;return f["return"](FZ(e))})})};
Txa=function(a,b){return We(a,function d(){var e,f,h=this;return xa(d,function(l){if(1==l.u)return(e=b.La.videoInfos.find(function(m){return hx(m)}))?null!==e.B?(l.u=2,l=void 0):l=sa(l,FZ([e]),2):l=l["return"](!1),l;
f=e.B||!1;h.u.Na("mcrsp","itag."+e.id+";smooth."+ +e.D+";efficient."+ +f);return l["return"](f)})})};
Vxa=function(a,b){if(!b.videoData.Oa||a.ba("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.R&&(a.D=0);a.D++;a.R=g.A();if(4!==a.D)return!1;Uxa(a,b.videoData.Oa);return!0};
Xxa=function(a,b,c,d){if(!b||!c||!b.videoData.Oa)return!1;var e=g.P(a.W.experiments,"html5_df_downgrade_thresh"),f=a.ba("html5_log_media_perf_info"),h=g.P(a.W.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.N)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.P;a.I=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.nk&&a.u.Na("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.wD(a.W))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;Uxa(a,b.videoData.Oa);a.u.Na("dfd",Wxa());return!0};
Yxa=function(a,b){return 0>=g.P(a.W.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.Ma()&&32<b.Ma().fps)?!1:3<=a.C?(a.C=0,!0):!1};
Uxa=function(a,b){var c=b.Ma().Fc-1;Zxa(b.Db,b.Ma().fps,c);c=a.u;c.Ba&&hE(c.Ba.K,c.W)};
$xa=function(a,b){if(!b.La.Lc())return UD;var c=a.W.ba("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.P(a.W.experiments,"html5_performance_cap_floor");e=a.W.u?240:e;for(var f=g.q(b.La.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!hx(l))if(h=lC(l.Db,l.Ma().fps),l=l.Ma().Fc,Math.max(h,e)>=l){d=l;break}}return new DC(0,d,!1,"b")};
aya=function(a,b){a.ba("html5_log_media_perf_info")&&(a.u.Na("perfdb",Wxa()),a.u.Na("hwc",""+navigator.hardwareConcurrency,!0),b&&a.u.Na("mcdb",b.La.videoInfos.filter(function(c){return!1===c.D}).map(function(c){return c.Yb()}).join("-")))};
Wxa=function(){var a=Hb(IZ(),function(b){return""+b});
return g.vB(a)};
JZ=function(a,b){g.C.call(this);this.provider=a;this.I=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.AM;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.F(this.send,6E4,this);this.C=!1;g.D(this,this.delay)};
bya=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.rY(a.provider),a.delay.start()))};
cya=function(a){if(!(0>a.B)){var b=g.rY(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.IM(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
dya=function(a){switch(a.W.lu){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
eya=function(a){return(!a.ba("html5_health_to_gel")||a.W.Ta+36E5<(0,g.N)())&&(a.ba("html5_health_to_gel_canary_killswitch")||a.W.Ta+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===dya(a))?a.ba("html5_health_to_qoe"):!0};
KZ=function(a,b,c,d,e){var f={format:"RAW"},h={};cq(a)&&dq()&&(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.Zf=e);return 1<Object.keys(f).length?f:null};
LZ=function(a,b,c,d,e,f){dq()&&c.token&&(a=g.Md(a,{ctt:c.token,cttype:c.NA,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Zp(a),Object.keys(c).includes("cpn")),f?Bs(a,b):As(a,b)):b?(f=g.Zp(a),Object.keys(f).includes("cpn"),g.qq(a,b)):g.pu(a,d)};
g.NZ=function(a){g.C.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.Aa=NaN;this.Pc="N";this.I=this.Ya=this.Ga=this.ma=this.C=0;this.aa=this.kb="";this.Qa=this.X=NaN;this.Ja=0;this.ub=-1;this.Ta=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ha=this.isOffline=this.Y=!1;this.Zb=[];this.R=null;this.P=this.fa=this.D=!1;this.B=-1;this.za=!1;this.Nb=new g.F(this.OK,750,this);this.K=this.adCpn="";this.adFormat=void 0;this.kc=0;g.D(this,this.Nb);(a=navigator.getBattery?navigator.getBattery():
null)&&a.then&&a.then(function(c){b.R=c});
g.MZ(this,0,"vps",["N"])};
g.MZ=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
OZ=function(a,b){var c=a.provider.u();g.MZ(a,b,"cmt",[c.toFixed(3)]);c=a.provider.Mi();if(a.F&&1E3*c>a.F.xF+100&&a.F){var d=a.F,e=d.isAd;a.ia=1E3*b-d.NR-(1E3*c-d.xF)-d.FR;a.Na("gllat","l."+a.ia.toFixed()+";prev_ad."+ +e);delete a.F}};
PZ=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.rY(a.provider);var c=a.provider.zq();if(!isNaN(a.X)&&!isNaN(c.B)){var d=c.B-a.X;0<d&&g.MZ(a,b,"bwm",[d,(c.D-a.Qa).toFixed(3)])}isNaN(a.X)&&c.B&&a.isOffline&&(a.isOffline=!1,g.MZ(a,g.rY(a.provider),"is_offline",[a.isOffline?"1":"0"]));a.X=c.B;a.Qa=c.D;isNaN(c.bandwidthEstimate)||g.MZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.nk&&c.u&&a.Na("bwinfo",c.u);a.R&&g.MZ(a,b,"bat",[a.R.level,a.R.charging?"1":"0"]);d=a.provider.getVisibilityState();
a.ub!==d&&(g.MZ(a,b,"vis",[d]),a.ub=d);OZ(a,b);(d=fya(a.provider))&&d!==a.Ja&&(g.MZ(a,b,"conn",[d]),a.Ja=d);gya(a,b,c)};
gya=function(a,b,c){if(!isNaN(c.dm)){var d=c.dm;c.C<d&&(d=c.C);g.MZ(a,b,"bh",[d.toFixed(3)])}};
QZ=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.rh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.F(a.reportStats,0,a)).start()};
hya=function(a){a.provider.videoData.an&&RZ(a,"prefetch");a.provider.videoData.pj&&a.Na("reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.pj);a.provider.videoData.Zi&&RZ(a,"monitor");a.provider.videoData.isLivePlayback&&RZ(a,"live");a.provider.videoData.gg&&a.Na("ctrl",a.provider.videoData.gg,!0);if(a.provider.videoData.nf){var b=a.provider.videoData.nf.replace(/,/g,"_");a.Na("ytp",b,!0)}a.provider.videoData.lH&&(b=a.provider.videoData.lH.replace(/,/g,"."),a.Na("ytrexp",
b,!0));if(!g.Q(a.provider.W.experiments,"html5_disable_gpu_reporting")){var c=a.provider.W.experiments;b=a.provider.videoData;c=g.Q(c,"enable_white_noise")||g.Q(c,"enable_webgl_noop")||g.Q(c,"enable_gpu_logging");var d=b.mo()||b.Vj()||b.Wj()||b.Pj(),e=b.La&&hx(g.db(b.La.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.SZ)())&&(a.u.gpu=[b])}a.Aa=Ho(function(){a.reportStats()},1E4)};
iya=function(a){0<=a.B||(a.provider.W.ce||3!==a.provider.getVisibilityState()?a.B=g.rY(a.provider):a.za=!0)};
RZ=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
jya=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.I=this.F=0;this.P=this.provider.De().volume;this.R=this.provider.De().muted;this.C=TZ(this.provider)};
UZ=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.db(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=TZ(a.provider);a.B=a.u};
kya=function(a){return a.F+a.provider.u()-a.B};
lya=function(a){a.segments.length&&a.u===a.B||UZ(a);var b=a.segments;a.segments=[];return b};
nya=function(a){mya(a);a.I=Ho(function(){a.update()},100);
a.lastUpdateTime=g.rY(a.provider);a.C=TZ(a.provider)};
mya=function(a){window.clearInterval(a.I);a.I=NaN};
oya=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
VZ=function(a,b,c,d){this.W=b;this.segments=[];this.experimentIds=[];this.Uj=this.ma=this.isFinal=this.ub=this.fa=this.autoplay=this.autonav=!1;this.Ga="yt";this.C=this.F=null;this.sendVisitorIdHeader=this.Ub=!1;this.pageId="";this.B="watchtime"===c;this.D="playback"===c;this.ia="delayplay"===c;this.ha="atr"===c;this.Nb="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ha?"/api/stats/"+c:"//"+b.Gp+"/api/stats/"+c;this.Qc=!b.ba("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.D&&
b.pfpChazalUi&&a.qc;this.Ya=b.ba("embeds_enable_intersection_observer_v2");d&&(this.ma=d.fs,d.rtn&&(this.C=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.Zb=d.mos,this.Cc=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Ta=d.inview),d.size&&(this.Qa=d.size));this.deviceParams=g.Vb(b.deviceParams);this.kb=b.Qa;this.experimentIds=b.experiments.experimentIds;this.Ob=b.Lg;this.Ga=b.Y;this.region=b.region;this.userAge=b.userAge;this.Ja=
b.wi;this.fd=Bp();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.R=g.Q(b.experiments,"vss_pings_using_networkless");this.P=g.Q(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.uf();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=nJ(a);this.autonav=a.Kh||this.autonav;this.contentVideoId=lJ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.fa=a.qc;a.vi&&(this.I=a.vi,this.aa=a.Gg);
a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.wh=a.wh;this.yh=a.yh;a.Oa&&(this.videoFormat=a.Oa.Yb(),a.pd&&a.pd.Yb()!==this.videoFormat&&(this.Y=a.pd.Yb()));a.ra&&LB(a.ra)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Qc?"embedded_unbranded":kJ(a);this.Uj=a.Uj;this.lo=a.lo;if(b=ZI(a))this.kc=b;this.Rq=a.Rq;this.bh=a.bh;this.eventId=a.eventId;this.playlistId=a.VH||a.playlistId;this.Sv=a.Sv;this.gg=a.gg;this.nf=a.nf;this.Ur=a.Ur;this.subscribed=a.subscribed;this.videoId=
a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Mz=a.Mz;this.referrer=a.referrer;this.Gr=a.jH||a.Gr;this.pp=a.pp;this.tw=a.tw;this.userGenderAge=a.userGenderAge;this.Qs=a.Qs};
WZ=function(a,b){return KZ(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
pya=function(a,b){return function(){var c=a.uri,d=XZ(a),e=WZ(a),f=a.R,h=a.P;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.Md(c,d);f?(null==e&&(e={}),h?Bs(c,e):As(c,e)):e?g.qq(c,e):g.pu(c)}};
XZ=function(a){var b={ns:a.Ga,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.wh),ei:a.eventId,fmt:a.videoFormat,fs:a.ma?"1":"0",rt:a.u(a.Dc),of:a.Mz,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.kb,lact:a.fd,live:a.kc,cl:(347292251).toString(),mos:a.Zb,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Cc};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ua(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.fa&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Uj&&(b.splay="1");a.yh&&(b.delay=a.yh);a.Ob&&(b.hl=a.Ob);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ja&&(b.uga=a.Ja+a.userAge);void 0!==a.Aa&&(b.len=a.u(a.Aa));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.C&&(b.rtn=a.u(a.C));a.Gr&&(b.feature=a.Gr);a.playlistId&&(b.list=a.playlistId);a.gg&&(b.ctrl=a.gg);a.nf&&(b.ytr=a.nf);a.Ur&&(b.ssrt="1");a.Y&&(b.afmt=a.Y);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.za&&(b.lio=a.u(a.za));a.B?(b.idpj=a.lo,b.ldpj=a.Rq,null!=a.F&&(b.rti=a.u(a.F)),a.Qs&&(b.ald=a.Qs)):void 0!==a.adType&&(b.at=a.adType);a.Qa&&(a.D||a.ia||a.B&&a.Ya)&&(b.size=a.Qa);null!=a.Ta&&(a.D||a.ia||a.B&&a.Ya)&&(b.inview=a.u(a.Ta));a.B&&(b.volume=YZ(a,g.Oc(a.segments,function(d){return d.volume})),b.muted=YZ(a,g.Oc(a.segments,function(d){return d.muted?1:0})),b.st=YZ(a,g.Oc(a.segments,function(d){return d.startTime})),b.et=YZ(a,g.Oc(a.segments,function(d){return d.endTime})),
ki(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=YZ(a,g.Oc(a.segments,function(d){return d.playbackRate}))),ki(a.segments,function(d){return"-"!==d.In})&&(b.als=g.Oc(a.segments,function(d){return d.In}).join(",")));
ki(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=YZ(a,g.Oc(a.segments,function(d){return d.visibilityState})));
ki(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=YZ(a,g.Oc(a.segments,function(d){return d.connectionType})));
ki(a.segments,function(d){return 0!==d.C})&&(b.blo=YZ(a,g.Oc(a.segments,function(d){return d.C})));
ki(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Oc(a.segments,function(d){return d.B}).join(","));
ki(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Oc(a.segments,function(d){return d.clipId}).join(","));
if(ki(a.segments,function(d){return!!d.u})){var c="au";
a.D&&(c="au_d");b[c]=g.Oc(a.segments,function(d){return d.u}).join(",")}dq()&&a.I&&(b.ctt=a.I,b.cttype=a.aa,b.mdx_environment=a.mdxEnvironment);
a.Nb&&(b.etype=void 0!==a.K?a.K:0);a.pp&&(b.uoo=a.pp);a.tw&&(b.upt=a.tw);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=qya[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
YZ=function(a,b){return g.Oc(b,a.u).join(",")};
ZZ=function(a){g.C.call(this);this.provider=a;this.currentPlayerState="paused";this.B=NaN;this.I=[10,10,10,40];this.R=this.K=0;this.aa=this.Y=this.ha=this.fa=this.X=this.P=this.C=!1;this.F=this.D=NaN;this.u=new jya(a)};
tya=function(a){if(!a.C){g.Q(a.provider.W.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.Or||g.Fo(Error("Playback for EmbedPage"));var b=$Z(a,"playback");a.I=[10+a.provider.videoData.lo,10,10,40+a.provider.videoData.Rq-a.provider.videoData.lo,40];nya(a.u);b.C=a_(a,!0);b.send();if(a.provider.videoData.Ev){b=a.provider.W;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.Ev,oid:c.zG,ptchn:c.yG,pltype:c.AG,content_v:lJ(c)};
b=g.Md(b.P+"ptracking",c);b_(a,b)}a.provider.videoData.gq&&(c_(a,"playback"),a.D||rya(a));a.provider.videoData.yh||sya(a);a.C=!0;a=a.u;a.u=a.provider.u();a.lastUpdateTime=g.rY(a.provider);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.K=!0}};
a_=function(a,b,c){c=void 0===c?NaN:c;var d=g.rY(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.I[a.K];a.K+1<a.I.length&&a.K++;var f=c+e;a.B=g.Go(function(){if(!a.na()){a.B=NaN;a.u.update();var h=lya(a.u),l=uya(a,h);b&&(l.F=f);var m=a.provider.ba("html5_expanded_max_vss_pings")?1E3:400;m=a.R>m;!(1<h.length)&&h[0].isEmpty()||m||(l.C=a_(a,!0,f));l.send();a.R++}},1E3*(f-d));
return f};
$Z=function(a,b){var c=a.provider,d=c.De();g.Ua(d,c.videoData.De());g.Ua(d,{state:a.currentPlayerState});c=new VZ(a.provider.videoData,a.provider.W,b,d);c.wh=a.provider.u();a.provider.videoData.isLivePlayback||(c.Aa=a.provider.I());a.provider.videoData.ra&&(d=a.provider.videoData.ra.Ue(c.wh))&&(c.za=d-c.wh);c.Dc=g.rY(a.provider);c.segments=[TZ(a.provider)];return c};
uya=function(a,b){var c=$Z(a,"watchtime");if(a.provider.videoData.enableServerStitchedDai&&0<a.F){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.F,e.endTime-=a.F;c.wh-=a.F}c.segments=b;c.wh=a.u.u;return c};
d_=function(a){a.u.update();return uya(a,lya(a.u))};
sya=function(a){a.provider.videoData.remarketingUrl&&!a.fa&&(b_(a,a.provider.videoData.remarketingUrl),a.fa=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.ha&&(b_(a,a.provider.videoData.youtubeRemarketingUrl),a.ha=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(b_(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.aa&&(b_(a,a.provider.videoData.ppvRemarketingUrl),a.aa=!0);a.rp()};
vya=function(a){if(!a.na()&&a.C){a.currentPlayerState="paused";var b=d_(a);b.isFinal=!0;b.send();g.Io(a.D);a.dispose()}};
rya=function(a){a.D=Ho(function(){c_(a,"heartbeat")},3E4)};
c_=function(a,b){var c=a.provider.W,d=a.provider.videoData,e={ns:c.Y,el:kJ(d),eurl:c.Qa,fmt:d.Oa?d.Oa.Yb():0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.u(),video_id:d.videoId,metric:b};nJ(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=kya(a.u));g.Ua(e,c.deviceParams);b_(a,g.Md(c.P+"live_204",e))};
wya=function(a,b,c){a.P||(c||(c=$Z(a,"atr")),c.X=b,c.send(),a.P=!0)};
b_=function(a,b){var c=a.provider.videoData.uf(),d=a.provider.ba("web_player_vss_pageid_header")?a.provider.W.pageId:void 0,e=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.Q(a.provider.W.experiments,"vss_pings_using_networkless"),h=g.Q(a.provider.W.experiments,"vss_send_then_write");c=KZ(b,d,e,c,void 0);LZ(b,c,{token:a.provider.videoData.vi,NA:a.provider.videoData.Gg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
xya=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.In=this.clipId="-"};
e_=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.videoData=a;this.W=b;this.B=void 0;this.De=c;this.I=d;this.u=e;this.zq=f;this.D=h;this.getAudioTrack=l;this.getPlaybackRate=m;this.C=n;this.getVisibilityState=p;this.fu=r||function(){};
this.F=t||function(){};
this.Mi=w||function(){return-1}};
g.rY=function(a){return yya(a)()};
yya=function(a){if(!a.B){var b=g.Ta(function(d){var e=(0,g.N)();d&&631152E6>=e&&(M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.Q(a.W.experiments,"html5_validate_yt_now")),c=b();
a.B=function(){return Math.round(b()-c)/1E3};
a.F()}return a.B};
fya=function(a){if(navigator.connection&&navigator.connection.type)return zya[navigator.connection.type]||zya.other;if(g.wD(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
TZ=function(a){var b=new xya;b.B=a.De().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.ke&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=fya(a);b.volume=a.De().volume;b.muted=a.De().muted;b.clipId=a.De().clipid||"-";b.In=a.videoData.In||"-";return b};
g.f_=function(a){g.C.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.C=void 0;this.D=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.mp&&(this.u=new ZZ(this.provider),g.D(this,this.u),this.qoe=new g.NZ(this.provider),g.D(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.C=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.C,this.u));eya(this.provider)&&(this.B=new JZ(this.provider,function(c){b.Na("h5h",c)}),g.D(this,this.B))};
Aya=function(a){var b;a.provider.videoData.enableServerStitchedDai&&a.C?null===(b=a.D.get(a.C))||void 0===b?void 0:UZ(b.u):a.u&&UZ(a.u.u)};
Bya=function(a,b){a.u&&wya(a.u,b)};
Cya=function(a){if(!a.u)return null;var b=$Z(a.u,"atr");return function(c){a.u&&wya(a.u,c,b)}};
Dya=function(a,b,c){var d=new g.rI(b.W,c);d.adFormat=d.Xo;b=new ZZ(new e_(d,b.W,b.De,function(){return d.lengthSeconds},b.u,b.zq,b.D,function(){return d.getAudioTrack()},b.getPlaybackRate,b.C,b.getVisibilityState,b.fu,b.F,b.Mi));
b.F=a.provider.u();g.D(a,b);return b};
Eya=function(a){this.D=this.mediaTime=NaN;this.B=this.u=!1;this.C=.001;a&&(this.C=a)};
g_=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
h_=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.u)b!==a.mediaTime&&(a.u=!1);else if(0<b&&a.mediaTime===b)return c-a.D>(d||!a.B?1500:400);a.mediaTime=b;a.D=c;return!1};
Fya=function(a,b){this.videoData=a;this.La=b};
Gya=function(a,b,c){return b.Vs(c).then(function(){return Ys(new Fya(b,b.La))},function(d){d instanceof Error&&g.Fo(d);
d=b.isLivePlayback&&!g.BC(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Og,drm:""+ +TI(b),f18:""+ +(0<=b.xs.indexOf("itag=18")),c18:""+ +nB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.ra&&(TI(b)?(e.f142=""+ +!!b.ra.u["142"],e.f149=""+ +!!b.ra.u["149"],e.f279=""+ +!!b.ra.u["279"]):(e.f133=""+ +!!b.ra.u["133"],e.f140=""+ +!!b.ra.u["140"],e.f242=""+ +!!b.ra.u["242"]),e.cAVC=""+ +oB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +oB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +oB('video/webm; codecs="vp9"'));if(b.md){e.drmsys=b.md.u;var f=0;b.md.B&&(f=Object.keys(b.md.B).length);e.drmst=""+f}return new uB(d,!0,e)})};
Hya=function(a){this.F=a;this.C=this.B=0;this.D=new PY(50)};
j_=function(a,b,c){g.O.call(this);this.videoData=a;this.experiments=b;this.R=c;this.B=[];this.D=0;this.C=!0;this.F=!1;this.I=0;c=new Iya;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.Zi?c.B=3:g.eJ(a)&&(c.B=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.I=!0);var d=OI(a);c.F=2===d||-1===d;c.F&&(c.X++,21530001===MI(a)&&(c.K=g.P(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(dr("trident/")||dr("edge/"))d=g.P(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.P(b,"html5_minimum_readahead_seconds")&&(c.C=g.P(b,"html5_minimum_readahead_seconds"));g.P(b,"html5_maximum_readahead_seconds")&&(c.R=g.P(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.P(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.P(b,"html5_allowable_liveness_drift_chunks"));g.P(b,"html5_readahead_ratelimit")&&(c.P=g.P(b,"html5_readahead_ratelimit"));switch(MI(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.Y=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Zi&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(MI(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=i_(this,b);this.ea()};
Jya=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.Y&&3===OI(a.videoData)&&--c;return k_(a)*c};
l_=function(a,b){var c=a.Fh();var d=a.policy.u;a.F||(d=Math.max(d-1,0));d*=k_(a);return b>=c-d};
Kya=function(a,b,c){b=l_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.K=2===a.policy.B||3===a.policy.B&&a.C};
Lya=function(a,b){var c=l_(a,b);a.F!==c&&a.V("livestatusshift",c);a.F=c};
k_=function(a){return a.videoData.ra?ZB(a.videoData.ra)||5:5};
i_=function(a,b){b=Math.max(Math.max(a.policy.X,Math.ceil(a.policy.C/k_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.R/k_(a))),b)};
Iya=function(){this.X=1;this.C=0;this.R=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.Y=this.I=!1};
o_=function(a,b,c,d,e){g.C.call(this);this.W=a;this.videoData=b;this.V=c;this.visibility=d;this.P=e;this.Ba=this.da=null;this.D=this.u=0;this.B={};this.playerState=new g.AM;this.C=new g.F(this.X,1E3,this);g.D(this,this.C);this.fa=new m_({delayMs:g.P(this.W.experiments,"html5_seek_timeout_delay_ms")});this.R=new m_({delayMs:g.P(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.ha=n_(this,"html5_seek_set_cmt");this.Y=n_(this,"html5_seek_jiggle_cmt");this.aa=n_(this,"html5_seek_new_elem");
n_(this,"html5_decoder_freeze_timeout");this.ma=n_(this,"html5_unreported_seek_reseek");this.I=n_(this,"html5_long_rebuffer_jiggle_cmt");this.K=n_(this,"html5_reload_element_long_rebuffer");this.F=n_(this,"html5_ads_preroll_lock_timeout");this.ia=new m_({delayMs:g.P(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yp:!g.Q(this.W.experiments,"html5_report_slow_ads_as_error")})};
n_=function(a,b){var c=g.P(a.W.experiments,b+"_delay_ms"),d=g.Q(a.W.experiments,b+"_cfl");return new m_({delayMs:c,Yp:d})};
p_=function(a,b,c,d,e,f,h){Mya(b,c)?(d=a.sb(b),d.wn=h,d.wdup=a.B[e]?"1":"0",a.V("qoeerror",e,d),a.B[e]=!0,b.Yp||f()):(b.Vv&&b.B&&!b.D?(f=(0,g.N)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.Vv,f=b.u&&f-b.u>b.eA||c?b.D=!0:!1):f=!1,f&&(f=a.sb(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.vB(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.B[e]=!1)))};
m_=function(a){a=void 0===a?{}:a;var b=void 0===a.eA?1E3:a.eA,c=void 0===a.Vv?3E4:a.Vv,d=void 0===a.Yp?!1:a.Yp;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.eA=b;this.Vv=c;this.Yp=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
Mya=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();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};
r_=function(a,b,c,d){g.O.call(this);var e=this;this.videoData=a;this.W=b;this.visibility=c;this.Ta=d;this.policy=new Nya(this.W);this.I=new o_(this.W,this.videoData,(0,g.z)(this.V,this),this.visibility,this.Ta);a={};this.fa=(a.seekplayerrequired=this.QR,a.videoformatchange=this.Gz,a);this.playbackData=null;this.Aa=new rt;this.K=this.u=this.Ba=this.da=null;this.B=NaN;this.C=0;this.D=null;this.ha=NaN;this.F=this.R=null;this.X=this.P=!1;this.aa=new g.F(function(){Oya(e,!1)},this.policy.u);
this.Ya=new g.F(function(){q_(e)});
this.ma=new g.F(function(){e.ea();e.P=!0;Pya(e)});
this.Ga=this.timestampOffset=0;this.ia=!0;this.Ja=0;this.Qa=NaN;this.Y=new g.F(function(){var f=e.W.fd;f.u+=1E4/36E5;f.u-f.C>1/6&&(TC(f),f.C=f.u);e.Y.start()},1E4);
this.ba("html5_unrewrite_timestamps")?this.fa.timestamp=this.ip:this.fa.timestamp=this.BM;g.D(this,this.Aa);g.D(this,this.aa);g.D(this,this.ma);g.D(this,this.Ya);g.D(this,this.Y)};
Qya=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Hya(function(){a:{if(a.playbackData&&a.playbackData.La.Lc()){if(LI(a.videoData)&&a.Ba){var c=a.Ba.Ya.u()||0;break a}if(a.videoData.ra){c=a.videoData.ra.R;break a}}c=0}return c}),a.u=new j_(a.videoData,a.W.experiments,function(){return a.Oc(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
u_=function(a,b){a.Ba&&wt(a.Ba,a.fa,a);(a.Ba=b)?(vt(b,a.fa,a),s_(a,!0)):t_(a);a.I.Ba=b};
Rya=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.u&&!(c>=e.B&&c<e.C)){var f=e.u.Gh(c);-1!==f&&(e.B=e.u.Xe(f),e.C=e.B+e.u.getDuration(f),f=g.A()/1E3-e.u.Ue(f),f-=e.F(),e.D.add(f))}}a.u&&(d&&(d=a.u,e=a.da?TS(a.da):0,d.D++,3>d.D||g.A()-d.I<d.policy.P||(d.I=g.A(),d.B.push(e),50<d.B.length&&d.B.shift(),d.ea())),d=a.u,Kya(d,c,void 0===b?!0:b),Lya(d,c),b&&Oya(a,!0))};
Oya=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!l_(c,d)&&c.Tj()?(c.ea(),c.policy.I&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):d<c.videoData.Kc()?(c.ea(),c=Math.min(c.videoData.Kc()+10,c.Fh())):c=NaN;if(!isNaN(c)){if(a.ba("html5_in_buffer_ptl")&&a.Ba&&b){d=a.aa.isActive();var e=a.u.Fh();if((e=hia(a.Ba,e-a.yc()))&&!d){a.policy.u&&a.aa.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.yc()));a.seekTo(e+a.yc());return}}a.ba("html5_peg_to_live_logging")&&
a.V("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.yc()));a.seekTo(c)}}};
s_=function(a,b){if(a.u&&a.Ba){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.u,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){c.ea();var e=i_(c,c.u-1);break b}if(c.policy.D){c.ea();e=i_(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.ea(),c.B=[],c.D=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",Jya(a.u));c=a.Ba;d=a.u.u;e=a.u;e=(e.u-1+e.policy.u)*k_(e);var f=a.u.policy.K;c.Zb=Math.max(d-
1,0);c.P&&(c.P.aa=e);c.ke=f}};
v_=function(a){return a.videoData.isLivePlayback&&!!a.videoData.La&&!a.videoData.La.Lc()};
Pya=function(a){Sya(a).then(void 0,function(){t_(a)});
Tya(a).then(function(c){a.ea();a.F&&(a.F.resolve(c),a.V("seekend"),CI(a.videoData)&&(c=a.sb(),c["native"]=""+ +a.X,a.V("ctmp","seekEnd",g.vB(c))));Uya(a)},function(){t_(a)});
a.V("seekstart");if(CI(a.videoData)){var b=a.sb();b["native"]=""+ +a.X;a.V("ctmp","seekStart",g.vB(b))}};
Sya=function(a){if(!a.R)if(a.Ba)if(isFinite(a.B))a.ea(),a.R=a.Ba.seek(a.B-a.timestampOffset);else{a.ea();var b=a.Ba;yF(b);b.P&&jE(b.P,b.B.u);KF(b);b=b.X;var c=Math.max(b.B.C.F||0,b.u.C.F||0);uA(b.B);uA(b.u);var d=b.F,e;for(e in d.u)Px(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.V("setcurrenttime",c);b.C=!0;b.R=new py;a.R=b.R;a.B=a.Ba.getCurrentTime()+a.timestampOffset}else a.R=vm(a.B-a.timestampOffset);return a.R};
Tya=function(a){var b=a.D;b||(a.D=new py,b=a.D,q_(a));return b};
Vya=function(a,b,c){return isNaN(b)?NaN:g.ce(b,a.Kc(),a.Oc(c))};
q_=function(a){if(a.D)if(!a.ba("html5_nondash_live_seek_killswitch")&&v_(a)&&a.da&&0<a.da.yg()&&0<SS(a.da)&&(a.B=Vya(a,a.B,!1)),!a.da||!Wya(a))a.Ya.start(750);else if(!isNaN(a.B)&&isFinite(a.B)&&a.ha!==a.B-a.timestampOffset){var b=a.da.getCurrentTime()-a.B;if(Math.abs(b)<=a.Ja)Xya(a);else if(!a.videoData.isLivePlayback&&a.B>=a.Oc()-.1)a.B=a.Oc(),a.D.resolve(a.Oc()),a.V("ended");else try{var c=a.B-a.timestampOffset;a.ea();a.da.seekTo(c);a.I.u=c;a.ha=c;a.C=a.B}catch(d){a.ea()}}};
Wya=function(a){if(!a.da||0===a.da.yg()||0<a.da.Sh())return!1;var b=0<a.da.getCurrentTime();if(!a.ba("html5_nondash_mediaelementready_killswitch")&&!a.Lc()&&!a.videoData.isLivePlayback&&TI(a.videoData))return b;if(0<=a.B){var c=a.da.yq();if(c.length||!b)return cA(c,a.B-a.timestampOffset)}return b};
Xya=function(a){a.D?a.D.resolve(a.da.getCurrentTime()):a.ea()};
Uya=function(a){a.B=NaN;a.ha=NaN;a.D=null;a.R=null;a.F=null;a.P=!1;a.X=!1;a.Ja=0;a.aa.stop();a.ma.stop()};
t_=function(a){a.F&&a.ea();Uya(a)};
Yya=function(a){if(a.da){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Aa.N(a.da,c.value,function(d){var e=a.da;d=d.type;a.ea();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.D||a.X&&d!==a.B)a.D=new py,a.ha=d,e=e.getCurrentTime(),a.I.u=e,a.seekTo(d),a.X=!0;break;case "seeked":Xya(a);break;case "loadedmetadata":a.ia?(e="ss.",d=0,(fJ(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.ra?(d=a.videoData.liveUtcStartSeconds||a.videoData.Zk,e="utc.",d=a.Oc()-a.Ue(a.Oc())+d):a.videoData.ra&&a.videoData.ra.isManifestless&&a.videoData.Zk?(e="mss.",d=a.videoData.Zk+a.yc()):a.ba("html5_unrewrite_timestamps")&&a.videoData.kw&&(e="stss.",d=a.videoData.kw),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.ia=!1):a.videoData.Zk&&a.V("ctmp","startSeconds",""+e+(a.videoData.Zk+a.yc())),e=!!d):e=!1;a.ba("html5_nondash_live_seek_killswitch")&&
!e&&v_(a)&&(a.B=isFinite(a.B)?g.ce(a.B,a.Kc(),a.Oc()):a.Oc());q_(a);break;case "progress":q_(a)}});
a.F||a.C||a.policy.C||!a.da.Wv()||a.seekTo(.01)}};
Nya=function(a){this.u=g.P(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.Q(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.ba("html5_seek_over_discontinuities");this.C=a.ba("html5_requires_seek_for_playback_at_zero_killswitch")};
w_=function(){this.u=this.started=!1};
x_=function(){Jq.apply(this,arguments);this.B=new Headers};
y_=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.I=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()};
$ya=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+Zya[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};
bza=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;aza(a);return b};
aza=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
cza=function(a,b,c){return We(this,function e(){var f,h,l,m,n,p,r,t;return xa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.u=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);w.C=3;return sa(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,sa(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 y_(a);
t.update(b);t.update(c);var y=bza(t);t.update(t.F);t.update(y);y=bza(t);t.reset();f=y}return w["return"](f)}})})};
eza=function(a,b,c){return We(this,function e(){var f,h,l,m,n,p;return xa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.u=2;break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};r.C=3;return sa(r,dza(a),5);case 5:return m=r.B,sa(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 QS(a),Ura(p,c),f=p.encrypt(b)),r["return"](f)}})})};
dza=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
z_=function(a){var b=this,c=new QS(a);return function(d,e){return We(b,function h(){return xa(h,function(l){Ura(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
A_=function(a){this.u=a;this.iv=nZ(Ht())};
fza=function(a,b){return We(a,function d(){var e=this;return xa(d,function(f){return f["return"](cza(e.u.B,b,e.iv))})})};
B_=function(a){this.B=a;this.D=this.u=0;this.C=-1};
C_=function(a){var b=Vv(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=Vv(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
D_=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=C_(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:C_(a);break;case 1:a.u+=8;break;case 2:c=C_(a);a.u+=c;break;case 5:a.u+=4}}return!1};
E_=function(a,b,c){c=void 0===c?0:c;return D_(a,b)?C_(a):c};
F_=function(a,b){var c=void 0===c?"":c;if(!D_(a,b))return c;c=C_(a);if(!c)return"";var d=Tv(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.Ye(d)};
G_=function(a,b){var c=void 0===c?null:c;if(!D_(a,b))return c;c=C_(a);var d=Tv(a.B,a.u,c);a.u+=c;return d};
gza=function(a){this.iv=G_(new B_(a),5)};
hza=function(a){a=G_(new B_(a),4);this.u=new gza(new Mv([a]))};
jza=function(a){a=new B_(a);this.u=E_(a,1);this.itag=E_(a,3);this.lastModifiedTime=E_(a,4);this.xtags=F_(a,5);E_(a,6);E_(a,8);E_(a,9,-1);E_(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===iza[cx[""+this.itag]]};
kza=function(a){this.body=null;a=new B_(a);this.onesieProxyStatus=E_(a,1,-1);this.body=G_(a,4)};
lza=function(a){a=new B_(a);this.startTimeMs=E_(a,1);this.endTimeMs=E_(a,2)};
mza=function(a){var b=new B_(a);a=F_(b,3);var c=E_(b,5);this.u=E_(b,7);var d=G_(b,14);this.B=new lza(new Mv([d]));b=F_(b,15);this.C=a+";"+c+";"+b};
nza=function(a){this.C=a;this.B=!1;this.u=[]};
oza=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}};
pza=function(a){var b,c;return We(this,function e(){var f=this,h,l,m,n;return xa(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"](z_(a));l=window.crypto.subtle;p.C=2;return sa(p,dza(a),4);case 4:m=p.B;ta(p,3);break;case 2:return ua(p),p["return"](z_(a));case 3:return p["return"](function(r,t){return We(h,function y(){var x,B;return xa(y,function(E){if(1==E.u){if(n)return E["return"](n(r,t));x={name:"AES-CTR",
counter:t,length:128};E.C=2;B=Uint8Array;return sa(E,l.encrypt(x,m,r),4)}if(2!=E.u)return E["return"](new B(E.B));ua(E);n=z_(a);return E["return"](n(r,t))})})})}})})};
H_=function(a){g.O.call(this);var b=this;this.D=a;this.u={};this.C={};this.B=this.iv=null;this.queue=new nza(function(c,d){b.ea();b.V("STREAM_DATA",{id:c,data:d})})};
qza=function(a,b,c){var d=Vv(b,0);b=Tv(b,1);d=a.u[d]||null;a.ea();d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||oza(a))};
rza=function(a,b){We(a,function d(){var e=this,f,h,l,m,n,p,r,t;return xa(d,function(w){switch(w.u){case 1:return e.ea(),e.V("PLAYER_RESPONSE_RECEIVED"),f=Tv(b),w.C=2,sa(w,e.D(f,e.iv),4);case 4:h=w.B;ta(w,3);break;case 2:return l=ua(w),e.ea(),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new kza(new Mv([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new uB("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();r=m.body;
t=g.v.TextDecoder?(new TextDecoder).decode(r):g.Ye(r);e.ea();e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})};
I_=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)};
J_=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)}};
K_=function(a,b){if(268435455<b){J_(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(J_(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};
L_=function(a,b,c){K_(a,b<<3|2);b=c.length;K_(a,b);J_(a,b);a.B.set(c,a.u);a.u+=b};
M_=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(nZ(g.Xe(c)).buffer);L_(a,b,c)};
N_=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
sza=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};
O_=function(a){var b=a.value;this.name=a.name;this.value=b};
tza=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
uza=function(a){this.Hx=a.Hx};
vza=function(a,b){if(b+1<=a.totalLength){var c=Vv(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=Vv(a,b++);else if(2===c){c=Vv(a,b++);var d=Vv(a,b++);c=(c&63)+64*d}else if(3===c){c=Vv(a,b++);d=Vv(a,b++);var e=Vv(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=Vv(a,b++);d=Vv(a,b++);e=Vv(a,b++);var f=Vv(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),Qv(a,c,4)?c=Rv(a).getUint32(c-a.C,!0):(d=Vv(a,c+2)+256*Vv(a,c+3),c=Vv(a,c)+256*(Vv(a,
c+1)+256*d)),b+=5;return[c,b]};
wza=function(a){this.B=a;this.u=new Mv};
xza=function(a){var b=g.q(vza(a.u,0));var c=b.next().value;var d=b.next().value;d=g.q(vza(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).ln.split(b),b=d.iu,d=d.ln,a.B(c,b),a.u=d,xza(a))};
zza=function(a){var b,c;a:{var d,e=a.T().xi;if(e){var f=null===(c=yza())||void 0===c?void 0:c.primary;if(f&&e.baseUrl){c=new vw("https://"+f+e.baseUrl);if(e=null===(d=a.Cv)||void 0===d?void 0:d.urlQueryOverride)for(d=Cw(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=SC(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.Cv)||void 0===b?0:b.url)&&(c=new vw(a.Cv.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.Ld()};
P_=function(a,b,c){var d=this;this.videoData=a;this.eb=b;this.playerRequest=c;this.xhr=null;this.u=new py;this.D=!1;this.C=new g.F(this.F,1E4,this);this.W=a.T();this.B=new A_(this.W.xi.u);this.K=new wza(function(e,f){d.I.feed(e,f)});
this.I=Aza(this)};
Aza=function(a){var b=new H_(function(c,d){return a.B.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.eb.tick("orfb");a.D=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.eb.tick("oprr");a.u.resolve(c);a.C.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.eb.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){Q_(a,c.errorInfo)});
return b};
Q_=function(a,b){a.u.reject(b);a.C.stop();a.eb.tick("ore");a.xhr&&a.xhr.abort()};
Bza=function(a){for(var b=a.xhr;b.Mh();){var c=b.Vu();a.ea("handleAvailableSlices: slice length "+c.getLength());a.K.feed(c)}};
Dza=function(a){return We(a,function c(){var d=this,e,f;return xa(c,function(h){if(1==h.u)return sa(h,Cza(d),2);e=h.B;f={Hx:e};return h["return"](new uza(f))})})};
Cza=function(a){return We(a,function c(){var d=this,e,f,h,l,m;return xa(c,function(n){if(1==n.u)return sa(n,Eza(d),2);if(3!=n.u)return e=n.B,f=d.B.u.encryptedClientKey,h=d.B.iv,sa(n,fza(d.B,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new sza(m))})})};
Eza=function(a){return We(a,function c(){var d=this,e,f,h;return xa(c,function(l){switch(l.u){case 1:var m=d.W.ha;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new O_({name:"Content-Type",value:"application/json"})],p=d.videoData.uf();p&&n.push(new O_({name:"Authorization",value:"Bearer "+p}));n.push(new O_({name:"User-Agent",value:g.Vc}));(p=d.videoData.visitorData||to("VISITOR_DATA"))&&n.push(new O_({name:"X-Goog-Visitor-Id",value:p}));
(p=g.kB(d.W.experiments,"debug_sherlog_username"))&&n.push(new O_({name:"X-Youtube-Sherlog-Username",value:p}));p=JSON.stringify(d.playerRequest);e=new tza({url:m,httpHeaders:n,postBody:p});l.C=2;return sa(l,d.B.encrypt(e.pn()),4);case 4:f=l.B;ta(l,3);break;case 2:return ua(l),h=new uB("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
Kza=function(a,b,c,d,e,f){function h(m){return Fza(l,a)?Gza(a,e,f,c).then(function(){R_(a)},function(n){R_(a,!0);
throw n;}):Hza(a,b,c,m)}
a.na();a.Pd=!0;var l=a.T();return g.Q(l.experiments,"html5_onesie")&&g.Q(l.experiments,"html5_onesie_player_config")&&"yt"===l.Y?Iza(a).then(function(){return Jza(a,d,e,f)}).then(function(){R_(a)},function(m){m=wB(m);
if(m.u)return R_(a,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")};
Fza=function(a,b){return(a.ba("web_player_gvi_wexit")||("MWEB"===a.deviceParams.c?a.ba("web_player_gvi_wexit_mweb"):g.wD(a)?a.ba("web_player_gvi_wexit_living_room"):g.HD(a)?a.ba("web_player_gvi_wexit_web"):g.LD(a)?a.ba("web_player_gvi_wexit_embeds"):a.ba("web_player_gvi_wexit_other"))||g.Q(a.experiments,"hoffle_api")&&pJ(b))&&"yt"===a.Y&&"adunit"!==kJ(b)?!0:!1};
Iza=function(a){a=a.T().xi;if(!a||!a.u)return Promise.reject(new uB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};oz()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new uB("html5.missingapi",!1,a))):Promise.resolve()};
Jza=function(a,b,c,d){return We(this,function f(){var h,l,m,n,p,r;return xa(f,function(t){if(1==t.u)return a.fetchType="onesie",h=kU(a,c,d),l=new P_(a,b,h),sa(t,l.fetch(),2);m=t.B;n={player_response:m};a.Pd=!1;a.nh(n,!0);if(a.Pd||bJ(a))return t["return"](Promise.resolve());p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.Ki||""):p.successButUnplayable="1";r=new uB("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
Gza=function(a,b,c,d){return We(this,function f(){var h,l,m,n,p,r;return xa(f,function(t){switch(t.u){case 1:l=(h=a.isAd())?1:3,m=0;case 2:if(!(m<l)){t.u=4;break}if(!(0<m)){t.u=5;break}return sa(t,Mm(5E3),6);case 6:n=new g.tr("Retrying OnePlatform request",{attempt:m}),g.Is(n);case 5:return sa(t,Lza(a,b,c).then(function(){return!0},function(w){w=wB(w);
if(w.u)return Promise.reject(w);d(w);return!1}),7);
case 7:if(p=t.B)return t["return"]();m++;t.u=2;break;case 4:return r=h?"auth":"manifest.net.retryexhausted",t["return"](Promise.reject(new uB(r,!0,{backend:"op"})))}})})};
Lza=function(a,b,c){return We(this,function e(){var f,h,l,m,n,p,r,t,w,y,x,B,E,G,K;return xa(e,function(H){if(1==H.u)return f=a.uf(),h=void 0,f&&(S_||(S_=new x_),h=S_,Object.assign(h.B,{Authorization:"Bearer "+f})),l=kT(h),m=kU(a,b,c),n=bT(Mza),p=(0,g.N)(),r=!1,t=200,sa(H,fG(l,m,n),2);w=H.B;if(a.na())return H["return"]();w?w.error?(r=!0,t=w.error.code):w.errorMetadata&&(r=!0,t=w.errorMetadata.status):r=!0;if(r)return y=400===t||429===t,x=((0,g.N)()-p).toFixed(),B={backend:"op",rc:""+t,rt:x},E="manifest.net.connect",
429===t?E="auth":200<t&&(E="manifest.net.badstatus"),H["return"](Promise.reject(new uB(E,y,B)));a.Pd=!1;a.nh({raw_player_response:w},!0);if(a.errorCode)return G={ec:a.errorCode,ed:a.errorDetail,es:a.Ki||""},H["return"](Promise.reject(new uB("auth",!0,G)));if(!a.Pd&&!bJ(a))return K=a.isAd()?"auth":"manifest.net.retryexhausted",H["return"](Promise.reject(new uB(K,!0,{successButUnplayable:"1"})));H.u=0})})};
Hza=function(a,b,c,d){return We(this,function f(){var h,l,m,n,p,r,t,w,y;return xa(f,function(x){switch(x.u){case 1:h=function(){return!0},l=function(B){B=wB(B);
if(B.u)return Promise.reject(B);c(B);return!1},n=(m=a.isAd())?1:3,p=0;
case 2:if(!(p<n)){x.u=4;break}r=b;if(!(0<p)){x.u=5;break}return sa(x,Mm(5E3),6);case 6:t={playerretry:p,playerretrysrc:d},m||(t.recover="embedded"),r=bq(b,t);case 5:return sa(x,Nza(a,r).then(h,l),7);case 7:if(w=x.B)return x["return"]();p++;x.u=2;break;case 4:y=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.Is(new g.tr("b/152131571",btoa(b)))}catch(B){}return x["return"](Promise.reject(new uB(y,!0,{backend:"gvi"})))}})})};
Nza=function(a,b){return We(this,function d(){var e,f,h,l,m,n,p,r,t,w,y,x,B,E;return xa(d,function(G){if(1==G.u)return a.fetchType="gvi",e=a.T(),(l=Vta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,tc:l},h=bq(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.kB(e.experiments,"debug_dapper_trace_id"))&&(m["X-Google-DapperTraceInfo"]=n),(p=g.kB(e.experiments,
"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=p),0<Object.keys(m).length&&(f.headers=m),r=(0,g.N)(),t=function(K){if(!a.na()){K=K?K.status:-1;var H=400===K||429===K,ya=((0,g.N)()-r).toFixed();ya={backend:"gvi",rc:""+K,rt:ya};var ia="manifest.net.connect";429===K?ia="auth":200<K&&(ia="manifest.net.badstatus");return Promise.reject(new uB(ia,H,ya))}},w=function(K){return t(K.xhr)},sa(G,HB(Us,h,f).then(void 0,w),2);
y=G.B;if(!y||!y.responseText)return G["return"](t(y));a.Pd=!1;x=Xp(y.responseText);a.nh(x,!0,void 0);if(a.errorCode)return B={ec:a.errorCode,ed:a.errorDetail,es:a.Ki||""},G["return"](Promise.reject(new uB("auth",!0,B)));if(!a.Pd&&!bJ(a))return E=a.isAd()?"auth":"manifest.net.retryexhausted",G["return"](Promise.reject(new uB(E,!0,{successButUnplayable:"1"})));G.u=0})})};
R_=function(a,b){b=void 0===b?!1:b;We(this,function d(){var e,f,h,l,m,n;return xa(d,function(p){if(1==p.u){e=a.T();if(b&&(!g.LD(e)||"embedded"!==kJ(a))||a.ot||"adunit"!==kJ(a)&&(g.wD(e)||yD(e)||KD(e)||"WEB_CREATOR"===e.deviceParams.c))return p["return"]();p.C=2;f=kT();h=qta(a);l=bT(Oza);return sa(p,fG(f,h,l),4)}if(2!=p.u)return m=p.B,(null===m||void 0===m?0:m.error)?g.Is(new g.tr("WatchNext Response Error (b/150306508)",m.error)):a.nh({raw_watch_next_response:m},!1),ta(p,0);n=ua(p);g.Is(new g.tr("WatchNext Request Error (b/150306508)",
n));p.u=0})})};
Pza=function(a,b,c,d,e,f){function h(){PE("virc");ZE("virc","video_to_ad")}
PE("vir");ZE("vir","video_to_ad");a=Kza(a,b,c,d,e,f);a.then(h,h);return a};
g.W_=function(a,b,c,d,e,f,h){g.O.call(this);var l=this;this.W=a;this.playerType=b;this.eb=c;this.Yr=d;this.getVisibilityState=f;this.visibility=h;this.Sp=new Eya(g.P(this.W.experiments,"html5_min_has_advanced_secs_float"));this.Jc=null;this.Po=new uZ;this.Ji=null;this.cg=new GZ(this.W,this.Yr,this);this.Ay=!0;this.mediaSource=this.Ba=null;this.dh=[];this.di=new w_;this.Id=this.No=null;this.oj=new w_;this.yr=null;this.ED=this.Im=!1;this.Gv=NaN;this.nw=new g.F(this.OQ,500,this);this.playerState=new g.AM;
this.Iv=[];this.xp=new rt;this.videoData=new g.rI(this.W);this.da=null;this.Mm=new g.F(this.fP,15E3,this);this.CA=new g.F(this.DQ,g.P(this.W.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.EH=0;this.kA=this.qr=!1;this.Bl=NaN;this.Ln=!1;this.Np=0;this.fx=new g.F(this.oA,4500,this);this.Jq=!1;this.wu=NaN;this.iw=new QY(new Map([["bufferhealth",function(){var m=l.Kb;return m.da?TS(m.da):0}],
["bandwidth",function(){return l.Zx()}],
["networkactivity",function(){return l.W.schedule.K}],
["livelatency",function(){return l.isAtLiveHead()&&l.Hb()?T_(l):NaN}],
["rawlivelatency",function(){return T_(l)}]]));
this.mx=!0;this.Nq=0;this.loop=!1;this.playbackRate=1;this.jE=0;this.Al=null;this.YB=!1;this.Hv=[];this.Xy=this.FG=0;this.jA=this.iI=!1;this.Rw=new g.F(this.CK,0,this);this.te=null;this.Kv=void 0;this.hE=0;this.yF=new g.F(this.EJ,0,this);this.Lv=new g.F(this.oH,3E4,this);this.NN=[this.nw,this.xp,this.Rw,this.Mm,this.Lv,this.nw,this.fx,this.iw,this.yF,this.CA];this.ff=function(){var m=l.Jb;m.provider.W.ce||3===m.provider.getVisibilityState()||(m.provider.W.ce=!0);Aya(m);if(m.B){var n=m.B;n.F&&0>n.u&&
3!==n.provider.getVisibilityState()&&bya(n)}m.qoe&&(m=m.qoe,m.za&&0>m.B&&m.provider.W.ce&&iya(m));g.P(l.W.experiments,"html5_background_quality_cap")&&l.Ba&&U_(l);l.W.Ns&&!l.videoData.backgroundable&&l.da&&!l.Ze()&&(l.isBackground()&&l.da.Yu()?(l.Na("bgmobile","suspend"),l.fi(!0)):l.isBackground()||V_(l)&&l.Na("bgmobile","resume"))};
this.ea();this.Vf=new mF(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.hF("endcr")||g.U(l.playerState,32)||sY(l);
e(m,n,l.playerType)});
g.D(this,this.Vf);Qza(this,function(){return{}});
Rza(this);Yva(this.ff);this.visibility.subscribe("visibilitystatechange",this.ff);Sza(this)};
Qza=function(a,b){!a.Jb||a.Jb.na();a.Jb=new g.f_(new e_(a.videoData,a.W,b,function(){return a.getDuration()},function(){return a.getCurrentTime()},function(){return a.zq()},function(){return a.Yr.getPlayerSize()},function(){return a.getAudioTrack()},function(){return a.getPlaybackRate()},function(){return a.da?a.da.getVideoPlaybackQuality():{}},a.getVisibilityState,function(){a.fu()},function(){a.eb.tick("qoes")},function(){return a.Mi()}))};
Rza=function(a){!a.Ac||a.Ac.na();a.Ac=new AZ(a.videoData,a.W,a.visibility);a.Ac.subscribe("newelementrequired",function(b){return nY(a,b)});
a.Ac.subscribe("qoeerror",a.Er,a);a.Ac.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.Ac.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.Ac.subscribe("releaseloader",function(){X_(a)});
a.Ac.subscribe("pausevideo",function(){a.pauseVideo()});
a.Ac.subscribe("clienttemp",a.Na,a);a.Ac.subscribe("highrepfallback",a.UO,a);a.Ac.subscribe("playererror",a.Rd,a);a.Ac.subscribe("removedrmplaybackmanager",function(){Y_(a)});
a.Ac.subscribe("formatupdaterequested",function(){Z_(a)});
a.Ac.subscribe("reattachvideosourcerequired",function(){Tza(a)})};
$_=function(a){var b=a.Jb;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.P){"PL"===c.Pc&&(c.Pc="N");var d=g.rY(c.provider);g.MZ(c,d,"vps",[c.Pc]);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.D.values()),d=c.next();!d.done;d=c.next())vya(d.value);else b.u&&vya(b.u);b.dispose();g.fg(a.Jb)};
xK=function(a){return a.da&&a.da.ol()?a.da.Pa():null};
a0=function(a){if(a.videoData.isValid())return!0;a.Rd("api.invalidparam",void 0,"invalidVideodata.1");return!1};
vT=function(a,b){b=void 0===b?!1:b;a.Kv&&a.ba("html5_match_codecs_for_gapless")&&(a.videoData.Lh=!0,a.videoData.an=!0,a.videoData.Nl=a.Kv.by(),a.videoData.mn=a.Kv.dy());a.Im=b;if(!a0(a)||a.di.started)g.wD(a.W)&&a.videoData.isLivePlayback&&a.di.started&&!a.di.isFinished()&&!a.Im&&a.vx();else{a.di.start();var c=a.Jb;g.rY(c.provider);c.qoe&&hya(c.qoe);a.vx()}};
Uza=function(a){var b=a.videoData,c=a.Yr.getPlayerSize(),d=a.getVisibilityState(),e=Uta(a.W,a.videoData,c,d,a.isFullscreen());Pza(a.videoData,e,function(f){a.handleError(f)},a.eb,c,d).then(void 0,function(f){a.videoData!==b||b.na()||(f=wB(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.Rd("auth",unescape(a.videoData.errorReason),g.vB(f.details),a.videoData.errorDetail,a.videoData.Ki||void 0):a.handleError(f))})};
awa=function(a,b){a.te=b;a.Ba&&(a.Ba.ub=new Kwa(b))};
Wza=function(a){if(!g.U(a.playerState,128))if(a.videoData.Uc(),a.mx=!0,a.ea(),4!==a.playerType&&(a.dh=g.rb(a.videoData.Of)),aJ(a.videoData)){b0(a).then(function(){a.na()||(a.Im&&V_(a),Vza(a,a.videoData),a.di.u=!0,c0(a,"dataloaded"),a.oj.started?d0(a):a.Im&&a.vb(CM(CM(a.playerState,512),1)),aya(a.cg,a.Id))});
a.Na("loudness",""+a.videoData.Ir.toFixed(3),!0);var b=Pla(a.videoData);b&&a.Na("playerResponseExperiment",b,!0);a.ex()}else c0(a,"dataloaded")};
b0=function(a){X_(a);a.Id=null;var b=Gya(a.W,a.videoData,a.Ze());a.No=b;a.No.then(function(c){Xza(a,c)},function(c){a.na()||(c=wB(c),a.visibility.isBackground()?(e0(a,"vp_none_avail"),a.No=null,a.di.reset()):(a.di.u=!0,a.Rd(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.vB(c.details))))});
return b};
Z_=function(a){a.ea();b0(a).then(function(){return V_(a)});
g.GM(a.playerState)&&a.playVideo()};
Xza=function(a,b){if(!a.na()&&!b.videoData.na()&&(a.ea(),a.Id=b,Qya(a.Kb,a.Id),!a.videoData.isLivePlayback||0<a.videoData.Zk&&!LI(a.videoData)||(a.seekTo(a.Oc()),f0(a,"playbackData")),a.videoData.La.Lc()&&(Yza(a),a.Ba?g.Is(Error("Duplicated Loader")):Zza(a)),g0(a),a.ba("html5_nonblocking_media_capabilities"))){var c=Date.now();Sxa(a.cg,b).then(function(){a.Na("mclatency",(Date.now()-c).toString())})}};
Yza=function(a){!g.Q(a.W.experiments,"hoffle_save")&&!g.Q(a.W.experiments,"hoffle_cfl_lock_format")||!a.W.C||a.videoData.lengthSeconds>g.P(a.W.experiments,"hoffle_max_video_duration_secs")||0!==a.videoData.startSeconds||!a.videoData.offlineable||!a.videoData.ra||a.videoData.ra.isOtf||a.videoData.ra.isLive||a.videoData.ra.he||cy(a.videoData.videoId)||(g.Q(a.W.experiments,"hoffle_cfl_lock_format")?(a.Na("dlac","cfl"),a.videoData.rE=!0):(RI(a.videoData,!0),a.videoData.Qq=new rF(a.videoData.videoId,2,
{Ro:!0,ou:!0,videoDuration:a.videoData.lengthSeconds}),a.Na("dlac","w")))};
h0=function(a){a.ea();a.da&&a.da.Ao();vT(a);a0(a)&&!g.U(a.playerState,128)&&(a.oj.started||(a.oj.start(),a.vb(CM(CM(a.playerState,8),1))),d0(a))};
d0=function(a){a.na();a.ea();if(a.oj.isFinished())a.ea();else if(a.di.isFinished())if(g.U(a.playerState,128))a.ea();else if(a.dh.length)a.ea();else{if(!a.Vf.started){var b=a.Vf;b.started=!0;b.fk()}if(a.Qj())a.ea();else{a.Ba&&(b=a.Ba.Ja,a.ED=!!b.u&&!!b.B);a.oj.isFinished()||(a.oj.u=!0);!a.videoData.isLivePlayback||0<a.videoData.Zk&&!LI(a.videoData)||(a.ea(),a.seekTo(Infinity),f0(a,"readying"),a.isBackground()&&(a.kA=!0));b=a.Jb;if(b.u){var c=b.u;c.provider.videoData.gq&&c.provider.videoData.wt&&(c_(c,
"connected"),rya(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Br&&RZ(b,b.provider.videoData.Br),b.provider.videoData.isLivePlayback&&(c=b.provider.videoData.ra,LI(b.provider.videoData)&&RZ(b,"manifestless"),c&&ZB(c)&&RZ(b,"live-segment-"+ZB(c).toFixed(1))),"yt"!==b.provider.W.Y&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.ea();a.V("playbackready",a);WE("pbr",a.eb.timerName)||(a.eb.tick("pbr"),ZE("pbr","video_to_ad"))}}else a.ea()};
sY=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.da&&a.da.pause();b=b?new g.AM(14):new g.AM;a.vb(b)};
Vza=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.Ji&&(a.removeCueRange(a.Ji),a.Ji=null);a.Ji=new g.eF(1E3*c,0x7ffffffffffff);a.Ji.namespace="endcr";a.addCueRange(a.Ji)}};
j0=function(a,b,c,d){a.videoData.Oa=c;d&&$za(a,b,d);var e=(d=g.i0(a))?d.Yb():"";d=a.Jb;c=new Mxa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.rY(d.provider);g.MZ(d,e,"vfs",[c.u.id,c.B,d.kb,c.reason]);d.kb=c.u.id;var f=d.provider.D();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.GD();1<h&&f.push(h);g.MZ(d,e,"view",f)}d.fa||(d.provider.videoData.nk&&RZ(d,"rqs"),d.provider.videoData.ra&&LB(d.provider.videoData.ra)&&(d.u.preload=["1"]));d.fa=!0;d.P=!0;"m"===c.reason&&100===
++d.kc&&(c=d.u.fcnz,c||(c=[],d.u.fcnz=c),c.push("2"));g.MZ(d,e,"vps",[d.Pc]);d.reportStats(e)}c=a.cg;c.D=0;c.B=0;a.V("internalvideoformatchange",a.videoData,"m"===b)};
g.i0=function(a){var b=k0(a);return GC(b)||!a.Id?null:g.fb(a.Id.La.videoInfos,function(c){return b.D(c)})};
$za=function(a,b,c){if(c!==a.videoData.pd){var d=!a.videoData.pd;a.videoData.pd=c;"m"!==b&&(b=d?"i":"a");var e=a.Jb;c=new Mxa(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.rY(e.provider);c.u.id!==e.aa&&(g.MZ(e,f,"afs",[c.u.id,e.aa,c.reason]),e.aa=c.u.id)}d||a.V("internalaudioformatchange",a.videoData,"m"===b)}};
k0=function(a){if(a.Id){var b=a.cg;var c=a.Id,d=a.co(),e=a.isBackground();a=Qxa(b);a=FC("auto",a,!1,"s");if(GC(a)){a=Rxa(b,c);var f=c.videoData.qI,h=$xa(b,c);var l=g.P(b.W.experiments,"html5_autonav_quality_cap");var m=g.P(b.W.experiments,"html5_autonav_cap_idle_secs");l=l&&c.videoData.Kh&&Bp()/1E3>m?new DC(0,l,!1,"e"):UD;m=g.P(b.W.experiments,"html5_background_quality_cap");var n=g.P(b.W.experiments,"html5_background_cap_idle_secs");e=!m||"auto"!==Qxa(b)||Bp()/1E3<n?UD:e?new DC(0,m,!1,"v"):UD;m=
0;!b.W.u||g.nD(b.W)||nr()||g.Q(b.W.experiments,"mweb_uniplayer_auto_quality")||g.Q(b.W.experiments,"hls_for_vod")||(m=g.Yw.medium);if(n=g.P(b.W.experiments,"html5_default_quality_cap")){var p=c.La.Lc()&&!c.videoData.gg&&!c.videoData.Ud,r=g.P(b.W.experiments,"html5_quality_cap_min_age_secs");p&&r&&(p=b.W.schedule.F,p=(0,g.N)()-p>1E3*r);p&&(m=m?Math.min(m,n):n)}n=g.P(b.W.experiments,"html5_random_playback_cap");r=/[a-h]$/;n&&r.test(c.videoData.clientPlaybackNonce)&&(m=m?Math.min(m,n):n);(n=g.P(b.W.experiments,
"html5_not_vp9_supported_quality_cap"))&&!oB('video/webm; codecs="vp9"')&&(m=m?Math.min(m,n):n);if(r=n=g.P(b.W.experiments,"html5_hfr_quality_cap"))a:{r=c.La;if(r.Lc())for(r=g.q(r.videoInfos),p=r.next();!p.done;p=r.next())if(32<p.value.Ma().fps){r=!0;break a}r=!1}r&&(m=m?Math.min(m,n):n);(n=g.P(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=m?Math.min(m,n):n);m=new DC(0,m,!1,"d");n=Oxa(b,c);r=n.compose;a:if((p=c.La)&&p.videoInfos.length){for(var t=g.q(p.videoInfos),w=t.next();!w.done;w=
t.next())if(w=w.value,w.D){p=w.Ma().Fc;break a}p=p.videoInfos[0].Ma().Fc}else p=0;fr()&&!g.wD(b.W)&&fx(c.La.videoInfos[0])&&(p=Math.min(p,g.Yw.large));p=new DC(0,p,!1,"o");a=r.call(n,p).compose(m).compose(e).compose(l).compose(h).compose(f).compose(a)}else b.ba("html5_perf_cap_override_sticky")&&(a=a.compose($xa(b,c)));b.ba("html5_varispeed_playback_rate")&&(a=a.compose(Rxa(b,c)));b=c.videoData.yw.compose(a).compose(c.videoData.bC).compose(d)}else b=UD;return b};
Qsa=function(a,b){a.videoData.yw=b;if(a.Id){var c=a.cg,d=a.Id;if(d.La.Lc()){var e=g.Yw[HZ()];d=d.La.videoInfos[0].Ma().Fc;if(!(e>d&&0!==d&&b.u===d)){aAa(HC(b));if(c.ba("html5_exponential_memory_for_sticky")){e=c.W.fd;d=1;var f=void 0===f?!1:f;VC(e,"sticky-lifetime");e.values["sticky-lifetime"]&&e.Mj["sticky-lifetime"]||(e.values["sticky-lifetime"]=0,e.Mj["sticky-lifetime"]=0);f&&.0625<WC(e,"sticky-lifetime")&&(d=2*e.Mj["sticky-lifetime"]);e.values["sticky-lifetime"]+=1*Math.pow(2,e.u/d);e.Mj["sticky-lifetime"]=
d;e.D.start()}c.ba("html5_perf_cap_override_sticky")&&bAa(c.ba("html5_perserve_av1_perf_cap"))}}}g0(a)};
g0=function(a){if(!a.na()&&!g.U(a.playerState,128)&&a.videoData.La){if(a.videoData.La.Lc())l0(a);else{var b=k0(a),c=a.videoData;a:{var d=a.videoData.lk;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Te(),l=g.Yw[h.Ma().quality];if((!b.C||"auto"!==h.Ma().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.fh=d;j0(a,b.reason,cAa(a,a.videoData.fh))}a.Hb()&&(a.Kb.ia=!1,a.playVideo())}};
l0=function(a){if(a.videoData.La&&a.videoData.La.Lc()){var b=k0(a),c=a.videoData.Oa;if(!a.ba("html5_dynamic_av1_hybrid_threshold")&&c&&hx(c)){var d=mC(a.W);if(d&&d<c.Ma().Fc&&d!==a.hE){a.hE=d;b0(a);return}}if(a.Ba&&(a=a.Ba,!a.na()&&!EC(a.K.F,b)&&a.B)){var e=a.K.F;HF(a,Bha(a.K,b));vF(a);c=cE(a.K)&&"m"==b.reason&&a.K.fa;d=a.u.fd&&"l"==b.reason&&EA(a.B);b=("b"==b.reason||"o"==b.reason)&&e.u>b.u;e=a.K.Ub&&!yB();c||d||b||e?(a.dd("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.V("reattachrequired")):
KF(a)}}};
U_=function(a){a.ba("html5_nonblocking_media_capabilities")?l0(a):g0(a)};
Zza=function(a){a.ba("html5_probe_media_capabilities")&&Nxa(a.videoData.La);Xga(a.videoData.ra,{cpn:a.videoData.clientPlaybackNonce,c:a.W.deviceParams.c,cver:a.W.deviceParams.cver});var b=a.W,c=a.videoData,d=new g.Jw,e=Iw(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Ui:c.Ui});d.D=e;d.Us=b.ba("html5_disable_codec_for_playback_on_error");d.Ms=b.ba("html5_max_drift_per_track_secs")||b.ba("html5_rewrite_manifestless_for_sync")||b.ba("html5_check_segnum_discontinuity");d.Fn=b.ba("html5_unify_sqless_flow");
d.Dc=b.ba("html5_unrewrite_timestamps");d.Zb=b.ba("html5_stop_overlapping_requests");d.ng=g.P(b.experiments,"html5_min_readbehind_secs");d.hB=g.P(b.experiments,"html5_min_readbehind_cap_secs");d.KI=g.P(b.experiments,"html5_max_readbehind_secs");d.GC=g.Q(b.experiments,"html5_trim_future_discontiguous_ranges");d.Is=b.ba("html5_append_init_while_paused");d.Jg=g.P(b.experiments,"html5_max_readahead_bandwidth_cap");d.Ql=g.P(b.experiments,"html5_post_interrupt_readahead");d.R=g.P(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.Cc=g.P(b.experiments,"html5_subsegment_readahead_timeout_secs");d.HB=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.kc=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.IB=g.P(b.experiments,"html5_subsegment_readahead_min_load_speed");d.En=g.P(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.JB=g.P(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.wi=b.ba("html5_peak_shave");d.lB=b.ba("html5_peak_shave_always_include_sd");
d.yB=b.ba("html5_restrict_streaming_xhr_on_sqless_requests");d.yI=g.P(b.experiments,"html5_max_headm_for_streaming_xhr");d.nB=b.ba("html5_pipeline_manifestless_allow_nonstreaming");d.rB=b.ba("html5_prefer_server_bwe3");d.Hn=1024*g.P(b.experiments,"html5_video_tbd_min_kb");d.Rl=b.ba("html5_probe_live_using_range");d.gH=b.ba("html5_last_slice_transition");d.FB=b.ba("html5_store_xhr_headers_readable");d.lu=b.ba("html5_enable_packet_train_response_rate");if(e=g.P(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Sl=
e,d.NB=1;d.Ta=g.P(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ta;d.Lg=b.ba("html5_no_placeholder_rollbacks");d.GB=b.ba("html5_subsegment_readahead_enable_mffa");b.ba("html5_allow_video_keyframe_without_audio")&&(d.ia=!0);d.yn=b.ba("html5_reattach_on_stuck");d.gE=b.ba("html5_webm_init_skipping");d.An=g.P(b.experiments,"html5_request_size_padding_secs")||d.An;d.Gu=b.ba("html5_log_timestamp_offset");d.Qc=b.ba("html5_abs_buffer_health");d.bH=b.ba("html5_interruption_resets_seeked_time");d.Ig=
g.P(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ig;d.ke=b.ba("html5_explicitly_dispose_xhr");d.EB=b.ba("html5_skip_invalid_sq");d.xB=b.ba("html5_restart_on_unexpected_detach");d.aI=b.ba("html5_log_live_discontinuity");d.zB=b.ba("html5_rewrite_manifestless_for_continuity");d.sf=g.P(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Hg=g.P(b.experiments,"html5_max_drift_per_track_secs");d.BB=b.ba("html5_rewrite_manifestless_for_sync");d.Nb=g.P(b.experiments,"html5_static_abr_resolution_shelf");
d.Ls=!b.ba("html5_encourage_array_coalescing");d.Ps=b.ba("html5_crypto_period_secs_from_emsg");d.ut=b.ba("html5_disable_reset_on_append_error");d.qv=b.ba("html5_filter_non_efficient_formats_for_safari");d.iB=b.ba("html5_format_hybridization");d.Gp=b.ba("html5_abort_before_separate_init");b.ba("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.P=10:d.P=c.minReadAheadMediaTimeMs/1E3||d.P,d.ce=c.readAheadGrowthRateMs/1E3||d.ce);wg&&(d.X=
41943040);d.ma=!FB();g.wD(b)||!FB()?(e=b.experiments,d.I=8388608,d.K=524288,d.Ks=5,d.Ob=2097152,d.Y=1048576,d.vB=1.5,d.kB=!1,d.zb=4587520,ir()&&(d.zb=786432),d.u*=1.1,d.B*=1.1,d.kb=!0,d.X=d.I,d.Ub=d.K,d.xi=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.pB&&dr("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.K=1572864,e&&(d.zb=812500,d.zn=1E3,d.fE=5,d.Y=2097152));!b.ba("html5_disable_firefox_init_skipping")&&
g.vC&&(d.kb=!0);b.supportsGaplessAudio()||(d.Mt=!1);fD&&(d.zl=!0);mr()&&(d.Cn=!0);var f,h,l;if(LI(c)){d.tv=!0;d.DB=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.ba("html5_disable_low_pipeline"))d.sI=2,d.AI=4;d.Fj=c.defraggedFromSubfragments;c.cd&&(d.Ya=!0);g.eJ(c)&&(d.ha=!1);d.Ns=g.JD(b)}c.isAd()&&(d.Ja=0,d.Ne=0);NI(c)&&(d.fa=!0,b.ba("html5_resume_streaming_requests")&&(d.ub=!0,d.zn=400,d.vI=2));d.za=b.ba("html5_enable_subsegment_readahead_v3")||b.ba("html5_ultra_low_latency_subsegment_readahead")&&
"ULTRALOW"===c.latencyClass;d.Aa=c.nk;d.sH=d.Aa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||CI(c));sr()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ba("html5_disable_move_pssh_to_moov")&&(null===(f=c.ra)||void 0===f?0:KB(f))&&(d.kb=!1);if(null===(h=c.ra)||void 0===h?0:KB(h))d.yn=!1;h=0;b.ba("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.P(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")||h));f=b.schedule;f.P.u=LI(c)?.5:0;if(!f.policy.B&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.B)){e=Array(h);var m=Math.min(h,f.D?f.B:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.B);for(var p=0;p<m;++p)e[p]=f.values[(n+p)%f.B];for(;p<h;++p)e[p]=Infinity;f.B=h;f.values=e;f.valueIndex=m%h;f.D=m===h;f.I=!0;f.R=LA(f)}d.Qa=c.isLivePlayback;switch(MI(c)){case 21530001:d.jB=b.ba("html5_live_smoothly_extend_max_seekable_time");
d.za=!0;"LOW"===c.latencyClass?d.R=g.P(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.R=g.P(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Lg=!0;break;case 2153E4:d.za=!1}d.zl=d.zl||c.zl;d.aa=c.Lh;CI(c)&&(d.Oe=!0);!c.Lh||null!==(l=c.ra)&&void 0!==l&&KB(l)||!b.ba("html5_hack_gapless_init")||(d.Bn=!0);(l=g.P(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Lh&&c.isAd()&&(d.u*=l,d.B*=l);qJ(c)?(d.C=c.videoId,d.Qc=!0,qJ(c)&&c.zh&&
(d.zh=!0)):c.rE&&(d.Dn=!0);b.ba("html5_drm_initial_constraint_from_config")?d.fd=c.eq:d.fd=b.ba("html5_drm_start_from_null_constraint");b.ba("html5_dynamic_av1_hybrid_threshold")&&(d.Bt=!0,d.Ga=mC(b,{},c.La||void 0));c=Jz();l=g.P(b.experiments,"html5_deadzone_multiplier")||1;(f=g.P(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(l-=f);d.u*=l;d.B*=l;if(l=g.P(b.experiments,"html5_request_sizing_multiplier"))d.wB=l;d.Kg=g.P(b.experiments,"html5_min_upgrade_health")||d.Kg;iC(b.D,jC.BITRATE)&&
(d.zb=NaN);b.D.C&&(d.tu="; "+jC.EXPERIMENTAL.name+"=allowed");c&&(d.Gn=0,d.Nb=0);d.sB=b.ba("html5_rec_2020_matrix_correction_killswitch");c=d.Qa&&!b.ba("html5_pause_appends_killswitch");d.Qa=c||b.ba("html5_never_pause_appends");g.Q(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&fD&&(d.qB=!0);g.Q(b.experiments,"debug_html5_random_stun_format")&&(d.Tl=!0);g.Q(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.PC=!0);g.Q(b.experiments,"html5_log_audio_abr")&&(d.NH=!0);b=b.experiments;
g.Q(b,"html5_validate_lengthless_slices_killswitch")&&(d.FD=!1);g.Q(b,"html5_audio_only_eos_fix_killswitch")&&(d.Js=!0);g.Q(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.tB=!0);g.Q(b,"html5_check_seeking_for_cuepoints_killswitch");g.Q(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.Cn=!1);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.Po;c.keys=[];c.values=[];a.Ba=new uF(a.W.schedule,d,a.videoData.ra,a.videoData.La,k0(a),b,a.Vf,a.videoData.enableServerStitchedDai);a.Ba.subscribe("needkeyinfo",
a.ZF,a);a.Ba.subscribe("newDrmInfo",a.CP,a);a.Ba.subscribe("videoformatchange",a.Gz,a);a.Ba.subscribe("audioformatchange",a.hP,a);a.Ba.subscribe("error",a.handleError,a);a.Ba.subscribe("ctmp",a.Na,a);a.Ba.subscribe("reattachrequired",a.LR,a);a.Ba.subscribe("metadata",a.TF,a);a.Ba.subscribe("constraint",a.XQ,a);a.Ba.subscribe("timestamp",a.Gu,a);a.Ba.subscribe("localmediachange",a.iP,a);a.Ba.subscribe("localplaybackfailed",a.oJ,a);d=dAa(a)?!0:a.Im&&g.wD(a.W)&&a.videoData.isLivePlayback;a.Ba.initialize(a.getCurrentTime(),
k0(a),d);a.videoData.probeUrl&&(a.Ba.Ta=a.videoData.probeUrl);(a.dh.length||a.Im)&&m0(a,!1);u_(a.Kb,a.Ba);a.Ac.Ba=a.Ba;a.te&&(a.Ba.ub=new Kwa(a.te));rJ(a.videoData)&&(a.Ba.u.uu=2)};
Sza=function(a){a.Kb=new r_(a.videoData,a.W,a.visibility,function(){return g.jb(a.dh,"ad")});
g.D(a,a.Kb);a.Kb.subscribe("seekto",function(b,c){a.Kb.C=b;var d=a.Sp;d.mediaTime=b;d.u=!0;c||n0(a);a.Ji&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.Ji),a.Ji=null);b<a.Oc()-.01&&(d=DM(a.playerState,2),g.U(d,8)&&(d=DM(d,4)),a.vb(d));a.V("SEEK_TO",a,b)});
a.Kb.subscribe("seekstart",function(){BY(a)});
a.Kb.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.Kb.subscribe("newmediaelementrequired",function(){return nY(a)});
a.Kb.subscribe("ended",function(){sY(a)});
a.Kb.subscribe("ctmp",a.Na,a);a.Kb.subscribe("qoeerror",a.Er,a);a.Kb.subscribe("livereadaheadchanged",function(b){var c=a.Jb;c.qoe&&(c=c.qoe,g.MZ(c,g.rY(c.provider),"lra",[b]),c.Na("live-readahead-seconds",b.toString()))});
a.Kb.subscribe("releaseadsprerolllock",function(){a.Wc("ad")});
a.Kb.subscribe("skipslowad",function(){a.Rd("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
X_=function(a){a.Ba&&(a.Ba.dispose(),a.Ba=null,u_(a.Kb,null),a.Ac.Ba=null);o0(a)};
o0=function(a){if(a.mediaSource){a.ea();if(a.Ba){var b=LI(a.videoData)&&a.videoData.cd&&!a.videoData.isAd();zF(a.Ba,b)}a.mediaSource.dispose();a.mediaSource=null}};
p0=function(a){if(a.mediaSource)return a.mediaSource.Tq;a.ea();eAa(a);return a.mediaSource?a.mediaSource.Tq:null};
eAa=function(a){if(a.ba("html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.P(a.W.experiments,"html5_source_buffer_attach_retry_limit")||0;a.EH<b&&a.CA.start();try{var c=a.da.tm()}catch(d){if(DZ(a.Ac,"html5.missingapi",{updateMs:"1"}))return;g.Is(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Rd("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}mY(a,c)}};
mY=function(a,b){fAa(a);a.mediaSource=b;Iga(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ea();var d=a.getDuration();!d&&LI(a.videoData)&&(d=g.P(a.W.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.ea(),c>a.mediaSource.getDuration()&&a.mediaSource.gi(c)):a.mediaSource.gi(d);var e=a.Ba,f=a.mediaSource;e.ha&&(yF(e),e.ha=!1);xF(e);if(!CB(f)){var h=e.B.u.info.mimeType+e.u.tu,l=e.D.u.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===
m?void 0:m.addSourceBuffer(l),r="fakesb"===h?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.de&&(f.de.webkitSourceAddId("0",l),f.de.webkitSourceAddId("1",h));var t=new xB(p,f.de,"0",bx(l),!1),w=new xB(r,f.de,"1",bx(h),!0);f.u=t;f.B=w;g.D(f,t);g.D(f,w)}iA(e.B,f.B);iA(e.D,f.u);e.C=f;e.resume();vt(f.u,e.kb,e);vt(f.B,e.kb,e);e.u.Gu&&1E-4>=Math.random()&&e.dd("toff",""+f.u.supports(1),!0);e.Uh();a.V("mediasourceattached");a.CA.stop()}}catch(y){g.Is(y),a.handleError(new uB("fmt.unplayable",
!0,{msi:"1",ename:y.name}))}})};
fAa=function(a){a.Ba?Cm(a.Ba.seek(a.getCurrentTime()-a.yc()),function(){}):Zza(a)};
nY=function(a,b){b=void 0===b?!1:b;return We(a,function d(){var e=this;return xa(d,function(f){if(1==f.u)return e.Ba&&e.Ba.na()&&X_(e),e.V("newelementrequired"),b?f=sa(f,b0(e),2):(f.u=2,f=void 0),f;g.U(e.playerState,8)&&e.playVideo();f.u=0})})};
Vva=function(a,b){a.Na("newelem",b);nY(a)};
n0=function(a){g.U(a.playerState,32)||(a.vb(CM(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.V("beginseeking",a));a.sc()};
BY=function(a){g.U(a.playerState,32)?(a.vb(EM(a.playerState,16,32)),a.V("endseeking",a)):g.U(a.playerState,2)||a.vb(CM(a.playerState,16))};
c0=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
gAa=function(a){g.Cb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.xp.N(this.da,b,this.Jz,this)},a);
a.W.Cn&&a.da.ol()&&(a.xp.N(a.da,"webkitplaybacktargetavailabilitychanged",a.eO,a),a.xp.N(a.da,"webkitcurrentplaybacktargetiswirelesschanged",a.fO,a))};
iAa=function(a){a.ba("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&hAa(a)&&a.nw.start()};
hAa=function(a){if(!a.da)return!1;var b=a.da.getCurrentTime();a=a.da.getDuration();return!!(1<b&&b>a-.3)};
jAa=function(a){window.clearInterval(a.Gv);q0(a)||(a.Gv=Ho(function(){return q0(a)},100))};
q0=function(a){var b=a.da;b&&a.qr&&!a.videoData.Rg&&!WE("vfp",a.eb.timerName)&&2<=b.yg()&&!b.Yi()&&0<eA(b.Gf())&&a.eb.tick("vfp");return(b=a.da)&&!a.videoData.Rg&&0<b.getDuration()&&(!WE("pbp",a.eb.timerName)&&b.pl()&&2<=b.yg()&&0<eA(b.Gf())&&a.eb.tick("pbp"),b=b.getCurrentTime(),g_(a.Sp,b))?(Nva(a),!0):!1};
Nva=function(a){window.clearInterval(a.Gv);a.Mm.stop();a.videoData.Rg=!0;a.W.Rg=!0;a.W.Aa=0;Zsa(a);g.U(a.playerState,8)&&a.vb(DM(a.playerState,65));var b=a.Jb;b.u&&tya(b.u);if(b.B){b=b.B;var c=g.rY(b.provider);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c}a.fx.Sb();a.V("playbackstarted");g.up()&&((a=g.Ja("yt.scheduler.instance.clearPriorityThreshold"))?a():wp(0))};
Zsa=function(a){var b=a.getCurrentTime(),c=a.videoData;!WE("pbs",a.eb.timerName)&&XE.measure&&XE.getEntriesByName&&(XE.getEntriesByName("mark_nr")[0]?YE("mark_nr"):YE());c.videoId&&a.eb.info("docid",c.videoId);c.eventId&&a.eb.info("ei",c.eventId);c.clientPlaybackNonce&&a.eb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.eb.info("start",c.startSeconds.toString());a.da&&a.da.pl()&&a.eb.info("paused",1);c.Oa?a.eb.info("fmt",c.Oa.Yb()):a.eb.info("fmt","-1");c.an&&a.eb.info("yt_pre",a.ED?"2":"1");
a.isFullscreen()&&a.eb.info("yt_fs","1");a.eb.info("cmt",b.toFixed(3));if(a.Ba){b=a.Ba.Ja;window&&window.performance&&window.performance.getEntriesByName&&(b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",
c.requestStart),b.tick("avb",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var d in b)b.hasOwnProperty(d)&&a.eb.tick(d,b[d])}};
kAa=function(a){a.Jb.ie();if(a.videoData.isLivePlayback&&g.A()>a.jE+6283){if(!(!a.isAtLiveHead()||a.videoData.ra&&WB(a.videoData.ra))){var b=a.Jb;if(b.qoe){b=b.qoe;var c=b.provider.zq(),d=g.rY(b.provider);gya(b,d,c);c=c.F;isNaN(c)||g.MZ(b,d,"e2el",[c.toFixed(3)])}}g.JD(a.W)&&a.Na("rawlat","l."+SY(a.iw,"rawlivelatency").toFixed(3));a.jE=g.A()}a.videoData.Oa&&ix(a.videoData.Oa)&&(b=xK(a))&&b.videoHeight!==a.Xy&&(a.Xy=b.videoHeight,j0(a,"a",cAa(a,a.videoData.fh)))};
cAa=function(a,b){if("auto"===b.Oa.Ma().quality&&ix(b.Te())&&a.videoData.lk)for(var c=g.q(a.videoData.lk),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Xy&&"auto"!==d.Oa.Ma().quality)return d.Te();return b.Te()};
T_=function(a){if(!a.videoData.isLivePlayback||!a.videoData.ra||!a.Ba)return NaN;var b=LI(a.videoData)?a.Ba.Ya.u()||0:a.videoData.ra.R;return g.A()/1E3-a.Ue()-b};
lAa=function(a){!a.ba("html5_ignore_airplay_events_on_new_video_killswitch")&&a.da&&a.da.Ze()&&(a.wu=(0,g.N)());a.W.tu?g.Go(function(){r0(a)},0):r0(a)};
r0=function(a){a.da&&(a.yr=a.da.playVideo());if(a.yr){var b=a.yr;b.then(void 0,function(c){a.ea();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.yr===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ea();else{var d="promise";c&&c.name&&(d+=";m."+c.name);try{a.vb(CM(a.playerState,2048))}catch(e){}e0(a,d);a.YB=!0}})}};
e0=function(a,b){g.U(a.playerState,128)||(a.vb(EM(a.playerState,1028,9)),a.Na("dompaused",b),a.V("onDompaused"))};
V_=function(a){if(!a.da||!a.videoData.La)return!1;var b,c,d=null;(null===(c=a.videoData.La)||void 0===c?0:c.Lc())?(d=p0(a),null===(b=a.Ba)||void 0===b?void 0:b.resume()):(X_(a),a.videoData.fh&&(d=a.videoData.fh.Yq()));b=d;d=a.da.Yu();c=!1;d&&null!==b&&b.u===d.u||(a.eb.tick("vta"),ZE("vta","video_to_ad"),0<a.getCurrentTime()&&(c=a.getCurrentTime(),a.Kb.C=c),a.da.Ao(b),a.mediaSource&&wp(4),!a.videoData.Rg&&g.GM(a.playerState)&&a.Mm.start(),c=!0);g.U(a.playerState,2)||(b=a.Kb,b.F||!(0<b.C)||b.da&&0<
b.da.getCurrentTime()||b.seekTo(b.C));a:if(b=c,g.WI(a.videoData)&&a.da)if((d=a.videoData.md)&&a.da.ol()){var e=a.da.Pa();if(a.Jc)if(e!==a.Jc.element)Y_(a);else if(b&&"fairplay"===d.flavor&&!hr())Y_(a);else break a;a.Jc=new wZ(e,a.videoData,a.W);a.Jc.subscribe("licenseerror",a.yv,a);a.Jc.subscribe("qualitychange",a.bP,a);a.Jc.subscribe("heartbeatparams",a.tr,a);a.Jc.subscribe("keystatuseschange",a.xl,a);a.Jc.subscribe("hdproberequired",a.aP,a);a.Jc.subscribe("ctmp",a.Na,a);b=g.q(a.Po.keys);for(d=b.next();!d.done;d=
b.next())d=a.Po.get(d.value),zxa(a.Jc,d);a.ba("html5_eme_loader_sync")||(a=a.Po,a.keys=[],a.values=[])}else a.Rd("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
Y_=function(a){a.Jc&&(a.Jc.dispose(),a.Jc=null)};
oY=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.ba("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.playerState,4))||a.Tj()||g.eJ(a.videoData))?a.getCurrentTime():a.Oc(b)};
Tza=function(a){a.ea();a.da&&(a.mediaSource?(Y_(a),o0(a),p0(a)):(a.videoData.fh&&a.videoData.fh.nA(),a.da.stopVideo()),a.playVideo())};
s0=function(a,b){g.Q(a.W.experiments,"html5_log_rebuffer_reason")&&a.Na("bufreason","r."+b+";lact."+Bp())};
mAa=function(a,b){if(a.videoData.nk){var c=g.P(a.W.experiments,"html5_log_rebuffer_events");if(c&&a.da){var d=a.da.sb();d.rt=(1E3*g.rY(a.Jb.provider)).toFixed();d.e=b.substr(0,3);a.Hv[a.FG++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ea()};
nAa=function(a){if(a.videoData.nk){a.Hv.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.Hv),c=b.next();!c.done;c=b.next())c=c.value,a.Na("vpe","t."+c.rt+";"+g.vB(c));a.Hv=[];a.FG=0}};
f0=function(a,b){a.Na("seekreason",b)};
oAa=function(a){if(dr("cobalt")&&dr("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Na("nxdock",""+ +b)}};
Mva=function(a,b,c,d,e){a.Na("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
m0=function(a,b){wF(a.Ba,b||dAa(a))};
dAa=function(a){var b=a.ba("disable_prefetch_when_ad_pending_for_living_room")&&g.wD(a.W),c=a.ba("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.jb(a.dh,"ad")};
u0=function(a,b,c){g.C.call(this);var d=this;this.Ta=this.R=!1;this.F=null;this.Oe={};this.Cc={};this.Hg=!1;this.fd=null;this.Ig=!1;this.Aa=!0;this.Jg=this.ke=null;this.ng=!0;this.da=this.K=null;this.Zb=this.Ya=!1;this.Lg=this.ub=this.D=this.playlist=null;this.Ja=void 0;this.za=0;this.fa=this.Qa=this.X=null;this.ea();this.config=Yea(b||{});this.webPlayerContextConfig=c;rea();b=this.config.args||{};this.W=new AD(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.D(this,this.W);this.ex();
this.wi=R(jD(this.W)&&!0,b.enablesizebutton);this.ce=R(!1,b.player_wide);this.visibility=new tY;g.D(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.tR(this);g.D(this,this.events);this.aa=new g.Jn;g.D(this,this.aa);this.ha=new g.Jn;g.D(this,this.ha);this.ia=new Hwa;this.u=new g.ET(this);g.D(this,this.u);this.template=new $Y(this);g.D(this,this.template);this.Y=1;this.P=this.W.Rl?pAa():{volume:100,muted:this.W.mute};this.J=this.W.C?new DT(this,1):new yT(this,1);g.D(this,
this.J);c={};this.Dc=(c.internalvideodatachange=this.iO,c.playbackready=this.kO,c.playbackstarted=this.lO,c.statechange=this.mO,c);this.C=qAa(this);this.Ne=new g.tR(this);g.D(this,this.Ne);this.eb=new dU(this.W,this.C);this.B=rAa(this);c={};this.Kg=(c.airplayactivechange=this.cO,c.airplayavailabilitychange=this.dO,c.beginseeking=this.tO,c.endseeking=this.SO,c.internalAbandon=this.IL,c.internalaudioformatchange=this.HL,c.internalvideodatachange=this.Ra,c.internalvideoformatchange=this.ML,c.liveviewshift=
this.dP,c.playbackstalledatstart=this.GQ,c.progresssync=this.WP,c.onLoadProgress=this.eP,c.SEEK_COMPLETE=this.LL,c.SEEK_TO=this.wQ,c.onVideoProgress=this.xr,c.onLoadedMetadata=this.gP,c.onDompaused=this.PO,c.playbackready=this.LP,c.statechange=this.uG,c.connectionissue=this.FO,c.newelementrequired=this.XF,c.heartbeatparams=this.tr,c.videoelementevent=this.Jz,c.drmoutputrestricted=this.RO,c.requestmediasource=this.jQ,c.signatureexpired=this.AQ,c.localmediachange=this.JL,c);this.ma=new g.tR(this);g.D(this,
this.ma);c=10;g.wD(this.W)&&(c=3);ID(this.W)&&(c=g.P(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.kb=new NY(c,function(e){e!==g.Z(d,e.getPlayerType())&&(NE("prefetch"+e.getVideoData().videoId),e.dispose())});
g.D(this,this.kb);this.Qc=this.Nb=-1;this.kc=new g.F(this.template.resize,16,this.template);g.D(this,this.kc);sAa(this);this.te=new CY(this.u,this.W,this.B);this.Ga=new pY(this.u);g.D(this,this.Ga);xwa(this.W.deviceParams.c);this.events.N(this.u,g.hF("appapi"),this.gO);this.events.N(this.u,g.iF("appapi"),this.hO);this.events.N(this.u,g.hF("appad"),this.BF);this.events.N(this.u,g.iF("appad"),this.BF);this.events.N(this.u,g.iF("applooprange"),this.lA);this.events.N(this.u,"presentingplayerstatechange",
this.KL);this.events.N(this.u,"resize",this.kQ);this.template.ga(pe(document,a));this.events.N(this.u,"offlineslatestatechange",this.EP);this.sf=tAa(this,this.template.element);g.D(this,this.sf);this.ba("hoffle_save")?this.F=new sT(this.u,t0(this,1),function(){return d.De()}):Ffa()&&Isa();
this.W.kb&&(g.qU.ux=g.iY);uAa(this);this.eb.tick("fs");vAa(this);this.I=null;this.W.kb&&Bta(this.C);g.qD(this.C.J.T())&&pU(this.C,"music");g.hD(this.C.J.T())&&pU(this.C,"embed");this.ba("web_player_sentinel_is_uniplayer")||g.Fo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.xi=wAa(this);this.ea()};
wAa=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.D||a.B).Jb.onError("player.exception",g.vB({n:c.name,m:c.message}))}
Do.push(b);return function(){var c=Do.indexOf(b);-1!==c&&Do.splice(c,1)}};
rAa=function(a){var b=new g.W_(a.W,1,a.eb,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.aa.V.apply(a.aa,[c].concat(g.ma(e)))},function(){return a.u.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.W.B?1:xAa(a,yAa()));vt(b,a.Dc,a);return b};
dG=function(a){if(!a.fd){var b={lt:{subscribeEndpoint:eT,unsubscribeEndpoint:fT,playlistEditEndpoint:hT,webPlayerShareEntityServiceEndpoint:mT,modifyChannelNotificationPreferenceEndpoint:gT,feedbackEndpoint:lT}},c=jsa(),d=Kq();aT.u=new aT(b,c,d,M,void 0);a.fd=aT.u}return a.fd};
qAa=function(a){var b="",c=Cwa(a);0===c.indexOf("//")&&(c=a.W.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 mU(a.u,b);zAa(a,b);return b};
zAa=function(a,b){var c={};c=(c.destroyed=function(){a.W.C&&a.D?a.u.xa("onApiChange",a.D.getPlayerType()):a.u.xa("onApiChange")},c);
b.C=c};
AAa=function(a,b){var c=a.isVideoInfoVisible();a.X||(a.X=new gZ(a.u),g.D(a,a.X),g.BP(a.u,a.X.element,4));g.JN(a.X,b);v0(a)&&c!==b&&g.MT(a.C).MA();c=a.D;b&&c&&c.Na("sfn","1",!0)};
x0=function(a){var b=!a.W.deviceHasDisplay;var c=!a.ba("html5_deprecate_video_tag_pool");c=(void 0===c?0:c)?w0.getTag(!0,b):g.Fe(b?"AUDIO":"VIDEO");a.da=new g.YS(c);g.D(a,a.da);a.D&&a.D.setMediaElement(a.da);try{a.W.Ya?(a.Qa&&a.events.Mb(a.Qa),a.Qa=a.events.N(a.da,"volumechange",a.tP)):(a.da.gp(a.P.muted),a.da.setVolume(a.P.volume/100))}catch(d){b="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));a.B.Rd("html5.missingapi","UNSUPPORTED_DEVICE",b,void 0);return}g.ut(a.ma);BAa(a);b=a.template;
b.u=c;b.I=!1;b.u.parentNode||g.Ie(b.C,b.u,0);b.K=new g.jg(0,0,0,0);Gwa(b);aZ(b);g.I(b.u,"video-stream");g.I(b.u,g.ZY.MAIN_VIDEO);c=b.app.T();c.Jg&&b.u.setAttribute("data-no-fullscreen","true");c.Bn&&(b.u.setAttribute("webkit-playsinline",""),b.u.setAttribute("playsinline",""));c.Mt&&b.u&&b.N(b.u,"click",b.u.play,b.u);try{a.da.Ao()}catch(d){b="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),a.B.Rd("html5.missingapi","UNSUPPORTED_DEVICE",b,void 0)}};
g.xN=function(a,b){var c=g.Z(a,b);c||(c=t0(a,b),y0(a,c));aU(a,c)};
aU=function(a,b){if(a.D!==b){a.ea("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.D&&(c=a.D.getPlayerState(),a.ea(),rU(a.C,3),VT(a,"cuerangesremoved",a.D.Lk()),a.Ga&&!b.isGapless()&&a.D.isGapless()&&a.da&&a.da.stopVideo(),fta(a));y0(a,b);a.D=b;a.da&&b.setMediaElement(a.da);vt(b,a.Kg,a);a.Ra("newdata",b,b.getVideoData());c&&!g.FM(c,b.getPlayerState())&&a.uG(new g.EK(b.getPlayerState(),c));b.di.isFinished()&&a.Ra("dataloaded",b,b.getVideoData());
(c=(c=b.getVideoData().Oa)&&c.video)&&a.u.xa("onPlaybackQualityChange",c.quality);VT(a,"cuerangesadded",a.D.Lk());c=b.getPlayerState();g.U(c,2)?CAa(a):g.U(c,8)&&b.playVideo();a.ea()}};
CAa=function(a){if(!DAa(a)){var b=a.B.Zc();b&&(b=b.iq(),b instanceof Promise&&b["catch"](function(){}));
z0(a,JM(LT(a)))}};
BAa=function(a){var b=a.da;rB()?a.ma.N(b,"webkitpresentationmodechanged",a.tQ):qB()&&(a.ma.N(b,"enterpictureinpicture",function(){A0(a,!0)}),a.ma.N(b,"leavepictureinpicture",function(){A0(a,!1)}));
oD&&(a.ma.N(b,"webkitbeginfullscreen",function(){B0(a,3)}),a.ma.N(b,"webkitendfullscreen",function(){B0(a,0)}))};
y0=function(a,b){if(b!==a.B){var c=b.getPlayerType();a.Oe[c]=b}};
fta=function(a){a.ea();var b;if(b=a.fa)b=a.da,b=!!b&&b===a.fa.da;b&&(a.Pf(),x0(a));a.D&&(a.D.Pf(),wt(a.D,a.Kg,a));a.D=null;a.ea()};
g.Z=function(a,b){return b?1===b?a.B:a.Oe[b]||null:a.D};
t0=function(a,b){var c=a.eb;2===b&&(c=new dU(a.W));return new g.W_(a.W,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.aa.V.apply(a.aa,[d].concat(g.ma(f)))},function(){return a.u.getVisibilityState()},a.visibility)};
C0=function(a,b){return a.cd(b)?a.B:b};
D0=function(a,b){var c=a.D;return c&&b===a.B&&a.cd(b)&&a.cd(c)?c:b};
EAa=function(a){a.ea();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.C;d.xC();pU(d,"attribution",void 0,!1,!0);pU(d,"embed");pU(d,"kids");pU(d,"remote");pU(d,"miniplayer");pU(d,"music");pU(d,"captions",void 0,!0);pU(d,"unplugged");pU(d,"visualizer",void 0,!1,!0);pU(d,"ypc",void 0,!1,!0);pU(d,"ypc_clickwrap",void 0,!1,!0);pU(d,"yto",void 0,!1,!0);pU(d,"webgl",void 0,!1,!0);d.D&&c?d.J.Wc("endscreen"):pU(d,"endscreen");d.D&&c?(d.J.Wc("annotations_module"),d.J.Wc("creatorendscreen")):(d.Bx(),pU(d,"creatorendscreen",
void 0,!0));d.yC();Ata(d);c&&mJ(b)?a.Ne.N(a.u,"presentingplayerstatechange",a.NP):zta(a.C);a.u.V("videoready",b)};
E0=function(a){return a.B.getVideoData()};
g.F0=function(a,b){var c=g.Z(a,1);c&&sY(c,b)};
G0=function(a){a=E0(a);a.isValid();return mJ(a)};
uAa=function(a){var b=new g.rI(a.W,a.config.args);g.nu()&&b.Of.push("remote");b.isValid()&&(a.B.hi(b,function(){return a.De()}),a.ba("html5_androidtv_quic")&&(b=window,"h5vcc"in b&&"settings"in b.h5vcc&&b.h5vcc.settings.set("QUIC",1)),!g.Q(a.W.experiments,"html5_delay_initial_loading")&&G0(a)&&(a.W.Sl||a.W.Tl)&&vT(a.B))};
vAa=function(a){a.ea();FAa(a);var b=a.config.args;x0(a);var c=E0(a);a.u.xa("onVolumeChange",a.P);if(b&&gU(b)){var d=FD(a.W);d&&!a.R&&(b.fetch=0);var e=g.nD(a.W)&&g.Q(a.W.experiments,"embeds_wexit_list_ajax_migration");e&&!a.R&&(b.fetch=0);H0(a,b);g.nD(a.W)&&a.eb.tick("ep_pr_s");if(d&&!a.R)I0(a);else if(e&&!a.R)J0(a);else if(!c.isValid())a.playlist.onReady(function(){K0(a)})}aU(a,a.B);
g.U(a.B.getPlayerState(),128)||(b=Hga(a.W.deviceHasDisplay),"fmt.noneavailable"===b?a.B.Rd("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"===b?a.B.Rd(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&G0(a)&&(a.W.Sl||a.W.Tl)?L0(a):GAa()?(g.Nq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.ye}),HAa(!1),L0(a)):RD(a.W)||IAa(a),a.ba("web_player_inline_botguard")&&(g.HD(a.W)?(rp(function(){M0(a)}),rp(function(){Ss()})):(M0(a),
Ss())),a.ea())};
M0=function(a){if(a.ba("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().rh||"";a=a.W.cspNonce;e=e?"c1b"in Xp(e):!1;d&&(Ps.Pd?0:!nT||72E5<(0,g.N)()-nT)&&(b||c)&&(ZE("bg_i","player_att"),Ps.initialize(b,c,d,vsa,a,e))};
IAa=function(a){a.ea();a.u.V("initializingmode");g.N0(a,2);pU(a.C,"remote");g.Q(a.W.experiments,"player_cued_miniplayer_module_killswitch")||pU(a.C,"miniplayer");a.ea()};
L0=function(a){a.ea();if(g.U(a.B.getPlayerState(),128))return!1;G0(a)&&a.W.Tl&&(w0.hasTags(void 0)&&a.Ta?(AT(a,{muted:!1,volume:a.P.volume},!1),O0(a,!1)):w0.hasTags(void 0)||a.P.muted||(AT(a,{muted:!0,volume:a.P.volume},!1),O0(a,!0)));P0(a,1,a.B.getVideoData(),!1);a.u.V("initializingmode");aU(a,a.B);g.N0(a,3);var b;if(!(b=!a.W.Gn)){if(b=a.fa)b=a.da,b=!!b&&b===a.fa.da;b=b&&a.Hg}b&&(a.Pf(),x0(a),a.B.setMediaElement(a.da));h0(a.B);if(g.U(a.B.getPlayerState(),128))return!1;z0(a,3);return a.Hg=!0};
v0=function(a){a=g.MT(a.C);return!!a&&a.loaded};
Q0=function(a,b){if(!a.K)return!1;var c=.001*a.K.startTimeMs,d=.001*a.K.endTimeMs;return fe(b,c)||fe(b,d)||b>=c&&b<=d};
xAa=function(a,b){var c=a.u.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};
R0=function(a,b,c){if(a.cd(c)){c=c.getVideoData();if(a.I)c=b;else{a=a.te;for(var d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Hc===e.Hc){b+=e.pc/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Hc===e.Hc)break;var f=e.pc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.gd/1E3;else break}c=d}return c}return b};
FAa=function(a){var b=a.template;b.na();var c=b.app.T();c.Gn||b.fr("tag-pool-enabled");c.I&&b.fr(g.ZY.HOUSE_BRAND);"gvn"===c.playerStyle&&(b.fr("ytp-gvn"),b.element.style.backgroundColor="transparent");c.Ga&&(b.X=g.No("yt-dom-content-change",b.resize,b));g.Q(c.experiments,"web_player_ios_mweb_resizing")&&b.N(window,"orientationchange",b.resize,b);b.N(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=qt(a.template.element))&&
a.events.N(a.template,d,a.VO);a.events.N(window,"resize",a.lQ)};
LT=function(a,b){return 3===a.getPresentingPlayerType()?g.MT(a.C).Pc:g.Z(a,b).getPlayerState()};
JAa=function(a,b){var c;return 3===a.getPresentingPlayerType()?JM(g.MT(a.C).Pc):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.I)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Nb:-1:2!==b||a.cd()?a.Nb:a.Qc};
KAa=function(a){a.ea();S0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Cc={};var b=a.eb;if(b.u){var c=b.u;c.B={};c.u={}}b.B=!1;a.I?(b=a.I,a=a.B,a.getPlayerType(),b.ea(),AY(b,!1),bU(b),b.u=a):(b=a.te,a=a.B,1!==a.getPlayerType()&&DY(b,"e.invalidParentVideoPlayerType"),b.ea(),IY(b,!1),cU(b),b.B=a)};
I0=function(a){var b=LAa();if(b)if(!b.list)a.bv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.u.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.Ma().videoId||(b.index=a.playlist.index));iU(a.playlist,b);a.ub&&T0(a,a.ub)}else a.ub=null};
J0=function(a){var b=E0(a).MC;a.eb.tick("ep_pr_r");null!=b&&(iU(a.playlist,b),a.playlist.onReady(function(){K0(a)}))};
H0=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.bv,a),g.fg(a.playlist),a.playlist=null);b&&(a.R&&(b.fetch=0),a.playlist=new g.fU(a.W,b),a.playlist.subscribe("error",a.bv,a))};
U0=function(a,b,c,d){b in a.Cc||(c=new g.eF(c,d,{id:b,priority:1,namespace:"appad"}),a.B.addCueRange(c),a.Cc[b]=c)};
PAa=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=jw(lw(d,MAa,null),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=jw(lw(d,NAa,null),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var h=void 0===h?!1:h;f=jw(lw(d,OAa,null),d,h,"Nielsen OCR URL")}g.pu(d,void 0,f)});
return!0};
g.N0=function(a,b){b!==a.Y&&(a.ea(),2===b&&1===a.getPresentingPlayerType()&&(z0(a,-1),z0(a,5)),a.Y=b,a.u.V("appstatechange",b))};
z0=function(a,b){a.ea();if(a.D){var c=a.D.getPlayerType();if(2===c&&!a.cd()){a.Qc!==b&&(a.Qc=b,a.u.xa("onAdStateChange",b));return}if(2===c&&a.cd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Nb!==b&&(a.Nb=b,a.u.xa("onStateChange",b))};
QAa=function(a,b,c,d,e){a.ea();b=a.I?fwa(a.I,b,c,d,e):owa(a.te,b,c,d,e);a.ea();return b};
RAa=function(a,b,c){if(a.I){a=a.I;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.Hc===b){e=h;break}e?(a.ea(),void 0===d&&(d=e.gd),gwa(a,e,c,d)):wY(a,"Invalid timelinePlaybackId="+b+" specified")}else{a=a.te;d=void 0;e=null;f=g.q(a.u);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Hc===b){e=h;break}e?(a.ea(),void 0===d&&(d=e.gd),vwa(a,e,c,d)):DY(a,"e.InvalidTimelinePlaybackId timelinePlaybackId="+b)}};
SAa=function(a,b,c,d){d=void 0===d?Infinity:d;a.ea();c=c||a.D.getPlayerType();var e;g.Q(a.W.experiments,"html5_gapless_preloading")&&(e=P0(a,c,b,!0));e||(e=t0(a,c),e.hi(b,function(){return a.De()}));
pwa(a,e,d)};
pwa=function(a,b,c,d){d=void 0===d?0:d;var e=g.Z(a);e&&(C0(a,e).iI=!0);Tva(a.Ga,b,c,d).then(function(){a.u.xa("onQueuedVideoLoaded")},function(){})};
UAa=function(a,b,c,d){var e=V0(c,b.videoId,b.Hc);a.ea();b.an=!0;var f=a.D&&e===V0(a.D.getPlayerType(),a.D.getVideoData().videoId,a.D.getVideoData().Hc)?a.D:t0(a,c);f.hi(b,function(){return a.De()});
!g.Q(a.W.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&ID(a.W)||vT(f,!0);a.kb.set(e,f,d||3600);d="prefetch"+b.videoId;SE("prefetch",["pfp"],void 0,d);VE({playerInfo:{playbackType:TAa[c]},videoId:b.videoId},d);a.ea()};
V0=function(a,b,c){return a+"_"+b+"_"+c};
P0=function(a,b,c,d){if(!f){var e=V0(b,c.videoId,c.Hc);var f=a.kb.get(e);if(!f)return null;a.kb.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||Uva(a,f);return f};
Uva=function(a,b){var c=b.getPlayerType();b!==g.Z(a,c)&&(1===b.getPlayerType()?(b.getVideoData().autonavState=a.B.getVideoData().autonavState,wt(a.B,a.Dc,a),c=a.B.getPlaybackRate(),a.B.dispose(),a.B=b,a.B.setPlaybackRate(c),vt(b,a.Dc,a),KAa(a)):(c=g.Z(a,c))&&c.dispose(),a.D.getPlayerType()===b.getPlayerType()?aU(a,b):y0(a,b))};
A0=function(a,b){var c=a.W.yn&&g.Q(a.W.experiments,"html5_block_pip_with_events")||g.Q(a.W.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;if(b&&c&&a.getVideoData()&&!a.getVideoData().backgroundable&&a.da&&(c=a.da.Pa())){pt(c);return}c=a.visibility;c.pictureInPicture!==b&&(c.pictureInPicture=b,c.ff())};
KY=function(a,b,c,d){a.ea();WE("_start",a.eb.timerName)||(hta(a.eb),a.eb.info("srt",0));var e=P0(a,c||a.D.getPlayerType(),b,!1);e&&PE("pfp",void 0,"prefetch"+b.videoId);if(!e){e=g.Z(a,c);if(!e)return!1;a.kc.stop();a.cancelPlayback(4,c);e.hi(b,function(){return a.De()},d)}e===a.B&&(a.W.sf=b.oauthToken);
if(!a0(e))return!1;a.Zb&&(e.Ac.u=!1,a.Zb=!1);if(e===a.B)return g.N0(a,1),L0(a);h0(e);return!0};
W0=function(a,b,c){c=g.Z(a,c);b&&c===a.B&&(c.getVideoData().Uj=!0)};
X0=function(a,b,c){a.ea();var d=g.Z(a,c);d&&(a.cancelPlayback(4,c),d.hi(b,function(){return a.De()}),2===c&&a.B&&a.B.Yo(b.clientPlaybackNonce,b.Xo||"",b.breakType||0),d===a.B&&(g.N0(a,1),IAa(a)));
a.ea()};
g.FT=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(jD(a.W)||g.JD(a.W))return c=c||{},c.lact=Bp(),c.vis=a.u.getVisibilityState(),a.u.xa("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.eb;c.u&&(f=c.u,f.B={},f.u={});c.B=!1;a.eb.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};
VAa=function(a,b,c,d,e){b=Dsa(b,c,d,e);(c=g.nD(a.W)&&g.Q(a.W.experiments,"embeds_wexit_list_ajax_migration"))&&!a.R&&(b.fetch=0);H0(a,b);g.nD(a.W)&&a.eb.tick("ep_a_pr_s");if(c&&!a.R)c=E0(a),sta(c,b).then(function(){J0(a)});
else a.playlist.onReady(function(){K0(a)});
g.nD(a.W)&&a.eb.tick("ep_a_pr_r")};
K0=function(a){var b=a.playlist.Ma();if(b){var c=a.getVideoData();if(c.eh||!a.Aa){var d=c.Uj;b=g.nD(a.W)&&a.ba("embeds_wexit_list_ajax_migration")?KY(a,a.playlist.Ma(void 0,c.eh,c.Kh)):KY(a,b);d&&W0(a,b)}else X0(a,b)}g.nD(a.W)&&a.eb.tick("ep_p_l");a.u.xa("onPlaylistUpdate")};
g.Y0=function(a){if(a.u.isMutedByMutedAutoplay())return!1;if(3===a.getPresentingPlayerType())return!0;FD(a.W)&&!a.R&&I0(a);return!(!a.playlist||!a.playlist.hasNext())};
DAa=function(a){if(a.playlist&&g.nD(a.W)&&g.Y0(a)){var b=g.Q(a.W.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
T0=function(a,b){var c=g.Ja(b);if(c){var d=LAa();d&&d.list&&c();a.ub=null}else a.ub=b};
LAa=function(){var a=g.Ja("yt.www.watch.lists.getState");return a?a():null};
g.WAa=function(a){if(!a.da||!a.da.ol())return null;var b=a.da;a.fa?a.fa.setMediaElement(b):(a.fa=Bwa(a.u,b),a.fa&&g.D(a,a.fa));return a.fa};
XAa=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=dF.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=dF.AD_MARKER:(b.style=dF.TIME_MARKER,b.color=e),b.visible=!0);a.Kp([new g.eF(1E3*c,1E3*d,b)],1);return!0};
ata=function(a){var b=(0,g.N)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
AT=function(a,b,c){a.W.X&&(a.P=b,b.muted||O0(a,!1),c&&a.W.Rl&&!a.W.Ya&&YAa({volume:Math.floor(b.volume),muted:b.muted}),ZAa(a),c=g.pB&&a.da&&!a.da.We(),!a.W.Ya||c)&&(b=g.Vb(b),a.W.Rl||(b.unstorable=!0),a.u.xa("onVolumeChange",b))};
ZAa=function(a){var b=a.getVideoData();if(!b.Yl){b=a.W.Ya?1:oJ(b);var c=a.da;c.gp(a.P.muted);c.setVolume(a.P.volume*b/100)}};
O0=function(a,b){b!==a.Ta&&(a.Ta=b,a.u.xa("onMutedAutoplayChange",b))};
Z0=function(a){var b=ot(!0);return b&&(b===a.template.element||a.da&&b===a.da.Pa())?b:null};
aBa=function(a,b){var c=window.screen&&window.screen.orientation;if((g.Q(a.W.experiments,"lock_fullscreen2")||a.W.ba("embeds_enable_mobile_custom_controls")&&a.W.u)&&c&&c.lock&&(!g.pB||!$Aa))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.Ya||f!==d){c=c.lock(f?"portrait":"landscape");if(null!=c)c["catch"](g.Ka);a.Ya=!0}}else a.Ya&&(a.Ya=!1,c.unlock())};
B0=function(a,b){var c=!!b,d=!!a.visibility.fullscreen!==c,e=a.visibility;e.fullscreen!==b&&(e.fullscreen=b,e.ff());a.ba("html5_media_fullscreen")&&!c&&a.da&&Z0(a)===a.da.Pa()&&a.da.iq();a.template.resize();d&&a.eb.tick("fsc");d&&(a.u.V("fullscreentoggled",c),d=E0(a),c={fullscreen:c,videoId:d.gB||d.videoId,time:a.getCurrentTime()},a.u.getPlaylistId()&&(c.listId=a.u.getPlaylistId()),a.u.xa("onFullscreenChange",c))};
VT=function(a,b,c){a.u.V(b,c);var d=g.wD(a.W)||g.xD(a.W)||KD(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.u.xa(e,c)}};
$0=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.cd(h)||f)&&!g.eJ(h.getVideoData()))3===a.getPresentingPlayerType()?g.MT(a.C).ij("control_seek",b,c):(h===a.B&&a.K&&!Q0(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
bBa=function(a,b,c,d){if(!a.Zb){c&&(a.Pf(),x0(a));a.Zb=!0;c=g.Z(a);c.Ac.u=!0;c.Na("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?LI(e)&&g.JD(a.W)&&(f.live_utc_start=c.Ue(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.lg&&(f.vvt=e.lg);e.vi&&(f.vss_credentials_token=e.vi,f.vss_credentials_token_type=e.Gg);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.pj+1;f.reload_reason=b;e.pp&&(f.unplugged_partner_opt_out=
e.pp);e.Ge&&(f.ypc_is_premiere_trailer=e.Ge);a.loadVideoByPlayerVars(f,void 0,d)}};
cBa=function(a,b){a.u.xa("onAutonavChangeRequest",1!==b)};
a1=function(a,b){E0(a).autonavState=b;dBa(b);a.u.V("autonavchange",b)};
eBa=function(a){var b=a.getVideoData().Yl,c=a.W.ke,d=a.da;b||c?d.Ex():(d.Fx(),AT(a,a.P))};
tAa=function(a,b){return g.Q(a.W.experiments,"html5_enable_embedded_player_visibility_signals")&&a.W.B?new UY(b,a.W.ba("embeds_enable_intersection_observer_v2")):null};
S0=function(a){var b=sU(a.C);b&&b.created&&(a.ea(),b.destroy())};
fBa=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]=zg(a,d);b.hidden=!!a.hidden};
sAa=function(a){var b=a.W,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.Q(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.Ur&&d&&b.B?pr()||b.ma?(g.Nq("embedsStorageAccessNotChecked",{isIosWebview:pr(),isPemPlayer:b.ma}),a.Ja=!1):c.hasStorageAccess().then(function(e){g.Nq("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Ja=!e},function(e){g.Nq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Fo(Error("Embeds ITP Error: "+e));a.Ja=!1}):a.Ja=!1};
b1=function(a,b){var c=void 0;if(g.wD(a.W)&&eq(b)&&dq(b)){var d=a.getVideoData().uf();d&&(c={Authorization:"Bearer "+d})}g.pu(b,void 0,void 0,c)};
c1=function(a,b){b.forEach(function(c){b1(a,c)})};
Cwa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
gBa=function(a){var b;a=null===(b=Wsa(a.C))||void 0===b?void 0:b.chrome;if(!(a instanceof g.SU))return null;a=a.oD();return(null===a||void 0===a?void 0:a.P)||null};
g.d1=function(a){if(!hBa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(iBa,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
jBa=function(){if(!g.ye)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.e1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;rg();a=cd(a,null);return b.parseFromString(g.bd(a),"application/xml")}if(kBa){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.f1=function(a){g.C.call(this);this.B=a;this.u={}};
lBa=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)lBa(a,b,c[h],d,e,f);else{b=Ml(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.u[b.key]=b}return a};
g.mBa=function(a){g.Eb(a.u,function(b,c){this.u.hasOwnProperty(c)&&Wl(b)},a);
a.u={}};
g1=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
h1=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 ka(da(this))}})}return a});
var na="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},nBa=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=na(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),i1;
if("function"==typeof Object.setPrototypeOf)i1=Object.setPrototypeOf;else{var j1;a:{var oBa={a:!0},pBa={};try{pBa.__proto__=oBa;j1=pBa.a;break a}catch(a){}j1=!1}i1=j1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=i1;
pa.prototype.K=function(a){this.B=a};
pa.prototype["return"]=function(a){this.F={"return":a};this.u=this.R};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return nBa});
ha("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=za(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 Aa(this,b,c).rI}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=za(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=za(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||oa});
var qBa="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)Ba(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||qBa});
ha("Promise",function(a){function b(h){this.Ka=0;this.Fl=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.X),reject:h(this.C)}};
b.prototype.X=function(h){if(h===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.aa(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.fa(l,h):this.D(h)};
b.prototype.C=function(h){this.I(2,h)};
b.prototype.D=function(h){this.I(1,h)};
b.prototype.I=function(h,l){if(0!=this.Ka)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Ka);this.Ka=h;this.Fl=l;2===this.Ka&&this.Y();this.K()};
b.prototype.Y=function(){var h=this;e(function(){if(h.R()){var l=ea.console;"undefined"!==typeof l&&l.error(h.Fl)}},1)};
b.prototype.R=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.Fl;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.aa=function(h){var l=this.B();h.ct(l.resolve,l.reject)};
b.prototype.fa=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(y){try{n(t(y))}catch(x){p(x)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.ct(m(h,n),m(l,p));return r};
b.prototype["catch"]=function(h){return this.then(void 0,h)};
b.prototype.ct=function(h,l){function m(){switch(n.Ka){case 1:h(n.Fl);break;case 2:l(n.Fl);break;default:throw Error("Unexpected state: "+n.Ka);}}
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).ct(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(y){return function(x){t[y]=x;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).ct(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.entries",function(a){return a?a:function(){return Ca(this,function(b,c){return[b,c]})}});
ha("Array.prototype.keys",function(a){return a?a:function(){return Ca(this,function(b){return b})}});
ha("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Aa(this,b,c).KD}});
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!==za(this,b,"includes").indexOf(b,c||0)}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ba(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",Da);ha("Uint8Array.prototype.fill",Da);ha("Uint8ClampedArray.prototype.fill",Da);ha("Int16Array.prototype.fill",Da);ha("Uint16Array.prototype.fill",Da);ha("Int32Array.prototype.fill",Da);ha("Uint32Array.prototype.fill",Da);ha("Float32Array.prototype.fill",Da);ha("Float64Array.prototype.fill",Da);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(!Ba(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(!Ba(m,h))throw Error("WeakMap key fail: "+m);m[h][this.u]=n;return this};
b.prototype.get=function(m){return d(m)&&Ba(m,h)?m[h][this.u]:void 0};
b.prototype.has=function(m){return d(m)&&Ba(m,h)&&Ba(m[h],this.u)};
b.prototype["delete"]=function(m){return d(m)&&Ba(m,h)&&Ba(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 ka(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&&Ba(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,Ef:t}}return{id:n,list:p,index:-1,Ef: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.Ef?n.Ef.value=m:(n.Ef={next:this.u,previous:this.u.previous,head:this.u,key:l,value:m},n.list.push(n.Ef),this.u.previous.next=n.Ef,this.u.previous=n.Ef,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.Ef&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.B[l.id],l.Ef.previous.next=l.Ef.next,l.Ef.next.previous=l.Ef.previous,l.Ef.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).Ef};
e.prototype.get=function(l){return(l=d(this,l).Ef)&&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)Ba(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=za(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",Ea);ha("Uint8Array.prototype.copyWithin",Ea);ha("Uint8ClampedArray.prototype.copyWithin",Ea);ha("Int16Array.prototype.copyWithin",Ea);ha("Uint16Array.prototype.copyWithin",Ea);ha("Int32Array.prototype.copyWithin",Ea);ha("Uint32Array.prototype.copyWithin",Ea);ha("Float32Array.prototype.copyWithin",Ea);ha("Float64Array.prototype.copyWithin",Ea);g.k1=g.k1||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;Ha=null;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Va(Ya,Error);Ya.prototype.name="CustomError";var ne;g.Va(Za,Ya);Za.prototype.name="AssertionError";var ib,ki;ib=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.rBa=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.Cb=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.Oc=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.rh=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Cb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ki=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.qh=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 Xb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var sBa={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 ac;ec.prototype.Rj=!0;ec.prototype.Tg=function(){return this.u};
var dc={},cc={};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.tBa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.uBa=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.An=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]/;ic.prototype.Rj=!0;ic.prototype.Tg=function(){return this.C.toString()};
ic.prototype.B=!0;ic.prototype.u=function(){return 1};
var uaa=/%{(\w+)}/g,taa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,hc={};var Ac=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},qc=/&/g,rc=/</g,sc=/>/g,tc=/"/g,uc=/'/g,vc=/\x00/g,waa=/[\x00&<>"']/;g.Ec.prototype.Rj=!0;g.Ec.prototype.Tg=function(){return this.C.toString()};
g.Ec.prototype.B=!0;g.Ec.prototype.u=function(){return 1};
var yaa=/^(?: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,xaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Hc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Dc={},Ic=new g.Ec("about:invalid#zClosurez",Dc);Mc.prototype.Rj=!0;Mc.prototype.Tg=function(){return this.u};
var Lc={},Rc=new Mc("",Lc),Aaa=/^[-,."'%_!# 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"),Baa=/\/\*/;a:{var vBa=g.v.navigator;if(vBa){var wBa=vBa.userAgent;if(wBa){g.Vc=wBa;break a}}g.Vc=""};ad.prototype.B=!0;ad.prototype.u=function(){return this.D};
ad.prototype.Rj=!0;ad.prototype.Tg=function(){return this.C.toString()};
var xBa=/^[a-zA-Z0-9-]+$/,yBa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},zBa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},$c={},ed=new ad(g.v.trustedTypes&&g.v.trustedTypes.emptyHTML||"",0,$c);var Iaa=bb(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.bd(ed);return!b.parentElement});g.ABa=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]*))?$/,Pd=/#|$/,Kaa=/[?&]($|#)/;Wd[" "]=g.Ka;var wg,fE,$Aa,BBa,CBa,DBa,eD,fD,l1;g.xg=Wc("Opera");g.ye=Wc("Trident")||Wc("MSIE");g.hs=Wc("Edge");g.OD=g.hs||g.ye;wg=Wc("Gecko")&&!(yc(g.Vc,"WebKit")&&!Wc("Edge"))&&!(Wc("Trident")||Wc("MSIE"))&&!Wc("Edge");g.Ae=yc(g.Vc,"WebKit")&&!Wc("Edge");fE=Wc("Macintosh");$Aa=Wc("Windows");g.qr=Wc("Android");BBa=Ud();CBa=Wc("iPad");DBa=Wc("iPod");eD=Vd();fD=yc(g.Vc,"KaiOS");
a:{var m1="",n1=function(){var a=g.Vc;if(wg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.hs)return/Edge\/([\d\.]+)/.exec(a);if(g.ye)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ae)return/WebKit\/(\S+)/.exec(a);if(g.xg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
n1&&(m1=n1?n1[1]:"");if(g.ye){var o1=Zd();if(null!=o1&&o1>parseFloat(m1)){l1=String(o1);break a}}l1=m1}var $d=l1,Maa={},p1;if(g.v.document&&g.ye){var EBa=Zd();p1=EBa?EBa:parseInt($d,10)||void 0}else p1=void 0;var Naa=p1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Oaa=!g.ye||g.be(9),Paa=!wg&&!g.ye||g.ye&&g.be(9)||wg&&g.ae("1.9.1");g.ye&&g.ae("9");var Raa=g.ye||g.xg||g.Ae;g.k=g.ge.prototype;g.k.clone=function(){return new g.ge(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.ie.prototype;g.k.clone=function(){return new g.ie(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!ke(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 te={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=le.prototype;g.k.Pa=function(a){return pe(this.u,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.u).getElementsByTagName(String(a))};
g.k.ka=function(a){return g.se(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(me(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.Af=0;g.Bf=0;$e.prototype.clone=function(){return bf(this.B,this.D,this.C-this.D)};
$e.prototype.clear=function(){this.B=null;this.u=this.C=this.D=0;this.F=!1};
$e.prototype.reset=function(){this.u=this.D};
$e.prototype.advance=function(a){this.u+=a};
var af=[];ff.prototype.reset=function(){this.u.reset();this.B=this.C=-1};
ff.prototype.advance=function(a){this.u.advance(a)};nf.prototype.length=function(){return this.u.length};
nf.prototype.end=function(){var a=this.u;this.u=[];return a};var oD,sJ;g.vC=Xc();oD=Ud()||Wc("iPod");sJ=Wc("iPad");g.gD=Wc("Android")&&!(Yc()||Xc()||Wc("Opera")||Wc("Silk"));g.pB=Yc();g.Ur=Zc()&&!Vd();var rf={},vf=null;g.wf.prototype.reset=function(){this.C=[];this.u.end();this.B=0};var Ff="function"==typeof Uint8Array,Gf=[];g.Ef.prototype.toString=function(){return this.Mf.toString()};
g.Ef.prototype.clone=function(){return new this.constructor(Pf(this.Mf))};var Gi;Gi=["av.key","js","unreleased"].slice(-1)[0];var Pg=document,fh=window;var Rf={};g.k=Tf.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.r5;d=c.PR||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.tE}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=Ac(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,"",{tE:0,path:b,domain:c});return d};
g.k.Sg=function(){return Vf(this).keys};
g.k.Hf=function(){return Vf(this).values};
g.k.isEmpty=function(){return!this.u.cookie};
g.k.clear=function(){for(var a=Vf(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var vq=new Tf("undefined"==typeof document?null:document);var Waa=bb(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 Zaa=/https?:\/\/[^\/]+/,Xaa={pT:"allow-forms",qT:"allow-modals",rT:"allow-orientation-lock",sT:"allow-pointer-lock",tT:"allow-popups",uT:"allow-popups-to-escape-sandbox",vT:"allow-presentation",wT:"allow-same-origin",xT:"allow-scripts",yT:"allow-top-navigation",zT:"allow-top-navigation-by-user-activation"},bba=bb(function(){return Yaa()});g.C.prototype.Ub=!1;g.C.prototype.na=function(){return this.Ub};
g.C.prototype.dispose=function(){this.Ub||(this.Ub=!0,this.ca())};
g.C.prototype.ca=function(){if(this.Ob)for(;this.Ob.length;)this.Ob.shift()()};g.k=hg.prototype;g.k.Ee=function(){return this.right-this.left};
g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new hg(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof hg?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.jg.prototype;g.k.clone=function(){return new g.jg(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ge?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 lg={};var q1;g.u(og,dba);og.prototype.toString=function(){return this.u.toString()};
var r1=null===(q1=ng())||void 0===q1?void 0:q1.emptyHTML;new og(null!==r1&&void 0!==r1?r1:"",lg);var s1;g.u(pg,eba);pg.prototype.toString=function(){return this.u.toString()};
var t1=null===(s1=ng())||void 0===s1?void 0:s1.emptyScript;new pg(null!==t1&&void 0!==t1?t1:"",lg);g.u(qg,fba);qg.prototype.toString=function(){return this.u};new qg("about:blank",lg);new qg("about:invalid#zTSz",lg);var rg=g.Ka;var vg={};var Ng=!!window.google_async_iframe_id,Og=Ng&&window.parent||window;var Qba={NONE:0,wW:1};Tg.prototype.isVisible=function(){return this.Gm?.3<=this.xc:.5<=this.xc};var Bh={xU:0,MW:1},Ah={NONE:0,RX:1,iX:2};Ug.prototype.getValue=function(){return this.B};
g.u(Vg,Ug);Vg.prototype.setValue=function(a){if(null!==this.B||!g.Pb(this.C,a))return!1;this.B=a;return!0};
g.u(Wg,Ug);Wg.prototype.setValue=function(a){if(null!==this.B||"number"!==typeof a)return!1;this.B=a;return!0};
g.u(Xg,Ug);Xg.prototype.setValue=function(a){if(null!==this.B||"string"!==typeof a)return!1;this.B=a;return!0};Yg.prototype.disable=function(){this.B=!1};
Yg.prototype.enable=function(){this.B=!0};
Yg.prototype.isEnabled=function(){return this.B};
Yg.prototype.reset=function(){this.u={};this.B=!0;this.C={}};var Rba=!g.ye&&!Zc();ch.prototype.now=function(){return 0};
ch.prototype.B=function(){return 0};
ch.prototype.C=function(){return 0};
ch.prototype.u=function(){return 0};g.u(eh,ch);eh.prototype.now=function(){return dh()&&fh.performance.now?fh.performance.now():ch.prototype.now.call(this)};
eh.prototype.B=function(){return dh()&&fh.performance.memory?fh.performance.memory.totalJSHeapSize||0:ch.prototype.B.call(this)};
eh.prototype.C=function(){return dh()&&fh.performance.memory?fh.performance.memory.usedJSHeapSize||0:ch.prototype.C.call(this)};
eh.prototype.u=function(){return dh()&&fh.performance.memory?fh.performance.memory.jsHeapSizeLimit||0:ch.prototype.u.call(this)};hh.prototype.isVisible=function(){return 1===gh(Pg)};var mba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;lh.prototype.Ld=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=oh(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};sh.prototype.setInterval=function(a,b){return fh.setInterval(a,b)};
sh.prototype.clearInterval=function(a){fh.clearInterval(a)};
sh.prototype.setTimeout=function(a,b){return fh.setTimeout(a,b)};
sh.prototype.clearTimeout=function(a){fh.clearTimeout(a)};
La(sh);wh.prototype.getContext=function(){if(!this.u){if(!fh)throw Error("Context has not been set and window is undefined.");this.u=sh.getInstance()}return this.u};
La(wh);g.Va(yh,g.Ef);var wba={C1:1,lJ:2,S_:3};lc(fc(g.gc("https://pagead2.googlesyndication.com/pagead/osd.js")));Ch.prototype.Sz=function(a){if("string"===typeof a&&0!=a.length){var b=this.xb;if(b.B){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)}}}};
La(Ch);var u1=null;var Ih=g.v.performance,FBa=!!(Ih&&Ih.mark&&Ih.measure&&Ih.clearMarks),Gh=bb(function(){var a;if(a=FBa){var b;if(null===u1){u1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(u1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=u1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Hh.prototype.disable=function(){this.u=!1;this.events!=this.B.google_js_reporting_queue&&(Gh()&&g.Cb(this.events,Jh),this.events.length=0)};
Hh.prototype.start=function(a,b){if(!this.u)return null;var c=new yba(a,b),d="goog_"+c.label+"_"+c.uniqueId+"_start";Ih&&Gh()&&Ih.mark(d);return c};
Hh.prototype.end=function(a){if(this.u&&"number"===typeof a.value){a.duration=(Fh()||Eh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";Ih&&Gh()&&Ih.mark(b);!this.u||2048<this.events.length||this.events.push(a)}};Mh.prototype.B=function(a,b,c,d,e){e=e||this.D;try{var f=new lh;f.u.push(1);f.B[1]=mh("context",a);b.error&&b.meta&&b.id||(b=new Oh(Ph(b)));if(b.msg){var h=b.msg.substring(0,512);f.u.push(2);f.B[2]=mh("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=kh();if(m.B){var n=m.B.url||"";f.u.push(4);f.B[4]=mh("top",n)}var p=[{url:m.u.url||""},{url:m.u.url?zd(m.u.url):""}];f.u.push(5);f.B[5]=p;Dh(this.F,e,f,!1,c)}catch(r){try{Dh(this.F,e,
{context:"ecmserr",rctx:a,msg:Ph(r),url:m&&m.u.url},!1,c)}catch(t){}}return this.C};
g.u(Oh,Wf);var Lh,Rh,Kh=new Hh;(function(){Lh=new xba;Rh=new Mh;var a=Qg();a&&a.document&&("complete"==a.document.readyState?Th():Kh.u&&Yf(a,"load",function(){Th()}))})();var Aba=Date.now(),$h=-1,Yh=-1,Hj,ai=-1,Zh=!1;ci.prototype.Pa=function(){return this.K};var cl={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Dj={gJ:"start",VI:"firstquartile",cJ:"midpoint",iJ:"thirdquartile",QI:"complete",bJ:"metric",PAUSE:"pause",eJ:"resume",fJ:"skip",kJ:"viewable_impression",dJ:"mute",jJ:"unmute",WI:"fullscreen",UI:"exitfullscreen",OI:"bufferstart",NI:"bufferfinish",XI:"fully_viewable_audible_half_duration_impression",aJ:"measurable_impression",LI:"abandon",TI:"engagedview",YI:"impression",RI:"creativeview",ZI:"loaded",I1:"progress",CLOSE:"close",
oU:"collapse",M0:"overlay_resize",N0:"overlay_unmeasurable_impression",O0:"overlay_unviewable_impression",Q0:"overlay_viewable_immediate_impression",P0:"overlay_viewable_end_of_session_impression",SI:"custom_metric_viewable",I0:"verification_debug"},dda="start firstquartile midpoint thirdquartile resume loaded".split(" "),eda=["start","firstquartile","midpoint","thirdquartile"],gca=["abandon"],wk={UNKNOWN:-1,gJ:0,VI:1,cJ:2,iJ:3,QI:4,bJ:5,PAUSE:6,eJ:7,fJ:8,kJ:9,dJ:10,jJ:11,WI:12,UI:13,XI:14,aJ:15,
LI:16,TI:17,YI:18,RI:19,ZI:20,SI:21,OI:22,NI:23};var Cba={dT:"addEventListener",kX:"getMaxSize",lX:"getScreenSize",mX:"getState",nX:"getVersion",T1:"removeEventListener",YX:"isViewable"};if(Pg&&Pg.URL){var GBa,dg=Pg.URL;GBa=!!dg&&0<aba().length;Rh.C=!GBa};li.prototype.update=function(a){a&&a.document&&(this.K=Sg(!1,a,this.isMobileDevice),this.u=Sg(!0,a,this.isMobileDevice),ni(this,a),mi(this,a))};
La(li);pi.prototype.cancel=function(){th().clearTimeout(this.u);this.u=null};
pi.prototype.schedule=function(){var a=this;this.u=th().setTimeout(zh(Ch.getInstance().u.u,Vh(143,function(){a.B++;a.C.xE()})),Bba())};g.k=qi.prototype;g.k.LE=function(){return this.av()};
g.k.av=function(){return!1};
g.k.initialize=function(){return this.Yd=!0};
g.k.ao=function(){return this.u.aa};
g.k.Fq=function(){return this.u.P};
g.k.getName=function(){return this.u.za};
g.k.Mk=function(){return this.u.hD()};
g.k.hD=function(){return{}};
g.k.Qi=function(){return this.u.K};
g.k.JE=function(){var a=li.getInstance();a.u=Sg(!0,this.Df,a.isMobileDevice)};
g.k.KE=function(){mi(li.getInstance(),this.Df)};
g.k.EL=function(){ni(li.getInstance(),this.Df)};
g.k.qD=function(){return this.C.u};
g.k.xE=function(){};
g.k.isActive=function(){return this.u.F};
g.k.jo=function(a){var b=this.u,c=a.Qi();this.u=c>=this.K?a:this;b!==this.u?(this.F=this.u.F,ri(this)):this.F!==this.u.F&&(this.F=this.u.F,ri(this))};
g.k.Xk=function(a){if(a.B===this.u){var b;if(!(b=this.ma)){b=this.C;var c=this.R;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&&yi(this)}};
g.k.qj=function(){return this.R};
g.k.dispose=function(){this.fa=!0};
g.k.na=function(){return this.fa};g.k=zi.prototype;g.k.jz=function(){return!0};
g.k.Xq=function(){};
g.k.dispose=function(){if(!this.na()){var a=this.B;g.ob(a.D,this);a.R&&this.qj()&&xi(a);this.Xq();this.Y=!0}};
g.k.na=function(){return this.Y};
g.k.Mk=function(){return this.B.Mk()};
g.k.Qi=function(){return this.B.Qi()};
g.k.ao=function(){return this.B.ao()};
g.k.Fq=function(){return this.B.Fq()};
g.k.jo=function(){};
g.k.Xk=function(){this.Ck()};
g.k.qj=function(){return this.aa};g.k=Ai.prototype;g.k.Qi=function(){return this.u.Qi()};
g.k.ao=function(){return this.u.ao()};
g.k.Fq=function(){return this.u.Fq()};
g.k.create=function(a,b,c){var d=null;this.u&&(d=this.Su(a,b,c),ti(this.u,d));return d};
g.k.yE=function(){return this.Uq()};
g.k.Uq=function(){return!1};
g.k.init=function(a){return this.u.initialize()?(ti(this.u,this),this.D=a,!0):!1};
g.k.jo=function(a){0==a.Qi()&&this.D(a.ao(),this)};
g.k.Xk=function(){};
g.k.qj=function(){return!1};
g.k.dispose=function(){this.F=!0};
g.k.na=function(){return this.F};
g.k.Mk=function(){return{}};Di.prototype.add=function(a,b,c){++this.C;var d=this.C/4096,e=this.u,f=e.push;a=new Bi(a,b,c);d=new Bi(a.B,a.u,a.C+d);f.call(e,d);this.B=!0;return this};Hi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Fi(this.u);0<b.length&&(a+="?"+b);return a};La(Ki);Li.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 Kba=[1,.75,.5,.3,0];Mi.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)}};Xi.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.xc):b.xc;this.Y=Math.max(this.Y,b.xc);this.aa=-1!=this.aa?Math.min(this.aa,b.jg):b.jg;this.ha=Math.max(this.ha,b.jg);this.Ja.update(b.jg,c.jg,b.u,a,d);this.B.update(b.xc,c.xc,b.u,a,d);c=d||c.Gm!=b.Gm?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.u;this.za.update(c,a,b)};
Xi.prototype.Jm=function(){return this.za.C>=this.Ub};var HBa=new hg(0,0,0,0);var Pba=new hg(0,0,0,0);g.u(aj,g.C);g.k=aj.prototype;g.k.ca=function(){this.Uf.u&&(this.jm.Az&&(Zf(this.Uf.u,"mouseover",this.jm.Az),this.jm.Az=null),this.jm.yz&&(Zf(this.Uf.u,"mouseout",this.jm.yz),this.jm.yz=null));this.Zr&&this.Zr.dispose();this.Ec&&this.Ec.dispose();delete this.Nu;delete this.fz;delete this.dI;delete this.Uf.jl;delete this.Uf.u;delete this.jm;delete this.Zr;delete this.Ec;delete this.xb;g.C.prototype.ca.call(this)};
g.k.Pk=function(){return this.Ec?this.Ec.u:this.position};
g.k.Sz=function(a){Ch.getInstance().Sz(a)};
g.k.qj=function(){return!1};
g.k.Tt=function(){return new Xi};
g.k.Xf=function(){return this.Nu};
g.k.lD=function(a){return dj(this,a,1E4)};
g.k.oa=function(a,b,c,d,e,f,h){this.qo||(this.vt&&(a=this.hx(a,c,e,h),d=d&&this.Je.xc>=(this.Gm()?.3:.5),this.YA(f,a,d),this.lastUpdateTime=b,0<a.xc&&-1===this.QH&&(this.QH=b),-1==this.RH&&this.Jm()&&(this.RH=b),-2==this.ez&&(this.ez=Zi(this.Pk())?a.xc:-1),this.Je=a),this.fz(this))};
g.k.YA=function(a,b,c){this.Xf().update(a,b,this.Je,c)};
g.k.iy=function(){return new Tg};
g.k.hx=function(a,b,c,d){c=this.iy();c.u=b;b=th().B;b=0===gh(Pg)?-1:b.isVisible()?0:1;c.B=b;c.xc=this.zx(a);c.Gm=this.Gm();c.jg=d;return c};
g.k.zx=function(a){return 0===this.opacity&&1===ah(this.xb,"opac")?0:a};
g.k.Gm=function(){return!1};
g.k.dw=function(){return this.jL||this.nL};
g.k.lv=function(){};
g.k.zz=function(){};
g.k.Oi=function(){return 0};
g.k.Jm=function(){return this.Nu.Jm()};var fj="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};ej.prototype.next=function(){throw fj;};
ej.prototype.wj=function(){return this};g.u(ij,Tg);lj.prototype.getValue=function(){return this.B};
lj.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(mj,Xi);
mj.prototype.update=function(a,b,c,d){if(!b.paused){Xi.prototype.update.call(this,a,b,c,d);var e=jj(b)&&jj(c),f=.5<=(d?Math.min(b.xc,c.xc):c.xc);ji(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.fa+=a,this.P+=e?a:0);this.u.update(b.xc,c.xc,b.u,a,d,e);this.C.update(!0,a);this.F.update(e,a);this.X.update(c.fullscreen,a);this.Ga.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.ia.update(a,b.isVisible());this.Ob.update(a,1<=b.xc);this.Aa.update(a,
jj(b))}};g.u(qj,aca);qj.prototype.C=function(){return!0};
qj.prototype.F=function(){return!1};
qj.prototype.getId=function(){var a=this,b=Qb(Dj,function(c){return c==a.D});
return wk[b].toString()};
qj.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(rj,zi);g.k=rj.prototype;g.k.kx=function(){if(this.element){var a=this.element,b=this.B.u.Df;try{try{var c=hi(a.getBoundingClientRect())}catch(n){c=new hg(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Gg(a,b),h=f.x,l=f.y;var m=new hg(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=HBa.clone()}this.u=m}};
g.k.dC=function(){this.D=this.B.C.u};
g.k.XD=function(a){var b=1==ah(this.xb,"od");return Oba(a,this.D,this.element,b)};
g.k.eC=function(){this.timestamp=Xh()};
g.k.Ck=function(){this.eC();this.kx();if(1===ah(Ch.getInstance().xb,"vcm")&&this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element,b=new g.ie(a.videoWidth,a.videoHeight);this.X=this.u;a=this.u;var c=a.Ee(),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),
a.right=Math.round(c+d))));this.u=a}this.dC();a=this.u;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new hg(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new hg(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new hg(0,0,0,0):a;a=this.B.C;b=e=d=0;0<(this.u.bottom-this.u.top)*(this.u.right-this.u.left)&&(this.XD(c)?c=new hg(0,0,0,0):(d=li.getInstance().D,b=new hg(0,d.height,d.width,0),d=$i(c,this.u),e=$i(c,li.getInstance().u),
b=$i(c,b)));c=c.top>=c.bottom||c.left>=c.right?new hg(0,0,0,0):ig(c,-this.u.left,-this.u.top);oi()||(e=d=0);this.K=new ci(a,this.element,this.u,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var IBa=new hg(0,0,0,0);g.u(sj,rj);g.k=sj.prototype;g.k.jz=function(){this.C();return!0};
g.k.Xk=function(){rj.prototype.Ck.call(this)};
g.k.eC=function(){};
g.k.kx=function(){};
g.k.Ck=function(){this.C();rj.prototype.Ck.call(this)};
g.k.jo=function(a){a=a.isActive();a!==this.I&&(a?this.C():(li.getInstance().u=new hg(0,0,0,0),this.u=new hg(0,0,0,0),this.D=new hg(0,0,0,0),this.timestamp=-1));this.I=a};var v1={},fca=(v1.firstquartile=0,v1.midpoint=1,v1.thirdquartile=2,v1.complete=3,v1);g.u(uj,aj);g.k=uj.prototype;g.k.qj=function(){return!0};
g.k.lD=function(a){return dj(this,a,Math.max(1E4,this.D/3))};
g.k.oa=function(a,b,c,d,e,f,h){var l=this,m=this.aa(this)||{};g.Zb(m,e);this.D=m.duration||this.D;this.P=m.isVpaid||this.P;this.za=m.isYouTube||this.za;e=bca(this,b);1===zj(this)&&(f=e);aj.prototype.oa.call(this,a,b,c,d,m,f,h);this.C&&this.C.u&&g.Cb(this.K,function(n){pj(n,l)})};
g.k.YA=function(a,b,c){aj.prototype.YA.call(this,a,b,c);yj(this).update(a,b,this.Je,c);this.Qa=jj(this.Je)&&jj(b);-1==this.ia&&this.Ga&&(this.ia=this.Xf().C.u);this.ze.C=0;a=this.Jm();b.isVisible()&&kj(this.ze,"vs");a&&kj(this.ze,"vw");ji(b.volume)&&kj(this.ze,"am");jj(b)&&kj(this.ze,"a");this.ko&&kj(this.ze,"f");-1!=b.B&&(kj(this.ze,"bm"),1==b.B&&kj(this.ze,"b"));jj(b)&&b.isVisible()&&kj(this.ze,"avs");this.Qa&&a&&kj(this.ze,"avw");0<b.xc&&kj(this.ze,"pv");Aj(this,this.Xf().C.u,!0)&&kj(this.ze,"gdr");
2E3<=Ui(this.Xf().B,1)&&kj(this.ze,"pmx")};
g.k.Tt=function(){return new mj};
g.k.Xf=function(){return this.Nu};
g.k.iy=function(){return new ij};
g.k.hx=function(a,b,c,d){a=aj.prototype.hx.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.ko;a.paused=2==this.pe;a.volume=c.volume;ji(a.volume)||(this.Ta++,b=this.Je,ji(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.zx=function(a){return li.getInstance(),this.ko?1:aj.prototype.zx.call(this,a)};
g.k.Oi=function(){return 1};
g.k.getDuration=function(){return this.D};var JBa=g.A();var Pj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},pca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Qj.prototype.reset=function(){this.u=[];this.B=[]};
La(Qj);var Tj=Qj.getInstance();La(Xj);g.u(Zj,Ai);g.k=Zj.prototype;g.k.getName=function(){return(this.B?this.B:this.u).getName()};
g.k.Mk=function(){return(this.B?this.B:this.u).Mk()};
g.k.Qi=function(){return(this.B?this.B:this.u).Qi()};
g.k.init=function(a){var b=!1;(0,g.Cb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,ti(this.u,this));return b};
g.k.dispose=function(){(0,g.Cb)(this.C,function(a){a.dispose()});
Ai.prototype.dispose.call(this)};
g.k.yE=function(){return ki(this.C,function(a){return a.LE()})};
g.k.Uq=function(){return ki(this.C,function(a){return a.av()})};
g.k.Su=function(a,b,c){return new rj(a,this.u,b,c)};
g.k.Xk=function(a){this.B=a.B};var uca={threshold:[0,.3,.5,.75,1]};g.u(ak,rj);g.k=ak.prototype;g.k.jz=function(){var a=this;this.P||(this.P=Xh());if(Uh(298,function(){return vca(a)}))return!0;
si(this.B,"msf");return!1};
g.k.Xq=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.F&&(this.F.disconnect(),this.F=null)}catch(a){}};
g.k.Ck=function(){var a=bk(this);0<a.length&&ck(this,a);rj.prototype.Ck.call(this)};
g.k.kx=function(){};
g.k.XD=function(){return!1};
g.k.dC=function(){};
g.k.Mk=function(){var a={};return Object.assign(this.B.Mk(),(a.niot_obs=this.P,a.niot_cbk=this.R,a))};
g.k.getName=function(){return"nio"};g.u(dk,Ai);dk.prototype.getName=function(){return"nio"};
dk.prototype.Uq=function(){return!li.getInstance().B&&null!=this.u.u.Df.IntersectionObserver};
dk.prototype.Su=function(a,b,c){return new ak(a,this.u,b,c)};g.u(fk,qi);fk.prototype.qD=function(){return li.getInstance().u};
fk.prototype.av=function(){var a=ek();this.K!==a&&(this.u!=this&&a>this.u.K&&(this.u=this,ri(this)),this.K=a);return 2==a};
La(fk);La(gk);hk.prototype.xE=function(){kk(this,Uj(),!1)};
hk.prototype.D=function(){var a=oi(),b=Xh();a?(Zh||($h=b,g.Cb(Tj.u,function(c){var d=c.Xf();d.ma=nj(d,b,1!=c.pe)})),Zh=!0):(this.K=nk(this,b),Zh=!1,Hj=b,g.Cb(Tj.u,function(c){c.vt&&(c.Xf().R=b)}));
kk(this,Uj(),!a)};
La(hk);var ik=hk.getInstance();var ok=null,Wk="",Vk=!1;var w1=uk([void 0,1,2,3,4,8,16]),x1=uk([void 0,4,8,16]),KBa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:tk("p0",x1),p1:tk("p1",x1),p2:tk("p2",x1),p3:tk("p3",x1),cp:"cp",tos:"tos",mtos:"mtos",mtos1:sk("mtos1",[0,2,4],!1,x1),mtos2:sk("mtos2",[0,2,4],!1,x1),mtos3:sk("mtos3",[0,2,4],!1,x1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:tk("a0",x1),a1:tk("a1",x1),a2:tk("a2",x1),a3:tk("a3",x1),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:tk("c0",x1),c1:tk("c1",x1),c2:tk("c2",x1),c3:tk("c3",x1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:tk("qmtos",w1),qnc:tk("qnc",w1),qmv:tk("qmv",w1),qnv:tk("qnv",w1),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:tk("ss0",x1),ss1:tk("ss1",x1),ss2:tk("ss2",x1),ss3:tk("ss3",x1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},LBa={c:pk("c"),at:"at",
atos:sk("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:rk(),j:"dom",mtos:sk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:pk("ss"),vsv:$a("w2"),t:"t"},MBa={atos:"atos",amtos:"amtos",avt:sk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:pk("ss"),t:"t"},NBa={a:"a",tos:rk(),at:"at",c:pk("c"),mtos:sk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:$a("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},OBa={tos:rk(),at:"at",c:pk("c"),mtos:sk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:$a("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:sk("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Oc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Dca={OW:"visible",GT:"audible",n3:"time",o3:"timetype"},zk={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(Ak,qj);Ak.prototype.getId=function(){return this.K};
Ak.prototype.F=function(){return!0};
Ak.prototype.C=function(a){var b=a.Xf(),c=a.getDuration();return ki(this.I,function(d){if(void 0!=d.u)var e=Fca(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(Bk,qj);Bk.prototype.C=function(a){var b=Si(a.Xf().u,1);return Aj(a,b)};g.u(Ck,qj);Ck.prototype.C=function(a){return a.Xf().Jm()};g.u(Fk,Gca);Fk.prototype.u=function(a){var b=new Dk;b.u=Ek(a,KBa);b.C=Ek(a,MBa);return b};g.u(Gk,sj);Gk.prototype.C=function(){var a=g.Ja("ima.admob.getViewability"),b=ah(this.xb,"queryid");"function"===typeof a&&b&&a(b)};
Gk.prototype.getName=function(){return"gsv"};g.u(Hk,Ai);Hk.prototype.getName=function(){return"gsv"};
Hk.prototype.Uq=function(){var a=li.getInstance();Ch.getInstance();return a.B&&!1};
Hk.prototype.Su=function(a,b,c){return new Gk(this.u,b,c)};g.u(Ik,sj);Ik.prototype.C=function(){var a=this,b=g.Ja("ima.bridge.getNativeViewability"),c=ah(this.xb,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Sb(d)&&a.F++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.u=ii(d.opt_nativeViewBounds||{});var h=a.B.C;h.u=f?IBa.clone():ii(e);a.timestamp=d.opt_nativeTime||-1;li.getInstance().u=h.u;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Ik.prototype.getName=function(){return"nis"};g.u(Jk,Ai);Jk.prototype.getName=function(){return"nis"};
Jk.prototype.Uq=function(){var a=li.getInstance();Ch.getInstance();return a.B&&!1};
Jk.prototype.Su=function(a,b,c){return new Ik(this.u,b,c)};g.u(Kk,qi);g.k=Kk.prototype;g.k.av=function(){return null!=this.B.Vh};
g.k.hD=function(){var a={};this.ha&&(a.mraid=this.ha);this.Y&&(a.mlc=1);a.mtop=this.B.YR;this.I&&(a.mse=this.I);this.ia&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Gl=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.B.Vh[a].apply(this.B.Vh,c)}catch(e){Wh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Yd)return!this.Fq();this.Yd=!0;if(2===this.B.compatibility)return this.I="ng",si(this,"w"),!1;if(1===this.B.compatibility)return this.I="mm",si(this,"w"),!1;li.getInstance().R=!0;this.Df.document.readyState&&"complete"==this.Df.document.readyState?Ok(this):fi(this.Df,"load",function(){th().setTimeout(Vh(292,function(){return Ok(a)}),100)},292);
return!0};
g.k.JE=function(){var a=li.getInstance(),b=Rk(this,"getMaxSize");a.u=new hg(0,b.width,b.height,0)};
g.k.KE=function(){li.getInstance().D=Rk(this,"getScreenSize")};
g.k.dispose=function(){Pk(this);qi.prototype.dispose.call(this)};
La(Kk);g.k=Sk.prototype;g.k.cq=function(a){bj(a,!1);rca(a)};
g.k.Xt=function(){};
g.k.Hr=function(a,b,c,d){var e=this;this.B||(this.B=this.AC());b=c?b:-1;a=null==this.B?new uj(fh,a,b,7):new uj(fh,a,b,7,new qj("measurable_impression",this.B),Mca(this));a.mf=d;jba(a.xb);$g(a.xb,"queryid",a.mf);a.Sz("");Uba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.zD.apply(e,g.ma(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.QK.apply(e,g.ma(h))});
(d=Xj.getInstance().u)&&cj(a,d);a.Uf.jl&&gk.getInstance();return a};
g.k.jo=function(a){switch(a.Qi()){case 0:if(a=Xj.getInstance().u)a=a.u,g.ob(a.D,this),a.R&&this.qj()&&xi(a);Uk(this);break;case 2:jk(),ah(Ch.getInstance().xb,"mpv")&&Pca()}};
g.k.Xk=function(){};
g.k.qj=function(){return!1};
g.k.QK=function(a,b){a.qo=!0;switch(a.Oi()){case 1:$k(this,a,b);break;case 2:this.fA(a)}this.pA()};
g.k.YK=function(a){Cj(a,0);return Fj(a,"start",oi())};
g.k.qp=function(a,b,c){kk(ik,[a],!oi());return this.Rk(a,b,c)};
g.k.Rk=function(a,b,c){return Fj(a,c,oi())};
g.k.TK=function(a){return al(a,"firstquartile",1)};
g.k.VK=function(a){a.Ga=!0;return al(a,"midpoint",2)};
g.k.ZK=function(a){return al(a,"thirdquartile",3)};
g.k.RK=function(a){var b=al(a,"complete",4);vj(a);return b};
g.k.rH=function(a,b,c){b=oi();2!=a.pe||b||(a.Xf().R=Xh());kk(ik,[a],!b);2==a.pe&&(a.pe=1);return Fj(a,c,b)};
g.k.XK=function(a,b){var c=this.qp(a,b||{},"skip");vj(a);return c};
g.k.UK=function(a,b){bj(a,!0);return this.qp(a,b||{},"fullscreen")};
g.k.SK=function(a,b){bj(a,!1);return this.qp(a,b||{},"exitfullscreen")};
g.k.Oz=function(a,b,c){b=a.Xf();b.ma=nj(b,Xh(),1!=a.pe);kk(ik,[a],!oi());1==a.pe&&(a.pe=2);return Fj(a,c,oi())};
g.k.WK=function(a){kk(ik,[a],!oi());return a.B()};
g.k.yy=function(a){kk(ik,[a],!oi());this.nH(a);vj(a);return a.B()};
g.k.zD=function(){};
g.k.fA=function(){};
g.k.nH=function(){};
g.k.IE=function(){};
g.k.pA=function(){};
g.k.AC=function(){};var fl=g.A(),hl=!1,il=!1,jl=!1,Uca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return gl(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 gl(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 gl(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 gl(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 gl(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return il},
function(){return jl},
function(){return gl(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 gl(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]||el(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 el(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 gl(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 el(a.CSS.supports)},
function(){return el(Intl.Collator)},
function(a){return el(a.document.createElement("dialog").show)},
function(){return gl(8)},
function(a){return el(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 el(a.document.createElement("div").animate)},
function(a){return el(a.document.documentElement.webkitRequestFullScreen)},
function(a){return el(a.navigator.getBattery)},
function(a){return el(a.navigator.permissions.query)},
function(){return!1},
function(){return gl(9)},
function(){return el(webkitRequestAnimationFrame)},
function(a){return el(a.BroadcastChannel.call)},
function(a){return el(a.FontFace)},
function(a){return el(a.Gamepad)},
function(){return gl(10)},
function(a){return el(a.MutationEvent)},
function(a){return el(a.MutationObserver)},
function(a){return el(a.crypto.getRandomValues)},
function(a){return el(a.document.body.createShadowRoot)},
function(a){return el(a.document.body.webkitCreateShadowRoot)},
function(a){return el(a.fetch)},
function(){return gl(11)},
function(a){return el(a.navigator.serviceWorker.register)},
function(a){return el(a.navigator.webkitGetGamepads)},
function(a){return el(a.speechSynthesis.speak)},
function(a){return el(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return gl(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 gl(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 gl(14)},
function(a){return"undefined"==typeof a.navigator.x5},
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")}],Vca=[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}],Wca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Va(ll,kl);ll.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.D=this.C=0};
ll.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;)pl(this,a,f),f+=this.B;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.B){pl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.B){pl(this,d);e=0;break}}this.C=e;this.D+=b};
ll.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(ql,Fk);ql.prototype.u=function(a){var b=Fk.prototype.u.call(this,a);var c=fl=g.A();var d=gl(5);c=(il?!d:d)?c|2:c&-3;d=gl(2);c=(jl?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.B||(this.B=Xca());b.F=this.B;b.I=Ek(a,LBa,c,"h",rl("kArwaWEsTs"));b.D=Ek(a,NBa,{},"h",rl("b96YPMzfnx"));b.B=Ek(a,OBa,{},"h",rl("yb8Wev6QDg"));return b};sl.prototype.u=function(){return g.Ja(this.B)};g.u(tl,sl);tl.prototype.u=function(a){if(!a.Qo)return sl.prototype.u.call(this,a);var b=this.D[a.Qo];if(b)return function(c,d,e){b.B(c,d,e)};
Wh(393,Error());return null};g.u(ul,Sk);g.k=ul.prototype;g.k.Xt=function(a,b){var c=this,d=Xj.getInstance();if(null!=d.u)switch(d.u.getName()){case "nis":var e=ada(this,a,b);break;case "gsv":e=$ca(this,a,b);break;case "exc":e=bda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Qca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Oi()&&(e.aa==g.Ka&&(e.aa=function(f){return c.IE(f)}),Zca(this,e,b));
return e};
g.k.IE=function(a){a.B=0;a.ha=0;if("h"==a.F||"n"==a.F){var b;Ch.getInstance();if(a.Qo&&xl(this)){var c=this.R[a.Qo];c?b=function(e){return c.u(e)}:null!==c&&Wh(379,Error())}else b=g.Ja("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.mf)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.F)if(b=g.Ja("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.mf)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.F)if(b=g.Ja("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.mf)}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.Sb(d)?a.B|=32:null!=d.errorCode&&(a.ha=d.errorCode,a.B|=64));null==d&&(d={});Rca(d,a);ji(d.volume)&&ji(void 0)&&(d.volume*=NaN);
return d};
g.k.AC=function(){if(xl(this))return new tl("ima.common.triggerExternalActivityEvent",this.C,this.R);var a=cda(this);return null!=a?new sl(a,this.C):null};
g.k.fA=function(a){!a.u&&a.qo&&Zk(this,a,"overlay_unmeasurable_impression")&&(a.u=!0)};
g.k.nH=function(a){a.BH&&(a.Jm()?Zk(this,a,"overlay_viewable_end_of_session_impression"):Zk(this,a,"overlay_unviewable_impression"),a.BH=!1)};
g.k.zD=function(){};
g.k.pA=function(){};
g.k.Hr=function(a,b,c,d){a=Sk.prototype.Hr.call(this,a,b,c,d);this.F&&(b=this.I,null==a.I&&(a.I=new Wba),b.u[a.mf]=a.I,a.I.F=JBa);return a};
g.k.cq=function(a){a&&1==a.Oi()&&this.F&&delete this.I.u[a.mf];return Sk.prototype.cq.call(this,a)};
La(ul);var vl=new Dk;vl.F="stopped";vl.u="stopped";vl.C="stopped";vl.I="stopped";vl.D="stopped";vl.B="stopped";Object.freeze(vl);var PBa=Sh(193,zl,bl);g.Fa("Goog_AdSense_Lidar_sendVastEvent",PBa,void 0);var QBa=Vh(194,function(a,b){b=void 0===b?{}:b;var c=wl(ul.getInstance(),a,b);return yl(c)});
g.Fa("Goog_AdSense_Lidar_getViewability",QBa,void 0);var RBa=Sh(195,function(){return vh()},void 0);
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",RBa,void 0);var SBa=Vh(196,function(){return g.Nj(vh())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",SBa,void 0);var gea=(new Date).getTime();var Ul=!g.ye||g.be(9),TBa=g.ye&&!g.ae("9");!g.Ae||g.ae("528");wg&&g.ae("1.9b")||g.ye&&g.ae("8")||g.xg&&g.ae("9.5")||g.Ae&&g.ae("528");wg&&!g.ae("8")||g.ye&&g.ae("9");var kda=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.Ka,b),g.v.removeEventListener("test",g.Ka,b)}catch(c){}return a}();g.El.prototype.stopPropagation=function(){this.u=!0};
g.El.prototype.preventDefault=function(){this.defaultPrevented=!0};var $ta;$ta=g.Ae?"webkitAnimationEnd":g.xg?"oanimationend":"animationend";g.Va(Fl,g.El);var UBa={2:"touch",3:"pen",4:"mouse"};
Fl.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?wg&&(Xd(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:UBa[a.pointerType]||"";this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()};
Fl.prototype.stopPropagation=function(){Fl.Jd.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0};
Fl.prototype.preventDefault=function(){Fl.Jd.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,TBa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Gl="closure_listenable_"+(1E6*Math.random()|0),hda=0;Jl.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=Ll(a,b,d,e);-1<h?(b=a[h],c||(b.Zs=!1)):(b=new ida(b,this.src,f,!!d,e),b.Zs=c,a.push(b));return b};
Jl.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Ll(e,b,c,d);return-1<b?(Il(e[b]),g.nb(e,b),0==e.length&&(delete this.listeners[a],this.u--),!0):!1};
Jl.prototype.uq=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Ll(a,b,c,d));return-1<e?a[e]:null};var Rl="closure_lm_"+(1E6*Math.random()|0),Xl={},Tl=0,$l="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Va(g.am,g.C);g.am.prototype[Gl]=!0;g.k=g.am.prototype;g.k.addEventListener=function(a,b,c,d){Nl(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Vl(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.za;if(b){var c=[];for(var d=1;b;b=b.za)c.push(b),++d}b=this.Ga;d=a.type||a;if("string"===typeof a)a=new g.El(a,b);else if(a instanceof g.El)a.target=a.target||b;else{var e=a;a=new g.El(d,b);g.Zb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=bm(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=bm(h,d,!0,a)&&e,a.u||(e=bm(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=bm(h,d,!1,a)&&e;return e};
g.k.ca=function(){g.am.Jd.ca.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,Il(d[e]);delete a.listeners[c];a.u--}}this.za=null};
g.k.wa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Bu=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.Mb=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.uq=function(a,b,c,d){return this.B.uq(String(a),b,c,d)};cm.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 fm,mda=g.ab;hm.prototype.add=function(a,b){var c=om.get();c.set(a,b);this.B?this.B.next=c:this.u=c;this.B=c};
hm.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};
var om=new cm(function(){return new im},function(a){return a.reset()});
im.prototype.set=function(a,b){this.u=a;this.scope=b;this.next=null};
im.prototype.reset=function(){this.next=this.scope=this.u=null};var jm,km=!1,lm=new hm;sm.prototype.reset=function(){this.context=this.onRejected=this.C=this.u=null;this.B=!1};
var tm=new cm(function(){return new sm},function(a){a.reset()});
rm.prototype.then=function(a,b,c){return Bm(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
rm.prototype.$goog_Thenable=!0;rm.prototype.cancel=function(a){if(0==this.Ka){var b=new Hm(a);g.mm(function(){Dm(this,b)},this)}};
rm.prototype.wS=function(a){this.Ka=0;qm(this,2,a)};
rm.prototype.xS=function(a){this.Ka=0;qm(this,3,a)};
rm.prototype.bK=function(){for(var a;a=Em(this);)Fm(this,a,this.Ka,this.Fl);this.Px=!1};
var Jm=em;g.Va(Hm,Ya);Hm.prototype.name="cancel";g.Va(g.Km,g.am);g.k=g.Km.prototype;g.k.enabled=!1;g.k.Za=null;g.k.setInterval=function(a){this.yf=a;this.Za&&this.enabled?(this.stop(),this.start()):this.Za&&this.stop()};
g.k.nS=function(){if(this.enabled){var a=g.A()-this.mE;0<a&&a<.8*this.yf?this.Za=this.ls.setTimeout(this.aC,this.yf-a):(this.Za&&(this.ls.clearTimeout(this.Za),this.Za=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Za||(this.Za=this.ls.setTimeout(this.aC,this.yf),this.mE=g.A())};
g.k.stop=function(){this.enabled=!1;this.Za&&(this.ls.clearTimeout(this.Za),this.Za=null)};
g.k.ca=function(){g.Km.Jd.ca.call(this);this.stop();delete this.ls};g.k=g.Nm.prototype;g.k.Hf=function(){Pm(this);for(var a=[],b=0;b<this.u.length;b++)a.push(this.B[this.u[b]]);return a};
g.k.Sg=function(){Pm(this);return this.u.concat()};
g.k.isEmpty=function(){return 0==this.C};
g.k.clear=function(){this.B={};this.Ol=this.C=this.u.length=0};
g.k.remove=function(a){return Om(this.B,a)?(delete this.B[a],this.C--,this.Ol++,this.u.length>2*this.C&&Pm(this),!0):!1};
g.k.get=function(a,b){return Om(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Om(this.B,a)||(this.C++,this.u.push(a),this.Ol++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.Sg(),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.Nm(this)};
g.k.wj=function(a){Pm(this);var b=0,c=this.Ol,d=this,e=new ej;e.next=function(){if(c!=d.Ol)throw Error("The map has changed since the iterator was created");if(b>=d.u.length)throw fj;var f=d.u[b++];return a?f:d.B[f]};
return e};g.Qm.prototype.toString=function(){var a=[],b=this.F;b&&a.push(Xm(b,VBa,!0),":");var c=this.u;if(c||"file"==b)a.push("//"),(b=this.R)&&a.push(Xm(b,VBa,!0),"@"),a.push(md(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(Xm(c,"/"==c.charAt(0)?WBa:XBa,!0));(c=this.C.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Xm(c,YBa));return a.join("")};
g.Qm.prototype.resolve=function(a){var b=this.clone(),c=!!a.F;c?g.Rm(b,a.F):c=!!a.R;c?b.R=a.R:c=!!a.u;c?g.Sm(b,a.u):c=null!=a.D;var d=a.B;if(c)g.Tm(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=nc(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?Um(b,a.C.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.Qm.prototype.clone=function(){return new g.Qm(this)};
var VBa=/[#\/\?@]/g,XBa=/[#\?:]/g,WBa=/[#\?]/g,uda=/[#\?@]/g,YBa=/#/g;g.k=Wm.prototype;g.k.add=function(a,b){Zm(this);this.C=null;a=$m(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){Zm(this);a=$m(this,a);return Om(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(){Zm(this);return 0==this.B};
g.k.forEach=function(a,b){Zm(this);this.u.forEach(function(c,d){g.Cb(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.Sg=function(){Zm(this);for(var a=this.u.Hf(),b=this.u.Sg(),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.Hf=function(a){Zm(this);var b=[];if("string"===typeof a)an(this,a)&&(b=g.qb(b,this.u.get($m(this,a))));else{a=this.u.Hf();for(var c=0;c<a.length;c++)b=g.qb(b,a[c])}return b};
g.k.set=function(a,b){Zm(this);this.C=null;a=$m(this,a);an(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.Hf(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.Sg(),c=0;c<b.length;c++){var d=b[c],e=md(d);d=this.Hf(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+md(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new Wm;a.C=this.C;this.u&&(a.u=this.u.clone(),a.B=this.B);return a};var cn="://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;fn.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)};
fn.prototype.get=function(a){return!!this.B[a]};g.Va(g.gn,g.C);g.k=g.gn.prototype;g.k.start=function(){this.stop();this.D=!1;var a=hn(this),b=jn(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.u=Nl(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(kaa(this.C),20)};
g.k.Sb=function(){this.isActive()||this.start()};
g.k.stop=function(){if(this.isActive()){var a=hn(this),b=jn(this);a&&!b&&this.B.mozRequestAnimationFrame?Wl(this.u):a&&b?b.call(this.B,this.u):this.B.clearTimeout(this.u)}this.u=null};
g.k.rg=function(){this.isActive()&&(this.stop(),this.sD())};
g.k.isActive=function(){return null!=this.u};
g.k.sD=function(){this.D&&this.u&&Wl(this.u);this.u=null;this.I.call(this.F,g.A())};
g.k.ca=function(){this.stop();g.gn.Jd.ca.call(this)};g.Va(g.F,g.C);g.k=g.F.prototype;g.k.Bq=0;g.k.ca=function(){g.F.Jd.ca.call(this);this.stop();delete this.u;delete this.B};
g.k.start=function(a){this.stop();this.Bq=g.Lm(this.C,void 0!==a?a:this.yf)};
g.k.Sb=function(a){this.isActive()||this.start(a)};
g.k.stop=function(){this.isActive()&&g.v.clearTimeout(this.Bq);this.Bq=0};
g.k.rg=function(){this.isActive()&&g.kn(this)};
g.k.isActive=function(){return 0!=this.Bq};
g.k.tD=function(){this.Bq=0;this.u&&this.u.call(this.B)};g.Va(ln,kl);ln.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};
ln.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.B,d=0,e=this.I,f=this.C;d<b;){if(0==f)for(;d<=c;)mn(this,a,d),d+=this.B;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.B){mn(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.B){mn(this,e);f=0;break}}this.C=f;this.D+=b}};
ln.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.I[c]=b&255,b/=256;mn(this,this.I);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.Va(g.vn,g.am);g.k=g.vn.prototype;g.k.Hb=function(){return 1==this.Ka};
g.k.wv=function(){this.Pg("begin")};
g.k.sr=function(){this.Pg("end")};
g.k.Zf=function(){this.Pg("finish")};
g.k.Pg=function(a){this.dispatchEvent(a)};var ZBa=bb(function(){if(g.ye)return g.ae("10.0");var a=g.Fe("DIV"),b=g.Ae?"-webkit":wg?"-moz":g.ye?"-ms":g.xg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!xBa.test("div"))throw Error("");if("DIV"in zBa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!xBa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof ec)e=fc(e);else if("style"==f.toLowerCase()){if(!g.Pa(e))throw Error("");
e instanceof Mc||(e=Sc(e));e=Nc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in yBa)if(e instanceof ic)e=jc(e).toString();else if(e instanceof g.Ec)e=g.Fc(e);else if("string"===typeof e)e=g.Jc(e).Tg();else throw Error("");}e.Rj&&(e=e.Tg());f=f+'="'+xc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===sBa.div?h+=">":(c=Gaa(d),h+=">"+g.bd(c).toString()+"</div>",c=c.u());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=cd(h,c);g.gd(a,
b);return""!=g.yg(a.firstChild,"transition")});g.Va(wn,g.vn);g.k=wn.prototype;g.k.play=function(){if(this.Hb())return!1;this.wv();this.Pg("play");this.startTime=g.A();this.Ka=1;if(ZBa())return g.ug(this.u,this.I),this.D=g.Lm(this.uR,void 0,this),!0;this.oy(!1);return!1};
g.k.uR=function(){g.Lg(this.u);zda(this.u,this.K);g.ug(this.u,this.C);this.D=g.Lm((0,g.z)(this.oy,this,!1),1E3*this.F)};
g.k.stop=function(){this.Hb()&&this.oy(!0)};
g.k.oy=function(a){g.ug(this.u,"transition","");g.v.clearTimeout(this.D);g.ug(this.u,this.C);this.endTime=g.A();this.Ka=0;a?this.Pg("stop"):this.Zf();this.sr()};
g.k.ca=function(){this.stop();wn.Jd.ca.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=yn("getPropertyValue"),Fda=yn("setProperty");var Dda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Cn.prototype.clone=function(){return new g.Cn(this.u,this.F,this.C,this.I,this.D,this.K,this.B,this.R)};g.En.prototype.B=0;g.En.prototype.reset=function(){this.u=this.C=this.D;this.B=0};
g.En.prototype.getValue=function(){return this.C};Gn.prototype.clone=function(){return new Gn(this.start,this.end)};
Gn.prototype.getLength=function(){return this.end-this.start};var $Ba=new WeakMap;(function(){if($Aa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Vc))?a[1]:"0"}return fE?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Vc))?a[0].replace(/_/g,"."):"10"):g.qr?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Vc))?a[1]:""):BBa||CBa||DBa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Vc))?a[1].replace(/_/g,"."):""):""})();var Mda=function(){if(g.vC)return Hn(/Firefox\/([0-9.]+)/);if(g.ye||g.hs||g.xg)return $d;if(g.pB)return Vd()?Hn(/CriOS\/([0-9.]+)/):Hn(/Chrome\/([0-9.]+)/);if(g.Ur&&!Vd())return Hn(/Version\/([0-9.]+)/);if(oD||sJ){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vc);if(a)return a[1]+"."+a[2]}else if(g.gD)return(a=Hn(/Android\s+([0-9.]+)/))?a:Hn(/Version\/([0-9.]+)/);return""}();g.Va(g.Jn,g.C);g.k=g.Jn.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.fb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.Cm(a)}return!1};
g.k.Cm=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.Ka):(c&&g.ob(c,a),delete this.u[a],delete this.u[a+1],delete this.u[a+2])}return!!b};
g.k.V=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.I)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.Cm(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(g.Cb(b,this.Cm,this),delete this.B[a])}else this.u.length=0,this.B={}};
g.k.ca=function(){g.Jn.Jd.ca.call(this);this.clear();this.C.length=0};g.Kn.prototype.set=function(a,b){void 0===b?this.u.remove(a):this.u.set(a,g.Nj(b))};
g.Kn.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.Kn.prototype.remove=function(a){this.u.remove(a)};g.Va(Ln,g.Kn);Ln.prototype.set=function(a,b){Ln.Jd.set.call(this,a,Nn(b))};
Ln.prototype.B=function(a){a=Ln.Jd.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Ln.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.Va(On,Ln);On.prototype.set=function(a,b,c){if(b=Nn(b)){if(c){if(c<g.A()){On.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.A()}On.Jd.set.call(this,a,b)};
On.prototype.B=function(a,b){var c=On.Jd.B.call(this,a);if(c)if(!b&&g.Yn(c))On.prototype.remove.call(this,a);else return c};g.Va(g.Zn,On);g.Va($n,Oda);$n.prototype.clear=function(){var a=Vba(this.wj(!0)),b=this;g.Cb(a,function(c){b.remove(c)})};g.Va(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.wj=function(a){var b=0,c=this.u,d=new ej;d.next=function(){if(b>=c.length)throw fj;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.Va(bo,ao);g.Va(co,ao);g.Va(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.wj=function(a){var b=0,c=this.u.XMLDocument.documentElement.attributes,d=new ej;d.next=function(){if(b>=c.length)throw fj;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.Va(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.wj=function(a){var b=this.B.wj(!0),c=this,d=new ej;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)lb(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.Hf=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Sg=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.kb(this.u)};
g.k.clear=function(){lb(this.u)};g.Va(g.no,lo);La(oo);oo.prototype.u=0;g.Va(po,g.Ef);g.Va(qo,g.Ef);var Qda=[2,13,14];qo.prototype.getKey=function(){return g.Kf(this,3)};var ro=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Fa("yt.config_",ro,void 0);var Co={};var Do=[];var aCa,Ko,Mo;aCa=g.v.ytPubsubPubsubInstance||new g.Jn;Ko=g.v.ytPubsubPubsubSubscribedKeys||{};Mo=g.v.ytPubsubPubsubTopicToKeys||{};g.Lo=g.v.ytPubsubPubsubIsSynchronous||{};g.Jn.prototype.subscribe=g.Jn.prototype.subscribe;g.Jn.prototype.unsubscribeByKey=g.Jn.prototype.Cm;g.Jn.prototype.publish=g.Jn.prototype.V;g.Jn.prototype.clear=g.Jn.prototype.clear;g.Fa("ytPubsubPubsubInstance",aCa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",Mo,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.Lo,void 0);
g.Fa("ytPubsubPubsubSubscribedKeys",Ko,void 0);var Uda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Vda=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Uo={};var zD={UY:"LIVING_ROOM_APP_MODE_UNSPECIFIED",RY:"LIVING_ROOM_APP_MODE_MAIN",QY:"LIVING_ROOM_APP_MODE_KIDS",SY:"LIVING_ROOM_APP_MODE_MUSIC",TY:"LIVING_ROOM_APP_MODE_UNPLUGGED",PY:"LIVING_ROOM_APP_MODE_GAMING"},TAa={o1:"PLAYBACK_TYPE_UNKNOWN",h1:"PLAYBACK_TYPE_APPLICATION",g1:"PLAYBACK_TYPE_ADS",m1:"PLAYBACK_TYPE_REMOTE",n1:"PLAYBACK_TYPE_SECONDARY_CAMERA",l1:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",k1:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",j1:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var bCa=0,Vo=g.Ae?"webkit":wg?"moz":g.ye?"ms":g.xg?"o":"",cCa=g.Ja("ytDomDomGetNextId")||function(){return++bCa};
g.Fa("ytDomDomGetNextId",cCa,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};Yo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Yo.prototype.WD=function(){return this.event?!1===this.event.returnValue:!1};
Yo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Yo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $o=g.v.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",$o,void 0);var ap=g.v.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",ap,void 0);var dCa=bb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),bp=bb(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var iz=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.Va(op,g.C);op.prototype.Y=function(a){void 0===a.u&&Zo(a);var b=a.u;void 0===a.B&&Zo(a);this.u=new g.ge(b,a.B)};
op.prototype.Pk=function(){return this.u||new g.ge};
op.prototype.K=function(){if(this.u){var a=iz();if(0!=this.D){var b=this.I,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.I=this.u;this.C=(this.C+1)%4}};
op.prototype.ca=function(){window.clearInterval(this.X);g.dp(this.R)};g.u(tp,pp);tp.prototype.start=function(){var a=g.Ja("yt.scheduler.instance.start");a&&a()};
tp.prototype.pause=function(){var a=g.Ja("yt.scheduler.instance.pause");a&&a()};
La(tp);tp.getInstance();var Ap={};var y1;y1=window;g.N=y1.ytcsi&&y1.ytcsi.now?y1.ytcsi.now:y1.performance&&y1.performance.timing&&y1.performance.now&&y1.performance.timing.navigationStart?function(){return y1.performance.timing.navigationStart+y1.performance.now()}:function(){return(new Date).getTime()};var cea=g.wo("initial_gel_batch_timeout",1E3),Op=Math.pow(2,16)-1,Pp=null,Np=0,Ep=void 0,Cp=0,Dp=0,Rp=0,Ip=!0,Fp=g.v.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",Fp,void 0);var Lp=g.v.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",Lp,void 0);var Qp=g.v.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",Qp,void 0);var fea={q:!0,search_query:!0};var fq=new function(){var a=window.document;this.u=window;this.B=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return Wp(hq(a))},void 0);var iq="XMLHttpRequest"in g.v?function(){return new XMLHttpRequest}:null;var lq={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-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","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"},jea="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(" "),
sq=!1,hG=mq;zq.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.Nj(b))}catch(f){return}else e=escape(b);g.wq(a,e,c,this.B)};
zq.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.xq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
zq.prototype.remove=function(a){this.u&&this.u.remove(a);g.yq(a,"/",this.B)};Bq.prototype.toString=function(){return this.topic};var eCa=g.Ja("ytPubsub2Pubsub2Instance")||new g.Jn;g.Jn.prototype.subscribe=g.Jn.prototype.subscribe;g.Jn.prototype.unsubscribeByKey=g.Jn.prototype.Cm;g.Jn.prototype.publish=g.Jn.prototype.V;g.Jn.prototype.clear=g.Jn.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",eCa,void 0);var Eq=g.Ja("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",Eq,void 0);var Gq=g.Ja("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",Gq,void 0);
var Fq=g.Ja("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",Fq,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);Jq.prototype.u=function(a,b){var c={},d=Dl([]);if(d){c.Authorization=d;var e=d=null===b||void 0===b?void 0:b.sessionIndex;void 0===e&&(e=Number(g.L("SESSION_INDEX",0)),e=isNaN(e)?0:e);c["X-Goog-AuthUser"]=e;"INNERTUBE_HOST_OVERRIDE"in ro||(c["X-Origin"]=window.location.origin);g.vo("pageid_as_header_web")&&void 0===d&&"DELEGATED_SESSION_ID"in ro&&(c["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID"))}return c};var ey={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Oq=[],Lq,Qq=!1;Sq.all=function(a){return new Sq(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={vn:0};f.vn<a.length;f={vn:f.vn},++f.vn)Sq.resolve(a[f.vn]).then(function(h){return function(l){d[h.vn]=l;e--;0===e&&b(d)}}(f))["catch"](function(h){c(h)})})};
Sq.resolve=function(a){return new Sq(function(b,c){a instanceof Sq?a.then(b,c):b(a)})};
Sq.reject=function(a){return new Sq(function(b,c){c(a)})};
Sq.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:tea,e=null!==b&&void 0!==b?b:sea;return new Sq(function(f,h){"PENDING"===c.state.status?(c.u.push(function(){Uq(c,c,d,f,h)}),c.onRejected.push(function(){Vq(c,c,e,f,h)})):"FULFILLED"===c.state.status?Uq(c,c,d,f,h):"REJECTED"===c.state.status&&Vq(c,c,e,f,h)})};
Sq.prototype["catch"]=function(a){return this.then(void 0,a)};$q.prototype.advance=function(a){this.cursor.advance(a);return ar(this.request)};
$q.prototype["continue"]=function(a){this.cursor["continue"](a);return ar(this.request)};
$q.prototype.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return ar(this.request)};
$q.prototype.getKey=function(){return this.cursor.key};var or=oD||sJ;g.u(g.tr,Error);var z1={},ur=(z1.AUTH_INVALID="No user identifier specified.",z1.EXPLICIT_ABORT="Transaction was explicitly aborted.",z1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",z1.MISSING_OBJECT_STORE="Object store not created.",z1.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",z1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",z1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",z1);g.u(vr,g.tr);g.u(wr,vr);g.k=xr.prototype;g.k.add=function(a,b,c){return yr(this,[a],"readwrite",function(d){return Sr(d,a).add(b,c)})};
g.k.clear=function(a){return yr(this,[a],"readwrite",function(b){return Sr(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 yr(this,[a],"readonly",function(c){return Sr(c,a).count(b)})};
g.k["delete"]=function(a,b){return yr(this,[a],"readwrite",function(c){return Sr(c,a)["delete"](b)})};
g.k.get=function(a,b){return yr(this,[a],"readwrite",function(c){return Sr(c,a).get(b)})};
g.k=Wr.prototype;g.k.add=function(a,b){return Yq(this.u.add(a,b))};
g.k.clear=function(){return Yq(this.u.clear()).then(function(){})};
g.k.count=function(a){return Yq(this.u.count(a))};
g.k["delete"]=function(a){return a instanceof IDBKeyRange?wea(this,a):Yq(this.u["delete"](a))};
g.k.get=function(a){return Yq(this.u.get(a))};
g.k.index=function(a){return new $r(this.u.index(a))};
g.k.getName=function(){return this.u.name};
Zr.prototype.abort=function(){this.u.abort();this.aborted=!0;throw new vr("EXPLICIT_ABORT");};
Zr.prototype.commit=function(){var a=this.u;a.commit&&!this.aborted&&a.commit()};
$r.prototype.count=function(a){return Yq(this.u.count(a))};
$r.prototype["delete"]=function(a){return Bea(this,{query:a},function(b){return b["delete"]().then(function(){return b["continue"]()})})};
$r.prototype.get=function(a){return Yq(this.u.get(a))};
$r.prototype.getKey=function(a){return Yq(this.u.getKey(a))};
g.k=as.prototype;g.k.advance=function(a){this.cursor.advance(a);return Yr(this.request)};
g.k["continue"]=function(a){this.cursor["continue"](a);return Yr(this.request)};
g.k["delete"]=function(){return Yq(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 Yq(this.cursor.update(a))};g.k=ds.prototype;g.k.Kz=function(a,b,c){c=void 0===c?{}:c;return bs(a,b,c)};
g.k["delete"]=function(a){a=void 0===a?{}:a;return cs(this.name,a)};
g.k.sC=function(){};
g.k.tC=function(){};
g.k.open=function(){var a=this;if(!this.u){var b=function(){a.u===e&&(a.u=void 0,a.tC(b))},c={blocking:function(f){f.close()},
closed:b,lS:b,upgrade:this.options.upgrade},d=function(){return We(a,function h(){var l=this,m,n,p;return xa(h,function(r){switch(r.u){case 1:return r.C=2,sa(r,l.Kz(l.name,l.options.version,c),4);case 4:m=r.B;if(!g.vC){r.u=5;break}a:{var t=g.q(Object.keys(l.options.zF));for(var w=t.next();!w.done;w=t.next())if(w=w.value,!m.u.objectStoreNames.contains(w)){t=w;break a}t=void 0}n=t;if(void 0===n){r.u=5;break}if(!g.vC||l.B){r.u=7;break}l.B=!0;return sa(r,l["delete"](),8);case 8:return r["return"](d());
case 7:throw new wr(n);case 5:return r["return"](m);case 2:p=ua(r);if(p instanceof DOMException?"VersionError"===p.name:"DOMError"in self&&p instanceof DOMError?"VersionError"===p.name:p instanceof Object&&"message"in p&&"An attempt was made to open a database using a lower version than the existing version."===p.message)return r["return"](l.Kz(l.name,void 0,Object.assign(Object.assign({},c),{upgrade:void 0})));b();throw p;}})})};
var e=d();this.sC(b);this.u=e}return this.u};var es=new ds("YtIdbMeta",{zF:{databases:!0},upgrade:function(a,b){1>b&&a.u.createObjectStore("databases",{keyPath:"actualName"})}});var A1=new g.am;var is;g.u(ps,ds);ps.prototype.Kz=function(a,b,c){c=void 0===c?{}:c;return(this.options.WR?Fea:Eea)(a,b,Object.assign(Object.assign({},c),{clearDataOnAuthChange:this.options.clearDataOnAuthChange}))};
ps.prototype.sC=function(a){A1.Bu.call(A1,"authchanged",a)};
ps.prototype.tC=function(a){A1.Mb("authchanged",a)};
ps.prototype["delete"]=function(a){a=void 0===a?{}:a;return(this.options.WR?Hea:Gea)(this.name,a)};g.u(qs,Sq);qs.reject=Sq.reject;qs.resolve=Sq.resolve;qs.all=Sq.all;var rs;g.u(vs,g.am);g.u(ys,g.am);var zs;g.Cs.prototype.isReady=function(){!this.Tf&&uq()&&(this.Tf=g.Kp());return!!this.Tf};var Nea=[{wE:function(a){return"Cannot read property '"+a.key+"'"},
Nz:{TypeError:[{hh:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{hh:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{hh:/\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"]},{hh:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{hh:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{hh:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{wE:function(a){return"Cannot call '"+a.key+"'"},
Nz:{TypeError:[{hh:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{hh:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{hh:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{hh:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{hh:/\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"]},
{hh:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var Ds;var Ls=new g.Jn;var Ks=new Set,Js=0,Ms=0,Oea=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];Ns.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.Pd=!0,g.So(b,function(){h.Pd=!1;var l=0<=b.indexOf("/th/");if(l?window.trayride:window.botguard)Os(h,c,d,f,l);else{l=To(b);var m=document.getElementById(l);m&&(Ro(l),m.parentNode.removeChild(m));g.Is(new g.tr("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Fe("SCRIPT"),e.textContent=a,e.nonce=Ia(),document.head.appendChild(e),document.head.removeChild(e),((a=a.includes("trayride"))?window.trayride:window.botguard)?
Os(this,c,d,f,a):g.Is(Error("Unable to load Botguard from JS")))};
Ns.prototype.Yd=function(){return!!this.u};
Ns.prototype.dispose=function(){this.u=null};var Rea=[],Rs=!1;g.u(Ts,Ya);Ws.prototype.then=function(a,b,c){return 1===this.Ka&&a?(a=a.call(c,this.u),pm(a)?a:Ys(a)):2===this.Ka&&b?(a=b.call(c,this.u),pm(a)?a:Xs(a)):this};
Ws.prototype.getValue=function(){return this.u};
Ws.prototype.$goog_Thenable=!0;g.u($s,Ya);$s.prototype.name="BiscottiError";g.u(Zs,Ya);Zs.prototype.name="BiscottiMissingError";var bt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},at=null;var gt=g.Ja("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",gt,void 0);g.k=g.ht.prototype;g.k.get=function(a,b){lt(a);kt(a);var c=void 0!==gt[a]?gt[a].toString():null;return null!=c?c:b?b:""};
g.k.set=function(a,b){lt(a);kt(a);if(null==b)throw Error("ExpectedNotNull");gt[a]=b.toString()};
g.k.remove=function(a){lt(a);kt(a);delete gt[a]};
g.k.save=function(){g.wq(this.u,this.dump(),63072E3,this.B)};
g.k.clear=function(){g.Tb(gt)};
g.k.dump=function(){var a=[],b;for(b in gt)a.push(b+"="+encodeURIComponent(String(gt[b])));return a.join("&")};
La(g.ht);var Uea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Wea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.u(rt,g.C);rt.prototype.N=function(a,b,c,d,e){c=Eo((0,g.z)(c,d||this.Ga));c={target:a,name:b,callback:c};var f;e&&dCa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
rt.prototype.Mb=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
rt.prototype.ca=function(){g.ut(this);g.C.prototype.ca.call(this)};g.Va(g.O,g.C);g.O.prototype.subscribe=function(a,b,c){return this.na()?0:this.za.subscribe(a,b,c)};
g.O.prototype.unsubscribe=function(a,b,c){return this.na()?!1:this.za.unsubscribe(a,b,c)};
g.O.prototype.nl=function(a){return this.na()?!1:this.za.Cm(a)};
g.O.prototype.V=function(a,b){return this.na()?!1:this.za.V.apply(this.za,arguments)};g.u(g.zt,g.O);g.k=g.zt.prototype;g.k.cancel=function(){this.D&&(this.D=!1,this.V("dragend",0,0,null));this.B&&(this.B=!1,this.V("hoverend",0,0,null),g.ut(this.u),xt(this))};
g.k.qF=function(a){g.ut(this.u);At(this,Bt("move"),this.oF);At(this,Bt("out"),this.pF);At(this,"touchstart",this.RA);this.C&&At(this,Bt("down"),this.xz);var b=g.ep(a);a=hp(a);this.B=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
g.k.oF=function(a){var b=g.ep(a);a=hp(a);if(this.F){var c=this.F;this.F=null;if(gp(c)==b&&he(hp(c),a))return}this.V("hovermove",a.x,a.y,b)};
g.k.pF=function(a){var b=hp(a),c=gp(a);try{if(c&&g.Me(this.I,c)){this.F=a;this.V("hovermove",b.x,b.y,c);return}}catch(d){}g.ut(this.u);xt(this);this.B=!1;this.V("hoverend",b.x,b.y,c)};
g.k.EN=function(a){this.qF(a);this.xz(a)};
g.k.xz=function(a){if("number"!==typeof a.button||0==a.button){g.ut(this.u);this.u.N(document,Bt("move"),this.DN);this.u.N(document,Bt("up"),this.IN);var b=g.ep(a);if(g.Ae)At(this,"dragstart",this.VJ);else if(g.ip(a),(g.OD||wg)&&b)a:{for(var c=b;c;){if(Se(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.D=!0;a=hp(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
g.k.VJ=function(a){g.ip(a)};
g.k.DN=function(a){var b=g.ep(a);b==document&&(b=null);a=hp(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
g.k.IN=function(a){g.ut(this.u);this.D=!1;var b=fp(a),c=g.ep(a);a=hp(a);b&&g.Me(this.I,b)?(At(this,Bt("move"),this.oF),At(this,Bt("out"),this.pF),At(this,Bt("down"),this.xz),At(this,"touchstart",this.RA),this.V("dragend",a.x,a.y,c)):(xt(this),this.B=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
g.k.RA=function(a){var b=a.changedTouches[0];b&&(g.ut(this.u),At(this,"touchmove",this.rS),At(this,"touchend",this.SH),At(this,"touchcancel",this.SH),this.K=b.identifier,a=g.ep(a),this.B||(this.B=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
g.k.rS=function(a){var b=Ct(this,a);b&&(this.C&&g.ip(a),a=g.ep(a),this.V("hovermove",b.pageX,b.pageY,a),this.C&&this.V("dragmove",b.pageX,b.pageY,a))};
g.k.SH=function(a){var b=Ct(this,a);if(b){g.ut(this.u);xt(this);this.B=!1;var c=g.ep(a);this.C&&(this.R||g.ip(a),this.D=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
g.k.ca=function(){this.C&&(g.Ae&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.ut(this.u);g.O.prototype.ca.call(this)};Dt.prototype.clone=function(){var a=new Dt,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ma(c)?g.Vb(c):c}return a};var rta=["embedded_player"],fCa=["share/get_web_player_share_panel"],gCa=["feedback"],hCa=["notification/modify_channel_preference"],Esa=["offline"],Mza=["player"],iCa=["browse/edit_playlist"],jCa=["subscription/subscribe"],kCa=["subscription/unsubscribe"],Oza=["next","unplugged/watch_next"];var Et=g.A().toString();var Tt=g.v.ytLoggingDocDocumentNonce_||It();g.Fa("ytLoggingDocDocumentNonce_",Tt,void 0);var Ima={eW:0,jU:1,yU:2,C_:3,hW:4,t4:5,v0:6,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS"};var Zea=1;Kt.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};
Kt.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Kt.prototype.isClientVe=function(){return!this.u.trackingParams&&!!this.u.veType};g.Fa("yt_logging_screen.getRootVeType",Ot,void 0);g.Fa("yt_logging_screen.getCurrentCsn",g.Rt,void 0);g.Fa("yt_logging_screen.getCttAuthInfo",St,void 0);g.Fa("yt_logging_screen.setCurrentScreen",Ut,void 0);g.u(Vt,Aq);var cu=new Bq("screen-created",Vt),au=[],Hma=bfa,bu=0;var lCa={XT:29434,iU:3611,DX:3854,yZ:42993,l2:4724,A3:96370,VS:27686,XS:85013,YS:23462,aT:42016,bT:62407,cT:26926,ZS:43781,eT:51236,fT:79148,gT:50160,hT:77504,BT:87907,CT:18630,ET:54445,FT:80935,NT:105675,OT:37521,PT:47786,RT:98349,VT:6827,hU:7282,qU:32276,pU:76278,rU:93911,tU:106531,uU:27259,vU:27262,wU:27263,zU:21759,AU:27107,BU:62936,CU:49568,EU:38408,FU:80637,GU:68727,HU:68728,IU:80353,JU:80356,KU:74610,LU:45707,MU:83962,NU:83970,OU:46713,PU:89711,QU:74612,RU:93265,SU:74611,UU:113533,VU:93252,
WU:99357,YU:94521,ZU:114252,aV:113532,bV:94522,XU:94583,cV:88E3,dV:93253,eV:93254,fV:94387,gV:94388,hV:93255,iV:97424,TU:72502,jV:110111,kV:76019,lV:89431,mV:110466,nV:77240,oV:60508,pV:105350,qV:73393,rV:113534,sV:92098,tV:84517,uV:83759,vV:80357,wV:86113,xV:72598,yV:72733,zV:107349,AV:97615,BV:31402,CV:84774,EV:95117,FV:98930,GV:98931,HV:98932,IV:43347,JV:45474,KV:100352,LV:84758,MV:98443,NV:74613,OV:74614,PV:64502,QV:74615,RV:74616,SV:74617,TV:77820,UV:74618,VV:93278,WV:93274,XV:93275,YV:93276,
ZV:22110,aW:29433,iW:82047,jW:113550,kW:75836,lW:75837,oW:42352,sW:84512,tW:76065,vW:75989,zW:16623,BW:32594,DW:27240,FW:32633,NW:74858,QW:3945,PW:16989,RW:45520,SW:25488,TW:25492,UW:25494,WW:55760,XW:14057,YW:18451,ZW:57204,aX:57203,bX:17897,cX:57205,dX:18198,eX:17898,fX:17909,gX:43980,hX:46220,pX:11721,wX:49954,CX:96369,KX:56251,LX:25624,SX:16906,TX:99999,VX:68172,WX:27068,ZX:47973,aY:72773,bY:26970,cY:26971,dY:96805,eY:17752,fY:73233,gY:109512,hY:22256,iY:14115,jY:22696,kY:89278,lY:89277,mY:109513,
nY:43278,oY:43459,pY:43464,qY:89279,rY:43717,sY:55764,tY:22255,uY:89281,vY:40963,wY:43277,xY:43442,zY:91824,DY:96367,FY:36850,GY:72694,HY:37414,IY:36851,JY:73491,KY:54473,LY:43375,MY:46674,aZ:32473,bZ:72901,cZ:72906,dZ:50947,eZ:50612,fZ:50613,gZ:50942,hZ:84938,iZ:84943,jZ:84939,kZ:84941,lZ:84944,mZ:84940,nZ:84942,oZ:35585,pZ:51926,qZ:79983,rZ:63238,sZ:18921,tZ:63241,uZ:57893,vZ:41182,wZ:33424,xZ:22207,zZ:36229,AZ:22206,BZ:22205,CZ:18993,DZ:19001,EZ:18990,FZ:18991,GZ:18997,HZ:18725,IZ:19003,JZ:36874,
KZ:44763,LZ:33427,MZ:67793,NZ:22182,OZ:37091,PZ:34650,QZ:50617,RZ:47261,SZ:22287,TZ:25144,UZ:97917,WZ:62397,XZ:36961,YZ:108035,ZZ:27426,a_:27857,b_:27846,c_:27854,d_:69692,e_:61411,f_:39299,g_:38696,h_:62520,i_:36382,j_:108701,k_:50663,l_:36387,m_:14908,n_:37533,o_:105443,p_:61635,q_:62274,r_:65702,s_:65703,t_:65701,u_:76256,x_:37671,y_:49953,F_:36216,G_:28237,H_:39553,I_:29222,J_:26107,K_:38050,L_:26108,M_:26109,N_:26110,O_:66881,P_:28236,Q_:14586,T_:57929,V_:74723,W_:44098,X_:44099,Y_:23528,Z_:61699,
b0:59149,d0:101951,e0:97346,f0:95102,g0:64882,h0:63595,j0:63349,k0:95101,l0:75240,m0:27039,n0:68823,o0:21537,q0:83464,r0:75707,s0:83113,t0:101952,u0:101953,w0:79610,z0:24402,A0:24400,B0:32925,C0:57173,D0:64423,E0:64424,F0:33986,G0:100828,H0:21409,R0:11070,S0:11074,T0:17880,U0:14001,W0:30709,X0:30707,Y0:30711,Z0:30710,b1:30708,V0:26984,d1:63648,e1:63649,q1:51879,w1:111059,y1:5754,z1:20445,D1:110386,F1:113746,G1:66557,M1:17310,N1:28631,P1:21589,Q1:68012,R1:60480,S1:31571,W1:76980,X1:41577,Y1:45469,
e2:38669,f2:13768,g2:13777,k2:62985,m2:59369,o2:43927,q2:43928,t2:12924,v2:100355,x2:56219,y2:27669,z2:10337,w2:47896,A2:107598,B2:96639,C2:107536,D2:96661,E2:96658,F2:116646,G2:96660,H2:104443,I2:96659,J2:106442,M2:63667,N2:63668,P2:63669,V2:78314,Y2:55761,e3:96368,f3:67374,g3:48992,m3:49956,s3:31961,t3:26388,y3:23811,z3:5E4,B3:47355,C3:47356,D3:37935,E3:45521,G3:21760,H3:83769,I3:49977,J3:49974,K3:93497,L3:93498,M3:34325,O3:115803,P3:100081,Q3:35309,R3:68314,S3:25602,T3:100339,V3:59018,W3:18248,
X3:50625,Y3:9729,Z3:37168,a4:37169,b4:21667,d4:16749,e4:18635,f4:39305,g4:18046,i4:53969,j4:8213,l4:93926,o4:102852,p4:110099,q4:22678,r4:69076,u4:100856,w4:17736,x4:3832,z4:55759,A4:64031,B4:93044,D4:93045,F4:34388,G4:17657,H4:17655,I4:39579,J4:39578,K4:77448,L4:8196,M4:11357,N4:69877,O4:8197,Q4:82039};hu.prototype.clear=function(){this.B.clear();this.u.clear();this.C.clear()};
La(hu);var ju;g.iu=bb(function(){var a=new bo;return a.isAvailable()?new g.Zn(a):null});
ju=bb(function(){var a=new co;return a.isAvailable()?new g.Zn(a):null});var ru={},efa=0;var Uy=!1;var B1={},mCa=(B1.predictStart="predictStart",B1.start="start",B1["continue"]="continue",B1.stop="stop",B1),dga={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Du.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};Iu.prototype.isEncrypted=function(){return this.u.info.isEncrypted()};
Iu.prototype.isVideo=function(){return!!this.u.info.video};
Iu.prototype.Ok=function(){return this.u.Ok(this)};var nZ=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}();Tu.prototype.skip=function(a){this.u+=a};
Tu.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var pv=!1;var Hv=!0;g.k=Mv.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(Nv(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);Pv(this)}else this.u.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new Mv,c=new Mv,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{iu:b,ln: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&&Pv(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}};Xv.prototype.verify=function(a){if(this.info.rb!=this.u.getLength())return a.slength=this.info.rb.toString(),a.range=this.u.getLength().toString(),!1;if(1==this.info.u.info.containerType){if(8>this.info.rb||4==this.info.type)return!0;var b=Yv(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.rb&&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.rb||4==this.info.type)return!0;c=Yv(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 hw={Wt:function(a){a.reverse()},
bS:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
O2:function(a,b){a.splice(0,b)}};var MAa=/^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\/)/,mw=/^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\/)/,
NAa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,vfa=/^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|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)|$))/,
wfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,tfa=/^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)|$))/,qfa=/^((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|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\/)/,
rfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,OAa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,sfa=/^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)/,ofa=/^((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|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com|shopping\.google\.com|cdn\.shoploop\.tv)[.]?(:[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\/.*$)/,
pfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,tha=/^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|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)/,
sha=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?(\/|$)/,nCa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.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$)/,
oCa=/^(https\:\/\/plus\.google\.com)$/;var kw=!1;vw.prototype.set=function(a,b){this.u[a]!==b&&(this.u[a]=b,this.url="")};
vw.prototype.get=function(a){ww(this);return this.u[a]||null};
vw.prototype.Ld=function(){this.url||(this.url=xfa(this));return this.url};
vw.prototype.clone=function(){var a=new vw(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.u=g.Vb(this.u);a.url=this.url;return a};Ew.prototype.set=function(a,b){this.og.get(a);this.u[a]=b;this.url=""};
Ew.prototype.get=function(a){return this.u[a]||this.og.get(a)};
Ew.prototype.Ld=function(){this.url||(this.url=yfa(this));return this.url};Qw.prototype.Ng=function(){return Ju(this.u[0])};var C1={},jC=(C1.WIDTH={name:"width",video:!0,valid:640,invalid:99999},C1.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},C1.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},C1.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},C1.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},C1.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},C1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},C1.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},C1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},C1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},C1);var cx={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 hha={JT:"auto",q3:"tiny",EY:"light",T2:"small",w_:"medium",BY:"large",vX:"hd720",rX:"hd1080",sX:"hd1440",tX:"hd2160",uX:"hd2880",BX:"highres",UNKNOWN:"unknown"};var D1;D1={};g.Yw=(D1.auto=0,D1.tiny=144,D1.light=144,D1.small=240,D1.medium=360,D1.large=480,D1.hd720=720,D1.hd1080=1080,D1.hd1440=1440,D1.hd2160=2160,D1.hd2880=2880,D1.highres=4320,D1);var ax="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Zw.prototype.Vg=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=dx.prototype;g.k.Ma=function(){return this.video};
g.k.Yb=function(){return this.id.split(";",1)[0]};
g.k.Zd=function(){return 2===this.containerType};
g.k.isEncrypted=function(){return!!this.Ud};
g.k.isAudio=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};g.k=Nx.prototype;g.k.tf=function(){};
g.k.po=function(){};
g.k.Fe=function(){return!!this.u&&this.index.Uc()};
g.k.ek=function(){};
g.k.GE=function(){return!1};
g.k.wm=function(){};
g.k.Sm=function(){};
g.k.Ok=function(){};
g.k.Kj=function(){};
g.k.gu=function(){};
g.k.HE=function(a){return[a]};
g.k.Yv=function(a){return[a]};
g.k.Fv=function(){};
g.k.Qt=function(){};g.k=g.Ox.prototype;g.k.ME=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Li(a))?a.duration:0};
g.k.cD=function(a){return this.getDuration(a)};
g.k.Eh=function(){return this.segments.length?this.segments[0].qb:-1};
g.k.Ue=function(a){return(a=this.Li(a))?a.ingestionTime:NaN};
g.k.pD=function(a){return(a=this.Li(a))?a.B:null};
g.k.Xb=function(){return this.segments.length?this.segments[this.segments.length-1].qb:-1};
g.k.Nk=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Kc=function(){return this.segments[0].startTime};
g.k.fo=function(){return this.segments.length};
g.k.Wu=function(){return 0};
g.k.Gh=function(a){return(a=this.Xn(a))?a.qb:-1};
g.k.ky=function(a){return(a=this.Li(a))?a.sourceURL:""};
g.k.Xe=function(a){return(a=this.Li(a))?a.startTime:0};
g.k.Vt=ba(1);g.k.Uc=function(){return 0<this.segments.length};
g.k.Li=function(a){a=g.xb(this.segments,new Cu(a,0,0,0,""),function(b,c){return b.qb-c.qb});
return 0<=a?this.segments[a]:null};
g.k.Xn=function(a){a=g.xb(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(a.length)if(a=g.rb(a),this.segments.length){var b=this.segments.length?g.db(this.segments).endTime:0,c=a[0].qb-this.Xb();1<c&&lb(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])}}else this.segments=a};
g.k.kD=function(){return 0};g.u(Qx,Nx);g.k=Qx.prototype;g.k.tf=function(){return!1};
g.k.po=function(){return!1};
g.k.GE=function(){return this.I};
g.k.wm=function(){if(this.I)return[];var a=new Iu(1,this,this.initRange,"getMetadataRequestInfos");return[new Qw([a],this.Y)]};
g.k.Sm=function(){return null};
g.k.Ok=function(a){this.ek(a);return this.ql(a.D?a.B+1:a.B,!1)};
g.k.Kj=function(a,b){b=void 0===b?!1:b;var c=this.index.Gh(a);b&&(c=Math.min(this.index.Xb(),c+1));return this.ql(c,!0)};
g.k.gu=function(a){this.u=new Uint8Array(Yv(a).buffer)};
g.k.ek=function(a){return 0==a.rb?!0:this.index.Xb()>a.B&&this.index.Eh()<=a.B+1};
g.k.update=function(a,b,c){this.index.append(a);Px(this.index,c);this.R=b};
g.k.Fe=function(){return this.I?!0:Nx.prototype.Fe.call(this)};
g.k.ql=function(a,b){var c=this.index.ky(a),d=this.index.Xe(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.zb?this.info.zb*e:1E3;var h=!b,l=f;f=a==this.index.Xb()&&!this.R&&0<f;d=new Iu(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,h);return new Qw([d],c)};
g.k.Qt=function(){return this.I?0:this.initRange.length};
g.k.Fv=function(){return!1};g.k=g.Rx.prototype;g.k.Wu=function(a){return this.offsets[a]};
g.k.Xe=function(a){return this.u[a]/this.C};
g.k.Vt=ba(0);g.k.Ue=function(){return NaN};
g.k.pD=function(){return null};
g.k.getDuration=function(a){a=this.cD(a);return 0<=a?a/this.C:-1};
g.k.cD=function(a){return a+1<this.count||this.B?this.u[a+1]-this.u[a]:-1};
g.k.Eh=function(){return 0};
g.k.Xb=function(){return this.count-1};
g.k.Nk=function(){return this.B?this.u[this.count]/this.C:NaN};
g.k.Kc=function(){return 0};
g.k.fo=function(){return this.count};
g.k.ky=function(){return""};
g.k.Gh=function(a){a=g.xb(this.u.subarray(0,this.count),a*this.C);return 0<=a?a:Math.max(0,-a-2)};
g.k.Uc=function(){return 0<=this.Xb()};
g.k.kD=function(a,b){if(a>=this.Xb())return 0;for(var c=0,d=this.Xe(a)+b,e=a;e<this.Xb()&&d>this.Xe(e);e++)c=Math.max(c,(e+1<this.count||this.B?this.offsets[e+1]-this.offsets[e]:-1)/this.getDuration(e));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.u;this.u=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.u[a]=c[a]};
g.k.cap=function(a,b){Sx(this);this.B=!0;this.u[this.count]=b;this.offsets[this.count]=a};g.u(Tx,Nx);g.k=Tx.prototype;g.k.wm=function(a){var b=new Iu(1,this,this.initRange,"initInfo"),c=new Iu(2,this,this.indexRange,"indexInfo"),d=[],e=[b];Lu(b,c)?e.push(c):(d.push(new Qw([c])),a=0);isNaN(this.I)&&(a=0);b=e[e.length-1];a=Math.min(a,this.I-(b.range.end-e[0].range.start+1));0<a&&(a=Fu(b.range.end+1,a),e.push(new Iu(4,this,a,"tbdRange")));d.push(new Qw(e));return d};
g.k.gu=function(a){if(1==a.info.type){if(this.u)return;this.u=Uv(a.u)}else if(2==a.info.type){if(this.R||0<=this.index.Xb())return;if(g.aw(this.info)){var b=this.index,c=Yv(a);a=a.info.range.start;var d=g.cv(c,0,1936286840);c=lv(d);b.C=c.ow;var e=c.XJ;b.offsets[0]=c.SC+a+d.size;b.u[0]=e;b.B=!0;a=c.lw.length;for(d=0;d<a;d++){e=b;var f=c.cA[d],h=c.lw[d];e.count++;Sx(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.u[e.count]=e.u[e.count-1]+h}}else this.R=Yv(a)}if(this.info.Zd()&&this.u&&this.R){c=new DataView(this.u.buffer);
b=this.index;a=this.R;d=this.indexRange.end;e=new qv(c);c=Gv(e);if(null!==c&&(b.C=c.IA/c.HA,e=new qv(a),a=Iv(e,c.Pr,d),null!==a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.im,f=f.nt,Sx(d),d.offsets[d.count]=e,d.u[d.count]=f,d.count++;b.cap(c.mA+c.Pr,c.duration)}this.R=null}};
g.k.HE=function(a){for(var b=this.Yv(a.info),c=a.info.range.start+a.info.C,d=a.C,e=[],f=0;f<b.length;f++){var h=b[f].rb;h=a.u.split(b[f].range.start+b[f].C-c).ln.split(h).iu;e.push(new Xv(b[f],h,d));d=!1}return e};
g.k.Yv=function(a){for(var b=a.range.start+a.C,c=0;c<this.index.Xb()&&b>=this.index.Wu(c+1);)c++;return Ux(this,c,b,a.rb).u};
g.k.ek=function(a){return this.Fe()?!0:isNaN(this.I)?!1:a.range.end+1<this.I};
g.k.Sm=function(a,b){this.ek(a);if(!this.Fe()){var c=Fu(a.range.end+1,b);c.end+1>this.I&&(c=new Du(c.start,this.I-1));c=[new Iu(4,a.u,c,"getNextRequestInfoByLength")];return new Qw(c)}4==a.type&&(c=this.Yv(a),a=c[c.length-1]);c=0;var d=a.range.start+a.C+a.rb;3==a.type&&(c=a.B,d==a.range.end+1&&(c+=1));return Ux(this,c,d,b)};
g.k.Ok=function(){return null};
g.k.Kj=function(a,b){var c=this.index.Gh(a);b&&(c=Math.min(this.index.Xb(),c+1));return Ux(this,c,this.index.Wu(c),0)};
g.k.tf=function(){return!0};
g.k.po=function(){return!1};
g.k.Qt=function(){return this.indexRange.length+this.initRange.length};
g.k.Fv=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};var Vx=void 0;var E1={},gy=function(a,b){var c;return function(){c||(c=new ps(a,b));return c}}("yt-player-local-media",{zF:(E1.index=!0,E1.media=!0,E1.metadata=!0,E1.playerdata=!0,E1),
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}),dy=!1;py.prototype.then=function(a,b){return this.promise.then(a,b)};
py.prototype.resolve=function(a){this.B(a)};
py.prototype.reject=function(a){this.u(a)};g.k=vy.prototype;g.k.ay=function(){return 0};
g.k.eF=function(){return null};
g.k.gD=function(){return null};
g.k.isFailed=function(){return 6===this.state};
g.k.Iz=function(){this.callback&&this.callback(this)};
g.k.na=function(){return-1===this.state};
g.k.dispose=function(){this.info.Ng()&&5!==this.state&&(this.info.u[0].u.D=!1);yy(this,-1)};By.prototype.skip=function(a){this.offset+=a};var Qy=!1;g.u(Ey,g.O);Ey.prototype.Bi=function(){this.I=null};
Ey.prototype.getDuration=function(){return this.C.index.Nk()};g.k=Wy.prototype;g.k.qe=function(a){return"content-type"===a?this.fl.get("type"):""};
g.k.abort=function(){};
g.k.Dm=function(){return!0};
g.k.nq=function(){return this.range.length};
g.k.Uu=function(){return this.loaded};
g.k.hu=function(){return!!this.u.getLength()};
g.k.Mh=function(){return!!this.u.getLength()};
g.k.Vu=function(){var a=this.u;this.u=new Mv;return a};
g.k.hz=function(){return this.u};
g.k.tj=function(){return!0};
g.k.bA=function(){return!!this.error};
g.k.Qm=function(){return this.error};Yy.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};var iga=0;g.k=qz.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.na()?b.C.cancel("Cancelling"):(b.K=d.headers,b.fa(),sz(b));else b.onDone()},function(d){b.onError(d)}).then(void 0,M)};
g.k.onDone=function(){if(!this.na()){this.ea();this.P=!0;if(rz(this)&&!this.u.getLength()&&!this.I&&this.B){pz(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.Y()}};
g.k.onError=function(a){this.ea();this.errorMessage=String(a);this.I=!0;this.onDone()};
g.k.qe=function(a){return this.K?this.K.get(a):null};
g.k.Dm=function(){return!!this.K};
g.k.Uu=function(){return this.B};
g.k.nq=function(){return+this.qe("content-length")};
g.k.hu=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.ea=function(){};
g.k.Mh=function(){if(this.P)return!!this.u.getLength();var a=this.policy.C;if(a&&this.R+a>Date.now())return!1;a=this.nq()||0;a=Math.max(16384,this.policy.u*a);this.X||(a=Math.max(a,16384));this.policy.rf&&pz(this)&&(a=1);return this.u.getLength()>=a};
g.k.Vu=function(){this.Mh();this.R=Date.now();this.X=!0;var a=this.u;this.u=new Mv;return a};
g.k.hz=function(){this.Mh();return this.u};
g.k.na=function(){return this.aborted};
g.k.abort=function(){this.ea();this.C&&this.C.cancel("Cancelling");this.D&&this.D.abort();this.aborted=!0};
g.k.tj=function(){return!0};
g.k.bA=function(){return this.I};
g.k.Qm=function(){return this.errorMessage};g.k=tz.prototype;g.k.onDone=function(){if(!this.na){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.ie=function(a){this.na||(this.status=this.xhr.status,this.D(a.timeStamp,a.loaded))};
g.k.Dm=function(){return 2<=this.xhr.readyState};
g.k.qe=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Fo(Error("Could not read XHR header "+a)),""}};
g.k.nq=function(){return+this.qe("content-length")};
g.k.Uu=function(){return this.u};
g.k.hu=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.Mh=function(){return this.B&&!!this.response&&!!this.response.byteLength};
g.k.Vu=function(){this.Mh();var a=this.response;this.response=void 0;return new Mv([new Uint8Array(a)])};
g.k.hz=function(){this.Mh();return new Mv([new Uint8Array(this.response)])};
g.k.abort=function(){this.na=!0;this.xhr.abort()};
g.k.tj=function(){return!1};
g.k.bA=function(){return!1};
g.k.Qm=function(){return""};vz.prototype.iH=function(a,b){var c=this;b=void 0===b?1:b;this.u+=b;this.C+=a;var d=a/b;uz.forEach(function(e,f){d<e||(c.B[f]+=b)})};
vz.prototype.toString=function(){return""};
var uz=[20,100,500,2E3],Dz=new wz,F1,pCa=ro.EXPERIMENT_FLAGS;F1=pCa?pCa.html5_enable_profiler:void 0;var yz=null!==F1&&void 0!==F1?F1:!1;var YAa,pAa,uga,sga,aAa,pha,HZ,Jz,XC,Zxa,lC,IZ,bAa,qCa,yAa,Bva,Ava,dBa,rCa,sCa,Kz,nga,yza,HAa,GAa,kC;YAa=Az("plssv",function(a){a.unstorable||(g.ku("yt-player-volume",a),g.ku("yt-player-volume",a,2592E3))});
pAa=Az("plsgv",function(){var a=g.lu("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.ce(Math.floor(b),0,100),muted:!!a.muted}});
uga=Az("plssbs",function(a){g.ku("yt-player-bandwidth",a,2592E3)});
sga=Az("plsgbs",function(){return g.lu("yt-player-bandwidth")||{}});
aAa=Az("plssq",function(a){g.ku("yt-player-quality",a,2592E3)});
pha=Az("plswm",function(a,b){var c={};c.values=a;c.halfLives=b;g.ku("yt-player-memory",c,2592E3)});
HZ=Az("plsgq",function(){return g.lu("yt-player-quality")||"auto"});
Jz=Az("plshsq",function(){return"auto"!==HZ()});
XC=Az("plslm",function(){var a={values:{},Mj:{}};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});
Zxa=Az("plsspc",function(a,b,c){var d=IZ();a=Ez(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!==c&&(d[a]=c,g.ku("yt-player-performance-cap",d,604800))});
lC=Az("plsgpc",function(a,b){return+IZ()[Ez(a,b)]||8192});
IZ=Az("plsgrpd",function(){return g.lu("yt-player-performance-cap")||{}});
bAa=Az("plscpc",function(a){if(a){a=IZ();for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,0!==c.indexOf("1")&&(a[c]=0);g.ku("yt-player-performance-cap",a,604800)}else g.mu("yt-player-performance-cap")});
qCa=Az("plsspr",function(a){g.ku("yt-player-playback-rate",a)});
yAa=Az("plsgpr",function(){return Number(g.lu("yt-player-playback-rate"))||1});
Bva=Az("plsswlp",function(a){g.ku("yt-player-watch-later-pending",a)});
Ava=Az("plsgwlp",function(){return g.lu("yt-player-watch-later-pending")});
dBa=Az("plssas",function(a){g.ku("yt-player-autonavstate",a)});
rCa=Az("plsgas",function(){return g.lu("yt-player-autonavstate")});
sCa=Az("plsshr",function(a){g.ku("yt-player-headers-readable",a,2592E3)});
Kz=Az("plsghr",function(){return g.lu("yt-player-headers-readable")||!1});
nga=Az("plssrbh",function(a){g.ku("yt-player-bandaid-host",a,432E3)});
yza=Az("plsgrbh",function(){return g.lu("yt-player-bandaid-host")});
g.tCa=Az("plssvp",function(a){g.ku("yt-player-visualizer",a);g.ku("yt-player-visualizer",a,2592E3)});
g.uCa=Az("plsgvp",function(){return g.lu("yt-player-visualizer")});
HAa=Az("plsspor",function(a){g.ku("yt-player-playback-on-reload",a)});
GAa=Az("plsgpor",function(){return g.lu("yt-player-playback-on-reload")});
kC=Az("plsgaup",function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}});g.u(Hz,vy);g.k=Hz.prototype;g.k.Ld=function(){return this.B.Ld()};
g.k.jR=function(a,b,c){if(!this.na()&&this.Ab){this.hj=this.Ab.status;var d=this.timing;a=a>d.u&&4E12>a?a:g.A();kz(d,a,b);50>a-d.D&&lz(d)&&3!==bz(d)||hz(d,a,b,c);b=this.timing;b.B>b.Ga&&cz(b,b.B)&&3>this.state?yy(this,3):this.Ab.tj()&&Tz(this)&&yy(this,Math.max(2,this.state))}};
g.k.iR=function(){if(!this.na()&&this.Ab){if(!this.K&&this.Ab.Dm()&&this.Ab.qe("X-Walltime-Ms")){var a=parseInt(this.Ab.qe("X-Walltime-Ms"),10);this.K=(g.A()-a)/1E3}this.Ab.Dm()&&this.Ab.qe("X-Restrict-Formats-Hint")&&this.u.FB&&!Kz()&&sCa(!0);a=parseInt(this.Ab.qe("X-Head-Seqnum"),10);var b=parseInt(this.Ab.qe("X-Head-Time-Millis"),10);this.C=a||this.C;this.D=b||this.D}};
g.k.hR=function(){var a=this.Ab;!this.na()&&a&&(this.F.stop(),this.hj=a.status,a=oga(this,a),6===a?Gz(this):yy(this,a))};
g.k.Iz=function(a){4<=this.state&&(this.u.ke?Rz(this):this.timing.deactivate());vy.prototype.Iz.call(this,a)};
g.k.JR=function(){if(!this.na()){var a=g.A(),b=!1;lz(this.timing)?(a=this.timing.P,az(this.timing),this.timing.P-a>=.8*this.X?(this.mk++,b=5<=this.mk):this.mk=0):(b=this.timing,b.dj&&nz(b,g.A()),a-=b.X,this.u.Sl&&0<a&&(this.mk+=1),b=Kw(Fz(this))*this.u.vI,b=a>1E3*b);this.mk&&this.callback&&this.callback(this);b?Sz(this,!1):this.F.start()}};
g.k.dispose=function(){vy.prototype.dispose.call(this);this.F.dispose();this.u.ke||Rz(this)};
g.k.ay=function(){return this.K};
g.k.eF=function(){this.Ab&&(this.C=parseInt(this.Ab.qe("X-Head-Seqnum"),10));return this.C};
g.k.gD=function(){this.Ab&&(this.D=parseInt(this.Ab.qe("X-Head-Time-Millis"),10));return this.D};
var kga=0,Pz=-1;hA.prototype.getDuration=function(){return this.u.index.Nk()};
hA.prototype.Bi=function(){this.C.Bi()};KA.prototype.C=function(a,b){var c=Math.pow(this.alpha,a);this.B=b*(1-c)+c*this.B;this.D+=a};
KA.prototype.u=function(){return this.B/(1-Math.pow(this.alpha,this.D))};MA.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.I=!0};
MA.prototype.u=function(){return this.K?(NA(this,this.F-this.K)+NA(this,this.F)+NA(this,this.F+this.K))/3:NA(this,this.F)};TA.prototype.setPlaybackRate=function(a){this.C=Math.max(1,a)};
TA.prototype.getPlaybackRate=function(){return this.C};g.u($A,g.Ox);g.k=$A.prototype;g.k.Eh=function(){return this.Ai?this.segments.length?this.Xn(this.Kc()).qb:-1:g.Ox.prototype.Eh.call(this)};
g.k.Kc=function(){if(this.he)return 0;if(!this.Ai)return g.Ox.prototype.Kc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.db(this.segments).endTime-this.Hj,0);return 0<this.Hd&&this.Xn(a).qb<this.Hd?this.Li(this.Hd).startTime:a};
g.k.Nk=function(){if(!this.segments.length)return g.Ox.prototype.Nk.call(this);var a=this.Xb();if(!this.Ai||a<=this.segments[this.segments.length-1].qb)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new Cu(a,Math.max(0,b.startTime-(b.qb-a)*this.Qf),this.Qf,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.he?Math.min(this.Hj,a.startTime):a.startTime:this.he?Math.min(this.Hj,a.endTime):a.endTime};
g.k.fo=function(){return this.Ai?this.segments.length?this.Xb()-this.Eh()+1:0:g.Ox.prototype.fo.call(this)};
g.k.Xb=function(){var a=Math.min(this.Lf,Math.max(g.Ox.prototype.Xb.call(this),this.D)),b=1E3*this.Hj;b=0<this.u&&this.u<b;this.he&&0<this.Hj&&0<this.D&&!b&&(b=this.Xn(this.Hj))&&(a=Math.min(b.qb-1,a));return a};
g.k.bo=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.ME=function(a){var b=aB(this,a.qb);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Sq&&0===a.qb%(300/this.Qf)){var c=this.segments[0].qb,d=Math.floor(this.Sq/this.Qf);a=a.qb-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Xn=function(a){if(!this.Ai)return g.Ox.prototype.Xn.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].qb-Math.ceil((this.segments[0].startTime-a)/this.Qf));else if(a>=b.endTime)b=b.qb+Math.floor((a-b.endTime)/this.Qf+1);else{b=yb(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.qb-b.qb-1))+1)+b.qb}return this.Li(b)};
g.k.Li=function(a){if(!this.Ai)return g.Ox.prototype.Li.call(this,a);if(!this.segments.length)return null;var b=aB(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Qf;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].qb-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.qb-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.qb-d.qb-1),d=d.endTime+(a-d.qb-1)*b);return new Cu(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.u(cB,Qx);g.k=cB.prototype;g.k.po=function(){return!0};
g.k.Fe=function(){return!0};
g.k.ek=function(a){return!a.F};
g.k.wm=function(){return[]};
g.k.Kj=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new Iu(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.kh,void 0,this.kh*this.info.zb);return new Qw([c],"")}return Qx.prototype.Kj.call(this,a,b)};
g.k.ql=function(a,b){var c=void 0===c?!1:c;if(bB(this.index,a))return Qx.prototype.ql.call(this,a,b);var d=this.index.Xe(a),e=b?0:this.kh*this.info.zb,f=!b;c=new Iu(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.Xb()&&!this.R&&0<e,f);return new Qw([c],0<=a?"sq/"+a:"")};hB.prototype.update=function(a,b){var c=void 0;this.B&&(c=this.B);var d=new hB,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+dB(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+dB(a,"startNumber")||0;d.F=h;var m=h;var n=+dB(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(gB(dB(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.K=dB(a,"media"));var p=c?l-c.qb:1;d.I=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,y=0;y<=w;y++)if(c&&l<=c.qb)l++;else{var x=new wga(l,m,r,n+t,h);d.u.push(x);var B=x.startSecs;x=p.getAttribute("yt:cuepointTimeOffset");var E=p.getAttribute("yt:cuepointDuration");if(x&&E){x=Number(x);B=(Uy?x/f:-x/f)+B;E=Number(E)/f;var G=p.getAttribute("yt:cuepointContext")||null,K=p.getAttribute("yt:cuepointIdentifier")||"";var H=p.getAttribute("yt:cuepointEvent")||"";H=mCa[H]||"unknown";
x=new yu(B,E,G,K,H,x)}else x=null;x&&d.D.push(x);l++;m+=r;h+=r;n+=r+t}}d.u.length&&(d.B=g.db(d.u))}this.I=d.I;this.B=d.B||this.B;sb(this.u,d.u);sb(this.D,d.D);this.C=d.C;this.K=d.K;-1===this.F&&(this.F=d.getStreamTimeOffset())};
hB.prototype.getStreamTimeOffset=function(){return-1===this.F?0:this.F};g.u(iB,Nx);g.k=iB.prototype;g.k.tf=function(){return!1};
g.k.po=function(){return!1};
g.k.wm=function(){if(this.I){var a=new Iu(1,this,null,"otfInit");return[new Qw([a],this.I)]}a=new Iu(1,this,this.initRange,"otfInitInfo");var b=new Iu(2,this,this.indexRange,"otfIndexInfo");return[new Qw([a,b])]};
g.k.Sm=function(){return null};
g.k.Ok=function(a){this.ek(a);return jB(this,Nu(a),!1)};
g.k.Kj=function(a,b){b=void 0===b?!1:b;var c=this.index.Gh(a);b&&(c=Math.min(this.index.Xb(),c+1));return jB(this,c,!0)};
g.k.gu=function(a){if(1==a.info.type)this.u||(this.u=Uv(a.u)),a.B&&"http://youtube.com/streaming/otf/durations/112015"==a.B.uri&&Ega(this,a.B);else if(2==a.info.type)if(g.aw(this.info)){if(!this.index.Uc()&&(a=g.cv(Yv(a),0,1936286840))){var b=[],c=lv(a);a=c.cA.length;var d=c.ow,e=c.cA,f=c.lw;c=this.indexRange.end+c.SC+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new Cu(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.Zd()&&this.u&&(d=new qv(new DataView(this.u.buffer)),
b=Gv(d))&&(d=new qv(Yv(a)),a=Iv(d,b.Pr,this.indexRange.end))){d=[];e=b.HA/b.IA;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.nt*e,d.push(new Cu(c,m,l.nt*e-m,NaN,"range/"+h.im+"-"+(l.im-1)));c=a[f].nt*e;d.push(new Cu(f,c,b.duration*e-c,NaN,"range/"+a[f].im+"-"+(b.mA+b.Pr)));this.index.append(d)}};
g.k.ek=function(a){return 0==a.rb?!0:this.index.Xb()>a.B&&this.index.Eh()<=a.B+1};
g.k.Qt=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.Fv=function(){return!1};lB.prototype.getName=function(){return this.name};
lB.prototype.getId=function(){return this.id};
lB.prototype.getIsDefault=function(){return this.isDefault};
lB.prototype.toString=function(){return this.name};
lB.prototype.getName=lB.prototype.getName;lB.prototype.getId=lB.prototype.getId;lB.prototype.getIsDefault=lB.prototype.getIsDefault;g.u(tB,g.O);g.k=tB.prototype;g.k.appendBuffer=function(a,b,c){if(this.Rc.Nt()!==this.appendWindowStart+this.start||this.Rc.Yx()!==this.appendWindowEnd+this.start||this.Rc.yc()!==this.timestampOffset+this.start)this.Rc.supports(1),this.Rc.qA(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Rc.ip(this.timestampOffset+this.start);this.Rc.appendBuffer(a,b,c)};
g.k.abort=function(){this.Rc.abort()};
g.k.remove=function(a,b){this.Rc.remove(a+this.start,b+this.start)};
g.k.qA=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.ly=function(){return this.timestampOffset+this.start};
g.k.Nt=function(){return this.appendWindowStart};
g.k.Yx=function(){return this.appendWindowEnd};
g.k.ip=function(a){this.timestampOffset=a};
g.k.yc=function(){return this.timestampOffset};
g.k.Se=function(a){a=this.Rc.Se(void 0===a?!1:a);return gA(a,this.start,this.end)};
g.k.Kf=function(){return this.Rc.Kf()};
g.k.qm=function(){return this.Rc.qm()};
g.k.Ot=function(){return this.Rc.Ot()};
g.k.WA=function(a,b){this.Rc.WA(a,b)};
g.k.supports=function(a){return this.Rc.supports(a)};
g.k.Pt=function(){return this.Rc.Pt()};
g.k.isView=function(){return!0};
g.k.us=function(a,b,c){return this.isActive?this.Rc.us(a,b,c):!1};
g.k.lx=function(){return this.Rc.lx()?this.isActive:!1};
g.k.isLocked=function(){return this.zs&&!this.isActive};
g.k.sb=function(a){return this.Rc.sb(a)+(";vw."+this.start+"-"+this.end)};
g.k.qq=function(){return this.Rc.qq()};
g.k.ca=function(){wt(this.Rc,this.CD);g.O.prototype.ca.call(this)};g.u(xB,g.O);g.k=xB.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Xs=!1;c&&(this.yu=c);b&&(b.isEncrypted()&&(this.iE=this.yu),3==b.type&&(this.Zy=b));(null===(d=this.jc)||void 0===d?0:d.appendBuffer)?this.jc.appendBuffer(a):this.jc?this.jc.append(a):this.de&&this.de.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.jc?this.jc.abort():this.de&&this.de.webkitSourceAbort(this.id)}catch(a){}this.yu=this.Zy=null};
g.k.remove=function(a,b){var c;this.Xs=!1;(null===(c=this.jc)||void 0===c?0:c.remove)&&this.jc.remove(a,b)};
g.k.Nt=function(){var a;return Qy&&this.isVideo?this.appendWindowStart:(null===(a=this.jc)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.Yx=function(){var a;return(null===(a=this.jc)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.qA=function(a,b){this.jc&&(Qy&&this.isVideo?(this.appendWindowStart=a,this.jc.appendWindowEnd=b):a>this.Nt()?(this.jc.appendWindowEnd=b,this.jc.appendWindowStart=a):(this.jc.appendWindowStart=a,this.jc.appendWindowEnd=b))};
g.k.ly=function(){return this.timestampOffset};
g.k.ip=function(a){Qy?this.timestampOffset=a:this.supports(1)&&(this.jc.timestampOffset=a)};
g.k.yc=function(){return Qy?this.timestampOffset:this.supports(1)?this.jc.timestampOffset:0};
g.k.Se=function(a){if(void 0===a?0:a)return this.Xs||this.Kf()||(this.cC=this.Se(!1),this.Xs=!0),this.cC;try{return this.jc?this.jc.buffered:this.de?this.de.webkitSourceBuffered(this.id):Vz([0],[Infinity])}catch(b){return Vz([],[])}};
g.k.Kf=function(){var a;return(null===(a=this.jc)||void 0===a?void 0:a.updating)||!1};
g.k.qm=function(){return this.yu};
g.k.Ot=function(){return this.iE};
g.k.WA=function(a,b){this.containerType!==a&&(this.supports(4),yB()&&this.jc.changeType(b));this.containerType=a};
g.k.Pt=function(){return this.Zy};
g.k.isView=function(){return!1};
g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.jc)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.jc)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.jc)||void 0===d||!d.remove);case 3:return!!((null===(e=this.jc)||void 0===e?0:e.addEventListener)&&(null===(f=this.jc)||void 0===f?0:f.removeEventListener));case 4:return!(!this.jc||!this.jc.changeType);default:return!1}};
g.k.lx=function(){return!this.Kf()};
g.k.isLocked=function(){return!1};
g.k.sb=function(a){var b,c;a.to=""+this.yc();a.up=""+ +this.Kf();var d=(null===(b=this.jc)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.jc)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=Wz(this.Se())}catch(f){}return g.vB(a)};
g.k.ca=function(){this.supports(3)&&(this.jc.removeEventListener("updateend",this.Oj),this.jc.removeEventListener("error",this.Oj));g.O.prototype.ca.call(this)};
g.k.us=function(a,b,c){if(!this.supports(2)||this.Kf())return!1;var d=this.Se(),e=Xz(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.ea();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.ea(),this.remove(0,l),!0}catch(m){}return!1};
g.k.ea=function(){};
g.k.qq=function(){return this.containerType};zB.prototype.dispose=function(){if(!this.na){if(this.B)try{URL.revokeObjectURL(this.u)}catch(a){}this.C=!0}};
zB.prototype.na=function(){return this.C};
zB.prototype.toString=function(){return"MediaResource {"+this.u+"}"};g.u(AB,g.C);g.k=AB.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.C};
g.k.gi=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.C=a,this.de.webkitSourceSetDuration(a))}catch(b){}};
g.k.Kf=function(){return!!(this.u&&this.u.Kf()||this.B&&this.B.Kf())};
g.k.FQ=function(){!this.na()&&BB(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.EQ=function(){this.dispose()};var Kga=/action_display_post/;g.u(JB,g.O);g.k=JB.prototype;g.k.isFailed=function(){return 3==this.Ka};
g.k.Vj=function(){return g.Ib(this.u,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.k.Wj=function(){return g.Ib(this.u,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.k.Pj=function(){return g.Ib(this.u,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.k.mo=function(){return g.Ib(this.u,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.k.sR=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Wg=this.C=!0;this.F||(this.F=new yga);Cga(this.F,a,this.Ja);this.V("refresh");for(a=0;a<c.length;a++){var d=UB(this,c[a]),e=this.isLive&&g.aw(d)&&this.Ga;if(!this.u[d.id]){var f=OB(eB(c[a],"BaseURL").textContent),h=eB(c[a],"Initialization"),l=dB(h,"sourceURL");h=Eu(dB(h,"range"));e&&(l="",h=void 0);this.u[d.id]=new Qx(f,d,l,
null===h?void 0:h)}d=this.u[d.id];f=dB(c[a],"id","AdaptationSet");f=""!=f?f:dB(c[a],"mimetype","AdaptationSet");l=this.F;l=l.C[d.info.id]||l.B[f]||l.u||null;f=l.u;!this.B&&l.getStreamTimeOffset()&&(this.B=l.getStreamTimeOffset());if(l.C)for(e=[],f=g.q(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.zb,p=h.qb,r=h.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",r.toString());e.push(new Cu(h.qb,h.startSecs,h.durationSecs,h.u,t.join("$"),null,h.B))}else{l=tb(eB(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.I);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;r=f[m];var w=l[m];b=w.getAttribute("media");t=null;if(!e&&(w=w.getAttribute("mediaRange"),null!=w)){var y=w.split("-");0<=parseInt(y[1],10)?t=Eu(w):b=b+"?range="+w}p.call(n,new Cu(r.qb,r.startSecs,r.durationSecs,r.u,b,t,r.B))}e=h}d.update(e,this.isLive,this.ha)}Dga(this.F);
return!0}this.duration=fB(dB(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){l=c[a];d=UB(this,l);f=eB(l,"BaseURL");e=OB(f.textContent);h=eB(l,"SegmentBase");l=Eu(h.attributes.indexRange.value);h=Eu(h.getElementsByTagName("Initialization")[0].attributes.range.value);f=parseInt(f.getAttribute(SB(this,"contentLength")),10);d=new Tx(e,d,h,l,f,NaN);if(!d){c=!1;break a}MB(this,d)}c=!0}return c};
g.k.GK=function(a){if(this.na())return this;this.aa=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.K=1E3*fB(dB(a,"minimumUpdatePeriod"))||Infinity;if(!this.fa){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.ia=b}this.isLive=Infinity>this.K&&this.Qa;this.ha=parseInt(dB(a,SB(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse(gB(dB(a,SB(this,"mpdResponseTime")))))this.R=(g.A()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.qh(a.getElementsByTagName("Period"),this.sR,this);this.Ka=2;this.V("loaded");XB(this);return this};
g.k.HK=function(a){this.aa=a.xhr.status;this.Ka=3;this.V("loaderror");return wm(a.xhr)};
g.k.refresh=function(){if(1!=this.Ka&&!this.na()){var a=g.Md(this.sourceUrl,{start_seq:Vga(this).toString()});Cm(VB(this,a),function(){})}};
g.k.resume=function(){XB(this)};
g.k.Oc=function(){if(this.isManifestless&&this.I&&YB(this))return YB(this);var a=this.u,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Uc()&&(f.K&&(b=!0),h=h.Nk(),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.Kc=function(){if(this.isManifestless&&this.ck&&this.B&&this.ck-this.B)return this.ck&&this.B?this.ck-this.B:0;var a=this.u,b;for(b in a){var c=a[b].index;if(c.Uc())return c.Kc()}return 0};
g.k.getStreamTimeOffset=function(){return this.B};
g.k.Ue=function(a){for(var b in this.u){var c=this.u[b].index;if(c.Uc()){var d=c.Gh(a),e=c.Ue(d);if(e)return e+a-c.Xe(d)}}return NaN};
var PB=null,QB=!1,TB={commentary:1,alternate:2,dub:3,main:4};g.u($B,g.O);$B.prototype.Y=function(a,b){var c=this.P.u.index.Xb()<=b,d=this.X.isManifestless&&this.R.Ya;this.u={Ce:a,qb:b};this.R.Ya&&this.K&&this.C&&(this.K=!1,"continue"!=a.event&&"stop"!=a.event||aC(this,this.C));this.C&&this.C.qb==b&&(this.C=null);if(c||d)this.R.Dc&&(a.startSecs+=isNaN(this.I)?0:this.I),c=this.X,c.P.push(a),c.V("cuepointsadded",b)};g.u(cC,g.O);cC.prototype.seek=function(a){a!=this.D&&(this.I=0);this.D=a;var b=this.B.B,c=this.u.B,d=this.u.K,e=eC(this.B,a,this.B.K);d=eC(this.u,this.P.ia?a:e,d);e=Math.max(a,e,d);this.C=!0;this.F.isManifestless&&(dC(this.B,b),dC(this.u,c));bC(this.X,a);return e};
var $ga=2/24;nC.prototype.clone=function(a){return new nC(this.flavor,a,this.C,this.experiments)};
nC.prototype.sb=function(){return{flavor:this.flavor,keySystem:this.u}};
nC.prototype.Te=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 G1={},xC=(G1.playready=["com.youtube.playready","com.microsoft.playready"],G1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],G1);var vCa={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},H1;a:{var I1=g.Vc;I1=I1.toLowerCase();if(-1!=I1.indexOf("android")){var wCa=I1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(wCa){var xCa=parseFloat(wCa[1]);if(100>xCa){H1=xCa;break a}}var yCa=I1.match("("+g.Mb(vCa).join("|")+")");H1=yCa?vCa[yCa[0]]:0}else H1=void 0}var lD=H1,kD=0<=lD;yC.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;or?c=c||zCa[b]:2.2===lD?c=c||ACa[b]:er()&&(c=c||BCa[b]);return!!c};
yC.prototype.isTypeSupported=function(a){this.ea();return this.F?window.cast.receiver.platform.canDisplayType(a):oB(a)};
yC.prototype.disableAv1=function(){this.K=!0};
yC.prototype.ea=function(){};
var ACa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},BCa={"application/x-mpegURL":"maybe"},zCa={"application/x-mpegURL":"maybe"};CC.prototype.getLanguageInfo=function(){return this.u};
CC.prototype.toString=function(){return this.u.name};
CC.prototype.getLanguageInfo=CC.prototype.getLanguageInfo;DC.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.u};
DC.prototype.compose=function(a){if(a.C&&GC(a))return UD;if(a.C||GC(this))return a;if(this.C||GC(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 DC(b,c,!1,c===this.u?this.reason:a.reason)};
DC.prototype.D=function(a){return a.video?IC(this,a.video.quality):!1};
var CCa=FC("auto","hd1080",!1,"l"),vxa=FC("auto","large",!1,"l"),UD=FC("auto","auto",!1,"p");FC("small","auto",!1,"p");JC.prototype.nm=function(a){a=a||UD;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].Ma();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
JC.prototype.getAvailableAudioTracks=function(){return this.audioTracks};
JC.prototype.Lc=function(){return!!this.u};var vha={RED:"red",C4:"white"};var uha={nT:"adunit",fW:"detailpage",uW:"editpage",xW:"embedded",yW:"embedded_unbranded",CY:"leanback",E1:"previewpage",H1:"profilepage",N3:"unplugged",x1:"playlistoverview",W2:"sponsorshipsoffer"};g.u(RC,g.O);RC.prototype.add=function(a,b){!this.items[a]&&(b.Up||b.ht||b.ts)&&(this.items[a]=$b(b),this.V("vast_info_card_add",a))};
RC.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
RC.prototype.get=function(a){return this.items[a]||null};
RC.prototype.isEmpty=function(){return g.Sb(this.items)};var sD={VY:1,WY:2,XY:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.u(UC,g.C);var qha=/^([0-9\.]+):([0-9\.]+)$/;var dD="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),DCa={ST:"cbrand",TT:"cbr",UT:"cbrver",MX:"c",QX:"cver",PX:"ctheme",OX:"cplayer",R_:"cmodel",x0:"cnetwork",K0:"cos",L0:"cosver",f1:"cplatform"};g.u(AD,g.C);g.k=AD.prototype;g.k.ba=function(a){return g.Q(this.experiments,a)};
g.k.nh=function(a,b){b=void 0===b?!1:b;this.Cc=$C(this.Cc,a.video_id);this.kc=$C(this.kc,a.eventid);for(var c=[],d=g.q(Object.keys(DCa)),e=d.next();!e.done;e=d.next()){e=DCa[e.value];var f=a[e];null!=f&&(f!==this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.ut&&(c.sort(),g.Is(new g.tr("Player client parameters changed after startup",c)));this.userAge=ZC(this.userAge,a.user_age);this.userDisplayImage=$C(this.userDisplayImage,a.user_display_image);g.pw(this.userDisplayImage)||
(this.userDisplayImage="");this.userDisplayName=$C(this.userDisplayName,a.user_display_name);this.wi=$C(this.wi,a.user_gender);this.csiPageType=$C(this.csiPageType,a.csi_page_type);this.csiServiceName=$C(this.csiServiceName,a.csi_service_name);this.Ql=R(this.Ql,a.enablecsi);this.pageId=$C(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.DD(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.xD(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,or&&(a=Tp())&&(b.ebc=a));return g.Md(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.DD(this)+"/embed/"+a;c&&(a=g.Md(a,{list:c}));c=b.width;b=b.height;a=g.od(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.pB&&!or&&74<=br()||g.vC&&g.ae(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var wha=["www.youtube-nocookie.com","youtube.googleapis.com"];g.u(iE,g.O);g.u(oE,Aq);g.u(pE,Aq);var Kha=new Bq("aft-recorded",oE),aF=new Bq("timing-sent",pE);var J1=window,XE=J1.performance||J1.mozPerformance||J1.msPerformance||J1.webkitPerformance||new Jha;var BE=!1,Lha=(0,g.z)(XE.clearResourceTimings||XE.webkitClearResourceTimings||XE.mozClearResourceTimings||XE.msClearResourceTimings||XE.oClearResourceTimings||g.Ka,XE);var IE=g.v.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",IE,void 0);GE.prototype.tick=function(a,b,c){JE(this,"tick_"+a+"_"+b)||g.Nq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
GE.prototype.info=function(a,b){var c=Object.keys(a).join("");JE(this,"info_"+c+"_"+b)||(c=Object.assign({},a),c.clientActionNonce=b,g.Nq("latencyActionInfo",c))};
GE.prototype.span=function(a,b){var c=Object.keys(a).join("");JE(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Nq("latencyActionSpan",a))};var K1={},QE=(K1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",K1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",K1.app_startup="LATENCY_ACTION_APP_STARTUP",K1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",K1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",K1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",K1.browse="LATENCY_ACTION_BROWSE",K1.channels="LATENCY_ACTION_CHANNELS",K1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",K1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
K1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",K1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",K1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",K1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",K1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",K1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",K1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",K1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",
K1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",K1.chips="LATENCY_ACTION_CHIPS",K1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",K1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",K1.embed="LATENCY_ACTION_EMBED",K1.home="LATENCY_ACTION_HOME",K1.library="LATENCY_ACTION_LIBRARY",K1.live="LATENCY_ACTION_LIVE",K1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",K1.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",K1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
K1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",K1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",K1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",K1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",K1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",K1.prebuffer="LATENCY_ACTION_PREBUFFER",K1.prefetch="LATENCY_ACTION_PREFETCH",K1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",K1.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",K1.results=
"LATENCY_ACTION_RESULTS",K1.search_ui="LATENCY_ACTION_SEARCH_UI",K1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",K1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",K1.settings="LATENCY_ACTION_SETTINGS",K1.tenx="LATENCY_ACTION_TENX",K1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",K1.watch="LATENCY_ACTION_WATCH",K1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",K1["watch,watch7"]="LATENCY_ACTION_WATCH",K1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",K1["watch,watch7ad"]="LATENCY_ACTION_WATCH",
K1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",K1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",K1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",K1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",K1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",K1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",K1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",K1["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",K1["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
K1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",K1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",K1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",K1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",K1),L1={},TE=(L1.ad_allowed="adTypesAllowed",L1.yt_abt="adBreakType",L1.ad_cpn="adClientPlaybackNonce",L1.ad_docid="adVideoId",L1.yt_ad_an="adNetworks",L1.ad_at="adType",L1.aida="appInstallDataAgeMs",L1.browse_id="browseId",L1.p="httpProtocol",
L1.t="transportProtocol",L1.cpn="clientPlaybackNonce",L1.ccs="creatorInfo.creatorCanaryState",L1.cseg="creatorInfo.creatorSegment",L1.csn="clientScreenNonce",L1.docid="videoId",L1.GetHome_rid="requestIds",L1.GetSearch_rid="requestIds",L1.GetPlayer_rid="requestIds",L1.GetWatchNext_rid="requestIds",L1.GetBrowse_rid="requestIds",L1.GetLibrary_rid="requestIds",L1.is_continuation="isContinuation",L1.is_nav="isNavigation",L1.b_p="kabukiInfo.browseParams",L1.is_prefetch="kabukiInfo.isPrefetch",L1.is_secondary_nav=
"kabukiInfo.isSecondaryNav",L1.prev_browse_id="kabukiInfo.prevBrowseId",L1.query_source="kabukiInfo.querySource",L1.voz_type="kabukiInfo.vozType",L1.yt_lt="loadType",L1.mver="creatorInfo.measurementVersion",L1.yt_ad="isMonetized",L1.nr="webInfo.navigationReason",L1.nrsu="navigationRequestedSameUrl",L1.ncnp="webInfo.nonPreloadedNodeCount",L1.pnt="performanceNavigationTiming",L1.prt="playbackRequiresTap",L1.plt="playerInfo.playbackType",L1.pis="playerInfo.playerInitializedState",L1.paused="playerInfo.isPausedOnLoad",
L1.yt_pt="playerType",L1.fmt="playerInfo.itag",L1.yt_pl="watchInfo.isPlaylist",L1.yt_pre="playerInfo.preloadType",L1.yt_ad_pr="prerollAllowed",L1.pa="previousAction",L1.yt_red="isRedSubscriber",L1.rce="mwebInfo.responseContentEncoding",L1.scrh="screenHeight",L1.scrw="screenWidth",L1.st="serverTimeMs",L1.ssdm="shellStartupDurationMs",L1.br_trs="tvInfo.bedrockTriggerState",L1.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",L1.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",L1.label="tvInfo.label",
L1.is_mdx="tvInfo.isMdx",L1.preloaded="tvInfo.isPreloaded",L1.upg_player_vis="playerInfo.visibilityState",L1.query="unpluggedInfo.query",L1.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",L1.yt_vst="videoStreamType",L1.vph="viewportHeight",L1.vpw="viewportWidth",L1.yt_vis="isVisible",L1.rcl="mwebInfo.responseContentLength",L1.GetSettings_rid="requestIds",L1.GetTrending_rid="requestIds",L1.GetMusicSearchSuggestions_rid="requestIds",L1.REQUEST_ID="requestIds",L1),Mha="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(" "),
M1={},UE=(M1.ccs="CANARY_STATE_",M1.mver="MEASUREMENT_VERSION_",M1.pis="PLAYER_INITIALIZED_STATE_",M1.yt_pt="LATENCY_PLAYER_",M1.pa="LATENCY_ACTION_",M1.yt_vst="VIDEO_STREAM_TYPE_",M1),Nha="all_vc ap aq 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 N1=window;N1.ytcsi&&(N1.ytcsi.info=OE,N1.ytcsi.tick=PE);bF.prototype.Ma=function(){this.tick("gv")};
bF.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.N)()};cF.prototype.send=function(){g.qq(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Zf:this.B,Bg:this.B,context:this});this.u=(0,g.N)()};
cF.prototype.B=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.N)()-this.u)/1E3).toFixed(3),shost:g.yd(this.target),trigger:this.trigger};204===a.status||a.response?this.C&&this.C(g.vB(c)):this.D(new uB("pathprobe.net",!1,c))};var O1={},dF=(O1.AD_MARKER="ytp-ad-progress",O1.CHAPTER_MARKER="ytp-chapter-marker",O1.TIME_MARKER="ytp-time-marker",O1);g.eF.prototype.getId=function(){return this.id};
g.eF.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+fF(this.start)+", "+fF(this.end)+"]"};
g.eF.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 Qha=1;g.eF.prototype.getId=g.eF.prototype.getId;var KM={BUFFERING:1,ENDED:2,PAUSED:4,PLAYING:8,n2:16,F3:32,UNSTARTED:64,ERROR:128,l3:256,k3:512,nW:1024,LT: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(mF,g.C);g.k=mF.prototype;g.k.Lk=function(){return this.na()?[]:this.u.u};
g.k.reset=function(){this.started=!1;this.D.stop();this.u.u=[];this.B=[];this.fk()};
g.k.lc=function(a){this.started&&(this.fk(),g.U(a.hk,16)&&(a=lF(this.u,Math.max(this.C-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.D.start()))};
g.k.fk=function(){this.F=!0;if(!this.I){for(var a=3;this.F&&a;)this.F=!1,this.I=!0,this.UD(),this.I=!1,a--;this.K().Hb()&&(a=lF(this.u,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.Y(),this.D.start(a)))}};
g.k.UD=function(){if(this.started&&!this.na()){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.X(),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(qF(this,e));f=e=null;c?(a=kF(this.u,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Uha(this.u)):a=this.C<=b&&HM(a)?Tha(this.u,this.C,b):kF(this.u,b);
d=d.concat(pF(this,a));e&&(d=d.concat(qF(this,e)));f&&(d=d.concat(pF(this,f)));this.C=b;Vha(this,d)}};
g.k.ca=function(){this.B=[];this.u.u=[];g.C.prototype.ca.call(this)};
(function(a,b){if(yz&&b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c.Nw=a.prototype[d],c.Pw=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.N)();h=e.Nw.apply(this,h);zz(e.Pw,(0,g.N)()-l);return h}}(c)),c={Nw:c.Nw,
Pw:c.Pw}}})(mF,{UD:"crmis"});g.u(uF,g.O);g.k=uF.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.V("videoformatchange",bE(this.K));if(this.F.isManifestless){if(this.u.jB){b=ZA(this.u);for(var d in this.F.u)this.F.u[d].index.B=b}Xha(this)}this.P&&jE(this.P,this.B.u);this.u.fa&&oz()&&this.dd("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.I)?0:this.I;this.I=this.F.isManifestless?d:a;c?(this.u.xi?(this.Ne=c,wF(this,c)):wF(this,!1),this.Dc.Sb()):(a=0==this.I,IF(this,this.B,this.B.u,a),IF(this,this.D,this.D.u,a),Cm(this.seek(this.I),function(){}),
this.Ja.Ma());
(this.F.Hd||this.F.Lf)&&this.dd("minMaxSq","minSq."+this.F.Hd+";maxSq."+this.F.Lf+";minDvrTime."+this.F.ck+";maxDvrTime."+this.F.Nm)};
g.k.resume=function(){if(this.ma||this.Aa)this.Nb=this.Aa=this.ma=!1,this.Uh()};
g.k.setAudioTrack=function(a){if(!this.na()){var b=this.K;b.I=b.K.u[a.id];b.X=b.I;this.V("audioformatchange",new QC(b.X,b.B,"m"));this.V("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!=this.aa.getPlaybackRate()&&this.aa.setPlaybackRate(a)};
g.k.Uh=function(){BF(this);if(this.C&&BB(this.C)&&!this.C.Kf()){var a=jA(this.B);a=this.u.gH&&a&&a.F;this.F.isManifestless&&this.F.I&&YB(this.F)?(this.Y=YB(this.F),this.C.gi(this.Y)):this.F.isLive&&!a?isNaN(this.Y)?(this.Y=this.I+3600,this.C.gi(this.Y)):this.Y<=this.I+1800&&(this.Y=Math.max(this.Y+1800,this.I+3600),this.C.gi(this.Y)):this.C.isView||(a=Math.max(this.D.getDuration(),this.B.getDuration()),(!isFinite(this.Y)||this.Y!=a)&&0<a&&(this.C.gi(a),this.Y=a))}if(!this.na())if(WB(this.F)&&this.F.isFailed())AF(this,
!0,"manifest.net.retryexhausted",{rc:this.F.aa.toString()});else if(!this.F.C||!HA(this.B)&&!HA(this.D)||(this.B.F||this.D.F)&&this.u.ha?a=!1:(yF(this),this.V("seekplayerrequired",Infinity),a=!0),!a&&(BF(this),lA(this.B),!this.na()&&(lA(this.D),!this.na()))){this.F.isManifestless&&(IA(this.B),IA(this.D),hC(this.X),(a=Fy(this.B.C))&&a.B&&(a=a.B.C&&!this.u.Fj,this.dd(a==this.u.D.rf?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.u.D.rf?"1":"0")+";dfs."+(this.u.Fj?"1":"0"),!0)));if(this.C)NF(this);
else if(this.u.zh){if(a=Fy(this.B.C)){var b=this.B;b.C.B.shift();nA(b,a)}if(b=Fy(this.D.C)){var c=this.D;c.C.B.shift();nA(c,b)}sA(this.B)&&sA(this.D)||(a||b)&&KF(this)}vF(this);IF(this,this.B,this.B.u,!1);IF(this,this.D,this.D.u,!1);a=this.D.u.F;b=this.B.u.F;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";AF(this,!0,c,{metadata:"1",video:this.B.u.F||"",audio:this.D.u.F||""})}else{a=this.B;if((!this.C||BB(this.C)&&!this.u.ma)&&!this.X.C&&this.K.Y){b=
this.I;c=this.aa;var d=VA(c,a.u.info.zb,this.D.u.info.zb,0),e=PA(c.B)+d/RA(c.B);b+=Math.max(e,e+c.u.Kg-d/a.u.info.zb);a:{if(a.D.length){if(a.D[0].info.u[0].startTime<=b)break a;xA(a)}c=a.C;for(d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();a.D.length?a.B=g.db(g.db(a.D).info.u):a.C.B.length?a.B=Gy(a.C).info:a.B=jA(a);a.B&&b<a.B.startTime&&(a.ia=0,a.u.Fe()?a.B=a.u.Kj(b,!0).u[0]:a.B=null)}}FF(this,this.B,this.D);FF(this,this.D,this.B);this.u.kB&&this.Ta&&!this.ma&&SA(this.fa)&&(a=this.Ta,
b=(0,g.z)(this.V,this,"error"),(new cF(a,"cms",null,b)).send(),this.Ta="");this.P&&(a=this.P,a.F?(b=a.R+a.u.En,a.D||(b=Math.min(b,a.I+a.u.Cc)),a=Math.max(0,1E3*b-g.A())):a=NaN,isNaN(a)||this.sf.Sb(a));this.fd.Sb()}}};
g.k.WQ=function(a){if(this.u.Oe&&this.C){var b=a==this.C.u,c=a.Pt();c&&(!c.C||c.D)&&this.dd("sbu",a.sb({a:""+ +b}))}this.Uh()};
g.k.jO=function(a){if(this.C){a=jA(a==this.C.u?this.D:this.B);var b=void 0;a&&(b=Ou(a));AF(this,!0,"fmt.unplayable",b)}};
g.k.oP=function(a){AF(this,!0,"fmt.unparseable",a)};
g.k.MN=function(a){this.V("needkeyinfo",a)};
g.k.nP=function(a){AF(this,!1,"qoe.avsync",a)};
g.k.qP=function(a,b){this.F.isManifestless&&RF(this,b,a==this.B)};
g.k.rP=function(a,b){if(this.F.isManifestless){var c=this.F,d=b.qb,e=a==this.B,f;for(f in c.u){var h=jx(c.u[f].info.mimeType)||c.u[f].info.isVideo();if(e==h){h=c.u[f].index;var l=aB(h,d);0<=l&&h.segments.splice(l,1)}}}};
g.k.sP=function(a,b){this.F.isManifestless&&RF(this,b,a==this.B)};
g.k.pP=function(a){this.V("localmediachange",new rF(this.u.C,a,{isHeadless:this.u.zh}))};
g.k.seek=function(a){if(this.na())return wm();if(this.B.R||this.D.R)return this.u.tB?vm():wm("seeking to head");BF(this);this.Cc=(0,g.N)();vF(this,a);this.C&&this.C.u&&this.C.B&&(this.C.u.isLocked()||this.C.B.isLocked())&&this.V("reattachrequired");this.I=this.X.seek(a);bC(this.R,a);KF(this);return vm(this.I)};
g.k.getCurrentTime=function(){return this.I};
g.k.by=function(){return this.D.u.info.Db};
g.k.dy=function(){return this.B.u.info.Db};
g.k.ca=function(){this.R.unsubscribe("ctmp",this.dd,this);zF(this);xA(this.D);xA(this.B);g.O.prototype.ca.call(this)};
g.k.sb=function(){var a=jA(this.D),b=jA(this.B);a={lct:this.I.toFixed(3),lsk:this.X.C,lmf:cE(this.K),lbw:QA(this.fa).toFixed(3),lhd:PA(this.fa).toFixed(3),lst:(1E9*(this.fa.C.u()||0)).toFixed(3),laa:a?Hu(a):"",lva:b?Hu(b):"",lar:this.D.B?Hu(this.D.B):"",lvr:this.B.B?Hu(this.B.B):"",laq:""+vA(this.D),lvq:""+vA(this.B)};this.C&&!EB(this.C)&&this.C.u&&this.C.B&&(a.lab=Wz(this.C.u.Se()),a.lvb=Wz(this.C.B.Se()));return a};
g.k.Bi=function(){this.D.Bi();this.B.Bi();this.u.C="";this.u.zh=!1};
g.k.Zx=function(){return WA(this.aa)};
g.k.dd=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
g.k.UB=function(a,b){var c=a/b;isNaN(this.ia)&&(this.ia=c-Math.min(c,this.u.Ig),this.R.I=this.ia,this.V("timestamp",this.ia),this.F.isManifestless&&(this.F.B=this.ia));return(c-this.ia)*b};
var GF=2/24;TF.prototype.B=function(a,b){var c,d,e,f=null===(d=null===(c=b.Fy.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)};
TF.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];SF(this,b)};VF.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=UF(this))&&this.localStorage.set("yt-location-playability-token",d,15552E3):g.wq("YT_CL",JSON.stringify({f5:d}),15552E3,void 0,!0))};var YF={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 ria=/[&\?]action_proxy=1/,qia=/[&\?]token=([\w-]*)/,sia=/[&\?]video_id=([\w-]*)/,tia=/[&\?]index=([\d-]*)/,uia=/[&\?]m_pos_ms=([\d-]*)/,via=/[&\?]vvt=([\w-]*)/,wia=/[&\?]mt=([\d-]*)/,nia="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(" "),kG="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(" "),
iG={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"},jG={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},lG={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};
bG.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return gG(this,a,b);var d=1===this.u;d&&this.player.app.eb.tick("a_bid_s");var e=kia();if(null!==e)return d&&this.player.app.eb.tick("a_bid_f"),gG(this,a,b,e);e=lia();d&&Am(e,function(){c.player.app.eb.tick("a_bid_f")});
return e.then(function(f){return gG(c,a,b,f)})};
bG.prototype.reset=function(){this.C=this.u=1};g.u(mG,g.C);rG.prototype.get=function(){return this.value};
g.u(sG,rG);sG.prototype.u=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(tG,rG);tG.prototype.u=function(){return"metadata_type_ad_next_params"};
g.u(uG,rG);uG.prototype.u=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(vG,rG);vG.prototype.u=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(wG,rG);wG.prototype.u=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(xG,rG);xG.prototype.u=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(yG,rG);yG.prototype.u=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(zG,rG);zG.prototype.u=function(){return"metadata_ad_video_is_listed"};
g.u(AG,rG);AG.prototype.u=function(){return"metadata_type_ad_placement_config"};
g.u(BG,rG);BG.prototype.u=function(){return"metadata_type_ad_pod_info"};
g.u(CG,rG);CG.prototype.u=function(){return"metadata_type_ad_video_id"};
g.u(DG,rG);DG.prototype.u=function(){return"metadata_type_content_cpn"};
g.u(EG,rG);EG.prototype.u=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(FG,rG);FG.prototype.u=function(){return"metadata_type_valid_instream_survey_ad_renderer"};
g.u(GG,rG);GG.prototype.u=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(HG,rG);HG.prototype.u=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(IG,rG);IG.prototype.u=function(){return"metadata_type_linked_in_player_layout_id"};
g.u(JG,rG);JG.prototype.u=function(){return"metadata_type_linked_in_player_slot_id"};
g.u(KG,rG);KG.prototype.u=function(){return"metadata_type_player_bytes_callback"};
g.u(LG,rG);LG.prototype.u=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(MG,rG);MG.prototype.u=function(){return"metadata_type_sub_layouts"};
g.u(NG,rG);NG.prototype.u=function(){return"metadata_type_cue_point"};
g.u(OG,rG);OG.prototype.u=function(){return"metadata_type_video_length_seconds"};
g.u(PG,rG);PG.prototype.u=function(){return"metadata_type_player_vars"};
g.u(QG,rG);QG.prototype.u=function(){return"metadata_type_sodar_extension_data"};
g.u(RG,rG);RG.prototype.u=function(){return"metadata_type_layout_enter_ms"};
g.u(SG,rG);SG.prototype.u=function(){return"metadata_type_layout_exit_ms"};
g.u(TG,rG);TG.prototype.u=function(){return"metadata_type_sub_layout_index"};
g.u(UG,rG);UG.prototype.u=function(){return"metadata_type_dai"};
g.u(VG,rG);VG.prototype.u=function(){return"metadata_type_ad_intro"};
g.u(WG,rG);WG.prototype.u=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u(XG,rG);XG.prototype.u=function(){return"metadata_type_drift_recovery_ms"};
g.u(YG,rG);YG.prototype.u=function(){return"metadata_type_fulfilled_layout"};
g.u(ZG,rG);ZG.prototype.u=function(){return"metadata_type_ad_break_request_data"};
g.u($G,rG);$G.prototype.u=function(){return"metadata_type_ad_break_response_data"};
g.u(aH,rG);aH.prototype.u=function(){return"metadata_type_remote_slots_data"};
g.u(bH,rG);bH.prototype.u=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(cH,rG);cH.prototype.u=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(dH,rG);dH.prototype.u=function(){return"metadata_type_instream_video_ad_commands"};g.u(gH,Ya);var Dpa=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"]]);g.u(qH,g.C);qH.prototype.ej=function(a,b,c,d,e,f){var h=this;kR(this.Ca.get())&&!e&&Bia(d.filter(fH),a,f);var l=pG(this.Da.get(),1);nG(this.tb.get(),"opportunity_type_player_response_received",function(){return qG(h.uc.get(),c,d,a,b,e,l)});
uN(this.Ca.get())&&Rra(this.Tw)};
qH.prototype.Pm=function(){};g.u(sH,g.eF);sH.prototype.deactivate=function(){this.B=!0};var P1;var ECa=g.Vc,FCa=ECa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!FCa||2>FCa.length)P1=void 0;else{var Q1=ECa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);P1=Q1&&6==Q1.length?Number(Q1[5].replace("_",".")):0}var tJ=P1,UU=0<=tJ;UU&&0<=g.Vc.search("Safari")&&g.Vc.search("Version");var Ela={mW:1,EW:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var dZ=16/9,GCa=[.25,.5,.75,1,1.25,1.5,1.75,2],HCa=GCa.concat([3,4,5,6,7,8,9,10,15]);g.u(yH,g.C);
yH.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.Ud)for(var h=g.q(Object.keys(f.Ud)),l=h.next();!l.done;l=h.next())if(l=l.value,xC[l])for(var m=g.q(xC[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new nC(l,n,f.Ud[l],this.experiments),this.D[l]=this.D[l]||{},this.D[l][f.mimeType]=!0}hr()&&(this.B["com.youtube.fairplay"]=new nC("fairplay","com.youtube.fairplay","",
this.experiments),this.D.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.u=fha(b,this.useCobaltWidevine,g.kB(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})};
yH.prototype.ea=function(){};
yH.prototype.ba=function(a){return g.Q(this.experiments,a)};g.k=BH.prototype;g.k.Te=function(){return this.Oa};
g.k.Yq=function(){return null};
g.k.dD=function(){var a=this.Yq();return a?(a=g.Zp(a.u),Number(a.expire)):NaN};
g.k.nA=function(){};
g.k.Yb=function(){return this.Oa.Yb()};
g.k.getHeight=function(){return this.Oa.Ma().height};g.u(GH,BH);GH.prototype.dD=function(){return this.expiration};
GH.prototype.Yq=function(){if(!this.u||this.u.na()){var a=this.B;Iia(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())if(e=e.value,f=c[e.B]){var h=b,l=h.push,m=a,n="#EXT-X-MEDIA:TYPE=AUDIO,",p="YES",
r="audio";if(f.u){r=f.u;var t=r.getId().split(".")[0];t&&(n+='LANGUAGE="'+t+'",');m.u||r.getIsDefault()||(p="NO");r=r.getName()}t="";null!==e&&(t=e.itag.toString());m=DH(m,f.url,t);n=n+('NAME="'+r+'",DEFAULT='+(p+',AUTOSELECT=YES,GROUP-ID="'))+(EH(f,e)+'",URI="'+(m+'"'));l.call(h,n)}d=g.q(a.B);for(e=d.next();!e.done;e=d.next())if(e=e.value,h=c[e.B])f=a,h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(EH(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(DH(f,e.url,""));a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.u=new zB(a)}return this.u};g.u(IH,BH);IH.prototype.Yq=function(){return new zB(this.u.Ld())};
IH.prototype.nA=function(){this.u=Aw(this.u)};g.u(JH,BH);JH.prototype.Yq=function(){return new zB(this.u)};g.k=g.KH.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.u};
g.k.Ld=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.LH(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var XH={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},$H={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var R1={},ICa=(R1.ALWAYS=1,R1.BY_REQUEST=3,R1.UNKNOWN=void 0,R1),S1={},JCa=(S1.COLOR_PRIMARIES_BT709="bt709",S1.COLOR_PRIMARIES_BT2020="bt2020",S1.COLOR_PRIMARIES_UNKNOWN=null,S1.COLOR_PRIMARIES_UNSPECIFIED=null,S1),T1={},Tia=(T1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",T1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",T1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",T1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",T1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,T1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,T1),U1={},V1=(U1.FAIRPLAY="fairplay",U1.PLAYREADY="playready",U1.WIDEVINE="widevine",U1.CLEARKEY=null,U1.FLASHACCESS=null,U1.UNKNOWN=null,U1.WIDEVINE_CLASSIC=null,U1),W1={},KCa=(W1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",W1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",W1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",W1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",W1),X1={},LCa=(X1.UNKNOWN=0,X1.RECTANGULAR=1,X1.EQUIRECTANGULAR=2,X1.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,X1.MESH=4,X1),Y1={},MCa=(Y1.SPATIAL_AUDIO_TYPE_NONE=0,Y1.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,Y1.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,Y1.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,Y1),Z1={},NCa=(Z1.STEREO_LAYOUT_UNKNOWN=0,Z1.STEREO_LAYOUT_LEFT_RIGHT=1,Z1.STEREO_LAYOUT_TOP_BOTTOM=2,Z1),$1={},OCa=($1.FORMAT_STREAM_TYPE_UNKNOWN=0,$1.FORMAT_STREAM_TYPE_OTF=3,$1);g.u(iI,g.O);iI.prototype.pm=function(a,b){for(var c=jI(this,b);0<=c;){var d=this.levels[c];if(d.Uc(Math.floor(a/(d.columns*d.rows)))&&(d=d.pm(a)))return d;c--}return this.levels[0].pm(a)};
iI.prototype.ca=function(){this.u&&(this.u=this.u.onload=null);g.O.prototype.ca.call(this)};g.k=g.mI.prototype;g.k.Ee=function(){return this.width};
g.k.getHeight=function(){return this.height};
g.k.iD=ba(2);g.k.fy=function(){return this.C};
g.k.isDefault=function(){return-1!==this.D.indexOf("default")};
g.k.Uc=function(a){return this.loaded.has(a)};
g.k.Ld=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.Md(b,{sigh:this.signature}));return uw(b)};
g.k.pm=function(a){a>=this.oz()&&this.dr();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.dr()+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.Ld(b),column:a,columns:f,row:d,rows:c,kv:this.width*f,jv:this.height*c}};
g.k.dv=function(a){var b=this.fy()-1;return g.ce(0===this.u?Math.round(a*this.C/this.videoLength):Math.round(1E3*a/this.u),0,b)};
g.k.dr=function(){return this.C-1};
g.k.oz=function(){return this.C?0:-1};
g.k.SE=function(){};g.u(nI,iI);nI.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};
nI.prototype.F=function(a,b,c,d){return new g.mI(a,b,c,d)};g.u(pI,g.mI);g.k=pI.prototype;g.k.fy=function(){return this.B.fo()};
g.k.dv=function(a){var b=this.rows*this.columns*this.I,c=this.B,d=c.Xb();a=c.Gh(a);return a>d-b?-1:a};
g.k.dr=function(){return this.B.Xb()};
g.k.oz=function(){return this.B.Eh()};
g.k.SE=function(a){this.B=a};g.u(qI,nI);qI.prototype.B=function(a,b){return nI.prototype.B.call(this,"$N|"+a,b)};
qI.prototype.F=function(a,b,c){return new pI(a,b,c,this.isLive)};g.u(g.rI,g.O);g.k=g.rI.prototype;g.k.nh=function(a,b,c){c&&(this.errorCode=null,this.errorDetail="",this.Ki=this.errorReason=null);b?(bD(a),this.setData(a),bJ(this)&&DI(this)):(a=a||{},this.ba("embeds_enable_updatedata_from_embeds_response_killswitch")||dJ(this,a),yI(this,a),uI(this,a),this.V("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.Ki=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||this.Wx());this.Zi=R(this.Sa.Zi,a.livemonitor);dJ(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.Ss=!0);p.allowInPlaceSwitch&&(this.bx=!0);var r=p.loadPolicy;r&&(this.annotationsLoadPolicy=ICa[r]);var t=p.invideoUrl;t&&(this.Mg=uw(t));this.ru=!0;break}}var w=this.playerResponse.attestation;w&&fI(this,w);var y=this.playerResponse.heartbeatParams;if(y){var x=y.heartbeatToken;x&&(this.drmSessionId=y.drmSessionId||"",this.heartbeatToken=x,this.GD=
Number(y.intervalMilliseconds),this.HD=Number(y.maxRetries),this.ID=!!y.softFailOnError,this.QD=!!y.useInnertubeHeartbeatsForDrm,this.Ds=!0)}var B=this.playerResponse.messages;B&&Wia(this,B);var E=this.playerResponse.multicamera;if(E){var G=E.playerLegacyMulticameraRenderer;if(G){var K=G.metadataList;K&&(this.rF=K,this.Vl=Yp(K))}}var H=this.playerResponse.overlay;if(H){var ya=H.playerControlsOverlayRenderer;if(ya){var ia=ya.controlBgHtml;null!=ia?(this.Gj=ia,this.qc=!0):(this.Gj="",this.qc=!1);if(ya.mutedAutoplay){var Oa=
ya.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Oa&&Oa.endScreen){var Ra=Oa.endScreen.playerMutedAutoplayEndScreenRenderer;Ra&&Ra.text&&(this.tF=g.T(Ra.text))}}else this.mutedAutoplay=!1}}var Wa=this.playerResponse.playabilityStatus;if(Wa){var kc=Wa.backgroundability;kc&&kc.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Yb=Wa.offlineability;Yb&&Yb.offlineabilityRenderer.offlineable&&(this.offlineable=!0);var Qe=Wa.contextParams;Qe&&(this.contextParams=Qe);var ue=Wa.pictureInPicture;
ue&&ue.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Wa.playableInEmbed&&(this.allowEmbed=!0);var lf=Wa.ypcClickwrap;if(lf){var Uf=lf.playerLegacyDesktopYpcClickwrapRenderer,Qc=lf.ypcRentalActivationRenderer;if(Uf)this.Bs=Uf.durationMessage||"",this.Bp=!0;else if(Qc){var kx=Qc.durationMessage;this.Bs=kx?g.T(kx):"";this.Bp=!0}}var Rd=Wa.errorScreen;if(Rd){if(Rd.playerLegacyDesktopYpcTrailerRenderer){var Hd=Rd.playerLegacyDesktopYpcTrailerRenderer;this.Jw=Hd.trailerVideoId||"";var lx=Rd.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;
var vi=lx&&lx.ypcTrailerRenderer}else if(Rd.playerLegacyDesktopYpcOfferRenderer)Hd=Rd.playerLegacyDesktopYpcOfferRenderer;else if(Rd.ypcTrailerRenderer){vi=Rd.ypcTrailerRenderer;var zr=vi.fullVideoMessage;this.Cs=zr?g.T(zr):""}Hd&&(this.Ew=Hd.itemTitle||"",Hd.itemUrl&&(this.Fw=Hd.itemUrl),Hd.itemBuyUrl&&(this.Cw=Hd.itemBuyUrl),this.Dw=Hd.itemThumbnail||"",this.Hw=Hd.offerHeadline||"",this.Es=Hd.offerDescription||"",this.Iw=Hd.offerId||"",this.Gw=Hd.offerButtonText||"",this.fB=Hd.offerButtonFormattedText||
null,this.Fs=Hd.overlayDurationMsec||NaN,this.Cs=Hd.fullVideoMessage||"",this.un=!0);if(vi){var mx=vi.unserializedPlayerResponse;if(mx)this.Cp={raw_player_response:mx};else{var Ar=vi.playerVars;this.Cp=Ar?Xp(Ar):null}this.un=!0}}}var mf=this.playerResponse.playbackTracking;if(mf){var nx=a,Br=dI(mf.googleRemarketingUrl);Br&&(this.googleRemarketingUrl=Br);var ox=dI(mf.youtubeRemarketingUrl);ox&&(this.youtubeRemarketingUrl=ox);var Pn=dI(mf.ptrackingUrl);if(Pn){var Qn=eI(Pn),px=Qn.oid;px&&(this.zG=px);
var xh=Qn.pltype;xh&&(this.AG=xh);var qx=Qn.ptchn;qx&&(this.yG=qx);var Cr=Qn.ptk;Cr&&(this.Ev=encodeURIComponent(Cr))}var rx=dI(mf.ppvRemarketingUrl);rx&&(this.ppvRemarketingUrl=rx);var uE=dI(mf.qoeUrl);if(uE){for(var Rn=g.Zp(uE),Dr=g.q(Object.keys(Rn)),Er=Dr.next();!Er.done;Er=Dr.next()){var sx=Er.value,Sn=Rn[sx];Rn[sx]=Array.isArray(Sn)?Sn.join(","):Sn}var Tn=Rn.cat;Tn&&(this.Br=Tn);var Fr=Rn.live;Fr&&(this.dz=Fr)}var zc=dI(mf.remarketingUrl);if(zc){this.remarketingUrl=zc;var Ig=eI(zc);Ig.foc_id&&
(this.qd.focEnabled=!0);var Gr=Ig.data;Gr&&(this.qd.rmktEnabled=!0,Gr.engaged&&(this.qd.engaged="1"));this.qd.baseUrl=zd(zc)+vd(g.xd(5,zc))}var tx=dI(mf.videostatsPlaybackUrl);if(tx){var hd=eI(tx),ux=hd.adformat;ux&&(nx.adformat=ux);var vx=hd.aqi;vx&&(nx.ad_query_id=vx);var Hr=hd.autoplay;Hr&&(this.eh="1"==Hr);var Ir=hd.autonav;Ir&&(this.Kh="1"==Ir);var wx=hd.delay;wx&&(this.yh=g.rd(wx));var xx=hd.ei;xx&&(this.eventId=xx);"adunit"===hd.el&&(this.eh=!0);var yx=hd.feature;yx&&(this.Gr=yx);var Jr=hd.list;
Jr&&(this.playlistId=Jr);var Kr=hd.of;Kr&&(this.Mz=Kr);var vE=hd.osid;vE&&(this.osid=vE);var ml=hd.referrer;ml&&(this.referrer=ml);var Kj=hd.sdetail;Kj&&(this.Sv=Kj);var Lr=hd.ssrt;Lr&&(this.Ur="1"==Lr);var Mr=hd.subscribed;Mr&&(this.subscribed="1"==Mr,this.qd.subscribed=Mr);var zx=hd.uga;zx&&(this.userGenderAge=zx);var Ax=hd.upt;Ax&&(this.tw=Ax);var Bx=hd.vm;Bx&&(this.videoMetadata=Bx)}var wE=dI(mf.videostatsWatchtimeUrl);if(wE){var Re=eI(wE).ald;Re&&(this.Qs=Re)}var Un=this.ba("use_player_params_for_passing_desktop_conversion_urls");
if(mf.promotedPlaybackTracking){var id=mf.promotedPlaybackTracking;id.startUrls&&(Un||(this.Mv=id.startUrls[0]),this.Nv=id.startUrls);id.firstQuartileUrls&&(Un||(this.Vz=id.firstQuartileUrls[0]),this.Wz=id.firstQuartileUrls);id.secondQuartileUrls&&(Un||(this.Xz=id.secondQuartileUrls[0]),this.Yz=id.secondQuartileUrls);id.thirdQuartileUrls&&(Un||(this.Zz=id.thirdQuartileUrls[0]),this.aA=id.thirdQuartileUrls);id.completeUrls&&(Un||(this.Tz=id.completeUrls[0]),this.Uz=id.completeUrls);id.engagedViewUrls&&
(1<id.engagedViewUrls.length&&g.Is(new g.tr("There are more than one engaged_view_urls.")),this.Wo=id.engagedViewUrls[0])}}var Id=this.playerResponse.playerAds;if(Id)for(var Cx=a,Dx=g.q(Id),Vn=Dx.next();!Vn.done;Vn=Dx.next()){var Ex=Vn.value;if(Ex){var Fx=Ex.playerLegacyDesktopWatchAdsRenderer;if(Fx){var Lj=Fx.playerAdParams;if(Lj){"1"==Lj.autoplay&&(this.eh=!0);this.adSafetyReason=Lj.encodedAdSafetyReason||null;void 0!==Lj.showContentThumbnail&&(this.Vr=!!Lj.showContentThumbnail);Cx.enabled_engage_types=
Lj.enabledEngageTypes;break}}}}var Jd=this.playerResponse.playerConfig;if(Jd){var nl=Jd.manifestlessWindowedLiveConfig;if(nl){var Nr=Number(nl.minDvrSequence),wi=Number(nl.maxDvrSequence),Gx=Number(nl.minDvrMediaTimeMs),Or=Number(nl.maxDvrMediaTimeMs);Nr&&(this.Hd=Nr);Gx&&(this.ck=Gx/1E3);wi&&(this.Lf=wi);Or&&(this.Nm=Or/1E3)}var Hx=Jd.daiConfig;if(Hx){Hx.enableDai&&(this.cd=!0);var ol=Hx.enableServerStitchedDai;ol&&(this.enableServerStitchedDai=ol)}var Wn=Jd.audioConfig;if(Wn){var Ix=Wn.loudnessDb;
null!=Ix&&(this.Ir=Ix);Wn.audioMuted&&(this.Yl=!0);Wn.muteOnStart&&(this.Yl=!0)}var Pr=Jd.playbackEndConfig;if(Pr){var Jx=Pr.endSeconds;Jx&&this.mutedAutoplay&&(this.endSeconds=Jx)}var Xn=Jd.fairPlayConfig;if(Xn){var Kx=Xn.certificate;Kx&&(this.Bh=SC(Kx));var Lx=Number(Xn.keyRotationPeriodMs);0<Lx&&(this.At=Lx);var Qr=Number(Xn.keyPrefetchMarginMs);0<Qr&&(this.zt=Qr)}var Mj=Jd.playbackStartConfig;if(Mj){this.Qz=Number(Mj.startSeconds);var Xia=Mj.liveUtcStartSeconds;Xia&&(this.liveUtcStartSeconds=
Number(Xia));var zW=Mj.startPosition;if(zW){var Yia=zW.utcTimeMillis;Yia&&(this.liveUtcStartSeconds=.001*Number(Yia));var Zia=zW.streamTimeMillis;Zia&&(this.kw=.001*Number(Zia))}}else{var AW=Jd.skippableSegmentsConfig;if(AW){var $ia=AW.introSkipDurationMs;$ia&&(this.Iy=Number($ia)/1E3);var aja=AW.outroSkipDurationMs;aja&&(this.Lz=Number(aja)/1E3)}}var BW=Jd.skippableIntroConfig;if(BW){var bja=Number(BW.startMs),cja=Number(BW.endMs);isNaN(bja)||isNaN(cja)||(this.Em=bja,this.al=cja)}var dja=Jd.streamSelectionConfig;
dja&&(this.Sj=Number(dja.maxBitrate));var eja=Jd.visualizerConfig;eja&&eja.isVisualizerEligible&&(this.isVisualizerEligible=!0);var fja=Jd.vrConfig;fja&&(this.Hm="1"==fja.partialSpherical);var Yz=Jd.webDrmConfig;if(Yz){Yz.skipWidevine&&(this.CH=!0);var gja=Yz.widevineServiceCert;gja&&(this.Ap=SC(gja));Yz.useCobaltWidevine&&(this.useCobaltWidevine=!0);Yz.startWithNoQualityConstraint&&(this.eq=!0)}var hja=Jd.mediaCommonConfig;if(hja){var MH=hja.dynamicReadaheadConfig;MH&&(this.maxReadAheadMediaTimeMs=
MH.maxReadAheadMediaTimeMs||NaN,this.minReadAheadMediaTimeMs=MH.minReadAheadMediaTimeMs||NaN,this.readAheadGrowthRateMs=MH.readAheadGrowthRateMs||NaN)}}var mk=this.playerResponse.streamingData;if(mk){var ija=mk.adaptiveFormats;if(ija){for(var jja=[],kja=g.q(ija),Nh=kja.next();!Nh.done;Nh=kja.next()){var Gb=Nh.value,lja=jja,hIa=lja.push,CW=Gb.indexRange,DW=Gb.initRange,wc={itag:Gb.itag,url:Gb.url,index:CW?CW.start+"-"+CW.end:"0-0",bitrate:Gb.bitrate,init:DW?DW.start+"-"+DW.end:"0-0",type:Gb.mimeType,
clen:Gb.contentLength,lmt:Gb.lastModified,xtags:Gb.xtags},NH=Gb.audioTrack;if(NH){var mja=NH.displayName;mja&&(wc.name=mja,wc.audio_track_id=NH.id,NH.audioIsDefault&&(wc.isDefault="1"))}var Zz=Gb.captionTrack;Zz&&(wc.caption_display_name=Zz.displayName,wc.caption_vss_id=Zz.vssId,wc.caption_language_code=Zz.languageCode,wc.caption_kind=Zz.kind);var nja=Gb.cipher||Gb.signatureCipher;if(nja){var EW=Xp(nja);wc.sp=EW.sp;wc.s=EW.s;wc.url=EW.url}else wc.url=Gb.url;var oja=Gb.width,pja=Gb.height;null!=oja&&
null!=pja&&(wc.size=oja+"x"+pja);var qja=Gb.fps;qja&&(wc.fps=qja);var rja=Gb.type;rja&&(wc.stream_type=OCa[rja]);var sja=Gb.projectionType;sja&&(wc.projection_type=LCa[sja]);var tja=Gb.stereoLayout;tja&&(wc.stereo_layout=NCa[tja]);var uja=Gb.spatialAudioType;uja&&(wc.spatial_audio_type=MCa[uja]);var vja=Gb.drmFamilies;if(vja){for(var wja=[],xja=g.q(vja),FW=xja.next();!FW.done;FW=xja.next())wja.push(V1[FW.value]);wc.drm_families=wja.join(",")}var yja=Gb.qualityLabel;yja&&(wc.quality_label=yja);var zja=
Gb.targetDurationSec;zja&&(wc.target_duration_sec=zja);var Aja=Gb.maxDvrDurationSec;Aja&&(wc.max_dvr_duration_sec=Aja);var Bja=Gb.audioSampleRate;Bja&&(wc.audio_sample_rate=Bja);var Cja=Gb.audioChannels;Cja&&(wc.audio_channels=Cja);var Dja=cI(Gb);Dja&&(wc.eotf=Dja);var Eja=Gb.colorInfo;if(Eja){var Fja=Eja.primaries;if(Fja){var Gja=JCa[Fja];Gja&&(wc.primaries=Gja)}}var iIa=g.Kd(wc);hIa.call(lja,iIa);var Hja=Gb.loudnessDb;Gb.itag&&null!=Hja&&this.ba("html5_enable_per_format_loudness")&&(this.Pz[Gb.itag.toString()]=
Hja)}this.adaptiveFormats=jja.join(",")}var GW=mk.formats;if(GW){var $z=[],Ija=g.q(GW);for(Nh=Ija.next();!Nh.done;Nh=Ija.next()){var HW=Nh.value;$z.push(HW.itag+"/"+HW.width+"x"+HW.height)}this.Vx=$z.join(",");$z=[];var Jja=g.q(GW);for(Nh=Jja.next();!Nh.done;Nh=Jja.next()){var Ft=Nh.value,aA={itag:Ft.itag,type:Ft.mimeType,quality:Ft.quality},Kja=Ft.url;Kja&&(aA.url=Kja);var Lja=Ft.cipher||Ft.signatureCipher;if(Lja){var IW=Xp(Lja);aA.sp=IW.sp;aA.s=IW.s;aA.url=IW.url}$z.push(g.Kd(aA))}this.xs=$z.join(",")}var JW=
mk.hlsFormats;if(JW){var Mja=Jd||null,OH={};if(Mja){var KW=Mja.audioPairingConfig;if(KW&&KW.pairs)for(var Nja=g.q(KW.pairs),LW=Nja.next();!LW.done;LW=Nja.next()){var Oja=LW.value,MW=Oja.videoItag;OH[MW]||(OH[MW]=[]);OH[MW].push(Oja.audioItag)}}for(var Pja={},Qja=g.q(JW),jp=Qja.next();!jp.done;jp=Qja.next()){var Rja=jp.value;Pja[Rja.itag]=Rja.bitrate}var Sja=[],Tja=g.q(JW);for(jp=Tja.next();!jp.done;jp=Tja.next()){var yf=jp.value,Qi={itag:yf.itag,type:yf.mimeType,url:yf.url,bitrate:yf.bitrate,width:yf.width,
height:yf.height,fps:yf.fps},PH=yf.audioTrack;if(PH){var Uja=PH.displayName;Uja&&(Qi.name=Uja,Qi.audio_track_id=PH.id,PH.audioIsDefault&&(Qi.is_default="1"))}if(yf.drmFamilies){for(var Vja=[],Wja=g.q(yf.drmFamilies),NW=Wja.next();!NW.done;NW=Wja.next())Vja.push(V1[NW.value]);Qi.drm_families=Vja.join(",")}var QH=OH[yf.itag];if(QH&&QH.length){Qi.audio_itag=QH.join(",");var Xja=Pja[QH[0]];Xja&&(Qi.bitrate+=Xja)}var Yja=cI(yf);Yja&&(Qi.eotf=Yja);yf.audioChannels&&(Qi.audio_channels=yf.audioChannels);
Sja.push(g.Kd(Qi))}this.hlsFormats=Sja.join(",")}var OW=mk.licenseInfos;if(OW&&0<OW.length){for(var Zja={},$ja=g.q(OW),PW=$ja.next();!PW.done;PW=$ja.next()){var aka=PW.value,bka=aka.drmFamily,cka=aka.url;bka&&cka&&(Zja[V1[bka]]=cka)}this.Ud=Zja}var dka=mk.drmParams;dka&&(this.drmParams=dka);var eka=mk.dashManifestUrl;eka&&(this.Og=g.Md(eka,{cpn:this.clientPlaybackNonce}));var fka=mk.hlsManifestUrl;fka&&(this.hlsvp=fka);var gka=mk.probeUrl;gka&&(this.probeUrl=uw(g.Md(gka,{cpn:this.clientPlaybackNonce})))}var hka=
this.playerResponse.trackingParams;hka&&(this.Ug=hka);var mc=this.playerResponse.videoDetails;if(mc){var Ri=a,QW=mc.videoId;QW&&(this.videoId=QW,Ri.video_id||(Ri.video_id=QW));var ika=mc.channelId;ika&&(this.qd.uid=ika.substr(2));var RW=mc.title;RW&&(this.title=RW,Ri.title||(Ri.title=RW));var SW=mc.lengthSeconds;SW&&(this.lengthSeconds=Number(SW),Ri.length_seconds||(Ri.length_seconds=SW));var jka=mc.keywords;jka&&(this.keywords=sI(jka));var TW=mc.channelId;TW&&(this.kg=TW,Ri.ucid||(Ri.ucid=TW));var kka=
mc.viewCount;kka&&(this.rawViewCount=Number(kka));var UW=mc.author;UW&&(this.author=UW,Ri.author||(Ri.author=UW));var lka=mc.shortDescription;lka&&(this.shortDescription=lka);var mka=mc.isCrawlable;mka&&(this.isListed=mka);var nka=mc.musicVideoType;nka&&(this.musicVideoType=nka);var VW=mc.isLive;null!=VW&&(this.isLivePlayback=VW);if(VW||mc.isUpcoming)this.isPremiere=!mc.isLiveContent;var oka=mc.thumbnail;oka&&(this.li=bI(oka));var pka=Jd||null,WW=a;mc.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=
!0);mc.isUpcoming&&(this.isUpcoming=!0);if(mc.isPostLiveDvr)this.he=!0;else{var XW=!1;if(this.Zi)this.allowLiveDvr=uJ(!0),this.isLivePlayback=!0;else if(mc.isLive){WW.livestream="1";this.allowLiveDvr=uJ(!!mc.isLiveDvrEnabled);this.bh=27;mc.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var qka=mc.latencyClass;qka&&(this.latencyClass=KCa[qka]||"UNKNOWN");this.gq=!0;var rka=mc.liveChunkReadahead;rka&&(this.liveChunkReadahead=rka);var bA=pka&&pka.livePlayerConfig;if(bA){bA.hasSubfragmentedFmp4&&
(this.hasSubfragmentedFmp4=!0);bA.hasSubfragmentedWebm&&(this.Ui=!0);bA.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var ska=bA.liveExperimentalContentId;ska&&(this.liveExperimentalContentId=Number(ska))}XW=!0}else mc.isUpcoming&&(XW=!0);XW&&(this.isLivePlayback=!0,WW.adformat&&"8"!==WW.adformat.split("_")[1]||this.Of.push("heartbeat"),this.wt=this.Ds=!0)}var tka=mc.isPrivate;tka&&(this.isPrivate=R(this.isPrivate,tka))}if(Wa){var uka=mc||null,vka=!1,Gt=Wa.errorScreen;vka=Gt&&(Gt.playerLegacyDesktopYpcOfferRenderer||
Gt.playerLegacyDesktopYpcTrailerRenderer||Gt.ypcTrailerRenderer)?!0:uka&&uka.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Wa.status);if(!vka){this.errorCode="150";var RH=Gt&&Gt.playerErrorMessageRenderer;if(RH){this.playerErrorMessageRenderer=RH;var wka=RH.reason;wka&&(this.errorReason=g.T(wka));var YW=RH.subreason;YW&&(this.Ki=g.T(YW),this.Et=YW)}else this.errorReason=Wa.reason||null;var ZW=Wa.status;if("LOGIN_REQUIRED"===ZW)this.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===
ZW)this.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ZW){var xka=Wa.errorScreen,yka=xka&&xka.playerKavRenderer;this.errorDetail=yka&&yka.kavUrl?"4":"3"}else this.errorDetail=Wa.isBlockedInRestrictedMode?"5":"0"}}var zka=this.playerResponse.interstitialPods;zka&&Via(this,zka);this.Mg&&this.eventId&&(this.Mg=bq(this.Mg,{ei:this.eventId}));var $W=this.playerResponse.captions;$W&&$W.playerCaptionsTracklistRenderer&&Uia(this,$W.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&
null!=this.clipConfig.startTimeMs&&(this.Qz=.001*Number(this.clipConfig.startTimeMs));(this.accountLinkingConfig=this.playerResponse.accountLinkingConfig)&&this.accountLinkingConfig.alsParam&&(this.In=this.accountLinkingConfig.alsParam);this.ba("web_player_include_innertube_commands")&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&hI(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}yI(this,
a);a.queue_info&&(this.queueInfo=a.queue_info);var Aka=a.hlsdvr;null!=Aka&&(this.allowLiveDvr=uJ("1"==Aka));this.adQueryId=a.ad_query_id||null;this.adSafetyReason||(this.adSafetyReason=a.encoded_ad_safety_reason||null);this.RB=a.agcid||null;this.Sw=a.ad_id||null;this.Yw=a.ad_sys||null;this.Gx=a.encoded_ad_playback_context||null;this.Yl=R(this.Yl,a.infringe||a.muted);this.authKey=a.authkey;this.ye=a.authuser;this.XB=a.autonav_watch_endpoint||null;this.mutedAutoplay=R(this.mutedAutoplay,a&&a.playmuted)&&
this.ba("embeds_enable_muted_autoplay");this.gq=R(this.gq,a.enable_cardio);this.wt=R(this.wt,a.enable_cardio_before_playback);this.endSeconds=ZC(this.endSeconds,this.Lz||a.end||a.endSeconds);this.Ug=$C(this.Ug,a.itct);this.Oy=R(this.Oy,a.noiba);this.Ry=R(this.Ry,a.is_live_destination);this.isLivePlayback=R(this.isLivePlayback,a.live_playback);a.isUpcoming&&(this.isUpcoming=R(this.isUpcoming,a.isUpcoming));this.he=R(this.he,a.post_live_playback);this.isMdxPlayback=R(this.isMdxPlayback,a.mdx);var SH=
a.mdx_control_mode;SH&&(this.mdxControlMode="number"===typeof SH?SH:g.rd(SH));this.My=R(this.My,a.is_inline_playback_no_ad);this.pj=ZC(this.pj,a.reload_count);this.reloadReason=$C(this.reloadReason,a.reload_reason);this.Vr=R(this.Vr,a.show_content_thumbnail);this.Wy=R(this.Wy,a.utpsa);this.GA=R(this.GA,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.JA=a.tkn||null;var Bka=ZH(a);0<Object.keys(Bka).length&&(this.li=Bka);this.lg=$C(this.lg,a.vvt);this.mdxEnvironment=$C(this.mdxEnvironment,
a.mdx_environment);this.ON=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=$C(this.playlistId,a.list);a.index&&this.ba("embeds_wexit_list_ajax_migration")&&(this.playlistIndex=void 0===this.playlistIndex?ZC(0,a.index):ZC(this.playlistIndex,a.index));this.NG=a.pyv_view_beacon_url;this.QG=a.pyv_quartile25_beacon_url;this.SG=a.pyv_quartile50_beacon_url;this.TG=a.pyv_quartile75_beacon_url;this.PG=a.pyv_quartile100_beacon_url;var Cka=a.remarketing_url;Cka&&(this.remarketingUrl=
Cka);var Dka=a.ppv_remarketing_url;Dka&&(this.ppvRemarketingUrl=Dka);var Eka=a.session_data;!this.jH&&Eka&&(this.jH=Vp(Eka).feature);this.Ly=1==ZC(this.Ly?1:0,a.is_fling);this.vnd=ZC(this.vnd,a.vnd);this.Yn=$C(this.Yn,a.force_ads_url);this.gg=$C(this.gg,a.ctrl);this.nf=$C(this.nf,a.ytr);this.Cj=a.ytrcc;this.lH=a.ytrexp;this.mH=a.ytrext;this.Xo=$C(this.Xo,a.adformat);this.bB=$C(this.bB,a.attrib);this.slotPosition=ZC(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Ur=R(this.Ur,a.ssrt);
this.videoId=bD(a)||this.videoId;this.vi=$C(this.vi,a.vss_credentials_token);this.Gg=$C(this.Gg,a.vss_credentials_token_type);this.tn=R(this.tn,a.audio_only);this.dB=R(this.dB,a.aac_high);this.zl=R(this.zl,a.prefer_low_quality_audio);this.Br=$C(this.Br,a.qoe_cat);this.Vn=R(this.Vn,a.download_media);this.zh=R(this.zh,a.download_media_headlessly);this.Lh=R(this.Lh,a.prefer_gapless);a:{var aX=this.playerResponse;if(aX&&aX.adPlacements)for(var Fka=g.q(aX.adPlacements),bX=Fka.next();!bX.done;bX=Fka.next()){var TH=
bX.value.adPlacementRenderer;if(null!=TH&&"AD_PLACEMENT_KIND_START"==(TH.config&&TH.config.adPlacementConfig&&TH.config.adPlacementConfig.kind)){var Gka=!0;break a}}Gka=!1}Gka&&(this.adModule=!0,this.Of.push("ad"));var Hka=a.adaptive_fmts;Hka&&(this.adaptiveFormats=Hka);var Ika=a.allow_embed;Ika&&(this.allowEmbed="1"==Ika);var Jka=a.backgroundable;Jka&&(this.backgroundable="1"==Jka);var Kka=a.autonav;Kka&&(this.Kh="1"==Kka);var Lka=a.autoplay;Lka&&(this.eh="1"==Lka);var Mka=a.iv_load_policy;Mka&&
(this.annotationsLoadPolicy=YC(this.annotationsLoadPolicy,Mka,sD));var Nka=a.cc_lang_pref;Nka&&(this.captionsLanguagePreference=$C(Nka,this.captionsLanguagePreference));var Oka=a.cc_load_policy;Oka&&(this.zj=YC(this.zj,Oka,sD));var Pka=a.cached_load;Pka&&(this.jx=R(this.jx,Pka));"0"==a.dash&&(this.HC=!0);var Qka=a.dashmpd;Qka&&(this.Og=g.Md(Qka,{cpn:this.clientPlaybackNonce}));var Rka=a.delay;Rka&&(this.yh=g.rd(Rka));var Ska=this.Lz||a.end;void 0!=Ska&&(this.clipEnd=ZC(this.clipEnd,Ska));var Tka=
a.fmt_list;Tka&&(this.Vx=Tka);a.heartbeat_preroll&&this.Of.push("heartbeat");this.lo=-Math.floor(10*Math.random());this.Rq=-Math.floor(40*Math.random());var Uka=a.is_listed;Uka&&(this.isListed=R(this.isListed,Uka));var Vka=a.is_private;Vka&&(this.isPrivate=R(this.isPrivate,Vka));var Wka=a.pipable;Wka&&(this.pipable=R(this.pipable,Wka));this.zA=(this.Zw=this.pipable&&this.Sa.qv)&&(!this.Sa.showMiniplayerButton||this.ba("web_player_pip"));var Xka=a.paid_content_overlay_duration_ms;Xka&&(this.paidContentOverlayDurationMs=
g.rd(Xka));var Yka=a.paid_content_overlay_text;Yka&&(this.paidContentOverlayText=Yka);var Zka=a.url_encoded_fmt_stream_map;Zka&&(this.xs=Zka);var $ka=a.hls_formats;$ka&&(this.hlsFormats=$ka);var ala=a.hlsvp;ala&&(this.hlsvp=ala);var UH=a.length_seconds;UH&&(this.lengthSeconds="string"===typeof UH?g.rd(UH):UH);var VH=a.live_start_walltime;VH&&(this.Cu="number"===typeof VH?VH:g.rd(VH));var WH=a.live_manifest_duration;WH&&(this.vo="number"===typeof WH?WH:g.rd(WH));var bla=a.player_params;bla&&(this.playerParams=
bla);var dla=a.partnerid;dla&&(this.bh=ZC(this.bh,dla));var ela=a.probe_url;ela&&(this.probeUrl=uw(g.Md(ela,{cpn:this.clientPlaybackNonce})));var cX=a.pyv_billable_url;cX&&qw(cX)&&(this.Wo=cX);var dX=a.pyv_conv_url;dX&&qw(dX)&&(this.OG=dX);tI(this,a);0<this.startSeconds||(this.Zk=this.startSeconds=ZC(this.startSeconds,this.Qz||this.Iy||a.start||a.startSeconds));var fla=a.live_utc_start;null!=fla&&(this.liveUtcStartSeconds=Number(fla));var gla=a.utc_start_millis;gla&&(this.liveUtcStartSeconds=.001*
Number(gla));var hla=a.stream_time_start_millis;hla&&(this.kw=.001*Number(hla));var ila=this.Iy||a.start;void 0==ila||"1"==a.resume||this.isLivePlayback||(this.clipStart=ZC(this.clipStart,ila));var jla=a.url_encoded_third_party_media;jla&&(this.mp=Yp(jla));var eX=a.ypc_offer_button_formatted_text;if(eX){var kla=JSON.parse(eX);this.fB=null!=kla?kla:null;this.BI=eX}var lla=a.ypc_offer_button_text;lla&&(this.Gw=lla);var mla=a.ypc_offer_description;mla&&(this.Es=mla);var nla=a.ypc_offer_headline;nla&&
(this.Hw=nla);var ola=a.ypc_full_video_message;ola&&(this.Cs=ola);var pla=a.ypc_offer_id;pla&&(this.Iw=pla);var qla=a.ypc_buy_url;qla&&(this.Cw=qla);var rla=a.ypc_item_thumbnail;rla&&(this.Dw=rla);var sla=a.ypc_item_title;sla&&(this.Ew=sla);var tla=a.ypc_item_url;tla&&(this.Fw=tla);var ula=a.ypc_vid;ula&&(this.Jw=ula);a.ypc_overlay_timeout&&(this.Fs=Number(a.ypc_overlay_timeout));var vla=a.ypc_trailer_player_vars;vla&&(this.Cp=Xp(vla));var wla=a.ypc_original_itct;wla&&(this.KS=wla);this.kg=$C(this.kg,
a.ucid);a.baseUrl&&(this.qd.baseUrl=a.baseUrl);a.uid&&(this.qd.uid=a.uid);a.oeid&&(this.qd.oeid=a.oeid);a.ieid&&(this.qd.ieid=a.ieid);a.ppe&&(this.qd.ppe=a.ppe);a.engaged&&(this.qd.engaged=a.engaged);a.subscribed&&(this.qd.subscribed=a.subscribed);this.qd.focEnabled=R(this.qd.focEnabled,a.focEnabled);this.qd.rmktEnabled=R(this.qd.rmktEnabled,a.rmktEnabled);this.jw=a.storyboard_spec||null;this.Du=a.live_storyboard_spec||null;this.eE=a.iv_endscreen_url||null;this.ru=R(this.ru,a.iv3_module);this.Ds=
R(this.Ds,a.ypc_license_checker_module);this.un=R(this.un,a.ypc_module);this.Bp=R(this.Bp,a.ypc_clickwrap_module);this.un&&this.Of.push("ypc");this.Bp&&this.Of.push("ypc_clickwrap");this.GG={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};uI(this,a);PI(this)?EI(this)&&(this.isLivePlayback&&this.Og?this.Xl=!0:this.Bh&&(this.Mq=!0)):QI(this)?this.Xl=!0:!JI(this,this.adaptiveFormats)&&this.Og&&(this.Xl=!0);var fX=a.adpings;fX&&(this.Vw=fX?Xp(fX):null);var xla=a.feature;xla&&(this.Gr=xla);var yla=a.referrer;yla&&(this.referrer=yla);this.clientScreenNonce=$C(this.clientScreenNonce,
a.csn);this.Or=ZC(this.Or,a.root_ve_type);this.vu=ZC(this.vu,a.kids_age_up_mode);void 0!=a.kids_app_info&&(this.kidsAppInfo=a.kids_app_info);this.ws=R(this.ws,a.upg_content_filter_mode);var zla=a.unplugged_location_info;zla&&(this.ue=zla);var Ala=a.unplugged_partner_opt_out;Ala&&(this.pp=$C("",Ala));this.ot=R(this.ot,a.disable_watch_next);this.Iq=$C(this.Iq,a.internal_ip_override);this.Py=!!a.is_yto_interstitial;(this.interstitials.length||this.Py)&&this.Of.push("yto");var Bla=a.bk;Bla&&(this.bk=
Bla);a.ew&&(this.ew=a.ew)};
g.k.T=function(){return this.Sa};
g.k.ba=function(a){return g.Q(this.Sa.experiments,a)};
g.k.Wx=function(){return It()};
g.k.He=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.NF=function(){this.na()||(this.ra.C||this.ra.unsubscribe("refresh",this.NF,this),this.oC(-1))};
g.k.oC=function(a){if(!this.isLivePlayback||!this.md||"fairplay"!=this.md.flavor){var b=RB(this.ra,this.Yy);if(0<b.length&&(this.V("cuepointupdated",b,a),this.Yy+=b.length,LI(this)&&CI(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Na("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs),"start"===c.event&&(c=c.startSecs,this.Xw.start=this.wh,this.Xw.end=c+3)}}};
g.k.Vs=function(a){var b=this;if(this.na())return Xs();this.lk=this.fh=this.La=null;var c=this.Sa.deviceParams.c;this.ba("disable_rqs")||(this.nk=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||CI(this));return Jla(this,a).then(void 0,function(){return Kla(b,a)}).then(void 0,function(){return Lla(b)}).then(void 0,function(){return Nla(b)})};
g.k.De=function(){var a={};this.Oa&&(a.fmt=this.Oa.Yb(),this.pd&&this.pd.Yb()!=this.Oa.Yb()&&(a.afmt=this.pd.Yb()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Yl&&(a.infringe=1);this.Uj&&(a.splay=1);var b=ZI(this);b&&(a.live=b);this.eh&&(a.autoplay=1);this.Sv&&(a.sdetail=this.Sv);this.bh&&(a.partnerid=this.bh);this.osid&&(a.osid=this.osid);return a};
g.k.tg=function(){var a=g.JD(this.Sa)||this.ba("web_l3_storyboard");if(!this.oh)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.oh=new nI(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ra&&(c=Kb(this.ra.u).index)&&(this.oh=new qI(b.spec,this.ra.isLive,c,a))}else this.jw?this.oh=new nI(this.jw,this.lengthSeconds,void 0,!1,a):this.Du&&this.ra&&(b=Kb(this.ra.u).index)&&
(this.oh=new qI(this.Du,this.ra.isLive,b,a));return this.oh};
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.jw||this.Du};
g.k.Oc=function(){return this.ra&&!isNaN(this.ra.Oc())?this.ra.Oc():LI(this)?0:this.lengthSeconds};
g.k.Kc=function(){return this.ra&&!isNaN(this.ra.Kc())?this.ra.Kc():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.ra&&this.Oa){var b=this.ra.u[this.Oa.id];if(!b)return null;var c=b.index.Gh(a);b=b.index.Xe(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.na()&&!(!this.videoId&&!this.mp)};
g.k.Uc=function(){return bJ(this)&&!this.Xl&&!this.Mq};
g.k.ne=function(a){if(30==this.bh)return(a=this.li["default.jpg"])?a:this.videoId?g.Md("//docs.google.com/vt",{id:this.videoId,authuser:this.ye,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.li[a];return b||this.Sa.R||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:ED(this.Sa,this.videoId,a)};
g.k.Wg=function(){return this.isLivePlayback||this.he||this.Lq||!(!this.liveUtcStartSeconds||!this.vo)};
g.k.isOtf=function(){return!!this.ra&&(this.ra.isOtf||!this.he&&!this.isLivePlayback&&this.ra.C)};
g.k.getAvailableAudioTracks=function(){return this.La?0<this.La.getAvailableAudioTracks().length?this.La.getAvailableAudioTracks():this.ku||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.pd&&!ix(this.pd))return g.fb(this.getAvailableAudioTracks(),function(d){return d.id==a.pd.id})||this.bq;
if(this.ku){if(!this.Qr)for(var b=g.q(this.ku),c=b.next();!c.done;c=b.next())if(c=c.value,c.u.getIsDefault()){this.Qr=c;break}return this.Qr||this.bq}return this.bq};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.Ma=function(){return this};
g.k.Sk=function(){return this.Sa.getVideoUrl(this.videoId)};
g.k.Vj=function(){return!!this.ra&&this.ra.Vj()};
g.k.Wj=function(){return!!this.ra&&this.ra.Wj()};
g.k.Pj=function(){return!!this.ra&&this.ra.Pj()};
g.k.mo=function(){return!!this.ra&&this.ra.mo()};
g.k.isAd=function(){return!!this.adFormat};
g.k.uf=function(){return this.oauthToken||this.Sa.sf};
g.k.VD=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.zH=function(){return this.ru};
g.k.xA=function(){return this.Ds||this.Ge};
g.k.Tr=function(){return this.un||this.Ge};
g.k.ax=function(){return FI(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.md&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.md.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.md.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.md.flavor&&this.playerResponse.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};
g.k.Na=function(a,b){this.V("ctmp",a,b)};wJ.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.xa("updateKevlarOrC3Companion",b)};yJ.prototype.Kq=function(){return!1};
yJ.prototype.ha=function(){return function(){return null}};var AJ=null;g.u(zJ,g.O);zJ.prototype.oq=function(a){return this.u.hasOwnProperty(a)?this.u[a].oq():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return BJ().oq(a)},void 0);
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=BJ();c=Sla(c);null!==c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);g.u(EJ,yJ);g.k=EJ.prototype;g.k.Jf=function(){return!0};
g.k.bf=function(){return!1};
g.k.isSkippable=function(){return null!=this.Aa};
g.k.getVideoUrl=function(){return this.aa};
g.k.Kq=function(){return!0};g.u(HJ,yJ);HJ.prototype.Jf=function(){return!0};
HJ.prototype.bf=function(){return!0};g.u(OJ,yJ);OJ.prototype.Jf=function(){return!0};
OJ.prototype.bf=function(){return!1};
OJ.prototype.Kq=function(){return!0};
OJ.prototype.ha=function(){return function(){return g.se("video-ads")}};PJ.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.u.u};var Jqa={WS:"FINAL",iT:"AD_BREAK_LENGTH",jT:"AD_CPN",kT:"AH",lT:"AD_MT",mT:"ASR",oT:"AW",lU:"NM",mU:"NX",nU:"NY",sU:"CONN",DU:"CPN",rW:"DV_VIEWABILITY",GW:"ERRORCODE",JW:"ERROR_MSG",LW:"EI",oX:"GOOGLE_VIEWABILITY",JX:"IAS_VIEWABILITY",AY:"LACT",OY:"LIVE_TARGETING_CONTEXT",YY:"I_X",ZY:"I_Y",v_:"MT",A_:"MIDROLL_POS",B_:"MIDROLL_POS_MS",D_:"MOAT_INIT",E_:"MOAT_VIEWABILITY",r1:"P_H",t1:"PV_H",u1:"PV_W",v1:"P_W",A1:"TRIGGER_TYPE",j2:"SDKV",S2:"SLOT_POS",j3:"SURVEY_LOCAL_TIME_EPOCH_S",h3:"SURVEY_ELAPSED_MS",
lJ:"VIS",m4:"VIEWABILITY",n4:"VED",s4:"VOL",v4:"WT",P4:"YT_ERROR_CODE"};var dma=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];ZJ.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.en(a.baseUrl,bma(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.uf();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.pu(e,void 0,d,f)}catch(p){}};g.u($J,ZJ);$J.prototype.uf=function(){return this.u?this.u.uf():""};
$J.prototype.B=function(){return this.u?this.u.T().pageId:""};aK.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=dn(e);a=[];eq(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(bK,g.C);g.u(iK,g.C);g.u(HK,g.O);g.k=HK.prototype;g.k.oq=function(){return{}};
g.k.iA=function(){};
g.k.ac=function(a){this.uh();this.V(a)};
g.k.uh=function(){KK(this,this.aa,3);this.aa=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.Vk=function(){var a=this.Ia;jK(a)||!wK(a,"impression")&&!wK(a,"start")||wK(a,"abandon")||wK(a,"complete")||wK(a,"skip")||(lK(a)?vK(a,"pause"):pK(a,"pause"))};
g.k.Nj=function(){this.X||this.F||this.bd()};
g.k.Ye=function(){qK(this.Ia,this.getDuration())};
g.k.oe=function(){var a=this.Ia;!wK(a,"impression")||wK(a,"skip")||wK(a,"complete")||vK(a,"abandon")};
g.k.Wk=function(){var a=this.Ia;lK(a)?pK(a,"skip"):!wK(a,"impression")||wK(a,"abandon")||wK(a,"complete")||pK(a,"skip")};
g.k.bd=function(){if(!this.F){var a=IK(this);this.Ia.C.AD_CPN=a;a=this.Ia;if(lK(a)){var b=a.u.getCurrentTime(2,!1);tK(a,"impression",b,0)}else pK(a,"impression");pK(a,"start");jK(a)||a.u.isFullscreen()&&vK(a,"fullscreen");this.F=!0}};
g.k.Wd=function(a){a=a||"";var b="",c="",d="";cK(this.J)&&(b=g.uK(this.J,2).state,this.J.Zc()&&(c=this.J.Zc().yg(),null!=this.J.Zc().Sh()&&(d=this.J.Zc().Sh())));var e=this.Ia;e.C=YJ(e.C,WJ(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));pK(e,"error")};
g.k.If=function(){};
g.k.UG=function(){this.V("adactiveviewmeasurable")};
g.k.VG=function(){this.V("adfullyviewableaudiblehalfdurationimpression")};
g.k.WG=function(){this.V("adoverlaymeasurableimpression")};
g.k.XG=function(){this.V("adoverlayunviewableimpression")};
g.k.YG=function(){this.V("adoverlayviewableendofsessionimpression")};
g.k.ZG=function(){this.V("adoverlayviewableimmediateimpression")};
g.k.aH=function(){this.V("adviewableimpression")};
g.k.dispose=function(){this.na()||(this.uh(),this.B.unsubscribe("adactiveviewmeasurable",this.UG,this),this.B.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.VG,this),this.B.unsubscribe("adoverlaymeasurableimpression",this.WG,this),this.B.unsubscribe("adoverlayunviewableimpression",this.XG,this),this.B.unsubscribe("adoverlayviewableendofsessionimpression",this.YG,this),this.B.unsubscribe("adoverlayviewableimmediateimpression",this.ZG,this),this.B.unsubscribe("adviewableimpression",
this.aH,this),delete this.B.u[this.ad.K],g.O.prototype.dispose.call(this))};
g.k.NC=function(){return""};g.u(NK,HK);NK.prototype.ca=function(){this.D&&(this.J.removeEventListener("videodatachange",this.D),this.D=null);this.u&&(this.J.removeEventListener("onAdStart",this.u),this.u=null);HK.prototype.ca.call(this)};g.u(QK,yJ);QK.prototype.Jf=function(){return!1};
QK.prototype.bf=function(){return!0};g.u(RK,BK);g.u(SK,NK);SK.prototype.je=function(){var a=this,b=this.J.getVideoData(2),c=this.I.renderer;PK(this)||(b&&(c&&c.adVideoId||b.lf&&TK(this,b))?this.Jl():(this.C=function(d,e,f){e&&2==f&&TK(a,e)&&e.lf&&(a.C&&(a.J.removeEventListener("videodatachange",a.C),a.C=null),a.Jl())},this.J.addEventListener("videodatachange",this.C)))};
SK.prototype.Jl=function(){LK(this,[this.I])};
SK.prototype.If=function(a){yK(this.Ia,a)};
SK.prototype.ca=function(){this.C&&(this.J.removeEventListener("videodatachange",this.C),this.C=null);NK.prototype.ca.call(this)};g.u(UK,yJ);UK.prototype.Jf=function(){return!0};
UK.prototype.bf=function(){return!1};g.u(VK,BK);g.u(WK,HK);g.k=WK.prototype;g.k.je=function(){0<this.u&&this.bd()};
g.k.bd=function(){var a=this;this.Za=new g.F(function(){a.Ye();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.ac("adended")},this.u,this);
g.D(this,this.Za);this.Za.start();LK(this,[new VK(this.C.u,this.macros)]);HK.prototype.bd.call(this)};
g.k.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
g.k.Ye=function(){HK.prototype.Ye.call(this)};
g.k.ac=function(a){this.Za&&this.Za.stop();HK.prototype.ac.call(this,a)};g.u(XK,BK);g.u(YK,HK);YK.prototype.je=function(){this.bd()};
YK.prototype.bd=function(){HK.prototype.bd.call(this);if(g.Q(this.J.T().experiments,"self_podding_force_opt_in")){var a=this.u.u.forceSelfPodOptInCommand;a&&this.C.executeCommand(a,this.macros)}else LK(this,[new XK(this.u.u,this.macros)])};
YK.prototype.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
YK.prototype.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};g.u(ZK,yJ);ZK.prototype.Jf=function(){return!0};
ZK.prototype.bf=function(){return!1};g.u($K,yJ);$K.prototype.Jf=function(){return!0};
$K.prototype.bf=function(){return!1};g.u(aL,yJ);aL.prototype.Jf=function(){return!1};
aL.prototype.bf=function(){return!0};g.u(bL,yJ);bL.prototype.Jf=function(){return!0};
bL.prototype.bf=function(){return!0};g.u(cL,yJ);cL.prototype.Jf=function(){return!0};
cL.prototype.bf=function(){return!1};g.u(dL,yJ);dL.prototype.Jf=function(){return!1};
dL.prototype.bf=function(){return!0};g.u(eL,yJ);eL.prototype.Jf=function(){return!0};
eL.prototype.bf=function(){return!1};g.u(fL,yJ);fL.prototype.Jf=function(){return!0};
fL.prototype.bf=function(){return!1};gL.prototype.create=function(a,b,c){return a instanceof EJ?this.fa.create(a,b):a instanceof bL?this.K.create(a,b):a instanceof dL?this.P.create(a,b,c):a instanceof OJ?this.X.create(a,b):a instanceof UK?this.B.create(a,b):a instanceof cL?this.R.create(a,b):a instanceof QK?this.u.create(a,b,c):a instanceof fL?this.aa.create(a,b):a instanceof eL?this.Y.create(a,b):a instanceof HJ?this.C.create(a,b):a instanceof $K?this.F.create(a,b):a instanceof ZK?this.D.create(a,b):a instanceof aL?this.I.create(a,
b):null};g.u(hL,HK);g.k=hL.prototype;g.k.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
g.k.Vk=function(){HK.prototype.Vk.call(this);this.V("adpause",2)};
g.k.Nj=function(){HK.prototype.Nj.call(this);this.V("adplay",1)};
g.k.bd=function(){HK.prototype.bd.call(this);this.u.stop();this.C.N(this.J,g.hF("bltplayback"),this.sN);var a=new g.eF(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.zN(this.J,[a],2);this.V("adplay",1)};
g.k.Ye=function(){HK.prototype.Ye.call(this);this.ac("adended")};
g.k.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};
g.k.je=function(){gK(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.xa("onAdIntroStateChange",1)};
g.k.ac=function(a){this.u.stop();gK(this.J,!0);"adabandoned"!=a&&this.J.xa("onAdComplete");this.J.xa("onAdEnd");this.V(a);this.J.xa("onAdIntroStateChange",0)};
g.k.sN=function(a){"bltcompletion"==a.getId()&&(g.WT(this.J,"bltplayback",2),qK(this.Ia,this.getDuration()))};g.u(iL,BK);g.u(jL,HK);g.k=jL.prototype;
g.k.je=function(){if(this.I)for(var a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.B={slotId:OQ(b.Ua.get(),"SLOT_TYPE_IN_PLAYER"),ab:"SLOT_TYPE_IN_PLAYER",feedPosition:1,hc:void 0,Me:[],Af:[],bb:"surface",va:new OP([])};var c=b.C(),d=b.B;kL(c.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);c=g.q(c.B);for(var e=c.next();!e.done;e=c.next())e.value.Ag(d);d=b.C();b=b.B;d=g.q(d.B);for(c=d.next();!c.done;c=d.next())c.value.bi(b)}0>=this.K&&(M(Error("durationMs was specified incorrectly with a value of: "+this.K)),
this.Ye());this.bd();this.J.addEventListener("progresssync",this.P)};
g.k.oe=function(){HK.prototype.oe.call(this);this.ac("adabandonedreset")};
g.k.bd=function(){var a=this.J.T();HK.prototype.bd.call(this);this.u=Math.floor(this.J.getCurrentTime());this.D=this.u+this.K/1E3;g.wD(a)?this.J.xa("onAdMessageChange",{renderer:this.C.u,startTimeSecs:this.u}):LK(this,[new iL(this.C.u)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Rt(),c=g.Q(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs;b&&g.Nq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.D,
timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)});if(this.I)for(this.R=!0,a=g.q(this.I.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.B)if(b.u)S("Received AdNotify started event before another one exited");else{b.u=b.B;c=b.C();b=b.u;kL(c.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.cf(b)}else S("Received AdNotify started event without start requested event");g.U(g.uK(this.J,1),512)&&
(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Rt(),c=g.Q(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs,b&&g.Nq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.D,timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)}),this.Ye())};
g.k.Ye=function(){HK.prototype.Ye.call(this);this.ac("adended")};
g.k.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.J.removeEventListener("progresssync",this.P);this.uh();this.V(a);lL(this)};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.P);lL(this);HK.prototype.dispose.call(this)};
g.k.uh=function(){g.wD(this.J.T())?this.J.xa("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):HK.prototype.uh.call(this)};g.u(mL,BK);g.u(nL,HK);nL.prototype.je=function(){LK(this,[new mL(this.ad.u,this.macros)])};
nL.prototype.If=function(a){yK(this.Ia,a)};g.u(oL,BK);g.u(pL,HK);pL.prototype.je=function(){var a=new oL(this.u.u,this.macros);LK(this,[a])};g.u(qL,BK);g.u(rL,HK);rL.prototype.je=function(){this.bd()};
rL.prototype.bd=function(){LK(this,[new qL(this.u.u,this.macros)]);HK.prototype.bd.call(this)};
rL.prototype.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};g.u(sL,BK);yL.prototype.sendAdsPing=function(a){this.F.send(a,CL(this),{})};g.u(EL,BK);g.u(FL,NK);FL.prototype.je=function(){PK(this)||this.Jl()};
FL.prototype.Jl=function(){LK(this,[this.C])};
FL.prototype.If=function(a){yK(this.Ia,a)};g.u(HL,g.O);HL.prototype.getProgressState=function(){return this.C};
HL.prototype.start=function(){this.D=Date.now();GL(this,{current:this.u/1E3,duration:this.B/1E3});this.Za.start()};
HL.prototype.stop=function(){this.Za.stop()};g.u(IL,BK);g.u(JL,HK);g.k=JL.prototype;g.k.je=function(){this.bd()};
g.k.bd=function(){var a=this.D.u;g.wD(this.J.T())?(a=pma(this.I,a),this.J.xa("onAdInfoChange",a),this.K=Date.now(),this.u&&this.u.start()):LK(this,[new IL(a)]);HK.prototype.bd.call(this)};
g.k.getDuration=function(){return this.D.B};
g.k.Vk=function(){HK.prototype.Vk.call(this);this.u&&this.u.stop()};
g.k.Nj=function(){HK.prototype.Nj.call(this);this.u&&this.u.start()};
g.k.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
g.k.Wk=function(){HK.prototype.Wk.call(this);this.ac("adended")};
g.k.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.uh();this.V(a)};
g.k.If=function(a){switch(a){case "skip-button":this.Wk();break;case "survey-submit":this.ac("adended")}};
g.k.uh=function(){g.wD(this.J.T())?(this.u&&this.u.stop(),this.J.xa("onAdInfoChange",null)):HK.prototype.uh.call(this)};g.u(KL,BK);g.u(LL,HK);LL.prototype.je=function(){this.bd()};
LL.prototype.bd=function(){LK(this,[new KL(this.u.u,this.macros)]);HK.prototype.bd.call(this)};
LL.prototype.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
LL.prototype.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};g.u(ML,BK);g.u(NL,HK);g.k=NL.prototype;g.k.je=function(){0<this.u&&this.bd()};
g.k.bd=function(){this.Za=new g.F(this.Ye,this.u,this);g.D(this,this.Za);this.Za.start();LK(this,[new ML(this.C.u)]);HK.prototype.bd.call(this)};
g.k.Ye=function(){HK.prototype.Ye.call(this);this.ac("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.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
g.k.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.Za&&this.Za.stop();HK.prototype.ac.call(this,a)};g.u(SL,BK);g.u(TL,BK);g.u(UL,BK);g.u(VL,BK);g.u(WL,BK);g.u(XL,BK);g.u(YL,HK);g.k=YL.prototype;g.k.oq=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.u.B,isPlaying:dK(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.je=function(){if(this.u.X)MK(this),this.ac("aderror");else{var a=this.u.u.legacyInfoCardVastExtension,b=this.u.C;a&&b&&this.J.T().K.add(b,{Up:a});try{var c=this.u.u.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&Ve(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.Hs(d)}gK(this.J,!1);a=FJ(this.u);b=this.J.T();g.Q(this.J.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.u||g.wD(b)||g.JD(b)?3:1);c=this.J.getVideoData(1);c.gg&&(a.ctrl=c.gg);c.nf&&(a.ytr=c.nf);c.Cj&&(a.ytrcc=
c.Cj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gg&&(a.vss_credentials_token_type=c.Gg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.ma&&this.V("adunstarted",-1);!lR(this.K)&&g.wD(b)&&(b=eM(this),b=lma(this.ia,b,this.u.u.adNextParams||""),b.attributionInfo=xL(this.u.D,this.u.C||""),this.J.xa("onAdInfoChange",b));this.daiEnabled?this.D.start():(this.J.cueVideoByPlayerVars(a,2),this.D.start(),this.J.playVideo(2))}};
g.k.Vk=function(){HK.prototype.Vk.call(this);this.V("adpause",2)};
g.k.Nj=function(){HK.prototype.Nj.call(this);this.V("adplay",1)};
g.k.bd=function(){HK.prototype.bd.call(this);this.D.stop();this.fa.N(this.J,g.hF("bltplayback"),this.tN);var a=new g.eF(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.zN(this.J,[a],2);a=bM(this);this.C.Ja=a;if(!lR(this.K)){a=[];var b=this.J.T(),c=this.J.getVideoData(2);if(KD(b)||g.wD(b)){var d;(d=c&&c.isListed?{channelId:c.kg,channelThumbnailUrl:c.lf||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.J.xa("onAdMetadataAvailable",d)}g.wD(b)||(!g.JD(b)||(g.Q(this.J.T().experiments,"enable_upg_processed_dvr_dai")?this.daiEnabled:this.C.u.getVideoData(1).Wg())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.C&&(b=c.title,d=c.author,c=c.lf,b&&d&&c?c=[new TL(b),new SL(c),new UL(d)]:(g.Is(new g.tr("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),LK(this,c)),a.push(xL(this.u.D,this.u.C||"")),c=this.u.I,null==c?c=null:(b={},c.urlEndpoint&&
(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new XL({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!GJ(this.u)&&(c=eM(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=cM(this)),a.push(new WL(c)))),c=eM(this),a.push(new VL(c)),LK(this,a))}this.J.isMuted()&&(a=this.Ia,c=this.J.isMuted(),lK(a)||pK(a,c?"mute":"unmute"));this.V("adplay",1);if(null!==this.I){a=null!==this.C.u.getVideoData(1)?this.C.u.getVideoData(1).clientPlaybackNonce:
"";c=ZL(this);b=this.u;d=qma(this);for(var e=g.q(this.I.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=c,l=b,m=d;if(f.u)S(f.u.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var n=OQ(f.Ua.get(),"SLOT_TYPE_PLAYER_BYTES");f.B={slotId:n,ab:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,hc:void 0,Me:[],Af:[],bb:"surface",va:new OP([])};var p=[],r=l.C||"";r&&p.push(new CG(r));(r=(r=l.u)&&r.playerOverlay&&r.playerOverlay.instreamAdPlayerOverlayRenderer)&&
p.push(new EG(r));l.u.adNextParams&&p.push(new tG(l.u.adNextParams||""));(r=l.I)&&p.push(new uG(r));(r=pG(f.Da.get(),2))?(p.push(new yG({channelId:r.kg,channelThumbnailUrl:r.lf,channelTitle:r.author,videoTitle:r.title})),p.push(new zG(r.isListed))):S("Expected meaningful PlaybackData on ad started.");p.push(new BG(l.D));p.push(new OG(l.B));p.push(new DG(a));p.push(new LG({current:this}));r=l.Ub;null!=r.kind&&p.push(new AG(r));(l=l.Y)&&p.push(new aH(l));void 0!==m&&p.push(new bH(m));f.u={layoutId:h,
layoutType:"LAYOUT_TYPE_MEDIA",kd:new Map,ae:[],wd:[],ud:[],be:[],bb:"surface",va:new OP(p),td:ppa(RP(f.gb.get()),n,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,h,"LAYOUT_TYPE_MEDIA","surface")};eQ(f.C(),f.B,f.u);fQ(f.C(),f.B,f.u)}}this.P=!0}this.J.xa("onAdStart",bM(this));a=this.ha;c=this.u.C||"";(b=a.B.dc())&&b.getVideoData().videoId===c?a.u=b.Yf(1):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.tN=function(a){"bltcompletion"==a.getId()&&(g.WT(this.J,"bltplayback",2),qK(this.Ia,this.getDuration()),aM(this,"adended"))};
g.k.Ye=function(){HK.prototype.Ye.call(this);this.ac("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.oe=function(){HK.prototype.oe.call(this);this.ac("adabandoned")};
g.k.dA=function(){var a=this.Ia;jK(a)||vK(a,"clickthrough")};
g.k.pG=function(){this.Wk()};
g.k.Wk=function(){HK.prototype.Wk.call(this);this.ac("adended")};
g.k.Wd=function(a){HK.prototype.Wd.call(this,a);this.ac("aderror")};
g.k.ac=function(a){this.D.stop();lR(this.K)||this.uh();gK(this.J,!0);"adabandoned"!=a&&this.J.xa("onAdComplete");aM(this,a);this.J.xa("onAdEnd",bM(this));this.V(a)};
g.k.uh=function(){var a=this.J.T();g.wD(a)&&(g.JD(a)||g.Q(a.experiments,"enable_topsoil_wta_for_halftime")||g.wD(a))?this.J.xa("onAdInfoChange",null):HK.prototype.uh.call(this)};
g.k.iA=function(){this.dE&&this.J.playVideo()};
g.k.dE=function(){return 2==this.J.getPlayerState(2)};
g.k.If=function(a){if(!lR(this.K)){var b=this.Ia;if(cK(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.R||this.iA();break;case "ad-info-icon-button":(this.R=this.dE())||this.J.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.J.T().protocol+"://"+g.CD(this.J.T())+"/channel/"+this.u.fa;g.RL(a);break;case "ad-title":this.J.pauseVideo();g.RL(this.J.getVideoUrl());break;case "visit-advertiser":this.J.pauseVideo();if(g.JD(this.J.T())&&(a=this.u.I)){b=this.Ia;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&sK(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.RL(a.urlEndpoint.url)}a=this.Ia;jK(a)||
vK(a,"clickthrough");break;case "skip-button":this.Wk()}}};
g.k.NC=function(a,b){if(this.u.X)return MK(this),this.ac("aderror"),"";if(!Number.isFinite(a))return g.Hs(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Hs(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.B,d=FJ(this.u);d=QAa(this.J.app,d,c,a,b);a+c>b&&RAa(this.J.app,d,b-a);return d};
g.k.dispose=function(){dK(this.J)&&!this.daiEnabled&&this.J.stopVideo(2);aM(this,"adabandoned");HK.prototype.dispose.call(this)};fM.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={Sn:null,nE:-Infinity},b=this.u[b]=c);c=a.startSecs+a.u/1E3;if(!(c<b.nE)){b.nE=c;if(b.Sn){if(c<b.Sn.end){a:{c=b.Sn;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.Sn.end=a,this.B.MF(a));return}if(this.C)b.Sn=
null;else return}if(a=sma(a,this.D))c=a.hL,b.Sn=a.PJ,this.B.VF(c)}};
fM.prototype.updateTime=function(){};g.u(iM,yJ);g.u(jM,iM);jM.prototype.Jf=function(){return!1};
jM.prototype.bf=function(){return!0};
jM.prototype.B=function(){var a=new vJ;a.imageCompanionAdRenderer=this.u;return a};rM.prototype.reset=function(){return new rM(this.J)};var PCa=UU&&4>tJ?.1:0,Zra=new yM;g.k=yM.prototype;g.k.Gs=null;g.k.getDuration=function(){return this.duration||0};
g.k.getCurrentTime=function(){return this.currentTime||0};
g.k.fi=function(){this.src&&(or&&0<this.readyState&&(this.currentTime=Math.max(PCa,0)),this.removeAttribute("src"),this.load(),this.Gs&&this.Gs.B&&(this.Gs&&this.Gs.dispose(),this.Gs=null))};
g.k.CJ=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};var a2={},b2=(a2.BUFFERING="buffering-mode",a2.CUED="cued-mode",a2.ENDED="ended-mode",a2.PAUSED="paused-mode",a2.PLAYING="playing-mode",a2.SEEKING="seeking-mode",a2.UNSTARTED="unstarted-mode",a2);var QCa,c2,Ama;
QCa={AT:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",HT:"AUTHENTICATION_MALFORMED",IT:"AUTHENTICATION_MISSING",QT:"BAD_REQUEST",aU:"CAST_SESSION_DEVICE_MISMATCHED",bU:"CAST_SESSION_VIDEO_MISMATCHED",cU:"CAST_TOKEN_EXPIRED",dU:"CAST_TOKEN_FAILED",eU:"CAST_TOKEN_MALFORMED",fU:"CGI_PARAMS_MALFORMED",gU:"CGI_PARAMS_MISSING",gW:"DEVICE_FALLBACK",HW:"GENERIC_WITH_LINK_AND_CPN",IW:"LICENSE",KW:"VIDEO_UNAVAILABLE",VW:"FORMAT_UNAVAILABLE",jX:"GEO_FAILURE",EX:"HTML5_AUDIO_RENDERER_ERROR",FX:"GENERIC_WITHOUT_LINK",
GX:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",HX:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",IX:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",UX:"INVALID_DRM_MESSAGE",K1:"PURCHASE_NOT_FOUND",L1:"PURCHASE_REFUNDED",U1:"RENTAL_EXPIRED",Z1:"RETRYABLE_ERROR",r2:"SERVER_ERROR",X2:"STOPPED_BY_ANOTHER_PLAYBACK",Z2:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",b3:"STREAMING_NOT_ALLOWED",d3:"STREAM_LICENSE_NOT_FOUND",u3:"TOO_MANY_REQUESTS",v3:"TOO_MANY_REQUESTS_WITH_LINK",w3:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
x3:"TOO_MANY_STREAMS_PER_USER",U3:"UNSUPPORTED_DEVICE",h4:"VIDEO_FORBIDDEN",k4:"VIDEO_NOT_FOUND"};c2={};
g.HU=(c2.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",c2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",c2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",c2.LICENSE="Sorry, there was an error licensing this video.",c2.VIDEO_UNAVAILABLE=
"Video unavailable",c2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",c2.GEO_FAILURE="This video isn't available in your country.",c2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",c2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",c2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",c2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
c2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",c2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",c2.PURCHASE_NOT_FOUND="This video requires payment.",c2.PURCHASE_REFUNDED="This video's purchase has been refunded.",c2.RENTAL_EXPIRED="This video's rental has expired.",c2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",c2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
c2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",c2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",c2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",c2.SERVER_ERROR="There was an internal server error. Please try again later.",c2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",c2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
c2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",c2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",c2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",c2.TOO_MANY_REQUESTS="Please log in to watch this video.",c2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",c2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
c2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",c2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",c2.VIDEO_FORBIDDEN="Access to this video is forbidden.",c2.VIDEO_NOT_FOUND="This video can not be found.",c2);
Ama={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.AM.prototype;g.k.getData=function(){return this.stateData};
g.k.Hb=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(MM,g.O);g.k=MM.prototype;g.k.Xi=function(){var a=this.u;return a.B instanceof EJ||a.B instanceof OJ||a.B instanceof IJ||a.B instanceof HJ};
g.k.jr=function(){return this.u.B.bf()};
g.k.ir=function(){return this.u.u};
g.k.kr=function(){return RJ(this.u)};
g.k.uz=function(){return QJ(this.u)};
g.k.vy=function(a){this.daiEnabled&&!g.Q(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&S("AdPlacementCoordinator handled cue range enter",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});if(!tH(a)){this.X&&(this.ha=this.J.isAtLiveHead(),this.fa=Math.ceil(g.A()/1E3));var b=new kM(this.Xc);a=lM(a);nM(b,a)}this.daiEnabled&&g.Q(this.J.T().experiments,"html5_dai_debug_bulleit_cue_range")||this.Tm()};
g.k.no=function(){return this.Jy()||this.Ty()||this.F instanceof iM||this.F instanceof aL};
g.k.Jy=function(){return this.F instanceof QK};
g.k.pu=function(){return this.F instanceof jM};
g.k.Ty=function(){return this.F instanceof dL};
g.k.YD=function(){return!this.no()};
g.k.Ny=function(){return this.bl()||this.lr()};
g.k.lr=function(){return this.F instanceof OJ};
g.k.bl=function(){return this.F instanceof EJ};
g.k.Tm=function(){this.daiEnabled&&!g.Q(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&S("AdPlacementCoordinator started",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});zna(this.Xc,this);if(!this.u.I.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.u.Y),b=a.next();!b.done;b=a.next())OM(b.value);this.u.I.ad_placement_start=!0}uM(this.K);this.DG()};
g.k.DG=function(){this.F?this.je(this.F):this.Ik()};
g.k.Um=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;AN(this.Xc,0);this.Ik(a,b)};
g.k.AF=function(){this.Um()};
g.k.RN=function(){pK(this.B.Ia,"active_view_measurable")};
g.k.SN=function(){var a=this.B.Ia;jK(a)||zK(a)||pK(a,"active_view_fully_viewable_audible_half_duration")};
g.k.VN=function(){};
g.k.WN=function(){};
g.k.XN=function(){};
g.k.YN=function(){};
g.k.bO=function(){var a=this.B.Ia;jK(a)||zK(a)||pK(a,"active_view_viewable")};
g.k.ZC=function(){return this.bl()?[this.Ut()]:[]};
g.k.lc=function(a){this.daiEnabled&&!g.Q(this.J.T().experiments,"html5_dai_debug_logging_killswitch")&&S("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.Y,oldState:LM(a.hk.state),state:LM(a.state.state)});if(null!==this.B){this.Y||(a=new g.EK(a.state,new g.AM),this.Y=!0);var b=a.state;if(g.GK(a,2))wM(this.K),this.B.Ye();
else{var c=a;(g.Q(this.J.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.Hb()&&!c.hk.Hb():c.state.Hb())?(xM(this.K),this.B.Nj()):b.isError()?this.B.Wd(b.getData().errorCode):g.GK(a,4)&&(this.aa||this.B.Vk())}if(null!==this.B){if(g.GK(a,16)&&(b=this.B.Ia,!(jK(b)||.5>b.u.getCurrentTime(2,!1)&&!g.Q(b.u.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.B;if(c.Kq()){var d=g.Q(b.R.u.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");Al(c.K,d)}b.B.R.seek=
!0}0>FK(a,4)&&!(0>FK(a,2))&&(b=this.B.Ia,jK(b)||(lK(b)?vK(b,"resume"):pK(b,"resume")));!g.Q(this.J.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.GK(a,512)&&!g.IM(a.state)&&vM(this.K)}}};
g.k.Ra=function(){if(!this.daiEnabled)return!1;g.Q(this.J.T().experiments,"html5_dai_debug_logging_killswitch")||S("AdPlacementCoordinator handled video data change",void 0,void 0,{adCpn:(this.J.getVideoData(2)||{}).clientPlaybackNonce,contentCpn:(this.J.getVideoData(1)||{}).clientPlaybackNonce});return NM(this)};
g.k.hn=function(){};
g.k.resume=function(){this.B&&this.B.iA()};
g.k.Jk=function(){this.B&&this.B.ac("adended")};
g.k.Ii=function(){this.Jk()};
g.k.fF=function(a){var b=this.Xc;b.C&&g.Q(b.u.T().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.u.xa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.B.If(a)};
g.k.WC=function(){return 0};
g.k.YC=function(){return 1};
g.k.qw=function(a){this.daiEnabled&&this.u.R&&this.u.u.start<=a&&a<SM(this)&&zra(this.J,a,this.u.u.end)};
g.k.je=function(a){g.fg(this.B);this.B=a=this.zk.create(a,XJ(VJ(this.u)),this.u.u.u);a.subscribe("adabandoned",g.Ta(this.Um,!0),this);a.subscribe("adabandonedreset",g.Ta(this.Um,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.RN,this);a.subscribe("adended",this.Um,this);a.subscribe("aderror",this.AF,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.SN,this);a.subscribe("adoverlaymeasurableimpression",this.VN,this);a.subscribe("adoverlayunviewableimpression",this.WN,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.XN,this);a.subscribe("adoverlayviewableimmediateimpression",this.YN,this);a.subscribe("adpause",this.wy,this);a.subscribe("adplay",this.wy,this);a.subscribe("adunstarted",this.wy,this);a.subscribe("onAdUxUpdate",this.fF,this);a.subscribe("adviewableimpression",this.bO,this);JK(a);PM(this,!1)};
g.k.Ik=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.aa=!0;g.fg(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.I.hasOwnProperty("ad_placement_end")){c=g.q(this.u.X);for(var d=c.next();!d.done;d=c.next())OM(d.value);this.u.I.ad_placement_end=!0}c=this.u.F;null!==c&&(qM(this.xh,{cueIdentifier:this.u.C&&this.u.C.identifier,driftRecoveryMs:c,CG:this.u.u.start,pE:SM(this)}),this.u.F=null);b||this.daiEnabled?wN(this.Xc,
!0):this.X&&this.uz()&&this.bl()?wN(this.Xc,!1,Ema(this)):wN(this.Xc,!1);PM(this,!0)};
g.k.wy=function(a){AN(this.Xc,a)};
g.k.Ut=function(){return this.F};
g.k.isLiveStream=function(){return this.X};
g.k.reset=function(){return new MM(this.Xc,this.J,this.K.reset(),this.u,this.xh,this.Tn,this.zk,this.daiEnabled)};
g.k.ca=function(){g.fg(this.B);this.B=null;g.O.prototype.ca.call(this)};UM.prototype.create=function(a){return(a.B instanceof IJ?this.D:a.B instanceof iM?this.C:""===a.K?this.u:this.B)(a)};VM.prototype.clickCommand=function(a){var b=g.Rt();if(!a.clickTrackingParams||!b)return!1;$t(this.client,b,g.Lt(a.clickTrackingParams),void 0);return!0};g.u($M,g.O);g.k=$M.prototype;g.k.ir=function(){return this.u.u};
g.k.kr=function(){return RJ(this.u)};
g.k.uz=function(){return QJ(this.u)};
g.k.Xi=function(){return!1};
g.k.Ny=function(){return!1};
g.k.no=function(){return!1};
g.k.Jy=function(){return!1};
g.k.pu=function(){return!1};
g.k.Ty=function(){return!1};
g.k.jr=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.vy=function(a){var b=this;if(1!==this.u.D&&2!==this.u.D){var c=[];this.kr()||(c=lM(a));this.u.D=1;Am(this.I.fetch(this.u.K,{Zp:this.u.C||void 0,Kd:this.u.u}).then(function(d){if(!b.na()){var e=c;g.Q(b.C.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.C.isFullscreen();var f=null;if(g.Q(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=Kma(b,f);d=b.D;d.B&&f.isEmpty&&pM("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.u);if(!f.ZD&&(b.u.D=2,nM(new kM(b.B),e),!f.isEmpty&&(oG(b.F,f.ph),g.Q(b.C.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")&&b.kr())))for(e=g.q(f.ph),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&S("Detected deferred preroll overlay.",void 0,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||"unknown"})}},function(){nM(new kM(b.B),
c);
var d=b.D;d.B&&pM("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.u.D&&(b.u.D=0);
b.kr()&&sN(b.B)})}};
g.k.Tm=function(){};
g.k.qw=function(){};var Lma=Object.freeze([UK,ZK,OJ,eL,fL,EJ]);g.u(bN,MM);g.k=bN.prototype;g.k.ZC=function(){for(var a=this.D.B,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.YD=function(){return(0>=this.I?this.D.B:this.D.B.slice(this.I)).some(function(a){return a.Jf()})};
g.k.lr=function(){return this.R instanceof OJ||this.R instanceof eL};
g.k.bl=function(){return this.R instanceof EJ||this.R instanceof ZK};
g.k.DG=function(){this.daiEnabled?cK(this.J)&&NM(this):cN(this)};
g.k.je=function(a){var b=aN(a);this.R&&b&&this.P!==b&&(b?Ana(this.Xc):Cna(this.Xc),this.P=b);this.R=a;(g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")||g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")||g.Q(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping"))&&xna(this.Xc,this);this.daiEnabled&&(this.I=this.D.B.findIndex(function(c){return c===a}));
MM.prototype.je.call(this,a)};
g.k.Ik=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.C&&(g.fg(this.C),this.C=null);MM.prototype.Ik.call(this,a,b)};
g.k.Ii=function(){this.I=this.D.B.length;this.C&&this.C.ac("adended");this.B&&this.B.ac("adended");this.Ik()};
g.k.hn=function(){cN(this)};
g.k.Jk=function(){this.Um()};
g.k.lc=function(a){MM.prototype.lc.call(this,a);a=a.state;g.U(a,2)&&this.C?this.C.Ye():a.Hb()?(null==this.C&&(a=this.D.D)&&(this.C=this.zk.create(a,XJ(VJ(this.u)),this.u.u.u),this.C.subscribe("onAdUxUpdate",this.fF,this),JK(this.C)),this.C&&this.C.Nj()):a.isError()&&this.C&&this.C.Wd(a.getData().errorCode)};
g.k.Um=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(AN(this.Xc,0),a?this.Ik(a,b):cN(this))};
g.k.AF=function(){1==this.D.C?this.Ik():this.Um()};
g.k.onAdUxClicked=function(a){MM.prototype.onAdUxClicked.call(this,a);this.C&&this.C.If(a)};
g.k.Ut=function(){var a=0>=this.I?this.D.B:this.D.B.slice(this.I);return 0<a.length?a[0]:null};
g.k.ca=function(){g.fg(this.C);this.C=null;MM.prototype.ca.call(this)};
g.k.Xi=function(){return this.P};
g.k.jr=function(){return this.D.B.every(function(a){return a.bf()})};
g.k.reset=function(){return new bN(this.Xc,this.J,this.K.reset(),this.u,this.xh,this.Tn,this.zk,this.daiEnabled)};
g.k.WC=function(){return this.I};
g.k.YC=function(){return this.D.B.length};g.u(dN,iM);dN.prototype.Jf=function(){return!1};
dN.prototype.bf=function(){return!0};
dN.prototype.B=function(){var a=this.u,b=new Qla;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=Mma(a.impressionCommands||[]);b.clickTrackingUrls=Mma(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new vJ;a.iframeCompanionRenderer=b;return a};g.u(eN,NK);g.k=eN.prototype;g.k.vy=function(a){if(!tH(a)){var b=new kM(this.Xc);a=lM(a);nM(b,a)}this.Tm()};
g.k.Tm=function(){JK(this)};
g.k.je=function(){var a=this;zna(this.Xc,this);g.Q(this.J.T().experiments,"html5_enable_consistent_companion_clearing")&&!this.pu()&&OK(this.Xc);this.ha=this.J.getVideoData(1);this.R=this.C.B();if(!(this.C instanceof jM&&PK(this))&&(this.Jl(),this.C instanceof dN)){this.K=function(b){var c;if(c=b.data)try{c=eq(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.Jl=function(){null!=this.R&&(this.R.macros=Object.assign({},this.macros),this.Y.showCompanion(this.ha.videoId,this.R))};
g.k.onAdUxClicked=function(a){yK(this.Ia,a)};
g.k.ir=function(){return this.I.u};
g.k.kr=function(){return RJ(this.I)};
g.k.uz=function(){return QJ(this.I)};
g.k.no=function(){return!0};
g.k.Jy=function(){return!1};
g.k.pu=function(){return this.C instanceof jM};
g.k.Ty=function(){return!1};
g.k.Xi=function(){return!1};
g.k.Ny=function(){return!1};
g.k.jr=function(){return this.I.B.bf()};
g.k.qw=function(){};
g.k.ca=function(){g.Q(this.J.T().experiments,"html5_enable_consistent_companion_clearing")&&this.pu()&&(xJ(this.Y),this.Y.u.xa("updateKevlarOrC3Companion",{}));if(this.K)try{window.removeEventListener("message",this.K),this.K=null}catch(a){M(a)}NK.prototype.ca.call(this)};g.u(Oma,IJ);g.u(Qma,IJ);Rma.prototype.create=function(a,b){function c(x){return new EJ(x,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,y=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new bL(f):null!=h&&h.iframeUrl?new dN(h):null!=l?new jM(l):null!=m?new OJ(m):null!=n?new Qma(n,c,this.u):
null!=p?new dL(p):null!=r?new QK(r):null!=t?new Oma(t,c):null!=w?new aL(w):null!=y?new HJ(y):null};Tma.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 rH(h.C,h.B,h.daiEnabled,h.D),m=h.Ce;m&&(l.Ce=new yu(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.Ce=f;e.push(Uma(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Uma(this,d.value,c,b)),c++;return e};g.u(Wma,g.C);g.u(fN,g.C);fN.prototype.addEventListener=function(a,b){this.u=b};
fN.prototype.removeEventListener=function(){this.u=null};
g.u(gN,g.C);gN.prototype.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
gN.prototype.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};g.u($ma,g.C);var hN=null,bna=null,iN=null,jN=null,kN=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return hN},void 0);
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return bna},void 0);
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return iN},void 0);
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return jN},void 0);
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return kN},void 0);var kna={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(oN,g.C);oN.prototype.ca=function(){this.hd.clear();g.C.prototype.ca.call(this)};
oN.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.na();a.loggingUrls&&lna(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;kna.hasOwnProperty(d)||lna(this,d,e,b,c)}};g.u(rN,g.O);g.k=rN.prototype;
g.k.ca=function(){this.Qa=!0;g.ut(this.R);this.Y&&this.u.getVideoData(1).unsubscribe("cuepointupdated",this.Dz,this);if(eK(this.u)){var a=mna(this.u);a.removeEventListener("updateKevlarOrC3Companion",ana);a.removeEventListener("onPlaShelfInfoCardsReady",cna);a.removeEventListener("updateEngagementPanelAction",dna);a.removeEventListener("changeEngagementPanelVisibility",ena);a.removeEventListener("scrollToEngagementPanel",fna);window.removeEventListener("yt-navigate-start",gna);kN=jN=iN=hN=null}a=
g.q(this.F.values());for(var b=a.next();!b.done;b=a.next())Bna(this,b.value);wN(this,!1);this.I.clear();this.ma=[];this.K.clear();g.fg(this.D);this.D=null;g.fg(this.X);this.X=new Map;g.fg(this.aa);this.aa=new Map;this.F.clear();g.O.prototype.ca.call(this)};
g.k.xv=function(a){a instanceof sH&&!a.B&&(!uH(a)||a.contains(1E3*this.u.getCurrentTime(1)||0))&&(g.U(g.uK(this.u,1),32)?this.K.add(a):wna(this,a))};
g.k.KO=function(a){a instanceof sH&&(a.B&&(a.B=!1),this.K["delete"](a))};
g.k.Dz=function(a){wma(this.Dc,a);if(null==this.Y)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.ub.reduce(b.value)}else 0!=(this.u.getCurrentTime(1)||0)&&(a=a.filter(function(c){return"start"==c.event}),tN(this,[this.Y],a))};
g.k.VF=function(a){tN(this,[this.Y],[a])};
g.k.MF=function(a){var b=1E3*a;this.B&&this.B.qw(b);for(var c=g.q(this.F.values()),d=c.next();!d.done;d=c.next())d.value.qw(b);g.Bb(this.Nb.u,1E3*a)};
g.k.ij=function(a){switch(a){case "control_play":this.B&&(a=this.B,a.bl()?a.J.dc().playVideo():a.lr()&&a.B.Nj());break;case "control_pause":this.B&&(a=this.B,a.bl()?a.J.dc().pauseVideo():a.lr()&&a.B.Vk())}};
g.k.rN=function(a){this.B&&this.B.lc(a)};
g.k.nO=function(a){0>FK(a,16)&&(this.K.forEach(this.xv,this),this.K.clear())};
g.k.YQ=function(a,b){if(this.C&&g.Q(this.u.T().experiments,"html5_dai_debug_bulleit_cue_range")){if(!this.B||this.B.Ra())for(var c=g.q(this.Ga),d=c.next();!d.done;d=c.next())d=d.value,d instanceof bN&&d.u.P[b.Hc]&&d.Tm()}else if(this.B&&this.B.Ra(),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.xv(e);break}}};
g.k.bR=function(){var a=null;this.C&&(a=this.u.getCurrentTime(1),this.ub.updateTime(a));if(cK(this.u)&&this.B){var b=this.u.getCurrentTime(2,!1),c=this.B;if(c.B){var d=c.B;d.F&&oK(d.Ia,b,d.getDuration());if(null!==a&&(b=c.u.F,!(null===b||g.Q(c.J.T().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.u.u.start,1E3*a<d+b)))){c.u.F=null;var e=SM(c),f=Math.min(a+c.J.Ni(),e/1E3),h=c.u.C&&c.u.C.identifier;a<f?(c.J.seekTo(f,void 0,void 0,1),c=c.xh,a*=1E3,f*=1E3,c.B&&oM({driftRecoveryInfo:{contentCpn:c.u,
cueIdentifier:h||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*c.C.Ni()).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):qM(c.xh,{cueIdentifier:h,driftRecoveryMs:b,CG:d,pE:e})}}}};
g.k.PN=function(){this.kc=!0;if(this.B){var a=this.B;a.B&&a.B.oe()}};
g.k.ZN=function(a){if(this.B)this.B.onAdUxClicked(a);if(this.D)this.D.onAdUxClicked(a)};
g.k.cR=function(){if(2==this.u.getPresentingPlayerType()&&this.B){var a=this.B.B,b=a.Ia;a=a.J.isMuted();lK(b)||pK(b,a?"mute":"unmute")}};
g.k.WO=function(a){if(this.B){var b=this.B.B.Ia;jK(b)||vK(b,a?"fullscreen":"end_fullscreen")}};
g.k.BS=function(){for(var a=[],b=g.q(this.I),c=b.next();!c.done;c=b.next())c=c.value,tH(c)||a.push(c);b=this.u.app;1!==b.getPresentingPlayerType()||VT(b,"cuerangemarkersupdated",a)};
g.k.yA=function(){var a=this.u.getVideoData(2);return a?a.isListed&&!this.fa:!1};
g.k.hn=function(){this.B&&this.B.Xi()&&this.B.hn()};
g.k.Jk=function(){this.B&&this.B.Xi()&&this.B.Jk()};
g.k.Ii=function(){this.B&&this.B.Xi()&&this.B.Ii()};
g.k.Ct=function(a){if(a=this.X.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=tN(this,[a]))&&0!==a.length&&(a=a[0],yna(this,a),a.Tm()):M(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.k.kq=function(a){(a=this.X.get(a))&&(a=tN(this,[a]))&&0!=a.length&&a[0].Tm()};
g.k.Vp=function(){vN(this)};
g.k.sc=function(a){if(this.B){var b=this.B;b.B&&(b=b.B,b.F&&oK(b.Ia,a,b.getDuration()))}};
g.k.seekTo=function(a){cK(this.u)&&this.B.bl()&&this.u.dc().seekTo(a)};
g.k.resume=function(){this.B&&this.B.resume()};
g.k.executeCommand=function(a,b,c){var d=this.ce,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.B&&this.B||null;f?(f=f.B,c=f.ad.Kq()?rK(f.Ia,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.VD=function(){return this.C};
g.k.VC=function(){return this.kb};g.u(BN,rt);BN.prototype.R=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 wH&&this.C(b)}};g.u(Fna,BK);g.u(CN,BN);
CN.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.xa("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.xa("updateKevlarOrC3Companion",{})}break;case "action-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.xa("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:if(b.renderer&&b.renderer.controlFlowExperimentEnabled||g.Q(this.u.T().experiments,"html5_enable_consistent_companion_clearing"))b=this.u.getVideoData(1),this.u.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId});this.u.xa("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=
this.u.getVideoData(1);this.u.xa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:b=this.u.getVideoData(1),this.u.xa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.u.xa("updateKevlarOrC3Companion",{})}break;case "ads-engagement-panel":switch(b=b.renderer,a.actionType){case 1:case 2:this.u.xa("updateEngagementPanelAction",b.addAction);
this.u.xa("changeEngagementPanelVisibility",b.expandAction);break;case 3:this.u.xa("changeEngagementPanelVisibility",b.hideAction),this.u.xa("updateEngagementPanelAction",b.removeAction)}}};g.u(DN,g.C);DN.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.Pa().appendChild(a.Pa())};
g.u(EN,DN);EN.prototype.Pa=function(){return this.B};g.u(Hna,g.C);var Jna=1;g.u(g.GN,g.C);g.k=g.GN.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.la;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.OD&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.Fe(a.G);if(c){if(c=HN(this,e,"class",c))IN(this,e,"class",c),this.Ja[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Ja[f.value]=e;IN(this,e,"class",d.join(" "))}d=a.Z;c=a.S;if(d)d=HN(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=HN(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.wb&&(h=FN(),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];IN(this,c,h,"string"===
typeof l?HN(this,c,h,l):l)}return e};
g.k.ka=function(a){return this.Ja[a]};
g.k.ga=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.ya(c,a[c])};
g.k.ya=function(a,b){var c=this.Qc["{{"+a+"}}"];c&&IN(this,c[0],c[1],b)};
g.k.ca=function(){this.Ja={};this.Qc={};this.detach();g.C.prototype.ca.call(this)};g.u(g.V,g.GN);g.k=g.V.prototype;g.k.Gc=function(a,b){this.ya(b||"content",a)};
g.k.show=function(){this.fb||(g.ug(this.element,"display",""),this.fb=!0)};
g.k.hide=function(){this.fb&&(g.ug(this.element,"display","none"),this.fb=!1)};
g.k.Eb=function(a){this.R=a};
g.k.wa=function(a,b,c){return this.N(this.element,a,b,c)};
g.k.N=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.Mb=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(){var a=this.element;Se(a);a.focus()};
g.k.ca=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.GN.prototype.ca.call(this)};g.u(g.KN,g.V);g.KN.prototype.subscribe=function(a,b,c){return this.fa.subscribe(a,b,c)};
g.KN.prototype.unsubscribe=function(a,b,c){return this.fa.unsubscribe(a,b,c)};
g.KN.prototype.nl=function(a){return this.fa.nl(a)};
g.KN.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.fa.V.apply(this.fa,[a].concat(g.ma(c)))};var RCa=new WeakSet;g.u(W,g.KN);g.k=W.prototype;g.k.bind=function(a){if(!this.Qa&&a.renderer){var b=Object.assign({},Gna(this.api,this.Ha),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Qa=a;this.element.setAttribute("id",this.Qa);this.ub&&g.I(this.element,this.ub);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&ON(this,this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.KN.prototype.hide.call(this);null!=this.K&&RN(this,this.element,!1)};
g.k.show=function(){g.KN.prototype.show.call(this);if(!this.Zb){this.Zb=!0;var a=this.X&&this.X.impressionCommand;a&&Lna(this,a,null)}null!=this.K&&RN(this,this.element,!0)};
g.k.onClick=function(a){if(this.K&&!RCa.has(a)){var b=this.element;g.PN(this.api,b)&&this.fb&&g.$T(this.api,b,this.u);RCa.add(a)}(a=this.X&&this.X.clickCommand)&&Lna(this,a,this.bD())};
g.k.bD=function(){return null};
g.k.yN=function(a){var b=this.aa;b.K=!0;b.B=a.touches.length;b.u.isActive()&&(b.u.stop(),b.F=!0);a=a.touches;b.I=Ina(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.R=Infinity,b.P=Infinity):(b.R=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.xN=function(a){var b=this.aa;a=a.changedTouches.item(0);var c;if(c=Vd()){c=g.Vc;var d="";Wc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Vd()?(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"):yc(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.Cc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.R,2)+Math.pow(a.clientY-b.P,2)>Math.pow(5,2))b.D=!0};
g.k.wN=function(a){if(this.aa){var b=this.aa,c=a.changedTouches;c&&b.K&&1==b.B&&!b.D&&!b.F&&!b.I&&Ina(b,c)&&(b.X=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.ca=function(){this.clear(null);this.Mb(this.kb);for(var a=g.q(this.ha),b=a.next();!b.done;b=a.next())this.Mb(b.value);g.KN.prototype.ca.call(this)};g.u(TN,W);TN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&SN(a)||"";g.pc(b)?(g.Q(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.ug(this.element,"backgroundImage","url("+b+")"):ve(this.element,{src:b}),ve(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
TN.prototype.clear=function(){this.hide()};g.u(fO,W);
fO.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.pc(a)||(this.element.setAttribute("aria-label",a),this.D=new g.KN({G:"span",L:"ytp-ad-button-text",Z:a}),g.D(this,this.D),this.D.ga(this.element)));null!=b.icon&&(b=eO(b.icon),null!=
b&&(this.C=new g.KN({G:"span",L:"ytp-ad-button-icon",S:[b]}),g.D(this,this.C)),this.F?g.Ie(this.element,this.C.element,0):this.C.ga(this.element))}};
fO.prototype.clear=function(){this.hide()};
fO.prototype.onClick=function(a){var b=this;W.prototype.onClick.call(this,a);boa(this).forEach(function(c){return b.Ha.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};var apa={seekableStart:0,seekableEnd:1,current:0};g.u(gO,W);gO.prototype.clear=function(){this.dispose()};g.u(jO,gO);g.k=jO.prototype;g.k.init=function(a,b,c){gO.prototype.init.call(this,a,b,c);g.ug(this.D,"stroke-dasharray","0 "+this.C);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){iO(this);gO.prototype.hide.call(this)};
g.k.show=function(){hO(this);gO.prototype.show.call(this)};
g.k.bn=function(){this.hide()};
g.k.Cl=function(){if(this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.C,this.I&&(a=this.C-a),g.ug(this.D,"stroke-dasharray",a+" "+this.C))}};g.u(kO,W);kO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;this.isTemplated()||g.Ne(this.element,LN(this.B));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?SN(a):"",c=(c=this.api.getVideoData(1))&&c.Vr,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()};
kO.prototype.isTemplated=function(){return this.B.isTemplated||!1};
kO.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=la(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=la(f);return b(e,f)}
b=void 0===b?Lda:b;var e=g.Sa(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.v;var m=$Ba.get(l);m||(m={},$Ba.set(l,m));return Yd(m,[this].concat(g.ma(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.Kg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Je(b);return a});g.u(g.mO,g.C);g.k=g.mO.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.ww(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.u&&this.u()):this.element.fb||(nO(this,!0),this.state=1,a?this.delay.start(a):this.ww()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.fb&&(nO(this,!0),this.state=4,this.delay.start(this.D)))};
g.k.ww=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:nO(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();nO(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.ww()};
g.k.ca=function(){this.element.na()||this.element.element.removeAttribute("aria-hidden");g.C.prototype.ca.call(this)};g.u(oO,gO);g.k=oO.prototype;
g.k.init=function(a,b,c){gO.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.Ga&&g.I(this.C.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ia=null==a||0===a?this.B.gF():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.D.init(AK("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Vr&&b.thumbnail?this.I.init(AK("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.I.hide();iO(this);gO.prototype.hide.call(this)};
g.k.show=function(){hO(this);this.C.show();this.D.show();this.I.show();gO.prototype.show.call(this)};
g.k.bn=function(){this.hide()};
g.k.Cl=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.za&&a>=this.ia?(g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.Y.hide(),this.za=!0,this.V("c")):this.D&&this.D.isTemplated()&&(a=Math.max(0,Math.ceil((this.ia-a)/1E3)),a!=this.Aa&&(lO(this.D,{TIME_REMAINING:String(a)}),this.Aa=a)))}};g.u(qO,g.C);g.k=qO.prototype;g.k.ca=function(){this.reset();g.C.prototype.ca.call(this)};
g.k.reset=function(){g.ut(this.F);this.I=!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.N(this.C,"mouseover",this.CN,this);this.F.N(this.C,"mouseout",this.BN,this);this.u?this.u.start():(this.I=this.B=!0,g.ug(this.C,{opacity:this.P}))};
g.k.CN=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.u&&this.u.stop()};
g.k.BN=function(){this.I?this.D.start():this.u&&this.u.start()};
g.k.WB=function(){this.B||(this.B=!0,this.R.play(),this.I=!0)};g.u(rO,gO);g.k=rO.prototype;
g.k.init=function(a,b,c){gO.prototype.init.call(this,a,b,c);this.P=b;this.ia=coa(this);if(!b||g.Sb(b))M(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Sb(b.message))M(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=eO(a);null==b?M(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.KN({G:"button",la:["ytp-ad-skip-button","ytp-button"],S:[{G:"span",L:"ytp-ad-skip-button-icon",
S:[b]}]}),g.D(this,this.I),this.I.ga(this.D.element),this.C=new kO(this.api,this.Ha,this.layoutId,this.u,"ytp-ad-skip-button-text"),this.C.init(AK("ad-text"),this.P.message,c),g.D(this,this.C),g.Ie(this.I.element,this.C.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.ha.length)&&c.u&&(fD?0:"ontouchstart"in document.documentElement&&(ag()||$f()))&&(this.Mb(this.kb),d&&this.Mb(d),this.ha=[this.N(this.element,"touchstart",this.yN,this),this.N(this.element,"touchmove",this.xN,this),this.N(this.element,
"touchend",this.wN,this)])}};
g.k.clear=function(){this.Y.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.C&&this.C.hide();iO(this);gO.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.ip(a),gO.prototype.onClick.call(this,a),this.V("d"),!this.ia))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.bD=function(){return"skip"};
g.k.show=function(){this.Y.start();this.D.show();this.C&&this.C.show();hO(this);gO.prototype.show.call(this)};
g.k.bn=function(){this.V("e")};
g.k.Cl=function(){};g.u(sO,g.O);g.k=sO.prototype;g.k.gF=function(){return this.B};
g.k.start=function(){this.C||(this.C=!0,this.Za.start())};
g.k.stop=function(){this.C&&(this.C=!1,this.Za.stop())};
g.k.uN=function(){this.u+=100;var a=!1;this.u>this.B&&(this.u=this.B,this.Za.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.B/1E3,current:this.u/1E3};this.F&&this.F.sc(this.D.current);this.V("b");a&&this.V("a")};
g.k.getProgressState=function(){return this.D};g.u(tO,W);g.k=tO.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.pc(g.pd(e[0].url))&&(e[0].url=d.lf);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.pc(g.pd(e[0].url))&&(e[0].url=d.ne());e=b.headline;null!=e&&g.pc(g.pd(e.text))&&(e.text=d.author)}this.P.init(AK("ad-image"),b.image,c);this.ma.init(AK("ad-text"),b.headline,c);this.ia.init(AK("ad-text"),b.description,c);this.Y.init(AK("ad-image"),b.backgroundImage,c);this.B=new fO(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-action-interstitial-action-button"]);g.D(this,this.B);
this.B.ga(this.Ya);this.B.init(AK("button"),b.actionButton.buttonRenderer,c);this.za=b.navigationEndpoint;this.api.T().u||(this.I.N(this.Ta,"click",this.Ox,this),this.I.N(this.Ga,"click",this.Ox,this),this.I.N(this.Aa,"click",this.Ox,this));this.C=new sO(a);g.D(this,this.C);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.C&&(this.F=new rO(this.api,this.Ha,this.layoutId,this.u,this.C),g.D(this,this.F),this.F.ga(this.element),this.F.init(AK("skip-button"),a,c)):b.nonskippableOverlayRenderer&&
(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.C&&(this.D=new oO(this.api,this.Ha,this.layoutId,this.u,this.C,!1),g.D(this,this.D),this.D.ga(this.element),this.D.init(AK("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.C&&(c=new jO(this.api,this.Ha,this.layoutId,this.u,this.C),g.D(this,c),c.ga(this.element),c.init(AK("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.ut(this.I);this.hide()};
g.k.show=function(){doa(!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(){doa(!1);this.B&&this.B.hide();this.F&&this.F.hide();this.D&&this.D.hide();W.prototype.hide.call(this)};
g.k.Ox=function(){this.za&&this.Ha.executeCommand(this.za,this.macros)};g.u(uO,W);
uO.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){foa(this,b.text);var m=goa(b.defaultButtonChoiceIndex);ioa(this,e,a,m)?(koa(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&loa(this,b.adDurationRemaining.timedPieCountdownRenderer,
c),b&&b.background&&(c=this.ka("ytp-ad-choice-interstitial"),eoa(c,b.background)),joa(this,a),this.show(),g.Q(this.api.T().experiments,"self_podding_default_button_focused")&&g.mm(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."))};
uO.prototype.clear=function(){this.hide()};g.u(vO,W);g.k=vO.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(AK("ad-text"),b.text,c),this.show())):M(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){moa(!0);W.prototype.show.call(this)};
g.k.hide=function(){moa(!1);W.prototype.hide.call(this)};
g.k.onClick=function(){};g.u(wO,g.C);wO.prototype.ca=function(){this.B&&g.dp(this.B);this.u.clear();xO=null;g.C.prototype.ca.call(this)};
wO.prototype.register=function(a,b){b&&this.u.set(a,b)};
var xO=null;g.u(zO,W);
zO.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 fO(this.api,this.Ha,this.layoutId,this.u),g.D(this,this.button),this.button.init(AK("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.T(a)),this.button.ga(this.element),this.I&&!g.qn(this.button.element,"ytp-ad-clickable")&&g.I(this.button.element,"ytp-ad-clickable"),
a&&(this.C=new g.KN({G:"div",L:"ytp-ad-hover-text-container"}),this.F&&(b=new g.KN({G:"div",L:"ytp-ad-hover-text-callout"}),b.ga(this.C.element),g.D(this,b)),g.D(this,this.C),this.C.ga(this.element),b=yO(a),g.Ie(this.C.element,b,0)),this.show())};
zO.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();W.prototype.hide.call(this)};
zO.prototype.show=function(){this.button&&this.button.show();W.prototype.show.call(this)};g.u(AO,W);g.k=AO.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.")),toa(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.I&&this.I.focus()};
g.k.show=function(){this.B&&this.B.show();this.C&&this.C.show();this.I=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.kF=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.V("f");this.hide()};
g.k.VQ=function(){this.hide()};
BO.prototype.Pa=function(){return this.u.element};
BO.prototype.isChecked=function(){return this.C.checked};g.u(CO,W);g.k=CO.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.")):uoa(this,b):M(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.ut(this.B);this.hide()};
g.k.Bz=function(){this.hide()};
g.k.vz=function(){var a=this.C.cancelEndpoint;a&&this.Ha.executeCommand(a,this.macros);this.hide()};
g.k.Cz=function(){var a=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;a&&this.Ha.executeCommand(a,this.macros);this.hide()};g.u(DO,CO);DO.prototype.Bz=function(a){CO.prototype.Bz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
DO.prototype.vz=function(a){CO.prototype.vz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
DO.prototype.Cz=function(a){CO.prototype.Cz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("g")};g.u(EO,W);g.k=EO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.I=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 fO(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.D(this,this.B),
this.B.init(AK("button"),a,this.macros),this.B.ga(this.element);b.title&&(a=g.T(b.title),this.ya("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=yO(a[c]);if(!g.pc(d.textContent)){var e=Ee("LI");e.appendChild(d);this.ia.appendChild(e)}}else g.Mg(this.ia,!1);b.dialogMessage&&(a=yO(b.dialogMessage,!0),this.Aa.appendChild(a));b.confirmLabel&&(a=g.T(b.confirmLabel),this.ya("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?woa(this,a):c&&xoa(this,c),this.D=new fO(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-info-dialog-mute-button"],"button",!0),g.D(this,this.D),this.D.init(AK("button"),b,this.macros),this.D.wa("click",this.zP,this),this.D.ga(this.Ga)));
yoa(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.Y&&this.Y.focus()};
g.k.show=function(){this.B&&this.B.show();this.D&&this.D.show();this.ma||(voa(this),this.ma=!0);this.Y=document.activeElement;W.prototype.show.call(this);this.P.focus()};
g.k.lF=function(){this.I&&this.I.confirmServiceEndpoint&&this.Ha.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.V("i");this.hide()};
g.k.zP=function(){var a=this.C?this.C:this.F;a&&!a.fb&&(this.hide(),a.show())};g.u(FO,zO);FO.prototype.init=function(a,b,c){zO.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(Aoa(this,a,c),this.show())};
FO.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();zO.prototype.hide.call(this)};
FO.prototype.show=function(){this.button&&this.button.show();zO.prototype.show.call(this)};
FO.prototype.clear=function(){this.hide()};var OO=new g.ie(320,63);var TO={iconType:"CLOSE"},XO=new g.ie(320,63);g.u(SO,W);g.k=SO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.F=b;this.P=g.rb(this.F.onClickCommands||[]);this.Aa=this.F.onErrorCommand||null;if(a=this.F.contentSupportedRenderer)a=this.F.contentSupportedRenderer,b=this.F.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.se("ytp-ad-overlay-ad-info-button-container",this.D.element),VO(this,b),a=Joa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.se("ytp-ad-overlay-ad-info-button-container",this.C.element),
VO(this,b),a=Koa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.se("ytp-ad-overlay-ad-info-button-container",this.B.element),VO(this,b),a=Loa(this,a.imageOverlayAdContentRenderer)):(M(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Moa(this,!0))};
g.k.uP=function(){this.api.app.visibility.u&&this.clear()};
g.k.clear=function(){Moa(this,!1);this.za.reset();this.Y=0;this.D.hide();RN(this,this.D.element,!1);this.C.hide();RN(this,this.C.element,!1);this.B.hide();RN(this,this.B.element,!1);this.hide();this.dispose()};
g.k.MQ=function(){this.Ta&&this.Ha.executeCommand(this.Ta,this.macros);this.api.pauseVideo()};
g.k.wz=function(){var a=this;Ioa(this).forEach(function(b){return a.Ha.executeCommand(b,a.macros)});
if(RO(this.api))this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId);else this.clear()};
g.k.zN=function(){this.Ga=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.TN=function(){this.Ga||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.k.xP=function(){this.Ga||2!=this.api.getPlayerState(1)||this.api.playVideo();RO(this.api)?this.api.V("muteadaccepted","invideo-overlay",void 0):this.clear()};
g.k.UN=function(a){a.target===this.I&&g.se("ytp-ad-button",this.Ya.element).click()};g.u(YO,gO);g.k=YO.prototype;g.k.init=function(a,b,c){gO.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.I=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(AK("ad-text"),d,c);this.C.ga(this.D.element);this.P.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Noa(this,!1);gO.prototype.hide.call(this);this.D.hide();this.C.hide();iO(this)};
g.k.show=function(){Noa(this,!0);gO.prototype.show.call(this);hO(this);this.D.show();this.C.show()};
g.k.bn=function(){this.hide()};
g.k.Cl=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Y&&a>=this.I?(this.P.hide(),this.Y=!0):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.ia&&(lO(this.C,{TIME_REMAINING:String(a)}),this.ia=a)))}};g.u(ZO,gO);g.k=ZO.prototype;
g.k.init=function(a,b,c){gO.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Sb(a)?null:a){this.I=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.kB(this.api.T().experiments,"preskip_button_style_ads_backend")&&uD(this.api.T());this.C=new oO(this.api,this.Ha,this.layoutId,this.u,this.B,d);this.C.init(AK("preskip-component"),a,c);pO(this.C);g.D(this,this.C);this.C.ga(this.element);
g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.C.subscribe("c",this.PP,this)}else b.skipOffsetMilliseconds&&(this.I=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Sb(b)?null:b;null==b?M(Error("SkipButtonRenderer was not set in player response.")):(this.D=new rO(this.api,this.Ha,this.layoutId,this.u,this.B),this.D.init(AK("skip-button"),b,c),g.D(this,this.D),this.D.ga(this.element),this.show())};
g.k.show=function(){this.P&&this.D?this.D.show():this.C&&this.C.show();hO(this);gO.prototype.show.call(this)};
g.k.bn=function(){};
g.k.clear=function(){this.C&&this.C.clear();this.D&&this.D.clear();iO(this);gO.prototype.hide.call(this)};
g.k.hide=function(){this.C&&this.C.hide();this.D&&this.D.hide();iO(this);gO.prototype.hide.call(this)};
g.k.PP=function(){$O(this,!0)};
g.k.Cl=function(){g.Q(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.C||1E3*this.B.getProgressState().current>=this.I&&$O(this,!0):1E3*this.B.getProgressState().current>=this.I&&$O(this,!0)};g.u(aP,W);aP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new ZO(this.api,this.Ha,this.layoutId,this.u,this.B),b.ga(this.C),b.init(AK("skip-button"),a.skipAdRenderer,this.macros),g.D(this,b)));this.show()};g.u(dP,gO);g.k=dP.prototype;g.k.init=function(a,b,c){gO.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 kO(this.api,this.Ha,this.layoutId,this.u);this.C.init(AK("ad-text"),a,{});this.C.ga(this.element);g.D(this,this.C)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){iO(this);gO.prototype.hide.call(this)};
g.k.bn=function(){this.hide()};
g.k.Cl=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 sO?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.bP(a);lO(this.C,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){hO(this);gO.prototype.show.call(this)};g.u(eP,kO);eP.prototype.onClick=function(a){kO.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(fP,gO);g.k=fP.prototype;
g.k.init=function(a,b,c){gO.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.pc(g.pd(d[0].url))&&(d[0].url=a.lf)}else g.Is(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(AK("ad-image"),b.image,c);this.P.init(AK("ad-text"),
b.headline,c);this.I.init(AK("ad-text"),b.description,c);this.C.init(AK("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.ia=b.startMs||0;hO(this)}else g.Hs(Error("FlyoutCtaRenderer has no valid action button."));else g.Hs(Error("FlyoutCtaRenderer has no description AdText."));else g.Hs(Error("FlyoutCtaRenderer has no headline AdText."));else g.Is(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){gO.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Me(this.C.element,a.target)&&this.Y&&this.Ha.executeCommand(this.Y,this.macros)};
g.k.Cl=function(){if(this.B){var a=this.B.getProgressState();a&&a.current&&1E3*a.current>=this.ia&&(iO(this),g.sn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.bn=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.C&&this.C.show();gO.prototype.show.call(this)};
g.k.hide=function(){this.C&&this.C.hide();gO.prototype.hide.call(this)};g.u(gP,W);g.k=gP.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.pc(c)||(a.buttonText=c,this.B.setAttribute("aria-label",c))):g.Mg(this.ia,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.B.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=eO(b.defaultIcon),this.ya("untoggledIconTemplateSpec",c),b.toggledIcon?(this.P=!0,c=eO(b.toggledIcon),this.ya("toggledIconTemplateSpec",c)):(g.Mg(this.I,!0),g.Mg(this.F,!1)),g.Mg(this.B,!1)):g.Mg(this.Y,!1);g.Sb(a)||this.update(a);b.isToggled&&(g.I(this.D,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));hP(this);this.N(this.element,"change",this.iF);this.show()}};
g.k.onClick=function(a){0<this.ha.length&&(this.toggleButton(!this.isToggled()),this.iF());W.prototype.onClick.call(this,a)};
g.k.iF=function(){var a=this;g.J(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());Ooa(this,this.isToggled()).forEach(function(b){return a.Ha.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);hP(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.J(this.D,"ytp-ad-toggle-button-toggled",a);this.B.checked=a;hP(this)};
g.k.isToggled=function(){return this.B.checked};g.u(iP,W);g.k=iP.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&&(Poa(this,c),this.F.show(100),this.show(),(this.B&&this.B.impressionCommands||[]).forEach(function(e){return d.Ha.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.jF=function(){un(this.element,"ytp-ad-instream-user-sentiment-selected");this.B.postMessageAction&&this.api.xa("onYtShowToast",this.B.postMessageAction);this.F.hide()};
g.k.onClick=function(a){0<this.ha.length&&this.jF();W.prototype.onClick.call(this,a)};g.u(jP,fO);jP.prototype.init=function(a,b,c){fO.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.T(b.text),a=!g.pc(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,")):this.show():g.Fo(Error("No visit advertiser text was present in the renderer."))};g.u(kP,W);kP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.text;g.pc(LN(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 kO(this.api,this.Ha,this.layoutId,this.u),a.init(AK("simple-ad-badge"),b,c),a.ga(this.element),g.D(this,a)),this.show())};
kP.prototype.clear=function(){this.hide()};lP.prototype.getLength=function(){return this.u-this.B};g.u(oP,g.KN);oP.prototype.D=function(){var a=this.B.getProgressState();a=nP(new lP(a.seekableStart,a.seekableEnd),a.current,0);this.I.style.width=100*a+"%"};
oP.prototype.F=function(){g.xD(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.nl(this.u),this.u=-1))};g.u(pP,W);
pP.prototype.init=function(a,b,c,d){W.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new ZO(this.api,this.Ha,this.layoutId,this.u,this.B),c.ga(this.F),c.init(AK("skip-button"),a.skipAdRenderer,this.macros),g.D(this,c)):a.adPreviewRenderer&&(c=new oO(this.api,this.Ha,this.layoutId,this.u,this.B,!1),c.ga(this.F),c.init(AK("ad-preview"),a.adPreviewRenderer,this.macros),pO(c),g.D(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new iP(this.api,this.Ha,this.layoutId,this.u),c.ga(this.P),c.init(AK("instream-user-sentiment"),a,this.macros),g.D(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new fP(this.api,this.Ha,this.layoutId,this.u,this.B),g.D(this,c),c.ga(this.I),c.init(AK("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 kP(this.api,this.Ha,this.layoutId,this.u,!0),g.D(this,
c),c.ga(this.C),c.init(AK("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 dP(this.api,this.Ha,this.layoutId,this.u,this.B,d),g.D(this,d),d.ga(this.C),d.init(AK("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new FO(this.api,this.Ha,this.layoutId,this.u,this.element),
g.D(this,a),a.ga(this.C),a.init(AK("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Qoa(this)&&this.D?this.D:this.C))&&(a=new jP(this.api,this.Ha,this.layoutId,this.u),g.D(this,a),a.ga(d),a.init(AK("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!mD(b)&&"3"==b.controlsType&&(b=new oP(this.api,this.B),b.ga(this.Y),g.D(this,b));g.Q(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.I(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
pP.prototype.clear=function(){this.hide()};g.u(qP,W);
qP.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 fO(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ga(this.C),a.init(AK("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.B=new gP(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button"]),this.B.ga(this.C),
g.D(this,this.B),this.B.init(AK("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
qP.prototype.clear=function(){this.hide()};g.u(rP,W);rP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.B=new gP(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.B.ga(this.C),this.B.init(AK("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(sP,fO);sP.prototype.init=function(a,b,c){fO.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.T(b.text),a=!g.pc(b));a||g.Fo(Error("No submit text was present in the renderer."))};
sP.prototype.onClick=function(a){this.V("l");fO.prototype.onClick.call(this,a)};g.u(tP,W);
tP.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 ZO(this.api,this.Ha,this.layoutId,this.u,this.F),c.ga(this.P),c.init(AK("skip-button"),a,this.C),g.D(this,c),this.B=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new oO(this.api,this.Ha,this.layoutId,this.u,this.F,!1),c.ga(this.P),c.init(AK("ad-preview"),a,this.C),pO(c),g.D(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 sP(this.api,this.Ha,this.layoutId,this.u),c.ga(this.Y),c.init(AK("survey-submit"),a,this.C),g.D(this,c),this.D=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new kP(this.api,this.Ha,this.layoutId,this.u,!0),c.ga(this.I),c.init(AK("simple-ad-badge"),a,this.C),g.D(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new dP(this.api,this.Ha,this.layoutId,this.u,this.F,void 0),c.ga(this.I),c.init(AK("ad-duration-remaining"),
a,this.C),g.D(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new FO(this.api,this.Ha,this.layoutId,this.u,this.element),g.D(this,a),a.ga(this.I),a.init(AK("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
tP.prototype.clear=function(){this.hide()};g.u(uP,W);uP.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);Uoa(this)};
uP.prototype.show=function(){this.F=g.A();W.prototype.show.call(this)};
uP.prototype.kH=function(){};g.u(vP,uP);g.k=vP.prototype;g.k.init=function(a,b,c){var d=this;uP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.ia,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&Roa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.P=new Set(this.D.map(function(e){return e.B.B}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Voa(this,a,c);b.surveyAdQuestionCommon?Toa(this,b.surveyAdQuestionCommon):M(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.ma=b.submitEndpoints);this.N(this.element,"change",this.AN);this.show()};
g.k.kH=function(){wP(this,!1);this.I.D.subscribe("l",this.KQ,this)};
g.k.AN=function(a){a.target==this.C.B.B?Woa(this):this.P.has(a.target)&&(this.C.B.toggleButton(!1),wP(this,!0))};
g.k.KQ=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.ma.map(function(d){if(!d.loggingUrls)return d;
d=g.Wb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Nd(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Ha.executeCommand(d,a.macros)})};
g.k.clear=function(){g.Q(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(xP,uP);xP.prototype.init=function(a,b,c){var d=this;uP.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.ia,g.T(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&Roa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?Toa(this,b.surveyAdQuestionCommon):M(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
xP.prototype.clear=function(){g.Q(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(yP,W);
yP.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 xP(d.api,d.Ha,d.layoutId,d.u);f.ga(d.B);f.init(AK("survey-question-single-select"),e,c);d.C.push(f);g.D(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new vP(d.api,d.Ha,d.layoutId,d.u),f.ga(d.B),f.init(AK("survey-question-multi-select"),e,
c),d.C.push(f),g.D(d,f))});
this.show()};
yP.prototype.clear=function(){g.Q(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(zP,W);
zP.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){Zoa(this.F,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);Zoa(this.P,
b.brandImage);g.Ne(this.Y,g.T(b.text));this.B=new fO(this.api,this.Ha,this.layoutId,this.u,["ytp-ad-survey-interstitial-action-button"]);g.D(this,this.B);this.B.ga(this.I);this.B.init(AK("button"),b.ctaButton.buttonRenderer,c);this.B.show();var e=b.timeoutCommands;this.D=new sO(1E3*a);this.D.subscribe("a",function(){d.C.hide();e.forEach(function(f){return d.Ha.executeCommand(f,c)});
d.Ha.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.D(this,this.D);this.N(this.element,"click",function(f){return Yoa(d,f,b)});
this.C.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Ha.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"))};
zP.prototype.clear=function(){this.hide()};
zP.prototype.show=function(){$oa(!0);W.prototype.show.call(this)};
zP.prototype.hide=function(){$oa(!1);W.prototype.hide.call(this)};g.u(AP,g.O);g.k=AP.prototype;g.k.gF=function(){return 1E3*this.u.getDuration(this.C,!1)};
g.k.stop=function(){this.D&&this.B.Mb(this.D)};
g.k.hF=function(){var a=this.u.getProgressState(this.C);this.F={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.Q(this.u.T().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(this.C,!1)};this.V("b")};
g.k.getProgressState=function(){return this.F};
g.k.vN=function(a){g.GK(a,2)&&this.V("a")};var SCa="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(CP,BN);
CP.prototype.C=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!SCa.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 SO(e,a,f,h);break;case "persisting-overlay":a=new aP(e,a,f,h,new AP(e));break;case "player-overlay":a=new pP(e,a,f,h,new AP(e));break;case "survey":a=new yP(e,a,f,h);break;case "ad-action-interstitial":a=new tO(e,a,f,h);break;case "ad-text-interstitial":a=new vO(e,a,f,h);break;
case "survey-interstitial":a=new zP(e,a,f,h);break;case "ad-choice-interstitial":a=new uO(e,a,f,h);break;case "ad-message":a=new YO(e,a,f,h,new AP(e,1));break;default:a=null}if(!a){g.Fo(Error("No UI component returned from ComponentFactory for type: "+d));break}Ob(this.B,b)?g.Fo(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);this.F.append(a.Nb);break;case 2:b=bpa(this,a);if(null==b)break;b.bind(c);break;case 3:c=bpa(this,a),null!=c&&(g.fg(c),Ob(this.B,b)?(c=this.B,b in c&&
delete c[b]):g.Fo(Error("Ad UI component does not exist: "+b)))}}};
CP.prototype.ca=function(){g.gg(Object.values(this.B));this.B={};BN.prototype.ca.call(this)};var TCa={V1:"replaceUrlMacros",XX:"isExternalShelfAllowedFor"};DP.prototype.Dh=function(){return"adLifecycleCommand"};
DP.prototype.handle=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.mm(function(){b.controller.hn()});
break;case "END_LINEAR_AD":g.mm(function(){b.controller.Jk()});
break;case "END_LINEAR_AD_PLACEMENT":g.mm(function(){b.controller.Ii()});
break;case "FILL_INSTREAM_SLOT":g.mm(function(){a.elementId&&b.controller.Ct(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.mm(function(){a.elementId&&b.controller.kq(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.mm(function(){b.controller.Vp()})}};
DP.prototype.Si=function(a){this.handle(a)};EP.prototype.Dh=function(){return"adPlayerControlsCommand"};
EP.prototype.handle=function(a){var b=this.Xp();switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var c=cK(b.u)&&b.B.bl()?b.u.getDuration(2):0;if(0>=c)break;b.seekTo(g.ce(c-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,c));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":b.resume()}};
EP.prototype.Si=function(a){this.handle(a)};FP.prototype.Dh=function(){return"clearCueRangesCommand"};
FP.prototype.handle=function(){var a=this.Xp();g.mm(function(){mM(a,Array.from(a.I))})};
FP.prototype.Si=function(a){this.handle(a)};GP.prototype.Dh=function(){return"muteAdEndpoint"};
GP.prototype.handle=function(a){dpa(this,a)};
GP.prototype.Si=function(a,b){dpa(this,a,b)};HP.prototype.Dh=function(){return"openPopupAction"};
HP.prototype.handle=function(){};
HP.prototype.Si=function(a){this.handle(a)};IP.prototype.Dh=function(){return"pingingEndpoint"};
IP.prototype.handle=function(){};
IP.prototype.Si=function(a){this.handle(a)};JP.prototype.Dh=function(){return"urlEndpoint"};
JP.prototype.handle=function(a,b){var c=g.en(a.url,b);g.RL(c)};
JP.prototype.Si=function(){S("Trying to handle UrlEndpoint with no macro in controlflow")};KP.prototype.Dh=function(){return"adPingingEndpoint"};
KP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ip.send(a,b,c)};
KP.prototype.Si=function(a,b,c){Gqa(this.Fa.get(),a,b,void 0,c)};LP.prototype.Dh=function(){return"changeEngagementPanelVisibilityAction"};
LP.prototype.handle=function(a){this.J.xa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
LP.prototype.Si=function(a){this.handle(a)};MP.prototype.Dh=function(){return"loggingUrls"};
MP.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.ci.send(d.baseUrl,b,c,d.headers)};
MP.prototype.Si=function(a,b,c){a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Gqa(this.Fa.get(),d.baseUrl,b,d.headers,c)};g.u(fpa,g.C);var upa=new Map([[0,"normal"],[1,"skipped"],[2,"muted"],[6,"user_input_submitted"]]);var npa=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"]]),
jpa=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"]]),mpa=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"]]),ipa=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"]]),gpa=new Map([["normal",{Lr:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",gs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Lr:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",gs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{Lr:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",
gs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Lr:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",gs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Lr:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",gs:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(UP,g.C);g.k=UP.prototype;g.k.Zg=function(a,b){IQ(this.Gb,"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.Zg(a,b)};
g.k.cf=function(a){if(YP(this.u,a)){kL(this.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.u.cf(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.cf(a);qpa(this,a)}};
g.k.df=function(a){if(YP(this.u,a)){kL(this.Gb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.u.df(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.df(a);YP(this.u,a)&&ZP(this.u,a).F&&WP(this,a,!1)}};
g.k.xd=function(a,b){if(YP(this.u,a)){$P(this.Gb,"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.xd(a,b)}};
g.k.yd=function(a,b,c){if(YP(this.u,a)){$P(this.Gb,hpa(c),a,b);this.u.yd(a,b);for(var d=g.q(this.B),e=d.next();!e.done;e=d.next())e.value.yd(a,b,c);(c=lQ(this.u,a))&&b.layoutId===c.layoutId&&Bpa(this,a,!1)}};
g.k.Nf=function(a,b,c){S(c,a,b,void 0,c.Ul);WP(this,a,!0)};
g.k.ca=function(){var a=Cpa(this.u);a=g.q(a);for(var b=a.next();!b.done;b=a.next())WP(this,b.value,!1);g.C.prototype.ca.call(this)};oQ.prototype.isActive=function(){switch(this.u){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
oQ.prototype.Vy=function(){switch(this.D){case "fill_requested":return!0;default:return!1}};
oQ.prototype.Uy=function(){switch(this.u){case "exit_requested":return!0;default:return!1}};
oQ.prototype.Qy=function(){switch(this.u){case "rendering_stop_requested":return!0;default:return!1}};g.u(aQ,Ya);g.u(pQ,g.C);g.k=pQ.prototype;g.k.Ag=function(a){a=ZP(this,a);"not_scheduled"!==a.u&&mQ(a.slot,a.u,"onSlotScheduled");a.u="scheduled"};
g.k.lq=function(a){a=ZP(this,a);a.D="fill_requested";a.I.lq()};
g.k.cf=function(a){a=ZP(this,a);"enter_requested"!==a.u&&mQ(a.slot,a.u,"onSlotEntered");a.u="entered"};
g.k.Nn=function(a){ZP(this,a).Nn=!0};
g.k.Vy=function(a){return ZP(this,a).Vy()};
g.k.Uy=function(a){return ZP(this,a).Uy()};
g.k.Qy=function(a){return ZP(this,a).Qy()};
g.k.df=function(a){a=ZP(this,a);"exit_requested"!==a.u&&mQ(a.slot,a.u,"onSlotExited");a.u="scheduled"};
g.k.yd=function(a,b){var c=ZP(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.u&&mQ(c.slot,c.u,"onLayoutExited"),c.u="entered")};g.u(Gpa,g.C);g.u(sQ,g.C);sQ.prototype.get=function(){this.na()&&S("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(HQ,g.C);g.u(LQ,g.C);LQ.prototype.Tu=function(){};
LQ.prototype.gz=function(a){var b=this,c=this.u.get(a);c&&(this.u["delete"](a),this.Bb.get().removeCueRange(a),nG(this.tb.get(),"opportunity_type_throttled_ad_break_request_slot_reentry",function(){var d=b.ib.get();d=OQ(d.Ua.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,hc:c.hc?vqa(c.slotId,d,c.hc):void 0,Me:wqa(c.slotId,d,c.Me),Af:wqa(c.slotId,d,c.Af)})]},c.slotId))};
LQ.prototype.ej=function(){for(var a=g.q(this.u.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Bb.get().removeCueRange(b);this.u.clear()};
LQ.prototype.Pm=function(){};g.u(MQ,g.C);g.k=MQ.prototype;g.k.Ag=function(){};
g.k.nj=function(){};
g.k.cf=function(){};
g.k.bi=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(a,b){this.B.has(a)||this.B.set(a,new Set);this.B.get(a).add(b)};
g.k.jj=function(a,b){this.u.has(a)&&this.u.get(a)===b&&S("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)):S("Trying to unscheduled a Layout that was not scheduled.",a,b)}else S("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.xd=function(a,b){this.u.set(a,b)};
g.k.yd=function(a){this.u["delete"](a)};
g.k.Zg=function(){};ZQ.prototype.clone=function(a){var b=this;return new ZQ(function(){return b.triggerId},a)};$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)};g.u(fR,g.C);fR.prototype.logEvent=function(a){IQ(this,a)};g.u(hR,g.C);hR.prototype.addListener=function(a){this.listeners.push(a)};
hR.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
hR.prototype.B=function(){g.Q(this.Ca.get().J.T().experiments,"html5_mark_internal_abandon_in_pacf")&&this.u&&Aqa(this,this.u)};g.u(iR,g.C);iR.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)?S("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Bqa(a,b,c,d,f),this.u.set(a.id,{Kd:a,listener:e,yp:h}),g.zN(this.J,[a],h))};
iR.prototype.removeCueRange=function(a){var b=this.u.get(a);b?(this.J.app.Zo([b.Kd],b.yp),this.u["delete"](a)):S("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
iR.prototype.C=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.Tu(a.id)};
iR.prototype.D=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.gz(a.id)};
g.u(Bqa,g.eF);mR.prototype.C=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.BE()};
mR.prototype.B=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.AE()};
mR.prototype.D=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.CE()};g.u(oR,ZJ);oR.prototype.uf=function(){return this.u()};
oR.prototype.B=function(){return this.C()};pR.prototype.Yf=function(){var a=this.J.dc();return a&&(a=a.Yf(1))?a:null};g.u(g.tR,rt);g.tR.prototype.N=function(a,b,c,d,e){return rt.prototype.N.call(this,a,b,c,d,e)};g.u(uR,g.C);g.k=uR.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.ZQ=function(a,b,c){var d=this.Vs(b,c);this.u=d;this.listeners.forEach(function(e){e.cG(d)});
a=pG(this,1);a.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=a.clientPlaybackNonce,this.listeners.forEach(function(){}))};
g.k.Vs=function(a,b){var c,d,e,f,h=a.author,l=a.clientPlaybackNonce,m=a.isListed,n=a.Hc,p=a.title,r=a.gg,t=a.nf,w=a.isMdxPlayback,y=a.Gg,x=a.mdxEnvironment,B=a.Kh,E=a.eh,G=a.videoId||"",K=a.lf||"",H=a.kg||"",ya=a.Cj||void 0;n=this.Sc.get().u.get(n)||{layoutId:null,slotId:null};var ia=this.J.getVideoData(1),Oa=ia.Wg(),Ra=ia.getPlayerResponse();ia=1E3*this.J.getDuration(b);var Wa=1E3*this.J.getDuration(1);Ra=(null===(d=null===(c=null===Ra||void 0===Ra?void 0:Ra.playerConfig)||void 0===c?void 0:c.daiConfig)||
void 0===d?void 0:d.enableDai)||(null===(f=null===(e=null===Ra||void 0===Ra?void 0:Ra.playerConfig)||void 0===e?void 0:e.daiConfig)||void 0===f?void 0:f.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},n),{videoId:G,author:h,clientPlaybackNonce:l,playbackDurationMs:ia,uC:Wa,daiEnabled:Ra,isListed:m,Wg:Oa,lf:K,title:p,kg:H,gg:r,nf:t,Cj:ya,isMdxPlayback:w,Gg:y,mdxEnvironment:x,Kh:B,eh:E})};
g.k.ca=function(){this.listeners.length=0;this.u=null;g.C.prototype.ca.call(this)};g.u(vR,g.C);g.k=vR.prototype;g.k.ej=function(){var a=this;this.u=cb(function(){a.J.na()||a.J.Wc("ad",1)})};
g.k.Pm=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.playVideo=function(){this.J.playVideo()};
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.XP=function(){if(2===this.J.getPresentingPlayerType())for(var a=kQ(this,2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Io(a)};
g.k.OP=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ko(a)};
g.k.UL=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.yo(a)};
g.k.VL=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.zo()};
g.k.kj=function(){for(var a=this.J.app.visibility.u,b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.kj(a)};
g.k.Va=function(){for(var a=g.cG(this.J).getPlayerSize(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ho(a)};g.u(Mqa,g.C);wR.prototype.executeCommand=function(a,b){pN(this.u(),a,b)};yR.prototype.lq=function(){var a=this;Pqa(this.B,function(){var b=X(a.slot.va,"metadata_type_ad_break_request_data");return a.od.get().fetch({pI:b.getAdBreakUrl,DC:new g.eF(b.eH,b.dH),Zp:X(a.slot.va,"metadata_type_cue_point")})},function(b){b=b.ph;
(!b.length||2<=b.length)&&S("Unexpected ad placement renderers length",a.slot,null,{length:b.length})})};
yR.prototype.u=function(){Qqa(this.B)};zR.prototype.lq=function(){var a=this;Pqa(this.B,function(){var b=X(a.slot.va,"metadata_type_ad_break_request_data");return a.od.get().fetch({pI:b.getAdBreakUrl,DC:new g.eF(b.eH,b.dH)})})};
zR.prototype.u=function(){Qqa(this.B)};KQ.prototype.lq=function(){rpa(this.callback,this.slot,X(this.slot.va,"metadata_type_fulfilled_layout"))};
KQ.prototype.u=function(){XP(this.callback,this.slot,new gH("Got CancelSlotFulfilling request for "+this.slot.ab+" in DirectFulfillmentAdapter."))};g.u(AR,Rqa);AR.prototype.u=function(a,b){if(JQ(b,{Be:["metadata_type_ad_break_request_data","metadata_type_cue_point"],ab:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yR(a,b,this.od,this.Cb,this.gb,this.Ca);if(JQ(b,{Be:["metadata_type_ad_break_request_data"],ab:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zR(a,b,this.od,this.Cb,this.gb,this.Ca);throw new gH("Unsupported slot with type: "+b.ab+" and client metadata: "+PP(b.va)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(BR,Rqa);BR.prototype.u=function(a,b){throw new gH("Unsupported slot with type: "+b.ab+" and client metadata: "+PP(b.va)+" in DefaultFulfillmentAdapterFactory.");};g.k=Sqa.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Nf(this.slot,a,new aQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.va,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.ab?(this.callback.xd(this.slot,a),yia(this.u,this.slot,b)):S("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.jh=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Nf(this.slot,a,new aQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.yd(this.slot,a,b)};DR.prototype.u=function(a,b,c,d){if(CR(d,{Be:["metadata_type_ad_break_response_data"],wg:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Sqa(a,c,d,this.B);throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.k=Tqa.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Nf(this.slot,a,new aQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.xd(this.slot,a),LO(this.Ia,"impression"),OR(this.u,a.layoutId))};
g.k.jh=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Nf(this.slot,a,new aQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.yd(this.slot,a,b)};ER.prototype.u=function(a,b,c,d){if(CR(d,Uqa()))return new Tqa(a,c,d,this.Fa,this.B);throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(FR,g.O);g.k=FR.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){this.u.get().addListener(this)};
g.k.release=function(){this.u.get().removeListener(this);this.dispose()};
g.k.Eq=function(){};
g.k.uy=function(){};
g.k.ty=function(){};
g.k.eu=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Nf(this.slot,a,new aQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),kra(a,this.wk,1))};
g.k.jh=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Nf(this.slot,a,new aQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();kra(c,this.wk,3);this.wk=[];this.callback.yd(this.slot,a,b)}};
g.k.ca=function(){this.u.get().removeListener(this);g.O.prototype.ca.call(this)};g.u(IR,FR);g.k=IR.prototype;g.k.If=function(a,b){HR(this.Jp,a,this.Nd.get().u,this.Fa.get(),this.Ah,this.cj,this.Ve(),this.Vd(),b)};
g.k.startRendering=function(a){GR(this.Ia,this.Ve(),this.Vd(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new RK(b,c,d,e,f)},this.wk);
FR.prototype.startRendering.call(this,a)};
g.k.xd=function(a,b){b.layoutId===this.layout.layoutId?LO(this.Ia,"impression"):this.cj===b.layoutId&&(null===this.Ah?this.Ah=this.Fa.get().Yf():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yd=function(){};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.ca=function(){this.me().B["delete"](this);FR.prototype.ca.call(this)};g.u(JR,FR);JR.prototype.init=function(){FR.prototype.init.call(this);var a=X(this.layout.va,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.td};this.wk.push(new VL(a,this.layout.layoutId,X(this.layout.va,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b))};
JR.prototype.startRendering=function(a){FR.prototype.startRendering.call(this,a);this.callback.xd(this.slot,a)};
JR.prototype.If=function(a){a:{var b=this.Nd.get();var c=this.cj;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.Fa.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.B||(a=this.ua.get(),2===a.J.getPlayerState(2)&&a.J.playVideo());break;case "ad-info-icon-button":(this.B=2===this.ua.get().J.getPlayerState(2))||
this.ua.get().pauseVideo();break;case "visit-advertiser":this.ua.get().pauseVideo();X(this.layout.va,"metadata_type_player_bytes_callback").dA();break;case "skip-button":a=X(this.layout.va,"metadata_type_player_bytes_callback"),a.Y&&a.pG()}};
JR.prototype.ca=function(){FR.prototype.ca.call(this)};LR.prototype.u=function(a,b,c,d){if(a=KR(a,c,d,this.Vb,this.ua,this.Fa,this.Nd))return a;throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(MR,g.C);MR.prototype.startRendering=function(a){if(a.layoutId!==this.Vd().layoutId)this.callback.Nf(this.Ve(),a,new aQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Vd().layoutId+("and LayoutType: "+this.Vd().layoutType)));else{var b=this.ua.get().J;g.xN(b.app,2);uM(this.Tc.get());this.IH(a)}};
MR.prototype.jh=function(a,b){this.JH(a,b);g.yN(this.ua.get().J,2);this.Yc.get().J.cueVideoByPlayerVars({},2);var c=nR(this.ua.get(),1);g.U(c,4)&&!g.U(c,2)&&this.ua.get().playVideo()};g.u(NR,MR);g.k=NR.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){if(1>=this.u.length)throw new gH("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),eQ(this.D,this.slot,b.Vd())};
g.k.release=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b.value.release()};
g.k.IH=function(){PR(this)};
g.k.HQ=function(a,b){fQ(this.D,a,b)};
g.k.JH=function(a,b){var c=this;if(this.B!==this.u.length-1){var d=this.u[this.B];d.jh(d.Vd(),b);this.C=function(){c.callback.yd(c.slot,c.layout,b)}}else this.callback.yd(this.slot,this.layout,b)};
g.k.JQ=function(a,b,c){$L(this.D,a,b,c);this.C?this.C():PR(this)};
g.k.IQ=function(a,b){$L(this.D,a,b,"error");this.C?this.C():PR(this)};g.u(TR,g.C);g.k=TR.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){X(this.layout.va,"metadata_type_player_bytes_callback_ref").current=this;VP(this.me(),this);this.ua.get().addListener(this);var a=X(this.layout.va,"metadata_type_video_length_seconds");Dqa(this.jb.get(),this.layout.layoutId,a,this);rR(this.Fa.get(),this)};
g.k.release=function(){X(this.layout.va,"metadata_type_player_bytes_callback_ref").current=null;this.me().B["delete"](this);this.ua.get().removeListener(this);Eqa(this.jb.get(),this.layout.layoutId);sR(this.Fa.get(),this);this.u&&this.Bb.get().removeCueRange(this.u);this.u=void 0;this.D.dispose()};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Nf(this.slot,a,new aQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if(DK(this.Dd.get(),1)){Zqa(this,!1);var b=X(a.va,"metadata_type_ad_video_id"),c=X(a.va,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Gd.get().J.T().K.add(b,{Up:c});(b=X(a.va,"metadata_type_sodar_extension_data"))&&Nqa(this.Bd.get(),
b);Lqa(this.ua.get(),!1);this.C(-1);this.B="rendering_start_requested";b=this.Yc.get();a=X(a.va,"metadata_type_player_vars");b.J.cueVideoByPlayerVars(a,2);this.D.start();this.Yc.get().J.playVideo(2)}else SR(this,"ui_unstable",new aQ("Failed to render media layout because ad ui unstable."))};
g.k.xd=function(a,b){var c,d;if(b.layoutId===this.layout.layoutId){this.B="rendering";LO(this.Ia,"impression");LO(this.Ia,"start");this.ua.get().isMuted()&&KO(this.Ia,"mute");this.ua.get().isFullscreen()&&KO(this.Ia,"fullscreen");this.D.stop();this.u="adcompletioncuerange:"+this.layout.layoutId;this.Bb.get().addCueRange(this.u,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(c=pG(this.Da.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set.");
xM(this.Tc.get());this.C(1);this.ld.get().u("onAdStart",this.adCpn);var e=(null===(d=X(this.layout.va,"metadata_type_instream_video_ad_commands"))||void 0===d?void 0:d.impressionCommands)||[],f=this.oc.get(),h=this.layout.layoutId;nN(f.u(),e,h)}};
g.k.dA=function(){KO(this.Ia,"clickthrough")};
g.k.jh=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Nf(this.slot,a,new aQ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.B="rendering_stop_requested",this.F=b,this.D.stop(),Lqa(this.ua.get(),!0))};
g.k.Tu=function(a){a!==this.u?S("Received CueRangeEnter signal for unknown layout.",this.slot,this.layout,{cueRangeId:a}):(this.Bb.get().removeCueRange(this.u),this.u=void 0,a=X(this.layout.va,"metadata_type_video_length_seconds"),Yqa(this,a,!0),LO(this.Ia,"complete"))};
g.k.yd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.B="not_rendering",this.F=void 0,wM(this.Tc.get()),Zqa(this,!0),"abandoned"!==c&&this.ld.get().u("onAdComplete"),this.ld.get().u("onAdEnd",this.adCpn),this.C(0),c){case "abandoned":var d;LO(this.Ia,"abandon");var e=(null===(d=X(this.layout.va,"metadata_type_instream_video_ad_commands"))||void 0===d?void 0:d.onAbandonCommands)||[];d=this.oc.get();a=this.layout.layoutId;nN(d.u(),e,a);break;case "normal":LO(this.Ia,"complete");d=
(null===(e=X(this.layout.va,"metadata_type_instream_video_ad_commands"))||void 0===e?void 0:e.completeCommands)||[];e=this.oc.get();a=this.layout.layoutId;nN(e.u(),d,a);break;case "skipped":LO(this.Ia,"skip")}};
g.k.tq=function(){return this.layout.layoutId};
g.k.Xx=function(){return this.R};
g.k.gz=function(){};
g.k.Io=function(a){Yqa(this,a)};
g.k.Ko=function(a){var b,c;if("not_rendering"!==this.B){this.I||(a=new g.EK(a.state,new g.AM),this.I=!0);var d=2===this.ua.get().getPresentingPlayerType();"rendering_start_requested"===this.B?d&&QR(a)&&this.callback.xd(this.slot,this.layout):g.GK(a,2)||!d?this.K():(QR(a)?this.C(1):a.state.isError()?SR(this,null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,new aQ("There was a player error during this media layout.",{playerErrorCode:null===(c=a.state.getData())||void 0===c?void 0:c.errorCode})):
g.GK(a,4)&&!g.GK(a,2)&&(KO(this.Ia,"pause"),this.C(2)),0>FK(a,4)&&!(0>FK(a,2))&&KO(this.Ia,"resume"))}};
g.k.BE=function(){LO(this.Ia,"active_view_measurable")};
g.k.AE=function(){LO(this.Ia,"active_view_fully_viewable_audible_half_duration")};
g.k.CE=function(){LO(this.Ia,"active_view_viewable")};
g.k.yo=function(a){2===this.ua.get().getPresentingPlayerType()&&(a?KO(this.Ia,"fullscreen"):KO(this.Ia,"end_fullscreen"))};
g.k.zo=function(){2===this.ua.get().getPresentingPlayerType()&&KO(this.Ia,this.ua.get().isMuted()?"mute":"unmute")};
g.k.kj=function(){};
g.k.Ho=function(){};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};g.u(UR,MR);g.k=UR.prototype;g.k.Ve=function(){return this.u.Ve()};
g.k.Vd=function(){return this.u.Vd()};
g.k.init=function(){this.u.init()};
g.k.release=function(){this.u.release()};
g.k.IH=function(a){this.u.startRendering(a)};
g.k.JH=function(a,b){this.u.jh(a,b)};VR.prototype.u=function(a,b,c,d){if(a=ara(a,b,c,d,this.me,this.B,this.Fa,this.jb,this.Bd,this.Yc,this.Da,this.ua,this.Bb,this.Tc,this.ld,this.Dd,this.oc,this.Gd))return a;throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.u(WR,g.C);g.k=WR.prototype;g.k.xd=function(a,b){var c=this;if(bra(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&NP(b,this.C)){var d=pG(this.Da.get(),2),e=this.u(b,d);e?nG(this.tb.get(),"opportunity_type_player_bytes_media_layout_entered",function(){return[xqa(c.ib.get(),e.contentCpn,e.pw,function(f){return c.B(f.slotId,"core",e,SP(c.gb.get(),f))},e.MD)]}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.cf=function(){};
g.k.bi=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.yd=function(){};var HS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=dra.prototype;g.k.init=function(){};
g.k.Ve=function(){return this.slot};
g.k.Lx=function(){this.callback.cf(this.slot)};
g.k.Qx=function(){this.callback.df(this.slot)};
g.k.release=function(){};ZR.prototype.u=function(a,b){return new dra(a,b)};g.k=era.prototype;g.k.init=function(){};
g.k.Ve=function(){return this.slot};
g.k.Lx=function(){var a=this.ua.get();g.I(a.J.getRootNode(),"ad-showing");this.callback.cf(this.slot)};
g.k.Qx=function(){this.callback.df(this.slot);var a=this.ua.get();g.sn(a.J.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=fra.prototype;g.k.init=function(){lH(this.slot)&&(this.u=!0)};
g.k.Ve=function(){return this.slot};
g.k.Lx=function(){var a=this.ua.get();g.I(a.J.getRootNode(),"ad-showing");a=this.ua.get();g.I(a.J.getRootNode(),"ad-interrupting");this.callback.cf(this.slot)};
g.k.Qx=function(){gra(this);var a=this.ua.get();g.sn(a.J.getRootNode(),"ad-showing");a=this.ua.get();g.sn(a.J.getRootNode(),"ad-interrupting");this.callback.df(this.slot)};
g.k.release=function(){gra(this)};$R.prototype.u=function(a,b){if(eH(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new era(a,b,this.ua);if(eH(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new fra(a,b,this.ua);throw new gH("Unsupported slot with type "+b.ab+" and client metadata: "+(PP(b.va)+" in PlayerBytesSlotAdapterFactory."));};g.u(bS,g.C);bS.prototype.Eq=function(a){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof xQ&&2===d.category&&e.u===a&&b.push(d)}b.length&&gQ(this.kz(),b)};g.u(cS,bS);g.k=cS.prototype;g.k.If=function(a,b){if(b)if("survey-submit"===a){for(var c=[],d=g.q(this.ob.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof yQ&&f.u===b&&c.push(e)}c.length?gQ(this.kz(),c):S("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){c=[];d=g.q(this.ob.values());for(e=d.next();!e.done;e=d.next())e=e.value,f=e.trigger,f instanceof xQ&&1===e.category&&f.u===b&&c.push(e);c.length&&gQ(this.kz(),c)}};
g.k.Eq=function(a){bS.prototype.Eq.call(this,a)};
g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof yQ||b instanceof xQ))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.ob.set(b.triggerId,new aS(a,b,c,d))};
g.k.mh=function(a){this.ob["delete"](a.triggerId)};
g.k.uy=function(){};
g.k.ty=function(){};
g.k.eu=function(){};g.u(dS,g.C);g.k=dS.prototype;
g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof ZQ||b instanceof $Q||b instanceof aR||b instanceof bR||b instanceof cR||b instanceof RQ||b instanceof mH||b instanceof wQ||b instanceof DQ||b instanceof QQ||b instanceof VQ))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new aS(a,b,c,d);this.ob.set(b.triggerId,a);b instanceof cR&&this.F.has(b.B)&&
gQ(this.u(),[a]);b instanceof ZQ&&this.C.has(b.B)&&gQ(this.u(),[a]);b instanceof mH&&this.B.has(b.u)&&gQ(this.u(),[a])};
g.k.mh=function(a){this.ob["delete"](a.triggerId)};
g.k.Ag=function(a){this.F.add(a.slotId);for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof cR&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&gQ(this.u(),b)};
g.k.nj=function(a){this.F["delete"](a.slotId)};
g.k.bi=function(a){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RQ&&e.ab===a.ab&&e.D!==a.slotId&&b.push(d)}0<b.length&&gQ(this.u(),b)};
g.k.cf=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof ZQ&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&gQ(this.u(),b)};
g.k.df=function(a){this.C["delete"](a.slotId);this.D.add(a.slotId);for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof $Q)a.slotId===d.trigger.B&&b.push(d);else if(d.trigger instanceof VQ){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.u)&&b.push(d)}0<b.length&&gQ(this.u(),b)};
g.k.lj=function(a){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof aR&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&gQ(this.u(),b)};
g.k.mj=function(a){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof bR&&a.slotId===d.trigger.B&&b.push(d);0<b.length&&gQ(this.u(),b)};
g.k.ai=function(a,b){this.I.add(b.layoutId)};
g.k.jj=function(a,b){this.I["delete"](b.layoutId)};
g.k.xd=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.q(this.ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof mH)b.layoutId===e.trigger.u&&c.push(e);else if(e.trigger instanceof QQ){var f=e.trigger;a.ab===f.ab&&b.layoutType===f.layoutType&&b.layoutId!==f.D&&c.push(e)}else e.trigger instanceof VQ&&(f=e.trigger,b.layoutId===f.u&&this.D.has(f.slotId)&&c.push(e));0<c.length&&gQ(this.u(),c)};
g.k.yd=function(a,b,c){this.B["delete"](b.layoutId);a=[];for(var d=g.q(this.ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof wQ&&b.layoutId===e.trigger.u&&a.push(e),e.trigger instanceof DQ&&b.layoutId===e.trigger.u&&"error"===c&&a.push(e);0<a.length&&gQ(this.u(),a)};
g.k.Zg=function(){};
g.k.ej=function(){this.D.clear()};
g.k.Pm=function(){};g.u(eS,g.C);eS.prototype.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof kH||b instanceof XQ))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ob.set(b.triggerId,new aS(a,b,c,d))};
eS.prototype.mh=function(a){this.ob["delete"](a.triggerId)};
eS.prototype.ej=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.q(this.ob.values()),h=f.next();!h.done;h=f.next())h=h.value,h.trigger instanceof kH&&h.trigger.C===a&&e.push(h);d.call(c,b,g.ma(e));b.push.apply(b,g.ma(hra(this.ob,a,!1)));b.length&&gQ(this.u(),b)};
eS.prototype.Pm=function(a){var b=[];b.push.apply(b,g.ma(hra(this.ob,a,!0)));b.length&&gQ(this.u(),b)};g.u(fS,g.C);g.k=fS.prototype;
g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof nH)gS(this,a,b,c,d,e,b.D.start,b.D.end,b.C,b.visible);else if(b instanceof WQ)gS(this,a,b,c,d,e,b.D.start,b.D.end,b.C,!1);else if(b instanceof UQ)gS(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.C,b.visible);else throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.mh=function(a){var b=this.ob.get(a.triggerId);b&&(this.Bb.get().removeCueRange(b.u),this.B["delete"](b.u));this.ob["delete"](a.triggerId)};
g.k.Tu=function(a){if(!this.B.has(a)&&(a=ira(this,a))&&(a=this.ob.get(a)))if(g.U(nR(this.ua.get()),32))this.u.add(a.u);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof nH||b instanceof UQ)b instanceof nH&&b.I&&this.B.add(a.u),gQ(this.C(),[a.bundle])}};
g.k.gz=function(a){if(a=ira(this,a))if(a=this.ob.get(a))this.u["delete"](a.u),a.bundle.trigger instanceof WQ&&gQ(this.C(),[a.bundle])};
g.k.Ko=function(a){if(0>FK(a,16)){a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Tu(b.value);this.u.clear()}};
g.k.Io=function(){};
g.k.yo=function(){};
g.k.kj=function(){};
g.k.Ho=function(){};
g.k.zo=function(){};g.u(hS,g.C);g.k=hS.prototype;g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof zQ||b instanceof YQ))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ob.set(b.triggerId,new aS(a,b,c,d))};
g.k.mh=function(a){this.ob["delete"](a.triggerId)};
g.k.hn=function(){};
g.k.Jk=function(){};
g.k.Ii=function(){};
g.k.xd=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.ab&&(null!=this.u?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.u=b.layoutId)};
g.k.yd=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ab&&(this.u=null)};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ab&&(null!=this.B?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.B=a.slotId)};
g.k.df=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ab&&(null===this.B?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.B=null)};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.Vp=function(){null!=this.u&&OR(this,this.u)};
g.k.kq=function(a){if(null===this.B){for(var b=[],c=g.q(this.ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YQ&&d.trigger.slotId===a&&b.push(d);b.length&&gQ(this.C(),b)}};
g.k.Ct=function(){};g.u(iS,g.C);g.k=iS.prototype;g.k.Zg=function(a,b){for(var c=[],d=g.q(this.ob.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&&gQ(this.u(),c)};
g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof rqa))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.ob.set(b.triggerId,new aS(a,b,c,d))};
g.k.mh=function(a){this.ob["delete"](a.triggerId)};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.xd=function(){};
g.k.yd=function(){};g.u(jS,g.C);jS.prototype.init=function(){};
jS.prototype.release=function(){};
jS.prototype.ca=function(){this.Od.get().removeListener(this);g.C.prototype.ca.call(this)};kS.prototype.fetch=function(a){var b=this,c=a.DC;return this.Qw.fetch(a.pI,{Zp:void 0===a.Zp?void 0:a.Zp,Kd:c}).then(function(d){var e=null,f=null;if(g.Q(b.Ca.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.Is(h)))}return jra(f,c)})};g.u(lS,g.C);g.k=lS.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){mS(this,function(c){c.If(a,b)})};
g.k.TL=function(a){mS(this,function(b){b.uy(a)})};
g.k.SL=function(a){mS(this,function(b){b.ty(a)})};
g.k.aO=function(a){mS(this,function(b){b.eu(a)})};oS.prototype.u=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.J.xa(a,c)};qS.prototype.addListener=function(a){this.listeners.push(a)};
qS.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=mra.prototype;g.k.Ve=function(){return this.slot};
g.k.Vd=function(){return this.layout};
g.k.init=function(){var a;this.Da.get().addListener(this);this.ee.get().addListener(this);this.ua.get().addListener(this);this.B.forEach(function(d){d.init()});
var b=X(this.layout.va,"metadata_type_layout_enter_ms"),c=X(this.layout.va,"metadata_type_layout_exit_ms");qR(this.Fa.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:null===(a=this.Da.get().u)||void 0===a?void 0:a.clientPlaybackNonce,adClientData:this.layout.td.adClientDataEntry}});b=pra(this.ee.get(),b,c);null!==b&&Ara(this.eg.get(),b,c)};
g.k.release=function(){this.u=null;this.B.forEach(function(a){a.release()});
this.Da.get().removeListener(this);this.ee.get().removeListener(this);this.ua.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.u)S("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Da.get().u)||void 0===a?void 0:a.layoutId;ora(this,b);this.callback.xd(this.slot,this.layout);LO(this.Ia,"ad_placement_start")}};
g.k.jh=function(a,b){var c,d;null===(d=null===(c=this.u)||void 0===c?void 0:c.zi)||void 0===d?void 0:d.jh(b);this.u=null;null!==this.driftRecoveryMs&&(rS(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(qra(this)-X(this.layout.va,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.ua.get().J.Ni()).toString()}),this.driftRecoveryMs=null);this.callback.yd(this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=kQ(this.ua.get(),2,!0);var f=
X(this.layout.va,"metadata_type_layout_exit_ms")/1E3;e=1>=Math.abs(e-f)}e&&LO(this.Ia,"ad_placement_end")};
g.k.cG=function(a){a=a.layoutId;var b,c;this.u&&(null===(b=this.u.zi)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.u.zi)||void 0===c?void 0:c.jh("normal"),ora(this,a))};
g.k.UF=function(){};
g.k.LF=function(a){var b=X(this.layout.va,"metadata_type_layout_enter_ms"),c=X(this.layout.va,"metadata_type_layout_exit_ms");a*=1E3;b<=a&&a<c&&Ara(this.eg.get(),a,c)};
g.k.Io=function(){var a=kQ(this.ua.get(),2,!0);if(this.u){var b=X(this.layout.va,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=qra(this),e=this.ua.get().J.Ni(),f=Math.min(a+e,d/1E3);f<=a?rS(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(rS(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.ua.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.Ko=function(){};
g.k.yo=function(){};
g.k.kj=function(){};
g.k.Ho=function(){};
g.k.zo=function(){};g.k=rra.prototype;
g.k.init=function(){X(this.layout.va,"metadata_type_player_bytes_callback_ref").current=this;var a=X(this.layout.va,"metadata_type_video_length_seconds"),b=X(this.layout.va,"metadata_type_player_vars"),c=X(this.layout.va,"metadata_type_layout_enter_ms"),d=X(this.layout.va,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c){var f=this.eg.get();if(b=QAa(f.J.app,b,e,c,d)){f=this.Sc.get();var h=this.slot.slotId,l=this.layout.layoutId;b?(f.u.has(b)&&S("Unexpected remap of timeline playback"),f.u.set(b,{slotId:h,
layoutId:l})):S("Invalid timeline playback ID");c+e>d&&(c=d-c,d=this.eg.get(),RAa(d.J.app,b,c))}else S("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},sS(this.layout)),{compositeLayout:tra(X(this.slot.va,"metadata_type_fulfilled_layout"))}))}else S("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},sS(this.layout)),{compositeLayout:tra(X(this.slot.va,"metadata_type_fulfilled_layout"))}));this.ua.get().addListener(this);
Dqa(this.jb.get(),this.layout.layoutId,a,this);eQ(this.callback,this.slot,this.layout)};
g.k.release=function(){this.ua.get().removeListener(this);Eqa(this.jb.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.u)S("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={bz:null,tH:!1};var a=X(this.layout.va,"metadata_type_sodar_extension_data");if(a)try{Nqa(this.Bd.get(),a)}catch(b){S("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}fQ(this.callback,this.slot,this.layout)}};
g.k.jh=function(a){this.u?(this.u=null,$L(this.callback,this.slot,this.layout,a)):S("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Io=function(a){if(this.u){if(this.Ia.u.has("impression")){var b=nR(this.ua.get());sra(this,b,a,this.u.bz)}this.u.bz=a}};
g.k.Ko=function(a){if(this.u){this.u.tH||(this.u.tH=!0,a=new g.EK(a.state,new g.AM));var b=kQ(this.ua.get(),2,!1);QR(a)&&RR(b,0,null)&&LO(this.Ia,"impression");if(this.Ia.u.has("impression")&&(g.GK(a,4)&&!g.GK(a,2)&&KO(this.Ia,"pause"),0>FK(a,4)&&!(0>FK(a,2))&&KO(this.Ia,"resume"),g.GK(a,16)&&.5<=kQ(this.ua.get(),2,!1)&&KO(this.Ia,"seek"),g.GK(a,2))){var c=X(this.layout.va,"metadata_type_video_length_seconds"),d=1>=Math.abs(c-b);sra(this,a.state,d?c:b,this.u.bz);d&&LO(this.Ia,"complete")}}};
g.k.yo=function(a){this.Ia.u.has("impression")&&KO(this.Ia,a?"fullscreen":"end_fullscreen")};
g.k.kj=function(){};
g.k.Ho=function(){};
g.k.pG=function(){};
g.k.zo=function(){};
g.k.dA=function(){this.Ia.u.has("impression")&&KO(this.Ia,"clickthrough")};
g.k.BE=function(){KO(this.Ia,"active_view_measurable")};
g.k.AE=function(){this.Ia.u.has("impression")&&!this.Ia.u.has("seek")&&KO(this.Ia,"active_view_fully_viewable_audible_half_duration")};
g.k.CE=function(){this.Ia.u.has("impression")&&!this.Ia.u.has("seek")&&KO(this.Ia,"active_view_viewable")};tS.prototype.u=function(a,b,c,d){if(c.va.u.has("metadata_type_dai")){a:{var e=X(d.va,"metadata_type_sub_layouts"),f=X(d.va,"metadata_type_ad_placement_config");if(CR(d,{Be:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],wg:["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=X(l.va,"metadata_type_sub_layout_index");if(!CR(l,{Be:["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"],wg:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new GO(l.kd,this.Fa,f,l.layoutId,m);h.push(new rra(b,c,l,this.eg,m,this.ua,this.Sc,this.jb,this.Bd))}b=new GO(d.kd,this.Fa,f,d.layoutId);a=new mra(a,c,d,this.Da,this.eg,this.ee,this.ua,b,this.Fa,h)}else a=null}if(a)return a}else if(a=ara(a,b,c,d,this.me,this.B,this.Fa,this.jb,this.Bd,this.Yc,this.Da,this.ua,this.Bb,
this.Tc,this.ld,this.Dd,this.oc,this.Gd))return a;throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(uS,g.C);g.k=uS.prototype;g.k.UF=function(a){this.u&&ura(this,this.u,a)};
g.k.LF=function(){};
g.k.ej=function(a){this.u&&this.u.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn}),this.u=null)};
g.k.Pm=function(a){this.u&&this.u.contentCpn!==a&&S("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.ca=function(){g.C.prototype.ca.call(this);this.u=null};g.u(vS,g.C);
vS.prototype.ih=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new gH("Tried to re-register the trigger.");a=new aS(a,b,c,d);if(a.trigger instanceof uqa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof qqa)this.C.set(a.trigger.triggerId,a);else throw new gH("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.u&&gQ(this.D(),[a])};
vS.prototype.mh=function(a){this.B["delete"](a.triggerId);this.C["delete"](a.triggerId)};
vS.prototype.cG=function(a){a=a.slotId;if(this.u!==a){var b=[];null!=this.u&&b.push.apply(b,g.ma(vra(this.C,this.u)));null!=a&&b.push.apply(b,g.ma(vra(this.B,a)));this.u=a;b.length&&gQ(this.D(),b)}};g.u(wS,g.C);g.k=wS.prototype;g.k.ej=function(){this.D=new fM(this,Cqa(this.Ca.get()));this.C=new gM;wra(this)};
g.k.Pm=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.VF=function(a){this.u.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.UF(a)};
g.k.MF=function(a){g.Bb(this.C.u,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.LF(a)};
g.k.Ez=function(a){var b=pG(this.Da.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,b&&qR(this.Fa.get(),{cuepointTrigger:{event:xra(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),this.D.reduce(e)};
g.k.ca=function(){this.J.getVideoData(1).unsubscribe("cuepointupdated",this.Ez,this);this.listeners.length=0;this.B.clear();this.u.length=0;g.C.prototype.ca.call(this)};xS.prototype.addListener=function(a){this.listeners.add(a)};
xS.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(yS,FR);g.k=yS.prototype;g.k.If=function(a,b){HR(this.Jp,a,this.Nd.get().u,this.Fa.get(),this.Ah,this.cj,this.Ve(),this.Vd(),b)};
g.k.startRendering=function(a){GR(this.Ia,this.Ve(),this.Vd(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Fna(b,c,d,e,f)},this.wk);
FR.prototype.startRendering.call(this,a)};
g.k.xd=function(a,b){b.layoutId===this.layout.layoutId?LO(this.Ia,"impression"):this.cj===b.layoutId&&(null===this.Ah?this.Ah=this.Fa.get().Yf():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yd=function(){};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.ca=function(){this.me().B["delete"](this);FR.prototype.ca.call(this)};g.u(zS,FR);g.k=zS.prototype;g.k.If=function(a,b){HR(this.Jp,a,this.Nd.get().u,this.Fa.get(),this.Ah,this.cj,this.Ve(),this.Vd(),b)};
g.k.startRendering=function(a){GR(this.Ia,this.Ve(),this.Vd(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new EL(b,c,d,e,f)},this.wk);
FR.prototype.startRendering.call(this,a)};
g.k.xd=function(a,b){b.layoutId===this.layout.layoutId?LO(this.Ia,"impression"):this.cj===b.layoutId&&(null===this.Ah?this.Ah=this.Fa.get().Yf():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.yd=function(){};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.ca=function(){this.me().B["delete"](this);FR.prototype.ca.call(this)};Dra.prototype.u=function(a,b,c,d){if(CR(d,Vqa()))return new IR(a,c,d,this.Vb,this.Fa,this.me,this.jb,this.Nd);if(CR(d,Bra()))return new yS(a,c,d,this.Vb,this.Fa,this.me,this.jb,this.Nd);if(CR(d,Cra()))return new zS(a,c,d,this.Vb,this.Fa,this.me,this.jb,this.Nd);throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(AS,FR);g.k=AS.prototype;g.k.Io=function(){};
g.k.Ko=function(){};
g.k.yo=function(){};
g.k.kj=function(a){a&&ES(this.B,this.layout)};
g.k.Ho=function(a){var b=QO(this.layout);if(this.C=PO(a,Kqa(this.ua.get())))b.onErrorCommand&&this.oc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),ES(this.B,this.layout)};
g.k.zo=function(){};
g.k.tq=function(){return this.Vd().layoutId};
g.k.Xx=function(){return this.C};
g.k.If=function(a){"in_video_overlay_close_button"===a&&ES(this.B,this.layout)};
g.k.eu=function(a){"invideo-overlay"===a&&ES(this.B,this.layout)};
g.k.startRendering=function(a){FR.prototype.startRendering.call(this,a);this.callback.xd(this.slot,a)};
g.k.init=function(){FR.prototype.init.call(this);rR(this.Fa.get(),this);this.ua.get().addListener(this);this.wk.push(new oL(QO(this.layout),JO(this.Ia),this.layout.layoutId,{adsClientData:this.layout.td}))};
g.k.release=function(){FR.prototype.release.call(this);this.ua.get().removeListener(this);sR(this.Fa.get(),this)};g.u(BS,FR);g.k=BS.prototype;g.k.init=function(){FR.prototype.init.call(this);rR(this.Fa.get(),this);this.ua.get().addListener(this);this.wk.push(new oL(QO(this.layout),JO(this.Ia),this.layout.layoutId,{adsClientData:this.layout.td}))};
g.k.startRendering=function(a){FR.prototype.startRendering.call(this,a);this.callback.xd(this.slot,a)};
g.k.If=function(a){"in_video_overlay_close_button"===a&&ES(this.B,this.layout)};
g.k.uy=function(a){if("invideo-overlay"===a){a=Fra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.eu=function(a){"invideo-overlay"===a&&ES(this.B,this.layout)};
g.k.ty=function(a){if("invideo-overlay"===a){a=Fra(this.D,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Io=function(){};
g.k.Ko=function(){};
g.k.yo=function(){};
g.k.kj=function(a){a&&ES(this.B,this.layout)};
g.k.Ho=function(a){var b=QO(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=Kqa(this.ua.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.kb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.ie(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.ie(0,0)}if(this.C=PO(a,d,c))b.onErrorCommand&&this.oc.get().executeCommand(b.onErrorCommand,this.layout.layoutId),ES(this.B,this.layout)};
g.k.zo=function(){};
g.k.tq=function(){return this.Vd().layoutId};
g.k.Xx=function(){return this.C};
g.k.release=function(){FR.prototype.release.call(this);this.ua.get().removeListener(this);sR(this.Fa.get(),this)};CS.prototype.u=function(a,b,c,d){if(b=KR(a,c,d,this.Vb,this.ua,this.Fa,this.Nd))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(HO()),f=e.next();!f.done;f=e.next())b.push(f.value);if(CR(d,{Be:b,wg:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}))return new BS(c,d,this.Fa,this.jb,this.Vb,a,this.B,this.C,this.ua,this.oc,this.Ca);if(CR(d,Era()))return new AS(c,d,this.Fa,this.jb,this.Vb,a,this.B,this.ua,this.oc,this.Ca);throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
PP(d.va)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(DS,g.C);DS.prototype.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof pqa))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.ob.set(b.triggerId,new aS(a,b,c,d))};
DS.prototype.mh=function(a){this.ob["delete"](a.triggerId)};g.u(FS,g.C);g.k=FS.prototype;g.k.ih=function(a,b,c,d){if(this.ob.has(b.triggerId))throw new gH("Tried to register duplicate trigger for slot.");if(!(b instanceof CQ))throw new gH("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ob.set(b.triggerId,new aS(a,b,c,d));a=this.u.has(b.u)?this.u.get(b.u):new Set;a.add(b);this.u.set(b.u,a)};
g.k.mh=function(a){this.ob["delete"](a.triggerId);if(!(a instanceof CQ))throw new gH("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.u))b["delete"](a),0===b.size&&this.u["delete"](a.u)};
g.k.Ag=function(){};
g.k.nj=function(){};
g.k.bi=function(){};
g.k.cf=function(){};
g.k.df=function(){};
g.k.lj=function(){};
g.k.mj=function(){};
g.k.ai=function(){};
g.k.jj=function(){};
g.k.Zg=function(){};
g.k.xd=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={Ep:e.Ep},f=d.next())e.Ep=f.value,f=new g.F(function(h){return function(){var l=c.ob.get(h.Ep.triggerId);gQ(c.C(),[l])}}(e),e.Ep.durationMs),f.start(),this.B.set(e.Ep.triggerId,f)}};
g.k.yd=function(){};g.u(GS,g.C);GS.prototype.init=function(){};
GS.prototype.release=function(){};
GS.prototype.ca=function(){this.bj.get().removeListener(this);g.C.prototype.ca.call(this)};g.u(Gra,g.C);g.u(Hra,g.C);g.u(Ira,g.C);g.u(Jra,g.C);g.u(IS,JR);IS.prototype.startRendering=function(a){JR.prototype.startRendering.call(this,a);X(this.layout.va,"metadata_ad_video_is_listed")&&(a=X(this.layout.va,"metadata_type_ad_info_ad_metadata"),this.Jn.get().J.xa("onAdMetadataAvailable",a))};Kra.prototype.u=function(a,b,c,d){b=Wqa();b.Be.push("metadata_type_ad_info_ad_metadata");if(CR(d,b))return new IS(a,c,d,this.Vb,this.ua,this.Fa,this.Nd,this.Jn);throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(Lra,g.C);Mra.prototype.u=function(a,b,c,d){if(a=KR(a,c,d,this.Vb,this.ua,this.Fa,this.Nd))return a;throw new aQ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PP(d.va)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(Nra,g.C);g.u(Pra,g.C);g.k=Qra.prototype;g.k.kq=function(a){a:{var b=g.q(this.B.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.yi.kq(a);else try{this.u().kq(a)}catch(e){g.Fo(e)}};
g.k.Vp=function(){a:{var a=jQ(this.B.u,"SLOT_TYPE_ABOVE_FEED_1");a=g.q(a.values());for(var b=a.next();!b.done;b=a.next())if(iQ(b.value)){a=!0;break a}a=!1}a?this.yi.Vp():this.u().Vp()};
g.k.Ct=function(a){this.u().Ct(a)};
g.k.hn=function(){this.u().hn()};
g.k.Jk=function(){this.u().Jk()};
g.k.Ii=function(){this.u().Ii()};g.u(g.JS,g.O);g.k=g.JS.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Ae=function(){};
g.k.ii=function(){return!0};
g.k.ca=function(){this.loaded&&this.unload();g.O.prototype.ca.call(this)};
g.k.sb=function(){return{}};
g.k.getOptions=function(){return[]};g.u(KS,g.JS);g.k=KS.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.JS.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.B.u.Ke.qg,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=Tra(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);uN(a)?(this.u=new rN(this,this.player,this.D,b,this.B.u.Ke),qna(this.u,f.em),zqa(this.B.u.ik,c,h,f.Mo,f.Mo.concat(f.em),e,d),sN(this.u)):(zqa(this.B.u.ik,c,h,f.Mo,f.Mo.concat(f.em),e,d),this.u=new rN(this,this.player,this.D,b,this.B.u.Ke),qna(this.u,f.em))};
g.k.destroy=function(){var a=this.player.getVideoData(1);Aqa(this.B.u.ik,a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.JS.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.ii=function(){return!1};
g.k.yA=function(){return null===this.u?!1:this.u.yA()};
g.k.ij=function(a){null!==this.u&&this.u.ij(a)};
g.k.getAdState=function(){return this.u?this.u.Aa:-1};
g.k.getOptions=function(){return Object.values(TCa)};
g.k.Ae=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=TJ(this.player);Object.assign(d,c.u);this.u&&!d.AD_CPN&&(d.AD_CPN=this.u.Ja);c=g.en(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 LS,MS,NS,OS,PS;
QS.prototype.encrypt=function(a){var b=yz?new xz("saesenc"):null,c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.C,e=0;e<c&&16>this.B;)a[e++]^=d[this.B++];for(var f=c-(c-e)%16;e<f;)Vra(this),a[e++]^=d[0],a[e++]^=d[1],a[e++]^=d[2],a[e++]^=d[3],a[e++]^=d[4],a[e++]^=d[5],a[e++]^=d[6],a[e++]^=d[7],a[e++]^=d[8],a[e++]^=d[9],a[e++]^=d[10],a[e++]^=d[11],a[e++]^=d[12],a[e++]^=d[13],a[e++]^=d[14],a[e++]^=d[15];if(e<c)for(Vra(this),this.B=0;e<c;)a[e++]^=d[this.B++];Bz(b,
Math.ceil(c/16));return a};g.u(g.RS,g.C);g.k=g.RS.prototype;g.k.Wv=function(){};
g.k.jn=ba(5);g.k.Yu=function(){return this.C};
g.k.Ao=function(a){var b="";a&&(Wra(this,a),b=a.u);this.We()&&""==b||(b&&this.We()!=b&&this.bw(b),UCa||a&&a.B||this.load(),this.K||(this.addEventListener("volumechange",this.qC),this.K=!0))};
g.k.tm=function(){var a=this.Pa();a=window.MediaSource?new AB(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new AB(new window.WebKitMediaSource,void 0,!1):new AB(void 0,a,!1);this.Ao(a.Tq);return a};
g.k.playVideo=function(){this.Yi()&&this.seekTo(0);!this.We()&&this.C&&(M(Error("playVideo without src")),this.bw(this.C.u),this.C.B||this.load());var a=this.play();!a&&VCa&&UU&&7<=tJ&&g.mp(this,"playing",(0,g.z)(function(){g.Go((0,g.z)(this.UC,this,this.getCurrentTime(),0),500)},this));
return a};
g.k.UC=function(a,b){this.pl()||this.getCurrentTime()>a||10<b||(this.play(),g.Go((0,g.z)(this.UC,this,this.getCurrentTime(),b+1),500))};
g.k.seekTo=function(a){0<this.yg()&&(WCa&&UU&&4>tJ&&(a=Math.max(.1,a)),this.Zv(a))};
g.k.stopVideo=function(){this.We()&&(XCa&&or&&0<this.getCurrentTime()&&this.seekTo(0),this.Uv(),this.load(),Wra(this,null))};
g.k.eo=function(){var a=this.Gf();return 0<eA(a)&&this.getDuration()?dA(a,this.getCurrentTime()):0};
g.k.rm=function(){var a=this.getDuration();return Infinity==a?1:a?this.eo()/a:0};
g.k.sb=function(){try{var a=this.Co();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Wz(this.xm(),",",3),vbu:Wz(this.Gf()),vpa:""+ +this.pl(),vsk:""+ +this.Wq(),ven:""+ +this.Yi(),vpr:""+this.getPlaybackRate(),vrs:""+this.yg(),vns:""+this.St(),vec:""+this.Sh(),vemsg:this.Bo(),vvol:""+this.getVolume(),vdom:""+ +this.Ky(),vsrc:""+ +!!this.We(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.F.wa(a,b,!1,this);this.Kx(a)};
g.k.removeEventListener=function(a,b){this.F.Mb(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.F.dispatchEvent(a)};
g.k.Fx=function(){this.I=!1};
g.k.Ex=function(){this.I=!0;this.gp(!0)};
g.k.qC=function(){this.I&&!this.Rt()&&this.gp(!0)};
g.k.ca=function(){this.K&&this.removeEventListener("volumechange",this.qC);g.C.prototype.ca.call(this)};
var UCa=!1,XCa=!0,VCa=!0,WCa=!0;g.u(VS,g.El);VS.prototype.preventDefault=function(){g.El.prototype.preventDefault.call(this);this.B&&this.B.preventDefault()};
VS.prototype.stopPropagation=function(){g.El.prototype.stopPropagation.call(this);this.B&&this.B.stopPropagation()};La(WS);var w0=g.v.ytPlayerUtilsVideoTagPoolInstance||WS.getInstance();g.Fa("ytPlayerUtilsVideoTagPoolInstance",w0,void 0);g.k=WS.prototype;g.k.QC=function(a){if(!(this.u.length>=a)){a-=this.u.length;for(var b=0;b<a;b++)$ra(this)}};
g.k.xK=function(a,b){if(this.u.length)return this.u.pop();var c=$ra(this,a,b);a||g.ob(this.u,c);return c};
g.k.ER=function(a){a&&g.jb(this.B,a)&&(a.fi(),np(a),g.ob(this.B,a),g.ob(this.C,a))};
g.k.bL=function(a){return this.u.length>=(a||1)};
g.k.pJ=function(){for(var a=this.C.length-1;0<=a;a--)XS(this,this.C[a]);this.u.length==this.B.length&&4<=this.u.length||(4>this.B.length?this.QC(4):(this.u=[],g.Cb(this.B,function(b){XS(this,b)},this)))};
WS.prototype.fillPool=WS.prototype.QC;WS.prototype.getTag=WS.prototype.xK;WS.prototype.releaseTag=WS.prototype.ER;WS.prototype.hasTags=WS.prototype.bL;WS.prototype.activateTags=WS.prototype.pJ;g.u(g.YS,g.RS);g.k=g.YS.prototype;g.k.ol=function(){return!0};
g.k.isView=function(){return!1};
g.k.Wv=function(){return!1};
g.k.Pa=function(){return this.u};
g.k.We=function(){return this.u.src};
g.k.bw=function(a){var b=this.getPlaybackRate();this.u.src=a;this.setPlaybackRate(b)};
g.k.Uv=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.sm=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.pl=function(){return this.u.paused};
g.k.Wq=function(){return this.u.seeking};
g.k.Yi=function(){return this.u.ended};
g.k.Rt=function(){return this.u.muted};
g.k.gp=function(a){sB();this.u.muted=a};
g.k.xm=function(){return this.u.played||Vz([],[])};
g.k.Gf=function(){try{var a=this.u.buffered}catch(b){}return a||Vz([],[])};
g.k.yq=function(){return this.u.seekable||Vz([],[])};
g.k.Zu=function(){return this.u.getStartDate?this.u.getStartDate():null};
g.k.getCurrentTime=function(){return this.u.currentTime};
g.k.Zv=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.yg=function(){return this.u.readyState};
g.k.St=function(){return this.u.networkState};
g.k.Sh=function(){return this.u.error?this.u.error.code:null};
g.k.Bo=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.Ze=function(){return!!this.u.webkitCurrentPlaybackTargetIsWireless};
g.k.fn=function(){return!!this.u.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){qB()?this.u!=window.document.pictureInPictureElement?this.u.requestPictureInPicture():window.document.exitPictureInPicture():rB()&&this.u.webkitSetPresentationMode("picture-in-picture"==this.u.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Pk=function(){var a=this.u;return new g.ge(a.offsetLeft,a.offsetTop)};
g.k.setPosition=function(a){return g.Cg(this.u,a)};
g.k.Co=function(){return g.Lg(this.u)};
g.k.setSize=function(a){return g.Kg(this.u,a)};
g.k.getVolume=function(){return this.u.volume};
g.k.setVolume=function(a){sB();this.u.volume=a};
g.k.Kx=function(a){if(!this.B[a]){var b=(0,g.z)(this.DL,this);this.u.addEventListener(a,b);this.B[a]=b}};
g.k.DL=function(a){this.dispatchEvent(new VS(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.Lp=ba(7);g.k.hs=ba(9);g.k.jn=ba(4);g.k.Wp=ba(11);g.k.iq=function(){return pt(this.u)};
g.k.Aq=function(a){return g.yg(this.u,a)};
g.k.Ky=function(){return g.Me(document.body,this.u)};
g.k.ca=function(){for(var a in this.B)this.u.removeEventListener(a,this.B[a]);g.RS.prototype.ca.call(this)};g.u(g.ZS,g.RS);g.k=g.ZS.prototype;g.k.isView=function(){return!0};
g.k.Wv=function(){var a=this.u.getCurrentTime();if(a<this.B)try{var b=this.u.Gf(),c=dA(b,a);return!(this.B<c)}catch(d){}return!1};
g.k.xm=function(){return gA(this.u.xm(),this.B,this.D)};
g.k.Gf=function(){return gA(this.u.Gf(),this.B,this.D)};
g.k.yq=function(){return gA(this.u.yq(),this.B,this.D)};
g.k.getCurrentTime=function(){return this.u.getCurrentTime()-this.B};
g.k.Zv=function(a){this.u.Zv(a+this.B)};
g.k.getDuration=function(){return isFinite(this.D)&&!this.R?this.D-this.B:this.u.getDuration()-this.B};
g.k.play=function(){if(this.Wv()){this.u.getCurrentTime();try{this.u.Zv(this.B)}catch(a){}}return this.u.play()};
g.k.sb=function(){var a=g.RS.prototype.sb.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.Yu=function(){return this.u.Yu()};
g.k.Ao=function(a){this.u.Ao(a)};
g.k.tm=function(){return this.u.tm()};
g.k.playVideo=function(){return this.u.playVideo()};
g.k.Fx=function(){this.u.Fx()};
g.k.Ex=function(){this.u.Ex()};
g.k.ol=function(){return this.u.ol()};
g.k.Pa=function(){return this.u.Pa()};
g.k.We=function(){return this.u.We()};
g.k.bw=function(a){this.u.bw(a)};
g.k.Uv=function(){this.u.Uv()};
g.k.getPlaybackRate=function(){return this.u.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.u.setPlaybackRate(a)};
g.k.sm=function(){return this.u.sm()};
g.k.setLoop=function(a){this.u.setLoop(a)};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.pl=function(){return this.u.pl()};
g.k.Wq=function(){return this.u.Wq()};
g.k.Yi=function(){return this.u.Yi()};
g.k.Rt=function(){return this.u.Rt()};
g.k.gp=function(a){this.u.gp(a)};
g.k.Zu=function(){return this.u.Zu()};
g.k.load=function(){this.u.load()};
g.k.pause=function(){this.u.pause()};
g.k.yg=function(){return this.u.yg()};
g.k.St=function(){return this.u.St()};
g.k.Sh=function(){return this.u.Sh()};
g.k.Bo=function(){return this.u.Bo()};
g.k.getVideoPlaybackQuality=function(){return this.u.getVideoPlaybackQuality()};
g.k.Ze=function(){return this.u.Ze()};
g.k.fn=function(){return this.u.fn()};
g.k.togglePictureInPicture=function(){this.u.togglePictureInPicture()};
g.k.Pk=function(){return this.u.Pk()};
g.k.setPosition=function(a){return this.u.setPosition(a)};
g.k.Co=function(){return this.u.Co()};
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.Lp=ba(6);g.k.hs=ba(8);g.k.jn=ba(3);g.k.Wp=ba(10);g.k.iq=function(){return this.u.iq()};
g.k.Aq=function(a){return this.u.Aq(a)};
g.k.Ky=function(){return this.u.Ky()};
g.k.stopVideo=function(){this.u.stopVideo()};
g.k.Kx=function(a){this.u.Kx(a)};g.SZ=bb(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 d2={},hsa=(d2.WEB_UNPLUGGED="^unplugged/",d2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",d2.WEB_UNPLUGGED_OPS="^unplugged/",d2.WEB_UNPLUGGED_PUBLIC="^unplugged/",d2.WEB_CREATOR="^creator/",d2.WEB_KIDS="^kids/",d2.WEB_EXPERIMENTS="^experiments/",d2.WEB_MUSIC="^music/",d2.WEB_REMIX="^music/",d2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",d2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",d2);g.u(eT,dT);eT.prototype.B=function(){return jCa};
eT.prototype.C=function(a){return a.subscribeEndpoint};
eT.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(fT,dT);fT.prototype.B=function(){return kCa};
fT.prototype.C=function(a){return a.unsubscribeEndpoint};
fT.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(gT,dT);gT.prototype.B=function(){return hCa};
gT.prototype.C=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
gT.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(hT,dT);hT.prototype.B=function(){return iCa};
hT.prototype.C=function(a){return a.playlistEditEndpoint};
hT.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};iT.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.B)||void 0===d?0:d.D(a,b))return vm(this.B.C(a,b)["catch"](function(f){g.Is(f)}));
if(this.u){var e=vd(g.xd(5,Sd(a,"key")))||"/UNKNOWN_PATH";this.u.start(e)}e=new Request(a,b);return vm(fetch(e).then(function(f){return ksa(c,f)})["catch"](function(f){var h,l;
if(null===(h=c.B)||void 0===h?0:h.u(a,b))return f=c.B.B(a,b),null===(l=c.u)||void 0===l?void 0:l.success(),f;g.Is(f)}))};var jT;g.Fa("yt.pubsub.publish",g.Po,void 0);g.u(lT,dT);lT.prototype.B=function(){return gCa};
lT.prototype.C=function(a){return a.feedbackEndpoint};
lT.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(mT,dT);mT.prototype.B=function(){return fCa};
mT.prototype.C=function(a){return a.webPlayerShareEntityServiceEndpoint};
mT.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};Mq.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.vo("idb_data_corrupted_killswitch")||this.u("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.u("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.vo("idb_is_supported_completed_killswitch")||this.u("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":usa(this,b);break;case "TRANSACTION_ENDED":Math.random()<=g.wo("ytidb_transaction_ended_event_rate_limit",.02)&&this.u("idbTransactionEnded",b);
break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":var c=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.B});this.u("idbTransactionAborted",c)}};var Ps=new Ns,nT=0;var e2={},YCa=(e2["api.invalidparam"]=2,e2.auth=150,e2["drm.auth"]=150,e2["heartbeat.net"]=150,e2["heartbeat.servererror"]=150,e2["heartbeat.stop"]=150,e2["html5.unsupportedads"]=5,e2["fmt.noneavailable"]=5,e2["fmt.decode"]=5,e2["fmt.unplayable"]=5,e2["html5.missingapi"]=5,e2["html5.unsupportedlive"]=5,e2["drm.unavailable"]=5,e2);sT.prototype.getLocalMediaInfoById=function(a){return We(this,function c(){return xa(c,function(d){return d["return"](Qfa(a))})})};
sT.prototype.getAllLocalMediaInfo=function(){return We(this,function b(){return xa(b,function(c){return c["return"](Rfa())})})};
sT.prototype.u=function(a){if(a.Ro&&2===a.status)by(a.videoId,2);else if(4===a.status){var b=a.videoId;by(b,4);jy(b,!1)}a.ou&&Jfa(a.videoId,a.videoDuration,g.P(this.api.T().experiments,"hoffle_cache_size_secs"));g.Q(this.api.T().experiments,"hoffle_api")&&this.api.xa("localmediachange",{videoId:a.videoId,status:a.status,isHeadless:a.isHeadless});rT(this)};
sT.prototype.ea=function(){};g.u(yT,g.C);g.k=yT.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.F[a],e=this.K[a],f=d;if(e)if(c&&lw(c,nCa,oCa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Is&&!this.X.has(a)&&(this.X.add(a),g.Nq("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.Is(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&&lw(b,nCa,oCa))};
g.k.getBandwidthEstimate=function(){return RA(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.SZ)(),d:a},b.handleError(new uB("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.R.slice()};
g.k.getInternalApiInterface=function(){return g.Mb(this.B)};
g.k.wJ=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.Ja(b).apply(window,e)};
this.I[b]=c}else c=b;this.app.ha.subscribe(a,c)};
g.k.GR=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.ha.unsubscribe(a,b)};
g.k.getPlayerState=function(){return JAa(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&&W0(this.app,!0,this.playerType);$0(this.app,a,b,c,this.playerType)};
g.k.seekToStreamTime=function(a,b,c){this.u&&W0(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.yc()&&(l=h.getStreamTimeOffset());$0(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&&$0(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.Ue(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.P.volume};
g.k.setVolume=function(a){Tsa(this,a)};
g.k.isMuted=function(){return this.app.P.muted};
g.k.mute=function(){Usa(this)};
g.k.unMute=function(){Vsa(this)};
g.k.playVideo=function(){this.u&&W0(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.cd()){var b=sU(this.app.C);if(!Sra(b)){b.ij("control_play");return}}3===a?g.MT(this.app.C).ij("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.cd()){var b=sU(this.app.C);if(!Sra(b)){b.ij("control_pause");return}}3===a?g.MT(this.app.C).ij("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.W.Ga&&a.u.V("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.Qc){var b=a.B||a.ba("web_player_admin_origin_killswitch")?a.Kg[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Ks?HCa:GCa}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.Oc(a.nm(),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.xa("SUBSCRIBE",E0(this.app).kg)};
g.k.channelUnsubscribed=function(){this.xa("UNSUBSCRIBE",E0(this.app).kg)};
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(){};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=gBa(this.app);b&&(b.B=a,b.oa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=gBa(this.app);b&&(g.J(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.D&&(b.element.setAttribute("title","Scroll for details"),g.eg(b,g.cV(b.F.Rb(),b.element)),b.D=!0))};
g.k.confirmYpcRental=function(){var a=g.Z(this.app,this.playerType);a&&a.Wc("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Js=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=YC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,zD)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return E0(this.app).Zw};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.nU(this.app.C))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.nU(this.app.C))&&a.loaded&&a.yS()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(pT(a,b,c),this.playerType),this.u&&W0(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(pT(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Csa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.u&&W0(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Csa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.R)return"";var b=E0(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.R?"":a.getVideoEmbedCode(E0(this.app).videoId,this.app.template.getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return XAa(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=b.B.Lk(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.B.removeCueRange(e);VT(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&&W0(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&&W0(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.u&&W0(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.u&&W0(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.uK=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.Ma(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.C;return"captions"===a?(a=g.nU(d))&&a.Ae(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.C;if("captions"===a)return(b=g.nU(b))&&b.getOptions();if(!a)return a=[],g.nU(b)&&a.push("captions"),a};
g.k.Yt=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.Oa&&a.Oa.video){b.video_quality=a.Oa.video.quality;a=a.Oa.video;var c=[];32<a.fps&&c.push("hfr");a.Vg()&&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(){AAa(this.app,!0)};
g.k.hideVideoInfo=function(){AAa(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===YCa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.PT(this.app.C);return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.PT(this.app.C);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 tT(a)};
g.k.deleteAllLocalMedia=function(){return Isa()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.k.fetchLocalMediaById=function(a){return 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){a1(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,{ht:b,ts:c})};
g.k.updateLastActiveTime=function(){xp()};
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().zn!==a&&(this.app.T().zn=a,(a=g.Z(this.app,this.playerType))&&g0(a))};
g.k.updateSubtitlesUserSettings=function(a){g.nU(this.app.C).mI(a,!0)};
g.k.setFauxFullscreen=function(a){nt();B0(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.cd()&&(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.tg();if(!c)return null;c=c.levels[b];return c?(c=c.pm(a))?{column:c.column,columns:c.columns,height:c.jv,row:c.row,rows:c.rows,url:c.url,width:c.kv}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.tg();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.yc();return c.dv(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.tg();return b?(b=b.levels[a])?{index:a,intervalMs:b.u,maxFrameIndex:b.dr(),minFrameIndex:b.oz()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.tg();return a?a.levels.length:0};
g.k.cK=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.Z(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().bq};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.MT(this.app.C).ij("control_set_audio_track",a);var b=g.Z(this.app,this.playerType);if(b){var c;if(!b.na()&&!g.U(b.playerState,128))if(null===(c=b.videoData.La)||void 0===c?0:c.Lc())b.Ba.setAudioTrack(a);else{a:if(c=b.videoData,c.pd&&!ix(c.pd)||a==c.Qr||!c.lk||0>=c.lk.length)c=!1;else{for(var d=g.q(c.lk),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof GH)){c=!1;break a}var f=a.u.getId();e.B&&(e.B.u=f,e.u=null)}c.Qr=a;c=
!0}c&&(b.V("internalaudioformatchange",b.videoData,!0),V_(b)&&b.Na("hlsaudio",a.id))}}};
g.k.dK=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().Oa?HC(a.Id?Pxa(a.cg,a.Id,a.co()):UD):"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.nU(this.app.C);return a?a.yK():null};
g.k.resetSubtitlesUserSettings=function(){g.nU(this.app.C).MR()};
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.Q(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.Ze(),this.isFullscreen()||mD(this.app.T()),a,this.isInline(),this.app.visibility.pictureInPicture,this.app.visibility.B)};
g.k.isMutedByMutedAutoplay=function(){return this.app.Ta};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.template.setInternalSize(new g.ie(a,b))};
g.k.yc=function(){var a=g.Z(this.app,void 0);return a?a.yc():0};
g.k.Ze=function(){var a=g.Z(this.app,this.playerType);return!!a&&a.Ze()};
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.ba("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.Ma().videoId||(a.index=b.index)):H0(this.app,{list:a.list,index:a.index,playlist_length:d.length});iU(this.app.getPlaylist(),a);this.xa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.Z(this.app,this.playerType||1);c&&c.getVideoData().nh(a,b)};
g.k.updateEnvironmentData=function(a){this.app.T().nh(a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.RT(this.app.C);d&&d.Vq()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("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=FC(a,b||a,!0,"m");Qsa(c,d)}};
g.k.onAdUxClicked=function(a,b){this.V("aduxclicked",a,b)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.V=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.ha.V.apply(this.app.ha,[a].concat(g.ma(c)));this.app.aa.V.apply(this.app.aa,[a].concat(g.ma(c)))};
g.k.xa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.ha.V.apply(this.app.ha,[a].concat(g.ma(c)));this.app.aa.V.apply(this.app.aa,[a].concat(g.ma(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.ba=function(a){return g.Q(this.app.T().experiments,a)};
g.k.ea=function(){};
g.k.ca=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.I={};g.C.prototype.ca.call(this)};g.u(DT,yT);g.k=DT.prototype;g.k.addCueRange=function(a,b,c,d,e){return XAa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return JAa(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){$0(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){$0(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Yt=function(a){a=void 0===a?this.playerType:a;var b=yT.prototype.Yt.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.Lq,b.isManifestless=LI(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.Ug,b.ypcOriginalItct=a.KS,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=XI(a),b.paidContentOverlayDurationMs=YI(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.ra&&LB(a.ra)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):yT.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c=g.MT(this.app.C).getProgressState();return(null===c||void 0===c?void 0:c.duration)||0}return a?this.app.getDuration(a,b):yT.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.MT(this.app.C).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.Ue(c),f=this.app.isAtLiveHead(c),h=this.app.eo(),l=this.app.Kc(c);var m=this.app;(c=g.Z(m,c))?(c=C0(m,c),m=R0(m,oY(c),c)):m=0;return{allowSeeking:this.app.He(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,
isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:m}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return 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.BT(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.BT(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.BT(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.BT(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()?pt(window.document.documentElement):mt(window.document.documentElement);if(nt()||this.ba("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?pt(ot()):"3"!==a.controlsType&&nt()?mt(this.app.template.element):(a=this.app.Zc().Pa())?mt(a):Promise.reject(Error("Media element missing"));this.xa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=sU(this.app.C);a&&a.created&&a.destroy();(a=g.Z(this.app))&&a.stopVideo();(a=this.app.C.Vc.get("endscreen"))&&a.iL()&&g.KT(this.app.u,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.Q(a.experiments,"disable_new_pause_state3")&&FD(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():yT.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.Z(this.app,this.playerType).sb(!0)};
g.k.toggleSubtitles=function(){var a=g.nU(this.app.C);a&&a.pS()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.PT(this.app.C);b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.PT(this.app.C);return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){Tsa(this,a,b)};
g.k.mute=function(a){Usa(this,a)};
g.k.unMute=function(a){Vsa(this,a)};
g.k.mutedAutoplay=function(){this.ba("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.RT(this.app.C);b&&!b.loaded&&b.load()}yT.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.RT(this.app.C);b&&b.loaded&&b.unload()}yT.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.C;switch(a){case "ad":return(a=sU(d))&&a.Ae&&a.Ae(b,c);case "kids":return(a=tU(d))&&a.Ae(b,c);case "remote":return(a=g.MT(d))&&a.Ae(b,c);case "unplugged":return(a=uU(d))&&a.Ae(b,c);case "annotations_module":return(a=g.RT(d))&&a.Ae(b,c);case "creatorendscreen":return(a=vU(d))&&a.Ae(b,c)}return yT.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.C;switch(a){case "ad":return(b=sU(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.MT(b))&&b.getOptions();case "annotations_module":return(b=g.RT(b))&&b.getOptions();case "creatorendscreen":return(b=vU(b))&&b.getOptions();case "unplugged":return(b=uU(b))&&b.getOptions();case "kids":return(b=tU(b))&&b.getOptions()}if(!a){a=yT.prototype.getOptions.call(this);if(!a)return a;sU(b)&&a.push("ad");g.MT(b)&&a.push("remote");g.RT(b)&&a.push("annotations_module");
vU(b)&&a.push("creatorendscreen");uU(b)&&a.push("unplugged");tU(b)&&a.push("kids");return a}return yT.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.BT(this);a&&a.tk()};
g.k.setCenterCrop=function(a){this.app.template.setCenterCrop(a)};
var Xsa="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(" "),
Ysa="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(g.ET,DT);g.k=g.ET.prototype;g.k.getRootNode=function(){return g.cG(this).element};
g.k.T=function(){return this.app.T()};
g.k.Qk=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.tg=function(a){return this.app.tg(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.Vg=function(){var a=g.Z(this.app);return a?a.Vg():!1};
g.k.Rd=function(a,b,c,d){this.app.B.Rd(a,b,c,d)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.MT(this.app.C).ij("control_play");return}if(2===this.getPresentingPlayerType()){var b=sU(this.app.C),c;if(c=b){if(null===b.u)var d=0;else{var e=b.u;d=cK(e.u)&&!!e.B&&e.B.lr()}c=d}if(c)return}}catch(f){g.Hs(f)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.Z(this.app,a).stopVideo()};
g.k.fi=function(a){g.Z(this.app,a).fi()};
g.k.addEventListener=function(a,b){this.app.aa.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.aa.unsubscribe(a,b)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.nm=function(){var a={},b=g.Z(this.app).nm();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.wq=ba(13);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.Zh=ba(17);g.k.setCardsVisible=function(a,b,c){var d=g.RT(g.HT(this));d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)};
g.k.sn=function(){var a=g.Z(this.app);a&&a.sn()};
g.k.Pi=function(a,b){var c=g.BT(this);if(c)return c.Pi(a,b);c=this.app.template.getPlayerSize();return new g.jg(0,0,c.width,c.height)};
g.k.He=function(){if(this.T().aa)return!1;var a=g.Z(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.eJ(b)||2===this.getPresentingPlayerType()&&!this.app.cd()||a.Qj()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Jq=function(){var a;return(null===(a=g.Z(this.app))||void 0===a?void 0:a.Jq)||!1};
g.k.fn=function(){var a=g.Z(this.app);a&&a.fn()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Wc=function(a,b){var c=g.Z(this.app,b);c&&c.Wc(a)};
g.k.Qj=function(){var a=g.Z(this.app,void 0);return a?a.Qj():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.ce(a,0,100);AT(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){AT(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){AT(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.Zc=function(){return this.app.Zc()};
g.k.Yf=function(a){return this.app.Yf(a)};
g.k.getBandwidthEstimate=function(){return RA(this.T().schedule)};
g.k.dc=function(){return g.Z(this.app)};
g.k.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.k.Ni=function(){return this.app.Ni()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.cd=function(){return this.app.cd()};
g.k.Na=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.Z(this.app,d))||void 0===e?void 0:e.Na(a,b,c)};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};dU.prototype.reset=function(){ME(this.timerName)};
dU.prototype.tick=function(a,b){PE(a,b,this.timerName)};
dU.prototype.info=function(a,b){OE(a,b,this.timerName)};g.eU.prototype.toString=function(){return this.type+this.id};g.u(g.fU,g.O);g.k=g.fU.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Ti=function(a){return this.loop||!!a||0<=this.index-1};
g.k.Ma=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.rI(this.Sa,a),g.D(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.xu++;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.xu++}this.V("shuffle")};
g.k.ne=function(a){a=a||"hqdefault.jpg";var b=this.li[a];if(b||this.Sa.R||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.PH.length)return ED(this.Sa,this.PH[0],a)};
g.k.getLength=function(){return this.length};
g.k.loadPlaylist=function(a,b){var c=this;this.AJ&&g.qq(g.Md(a,b),{format:"JSON",onSuccess:function(d,e){iU(c,e)},
onError:function(){return c.V("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.Cr=a;this.loaded&&g.Go(this.Cr,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Sk=function(){return this.Sa.getVideoUrl(this.Ma().videoId,this.getPlaylistId())};
g.k.ca=function(){this.Cr=null;g.gg(this.items);g.O.prototype.ca.call(this)};var ota={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"},pta={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},nta={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},mta={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.qU={};g.u(mU,g.C);g.k=mU.prototype;g.k.Tr=function(){return this.J.getVideoData().Tr()};
g.k.xA=function(){return this.J.getVideoData().xA()};
g.k.yC=function(){var a=this.Vc.get("heartbeat");pU(this,"heartbeat",this.yC,!1,!0);!a&&this.Vc.has("heartbeat")&&this.J.V("offlineslatestatechange")};
g.k.zH=function(){var a=this.J.T();if(rD(a))return!1;var b=this.J.getVideoData();return b.aE||"3"===a.controlsType?!1:a.K.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Mg||!!g.iJ(b)||!!g.jJ(b):!0};
g.k.Bx=function(){pU(this,"annotations_module",this.Bx,!0);var a=this.Vc.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.xC=function(){if(!this.Vc.get("ad"))try{oU(this)?pU(this,"ad",this.xC,!1,!0):this.J.Wc("ad")}catch(a){this.J.Wc("ad"),g.Hs(a)}};
g.k.ca=function(){g.C.prototype.ca.call(this);rU(this,1,!0)};g.u(xU,g.O);g.k=xU.prototype;g.k.FN=function(a){a=hp(a);if(!he(a,this.D)){var b=2;this.I&&(b|=8);this.D=a;wU(this,b,!0)}};
g.k.GN=function(){this.I&&wU(this,8,!0);wU(this,2,!1)};
g.k.lv=function(a){var b=hp(a);he(b,this.D)||(this.D=b,(a=g.ep(a))&&this.aa(a)&&(wU(this,4,!0),this.u.Mb(this.C),this.C=this.u.N(this.target,"mouseover",this.zz),this.K=this.u.N(this.target,"mouseout",this.zz)))};
g.k.zz=function(a){a=gp(a);a&&this.aa(a)||(this.D=new g.ge(NaN,NaN),Dta(this))};
g.k.pL=function(){wU(this,1,!0)};
g.k.gK=function(a){a=g.ep(a);a instanceof Element&&!(0<a.tabIndex)||wU(this,1,!0)};
g.k.nF=function(){this.I=!0;this.u.Mb(this.F);this.F=this.u.N(document,"mouseup",this.HN)};
g.k.HN=function(){this.I=!1;wU(this,8,!1);this.u.Mb(this.F);this.F=this.u.N(this.target,"mousedown",this.nF)};
g.k.TH=function(a){if(a=(a=a.changedTouches)&&a[0])this.ha=a.identifier,this.u.Mb(this.R),this.R=this.u.N(this.target,"touchend",this.qS,void 0,!0),wU(this,1024,!0)};
g.k.qS=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ha){var d=c;break}}d&&(this.u.Mb(this.R),this.R=this.u.N(this.target,"touchstart",this.TH,void 0,!0),wU(this,1024,!1))};
g.k.tk=function(){wU(this,2,!0)};
g.k.resize=function(){g.pB&&Dta(this)};
g.k.toString=function(){return g.O.prototype.toString.call(this)};g.u(g.yU,g.V);
g.yU.prototype.oa=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.qc&&(a.Gj||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.I?(g.J(this.element,"ytp-touch-device",b.u),c=[b.I?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"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"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.ya("largePlayButtonChildren",c);a.qc&&(a.Gj||b.pfpChazalUi)&&(a=a.Gj?a.Gj:"#1f1f1f",this.ka("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(zU,g.V);g.k=zU.prototype;g.k.show=function(){var a=this;this.fb||(this.C.N(this.api,"videodatachange",function(){a.u.Sb()}),this.C.N(this.api,"videoplayerreset",function(){a.u.Sb()}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.ut(this.C);g.V.prototype.hide.call(this)};
g.k.Va=function(){this.u.Sb()};
g.k.OM=function(a){var b=this.api.T();g.Q(b.experiments,"disable_new_pause_state3")&&FD(b)&&(a=a.state.isCued()&&!a.hk.isCued()||g.NT(this.api)&&g.U(a.state,2),g.ug(this.element,"transition-delay",a?"2s":""));this.u.Sb()};
g.k.lR=function(){this.u.Sb()};
g.k.MM=function(){this.B.stop();this.hide();this.u.Sb()};
g.k.oa=function(){var a=g.uK(this.api);if(3===this.api.getPresentingPlayerType()&&(a.Hb()||g.U(a,4)))var b=!0;else(b=g.HT(this.api).Vc.get("ypc"))&&b.Dv?b=!0:(b=this.api.T(),b=g.U(a,2)&&JT(this.api)&&b.Ne?!0:!1);b?(b=!0,this.D.hide()):(this.D.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.Q(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.U(a,2)||JT(this.api)||b&&g.Y0(this.api.app))||g.U(a,1024)?!0:!1));b?(this.B.show(),a=this.api.getVideoData(),this.CS(this.api.getPlaylist(),
a)):(this.B.hide(),g.U(a,1)||this.B.stop())};
g.k.CS=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.rI&&!c.videoId)){var d=g.cG(this.api).getPlayerSize();var e=g.GD(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.ne("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.ne("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.ne("sddefault.jpg")||c.ne("hqdefault.jpg")||c.ne("mqdefault.jpg"))break;if(d=c.ne("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.u(g.FU,g.V);g.FU.prototype.resize=function(){};
g.FU.prototype.B=function(a){var b=this;Hta(this);var c=a.Mx,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Gc(IU(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Sk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.Gc(g.GU(a.errorMessage)):this.Gc(IU(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.Md(c,
{hl:a})),this.Gc(IU(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ga&&!d.B&&Gta(this,function(e){if(g.AU(e,b.api,!FD(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.xa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var Fta=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(KU,g.tR);KU.prototype.Ra=function(){var a=this;this.B();var b=this.J.getVideoData();if(b.isValid()){var c=[];this.J.T().R||c.push({src:b.ne("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.NT(this.J)&&(this.u["delete"]("nexttrack"),this.u["delete"]("previoustrack"),b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
JU(this,"nexttrack",b);JU(this,"previoustrack",c)}};
KU.prototype.B=function(){var a=g.uK(this.J);a=a.isError()?"none":g.GM(a)?"playing":"paused";this.mediaSession.playbackState=a};
KU.prototype.ca=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())JU(this,b.value,null);g.tR.prototype.ca.call(this)};g.u(LU,g.V);LU.prototype.Ra=function(a,b){Ita(this,b);this.Pc&&Jta(this,this.Pc)};
LU.prototype.lc=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&Ita(this,b);this.u&&Jta(this,a.state);this.Pc=a.state};
LU.prototype.Bc=function(){this.B.show();this.J.V("paidcontentoverlayvisibilitychange",!0)};
LU.prototype.nb=function(){this.B.hide();this.J.V("paidcontentoverlayvisibilitychange",!1)};g.u(NU,g.V);NU.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
NU.prototype.B=function(a){MU(this,a.state)};
NU.prototype.C=function(){MU(this,g.uK(this.api))};
NU.prototype.D=function(){this.message.style.display="block"};g.u(g.OU,g.KN);g.k=g.OU.prototype;g.k.show=function(){var a=this.zf();g.KN.prototype.show.call(this);this.Y&&(this.K.N(window,"blur",this.nb),this.K.N(document,"click",this.VM));a||this.V("show",!0)};
g.k.hide=function(){var a=this.zf();g.KN.prototype.hide.call(this);Kta(this);a&&this.V("show",!1)};
g.k.Bc=function(a,b){this.u=a;this.X.show();b?(this.P||(this.P=this.K.N(this.J,"appresize",this.TB)),this.TB()):this.P&&(this.K.Mb(this.P),this.P=void 0)};
g.k.TB=function(){var a=g.BT(this.J);this.u&&a.To(this.element,this.u)};
g.k.nb=function(){var a=this.zf();Kta(this);this.X.hide();a&&this.V("show",!1)};
g.k.VM=function(a){var b=fp(a);b&&(g.Me(this.element,b)||this.u&&g.Me(this.u,b)||!g.cP(a))||this.nb()};
g.k.zf=function(){return this.fb&&4!==this.X.state};g.u(QU,g.OU);QU.prototype.D=function(a){this.C&&(a?(Lta(this),this.Bc()):(this.seen&&Mta(this),this.nb()))};
QU.prototype.F=function(a){this.api.isMutedByMutedAutoplay()&&g.GK(a,2)&&this.nb()};
QU.prototype.onClick=function(){this.api.unMute();Mta(this)};g.u(g.SU,g.tR);g.k=g.SU.prototype;g.k.init=function(){var a=g.uK(this.api);this.vb(a);this.vk();this.Va()};
g.k.Ra=function(a,b){if(this.fa!==b.videoId){this.fa=b.videoId;var c=this.Nc;c.fa=b&&0<b.Vl.length?5E3:3E3;wU(c,512,!0);this.vk()}};
g.k.MP=function(){this.Ra("newdata",this.api.getVideoData())};
g.k.Il=function(){var a=g.ST(this.api)&&g.TT(this.api);return this.mt||a||this.aa};
g.k.Fg=function(){var a=!this.Il();g.J(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Yh=function(a){var b=this.api.getRootNode();g.J(b,"ytp-autohide",a);g.J(b,"ytp-autohide-active",!0);this.za.start(a?250:100);a&&(this.R=!1,g.sn(b,"ytp-touch-mode"));this.Y=!a;b=this.api;a=!a;b.xa("onVideoAreaChange");b.xa(a?"onShowControls":"onHideControls")};
g.k.pO=function(){var a=this.api.getRootNode();g.J(a,"ytp-autohide-active",!1)};
g.k.sQ=function(){this.ha=!0};
g.k.rQ=function(a){if(g.Q(this.api.T().experiments,"player_doubletap_to_seek")||g.Q(this.api.T().experiments,"embeds_enable_mobile_dtts"))this.ha=!1,this.ia&&this.Mb(this.ia),0===this.D&&VU(this,a)?(this.ju(),this.F.start(),this.ia=this.N(g.cG(this.api),"touchmove",this.sQ,void 0,!0)):this.F.stop();Ota(this)&&VU(this,a)&&RU(this);var b=this.P.zf();if(eD&&Pta(this,a))b&&g.ip(a);else if(this.Nc.B||TU(this,fp(a))||this.P.zf()||(g.uK(this.api).isCued(),g.ip(a)),this.R=!0,g.I(this.api.getRootNode(),"ytp-touch-mode"),
this.Nc.tk(),g.Q(this.api.T().experiments,"player_doubletap_to_seek")||g.Q(this.api.T().experiments,"embeds_enable_mobile_dtts"))if(b=g.uK(this.api),!(!this.api.He()||g.U(b,2)&&JT(this.api)||g.U(b,64))){b=Date.now()-this.Aa;this.D+=1;if(350>=b){this.C=!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.D-1);0<d&&d<b?(this.Jr(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):
d>2*b&&d<3*b&&(this.Jr(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ip(a)}this.Aa=Date.now();this.Ja.start()}};
g.k.nQ=function(a){Pta(this,a)||(Ota(this)||!VU(this,a)||this.F.isActive()||(RU(this),g.ip(a)),this.C&&(this.C=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Nq("embedsRequestStorageAccessResult",{resolved:!0});HAa(!0);Hp();window.location.reload()},function(){g.Nq("embedsRequestStorageAccessResult",{resolved:!1});
a.ev()})};
g.k.ju=function(){};
g.k.gn=function(){};
g.k.Jr=function(){};
g.k.ev=function(){var a=g.uK(this.api);g.U(a,2)&&JT(this.api)||(g.GM(a)?this.api.pauseVideo():(this.api.app.Ig=!0,this.api.playVideo(),this.B&&document.activeElement===this.B.D.element&&this.api.getRootNode().focus()))};
g.k.oQ=function(a){var b=this.api.getPresentingPlayerType();if(!TU(this,fp(a)))if(a=this.api.T(),(g.Q(this.api.T().experiments,"player_doubletap_to_seek")||g.Q(this.api.T().experiments,"embeds_enable_mobile_dtts"))&&this.C)this.C=!1;else if(a.za&&3!==b)try{this.api.toggleFullscreen()["catch"](function(c){Qta(c)})}catch(c){Qta(c)}};
g.k.pQ=function(a){Rta(this,.3,a.scale);g.ip(a)};
g.k.qQ=function(a){Rta(this,.1,a.scale)};
g.k.Va=function(){var a=g.cG(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Nc.resize();g.J(b,"ytp-fullscreen",this.api.isFullscreen());g.J(b,"ytp-large-width-mode",c);g.J(b,"ytp-small-mode",this.Ie());g.J(b,"ytp-tiny-mode",this.Ie()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height));g.J(b,"ytp-big-mode",this.ge());this.u&&this.u.resize(a)};
g.k.HM=function(a){this.vb(a.state);this.vk()};
g.k.gy=function(){var a=!!this.fa&&!g.IT(this.api),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(CBa&&g.Q(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=sU(g.HT(this.api));return a&&b.yA()}return a&&(c.En||this.api.isFullscreen()||c.ng)};
g.k.vk=function(){var a=this.gy();this.Vi!==a&&(this.Vi=a,g.J(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.vb=function(a){var b=a.isCued()||this.api.Qj()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.ma&&this.Mb(this.ma),this.ma=this.N(g.cG(this.api),"touchstart",this.rQ,void 0,b));var c=a.Hb()&&!g.U(a,32)||UT(this.api);wU(this.Nc,128,!c);c=3===this.api.getPresentingPlayerType();wU(this.Nc,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[b2.ENDED];else d=[],g.U(a,8)?d.push(b2.PLAYING):g.U(a,4)&&d.push(b2.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(b2.BUFFERING),g.U(a,32)&&
d.push(b2.SEEKING),g.U(a,64)&&d.push(b2.UNSTARTED);g.Ab(this.X,d)||(g.tn(c,this.X),this.X=d,g.rn(c,d));d=this.api.T();var e=g.U(a,2);g.J(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.J(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.aa);g.U(a,128)&&!g.hD(d)?(this.u||(this.u=new g.FU(this.api),g.D(this,this.u),g.BP(this.api,this.u.element,4)),this.u.B(a.getData()),this.u.show()):this.u&&(this.u.dispose(),this.u=null)};
g.k.Ij=function(){return g.ST(this.api)&&g.TT(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.IT(this.api)?(g.KT(this.api,!0),!0):!1};
g.k.GM=function(a){this.aa=a;this.Fg()};
g.k.ge=function(){return!1};
g.k.Ie=function(){return!this.ge()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Nh=function(){return this.R};
g.k.Qk=function(){return null};
g.k.Pi=function(){var a=g.cG(this.api).getPlayerSize();return new g.jg(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.To=function(){};
g.k.showControls=function(a){void 0!==a&&fK(g.cG(this.api),a)};
g.k.tk=function(){};
g.k.oD=function(){return null};g.u(WU,g.V);WU.prototype.onClick=function(){this.J.xa("BACK_CLICKED")};g.u(g.XU,g.V);g.XU.prototype.show=function(){g.V.prototype.show.call(this);this.u.Sb()};
g.XU.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
g.XU.prototype.gn=function(a){a?g.U(g.uK(this.J),64)||YU(this,Zna(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?YU(this,aoa(),"Stop live playback"):YU(this,Xna(),"Pause"))};g.u($U,g.V);g.k=$U.prototype;g.k.fI=function(){g.ST(this.J)&&g.TT(this.J)&&this.zf()&&this.nb()};
g.k.kS=function(){this.nb();g.Po("iv-teaser-clicked",null!=this.u);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.IM=function(){g.Po("iv-teaser-mouseover");this.u&&this.u.stop()};
g.k.LQ=function(a){this.u||!a||g.TT(this.J)||this.B&&this.B.isActive()||(this.Bc(a),g.Po("iv-teaser-shown"))};
g.k.Bc=function(a){this.ya("text",a.teaserText);this.element.setAttribute("dir",g.Bn(a.teaserText));this.D.show();this.B=new g.F(function(){g.I(this.J.getRootNode(),"ytp-cards-teaser-shown");this.ZA()},0,this);
this.B.start();aV(this.Di,!1);this.u=new g.F(this.nb,580+a.durationMs,this);this.u.start();this.F.push(this.wa("mouseover",this.VE,this));this.F.push(this.wa("mouseout",this.UE,this))};
g.k.ZA=function(){if(g.hD(this.J.T())&&this.fb){var a=this.Di.element.offsetLeft,b=g.se("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Di.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.GJ=function(){g.hD(this.J.T())&&this.X.Ie()&&this.fb&&this.P.start()};
g.k.VE=function(){this.I.stop();this.u&&this.u.isActive()&&this.K.start()};
g.k.UE=function(){this.K.stop();this.u&&!this.u.isActive()&&this.I.start()};
g.k.wP=function(){this.u&&this.u.stop()};
g.k.vP=function(){this.nb()};
g.k.nb=function(){!this.u||this.C&&this.C.isActive()||(g.Po("iv-teaser-hidden"),this.D.hide(),g.sn(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.F(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Mb(b.value);this.F=[];this.u&&(this.u.dispose(),this.u=null);aV(this.Di,!0)},330,this),this.C.start())};
g.k.zf=function(){return this.fb&&4!==this.D.state};
g.k.ca=function(){var a=this.J.getRootNode();a&&g.sn(a,"ytp-cards-teaser-shown");g.gg(this.B,this.C,this.u);g.V.prototype.ca.call(this)};g.u(bV,g.V);g.k=bV.prototype;g.k.Bc=function(){this.B.show();g.Po("iv-button-shown")};
g.k.nb=function(){g.Po("iv-button-hidden");this.B.hide()};
g.k.zf=function(){return this.fb&&4!==this.B.state};
g.k.ca=function(){this.u&&this.u();g.V.prototype.ca.call(this)};
g.k.YO=function(){g.Po("iv-button-mouseover")};
g.k.onClicked=function(a){g.ST(this.J);var b=g.qn(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Po("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!g.TT(this.J),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};var Tta=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var f2={},fV=(f2.BUTTON="ytp-button",f2.TITLE_NOTIFICATIONS="ytp-title-notifications",f2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",f2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",f2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",f2);g.u(gV,g.V);gV.prototype.onClick=function(){g.$T(this.api,this.element);var a=!this.u;this.ya("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.ya("pressed",a);Wta(this,a)};g.u(g.iV,g.V);g.iV.prototype.B=function(){g.I(this.element,"ytp-sb-subscribed")};
g.iV.prototype.C=function(){g.sn(this.element,"ytp-sb-subscribed")};g.u(jV,g.V);g.k=jV.prototype;g.k.hA=function(){aua(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Sx=function(){if(Zta(this)&&!this.isExpanded()){this.ya("flyoutUnfocusable","false");this.ya("channelTitleFocusable","0");this.C&&this.C.stop();this.subscribeButton&&(this.subscribeButton.show(),g.QN(this.api,this.subscribeButton.element,!0));var a=this.api.getVideoData();this.B&&a.kp&&a.subscribed&&(this.B.show(),g.QN(this.api,this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.yx=function(){this.ya("flyoutUnfocusable","true");this.ya("channelTitleFocusable","-1");this.C&&this.C.start()};
g.k.oa=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Ek&&!!a.lf:g.hD(b)&&(c=!!a.videoId&&!!a.Ek&&!!a.lf&&!(a.qc&&b.pfpChazalUi));b=g.TD(this.api.T())+a.Ek;g.hD(this.api.T())&&(b=g.Md(b,g.eV({},"emb_ch_name_ex")));var d=a.Ek,e=a.lf,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.TD(this.api.T())+d,this.I!==e&&(this.u.style.backgroundImage="url("+e+")",this.I=e),this.ya("channelLink",
d),this.ya("channelLogoLabel",g.tL("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:f})),g.I(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.sn(this.api.getRootNode(),"ytp-title-enable-channel-logo");g.QN(this.api,this.u,c&&this.R);this.subscribeButton&&(this.subscribeButton.channelId=a.kg);this.ya("expandedTitle",a.Rx);this.ya("channelTitleLink",b);this.ya("expandedSubtitle",a.expandedSubtitle)};g.u(g.lV,g.KN);g.lV.prototype.ya=function(a,b){g.KN.prototype.ya.call(this,a,b);this.V("size-change")};g.u(oV,g.KN);oV.prototype.JF=function(){this.V("size-change")};
oV.prototype.focus=function(){this.content.focus()};
oV.prototype.rO=function(){this.V("back")};g.u(g.pV,oV);g.pV.prototype.Wb=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.xb(this.items,a,bua);if(0<=c)return;c=~c;g.ub(this.items,c,0,a);g.Ie(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.Hz,this);this.menuItems.V("size-change")};
g.pV.prototype.re=function(a){a.unsubscribe("size-change",this.Hz,this);this.na()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))};
g.pV.prototype.Hz=function(){this.menuItems.V("size-change")};
g.pV.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(rV,g.lV);rV.prototype.u=function(a){g.kp(a)||39!==g.lp(a)||(this.element.click(),g.ip(a))};g.u(g.tV,g.lV);g.tV.prototype.onClick=function(){this.setValue(!this.checked);this.V("select",this.checked)};
g.tV.prototype.getValue=function(){return this.checked};
g.tV.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(uV,g.pV);g.k=uV.prototype;g.k.JO=function(){DU(this.Rn.element)};
g.k.mR=function(){wV(this,this.J.getDebugText(!0))&&YU(this.Tb,UN())};
g.k.nR=function(){wV(this,this.J.getVideoEmbedCode())&&YU(this.Tb,Tna());g.$T(this.J,this.Ch.element);$S("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.oR=function(){wV(this,this.J.getVideoUrl(!0,!0))&&YU(this.Tb,ZN());g.$T(this.J,this.getVideoUrl.element);$S("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.pR=function(){wV(this,this.J.getVideoUrl(!1,!0))&&YU(this.Tb,ZN());g.$T(this.J,this.Hh.element);$S("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.SF=function(a){this.Rh.setValue(a)};
g.k.qR=function(){this.J.setLoopVideo(this.Rh.getValue());this.Xa.nb();g.$T(this.J,this.Rh.element)};
g.k.iQ=function(a){this.J.reportPlaybackIssue();if(g.AU(a,this.J,!FD(this.J.T()))){a=this.J;var b=a.app.getFeedbackProductData();a.xa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Xa.nb()};
g.k.zQ=function(){this.J.showVideoInfo();this.Xa.nb()};
g.k.Ra=function(a,b){this.hi(b)};
g.k.hi=function(a){var b=this.J.T(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.R&&!!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.Oa&&(b.fmt=a.Oa.Yb()),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.bh&&(b.partnerid=a.bh),b=g.Md("//support.google.com/googleplay/",b));g.JN(this.Ch,d&&a.allowEmbed);g.JN(this.getVideoUrl,d);g.JN(this.Hh,d&&
!a.isLivePlayback);this.Kr.Gc(b,"href");g.JN(this.Rh,!a.isLivePlayback&&!c)};
g.k.Eb=function(a){g.pV.prototype.Eb.call(this,a);g.QN(this.J,this.Ch.element,a);g.QN(this.J,this.getVideoUrl.element,a);g.QN(this.J,this.Hh.element,a);g.QN(this.J,this.Rh.element,a)};g.u(g.xV,g.OU);g.k=g.xV.prototype;g.k.show=function(){g.OU.prototype.show.call(this);this.tp()};
g.k.hide=function(){g.OU.prototype.hide.call(this);1<this.B.length&&g.AV(this)};
g.k.tp=function(){eua(this);this.fb&&(dua(this),g.Kg(this.element,this.size))};
g.k.fg=function(){var a=this.B.pop(),b=yV(this);zV(this,a,b,!0)};
g.k.SM=function(a){if(!g.kp(a))switch(g.lp(a)){case 27:this.nb();g.ip(a);break;case 37:1<this.B.length&&this.fg();g.ip(a);break;case 39:g.ip(a)}};
g.k.focus=function(){yV(this).focus()};
g.k.ca=function(){g.OU.prototype.ca.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.u(g.BV,g.xV);g.k=g.BV.prototype;g.k.show=function(){this.D||(this.D=new uV(this.J,this.aa,this,this.Tb),g.D(this,this.D),g.vV(this,this.D));this.D.SF(this.J.getLoopVideo());g.xV.prototype.show.call(this);g.QN(this.J,this.element,!0);this.D.Eb(!0)};
g.k.hide=function(){gua(this);g.xV.prototype.hide.call(this);g.QN(this.J,this.element,!1);this.D&&this.D.Eb(!1)};
g.k.GO=function(a){var b=fp(a);if(!(this.fb||b&&(Ue(b,"a")||Ue(b,null,"ytp-no-contextmenu",void 0)))){g.ip(a);hua(this);b=this.J.getVideoData();g.J(this.element,"ytp-dni",b.qc);this.element.style.left="";this.element.style.top="";a=hp(a);a.x++;a.y++;this.Bc();var c=document.body;b=new hg(0,Infinity,Infinity,0);var d=oe(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"!=Ag(c,"overflow")){var l=g.Eg(c),
m=new g.ge(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.jg(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Cg(this.element,new g.ge(d.left,d.top));g.ut(this.I);this.I.N(document,"contextmenu",this.OO);this.I.N(this.J,"fullscreentoggled",this.KM);this.I.N(this.J,"pageTransition",this.LM)}};
g.k.OO=function(a){if(!g.kp(a)){var b=fp(a);g.Me(this.element,b)||this.nb();this.J.T().disableNativeContextMenu&&g.ip(a)}};
g.k.KM=function(){this.nb();hua(this)};
g.k.LM=function(){this.nb()};g.u(CV,g.V);CV.prototype.onClick=function(){return We(this,function b(){var c=this,d,e,f,h;return xa(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),sa(l,jua(c,h),2);l.B&&iua(c);g.$T(c.api,c.element);l.u=0})})};
CV.prototype.oa=function(){var a=this.api.T(),b=this.api.getVideoData();this.ya("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.ya("title-attr","Copy link");var c=g.cG(this.api).getPlayerSize().width;this.visible=
!!b.videoId&&240<=c&&b.Xr&&!(b.qc&&a.pfpChazalUi);g.J(this.element,"ytp-copylink-button-visible",this.visible);g.JN(this,this.visible);EV(this.tooltip);g.QN(this.api,this.element,this.visible&&this.R)};
CV.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.api,this.element,this.visible&&a)};
CV.prototype.ca=function(){g.V.prototype.ca.call(this);g.sn(this.element,"ytp-copylink-button-visible")};g.u(FV,g.V);FV.prototype.show=function(){g.V.prototype.show.call(this);this.u.Sb()};
FV.prototype.hide=function(){this.B.stop();g.sn(this.element,"ytp-chapter-seek");g.V.prototype.hide.call(this)};
FV.prototype.Jr=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&g.$T(this.J,e);this.u.rg();this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.cG(this.J).getPlayerSize().height;e=g.cG(this.J).getPlayerSize();e=e.width/3-3*e.height;var h=this.ka("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.ka("ytp-doubletap-ripple");h.style.width=
l+"px";h.style.height=l+"px";1===a?(a=g.cG(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.ka("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");kua(this,d)};var ZCa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ZCa).reduce(function(a,b){a[ZCa[b]]=b;return a},{});
var $Ca={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($Ca).reduce(function(a,b){a[$Ca[b]]=b;return a},{});
var aDa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(aDa).reduce(function(a,b){a[aDa[b]]=b;return a},{});var g2,bDa;g2=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];bDa=[{option:0,text:HV(0)},{option:.25,text:HV(.25)},{option:.5,text:HV(.5)},{option:.75,text:HV(.75)},{option:1,text:HV(1)}];
g.KV=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:g2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:HV(.5)},{option:-1,text:HV(.75)},{option:0,text:HV(1)},{option:1,text:HV(1.5)},{option:2,text:HV(2)},
{option:3,text:HV(3)},{option:4,text:HV(4)}]},{option:"background",text:"Background color",options:g2},{option:"backgroundOpacity",text:"Background opacity",options:bDa},{option:"windowColor",text:"Window color",options:g2},{option:"windowOpacity",text:"Window opacity",options:bDa},{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:HV(.25)},{option:.5,text:HV(.5)},{option:.75,text:HV(.75)},{option:1,text:HV(1)}]}];g.u(g.JV,g.tR);g.k=g.JV.prototype;
g.k.AD=function(a){var b=!1,c=g.lp(a),d=fp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.kp(a)?(e=!1,h=!0):l.Hg&&(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);ZU(this.Tb,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);ZU(this.Tb,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.He()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.He()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.tA(!0);(b||h)&&this.Nc.tk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ip(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.xa("onKeyPress",a))};
g.k.BD=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.PT(g.HT(this.api));c&&(c=c.Ml)&&c.fb&&(c.yD(a),b=!0);9===a&&(this.tA(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){e=!1;c=this.api.T();if(c.Hg)return e;var h=g.PT(g.HT(this.api));if(h&&(h=h.Ml)&&h.fb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=h.xD(a)}c.I||e||(e=f||String.fromCharCode(a).toLowerCase(),this.B+=e,0==="awesome".indexOf(this.B)?(e=!0,7===this.B.length&&un(this.api.getRootNode(),"ytp-color-party")):(this.B=e,e=0==="awesome".indexOf(this.B)));if(!e){f=(f=this.api.getVideoData())?f.Ea:[];switch(a){case 80:b&&!c.aa&&(YU(this.Tb,
$na(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:b&&!c.aa&&(YU(this.Tb,$N(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.He()&&(c.ba("web_player_seek_chapters_by_shortcut")&&this.u?GV(this.u,-1,10):YU(this.Tb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.He()&&(c.ba("web_player_seek_chapters_by_shortcut")&&this.u?GV(this.u,1,10):YU(this.Tb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.He()&&(d&&c.ba("web_player_seek_chapters_by_shortcut")?(b=nua(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(lua(this.u,-1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ba("web_player_seek_chapters_by_shortcut")&&this.u?GV(this.u,-1,5):YU(this.Tb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.He()&&(d&&c.ba("web_player_seek_chapters_by_shortcut")?(b=mua(f,1E3*this.api.getCurrentTime()),-1!==b&&null!=this.u&&(lua(this.u,1,f[b].title),this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ba("web_player_seek_chapters_by_shortcut")&&null!=this.u?GV(this.u,1,5):YU(this.Tb,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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(),ZU(this.Tb,this.api.getVolume(),!1)):(this.api.mute(),ZU(this.Tb,0,!0));e=!0;break;case 32:case 75:c.aa||(b=!g.GM(g.uK(this.api)),this.Tb.gn(b),b?this.api.playVideo():this.api.pauseVideo(),e=!0);break;case 190:b?c.Qc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b+.25,!0),Sta(this.Tb,!1),e=!0):this.api.He()&&(pua(this,1),e=!0);break;case 188:b?c.Qc&&(b=this.api.getPlaybackRate(),this.api.setPlaybackRate(b-
.25,!0),Sta(this.Tb,!0),e=!0):this.api.He()&&(pua(this,-1),e=!0);break;case 70:Eta(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.nU(g.HT(this.api))&&(c=this.api.getOption("captions","track"),this.api.toggleSubtitles(),YU(this.Tb,Sna(),!c||c&&!c.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),e=!0);break;case 79:LV(this,"textOpacity");break;case 87:LV(this,"windowOpacity");break;case 187:case 61:LV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:LV(this,"fontSizeIncrement",!0,!0)}var l;48<=a&&57>=a?l=a-48:96<=a&&105>=
a&&(l=a-96);null!=l&&this.api.He()&&(a=this.api.getProgressState(),this.api.seekTo(l/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),e=!0);e&&this.Nc.tk()}return e};
g.k.tA=function(a){g.J(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.J(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.ca=function(){this.C.rg();g.tR.prototype.ca.call(this)};g.u(MV,g.V);MV.prototype.oa=function(){var a=g.hD(this.J.T())&&g.NT(this.J)&&g.U(g.uK(this.J),128),b=this.J.getPlayerSize();this.visible=this.u.Ie()&&!a&&240<=b.width&&!(this.J.getVideoData().qc&&this.J.T().pfpChazalUi);g.J(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&EV(this.tooltip);g.QN(this.J,this.element,this.visible&&this.R)};
MV.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.J,this.element,this.visible&&a)};
MV.prototype.ca=function(){g.V.prototype.ca.call(this);g.sn(this.element,"ytp-overflow-button-visible")};g.u(NV,g.OU);g.k=NV.prototype;g.k.RM=function(a){a=fp(a);g.Me(this.element,a)&&(g.Me(this.B,a)||g.Me(this.closeButton,a)||PU(this))};
g.k.nb=function(){g.OU.prototype.nb.call(this);this.tooltip.Ci(this.element)};
g.k.show=function(){this.fb&&this.J.V("OVERFLOW_PANEL_OPENED");g.OU.prototype.show.call(this);qua(this,!0)};
g.k.hide=function(){g.OU.prototype.hide.call(this);qua(this,!1)};
g.k.QM=function(a){!a&&this.zf()&&PU(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.fb){b.focus();break}};g.u(PV,g.V);PV.prototype.Mc=function(a){this.element.setAttribute("aria-checked",String(a))};
PV.prototype.onClick=function(a){g.AU(a,this.api)&&this.api.playVideoAt(this.index)};g.u(QV,g.OU);g.k=QV.prototype;g.k.show=function(){g.OU.prototype.show.call(this);this.C.N(this.api,"videodatachange",this.qz);this.C.N(this.api,"onPlaylistUpdate",this.qz);this.qz()};
g.k.hide=function(){g.OU.prototype.hide.call(this);g.ut(this.C);this.updatePlaylist(null)};
g.k.qz=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.Xv=function(){var a=this.playlist,b=a.xu;if(b===this.D)this.selected.Mc(!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 PV(this.api,a,d);this.B.push(e);e.ga(this.items)}this.selected=this.B[a.index];this.D=b}this.selected&&this.selected.Mc(!0)};
g.k.PQ=function(a){var b=this.api.getVideoUrl(!0);g.BU(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Xv,this),this.playlist=a,this.D=null,a){a.subscribe("shuffle",this.Xv,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.tL(c,d),playlisturl:this.api.getVideoUrl(!0)});this.Xv()}else this.fb&&this.hide();
else this.playlist&&this.Xv()};
g.k.focus=function(){this.selected.focus()};
g.k.ca=function(){this.hide();g.OU.prototype.ca.call(this)};g.u(RV,g.V);
RV.prototype.oa=function(){var a=g.hD(this.api.T());g.J(this.element,"ytp-playlist-menu-button-tiny",400>g.cG(this.api).getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.tL("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.tL("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.fb||(this.show(),EV(this.tooltip)),this.visible=!0):this.fb&&
(this.hide(),EV(this.tooltip))};
RV.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.api,this.element,this.visible&&a)};
RV.prototype.u=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.oa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.oa,this);this.oa()};g.u(SV,g.V);g.k=SV.prototype;
g.k.rz=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n,p=this.tooltipRenderer.text,r=!1;(null===(c=null===p||void 0===p?void 0:p.runs)||void 0===c?0:c.length)&&p.runs[0].text&&(this.update({title:p.runs[0].text.toString()}),r=!0);g.Mg(this.title,r);p=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===p||void 0===p?void 0:p.runs)||void 0===d?0:d.length)&&p.runs[0].text){r=p.runs[0].text.toString();d=r.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){p=[];
r=r.split("$TARGET_ICON");var t=new g.GN({G:"span",L:"ytp-promotooltip-details-icon",S:[cDa[this.tooltipRenderer.targetId]]});g.D(this,t);for(var w=[],y=g.q(r),x=y.next();!x.done;x=y.next())x=new g.GN({G:"span",L:"ytp-promotooltip-details-component",Z:x.value}),g.D(this,x),w.push(x);2===r.length?(p.push(w[0].element),p.push(t.element),p.push(w[1].element)):1===r.length&&(0===d?(p.push(t.element),p.push(w[0].element)):(p.push(w[0].element),p.push(t.element)));d=p.length?p:null}else d=null;else d=r;
if(d){if("string"!==typeof d)for(g.He(this.details),c=g.q(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.Mg(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);g.Mg(this.acceptButton,
d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.Mg(this.dismissButton,f)}b&&(this.B=b);this.u=rua(this);this.D=!1;this.J.T().ba("web_player_hide_nitrate_promo_tooltip")||g.JN(this,!0);(l=!this.u)||(l=this.u,m=window.getComputedStyle(l),
l="none"===m.display||"hidden"===m.visibility||"true"===l.getAttribute("aria-hidden"));l||this.J.app.visibility.u?g.JN(this,!1):(l=g.Lg(this.u),l.width&&l.height?(this.I.To(this.element,this.u),m=g.cG(this.J).getPlayerSize().height-g.Lg(this.element).height-l.height-12,this.element.style.top=m+"px",m=this.ka("ytp-promotooltip-pointer"),n=g.Jg(this.u,this.J.getRootNode()),e=Number(this.element.style.left.replace(/[^\d\.]/g,"")),f=this.J.isFullscreen()?18:12,m.style.left=n.x-e+l.width/2-f+"px"):g.JN(this,
!1));this.F||(this.F=!0,TV(this,0))}};
g.k.IO=function(){g.JN(this,!1);this.D=!0};
g.k.QN=function(){this.C=!0;TV(this,1);this.J.V("promotooltipacceptbuttonclicked",this.acceptButton);g.JN(this,!1)};
g.k.NO=function(){this.C=!0;TV(this,2);g.JN(this,!1)};
g.k.YM=function(a){var b,c;if(1===this.J.getPresentingPlayerType()){var d=!0,e=g.se("ytp-ad-overlay-ad-info-dialog-container"),f=fp(a);if(this.B&&f&&g.Me(this.B,f))this.B=null;else{1===this.J.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=sua(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Me(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.Me(this.element,f));this.u&&this.fb&&!e&&(!f||d&&g.cP(a))&&(this.C=!0,g.JN(this,!1))}}};
g.k.Va=function(){this.D||(this.u||(this.u=rua(this)),this.rz())};
var cDa={"ytp-settings-button":g.cO()};g.u(UV,g.V);UV.prototype.u=function(a){g.JN(this,g.U(a.state,2))};
UV.prototype.onClick=function(){g.uK(this.J);this.J.playVideo()};g.u(g.VV,g.V);g.VV.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.Ij(),PU(this.C,this.element,!1));g.$T(this.api,this.element)};
g.VV.prototype.oa=function(){var a=this.api.T(),b=this.api.getVideoData();this.u.Ie();var c=g.hD(a)&&g.NT(this.api)&&g.U(g.uK(this.api),128);this.ya("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.Xr||c||b.qc&&a.pfpChazalUi;c=g.cG(this.api).getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.J(this.element,"ytp-share-button-visible",this.visible);g.JN(this,this.visible);EV(this.tooltip);g.QN(this.api,this.element,this.visible&&this.R)};
g.VV.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.api,this.element,this.visible&&a)};
g.VV.prototype.ca=function(){g.V.prototype.ca.call(this);g.sn(this.element,"ytp-share-button-visible")};g.u(g.WV,g.OU);g.k=g.WV.prototype;g.k.bN=function(a){a=fp(a);g.Me(this.F,a)||g.Me(this.closeButton,a)||PU(this)};
g.k.nb=function(){g.OU.prototype.nb.call(this);this.tooltip.Ci(this.element)};
g.k.show=function(){var a=this.fb;g.OU.prototype.show.call(this);this.oa();a||this.api.xa("onSharePanelOpened")};
g.k.oa=function(){var a=this;g.I(this.element,"ytp-share-panel-loading");g.sn(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.Q(e.experiments,"web_player_innertube_share_panel")&&b.getSharePanelCommand?cT(dG(this.api.app),b.getSharePanelCommand,{includeListId:d}).then(function(f){uua(a,f)}):(g.J(this.element,"ytp-share-panel-has-playlist",!!c),b={action_get_share_info:1,
video_id:b.videoId},e.ye&&(b.authuser=e.ye),e.pageId&&(b.pageid=e.pageId),g.hD(e)&&g.eV(b,"emb_share"),d&&(b.list=c),g.qq(e.P+"share_ajax",{method:"GET",onError:function(){wua(a)},
onSuccess:function(f,h){h?uua(a,h):wua(a)},
si:b,withCredentials:!0}));c=this.api.getVideoUrl(!0,!0,!1,!1);this.ya("link",c);this.ya("linkText",c);this.ya("shareLinkWithUrl",g.tL("Share link $URL",{URL:c}));DU(this.C)};
g.k.aN=function(a){!a&&this.zf()&&PU(this)};
g.k.focus=function(){this.C.focus()};
g.k.ca=function(){g.OU.prototype.ca.call(this);vua(this)};g.u(ZV,g.V);g.k=ZV.prototype;g.k.DF=function(){};
g.k.EF=function(){};
g.k.cw=function(){return!0};
g.k.ZR=function(){if(this.expanded){this.Y.show();var a=this.D.element.scrollWidth}else a=this.D.element.scrollWidth,this.Y.hide();this.Ga=34+a;g.J(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ga)+"px";this.X.start()};
g.k.ZJ=function(){this.badge.element.style.width=(this.expanded?this.Ga:34)+"px";this.ha.start()};
g.k.ri=function(){this.cw()?this.P.show():this.P.hide();xua(this)};
g.k.TM=function(){this.enabled=!1;this.ri()};
g.k.zS=function(a){this.Qa=a;this.ri()};
g.k.vO=function(a){this.za=1===a;this.ri()};g.u($V,ZV);g.k=$V.prototype;g.k.ca=function(){aW(this);ZV.prototype.ca.call(this)};
g.k.DF=function(a){a.target!==this.dismissButton.element&&(yua(this,!1),this.J.xa("innertubeCommand",this.onClickCommand))};
g.k.EF=function(){this.dismissed=!0;yua(this,!0);this.ri()};
g.k.QP=function(a){this.fa=a;this.ri()};
g.k.HP=function(a){var b=this.J.getVideoData();b&&b.videoId===this.videoId&&this.aa&&(this.K=a,a||(a=3+this.J.getCurrentTime(),zua(this,a)))};
g.k.Ra=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.u=!0,this.K=this.aa=this.F=this.I=!1,aW(this));if(d||!b.videoId)this.C=this.B=!1;d=b.shoppingOverlayRenderer;this.fa=this.enabled=!1;if(d){this.enabled=!0;var e,f;this.B||(this.B=!!d.trackingParams)&&g.NN(this.J,this.badge.element,d.trackingParams||null);this.C||(this.C=!(null===(e=d.dismissButton)||void 0===e||!e.trackingParams))&&g.NN(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.Aa=g.T(e);this.onClickCommand=d.onClickCommand;this.timing=d.timing;YI(b)?this.K=this.aa=!0:zua(this)}d=this.text||"";g.Ne(g.se("ytp-suggested-action-badge-title",this.element),d);this.badge.element.setAttribute("aria-label",d);this.dismissButton.element.setAttribute("aria-label",this.Aa?this.Aa:"");YV(this);this.ri()};
g.k.cw=function(){return this.Qa&&!this.fa&&this.enabled&&!this.dismissed&&!this.Ta.Ie()&&!this.J.isFullscreen()&&!this.za&&!this.K&&(this.F||this.u)};
g.k.ff=function(a){(this.F=a)?(XV(this),YV(this,!1)):(aW(this),this.ma.start());this.ri()};g.u(bW,g.OU);bW.prototype.show=function(){g.OU.prototype.show.call(this);this.B.start()};
bW.prototype.hide=function(){g.OU.prototype.hide.call(this);this.B.stop()};g.u(cW,g.V);cW.prototype.onClick=function(){this.J.fn()};
cW.prototype.oa=function(){g.JN(this,this.J.Jq());this.ya("icon",this.J.Ze()?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
S:[{G:"path",wb:!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 zq("yt.autonav");g.u(dW,g.V);g.k=dW.prototype;
g.k.er=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.XT(this.J)&&400<=g.cG(this.J).getPlayerSize().width)this.u||(this.u=!0,g.JN(this,this.u),this.B.push(this.N(this.J,"videodatachange",this.er)),this.B.push(this.N(this.J,"videoplayerreset",this.er)),this.B.push(this.N(this.J,"onPlaylistUpdate",this.er)),this.B.push(this.N(this.J,"autonavchange",this.TE)),a=this.J.getVideoData(),this.TE(a.autonavState),g.QN(this.J,this.element,this.u));else{this.u=!1;g.JN(this,this.u);a=g.q(this.B);
for(var b=a.next();!b.done;b=a.next())this.Mb(b.value)}};
g.k.TE=function(a){this.isChecked=1!==a||!g.jt(g.ht.getInstance(),140);Aua(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;var a=this.J,b=this.isChecked?2:1;cBa(a.app,b);b&&a1(a.app,b);Aua(this);g.$T(this.J,this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ka("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.fW,g.V);g.fW.prototype.ca=function(){this.u=null;g.V.prototype.ca.call(this)};g.u(gW,g.V);gW.prototype.Y=function(a){var b=g.Lg(this.I).width,c=g.Lg(this.X).width,d=this.K.ge()?3:1;a=a.width-b-c-40*d-52;0<a&&(this.D.style.maxWidth=a+"px")};
gW.prototype.onClick=function(){this.J.xa("innertubeCommand",this.C)};
gW.prototype.updateVideoData=function(a,b){var c=b.vR;this.C=null===c||void 0===c?void 0:c.command;this.u.disabled=null==this.C;g.J(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.sc()};
gW.prototype.sc=function(){var a="",b=this.P.Ea;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=IV(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.B)this.J.xa("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.hW,g.V);g.hW.prototype.lc=function(a){g.U(a.state,32)?iW(this,this.api.tg()):this.fb&&(g.U(a.state,16)||g.U(a.state,1))||this.u.hide()};
g.hW.prototype.ie=function(){var a=g.uK(this.api);(g.U(a,32)||g.U(a,16))&&jW(this)};
g.hW.prototype.C=function(){this.B=NaN;jW(this)};
g.hW.prototype.hide=function(){this.oh&&iW(this,null);g.V.prototype.hide.call(this)};g.u(kW,g.V);kW.prototype.onClick=function(){g.$T(this.u,this.element);this.u.xa("onFullerscreenEduClicked")};
kW.prototype.oa=function(){this.u.isFullscreen()?this.B?this.C.hide():this.C.show():this.hide();g.QN(this.u,this.element,this.u.isFullscreen()&&!this.B)};g.u(g.lW,g.V);g.k=g.lW.prototype;g.k.onClick=function(){var a=this;if(this.J.T().za||this.J.T().ba("embeds_enable_mobile_custom_controls"))try{this.J.toggleFullscreen()["catch"](function(b){Cua(a,b)})}catch(b){Cua(this,b)}else PU(this.message,this.element,!0)};
g.k.Fz=function(){this.disable();this.message.Bc(this.element,!0)};
g.k.jk=function(){ot()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.DJ=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.Fz()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Xo(["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.OU(this.J,{G:"div",la:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{G:"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.D(this,this.message);this.message.subscribe("show",function(c){a.C.hq(a.message,c)});
g.BP(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.oa=function(){g.JN(this,Eta(this.J))};
g.k.WE=function(a){if(a){var b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",wb:!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"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",wb:!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"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",wb:!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"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",S:[{G:"path",wb:!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.EU(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",wb:!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"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",S:[{G:"path",
wb:!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"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",wb:!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"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",wb:!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.EU(this.J,"Full screen","f");this.ya("icon",b);this.ya("title",this.message?null:a);EV(this.C.Rb())};
g.k.ca=function(){this.message||((0,this.u)(),this.u=null);g.V.prototype.ca.call(this)};g.u(mW,g.V);mW.prototype.onClick=function(){this.J.xa("onCollapseMiniplayer");g.$T(this.J,this.element)};
mW.prototype.oa=function(){this.visible=!this.J.isFullscreen();g.JN(this,this.visible);g.QN(this.J,this.element,this.visible&&this.R)};
mW.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.J,this.element,this.visible&&a)};g.u(nW,g.V);nW.prototype.Ra=function(a){this.oa("newdata"===a)};
nW.prototype.oa=function(a){var b=this.J.getVideoData(),c=b.Vl,d=g.uK(this.J);d=(g.GM(d)||g.U(d,4))&&0<c.length;g.JN(this,d);a&&(this.u=!0);if(d){this.u&&this.B.Sb();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.tL("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.ne("default.jpg")});EV(this.tooltip)}else this.B.stop()};
nW.prototype.C=function(){DV(this.tooltip,this.element,"More cameras available");this.u=!1};g.u(oW,g.OU);g.k=oW.prototype;g.k.show=function(){var a=this.fb;g.OU.prototype.show.call(this);a||(this.C.N(this.api,"presentingplayerstatechange",this.oa),this.C.N(this.api,"videodatachange",this.oa),this.oa())};
g.k.hide=function(){this.C&&(g.ut(this.C),g.OU.prototype.hide.call(this))};
g.k.oa=function(){var a=this,b=this.api.getVideoData(),c=b.Vl,d,e={};for(d=0;d<c.length;e={Lw:e.Lw},d++){var f=this.B[d];f||(f=new g.V({G:"button",la:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{G:"div",L:"ytp-multicam-menu-item-title",Z:"{{cameraName}}"}]}),e.Lw=d,f.wa("click",function(n){return function(){var p=n.Lw,r=a.api.getVideoData(),t=a.api;p=r.Vl[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.xN(t.app,1),r.isLivePlayback||t.seekTo(w)):(g.xN(t.app,4),t.app.loadVideoByPlayerVars({videoId:p.id,title:r.title,start:r.isLivePlayback?null:w,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:r.rF}}}},4))}}(e)),f.ga(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=ED(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.uK(this.api);b=c.length||!b.Uc();g.GM(d)||g.U(d,4)||b||!this.zf()||PU(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Vl,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.B[c].focus();break}};
g.k.ca=function(){g.gg(this.B);g.OU.prototype.ca.call(this)};g.u(pW,g.C);pW.prototype.u=function(){var a=(0,g.N)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(g.Dn(dDa,a));1>a&&this.delay.start()};
var dDa=new g.Cn(0,0,.4,0,.2,1,1,1),Hua=/[0-9.-]+|[^0-9.-]+/g;g.u(rW,g.V);g.k=rW.prototype;g.k.XE=function(a){this.visible=300<=a.width;g.JN(this,this.visible);g.QN(this.J,this.element,this.visible&&this.R)};
g.k.yP=function(){this.J.T().X?this.J.isMuted()?this.J.unMute():this.J.mute():PU(this.message,this.element,!0);g.$T(this.J,this.element)};
g.k.PM=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.Y;isNaN(h)?Kua(this,f):qW(this.fa,function(m){Kua(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)?Lua(this,d):qW(this.X,function(m){Lua(c,l+(c.D-l)*m)},250);
this.D=d}e.X&&(e=g.EU(this.J,"Mute","m"),d=g.EU(this.J,"Unmute","m"),e=b?d:e,this.ya("title",e),this.ya("label",e),EV(this.tooltip))};
g.k.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.J,this.element,this.visible&&a)};
var Iua=["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"],Jua=["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(sW,g.V);sW.prototype.onClick=function(){this.J.togglePictureInPicture()};g.u(g.tW,g.V);g.tW.prototype.B=function(a){Mua(this,a.state)};
g.tW.prototype.Ra=function(){g.J(this.element,"ytp-play-button-playlist",g.NT(this.J))};
g.tW.prototype.C=function(){g.GM(g.uK(this.J))?this.J.pauseVideo():this.J.playVideo()};g.u(g.wW,g.V);g.k=g.wW.prototype;g.k.Ra=function(){Oua(this);this.D&&(this.Mb(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.Ra,this),this.D=this.N(this.J,"progresssync",this.UM);this.C=Pua(this);vW(this);this.pz(g.cG(this.J).getPlayerSize())};
g.k.pz=function(a){a=void 0===a?g.cG(this.J).getPlayerSize():a;var b=g.NT(this.J)||this.u&&g.XT(this.J)||Qua(this);g.JN(this,b&&(this.u||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.AU(a,this.J):g.ip(a);b&&(this.u&&5===this.J.getPresentingPlayerType()?this.J.V("ytoprerollinternstitialnext"):this.u?this.J.nextVideo(!0):this.C?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.UM=function(){var a=Pua(this);a!==this.C&&(this.C=a,vW(this))};
g.k.ca=function(){this.B&&(this.B(),this.B=null);Oua(this);g.V.prototype.ca.call(this)};g.u(xW,g.V);xW.prototype.Pa=function(a){return"PLAY_PROGRESS"===a?this.F:"LOAD_PROGRESS"===a?this.D:this.B};Rua.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.F=d;this.u=b-c-d;this.position=g.ce(a,c,c+this.u);this.D=this.position-c;this.C=this.D/this.u};g.u(Sua,g.V);g.u(g.hX,g.KN);g.k=g.hX.prototype;g.k.Va=function(){g.jX(this);kX(this);Wua(this,this.Aa)};
g.k.sc=function(){kX(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.Tv()};
g.k.XM=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.ip(a)}};
g.k.YE=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.MK=function(){this.YE("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.fd=c&&a.allowLiveDvr;fva(this,this.api.He());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,pX(this),lX(this,this.K,this.ma)):this.Tv(),g.dY(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData().multiMarkersPlayerBarRenderer;var d=this.api.getVideoData().sx;c=null!=c||null!=d&&0<d.length}if(!c||this.F||this.F)Tua(this),Uua(this);else if(c=this.api.getVideoData().multiMarkersPlayerBarRenderer){var e;
this.Ta=null===(e=c.visibleOnLoad)||void 0===e?void 0:e.key;e=c.markersMap;null==this.Ta&&(this.Ta=e[0].key);e=g.q(e);for(c=e.next();!c.done;c=e.next())c=c.value,c.key&&c.value&&(this.Cc[c.key]=c.value);e=this.Ta;var f,h;if(c=null===(f=this.Cc[e])||void 0===f?void 0:f.chapters)Xua(this,c),this.api.getVideoData().Ea=this.Ea;if(f=null===(h=this.Cc[e])||void 0===h?void 0:h.markers){var l;Uua(this);h=g.q(f);for(f=h.next();!f.done;f=h.next())if(e=f.value,f=new Sua,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.Aa.push(f),g.D(this,f),f.ga(this.ng,this.ng.children.length);Wua(this,this.Aa)}}else if(l=this.api.getVideoData().sx)Xua(this,l),this.api.getVideoData().Ea=this.Ea}kX(this)};
g.k.WM=function(a){this.I&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.I.cancel()};
g.k.hI=function(a){var b=!!this.F!==!!a;(this.F=a)?(this.ya("clipstarticon",Wna()),this.ya("clipendicon",Wna()),this.ya("clipstarttitle",null),this.ya("clipendtitle",null)):(this.ya("clipstarticon",Rna()),this.ya("clipendicon",Qna()),this.ya("clipstarttitle","Watch entire video"),this.ya("clipendtitle","Watch entire video"));pX(this);lX(this,this.K,this.ma);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.jX(this))};
g.k.TP=function(a,b,c){var d=g.Eg(this.element),e=iX(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=nP(this.u,Number(c.getAttribute("data-position")),0)*e+g.Eg(this.nd).x);this.Ya.x=a-d.x;this.Ya.y=b-d.y;a=iX(this);d=oX(this,a);b=f||g.bP(this.fd?d-this.u.u:d);c=a.position+this.Hg;d-=this.api.yc();if(this.api.tg()){if(1<this.Ea.length)for(e=nX(this,this.Ya.x,!0),h=0;h<this.Ea.length;)g.J(this.Ea[h].u,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=IV(this.Ea,1E3*d);(e=this.Ea[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=IV(this.Ea,1E3*d);this.ia=$ua(this,d,h)?h:$ua(this,d,h+1)?h+1:-1;g.J(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.ia&&1<this.Ea.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);yva(this.tooltip,
c,d,b,!!f,l,e,n)}else yva(this.tooltip,c,d,b,!!f,l);g.J(this.api.getRootNode(),"ytp-progress-bar-hover",!g.U(g.uK(this.api),64));Zua(this)};
g.k.SP=function(){g.dY(this.tooltip);g.sn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.RP=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.Ig=b;1<this.Ea.length&&0<this.Dc&&-1!==this.ia?this.api.seekTo(this.Ea[this.ia].startTime/1E3,!1):this.api.seekTo(oX(this,iX(this)),!1);g.I(this.element,"ytp-drag");(this.ce=g.GM(g.uK(this.api)))&&this.api.pauseVideo()};
g.k.UP=function(){var a=this;this.ub=0;g.sn(this.element,"ytp-pull-ui");g.sn(this.element,"ytp-pulling");this.D&&(this.D.dispose(),this.D=null);if(0<this.P){var b=(0,g.N)();this.D=new g.gn(function(){var c=a.P,d=iX(a).position,e=1-Math.pow(1-((0,g.N)()-b)/200,3);d+=e*(a.K*a.C-d);if(0>e||1<e)e=1;ava(a,(1-e)*c,d,a.K);1>e&&a.D.start()});
this.D.start()}if(g.U(g.uK(this.api),32)||3===this.api.getPresentingPlayerType())1<this.Ea.length&&0<this.Dc&&-1!==this.ia?this.api.seekTo(this.Ea[this.ia].startTime/1E3):this.api.seekTo(oX(this,iX(this))),g.sn(this.element,"ytp-drag"),this.ce&&!g.U(g.uK(this.api),2)&&this.api.playVideo()};
g.k.VP=function(a,b){var c=this,d=!1,e=!1,f=iX(this);3600<=this.u.getLength()&&1===this.Ea.length&&(ava(this,this.Ig-b-10,f.position,f.C),e=!0,d=this.P>.1*(this.B?60:40),f=iX(this));g.J(this.element,"ytp-pull-ui",e);d&&g.I(this.element,"ytp-pulling");d=0;f.B&&0>=f.position&&1===this.Ea.length?d=-1:f.F&&f.position>=f.width&&1===this.Ea.length&&(d=1);if(this.ub!==d&&1===this.Ea.length&&(this.ub=d,this.D&&(this.D.dispose(),this.D=null),d)){var h=(0,g.N)();this.D=new g.gn(function(){var l=c.C*(c.ha-1);
c.X=g.ce(c.X+c.ub*((0,g.N)()-h)*.3,0,l);mX(c);c.api.seekTo(oX(c,iX(c)),!1);0<c.X&&c.X<l&&c.D.start()});
this.D.start()}this.api.seekTo(oX(this,f),!1)};
g.k.setPosition=function(a,b,c){var d=this.C!==b;this.Hg=a;this.C=b;this.B=c;mX(this);1===this.Ea.length&&(this.Ea[0].width=b||0);d&&g.jX(this)};
g.k.HF=function(){this.F||(this.ya("clipstarticon",Pna()),this.ya("clipendicon",Pna()),g.I(this.element,"ytp-clip-hover"))};
g.k.GF=function(){this.F||(this.ya("clipstarticon",Rna()),this.ya("clipendicon",Qna()),g.sn(this.element,"ytp-clip-hover"))};
g.k.Tv=function(){this.clipStart=0;this.clipEnd=Infinity;pX(this);lX(this,this.K,this.ma)};
g.k.jI=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.aa[c]){var d=g.Fe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.aa[c]=b;this.kb[c]=d;g.pn(d,b.style);bva(this,c);g.Q(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.Ea[0].C.appendChild(d)}}else eva(this,b)};
g.k.HR=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())eva(this,b.value)};
g.k.ca=function(){fva(this,!1);g.KN.prototype.ca.call(this)};g.u(sX,g.V);sX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
sX.prototype.oa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.JN(this,a&&400<=g.cG(this.J).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.ya("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.ya("icon",g.Ona())}g.J(this.element,"ytp-remote-button-active",this.isActive())}};
sX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Xa,b=this.element;if(a.zf())a.nb();else{a.initialize();a:{var c=g.q(a.sd.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.Bc(b));a.Bc(b)}}};g.u(tX,g.V);tX.prototype.u=function(a){a=this.B&&400<=a.width;g.JN(this,a);g.QN(this.J,this.element,a)};
tX.prototype.C=function(){if(this.Xa.fb)this.Xa.nb();else{var a=g.nU(g.HT(this.J));a&&!a.loaded&&(a.Ae("tracklist",{includeAsr:!0}).length||a.load());g.$T(this.J,this.element);this.Xa.Bc(this.element)}};
tX.prototype.updateBadge=function(){var a=this.J.Vg(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.QT(this.J),e=c&&!!g.PT(g.HT(this.J));b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.J(this.element,"ytp-hdr-quality-badge",a);g.J(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.J(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.J(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.J(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.J(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.J(this.element,"ytp-3d-badge",!a&&e&&d)};g.u(vX,g.tV);vX.prototype.Uc=function(){var a=g.RT(g.HT(this.J));return void 0!==a&&a.loaded};
vX.prototype.oa=function(){void 0!==g.RT(g.HT(this.J))&&3!==this.J.getPresentingPlayerType()?this.u||(this.Xa.Wb(this),this.u=!0):this.u&&(this.Xa.re(this),this.u=!1);this.setValue(this.Uc())};
vX.prototype.B=function(a){this.Uc();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.V("annotationvisibility",a)};
vX.prototype.ca=function(){this.u&&this.Xa.re(this);g.tV.prototype.ca.call(this)};g.u(g.wX,g.lV);g.k=g.wX.prototype;g.k.open=function(){g.vV(this.Xa,this.C)};
g.k.Mc=function(a){hva(this);this.options[a].element.setAttribute("aria-checked","true");this.Gc(this.Th(a));this.B=a};
g.k.ix=function(a,b,c){var d=this;b=new g.lV({G:"div",la:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{G:"div",la:["ytp-menuitem-label"],Z:"{{label}}"}]},b,this.Th(a,!0));b.wa("click",function(){d.af(a)});
return b};
g.k.enable=function(a){this.F?a||(this.F=!1,this.Go(!1)):a&&(this.F=!0,this.Go(!0))};
g.k.Go=function(a){a?this.Xa.Wb(this):this.Xa.re(this)};
g.k.af=function(a){this.V("select",a)};
g.k.Th=function(a){return a.toString()};
g.k.ZM=function(a){g.kp(a)||39!==g.lp(a)||(this.open(),g.ip(a))};
g.k.ca=function(){this.F&&this.Xa.re(this);g.lV.prototype.ca.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(yX,g.wX);yX.prototype.oa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.xX(this,g.Oc(a,this.D)),this.tracks=g.Db(a,this.D,this),this.u.Gc(a.length?" ("+a.length+")":""),this.V("size-change"),this.Mc(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
yX.prototype.af=function(a){g.wX.prototype.af.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Xa.fg()};
yX.prototype.D=function(a){return a.toString()};g.u(zX,g.tV);
zX.prototype.C=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.XT(this.J))this.u||(this.Xa.Wb(this),this.u=!0,this.B.push(this.N(this.J,"videodatachange",this.C)),this.B.push(this.N(this.J,"videoplayerreset",this.C)),this.B.push(this.N(this.J,"onPlaylistUpdate",this.C)),this.B.push(this.N(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),g.QN(this.J,this.element,this.u));else if(this.u){this.Xa.re(this);this.u=!1;a=g.q(this.B);for(var b=a.next();!b.done;b=
a.next())this.Mb(b.value)}};
zX.prototype.D=function(a){this.setValue(1!==a)};
zX.prototype.F=function(a){var b=this.J;a=a?2:1;cBa(b.app,a);a&&a1(b.app,a);this.u&&(g.QN(this.J,this.element,this.u),g.$T(this.J,this.element))};
zX.prototype.ca=function(){this.u&&this.Xa.re(this);g.tV.prototype.ca.call(this)};g.u(AX,g.OU);AX.prototype.Bc=function(){g.OU.prototype.Bc.call(this);this.dialog.focus()};g.u(BX,g.lV);BX.prototype.Eb=function(a){this.B&&g.QN(this.J,this.element,this.u&&a)};
BX.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.kV(this,CX(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.C=new AX(this.J,CX(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),CX(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),CX(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.D(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.MN(this.J,this.element,this,!0),g.NN(this.J,this.element,d);this.Xa.Wb(this);this.u=!0}else!c&&this.u&&(this.Xa.re(this),this.u=!1)};
BX.prototype.onClick=function(){this.B&&g.$T(this.J,this.element);this.Xa.nb();this.C&&this.C.Bc()};g.u(DX,g.wX);g.k=DX.prototype;g.k.gr=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.nm(),a=this.J.getAvailableQualityLevels(),g.bta(this.J)&&g.cta(this.J)&&a.unshift("missing-qualities"),gta(this.J)&&a.unshift("inline-survey"),g.xX(this,a),a.length)){this.ZE();this.enable(!0);return}this.enable(!1)};
g.k.ZE=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.u=this.J.getPlaybackQuality(),this.Mc(a),"auto"===a&&this.Gc(this.Th(a)))};
g.k.af=function(a){"missing-qualities"!==a&&(g.wX.prototype.af.call(this,a),this.J.setPlaybackQuality(a),this.Xa.nb(),this.gr())};
g.k.ix=function(a,b,c){var d=this;if("inline-survey"!==a)return g.wX.prototype.ix.call(this,a,b,c);a=[{G:"span",Z:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={Hs:c.Hs},f=e.next())c.Hs=f.value,f=new g.V({G:"span",L:"ytp-menuitem-inline-survey-response",S:[c.Hs?g.YN():Una()],U:{tabindex:"0",role:"button"}}),f.wa("click",function(h){return function(){var l=g.Z(d.J.app);l&&(l.Na("iqsr",h.Hs?"0":"1"),l.getVideoData().OD=!0);d.Xa.nb();d.gr()}}(c)),a.push(f);
return new g.lV({G:"div",L:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{G:"div",la:["ytp-menuitem-label"],S:a}]},b)};
g.k.Th=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"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=[iva(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(iva(this,this.u,["ytp-menu-label-secondary"])));return{G:"div",S:c}};g.u(EX,g.V);g.k=EX.prototype;g.k.init=function(){this.en(this.u);this.ya("minvalue",this.minimumValue);this.ya("maxvalue",this.maximumValue)};
g.k.eN=function(a){if(!g.kp(a)){switch(g.lp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.en(this.u+b);g.ip(a)}};
g.k.cN=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.F:this.F;this.en(b);g.ip(a)};
g.k.dN=function(a){a=(a-g.Eg(this.B).x)/this.K*this.range+this.minimumValue;this.en(a)};
g.k.en=function(a,b){b=void 0===b?"":b;var c=g.ce(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.ya("valuenow",c);this.ya("valuetext",b);this.X.style.left=(c-this.minimumValue)/this.range*(this.K-this.P)+"px";this.u=c};
g.k.focus=function(){this.aa.focus()};g.u(GX,EX);GX.prototype.Y=function(){this.J.setPlaybackRate(this.u,!0)};
GX.prototype.en=function(a){EX.prototype.en.call(this,a,HX(this,a).toString());this.C&&(FX(this),this.fa())};
GX.prototype.ha=function(){var a=this.J.getPlaybackRate();HX(this,this.u)!==a&&(this.en(a),FX(this))};g.u(IX,g.KN);IX.prototype.focus=function(){this.u.focus()};g.u(jva,oV);g.u(JX,g.wX);g.k=JX.prototype;g.k.Th=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.oa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);mva(this)};
g.k.Go=function(a){g.wX.prototype.Go.call(this,a);a?(this.K=this.N(this.J,"onPlaybackRateChange",this.fN),mva(this),kva(this,this.J.getPlaybackRate())):(this.Mb(this.K),this.K=null)};
g.k.fN=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||lva(this,b);kva(this,a)};
g.k.af=function(a){g.wX.prototype.af.call(this,a);a===this.u?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Xa.fg()};g.u(LX,g.wX);g.k=LX.prototype;g.k.Mc=function(a){g.wX.prototype.Mc.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Th=function(a){return this.getOption(a).text||""};
g.k.af=function(a){g.wX.prototype.af.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.u(MX,g.pV);MX.prototype.se=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.kl[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Mc(e),c.D.element.setAttribute("aria-checked",String(!d)),c.u.element.setAttribute("aria-checked",String(d)))}}};
MX.prototype.ag=function(a,b){this.V("settingChange",a,b)};g.u(NX,g.wX);NX.prototype.getKey=function(a){return a.languageCode};
NX.prototype.Th=function(a){return this.languages[a].languageName||""};
NX.prototype.af=function(a){this.V("select",a);g.AV(this.Xa)};g.u(OX,g.wX);g.k=OX.prototype;g.k.getKey=function(a){return g.Sb(a)?"__off__":a.displayName};
g.k.Th=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.af=function(a){"__translate__"===a?this.u.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.dV(this.J.T(),this.J.getVideoData()),g.RL(a)):(this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.wX.prototype.af.call(this,a),this.Xa.fg())};
g.k.oa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData();b=b&&b.gt;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.Db(c,this.getKey,this);var f=g.Oc(c,this.getKey);if(e.length&&!g.Sb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===
l});
saa(e,h)}ova(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.xX(this,f);this.Mc(e);d&&d.translationLanguage?this.u.Mc(this.u.getKey(d.translationLanguage)):hva(this.u);a&&this.D.se(this.J.getSubtitlesUserSettings());this.K.Gc(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.enable(!0)}else this.enable(!1)};
g.k.jN=function(a){var b=this.J.getOption("captions","track");b=g.Vb(b);b.translationLanguage=this.u.languages[a];this.J.setOption("captions","track",b)};
g.k.ag=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}pva(this,!0);this.I.start();this.D.se(this.J.getSubtitlesUserSettings())};
g.k.yQ=function(a){a||this.I.rg()};
g.k.ca=function(){this.I.rg();g.wX.prototype.ca.call(this)};g.u(PX,g.xV);g.k=PX.prototype;g.k.initialize=function(){if(!this.Yd){this.Yd=!0;this.cz=new BX(this.J,this);g.D(this,this.cz);var a=new DX(this.J,this);g.D(this,a);a=new OX(this.J,this);g.D(this,a);a=new vX(this.J,this);g.D(this,a);this.J.T().Qc&&(a=new JX(this.J,this),g.D(this,a));this.J.T().Zb&&!g.Q(this.J.T().experiments,"web_player_move_autonav_toggle")&&(a=new zX(this.J,this),g.D(this,a));a=new yX(this.J,this);g.D(this,a);uX(this.settingsButton,this.sd.items.length)}};
g.k.Wb=function(a){this.initialize();this.sd.Wb(a);uX(this.settingsButton,this.sd.items.length)};
g.k.re=function(a){this.fb&&1>=this.sd.items.length&&this.hide();this.sd.re(a);uX(this.settingsButton,this.sd.items.length)};
g.k.Bc=function(a){this.initialize();0<this.sd.items.length&&g.xV.prototype.Bc.call(this,a)};
g.k.show=function(){g.xV.prototype.show.call(this);g.I(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.xV.prototype.hide.call(this);g.sn(this.J.getRootNode(),"ytp-settings-shown")};
g.k.ff=function(a){var b;g.QN(this.J,this.element,a);null===(b=this.cz)||void 0===b?void 0:b.Eb(a)};g.u(QX,g.V);QX.prototype.onClick=function(){var a=this.J.app;a.u.xa("SIZE_CLICKED",!a.ce)};
QX.prototype.oa=function(){g.JN(this,this.J.app.wi&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.fb){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",wb:!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.ya("icon",b):Gua(this.transition,this.element,b);this.isWidescreen=a;b=g.EU(this.J,"Default view","t");var c=g.EU(this.J,"Theater mode","t");this.ya("title",a?b:c);EV(this.tooltip)}}};g.u(RX,g.V);RX.prototype.onClick=function(){this.J.toggleSubtitles();if(!this.isEnabled()){var a=!1,b=g.jt(g.ht.getInstance(),65);g.ND(this.J.T())&&null!=b&&(a=!b);a&&g.Q(this.J.T().experiments,"web_player_nitrate_promo_tooltip")&&this.J.V("showpromotooltip",this.element)}};
RX.prototype.u=function(a){var b,c;null===(c=null===(b=g.BT(this.J))||void 0===b?void 0:b.Qk())||void 0===c?void 0:c.Bc(a)};
RX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
RX.prototype.oa=function(){var a=null!=g.nU(g.HT(this.J));g.JN(this,a&&300<=g.cG(this.J).getPlayerSize().width);a&&this.ya("pressed",this.isEnabled())};g.u(g.SX,g.V);g.k=g.SX.prototype;
g.k.sc=function(){var a=g.cG(this.api).getPlayerSize().width,b=a>=this.K&&(!this.B||!g.U(g.uK(this.api),64));g.JN(this,b);g.J(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.bP(g.Q(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.C!==c&&(this.ya("currenttime",c),this.C=c);b=g.bP(g.Q(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.D!==b&&(this.ya("duration",b),this.D=b)}this.B&&(a=a.isAtLiveHead,this.I!==a||this.F!==this.isPremiere)&&(this.I=a,this.F=this.isPremiere,this.sc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Gc(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.cV(this.tooltip,this.liveBadge.element)))};
g.k.Ra=function(a,b,c){this.updateVideoData(g.Q(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.sc()};
g.k.updateVideoData=function(a){this.B=a.isLivePlayback&&!a.Zi;this.isPremiere=a.isPremiere;g.J(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.ca=function(){this.u&&this.u();g.V.prototype.ca.call(this)};g.u(VX,g.V);g.k=VX.prototype;g.k.jk=function(){var a=this.B.ge();this.F!==a&&(this.F=a,UX(this,this.api.getVolume(),this.api.isMuted()))};
g.k.cF=function(a){g.JN(this,350<=a.width)};
g.k.oN=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.ce(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ip(a))}};
g.k.mN=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.ce(b/10,-10,10));g.ip(a)};
g.k.CQ=function(){TX(this,this.u,!0,this.D,this.B.Nh());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.nN=function(a){var b=this.F?78:52,c=this.F?18:12;a-=g.Eg(this.X).x;this.api.setVolume(100*g.ce((a-c/2)/(b-c),0,1))};
g.k.BQ=function(){TX(this,this.u,!1,this.D,this.B.Nh());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.pN=function(a){UX(this,a.volume,a.muted)};
g.k.pC=function(){TX(this,this.u,this.C,this.D,this.B.Nh())};
g.k.ca=function(){g.V.prototype.ca.call(this);g.sn(this.K,"ytp-volume-slider-active")};g.u(g.WX,g.V);g.WX.prototype.Ra=function(){var a=this.api.getVideoData(1).qc,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.JN(this,this.visible);g.QN(this.api,this.element,this.visible&&this.R);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.ya("url",a))};
g.WX.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.cP(a),!1,!0,!0);g.hD(this.api.T())&&(b=g.Md(b,g.eV({},"emb_logo")));g.BU(b,this.api,a);g.$T(this.api,this.element)};
g.WX.prototype.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.api,this.element,this.visible&&a)};g.u(YX,g.tR);g.k=YX.prototype;g.k.ie=function(){this.nd.sc();this.mi.sc()};
g.k.Yh=function(){this.sz();this.Nc.B?this.ie():g.dY(this.nd.tooltip)};
g.k.ur=function(){this.ie();this.Xd.start()};
g.k.sz=function(){var a=!this.J.T().u&&300>g.gva(this.nd)&&g.uK(this.J).Hb()&&!!window.requestAnimationFrame,b=!a;this.Nc.B||(a=b=!1);b?this.K||(this.K=this.N(this.J,"progresssync",this.ie)):this.K&&(this.Mb(this.K),this.K=null);a?this.Xd.isActive()||this.Xd.start():this.Xd.stop()};
g.k.Va=function(){var a=this.B.ge(),b=g.cG(this.J).getPlayerSize(),c=ZX(this),d=Math.max(b.width-2*c,100);if(this.za!==b.width||this.ma!==a){this.za=b.width;this.ma=a;var e=tva(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";this.nd.setPosition(c,e,a);this.B.Rb().fa=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-$X(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.fv=e;c.tp();this.sz();!this.J.T().ba("html5_player_bottom_linear_gradient")&&g.Q(this.J.T().experiments,
"html5_player_dynamic_bottom_gradient")&&g.eW(this.ha,b.height)};
g.k.Ra=function(){var a=this.J.getVideoData();this.X.style.background=a.qc?a.Gj:"";g.JN(this.Y,a.zA)};
g.k.Pa=function(){return this.C.element};var h2={},aY=(h2.CHANNEL_NAME="ytp-title-channel-name",h2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",h2.LINK="ytp-title-link",h2.SESSIONLINK="yt-uix-sessionlink",h2.SUBTEXT="ytp-title-subtext",h2.TEXT="ytp-title-text",h2.TITLE="ytp-title",h2);g.u(bY,g.V);bY.prototype.onClick=function(a){g.$T(this.api,this.element);var b=this.api.getVideoUrl(!g.cP(a),!1,!0);g.hD(this.api.T())&&(b=g.Md(b,g.eV({},"emb_title")));g.BU(b,this.api,a)};
bY.prototype.oa=function(){var a=this.api.getVideoData(),b=this.api.T();this.ya("title",a.title);uva(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Ek&&c.lf?(this.ya("channelLink",c.Ek),this.ya("channelName",c.author)):uva(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.ng;g.J(this.link,aY.FULLERSCREEN_LINK,c);b.R||!a.videoId||c||a.qc&&b.pfpChazalUi?this.u&&(this.ya("url",null),this.Mb(this.u),this.u=null):(this.ya("url",
this.api.getVideoUrl(!0)),this.u||(this.u=this.N(this.link,"click",this.onClick)))};g.u(g.cY,g.V);g.k=g.cY.prototype;g.k.QF=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;wva(this,c)}};
g.k.rL=function(){lI(this.u,this.C,160*this.scale)};
g.k.gj=function(){switch(this.type){case 2:var a=this.B;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.D);zva(this);break;case 3:zva(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.QF,this),this.u=null),this.api.removeEventListener("videoready",this.Y),this.aa.stop()}this.type=null;this.K&&this.I.hide()};
g.k.Ci=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.gj()};
g.k.ca=function(){null!=this.type&&this.gj();this.u&&this.u.dispose();g.V.prototype.ca.call(this)};g.u(g.eY,g.V);g.k=g.eY.prototype;g.k.gv=function(){var a=this.J.getPlayerSize(),b=this.J.T(),c=this.J.getVideoData(),d=g.hD(b)&&g.NT(this.J)&&g.U(g.uK(this.J),128);this.visible=b.Ll&&240<=a.width&&!c.isAd()&&c.Ll&&!d&&!(c.qc&&b.pfpChazalUi);g.JN(this,this.visible);this.icon&&Eva(this,this.icon);g.QN(this.J,this.element,this.visible&&this.R)};
g.k.vG=function(){this.u=!0;this.B=!1;this.oa(1);this.J.T().u&&DV(this.tooltip,this.element);this.J.T().C&&this.J.xa("WATCH_LATER_VIDEO_ADDED")};
g.k.dF=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;g.$T(this.J,this.element);var b=this.J.T(),c=this.dF();b.ye?Cva(this,c):this.J.app.Ja?this.J.requestStorageAccess(function(){g.Nq("embedsItpWatchLaterResult",{accepted:!0});Hp();Dva(a,c)},function(){g.Nq("embedsItpWatchLaterResult",{accepted:!1});
fY(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Dva(this,c)};
g.k.eR=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);fY(this,c)};
g.k.wG=function(){this.B=this.u=!1;this.oa(2);this.J.T().C&&this.J.xa("WATCH_LATER_VIDEO_REMOVED")};
g.k.qN=function(){this.B=this.u=!1;this.oa(2)};
g.k.oa=function(a,b){var c=this.J.T();Eva(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.tL("Added as $USER_NAME",d):g.tL("Watch later as $USER_NAME",d),image:SD(c)})}else this.update({title:"Watch later",image:null});EV(this.tooltip)};
g.k.Eb=function(a){g.V.prototype.Eb.call(this,a);g.QN(this.J,this.element,this.visible&&a)};g.u(gY,g.SU);g.k=gY.prototype;g.k.Rb=function(){return this.tooltip};
g.k.oD=function(){return this.Bf};
g.k.mm=function(a,b){b?this.Hi=a:this.Hi=null;this.Fg()};
g.k.hq=function(a,b){if(b)this.sl.push(a);else for(var c=this.sl.length;0<=c;c--)if(this.sl[c]===a){this.sl.splice(c,1);break}wU(this.Nc,64,0<this.sl.length)};
g.k.Il=function(){g.ST(this.api)&&g.TT(this.api);return!!this.Hi||Fva(this)||g.SU.prototype.Il.call(this)};
g.k.Fg=function(){var a=!this.Il(),b=a&&g.ST(this.api)&&!g.U(g.uK(this.api),2)&&!(this.api.getVideoData().qc&&this.api.T().pfpChazalUi),c=this.oo&&g.NT(this.api)&&g.U(g.uK(this.api),128);a||c?(this.PA.show(),this.QA.show()):(this.PA.hide(),this.QA.hide(),this.tooltip.Ci(this.Cg.element));b?this.Di.Bc():this.Di.nb();this.Bf&&sva(this.Bf,!a);g.SU.prototype.Fg.call(this)};
g.k.To=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Lg(a),h=d||this.Bf&&g.Me(this.Bf.Pa(),b),l=d=null;null!=c&&h||(d=g.Lg(b),l=g.Jg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;if(h){var m=this.Bf;b=ZX(m);d=tva(m);l=g.cG(this.api).getPlayerSize().height;c=g.ce(c,b,b+d-f.width);m=l-$X(m)-f.height}else g.Me(this.Cg.element,b)?(m=g.cG(this.api).getPlayerSize().width,c=g.ce(c,12,m-f.width-12),m=this.ge()?this.xx:this.wx,"gvn"===this.api.T().playerStyle&&
(m+=20),this.oo&&(m-=this.ge()?26:18)):(b=g.cG(this.api).getPlayerSize(),c=g.ce(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.Yh=function(a){a&&(this.tooltip.Ci(this.Cg.element),this.Bf&&this.tooltip.Ci(this.Bf.Pa()));g.SU.prototype.Yh.call(this,a)};
g.k.Pi=function(a,b){var c=g.cG(this.api).getPlayerSize();c=new g.jg(0,0,c.width,c.height);if(a||this.Nc.B&&!this.Il()){if(this.api.T().En||b){var d=this.ge()?this.xx:this.wx;c.top+=d;c.height-=d}this.Bf&&(c.height-=$X(this.Bf))}return c};
g.k.jk=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.Ht.element,b),b.parentElement.insertBefore(this.Gt.element,b.nextSibling))):M(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Ht.detach(),this.Gt.detach());this.Va();this.vk()};
g.k.ge=function(){var a=this.api.T();a=a.ba("embeds_enable_mobile_custom_controls")&&a.u;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.mt=!a;this.Fg()};
g.k.Va=function(){var a=this.ge();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.J(this.contextMenu.element,"ytp-big-mode",a);this.Fg();if(this.Ie()&&this.dg)this.mg&&OV(this.dg,this.mg),this.shareButton&&OV(this.dg,this.shareButton),this.Dj&&OV(this.dg,this.Dj);else{if(this.dg){a=this.dg;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.mg&&!g.Me(this.Rf.element,this.mg.element)&&this.mg.ga(this.Rf.element);this.shareButton&&!g.Me(this.Rf.element,
this.shareButton.element)&&this.shareButton.ga(this.Rf.element);this.Dj&&!g.Me(this.Rf.element,this.Dj.element)&&this.Dj.ga(this.Rf.element)}this.vk();g.SU.prototype.Va.call(this)};
g.k.gy=function(){if(Fva(this)&&!g.NT(this.api))return!1;var a=this.api.getVideoData();return!g.hD(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Qg||((a=this.Qg||a.Qg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SU.prototype.gy.call(this):!1};
g.k.vk=function(){g.SU.prototype.vk.call(this);g.QN(this.api,this.title.element,!!this.Vi);this.So&&this.So.Eb(!!this.Vi);this.channelAvatar.Eb(!!this.Vi);this.overflowButton&&this.overflowButton.Eb(this.Ie()&&!!this.Vi);this.shareButton&&this.shareButton.Eb(!this.Ie()&&!!this.Vi);this.mg&&this.mg.Eb(!this.Ie()&&!!this.Vi);this.Dj&&this.Dj.Eb(!this.Ie()&&!!this.Vi);if(!this.Vi){this.tooltip.Ci(this.Cg.element);for(var a=0;a<this.qs.length;a++){var b=this.qs[a];b.zf()&&b.nb()}}};
g.k.vb=function(a){this.Bf&&sva(this.Bf,this.Il());this.Fg();g.SU.prototype.vb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Xj?this.Xj.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Xj?this.Xj.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Ij=function(){return this.contextMenu.fb?(this.contextMenu.nb(),!0):this.sl.length?(this.sl[this.sl.length-1].nb(),!0):this.Hi?(this.Hi.nb(),!0):g.SU.prototype.Ij.call(this)};
g.k.uA=function(a,b){this.wA=b;this.hq(a,b);this.oI()};
g.k.oI=function(){var a=this.wA||this.contextMenu.zf();this.gx!==a&&(this.gx=a,this.api.xa("onAutonavPauseRequest",this.gx))};
g.k.hK=function(){hY(this,this.api.getRootNode(),!0).focus()};
g.k.iK=function(){hY(this,this.api.getRootNode(),!1).focus()};
g.k.Qk=function(){return this.Bf&&this.Bf.u};
g.k.tk=function(){this.Nc.tk()};
g.k.ju=function(){this.Tb.hide()};
g.k.gn=function(a){this.Tb.gn(!g.GM(a))};
g.k.Jr=function(a,b,c,d){this.qt.Jr(a,b,c,d)};
g.k.HO=function(){Gva(this,!0)};
g.k.kP=function(a){Gva(this,!1,a)};g.u(g.iY,g.JS);g.iY.prototype.ii=function(){return!1};
g.iY.prototype.create=function(){var a=this.player.T();KD(a)&&a.u?this.chrome=new g.SU(this.player):this.chrome=new gY(this.player);g.D(this,this.chrome);this.chrome.init();this.player.Wc("ux")};g.u(kY,g.C);g.k=kY.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Wl=function(){var a=this.u.getVideoData(),b=this.B.getVideoData();if(a.La){var c;if(c=a.ra){c=a.ra;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.Uc()&&(d=!0),h.info.video&&h.index.Uc()&&(e=!0);c.u["0"]&&(e=!0);c=!(d&&e)}if(c)this.ea();else if(this.u.Zc()){h=Jva(this.policy,this.u,this.B,this.Cf);f=Kva(this);c=f.RJ;e=f.wF;d=f.EC;f=f.vF;if(!this.K){var l=1E3*this.B.Mi(),m=this.u.Mi();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();
this.B.Fr(l,m,a);this.K=!0}h?jY(this,"cannot_apply"+h+";transitionTimeMs."+this.Cf):2===this.status.status?Rva(this):(a=this.u.tm())?CB(a)?!BB(a)&&g.gr()?jY(this,"mse_closed"):b.ra&&KB(b.ra)&&a.B&&!a.B.Ot()?jY(this,"encr_upgrade"):(b=this.u.Zc(),b.Yi()?jY(this,"elem_ended"):0>e?jY(this,"next_player_future"):(this.I=d,this.C=GB(a,c,d,!0),this.D=GB(a,e,f,!1),a=this.B.getVideoData().clientPlaybackNonce,this.u.Na("gaplessPrep","cpn."+a),mY(this.u,this.C),this.u.setMediaElement(Lva(b,c,d,!this.u.getVideoData().isAd())),
lY(this,2),Rva(this))):this.ea():this.ea()}else jY(this,"no-elem")}else this.ea()};
g.k.Lo=function(a){var b=Qva(this).xH,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.I;cA(a.Se(),d-.01)&&(lY(this,4),b.isActive=!1,b.zs=b.zs||b.isActive,this.B.Na("sbh","1"),c.isActive=!0,c.zs=c.zs||c.isActive);a=this.D.B;this.D.u.isActive&&a.isActive&&lY(this,5)}};
g.k.WF=function(){4<=this.status.status&&6>this.status.status&&jY(this,"player-reload-after-handoff")};
g.k.ca=function(){Pva(this);this.u.unsubscribe("newelementrequired",this.WF,this);if(this.C){var a=this.C.B;this.C.u.Rc.unsubscribe("updateend",this.Lo,this);a.Rc.unsubscribe("updateend",this.Lo,this)}g.C.prototype.ca.call(this)};
g.k.lc=function(a){g.GK(a,128)&&jY(this,"player-error-event")};
g.k.ea=function(){};g.u(pY,g.C);pY.prototype.clearQueue=function(){this.ea();this.D&&this.D.reject("Queue cleared");qY(this)};
pY.prototype.ca=function(){qY(this);g.C.prototype.ca.call(this)};
pY.prototype.ea=function(){};g.u(tY,g.O);g.k=tY.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Wva()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.ff())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.ff())};
g.k.setImmersivePreview=function(a){this.B!==a&&(this.B=a,this.ff())};
g.k.Ze=function(){return this.C};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return Wva()};
g.k.ff=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.Ze(),this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.B);a!==this.F&&this.V("visibilitystatechange");this.F=a};
g.k.ca=function(){Zva(this.D);g.O.prototype.ca.call(this)};g.u(vY,g.C);g.k=vY.prototype;
g.k.CM=function(a){var b,c,d,e;if(a=this.C.get(a))if(this.api.V("serverstitchedvideochange",a.Hc),a.cpn&&(null===(c=null===(b=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].xj!==a.xj?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,this.u.cn("","",a.cpn,a.playerResponse.videoDetails.videoId,!1,a.playerVars)):(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&&this.u.cn(a.cpn,a.playerResponse.videoDetails.videoId,f,h,!0,a.playerVars,a.playerVars.adformat)}};
g.k.DM=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].xj!==a.xj?(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&&(this.u.cn(a.cpn,a.playerResponse.videoDetails.videoId,f,h,!1,a.playerVars,a.playerVars.adformat),l&&this.u.cn("","",a.cpn,a.playerResponse.videoDetails.videoId,!0,a.playerVars))}g.Q(this.W.experiments,"web_player_halftime_dai")&&this.isLiveNow&&a&&a.pg&&!a.pg.target&&this.u.getCurrentTime()<this.u.Fh()&&uY(this,Infinity)};
g.k.isAdPlaying=function(a){return!!zY(this,a).sh};
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)uY(this,a);else{b=this.api.dc();var d=b===this.F?this.R:null;AY(this,!1);this.ha=a;null!=c&&this.aa.start(c);b&&(this.R=d||b.getPlayerState(),n0(b),this.F=b)}};
g.k.ca=function(){AY(this,!1);bU(this);g.C.prototype.ca.call(this)};
g.k.ea=function(){};
g.k.Wx=function(){return It()};
g.k.du=function(a){g.Q(this.W.experiments,"html5_high_res_logging")&&this.u.Na("sdai","adf.0");a&&this.K&&this.P.push(this.K);this.K=null;this.u.du(a)};
var cwa=0;g.u(CY,g.C);g.k=CY.prototype;g.k.EM=function(a){if(this.B===this.api.dc()){var b=this.F.get(a);if(b){var c=b.target;this.ea();rwa(this,c,b.Cf,a)}else DY(this,"e.unexpectedCueRangeTriggered")}else if(b=this.u.find(function(e){return e.pg.Kd===a})){var d=b.pg;
this.ea();c=d.target;d=d.Cf;c?rwa(this,c,d,a):qwa(this,b.gd,d,a)}};
g.k.aQ=function(){var a=this.K;GY(this);if(a){FY(this,a)||DY(this,"e.unexpectedPresentingPlayer");var b=this.api.dc();a=a.pg;this.ea();b.addCueRange(a.Kd)}};
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)kwa(this,a);else{b=this.api.dc();var d=b===this.D?this.I:null;IY(this,!1);this.X=a;null!=c&&this.P.start(c);b&&(this.I=d||b.getPlayerState(),n0(b),this.D=b)}};
g.k.FM=function(a){g.GK(a,128)&&uwa(this)};
g.k.isManifestless=function(){return LI(this.B.getVideoData())};
g.k.ca=function(){IY(this,!1);cU(this);g.C.prototype.ca.call(this)};
g.k.ea=function(){};
var lwa=0;var wwa="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(NY,g.C);NY.prototype.get=function(a){LY(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
NY.prototype.set=function(a,b,c){this.remove(a,!0);LY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.N)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&OY(this,c,!0);MY(this)};
NY.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(OY(this,c,b),g.pb(this.data,function(d){return d.key===a}),MY(this))};
NY.prototype.ca=function(){var a=this;g.C.prototype.ca.call(this);this.data.forEach(function(b){OY(a,b,!0)});
this.data=[]};PY.prototype.add=function(a){this.u=(this.u+1)%this.data.length;this.data[this.u]=a};
PY.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)};
PY.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};g.u(QY,g.C);QY.prototype.start=function(){this.B.start()};
QY.prototype.stop=function(){this.B.stop()};
QY.prototype.clear=function(){for(var a=g.q(this.u.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
QY.prototype.C=function(){for(var a=g.q(this.D),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.u.has(b)||this.u.set(b,new TY(eDa.has(b)));this.u.get(b).update(c())}this.B.start()};
var eDa=new Set(["networkactivity"]);TY.prototype.update=function(a){this.B?(this.buffer.add(a-this.u||0),this.u=a):this.buffer.add(a)};
TY.prototype.clear=function(){this.buffer.clear();this.u=0};g.u(UY,g.C);UY.prototype.ca=function(){g.C.prototype.ca.call(this);this.u=null;this.B&&this.B.disconnect()};VY.prototype.setMediaElement=function(a){this.da?this.da!==a&&(g.XY(this),this.da=a,this.B=null):this.da=a};
VY.prototype.na=function(){return this.D};
VY.prototype.dispose=function(){this.D=!0;g.XY(this);this.B=null};var Awa=bb(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),YY=!1;var i2;i2={};g.ZY=(i2.STOP_EVENT_PROPAGATION="html5-stop-propagation",i2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",i2.IV_DRAWER_OPEN="ytp-iv-drawer-open",i2.MAIN_VIDEO="html5-main-video",i2.VIDEO_CONTAINER="html5-video-container",i2.HOUSE_BRAND="house-brand",i2);g.u($Y,g.V);g.k=$Y.prototype;g.k.fr=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.rn(this.element,b)};
g.k.Pf=function(){this.u&&(this.u.removeEventListener("focus",this.ia),g.Je(this.u),this.u=null)};
g.k.resize=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.B;b=!g.je(a,new g.ie(b.width,b.height));var c=Gwa(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.T();(c||b||a.Ga)&&this.app.u.V("resize",this.getPlayerSize())}}};
g.k.updateVideoData=function(a){if(this.u){var b=this.app.T();or&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));SI(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.tv&&a.videoId&&(this.u.poster=a.ne("default.jpg"));g.Q(b.experiments,"html5_send_origin_for_progressive")&&a.La&&!a.La.Lc()&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.$I(a,"yt:bgcolor");this.C.style.backgroundColor=b?b:"";this.fa=aD(g.$I(a,"yt:stretch"));this.ha=aD(g.$I(a,"yt:crop"),!0);g.J(this.element,"ytp-dni",a.qc);this.resize()};
g.k.setGlobalCrop=function(a){this.Y=aD(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.za=a;this.resize()};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.u.isFullscreen();if(b&&er())return new g.ie(window.outerWidth,window.outerHeight);if(b||a.Ms){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.ie(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.D.width)&&!isNaN(this.D.height))return this.D.clone();if(this.P&&this.ma&&!this.app.isWidescreen())for(a=
0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.ie(b.size.width,b.size.height)}return new g.ie(this.element.clientWidth,this.element.clientHeight)};
g.k.getVideoAspectRatio=function(){return isNaN(this.fa)?Ewa(this):this.fa};
g.k.getVideoContentRect=function(a){var b=this.getPlayerSize();a=Fwa(this,b,this.getVideoAspectRatio(),a);return new g.jg((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.JM=function(){aZ(this)};
g.k.setUseFastSizingOnWatch=function(a){this.ma!==a&&(this.ma=a,this.resize())};
g.k.setInternalSize=function(a){g.je(this.D,a)||(this.D=a,this.resize())};
g.k.ca=function(){this.X&&g.Oo(this.X);this.Pf();g.V.prototype.ca.call(this)};Hwa.prototype.click=function(a,b){this.elements.has(a);this.u.has(a);var c=g.Rt();c&&a.visualElement&&g.gu(c,a.visualElement,b)};g.u(eZ,g.V);
eZ.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(gZ,g.V);g.k=gZ.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.oa()};
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.oa()};
g.k.oa=function(){var a=(0,g.N)(),b=this.F.getStatsForNerds();fZ(this.u,b.bandwidth_samples);fZ(this.D,b.network_activity_samples);fZ(this.C,b.live_latency_samples);fZ(this.B,b.buffer_health_samples);this.update(b);a=25<(0,g.N)()-a?5E3:500;this.delay.start(a)};g.u(hZ,g.O);g.u(iZ,hZ);iZ.prototype.I=function(a,b){if(a&&b){var c=1*Number(Qd(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.Sb(this.u)||(this.u={},this.D.stop(),this.B.stop())),this.u[b]=a,this.B.Sb())}};
iZ.prototype.F=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.V;for(var d=this.C,e=this.u[c].match(wd),f=[],h=g.q(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+md(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,"rotated_need_key_info_ready",
new zy(d,"fairplay",!0))}this.u={}};var j2={},Twa=(j2.DRM_TRACK_TYPE_AUDIO="AUDIO",j2.DRM_TRACK_TYPE_SD="SD",j2.DRM_TRACK_TYPE_HD="HD",j2.DRM_TRACK_TYPE_UHD1="UHD1",j2);g.u(jZ,g.C);jZ.prototype.ea=function(){};g.u(lZ,g.O);g.k=lZ.prototype;g.k.xl=function(a){var b=this;this.na()||0>=a.size||(a.forEach(function(c,d){var e=qC(b.B)?d:c,f=new Uint8Array(qC(b.B)?c:d);qC(b.B)&&mxa(f);var h=g.sf(f,4);mxa(f);f=g.sf(f,4);b.u[h]?b.u[h].status=e:b.u[f]?b.u[f].status=e:b.u[h]={type:"",status:e}}),this.ea("Key statuses changed: "+ixa(this,",")),kZ(this,"onkeystatuschange"),this.status="kc",this.V("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.na()||this.V("licenseerror",a,b,c,d);b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.fa&&this.I?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ca=function(){g.O.prototype.ca.call(this)};
g.k.sb=function(){var a={requestedKeyIds:this.aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.u);return a};
g.k.Te=function(){var a=this.F.join();if(mZ(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.ea=function(){};
g.k.Ld=function(){return this.url};
var k2={},fxa=(k2.widevine="DRM_SYSTEM_WIDEVINE",k2.fairplay="DRM_SYSTEM_FAIRPLAY",k2.playready="DRM_SYSTEM_PLAYREADY",k2);g.u(oZ,g.C);g.k=oZ.prototype;g.k.NL=function(a){if(this.F){var b=a.messageType||"license-request";this.F(new Uint8Array(a.message),b)}};
g.k.xl=function(){this.K&&this.K(this.u.keyStatuses)};
g.k.fG=function(a){this.F&&this.F(a.message,"license-request")};
g.k.eG=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.dG=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.u)return this.u.update(a).then(null,Eo(function(c){pxa(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.R.u,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.R.u,a,this.initData,this.sessionId);return Ys()};
g.k.ca=function(){this.u&&this.u.close();this.element=null;g.C.prototype.ca.call(this)};g.u(pZ,g.C);g.k=pZ.prototype;g.k.createSession=function(a,b){var c=a.initData;if(this.u.keySystemAccess){b&&b("createsession");var d=this.B.createSession();tC(this.u)&&(c=sxa(c,this.u.Bh));b&&b("genreq");c=d.generateRequest(a.contentType,c);var e=new oZ(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Eo(function(f){pxa(e,"t.generateRequest",f)}));
return e}if(pC(this.u))return uxa(this,c);if(sC(this.u))return txa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.u.u,c):this.element.webkitGenerateKeyRequest(this.u.u,c);return this.D=new oZ(this.element,this.u,c,null,null)};
g.k.QL=function(a){var b=rZ(this,a);b&&b.fG(a)};
g.k.PL=function(a){var b=rZ(this,a);b&&b.eG(a)};
g.k.OL=function(a){var b=rZ(this,a);b&&b.dG(a)};
g.k.ca=function(){g.C.prototype.ca.call(this);delete this.element};g.u(sZ,g.C);
sZ.prototype.init=function(){return We(this,function b(){var c=this,d,e;return xa(b,function(f){if(1==f.u)return g.ug(c.u,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.u.src=c.C.D,document.body.appendChild(c.u),c.F.N(c.u,"encrypted",c.I),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],sa(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.B;c.C.keySystemAccess=
e;c.B=new pZ(c.u,c.C);g.D(c,c.B);qZ(c.B);f.u=0})})};
sZ.prototype.I=function(a){var b=this;if(!this.na()){var c=new Uint8Array(a.initData);a=new zy(c,a.initDataType);var d=Lwa(c).replace("skd://","https://"),e={},f=this.B.createSession(a,function(){b.ea()});
f&&(g.D(this,f),this.D.push(f),Wwa(f,function(h){nxa(h,f.u,d,e,"fairplay")},function(){b.ea()},function(){},function(){}))}};
sZ.prototype.ea=function(){};
sZ.prototype.ca=function(){this.D=[];this.u&&this.u.parentNode&&this.u.parentNode.removeChild(this.u);g.C.prototype.ca.call(this)};g.u(tZ,hZ);tZ.prototype.F=function(a){var b=(0,g.N)(),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.Sb(c)};uZ.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
uZ.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
uZ.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
uZ.prototype.findIndex=function(a){return g.gb(this.keys,function(b){return g.Ab(a,b)})};g.u(wZ,g.O);g.k=wZ.prototype;g.k.RL=function(a){vZ(this,"onecpt");a.initData&&yxa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.BP=function(a){vZ(this,"onndky");yxa(this,a.initData,a.contentType)};
g.k.SB=function(a){this.C.push(a);yZ(this)};
g.k.createSession=function(a){this.B.get(a.initData);this.Y=!0;var b=new lZ(this.videoData,this.W,a,this.drmSessionId);this.B.set(a.initData,b);b.subscribe("ctmp",this.FF,this);b.subscribe("hdentitled",this.RF,this);b.subscribe("keystatuseschange",this.xl,this);b.subscribe("licenseerror",this.yv,this);b.subscribe("newlicense",this.YF,this);b.subscribe("newsession",this.aG,this);b.subscribe("sessionready",this.nG,this);b.subscribe("fairplay_next_need_key_info",this.OF,this);Ywa(b,this.D)};
g.k.YF=function(a){this.na()||(this.ea(),vZ(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))};
g.k.aG=function(){this.na()||(this.ea(),vZ(this,"newlcssn"),this.C.shift(),this.Y=!1,yZ(this))};
g.k.nG=function(){if(pC(this.u)&&(this.ea(),vZ(this,"onsnrdy"),this.Ja--,0===this.Ja)){var a=this.X;a.element.msSetMediaKeys(a.C)}};
g.k.xl=function(a){this.na()||(!this.ma&&this.videoData.ba("html5_log_drm_metrics_on_key_statuses")&&(Dxa(this),this.ma=!0),this.ea(),vZ(this,"onksch"),Cxa(this,hxa(a,this.ha)),this.V("keystatuseschange",a))};
g.k.RF=function(){this.na()||this.fa||!rC(this.u)||(this.ea(),vZ(this,"onhdet"),this.Aa=CCa,this.V("hdproberequired"),this.V("qualitychange"))};
g.k.FF=function(a,b){this.na()||this.V("ctmp",a,b)};
g.k.OF=function(a,b){this.na()||this.V("fairplay_next_need_key_info",a,b)};
g.k.yv=function(a,b,c,d){this.na()||(this.videoData.ba("html5_log_drm_metrics_on_error")&&Dxa(this),this.V("licenseerror",a,b,c,d))};
g.k.co=function(a){return(void 0===a?0:a)&&this.Aa?this.Aa:this.K};
g.k.ca=function(){this.u.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.C=[];for(var a=g.q(this.B.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.FF,this),b.unsubscribe("hdentitled",this.RF,this),b.unsubscribe("keystatuseschange",this.xl,this),b.unsubscribe("licenseerror",this.yv,this),b.unsubscribe("newlicense",this.YF,this),b.unsubscribe("newsession",this.aG,this),b.unsubscribe("sessionready",this.nG,this),b.unsubscribe("fairplay_next_need_key_info",
this.OF,this),b.dispose();a=this.B;a.keys=[];a.values=[];g.O.prototype.ca.call(this)};
g.k.sb=function(){for(var a={systemInfo:this.u.sb(),sessions:[]},b=g.q(this.B.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.sb());return a};
g.k.Te=function(){return 0>=this.B.values.length?"no session":this.B.values[0].Te()+(this.F?"/KR":"")};
g.k.ea=function(){};g.u(AZ,g.O);
AZ.prototype.handleError=function(a,b){var c=this;Hxa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!DZ(this,a.errorCode,a.details))&&!Kxa(this,a,b))if(Ixa(a)&&this.videoData.La&&this.videoData.La.B)BZ(this,a.errorCode,a.details),EZ(this,"highrepfallback","1",{BA:!0}),!this.videoData.ba("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&EZ(this,"afmts",btoa(this.videoData.adaptiveFormats),{BA:!0}),
Ola(this.videoData),this.V("highrepfallback");else if(a.u){var d=this.Ba?this.Ba.K.F:null;if(Ixa(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.Sa.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.V("playererror",a.errorCode,e,g.vB(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),BZ(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.N)(),(new cF(d,"manifest",function(h){c.F=!0;EZ(c,"pathprobe",h)},function(h){BZ(c,h.errorCode,h.details)})).send())};
AZ.prototype.ca=function(){this.Ba=null;this.setMediaElement(null);g.O.prototype.ca.call(this)};
AZ.prototype.setMediaElement=function(a){this.da=a};
AZ.prototype.ea=function(){};GZ.prototype.setPlaybackRate=function(a){this.playbackRate=a};
GZ.prototype.ba=function(a){return g.Q(this.W.experiments,a)};g.u(JZ,g.C);JZ.prototype.lc=function(a){cya(this);this.playerState=a.state;0<=this.B&&g.GK(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
JZ.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(fDa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
JZ.prototype.send=function(){if(!(this.C||0>this.u)){cya(this);var a=g.rY(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=ZI(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=dya(this.provider);var e=0>this.B?a:this.B-this.u;a=this.provider.W.Ta+36E5<(0,g.N)();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.WI(this.provider.videoData),isGapless:this.provider.videoData.Lh};!a&&this.provider.ba("html5_health_to_gel")&&g.Nq("html5PlayerHealthEvent",b);this.provider.ba("html5_health_to_qoe")&&(b.muted=a,this.I(g.vB(b)));this.C=!0;
this.dispose()}};
JZ.prototype.ca=function(){this.C||this.send();g.C.prototype.ca.call(this)};
var fDa=/\bnet\b/;g.u(g.NZ,g.C);g.k=g.NZ.prototype;g.k.OK=function(){var a=g.rY(this.provider);OZ(this,a)};
g.k.rq=function(){return this.ia};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.na()&&(a=0<=a?a:g.rY(this.provider),-1<["PL","B","S"].indexOf(this.Pc)&&(!g.Sb(this.u)||a>=this.C+30)&&(g.MZ(this,a,"vps",[this.Pc]),this.C=a),!g.Sb(this.u)))if(7E3===this.sequenceNumber&&g.Is(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.u={};else{PZ(this,a);var b=a,c=this.provider.C(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ga,h=e&&!this.Ya;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.MZ(this,b,"df",[f]);this.Ga=d;this.Ya=e;!g.Q(this.provider.W.experiments,"disable_webgl_reporting")&&0<this.I&&(g.MZ(this,a,"glf",[this.I]),this.I=0);a={event:"streamingstats"};this.provider.videoData.Oa&&(a.fmt=this.provider.videoData.Oa.Yb(),(b=this.provider.videoData.pd)&&b.Yb()!==a.fmt&&(a.afmt=b.Yb()));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=kJ(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=lJ(this.provider.videoData);a.ns=this.provider.W.Y;a.fexp=this.provider.W.experiments.experimentIds.toString();a.cl=(347292251).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=ZI(this.provider.videoData))&&(a.live=b);TI(this.provider.videoData)&&(a.drm=1);dq()&&this.provider.videoData.vi&&(a.ctt=this.provider.videoData.vi,a.cttype=this.provider.videoData.Gg,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.Zb(a,this.provider.W.deviceParams);a=g.Md("//"+this.provider.W.Gp+"/api/stats/qoe",a);b=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.Is(new g.tr("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?b+=e:c+=e);a+=c;c=b.replace(/ /g,"%20");e=this.provider.videoData.uf();d=g.Q(this.provider.W.experiments,"qoe_with_networkless");
b=g.Q(this.provider.W.experiments,"qoe_send_then_write");f=this.provider.ba("web_player_vss_pageid_header")?this.provider.W.pageId:void 0;(e=KZ(a,f,this.provider.W.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=c,LZ(a,e,{token:this.provider.videoData.vi,NA:this.provider.videoData.Gg,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,d,b)):d?(c={method:"POST",postBody:c},b?Bs(a,c):As(a,c)):qu(a,void 0,c);this.u={}}};
g.k.Dr=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.wH=function(){if(this.provider.videoData.md){var a=this.provider.videoData.md;RZ(this,"drm-"+a.flavor);RZ(this,"eme-"+(a.keySystemAccess?"final":pC(a)?"ms":tC(a)?"ytfp":sC(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.rY(this.provider);this.Er(c,a,b);PZ(this,c);QZ(this)};
g.k.Er=function(a,b,c){var d=this.provider.u();b=[b,d.toFixed(3)];c&&b.push(c);g.MZ(this,a,"error",b);this.P=!0};
g.k.lc=function(a){var b=a.state,c=g.rY(this.provider);a=this.getPlayerState(a.state);if(a!==this.Pc){if(!(c<this.C)){if("PL"===this.Pc)this.playTimeSecs+=c-this.C;else if("B"===this.Pc&&this.Y){this.Y=!1;var d=g.P(this.provider.W.experiments,"html5_disable_last_state_change")?this.C:this.ma;this.rebufferTimeSecs+=c-d;!this.ha&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.fu(),this.u.qoealert=["1"],this.ha=!0)}"B"!==a||"PL"!==this.Pc&&"PB"!==this.Pc||(this.Y=!0);this.C=c}"B"===
a&&"PL"===this.Pc||this.provider.videoData.nk?PZ(this,c):OZ(this,c);"PL"===a&&this.Nb.Sb();g.MZ(this,c,"vps",[a]);this.Pc=a;this.C=this.ma=c;this.P=!0}a=b.getData();g.U(b,128)&&a&&this.Er(c,a.errorCode,a.cH);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Hb()&&!this.D&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.D=!0);QZ(this)};
g.k.wl=ba(20);g.k.vl=ba(23);g.k.Zh=ba(16);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=gDa[JM(a)];g.wD(this.provider.W)&&"B"===b&&3===this.provider.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
g.k.ca=function(){g.C.prototype.ca.call(this);window.clearInterval(this.Aa)};
g.k.Na=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Zb.indexOf(a);e||this.Zb.push(a);if(!c||!e){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!c&&!/^t[.]/.test(b)){var f=1E3*g.rY(this.provider);b="t."+f.toFixed()+";"+b}hDa(a,b);d.push(a+":"+b);this.u.ctmp=d;QZ(this);return f}};
g.k.Fr=function(a,b,c){this.F={NR:Number(this.Na("glrem","nst."+a.toFixed()+";rem."+b.toFixed()+";ca."+ +c)),xF:a,FR:b,isAd:c}};
g.k.Yo=function(a,b,c){g.MZ(this,g.rY(this.provider),"ad_playback",[a,b,c])};
g.k.cn=function(a,b,c,d,e,f){1===e&&this.reportStats();this.adCpn=a;this.K=b;this.adFormat=f;a=g.rY(this.provider);b=this.provider.u();1===e&&g.MZ(this,a,"vps",[this.Pc]);f=this.u.xvt||[];f.push("t."+a.toFixed(3)+";m."+b.toFixed(3)+";g.2;tt."+e+";np.0;c."+c+";d."+d);this.u.xvt=f;0===e&&(this.reportStats(),this.K=this.adCpn="",this.adFormat=void 0)};
var hDa=g.Ka,l2={},gDa=(l2[5]="N",l2[-1]="N",l2[3]="B",l2[0]="EN",l2[2]="PA",l2[1]="PL",l2);jya.prototype.update=function(){if(this.K){var a=this.provider.u()||0,b=g.rY(this.provider);if(a!==this.u||oya(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||oya(this,a,b))){var d=this.provider.De();c=d.volume;var e=c!==this.P;d=d.muted;d!==this.R?(this.R=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&&(UZ(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};VZ.prototype.send=function(a){if(!this.Ub){var b=XZ(this);b=g.Md(this.uri,b);if(this.ha)this.X&&(a=WZ(this)||{},a.method="POST",a.tc={atr:this.X},this.R?this.P?Bs(b,a):As(b,a):g.qq(b,a));else{var c=WZ(this,a);LZ(b,c,{token:this.I,NA:this.aa,mdxEnvironment:this.mdxEnvironment},a,this.R,this.P)}this.Ub=!0}};
VZ.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var m2={},qya=(m2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,m2.LIVING_ROOM_APP_MODE_MAIN=1,m2.LIVING_ROOM_APP_MODE_KIDS=2,m2.LIVING_ROOM_APP_MODE_MUSIC=3,m2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,m2.LIVING_ROOM_APP_MODE_GAMING=5,m2);g.u(ZZ,g.C);g.k=ZZ.prototype;g.k.ie=function(){this.u.update();if(this.provider.videoData.Uc()&&this.provider.videoData.yh&&this.C&&!this.X&&kya(this.u)>=this.provider.videoData.yh){if(this.C&&this.provider.videoData.yh){var a=$Z(this,"delayplay");a.ub=!0;a.send();this.X=!0}sya(this)}};
g.k.lc=function(a){this.na()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.GK(a,2)&&this.C&&d_(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&a_(this,!1)):this.currentPlayerState="paused",this.D&&g.U(a.state,128)&&(c_(this,"error-100"),g.Io(this.D)))};
g.k.ca=function(){g.C.prototype.ca.call(this);g.Io(this.B);this.B=NaN;mya(this.u);g.Io(this.D)};
g.k.sb=function(){return XZ($Z(this,"playback"))};
g.k.rp=function(){this.provider.videoData.qd.eventLabel=kJ(this.provider.videoData);this.provider.videoData.qd.playerStyle=this.provider.W.playerStyle;this.provider.videoData.Wo&&(this.provider.videoData.qd.feature="pyv");this.provider.videoData.qd.vid=this.provider.videoData.videoId;var a=this.provider.videoData.qd;var b=this.provider.videoData;b=b.isAd()||!!b.Wo;a.isAd=b};
g.k.Yf=function(a){var b=$Z(this,"engage");b.K=a;return pya(b,yya(this.provider))};xya.prototype.isEmpty=function(){return this.endTime===this.startTime};e_.prototype.ba=function(a){return g.Q(this.W.experiments,a)};
var zya={other:1,none:2,wifi:3,cellular:7};g.u(g.f_,g.C);g.k=g.f_.prototype;g.k.lc=function(a){var b;if(g.GK(a,1024)||g.GK(a,2048)||g.GK(a,512)||g.GK(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.D||(c.B=-1))}this.provider.videoData.enableServerStitchedDai&&this.C?null===(b=this.D.get(this.C))||void 0===b?void 0:b.lc(a):this.u&&this.u.lc(a);this.qoe&&this.qoe.lc(a);this.B&&this.B.lc(a)};
g.k.ie=function(){var a;this.provider.videoData.enableServerStitchedDai&&this.C?null===(a=this.D.get(this.C))||void 0===a?void 0:a.ie():this.u&&this.u.ie()};
g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
g.k.wl=ba(19);g.k.Na=function(a,b,c){this.qoe&&this.qoe.Na(a,b,c)};
g.k.Fr=function(a,b,c){this.qoe&&this.qoe.Fr(a,b,c)};
g.k.Dr=function(a){this.qoe&&this.qoe.Dr(a)};
g.k.Yo=function(a,b,c){this.qoe&&this.qoe.Yo(a,b,c)};
g.k.vl=ba(22);g.k.Zh=ba(15);g.k.rq=function(){if(this.qoe)return this.qoe.rq()};
g.k.sb=function(){var a;if(this.provider.videoData.enableServerStitchedDai&&this.C)null===(a=this.D.get(this.C))||void 0===a?void 0:a.sb();else if(this.u)return this.u.sb();return{}};
g.k.Yf=function(a){return this.u?this.u.Yf(a):function(){}};
g.k.rp=function(){this.u&&this.u.rp()};Fya.prototype.Lc=function(){return this.La.Lc()};g.u(j_,g.O);j_.prototype.Tj=function(){return this.K};
j_.prototype.Fh=function(){return Math.max(this.R()-Jya(this,!0),this.videoData.Kc())};
j_.prototype.ea=function(){};g.u(o_,g.C);o_.prototype.setMediaElement=function(a){(this.da=a)&&this.C.Sb()};
o_.prototype.lc=function(a){this.playerState=a.state};
o_.prototype.X=function(){var a=this;if(this.da&&!this.playerState.isError()){var b=this.da,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.u,e=Bma(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();p_(this,this.fa,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.u)&&0<this.u&&Xra(b,this.u);var h=!c||10<Math.abs(c-this.u);p_(this,this.ha,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.u)},"set_cmt");
e=e&&cA(b.Gf(),this.u);var l=!this.Ba||!this.Ba.u.aa;h=function(){b.seekTo(a.u+.001)};
p_(this,this.Y,e&&l&&!f,d,"qoe.slowseek",h,"jiggle_cmt");l=function(){return a.V("newmediaelementrequired")};
p_(this,this.aa,e&&!f,d,"qoe.slowseek",l,"new_elem");d=HM(this.playerState);e=g.IM(this.playerState);var m=d&&e&&cA(b.Gf(),c+5);p_(this,this.I,m&&!f,d&&!e,"qoe.longrebuffer",h,"jiggle_cmt");p_(this,this.K,m&&!f,d&&!e,"qoe.longrebuffer",l,"new_elem_nnr");if(this.Ba){var n=this.Ba.getCurrentTime();h=b.xm();h=qga(h,n);h=!this.Ba.X.C&&c===h;p_(this,this.ma,d&&e&&h&&!f,d&&!e&&!h,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}p_(this,this.R,d&&e&&!f,d&&!e,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.P()&&!f;p_(this,this.F,f,!f,"qoe.start15s",function(){return a.V("releaseadsprerolllock")},"ads_preroll_timeout");
f=.5>c-this.D;f=this.videoData.isAd()&&d&&!e&&f;p_(this,this.ia,f,!f,"ad.rebuftimeout",function(){return a.V("skipslowad")},"skip_slow_ad");
this.D=c;this.C.start()}};
o_.prototype.sb=function(a){a=a.sb();this.u&&(a.stt=this.u.toFixed(3));this.Ba&&Object.assign(a,this.Ba.sb());this.da&&Object.assign(a,this.da.sb());return a};
m_.prototype.reset=function(){this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
m_.prototype.sb=function(){var a={},b=(0,g.N)();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(r_,g.O);g.k=r_.prototype;g.k.hi=function(a){t_(this);this.videoData=a;this.K=this.u=null;this.C=this.Ga=this.timestampOffset=0;this.ia=!0;this.I.dispose();this.I=new o_(this.W,this.videoData,(0,g.z)(this.V,this),this.visibility,this.Ta);this.I.setMediaElement(this.da);this.I.Ba=this.Ba};
g.k.setMediaElement=function(a){g.ut(this.Aa);(this.da=a)?(Yya(this),q_(this)):t_(this);this.I.setMediaElement(a)};
g.k.lc=function(a){this.I.lc(a);this.ba("html5_exponential_memory_for_sticky")&&(a.state.Hb()?this.Y.Sb():this.Y.stop());var b;if(b=this.da)b=8===a.hk.state&&HM(a.state)&&g.IM(a.state)&&this.policy.D;if(b){a=this.da.getCurrentTime();b=this.da.Gf();var c=this.ba("manifestless_post_live_ufph")||this.ba("manifestless_post_live")?Xz(b,Math.max(a-3.5,0)):Xz(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.Qa-c)||(this.V("ctmp","seekover","b."+Wz(b,
"_")+";cmt."+a),this.Qa=c,this.seekTo(c,{Gq:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.da&&Wya(this)?this.da.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Mi=function(){return this.getCurrentTime()-this.yc()};
g.k.Fh=function(){return this.u?this.u.Fh():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return l_(this.u,a)};
g.k.Tj=function(){return!!this.u&&this.u.Tj()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.bI?!1:c.bI,e=void 0===c.cI?0:c.cI,f=void 0===c.Gq?!1:c.Gq;c=void 0===c.OA?0:c.OA;var h=a,l=!isFinite(h)||(this.u?l_(this.u,h):h>=this.Oc())||!g.eJ(this.videoData);l||this.V("ctmp","seeknotallowed",h+";"+this.Oc());if(!l)return this.D&&(this.D=null,Tya(this)),vm(this.getCurrentTime());this.ea();if(a===this.B&&this.P)return this.ea(),this.F;this.P&&t_(this);this.F||(this.F=new py);a&&!isFinite(a)&&s_(this,!1);h=a;(v_(this)&&!(this.da&&0<this.da.yg()&&
0<SS(this.da))||LI(this.videoData)&&this.Kc()===this.Oc(!1)?0:isFinite(h)||!LI(this.videoData))&&(a=Vya(this,a,f));a&&!isFinite(a)&&s_(this,!1);this.C=a;this.Ja=c;this.B=a;this.u&&(f=this.u,c=a,Kya(f,c,!1),Lya(f,c));this.V("seekto",a,!d);this.F&&(d?e&&this.ma.start(e):(this.ea(),this.P=!0,Pya(this)));return this.F};
g.k.Oc=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Oc();if(LI(this.videoData)&&this.videoData.Lq&&this.videoData.ra)return this.videoData.ra.Oc();if(this.Lc()){if(!a&&this.u)return this.u.Fh();a=this.videoData.Oc();this.policy.B&&this.da&&(a=Math.max(a,Yra(this.da)));return a+this.timestampOffset}this.da?hr()?(a=this.da.Zu().getTime(),a=isNaN(a)?0:Math.max((g.A()-a)/1E3-30,0)):a=SS(this.da)+this.timestampOffset||this.timestampOffset:a=this.timestampOffset;return a};
g.k.Kc=function(){return this.videoData?this.videoData.Kc()+this.timestampOffset:this.timestampOffset};
g.k.ca=function(){u_(this,null);this.I.dispose();g.O.prototype.ca.call(this)};
g.k.Lc=function(){return!!this.videoData.La&&this.videoData.La.Lc()};
g.k.QR=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.yc(),{Gq:b})};
g.k.sb=function(){var a={};this.Ba&&Object.assign(a,this.Ba.sb());this.da&&Object.assign(a,this.da.sb());return a};
g.k.ip=function(a){this.timestampOffset=a};
g.k.BM=function(a){this.Ga=a};
g.k.getStreamTimeOffset=function(){return LI(this.videoData)?this.Ga:this.videoData.ra?this.videoData.ra.getStreamTimeOffset():0};
g.k.yc=function(){return this.timestampOffset};
g.k.Ue=function(a){return this.videoData.ra.Ue(a-this.timestampOffset)};
g.k.rm=function(){if(!this.da)return 0;if(fJ(this.videoData)){var a=Yra(this.da)+this.timestampOffset-this.Kc(),b=this.Oc()-this.Kc();return Math.max(0,Math.min(1,a/b))}return this.da.rm()};
g.k.Gz=function(a){this.K&&(this.K.u=a.audio.index)};
g.k.ba=function(a){return this.W&&g.Q(this.W.experiments,a)};
g.k.ea=function(){};var iDa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},jDa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},kDa=/^(\d*)_((\d*)_?(\d*))$/;w_.prototype.isFinished=function(){return this.u};
w_.prototype.start=function(){this.started=!0};
w_.prototype.reset=function(){this.u=this.started=!1};var S_;g.u(x_,Jq);x_.prototype.u=function(a,b){return Object.assign(Object.assign({},Jq.prototype.u.call(this,a,b)),this.B)};y_.prototype.reset=function(){aza(this);this.update(this.C)};
y_.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.I.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,$ya(this,this.I,0));for(;b+64<=c;b+=64)$ya(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.B),this.B+=a.length)};
var Zya=[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];A_.prototype.encrypt=function(a){return We(this,function c(){var d=this,e;return xa(c,function(f){if(1==f.u)return sa(f,eza(d.u.u,a,d.iv),2);e=f.B;return f["return"](e)})})};
A_.prototype.decrypt=function(a,b){return We(this,function d(){var e=this,f;return xa(d,function(h){if(1==h.u)return sa(h,eza(e.u.u,a,b),2);f=h.B;return h["return"](f)})})};var n2={},iza=(n2.f="video",n2["1"]="video",n2.h="video",n2.H="video",n2["9"]="video",n2["("]="video",n2["9h"]="video",n2["(h"]="video",n2.o="audio",n2.O="audio",n2.a="audio",n2.ah="audio",n2.A="audio",n2.m="audio",n2.M="audio",n2.mac3="audio",n2.MAC3="audio",n2.meac3="audio",n2.MEAC3="audio",n2.so="audio",n2.sa="audio",n2["8"]="unknown",n2["*"]="unknown",n2.w="unknown",n2["3"]="unknown",n2["6"]="unknown",n2[""]="unknown",n2);nza.prototype.decrypt=function(a){return We(this,function c(){var d=this,e,f,h,l;return xa(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 sa(m,pza(a),2);case 2:f=m.B;case 3:if(!d.u.length||!d.u[0].isEncrypted){m.u=4;break}h=d.u.shift();return sa(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.u=3;break;case 4:oza(d),d.B=!1,m.u=0}})})};g.u(H_,g.O);
H_.prototype.feed=function(a,b){this.ea("[UmpPart] id: "+a+", length: "+b.getLength());switch(a){case 10:var c=E_(new B_(b),1);switch(c){case 5:this.V("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new hza(b)).u.iv;this.ea();break;case 16:var d=new mza(b),e=d.B,f=d.C;this.V("STREAM_STARTED",{id:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.u,isAudio:this.C[f]});this.ea();break;default:this.ea()}this.B=c;break;case 11:switch(this.B){case 0:rza(this,b);break;case 2:c=Tv(b);this.queue.decrypt(c);
this.ea();break;default:this.ea()}this.B=null;break;case 20:c=new jza(b);d=c.B;e=c.isAudio;this.u[c.u]=d;this.C[d]=e;this.ea();break;case 21:qza(this,b,!1);break;case 12:qza(this,b,!0);break;case 22:c=Vv(b,0);c=this.u[c]||null;this.ea();c&&this.V("STREAM_ENDED",{id:c});break;default:this.ea()}};
H_.prototype.ea=function(){g.Sa(this)};sza.prototype.pn=function(){var a=new I_;L_(a,2,this.encryptedOnesiePlayerRequest);L_(a,5,this.encryptedClientKey);L_(a,6,this.iv);L_(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;K_(a,80);K_(a,b);return N_(a)};O_.prototype.pn=function(){var a=new I_;M_(a,1,this.name);M_(a,2,this.value);return N_(a)};tza.prototype.pn=function(){var a=new I_;M_(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())L_(a,2,c.value.pn());M_(a,3,this.postBody);return N_(a)};uza.prototype.pn=function(){var a=new I_;L_(a,3,this.Hx.pn());return N_(a)};wza.prototype.feed=function(a){Ov(this.u,a);xza(this)};P_.prototype.fetch=function(){return We(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,w,y,x;return xa(b,function(B){switch(B.u){case 1:return d=c,c.ea(),c.C.start(),c.eb.tick("ogpd"),B.C=2,sa(B,Dza(c),4);case 4:e=B.B;ta(B,3);break;case 2:return f=ua(B),c.ea(),f instanceof uB?Q_(c,f):(h=new uB("onesie.request",!1),Q_(c,h)),B["return"](c.u);case 3:c.eb.tick("osor");l=Iw(c.W);m=e.pn();g.gr()&&(m=new Uint8Array(m.buffer.slice(0,m.length)));n={method:"POST",body:m,headers:{"Content-Type":"text/plain"}};
p=function(){Bza(d)};
r=function(){d.ea();Bza(d);var E,G=d.xhr;G.Qm()?E=new uB("onesie.net",!1,{msg:G.Qm()}):400<=G.status?E=new uB("onesie.net.badstatus",!1):G.hu()?d.D||(E=new uB("onesie.response.noplayerresponse",!1)):E=new uB(204===G.status?"onesie.net.nocontent":"onesie.net.connect",!1);E?Q_(d,E):d.eb.tick("orf")};
t=g.Ka;w=zza(c.videoData);if(!w)return c.ea(),y={url:"0"},x=new uB("onesie.unavailable.hotconfig",!1,y),Q_(c,x),B["return"](c.u);c.eb.tick("ocs");c.ea();c.xhr=new qz(w,p,r,t,l,n);return B["return"](c.u)}})})};
P_.prototype.F=function(){this.ea();Q_(this,new uB("onesie.request",!1,{timeout:"1"}))};
P_.prototype.ea=function(){};g.u(g.W_,g.O);g.k=g.W_.prototype;g.k.ca=function(){this.ea();this.oH();this.Lv.stop();window.clearInterval(this.Gv);Zva(this.ff);this.visibility.unsubscribe("visibilitystatechange",this.ff);$_(this);X_(this);g.vp(this.Bl);this.Pf();this.Id=null;g.fg(this.videoData);g.fg(this.Ac);g.gg(this.NN);this.Ji=null;this.Ln=!1;this.Np=0;g.O.prototype.ca.call(this)};
g.k.Dr=function(a){this.Jb.Dr(a)};
g.k.Yo=function(a,b,c){this.Jb.Yo(a,b,c)};
g.k.by=function(){var a;return null===(a=this.Ba)||void 0===a?void 0:a.by()};
g.k.dy=function(){var a;return null===(a=this.Ba)||void 0===a?void 0:a.dy()};
g.k.hi=function(a,b,c){c=void 0===c?!0:c;this.ea();this.dh.length=0;this.No=null;this.di.reset();this.oj.reset();this.qr=!1;this.Nq=0;this.Ay=!0;this.yr=null;this.da&&this.da.stopVideo();Y_(this);$_(this);X_(this);g.vp(this.Bl);this.iw.clear();g.fg(this.videoData);g.fg(this.Ac);if(2===this.playerType||this.W.Us)a.bE=!0;var d=this.W.B;var e=this.W.C,f;(f=a.Xo)||(f=(f=a.bB)&&iDa.hasOwnProperty(f)&&jDa.hasOwnProperty(f)?jDa[f]+"_"+iDa[f]:void 0);if(f){var h=f.match(kDa);if(h&&5===h.length){if(h=f.match(kDa)){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.playerType&&(a.eh=!0);if(this.isFullscreen()||this.W.B)d=rCa(),a.autonavState=d||(this.W.B?2:this.videoData.autonavState);this.mx=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.aR,this);this.videoData.subscribe("dataloaded",this.vx,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",
this.Na,this);Vza(this,a);Qza(this,b);Rza(this);this.Ln=!1;this.Np=0;c0(this,"newdata");this.vb(new g.AM);this.Kb.hi(this.videoData);cJ(a)&&(a=this.videoData.errorDetail,b=this.videoData.fq,this.Rd("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&this.Lv.start()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.W};
g.k.Zc=function(){return this.da};
g.k.vx=function(){if(this.videoData.Uc()){var a=this.Ac;0<g.P(a.Sa.experiments,"html5_player_min_build_cl")&&347292251<g.P(a.Sa.experiments,"html5_player_min_build_cl")&&Jxa(a,"oldplayer");Wza(this)}else this.videoData.Xl||this.videoData.Mq?this.Im&&g.wD(this.W)&&this.videoData.isLivePlayback||(this.videoData.Xl?Ila(this.videoData):(a=this.Jb,a.qoe&&(a=a.qoe,RZ(a,"protected"),a.provider.videoData.md?a.wH():a.provider.videoData.subscribe("dataloaded",a.wH,a)),Gla(this.videoData))):!this.videoData.Pd&&
this.mx&&Uza(this)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.V("internalAbandon"),this.oA(!0),$_(this),g.vp(this.Bl))};
g.k.sn=function(){Aya(this.Jb)};
g.k.Rd=function(a,b,c,d,e){this.ea();var f,h;g.Pb(QCa,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.HU[f]||"",Mx:f,Ki:e||"",cH:c};c0(this,"dataloaderror");this.vb(BM(this.playerState,128,a));g.vp(this.Bl);X_(this);this.fi()};
g.k.Wc=function(a){this.dh=this.dh.filter(function(b){return a!==b});
this.ea();this.oj.started&&d0(this)};
g.k.Qj=function(){var a;(a=!!this.dh.length)||(a=this.Vf.u.u[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Tj=function(){return this.Kb.Tj()};
g.k.Hb=function(){return this.playerState.Hb()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Id){var a=this.Id;a=a.videoData.yw.compose(a.videoData.bC);a=HC(a)}else a="auto";return a};
g.k.wq=ba(12);g.k.isGapless=function(){return!!this.da&&this.da.isView()};
g.k.setMediaElement=function(a){this.ea();if(this.da&&a.Pa()===this.da.Pa()&&(a.isView()||this.da.isView())){if(a.isView()||!this.da.isView())g.ut(this.xp),this.da=a,gAa(this),this.Kb.setMediaElement(this.da),this.Ac.setMediaElement(this.da)}else{this.da&&this.Pf();if(!this.playerState.isError()){var b=DM(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=CM(b,1));a.isView()&&(b=DM(b,64));this.vb(b)}this.da=a;this.da.setLoop(this.loop);this.da.setPlaybackRate(this.playbackRate);gAa(this);this.Kb.setMediaElement(this.da);
this.Ac.setMediaElement(this.da)}};
g.k.Pf=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ea();if(this.da){var c=this.getCurrentTime();0<c&&(this.Kb.C=c);this.Kb.setMediaElement(null);this.Ac.setMediaElement(null);o0(this);this.Ba&&(KF(this.Ba),m0(this,b));this.Mm.stop();if(this.da){!this.oj.started||this.playerState.isError()||g.U(this.playerState,2)||this.vb(CM(this.playerState,512));g.ut(this.xp);if(a||!this.da.isView())this.da.stopVideo(),Y_(this);this.da=null}}};
g.k.playVideo=function(){return We(this,function b(){var c=this,d,e,f,h;return xa(b,function(l){if(1==l.u){c.ea();var m;(m=g.U(c.playerState,128))||(m=c.Ac,m.B?(m.B=!1,CZ(m),m=!0):m=!1);if(m)return l["return"]();c.da&&(m=c.Jb,m.B&&bya(m.B),m.qoe&&iya(m.qoe));h0(c);g.U(c.playerState,64)&&c.vb(CM(c.playerState,8));c.oj.isFinished()&&c.da?c.Id||!c.No?(l.u=2,l=void 0):l=sa(l,c.No,2):l=l["return"]();return l}if(!c.videoData.La)return d=c.videoData.isLivePlayback&&!g.BC(c.W.D,!0)?"html5.unsupportedlive":
TI(c.videoData)?"fmt.unplayable":"fmt.noneavailable",g.Is(Error("selectableFormats")),c.Rd(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l["return"]();if(c.Ze()&&c.videoData.La.Lc())return c.ea(),l["return"](b0(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.Kc()-15;f=g.eJ(c.videoData)&&g.U(c.playerState,4);h=!c.ba("html5_dompaused_unpause_killswitch")&&g.U(c.playerState,1024);h||!e&&!f||(f?(c.ea(),c.seekTo(Infinity),f0(c,"unpauseLiveOnly")):(c.ea(),c.seekTo(c.Kc()),f0(c,
"outOfWindow")));!c.isAtLiveHead(void 0,!0)&&c.Tj()&&(c.ea(),c.seekTo(Infinity),f0(c,"peggedToLive"));if(m=g.U(c.playerState,256)&&c.videoData.Rg)m=c.Kb,m=m.P&&!isFinite(m.B);if(m)return c.vb(EM(c.playerState,8,4)),l["return"]()}g.U(c.playerState,4)&&g.U(c.playerState,16)&&c.vb(EM(c.playerState,9,4));if(V_(c))return lAa(c),l["return"]();r0(c);l.u=0})})};
g.k.oJ=function(){var a=this.videoData;a.ra.dispose();a.ra=void 0;JI(a,a.adaptiveFormats);nY(this,!0);this.V("localmediachange",new rF(this.videoData.videoId,4,{Ro:!0}))};
g.k.LR=function(){this.ea();o0(this);var a=this.videoData.ra&&KB(this.videoData.ra),b=this.da&&this.da.isView();a||b?(this.Ba&&(a=this.Ba,a.u.aa=!1,a.C&&NF(a)),nY(this)):(this.vb(CM(this.playerState,16)),V_(this),g.GM(this.playerState)&&this.playVideo())};
g.k.UO=function(){this.ea();Y_(this);X_(this);p0(this);this.playVideo()};
g.k.nm=function(){if(!this.Id)return[];var a=Pxa(this.cg,this.Id,this.co(!0));return this.Id.La.nm(a)};
g.k.co=function(a){a=this.Jc?this.Jc.co(void 0===a?!1:a):zI(this.videoData)&&this.videoData.ra&&KB(this.videoData.ra)?(g.Q(this.W.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.eq:g.Q(this.W.experiments,"html5_drm_start_from_null_constraint"))?UD:vxa:UD;this.jA&&(a=a.compose(CCa));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.La&&!this.videoData.La.Lc()?HC(this.videoData.yw):HZ()};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.videoData.getAudioTrack()};
g.k.tm=function(){return this.mediaSource};
g.k.CP=function(a,b){this.ZF(new zy(b,a))};
g.k.ZF=function(a){this.ea();this.Po.set(a.initData,a);this.Jc&&(zxa(this.Jc,a),this.ba("html5_eme_loader_sync")||this.Po.remove(a.initData))};
g.k.TF=function(){g.hs&&this.Al&&this.Al.u&&this.Jc&&(Bxa(this.Jc,this.Al.u),this.Al=null)};
g.k.XQ=function(a){this.videoData.qI=FC("auto",a,!1,"u");U_(this)};
g.k.Gz=function(a){var b=this;j0(this,a.reason,a.video.info,a.audio.info);this.ba("html5_probe_media_capabilities")&&this.ba("html5_dynamic_av1_hybrid_threshold")&&a.video.info&&hx(a.video.info)&&Txa(this.cg,this.Id).then(function(c){c&&b.Ba&&hE(b.Ba.K,b.W)})};
g.k.hP=function(a){$za(this,a.reason,a.audio.info)};
g.k.iP=function(a){this.V("localmediachange",a)};
g.k.handleError=function(a){this.Ac.handleError(a,g.U(this.playerState,4)||g.U(this.playerState,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.playerState,64)||g.U(this.playerState,2))&&!a)if(g.U(this.playerState,8))this.vb(EM(this.playerState,4,8));else return;g.U(this.playerState,128)||(a?this.vb(CM(this.playerState,256)):this.vb(EM(this.playerState,4,8)));this.da&&this.da.pause();g.eJ(this.videoData)&&this.Ba&&m0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ba&&(m0(this,!1),yF(this.Ba))};
g.k.fi=function(a){a=void 0===a?!1:a;this.da&&(this.da.stopVideo(),Y_(this),X_(this),g.U(this.playerState,128)||(a?this.vb(DM(DM(CM(this.playerState,4),8),16)):this.vb(BM(this.playerState))),this.videoData.videoId&&this.W.K.remove(this.videoData.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.ea("SeekTo "+a+", "+JSON.stringify(b));g.U(this.playerState,2)&&V_(this);if(this.te){var c=this.te;isFinite(a)&&a<c.u.Fh()?c.isLiveNow=!1:c.isLiveNow=!0}this.Kb.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.Kb.getCurrentTime()};
g.k.Mi=function(){return this.Kb.Mi()};
g.k.Fh=function(){return this.Kb.Fh()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.yc())};
g.k.eo=function(){var a=NaN;this.da&&(a=this.da.eo());return 0<=a?a:this.getCurrentTime()};
g.k.Ue=function(){if(this.videoData.ra)return this.videoData.ra.Ue(this.getCurrentTime()-this.yc());if((!this.ba("html5_disable_limit_ingestion_tvos")||hr())&&this.da){var a=this.da.Zu();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.yc():this.Oc()?this.Oc():0};
g.k.zq=function(){var a=new Pha;if(this.Ba){var b=this.W.schedule;a.B=b.K;a.D=b.Y;a.bandwidthEstimate=RA(b);a.u="d."+PA(b).toFixed(2)+";st."+(1E9*(b.C.u()||0)).toFixed(2)+";bw."+b.u.u().toFixed(0)+";abw."+b.R.u().toFixed(0)+";v50."+NA(b.D,.5).toFixed(2)+";v92."+NA(b.D,.92).toFixed(2)+";v96."+NA(b.D,.96).toFixed(2)+";v98."+NA(b.D,.98).toFixed(2);b=this.Ba;if(b.C&&!EB(b.C)&&(a.dm=wA(b.B,b.I),a.C=wA(b.D,b.I),b.u.Aa)){var c=vA(b.B),d=vA(b.D),e=Wz(b.C.B.Se(),"_",5),f=Wz(b.C.u.Se(),"_",5);a.u=(a.u||"")+
(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=WA(b.aa)}else this.da&&(a.dm=TS(this.da));a.F=this.isAtLiveHead()&&this.Hb()?T_(this):NaN;return a};
g.k.rm=function(){return this.da?g.eJ(this.videoData)?1:fJ(this.videoData)?this.isAtLiveHead()||this.Tj()?1:this.Kb.rm():this.da.rm():0};
g.k.sb=function(a){var b={};if(void 0===a?0:a){g.Ua(b,this.Jb.sb());this.da&&(g.Ua(b,this.da.sb()),g.Ua(b,this.da?this.da.getVideoPlaybackQuality():{}));this.Ba&&g.Ua(b,this.Ba.sb());this.Jc&&(b.drm=this.Jc.sb());b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=this.playerState.getData());this.Qj()&&(b.prerolls=this.dh.join(","));this.videoData.Sj&&(b.ismb=this.videoData.Sj);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=this.videoData.latencyClass);
this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.isLivePlayback&&(this.videoData.ra&&ZB(this.videoData.ra)&&(b.segduration=ZB(this.videoData.ra)),a=this.Kb,b.lat=a.K?ywa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ir.toFixed(3);if(a=g.i0(this))b.optimal_format=a.Ma().qualityLabel;b.user_qual=HZ()}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Kp([a])};
g.k.removeCueRange=function(a){nF(this.Vf,[a])};
g.k.Kp=function(a){var b=this.Vf;b.fk();var c=b.u;if(1<a.length&&a.length>c.u.length)c.u=c.u.concat(a),c.u.sort(c.B);else{a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,!c.u.length||0<c.B(d,c.u[c.u.length-1])?c.u.push(d):g.Bb(c.u,d,c.B)}b.C=NaN;b.fk()};
g.k.Zo=function(a){nF(this.Vf,a)};
g.k.Lk=function(){return this.Vf.Lk()||[]};
g.k.Ze=function(){return this.visibility.Ze()};
g.k.fn=function(){this.da&&this.da.fn()};
g.k.aR=function(){c0(this)};
g.k.togglePictureInPicture=function(){this.da&&this.da.togglePictureInPicture()};
g.k.Jz=function(a){this.nw.stop();var b=a.target.We();if(this.da&&this.da.We()&&this.da.We()===b){mAa(this,a.type);switch(a.type){case "error":var c=US(this.da)||"";if("capability.changed"===c){b0(this);return}if(0<this.da.Sh()&&DZ(this.Ac,c,{msg:this.da.Bo()}))return;if(this.isBackground()&&4==this.da.Sh()){this.fi();e0(this,"unplayable");return}break;case "durationchange":c=this.da.getDuration();(!this.mediaSource||isFinite(c)&&0<c)&&1!==c&&this.gi(c);break;case "ratechange":this.Ba&&this.Ba.setPlaybackRate(this.da.getPlaybackRate());
c=this.Vf;c.started=!0;c.fk();var d=this.Jb;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.rY(d.provider);c&&c!==d.Ta&&(g.MZ(d,e,"rate",[c]),d.Ta=c);d.reportStats(e)}break;case "loadedmetadata":oAa(this);this.V("onLoadedMetadata");jAa(this);break;case "loadstart":jAa(this);break;case "progress":case "suspend":this.sc();this.V("onLoadProgress",this,this.rm());break;case "playing":if(this.ba("html5_force_manifestless_seeking_state")&&LI(this.videoData)&&this.Ba&&this.Ba.X.C){this.Na("mflForceSeek",
"reason.play");return}this.eb.tick("plev");iAa(this);ZE("plev","video_to_ad");this.kA&&(this.kA=!1,this.isAtLiveHead()||(this.ea(),this.seekTo(Infinity),f0(this,"onPlaying")));break;case "timeupdate":iAa(this);c=this.da&&!this.da.getCurrentTime();d=this.da&&0===this.da.yg();if(c&&(!this.qr||d))return;this.qr=this.qr||!!this.da.getCurrentTime();q0(this);this.sc();if(!this.da||this.da.We()!==b)return;this.V("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.da.xm().length&&
0===this.da.Gf().length&&0<this.da.getCurrentTime()&&5>this.da.getCurrentTime()&&this.Ba)return;break;case "resize":oAa(this);this.videoData.Oa&&"auto"===this.videoData.Oa.Ma().quality&&this.V("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.YB&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.Ur){e0(this,"safari_autoplay_disabled");return}}if(this.da&&this.da.We()===b){this.V("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.Sp;
e=this.da;var f=this.W.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.Yi()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!g_(c,h);if("pause"===a.type&&e.Yi()||l&&h)0<e.St()&&e.We()&&(d=14);else switch(a.type){case "error":US(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.Q(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);g_(c,e.getCurrentTime())&&(d&=-2);g.U(b,1)&&h_(c,e.getCurrentTime(),(0,g.N)(),TS(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);h_(c,e.getCurrentTime(),(0,g.N)(),TS(e));break;case "timeupdate":f=g.U(b,16),l=g.U(b,4),(g.U(b,8)||f)&&!l&&g_(c,e.getCurrentTime())&&(d=8),h_(c,e.getCurrentTime(),(0,g.N)(),TS(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,
(e=US(d))?(f="GENERIC_WITHOUT_LINK",l=d.sb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.Bo())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.HU[f]||"",Mx:f,cH:g.vB(l)}):d=null);b=BM(b,c,d)}!g.U(this.playerState,1)&&g.U(b,1)&&s0(this,"evt"+a.type);this.vb(b)}}};
g.k.OQ=function(){this.Na("misstimeupdate","");hAa(this)&&!g.U(this.playerState,2)&&sY(this,!0,!1)};
g.k.eO=function(a){a="available"===a.B.availability;a!==this.Jq&&(this.Jq=a,this.V("airplayavailabilitychange"))};
g.k.fO=function(){var a=(0,g.N)();if(isNaN(this.wu)||!(2E3>a-this.wu)){var b=this.da.Ze();this.wu=a;b!==this.Ze()&&(a=this.visibility,a.C!==b&&(a.C=b,a.ff()),Z_(this));this.V("airplayactivechange")}};
g.k.du=function(a){if(this.Ba){var b=this.Ba,c=b.R,d=b.I;c.V("ctmp","sdai","adfetchdone_to_"+a,!1);a||isNaN(c.F)||(a=c.F,zA(c.P,c.D,a,d),zA(c.aa,c.D,a,d),c.V("ctmp","sdai","joinad_rollbk2_seg_"+c.D+"_rbt_"+a.toFixed(3)+"_lt_"+d.toFixed(3),!1));c.B=4;KF(b)}};
g.k.sc=function(a){var b=this;a=void 0===a?!1:a;if(this.da&&this.videoData){Rya(this.Kb,this.Hb());var c=this.getCurrentTime();this.Ba&&(g.U(this.playerState,4)&&g.eJ(this.videoData)||gia(this.Ba,c));5<c&&(this.Kb.C=c);var d=g.up();d?g.vp(this.Bl):g.Io(this.Bl);if((g.IM(this.playerState)||!this.da.pl())&&!g.U(this.playerState,128)){var e=function(){if(b.da&&!g.U(b.playerState,128)){b.videoData.nk&&g.P(b.W.experiments,"html5_log_rebuffer_events")&&mAa(b,"pfx");var f=b.getCurrentTime(),h=TS(b.da),l=
g.U(b.playerState,8),m=g_(b.Sp,f),n=h_(b.Sp,f,(0,g.N)(),h);l&&m?b.vb(DM(b.playerState,1)):l&&n?(l=b.getDuration(),m=b.videoData.isLivePlayback,(b.ba("html5_set_ended_in_pfx_live")||!m)&&l&&1.1>Math.abs(l-f)?(b.Na("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.ba("html5_set_ended_in_pfx_live_cfl")||(b.da.sm()?(b.ea(),b.seekTo(0)):sY(b))):(g.IM(b.playerState)||s0(b,"progress_fix"),b.vb(CM(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.Nq)/1E3,m=b.getDuration(),f>m-1&&b.Na("misspg",
"t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.U(b.playerState,4)&&g.IM(b.playerState)&&5<TS(b.da)&&b.vb(DM(b.playerState,1)));b.sc()}};
0===this.da.xm().length?this.Bl=d?g.sp(e,100):g.Go(e,100):this.Bl=d?g.sp(e,500):g.Go(e,500)}this.videoData.wh=c;!a&&this.Hb()&&kAa(this);Xxa(this.cg,this.Id,this.Zc(),this.isBackground())&&U_(this);Yxa(this.cg,this.videoData.Oa)&&(this.Jb.onError("qoe.restart","droprate."+this.cg.K),this.W.D.I=!1,Z_(this));this.V("progresssync",this,a)}};
g.k.CK=function(){this.Rd("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.rq=function(){return this.Jb.rq()};
g.k.Zx=function(){return this.Ba?this.Ba.Zx():RA(this.W.schedule)};
g.k.EJ=function(){g.IM(this.playerState)&&Vxa(this.cg,this.Id)&&U_(this)};
g.k.vb=function(a){if(!g.FM(this.playerState,a)){this.ea();var b=new g.EK(a,this.playerState);this.playerState=a;nAa(this);var c=!this.Iv.length;this.Iv.push(b);var d=this.da&&this.da.Wq();g.GK(b,1)&&!g.U(b.hk,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.Ba&&(this.Ba.Aa=!0,this.da&&5<=TS(this.da)&&((d=g.P(this.W.experiments,"html5_non_network_rebuffer_duration_ms"))?this.yF.start(d):Vxa(this.cg,this.Id)&&U_(this)));(d=g.P(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&
g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.Rw.start(d):this.Rw.stop();(0>FK(b,8)||g.GK(b,1024))&&this.Mm.stop();!g.GK(b,8)||this.videoData.Rg||g.U(b.state,1024)||this.Mm.start();g.U(b.state,8)&&0>FK(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&fJ(this.videoData)&&(this.gi(this.getCurrentTime()),this.sc(!0));g.GK(b,2)&&this.oA(!0);g.GK(b,128)&&this.fi();this.videoData.ra&&this.videoData.isLivePlayback&&!this.iI&&(0>FK(b,8)?(a=this.videoData.ra,a.D&&a.D.stop()):g.GK(b,8)&&this.videoData.ra.resume());
this.Kb.lc(b);this.Jb.lc(b);if(c&&!this.na())try{for(var e=g.q(this.Iv),f=e.next();!f.done;f=e.next()){var h=f.value;this.Vf.lc(h);this.V("statechange",h)}}finally{this.Iv.length=0}}};
g.k.fu=function(){this.videoData.isLivePlayback||this.V("connectionissue")};
g.k.yv=function(a,b,c,d){a:{var e=this.Ac;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.Jc&&1<this.Jc.B.keys.length&&96>e.C)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.ba("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.D&&(e.D++,e.V("removedrmplaybackmanager"),1<e.videoData.Vo.length&&(e.ea(),e.videoData.md=e.videoData.Vo[1]),DZ(e,a,{detail:c})))break a;if(b)if(e.videoData.Oa&&e.videoData.Oa.Ma().Vg())Lxa(e,a);else{if(e.V("playererror",a,d,
c),e.videoData.ba("html5_exile_on_drm_fatal")&&Exa(e,{detail:c}))break a}else BZ(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(EZ(e,"retrydrm","s"),e.C++,e.V("reattachvideosourcerequired"))}};
g.k.bP=function(){var a=this,b=g.P(this.W.experiments,"html5_license_constraint_delay"),c=sr();b&&c?(b=new g.F(function(){g0(a);c0(a)},b),g.D(this,b),b.start()):(g0(this),c0(this))};
g.k.aP=function(){var a=this;g.hs&&(this.Al=Zga(this.videoData.ra))&&(this.Al.u?g.mm(function(){a.TF()}):iia(this.Ba,this.Al))};
g.k.tr=function(a){this.V("heartbeatparams",a)};
g.k.xl=function(a){this.Na("keystatuses",jxa(a));var b="auto";this.videoData.Oa&&(b=this.videoData.Oa.Ma().quality);!kxa(a,b,!1)||lxa(a,"AUDIO")&&lxa(a,"SD")?this.videoData.Oa&&this.videoData.Oa.Ma().Vg()&&(!a.X||kxa(a,b,!0))&&Lxa(this.Ac):(this.ea(),this.jA?(this.ea(),this.V("drmoutputrestricted")):(this.jA=!0,this.Na("retrydrm","o"),l0(this),Tza(this)))};
g.k.fP=function(){var a,b;if(!this.videoData.Rg&&this.da&&!this.isBackground()){var c="0";0<this.da.yg()&&5<=TS(this.da)&&this.videoData.La&&this.videoData.La.Lc()&&(this.vb(CM(this.playerState,1)),s0(this,"load_soft_timeout"),this.V("playbackstalledatstart"),c="1");nAa(this);if(this.ba("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Qj()&&(c.prerolls=this.dh.join(",")),this.Ba&&g.Ua(c,this.Ba.sb()),this.da&&g.Ua(c,this.da.sb());else{var d=this.videoData.La;c={restartmsg:c,mfmt:zI(this.videoData)?
"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Ud&&!this.Jc?"1":"0",mfmtinfo:this.videoData.Oa?"0":"1",prerolls:this.Qj()?this.dh.join(","):"0"};if(this.Jc){d=c;var e=this.Jc;if(0>=e.B.values.length){var f="ns;";e.P||(f+="nr;");e=f+="ql."+e.C.length}else e=jxa(e.B.values[0]);d.drmp=e}g.Ua(c,(null===(a=this.Ba)||void 0===a?void 0:a.sb())||{});g.Ua(c,(null===(b=this.da)||void 0===b?void 0:b.sb())||{})}this.Jb.onError("qoe.start15s",g.vB(c));this.V("loadsofttimeout")}};
g.k.DQ=function(){g.U(this.playerState,128)||this.mediaSource&&CB(this.mediaSource)||(this.Jb.onError("qoe.restart",g.vB({detail:"bufferattach"})),this.EH++,nY(this))};
g.k.gi=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,c0(this))};
g.k.oA=function(a){var b=this;a=void 0===a?!1:a;if(!this.Ln){WE("att_s","player_att")||ZE("att_s","player_att");var c=new ysa(this.videoData,this.ba("web_player_inline_botguard"));if("c1a"in c.u&&!oT(c)&&(ZE("att_wb","player_att"),2===this.Np&&.01>Math.random()&&g.Is(Error("Botguard not available after 2 attempts")),!a&&5>this.Np)){this.fx.Sb();this.Np++;return}if("c1b"in c.u){var d=Cya(this.Jb);d&&Bsa(c).then(function(e){e&&!b.Ln&&d?(ZE("att_f","player_att"),d(e),b.Ln=!0):ZE("att_e","player_att")},
function(){ZE("att_e","player_att")})}else(a=zsa(c))?(ZE("att_f","player_att"),Bya(this.Jb,a),this.Ln=!0):ZE("att_e","player_att")}};
g.k.Oc=function(a){return this.Kb.Oc(void 0===a?!1:a)};
g.k.Kc=function(){return this.Kb.Kc()};
g.k.yc=function(){return this.Kb?this.Kb.yc():0};
g.k.getStreamTimeOffset=function(){return this.Kb?this.Kb.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.La&&this.videoData.La.videoInfos&&32<this.videoData.La.videoInfos[0].Ma().fps&&g.wD(this.W);this.playbackRate!==a&&b&&(this.cg.setPlaybackRate(a),l0(this));this.playbackRate=a;this.da&&this.da.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.Oa&&(a=this.videoData.Oa.Ma().quality,"auto"===a&&this.da)){var b=xK(this);b&&0<b.videoHeight&&(a=Xw(b.videoWidth,b.videoHeight))}return a};
g.k.Vg=function(){return!!(this.videoData.Oa&&this.videoData.Oa.video&&this.videoData.Oa.video.Vg())};
g.k.rp=function(){this.Jb.rp()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Jb;c.u?(c=$Z(c.u,"engage"),c.K=a,c.send(b)):b&&b()};
g.k.Yf=function(a){return this.Jb.Yf(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.Ay||(void 0===b?0:b))?this.Kb.isAtLiveHead(a):!1};
g.k.Ni=function(){var a=this.Oc(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Kb,c=!(c.u&&c.u.C));return c||this.Tj()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Zh=ba(14);g.k.wl=ba(18);g.k.vl=ba(21);g.k.setLoop=function(a){this.loop=a;this.da&&this.da.setLoop(a)};
g.k.sm=function(){return this.da?this.da.sm():this.loop};
g.k.Gu=function(a){var b=this.ba("html5_unrewrite_timestamps");this.Na("timestamp","enabled."+b+";t."+a.toString())};
g.k.Na=function(a,b,c){this.Jb.Na(a,b,void 0===c?!1:c)};
g.k.Er=function(a,b){this.Jb.onError(a,g.vB(b))};
g.k.Fr=function(a,b,c){this.Jb.Fr(a,b,c)};
g.k.cn=function(a,b,c,d,e,f,h){if(e){e=this.Jb;var l;e.qoe&&e.qoe.cn(a,b,c,d,1,h);""===a&&(a=e.provider.videoData.clientPlaybackNonce);e.D.has(a)?null===(l=e.D.get(a))||void 0===l?void 0:l.C&&isNaN(l.B)&&a_(l,!1):(b=Dya(e,e.provider,f),e.D.set(a,b),tya(b));e.C=a}else f=this.Jb,f.qoe&&f.qoe.cn(a,b,c,d,0,h),""===a&&(a=f.provider.videoData.clientPlaybackNonce),f.D.has(a)?(b=f.D.get(a),d_(b).send(),g.Io(b.B),b.B=NaN):(f.C=f.provider.videoData.clientPlaybackNonce,f.C&&f.u&&f.D.set(f.C,f.u))};
g.k.Bi=function(){this.Ba&&this.Ba.Bi()};
g.k.ea=function(){};
g.k.ba=function(a){return g.Q(this.W.experiments,a)};
g.k.ex=function(){if(FI(this.videoData,"html5_set_debugging_opt_in")){var a=g.ht.getInstance();if(!g.jt(0,183)){var b="f"+(Math.floor(183/31)+1),c=it(b)||0;c|=268435456;0==c?delete gt[b]:(c=c.toString(16),gt[b]=c.toString());a.save()}}};
g.k.oH=function(){if(g.GM(this.playerState)){if(yz){var a="";for(var b in Dz)if(Dz.hasOwnProperty(b)){var c=Dz[b];if(0===c.u)c=null;else{for(var d=c.u.toString()+"."+Math.round(c.C).toString(),e=0;e<uz.length;++e)if(0<c.B[e])d+="."+uz[e].toString()+"_"+Math.round(c.B[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}Dz=new wz}else a="";a&&this.Jb.Na("profile",a)}this.Lv.start()};g.u(u0,g.C);u0.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Sa(a),e=o2[d];if(e){try{e.dispose()}catch(h){M(h)}o2[d]=null}var f=new u0(a,b,c);g.eg(f,function(){o2[d]=null;f.xi&&f.xi()});
return o2[d]=f}catch(h){throw M(h),h.stack;}};
g.k=u0.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.X||!this.X.fb)};
g.k.Pf=function(){if(this.da){this.Qa&&(this.events.Mb(this.Qa),this.Qa=null);g.ut(this.ma);this.D&&this.D.Pf(!0);this.template.Pf();this.da.ol()&&w0.releaseTag(this.da.Pa());if(!this.ba("html5_unset_src_on_remove_killswitch"))try{this.da.Uv()}catch(a){}this.da=null}};
g.k.setIsExternalPlaylist=function(a){this.R=R(!1,a)};
g.k.kO=function(){v0(this)||(this.ea(),g.N0(this,5))};
g.k.LP=function(a){v0(this)||(this.ea(),ZAa(this),g.GM(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return nB(a)};
g.k.T=function(){return this.W};
g.k.getVideoData=function(){return this.D.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.Z(this,a);return a?rJ(a.getVideoData())?1:(a=a.Zc())?a.rm():0:0};
g.k.De=function(){var a={},b=g.nU(this.C);b&&g.Ua(a,b.zL());a.fs=this.u.isFullscreen();a.volume=Math.round(this.u.getVolume());a.muted=this.u.isMuted()?1:0;a.mos=a.muted;if(g.Q(this.W.experiments,"html5_enable_embedded_player_visibility_signals")&&this.W.B&&(this.sf&&(b=this.sf,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.width),Math.round(b.height)];var c=g.GD();1<c&&b.push(c);a.size=b.join(":")}!this.ba("web_player_clips_vss_killswitch")&&
this.D===this.B&&this.K&&(a.clipid=this.K.postId);return a};
g.k.setLoopVideo=function(a){this.D===this.B&&this.D.sm()!==a&&(this.D.setLoop(a),this.u.V("loopchange",a))};
g.k.getLoopVideo=function(){return this.D.sm()};
g.k.setLoopRange=function(a){var b=!1;!!this.K!==!!a?b=!0:this.K&&a&&(b=this.K.startTimeMs!==a.startTimeMs||this.K.endTimeMs!==a.endTimeMs||this.K.postId!==a.postId);b&&(oF(this.B.Vf,"applooprange"),a?(b=new g.eF(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.B.addCueRange(b)):E0(this).clipConfig=void 0,this.K=a,this.u.xa("onLoopRangeChange",a),this.D===this.B&&(this.K&&!Q0(this,this.B.getCurrentTime())&&this.lA(),this.D.sn()))};
g.k.getLoopRange=function(){return this.K};
g.k.lA=function(){this.B.seekTo(.001*this.K.startTimeMs)};
g.k.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=xAa(this,a);this.B.getPlaybackRate()!==c&&(this.B.setPlaybackRate(c),b&&!this.W.B&&qCa(c),this.u.xa("onPlaybackRateChange",c))}};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.MT(this.C).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;var d=c?g.Z(this):g.Z(this,a);if(!d)return 0;if(b)return c=D0(this,d),R0(this,c.getCurrentTime(),c);if(c&&this.I){c=d.getCurrentTime();var e=zY(this.I,c);d=e.sh;e=e.ul;c=d?e-d.pc/1E3:c}else c=d.getCurrentTime();return c};
g.k.eo=function(){var a=g.Z(this,void 0);if(!a)return 0;a=D0(this,a);return R0(this,a.eo(),a)};
g.k.getDuration=function(a,b){var c=g.Z(this,a);return c?void 0===b||b?(c=C0(this,c),R0(this,c.getDuration(),c)):c.getDuration():0};
g.k.Kc=function(a){a=g.Z(this,a);if(!a)return 0;a=C0(this,a);return R0(this,a.Kc(),a)};
g.k.Ue=function(a){var b=g.Z(this,a);return b?this.cd(b)?(b=C0(this,b),b.Ue()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ue():0};
g.k.getDebugText=function(a){var b=this.B.sb(a);if(this.D&&this.D!==this.B){for(var c=this.D.sb(a),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=pe(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.se("video-ads");f?(fBa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.se("videoAdUiSkipContainer"),l=g.se("ytp-ad-skip-button-container"),m=h||l;m?(fBa(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.da&&(b["0sz"]=0===ke(this.da.Co()),b.op=this.da.Aq("opacity"),c=this.da.Pk().y+this.da.Co().height,b.yof=0>=c,b.dis=this.da.Aq("display"));(a=a?(0,g.SZ)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.u.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;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=LT(this).getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(){return 1===this.Y?1:v0(this)?3:g.Z(this).getPlayerType()};
g.k.getAppState=function(){return this.Y};
g.k.Jz=function(a){switch(a.type){case "loadedmetadata":WE("fvb",this.eb.timerName)||this.eb.tick("fvb");ZE("fvb","video_to_ad");this.kc.start();break;case "loadstart":WE("gv",this.eb.timerName)||this.eb.tick("gv");ZE("gv","video_to_ad");break;case "progress":case "timeupdate":!WE("l2s",this.eb.timerName)&&2<=eA(a.target.Gf())&&this.eb.tick("l2s");break;case "playing":g.OD&&this.kc.start();if(g.wD(this.W))a=!1;else{var b=g.PT(this.C);a="none"===this.da.Aq("display")||0===ke(this.da.Co());var c=bZ(this.template),
d=this.D.getVideoData(),e=KD(this.W)||g.qD(this.W);d=AI(d);b=!c||b||e||d||this.W.ke;a=a&&!b}a&&(this.D.Na("hidden","1",!0),this.getVideoData().pj||(this.ba("html5_new_elem_on_hidden")?(this.getVideoData().pj=1,this.XF(null),this.D.playVideo()):bBa(this,"hidden",!0)))}};
g.k.eP=function(a,b){this.u.xa("onLoadProgress",b)};
g.k.GQ=function(){this.u.V("playbackstalledatstart")};
g.k.xr=function(a,b){var c=D0(this,a);b=R0(this,c.getCurrentTime(),c);this.u.xa("onVideoProgress",b)};
g.k.PO=function(){this.u.xa("onDompaused")};
g.k.WP=function(){this.u.V("progresssync")};
g.k.mO=function(a){if(1===this.getPresentingPlayerType()){g.GK(a,1)&&!g.U(a.state,64)&&E0(this).isLivePlayback&&this.B.isAtLiveHead()&&1<this.u.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.GK(a,2)&&CAa(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.u.xa("onError",YCa[b.errorCode]||5);this.u.xa("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.Mx});
6048E5<(0,g.N)()-this.W.Ta&&this.u.xa("onReloadRequired")}b={};if(a.state.Hb()&&!g.IM(a.state)&&!WE("pbresume","ad_to_video")&&WE("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);VE(b,"ad_to_video");PE("pbresume",void 0,"ad_to_video")}this.u.V("applicationplayerstatechange",a)}};
g.k.uG=function(a){3!==this.getPresentingPlayerType()&&this.u.V("presentingplayerstatechange",a)};
g.k.KL=function(a){z0(this,JM(a.state));g.U(a.state,1024)&&this.u.isMutedByMutedAutoplay()&&(AT(this,{muted:!1,volume:this.P.volume},!1),O0(this,!1))};
g.k.NP=function(a){a.state.Hb()&&!g.IM(a.state)&&(zta(this.C),g.ut(this.Ne))};
g.k.iO=function(a,b,c){"newdata"===a&&KAa(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.HL=function(){this.u.xa("onPlaybackAudioChange",this.u.getAudioTrack().u.name)};
g.k.ML=function(a){var b=this.D.getVideoData();a===b&&this.u.xa("onPlaybackQualityChange",a.Oa.Ma().quality)};
g.k.Ra=function(a,b,c){this.ea("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.B&&(this.W.sf=c.oauthToken);if(this.W.C&&this.F){if(c.Qq&&qJ(c)){var d=c.Qq;c.Qq=null}else d=null;d&&this.F.u(d)}this.getVideoData().enableServerStitchedDai&&!this.I&&(this.I=new vY(this.u,this.W,this.B));if("newdata"===a)this.ea(),rU(this.C,2),this.u.V("videoplayerreset",b);else{if(!this.da)return;"dataloaded"===a&&(this.D===this.B?(c.Sa.nh(c.GG),this.ea(),this.B.getPlayerState().isError()?
this.ea():(d=v0(this),E0(this).Uc(),d&&g.N0(this,6),EAa(this),d||(d=sU(this.C))&&!d.created&&oU(this.C)&&d.create())):EAa(this));1===b.getPlayerType()&&(this.W.X&&eBa(this),this.getVideoData().isLivePlayback&&!this.W.uu&&this.B.Rd("html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),c.Uc()&&(c.Wo||c.Mv||c.Nv||c.qd.focEnabled||c.qd.rmktEnabled||this.getVideoData().Vw)&&(d=this.getVideoData(),U0(this,"part2viewed",1,0x8000000000000),U0(this,"engagedview",Math.max(1,1E3*d.yh),0x8000000000000),d.isLivePlayback||
(d=1E3*d.lengthSeconds,U0(this,"videoplaytime25",.25*d,d),U0(this,"videoplaytime50",.5*d,d),U0(this,"videoplaytime75",.75*d,d),U0(this,"videoplaytime100",d,0x8000000000000),U0(this,"conversionview",d,0x8000000000000))));this.u.V("videodatachange",a,c,b.getPlayerType())}this.u.xa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});b===this.B&&this.K&&!Q0(this,this.B.getCurrentTime())&&this.lA();if((b=c.Or)&&g.Q(this.W.experiments,"web_player_create_screens")){if(a=this.ia,c=c.clientPlaybackNonce,
a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=WM();var e=void 0===e?{}:e;Object.values(lCa).includes(c)||(g.Is(new g.tr("createClientScreen() called with a non-page VE",c)),c=83769);e.isHistoryNavigation||b.u.push({rootVe:c,key:e.key||""});b.D=[];b.F=[];e.FC?Gma(b,c,e):ZM(b,c,e);Jwa(a)}}else Jwa(this.ia)};
g.k.bv=function(){H0(this,null);this.u.xa("onPlaylistUpdate")};
g.k.BF=function(a){var b=a.getId(),c=E0(this);"part2viewed"===b?(c.NG&&g.pu(c.NG),c.Mv&&b1(this,c.Mv),c.Nv&&c1(this,c.Nv)):"conversionview"===b?this.B.rp():"engagedview"===b&&g.pu(c.Wo);if(c.OG){var d=c.OG;var e={label:a.getId()};if(g.Q(this.W.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.aq(d,e);g.pu(d)}switch(b){case "videoplaytime25":c.Vz&&b1(this,c.Vz);c.Wz&&c1(this,c.Wz);c.QG&&g.pu(c.QG);break;case "videoplaytime50":c.Xz&&
b1(this,c.Xz);c.Yz&&c1(this,c.Yz);c.SG&&g.pu(c.SG);break;case "videoplaytime75":c.Zz&&b1(this,c.Zz);c.aA&&c1(this,c.aA);c.TG&&g.pu(c.TG);break;case "videoplaytime100":c.Tz&&b1(this,c.Tz),c.Uz&&c1(this,c.Uz),c.PG&&g.pu(c.PG)}(b=this.getVideoData().Vw)&&PAa(b,a.getId())&&PAa(b,a.getId()+"gaia");this.B.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=C0(this,c);c=D0(this,c);return d!==c?d.isAtLiveHead(R0(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.k.Ni=function(){var a=g.Z(this,void 0);return a?C0(this,a).Ni():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.Z(this,d))2===this.Y&&L0(this),this.cd(d)?this.I?this.I.seekTo(a,b,c):this.te.seekTo(a,b,c):d.seekTo(a,{bI:!b,cI:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.LL=function(){this.u.xa("SEEK_COMPLETE")};
g.k.wQ=function(a,b){var c=a.getVideoData();if(1===this.Y||2===this.Y)c.startSeconds=b;2===this.Y?L0(this):(this.u.xa("SEEK_TO",b),!this.ba("hoffle_api")&&this.F&&uT(this.F,c.videoId))};
g.k.cO=function(){this.u.V("airplayactivechange")};
g.k.dO=function(){this.u.V("airplayavailabilitychange")};
g.k.tO=function(){this.u.V("beginseeking")};
g.k.SO=function(){this.u.V("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.Z(this,a))?C0(this,a).getVideoData().getStoryboardFormat():null};
g.k.tg=function(a){return(a=g.Z(this,a))?C0(this,a).getVideoData().tg():null};
g.k.cd=function(a){if(a=a||this.D){a=a.getVideoData();if(this.I)a=a===this.I.u.getVideoData();else a:{var b=this.te;if(a===b.B.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Hc===c.value.Hc){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.cd();a=new g.rI(this.W,a);d&&(a.Hc=d);!g.Q(this.W.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.B&&this.B.Yo(a.clientPlaybackNonce,a.Xo||"",a.breakType||0);SAa(this,a,b,c)};
g.k.clearQueue=function(){this.ea();this.Ga.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f=!1,h=new g.rI(this.W,a);if(!this.ba("web_player_load_video_context_killswitch")&&e){for(;h.bk.length&&h.bk[0].isExpired();)h.bk.shift();for(var l=g.q(h.bk),m=l.next();!m.done;m=l.next())e.B(m.value)&&(f=!0);h.bk.push(e)}c||(a&&gU(a)?(FD(this.W)&&!this.R&&(a.fetch=0),H0(this,a)):this.playlist&&H0(this,null),a&&this.setIsExternalPlaylist(a.external_list),FD(this.W)&&!this.R&&I0(this));a=KY(this,h,b,d);f&&(f=("loadvideo.1;emsg."+h.bk.join()).replace(/[;:,]/g,
"_"),this.B.Rd("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",f,void 0));return a};
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=bD(a);d=V0(b,d,e);this.kb.get(d)?this.ea():this.D&&this.D.di.started&&d===V0(this.D.getPlayerType(),this.D.getVideoData().videoId,this.D.getVideoData().Hc)?this.ea():(a=new g.rI(this.W,a),e&&(a.Hc=e),UAa(this,a,b,c))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.C;a=a.J.T().showMiniplayerUiWhenMinimized?a.Vc.get("miniplayer"):void 0;a&&(this.visibility.u?a.load():a.unload());this.u.V("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.tQ=function(){"picture-in-picture"===this.da.Pa().webkitPresentationMode?A0(this,!0):A0(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&&gU(a)){this.Aa=!0;H0(this,a);var d=this.playlist.Ma();if(d&&d.isValid())X0(this,d,b);else this.playlist.onReady(function(){K0(c)})}else{b||(b=this.getPresentingPlayerType());
1===b&&this.bv();var e=new g.rI(this.W,a);g.nD(this.W)&&g.Q(this.W.experiments,"embeds_enable_iframe_apis_through_oneplatform")?sta(e,a?a:{}).then(function(){X0(c,e,b)}):X0(this,e,b)}};
g.k.cuePlaylist=function(a,b,c,d){this.Aa=!0;VAa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Aa=!1;VAa(this,a,b,c,d)};
g.k.nextVideo=function(a,b){var c=this,d=this.B.getVideoData().suggestions;if(g.XT(this.u)&&d){d=d.map(function(f){return g.uW(c.W,f)})[0];
var e=b?d.Ix:d.Ad;g.FT(this,d.Ma().videoId,e,d.getPlaylistId(),b,d.XB||void 0)}else this.R?this.u.xa("onPlaylistNext"):3===this.getPresentingPlayerType()?g.MT(this.C).nextVideo():this.playlist&&(FD(this.W)&&!this.u.isFullscreen()?T0(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&hU(this.playlist,kta(this.playlist)),this.playlist.loaded?(d=b&&g.Q(this.W.experiments,"html5_player_autonav_logging"),KY(this,this.playlist.Ma(void 0,b,d),1)):this.Aa=!1))};
g.k.previousVideo=function(a){this.R?this.u.xa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.MT(this.C).Jv():this.playlist&&(FD(this.W)&&!this.u.isFullscreen()?T0(this,"yt.www.watch.lists.prev"):(this.playlist.Ti(a)&&hU(this.playlist,lta(this.playlist)),this.playlist.loaded?KY(this,this.playlist.Ma(),1):this.Aa=!1))};
g.k.playVideoAt=function(a){this.R?this.u.xa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?KY(this,this.playlist.Ma(a),1):this.Aa=!1,hU(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.gO=function(a){this.u.xa("onCueRangeEnter",a.getId())};
g.k.hO=function(a){this.u.xa("onCueRangeExit",a.getId())};
g.k.Kp=function(a,b){var c=g.Z(this,b);c&&(c.Kp(a),b&&this.getPresentingPlayerType()!==b||VT(this,"cuerangesadded",a))};
g.k.Zo=function(a,b){var c=g.Z(this,b);c&&(c.Zo(a),b&&this.getPresentingPlayerType()!==b||VT(this,"cuerangesremoved",a))};
g.k.lO=function(){function a(){var d=g.Rt(b.Lg||(b.visibility.u?3:0));if(d){var e={cpn:b.getVideoData().clientPlaybackNonce,csn:d};if(g.Q(b.W.experiments,"web_playback_associated_ve")&&null!=b.getVideoData().Ug){var f=g.Lt(b.getVideoData().Ug);g.Yt(d,f,void 0);e.playbackVe=f.getAsJson()}g.Q(b.W.experiments,"kevlar_playback_associated_queue")&&b.getVideoData().queueInfo&&(e.queueInfo=b.getVideoData().queueInfo);d={};b.ba("web_playback_associated_log_ctt")&&b.getVideoData().vi&&(d.Fi={token:b.getVideoData().vi,
videoId:b.getVideoData().videoId});g.Nq("playbackAssociated",e,d)}}
var b=this;this.getPresentingPlayerType();this.za||(this.za=Iq(aF,this.KF,this));$sa(this.eb,this.D.getVideoData(),ata(this));G0(this)&&this.W.B&&"embedded"===kJ(E0(this))&&this.ng&&.01>Math.random()&&g.Nq("autoplayTriggered",{intentional:this.Ig});this.ng=!1;this.u.xa("onPlaybackStartExternal");g.Q(this.W.experiments,"mweb_client_log_screen_associated")||a();SE("player_att",["att_f","att_e"]);if(this.ba("web_player_inline_botguard")){var c=this.getVideoData().botguardData;c&&(this.ba("web_player_botguard_inline_skip_config_killswitch")&&
(so("BG_I",c.interpreterScript),so("BG_IU",c.interpreterUrl),so("BG_P",c.program)),g.HD(this.W)?rp(function(){M0(b)}):M0(this))}};
g.k.IL=function(){this.u.V("internalAbandon");this.ba("html5_ad_module_cleanup_killswitch")||S0(this)};
g.k.KF=function(a){a=a.u;!isNaN(a)&&0<a&&this.B&&this.B.Dr(a)};
g.k.tP=function(){var a=this.da;a={volume:g.ce(Math.floor(100*a.getVolume()),0,100),muted:a.Rt()};a.muted||O0(this,!1);this.P=g.Vb(a);this.u.xa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.u.xa("onMutedAutoplayStarts"))};
g.k.VO=function(){var a=Z0(this);B0(this,a?1:0);aBa(this,!!a)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.lQ=function(){this.D&&(0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||B0(this,Z0(this)?1:0),this.W.yn&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.da&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.da.iq())};
g.k.dP=function(a){3!==this.getPresentingPlayerType()&&this.u.V("liveviewshift",a)};
g.k.playVideo=function(a){this.ea();if(a=g.Z(this,a))2===this.Y?L0(this):(null!=this.X&&this.X.fb&&this.X.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(){this.ea();var a=this.B.getVideoData(),b=new g.rI(this.W,{video_id:a.gB||a.videoId,oauth_token:a.oauthToken});b.li=g.Vb(a.li);this.cancelPlayback(6);X0(this,b,1);null!=this.X&&this.X.stop()};
g.k.cancelPlayback=function(a,b){this.ea();Hq(this.za);this.za=0;var c=g.Z(this,b);if(c)if(1===this.Y||2===this.Y)this.ea();else{c===this.D&&(this.ea(),rU(this.C,a));var d=c.getVideoData();if(this.F&&qJ(d)&&d.videoId)if(this.ba("hoffle_api")){var e=this.F;d=d.videoId;if(2===Zx(d)){var f=qT(e,d);f&&f!==e.player&&qJ(f.getVideoData())&&(f.Bi(),RI(f.getVideoData(),!1),by(d,3),rT(e))}}else uT(this.F,d.videoId);1===b&&(g.Q(this.W.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),S0(this));
c.fi();VT(this,"cuerangesremoved",c.Lk());c.Vf.reset();this.Ga&&c.isGapless()&&(c.Pf(!0),c.setMediaElement(this.da))}else this.ea()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Z(this,b))&&this.W.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Yf=function(a){var b=g.Z(this,void 0);return b&&this.W.enabledEngageTypes.has(a.toString())?b.Yf(a):null};
g.k.updatePlaylist=function(){FD(this.W)?I0(this):g.Q(this.W.experiments,"embeds_wexit_list_ajax_migration")&&g.nD(this.W)&&J0(this);this.u.xa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.wi=a;this.ce=b;this.u.V("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.ce};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.MT(this.C).getAdState();if(!this.cd()){var a=sU(this.C);if(a)return a.getAdState()}return-1};
g.k.kQ=function(a){var b=this.template.getVideoContentRect();kg(this.Jg,b)||(this.Jg=b,this.D&&g0(this.D),this.B&&this.B!==this.D&&g0(this.B),1===this.visibility.fullscreen&&this.Ya&&aBa(this,!0));this.ke&&g.je(this.ke,a)||(this.u.V("appresize",a),this.ke=a)};
g.k.He=function(){return this.u.He()};
g.k.AQ=function(){2===this.getPresentingPlayerType()&&this.te.isManifestless()&&!this.ba("web_player_manifestless_ad_signature_expiration_killswitch")?uwa(this.te):bBa(this,"signature",void 0,!0)};
g.k.XF=function(){this.Pf();x0(this)};
g.k.jQ=function(a){mY(a,this.da.tm())};
g.k.JL=function(a){this.F&&this.F.u(a)};
g.k.FO=function(){this.u.xa("CONNECTION_ISSUE")};
g.k.tr=function(a){this.u.V("heartbeatparams",a)};
g.k.Zc=function(){return this.da};
g.k.setBlackout=function(a){this.W.ke=a;this.D&&(this.D.sn(),this.W.X&&eBa(this))};
g.k.setAccountLinkState=function(a){var b=g.Z(this);b&&(b.getVideoData().In=a,b.sn())};
g.k.updateAccountLinkingConfig=function(a){var b=g.Z(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.u.V("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.EP=function(){var a=g.Z(this);if(a){var b=!UT(this.u);(a.Ay=b)||a.Mm.stop();if(a.videoData.ra)if(b)a.videoData.ra.resume();else{var c=a.videoData.ra;c.D&&c.D.stop()}g.Q(a.W.experiments,"html5_suspend_loader")&&a.Ba&&(b?a.Ba.resume():m0(a,!0));g.Q(a.W.experiments,"html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.vb(DM(a.playerState,512)):a.vb(CM(a.playerState,512)));a=a.Jb;a.qoe&&(a=a.qoe,g.MZ(a,g.rY(a.provider),"stream",[b?"A":"I"]))}};
g.k.gP=function(){this.u.xa("onLoadedMetadata")};
g.k.RO=function(){this.u.xa("onDrmOutputRestricted")};
g.k.ex=function(){void 0!==navigator.mediaCapabilities&&(QB=!0);g.Q(this.W.experiments,"html5_disable_subtract_cuepoint_offset")&&(Uy=!0);g.Q(this.W.experiments,"html5_log_opus_oboe_killswitch")&&(Hv=!1);g.Q(this.W.experiments,"html5_skip_empty_load")&&(UCa=!0);XCa=g.Q(this.W.experiments,"html5_ios_force_seek_to_zero_on_stop");VCa=g.Q(this.W.experiments,"html5_ios7_force_play_on_stall");WCa=g.Q(this.W.experiments,"html5_ios4_seek_above_zero");g.Q(this.W.experiments,"html5_mediastream_applies_timestamp_offset")&&
(Qy=!0);g.Q(this.W.experiments,"html5_dont_override_default_sample_desc_index")&&(pv=!0)};
g.k.ca=function(){this.C.dispose();this.te.dispose();this.I&&this.I.dispose();this.B.dispose();this.Pf();g.gg(g.Lb(this.Oe),this.playlist);Hq(this.za);this.za=0;g.C.prototype.ca.call(this)};
g.k.ea=function(){};
g.k.ba=function(a){return g.Q(this.W.experiments,a)};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Lg=a};
g.k.cancelPendingLocalMediaById=function(a){return this.F&&this.ba("hoffle_api")?uT(this.F,a):Promise.reject()};
g.k.fetchLocalMedia=function(){if(this.F&&this.ba("hoffle_api")){var a=this.F,b=a.api.dc();b&&(b=b.getVideoData(),qJ(b)||(by(b.videoId,2),a.api.fi(),RI(b,!0),Osa(a,b),a.api.playVideo()))}};
g.k.fetchLocalMediaById=function(a){return this.F&&this.ba("hoffle_api")?Lsa(this.F,a):Promise.reject()};
g.k.getLocalPlayerResponse=function(a){return this.F&&this.ba("hoffle_api")?Msa(this.F,a):Promise.reject()};
g.k.getLocalMediaInfoById=function(a){return this.F&&this.ba("hoffle_api")?this.F.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.F&&this.ba("hoffle_api")?this.F.getAllLocalMediaInfo():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.u,b=g.Z(this),c=a.getVideoData(),d=a.Zc(),e=d.Pa(),f=b.da?b.da.getVideoPlaybackQuality():{},h=b.iw,l=8*SY(h,"bandwidth")/1024,m=SY(h,"networkactivity")/1024,n=SY(h,"bufferhealth");if(b.Jc){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Jc.u.Te()+"/"+HC(b.co());p+="/"+b.Jc.Te()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=Wz(d.Gf(),",",3),y="";c.VD()&&(c.enableServerStitchedDai&&(y+="SS"),y+="DAI, ");c.fetchType&&
(y+="vd:"+("gvi"===c.fetchType?"g":"o")+", ");y+="s:"+r+" t:"+t+" b:"+w+" ";d.Wq()&&(y+="S");d.pl()&&(y+="P");d.Yi()&&(y+="E");(d=b.rq())&&(y+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.Xw;d&&d>r.start&&d<r.end&&(y+=" as");d=y;y=g.GD();r=g.QT(a).fL;t=c.La&&!c.La.Lc()?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){for(var x=0,B="",E=0;10>E;E++)if(x=(x<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var G="",K=0;6>K;K++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(x&
31)+G,x>>=5;B+=G}w=B.substr(0,4)+" "+B.substr(4,4)+" "+B.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:d,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<y?"*"+y.toFixed(2):"");n="-";f.totalVideoFrames&&
(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=oJ(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Ir.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.Oa)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.i0(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=zwa(a),!c.pd||a.audio&&
a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+zwa(c.pd),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.he;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(LI(c)?" Manifestless":"");else if(e){a=SY(h,"livelatency");l.live_latency_secs=a.toFixed(2)+
"s";e=LI(c)?"Manifestless, ":"";c.Lq&&(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=RY(h,"bandwidth");l.network_activity_samples=RY(h,"networkactivity");l.live_latency_samples=RY(h,"livelatency");l.buffer_health_samples=RY(h,"bufferhealth");FI(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20201213_0_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.K&&this.K.postId?(a=this.W.getVideoUrl(a),a=Sd(a,"v"),a.replace("/watch","/clip/"+this.K.postId)):this.W.getVideoUrl(a,b,c,d,e)};
var o2={};g.Fa("yt.player.Application.create",u0.create,void 0);g.Fa("yt.player.Application.createAlternate",u0.create,void 0);var p2=Es(),q2={Om:[{xL:/Unable to load player module/,weight:5}]};q2.Om&&(p2.Om=p2.Om.concat(q2.Om));q2.Pn&&(p2.Pn=p2.Pn.concat(q2.Pn));var lDa=g.Ja("ytcsi.tick");lDa&&lDa("pe");g.qU.ad=KS;var iBa=/#(.)(.)(.)/,hBa=/^#(?:[0-9a-f]{3}){1,2}$/i;var kBa=g.ye&&jBa();g.Va(g.f1,g.C);var mDa=[];g.k=g.f1.prototype;g.k.wa=function(a,b,c,d){Array.isArray(b)||(b&&(mDa[0]=b.toString()),b=mDa);for(var e=0;e<b.length;e++){var f=Nl(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.u[f.key]=f}return this};
g.k.Bu=function(a,b,c,d){return lBa(this,a,b,c,d)};
g.k.Mb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Mb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.B||this,c=Ol(c),d=!!d,b=Hl(a)?a.uq(b,c,d,e):a?(a=Ql(a))?a.uq(b,c,d,e):null:null,b&&(Wl(b),delete this.u[b.key])};
g.k.ca=function(){g.f1.Jd.ca.call(this);g.mBa(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};g1.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]};
g1.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(g1.BYTES_PER_ELEMENT=4,g1.prototype.BYTES_PER_ELEMENT=4,g1.prototype.set=g1.prototype.set,g1.prototype.toString=g1.prototype.toString,g.Fa("Float32Array",g1,void 0));h1.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]};
h1.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{h1.BYTES_PER_ELEMENT=8}catch(a){}h1.prototype.BYTES_PER_ELEMENT=8;h1.prototype.set=h1.prototype.set;h1.prototype.toString=h1.prototype.toString;g.Fa("Float64Array",h1,void 0)};})(_yt_player);
